123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- webpackJsonp([0],{"+E39":function(t,e,n){t.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+ZMJ":function(t,e,n){var i=n("lOnJ");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"+tPU":function(t,e,n){n("xGkn");for(var i=n("7KvD"),r=n("hJx8"),s=n("/bQp"),a=n("dSzd")("toStringTag"),o="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<o.length;u++){var l=o[u],c=i[l],A=c&&c.prototype;A&&!A[a]&&r(A,a,l),s[l]=s.Array}},"//Fk":function(t,e,n){t.exports={default:n("U5ju"),__esModule:!0}},"/bQp":function(t,e){t.exports={}},"/ocq":function(t,e,n){"use strict";
- /*!
- * vue-router v3.5.1
- * (c) 2021 Evan You
- * @license MIT
- */function i(t,e){0}function r(t,e){for(var n in e)t[n]=e[n];return t}var s=/[!'()*]/g,a=function(t){return"%"+t.charCodeAt(0).toString(16)},o=/%2C/g,u=function(t){return encodeURIComponent(t).replace(s,a).replace(o,",")};function l(t){try{return decodeURIComponent(t)}catch(t){0}return t}var c=function(t){return null==t||"object"==typeof t?t:String(t)};function A(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),i=l(n.shift()),r=n.length>0?l(n.join("=")):null;void 0===e[i]?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]}),e):e}function h(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return u(e);if(Array.isArray(n)){var i=[];return n.forEach(function(t){void 0!==t&&(null===t?i.push(u(e)):i.push(u(e)+"="+u(t)))}),i.join("&")}return u(e)+"="+u(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var d=/\/?$/;function f(t,e,n,i){var r=i&&i.options.stringifyQuery,s=e.query||{};try{s=p(s)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:s,params:e.params||{},fullPath:m(e,r),matched:t?function(t){var e=[];for(;t;)e.unshift(t),t=t.parent;return e}(t):[]};return n&&(a.redirectedFrom=m(n,r)),Object.freeze(a)}function p(t){if(Array.isArray(t))return t.map(p);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=p(t[n]);return e}return t}var g=f(null,{path:"/"});function m(t,e){var n=t.path,i=t.query;void 0===i&&(i={});var r=t.hash;return void 0===r&&(r=""),(n||"/")+(e||h)(i)+r}function v(t,e,n){return e===g?t===e:!!e&&(t.path&&e.path?t.path.replace(d,"")===e.path.replace(d,"")&&(n||t.hash===e.hash&&y(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(n||t.hash===e.hash&&y(t.query,e.query)&&y(t.params,e.params))))}function y(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),i=Object.keys(e).sort();return n.length===i.length&&n.every(function(n,r){var s=t[n];if(i[r]!==n)return!1;var a=e[n];return null==s||null==a?s===a:"object"==typeof s&&"object"==typeof a?y(s,a):String(s)===String(a)})}function b(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];for(var i in n.instances){var r=n.instances[i],s=n.enteredCbs[i];if(r&&s){delete n.enteredCbs[i];for(var a=0;a<s.length;a++)r._isBeingDestroyed||s[a](r)}}}}var _={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,s=e.parent,a=e.data;a.routerView=!0;for(var o=s.$createElement,u=n.name,l=s.$route,c=s._routerViewCache||(s._routerViewCache={}),A=0,h=!1;s&&s._routerRoot!==s;){var d=s.$vnode?s.$vnode.data:{};d.routerView&&A++,d.keepAlive&&s._directInactive&&s._inactive&&(h=!0),s=s.$parent}if(a.routerViewDepth=A,h){var f=c[u],p=f&&f.component;return p?(f.configProps&&w(p,a,f.route,f.configProps),o(p,a,i)):o()}var g=l.matched[A],m=g&&g.components[u];if(!g||!m)return c[u]=null,o();c[u]={component:m},a.registerRouteInstance=function(t,e){var n=g.instances[u];(e&&n!==t||!e&&n===t)&&(g.instances[u]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){g.instances[u]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[u]&&(g.instances[u]=t.componentInstance),b(l)};var v=g.props&&g.props[u];return v&&(r(c[u],{route:l,configProps:v}),w(m,a,l,v)),o(m,a,i)}};function w(t,e,n,i){var s=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(n,i);if(s){s=e.props=r({},s);var a=e.attrs=e.attrs||{};for(var o in s)t.props&&o in t.props||(a[o]=s[o],delete s[o])}}function B(t,e,n){var i=t.charAt(0);if("/"===i)return t;if("?"===i||"#"===i)return e+t;var r=e.split("/");n&&r[r.length-1]||r.pop();for(var s=t.replace(/^\//,"").split("/"),a=0;a<s.length;a++){var o=s[a];".."===o?r.pop():"."!==o&&r.push(o)}return""!==r[0]&&r.unshift(""),r.join("/")}function C(t){return t.replace(/\/\//g,"/")}var T=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},E=H,S=F,k=function(t,e){return Q(F(t,e),e)},x=Q,U=R,I=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function F(t,e){for(var n,i=[],r=0,s=0,a="",o=e&&e.delimiter||"/";null!=(n=I.exec(t));){var u=n[0],l=n[1],c=n.index;if(a+=t.slice(s,c),s=c+u.length,l)a+=l[1];else{var A=t[s],h=n[2],d=n[3],f=n[4],p=n[5],g=n[6],m=n[7];a&&(i.push(a),a="");var v=null!=h&&null!=A&&A!==h,y="+"===g||"*"===g,b="?"===g||"*"===g,_=n[2]||o,w=f||p;i.push({name:d||r++,prefix:h||"",delimiter:_,optional:b,repeat:y,partial:v,asterisk:!!m,pattern:w?L(w):m?".*":"[^"+N(_)+"]+?"})}}return s<t.length&&(a+=t.substr(s)),a&&i.push(a),i}function O(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Q(t,e){for(var n=new Array(t.length),i=0;i<t.length;i++)"object"==typeof t[i]&&(n[i]=new RegExp("^(?:"+t[i].pattern+")$",P(e)));return function(e,i){for(var r="",s=e||{},a=(i||{}).pretty?O:encodeURIComponent,o=0;o<t.length;o++){var u=t[o];if("string"!=typeof u){var l,c=s[u.name];if(null==c){if(u.optional){u.partial&&(r+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(T(c)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(c)+"`");if(0===c.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var A=0;A<c.length;A++){if(l=a(c[A]),!n[o].test(l))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(l)+"`");r+=(0===A?u.prefix:u.delimiter)+l}}else{if(l=u.asterisk?encodeURI(c).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):a(c),!n[o].test(l))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+l+'"');r+=u.prefix+l}}else r+=u}return r}}function N(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function L(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function D(t,e){return t.keys=e,t}function P(t){return t&&t.sensitive?"":"i"}function R(t,e,n){T(e)||(n=e||n,e=[]);for(var i=(n=n||{}).strict,r=!1!==n.end,s="",a=0;a<t.length;a++){var o=t[a];if("string"==typeof o)s+=N(o);else{var u=N(o.prefix),l="(?:"+o.pattern+")";e.push(o),o.repeat&&(l+="(?:"+u+l+")*"),s+=l=o.optional?o.partial?u+"("+l+")?":"(?:"+u+"("+l+"))?":u+"("+l+")"}}var c=N(n.delimiter||"/"),A=s.slice(-c.length)===c;return i||(s=(A?s.slice(0,-c.length):s)+"(?:"+c+"(?=$))?"),s+=r?"$":i&&A?"":"(?="+c+"|$)",D(new RegExp("^"+s,P(n)),e)}function H(t,e,n){return T(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return D(t,e)}(t,e):T(t)?function(t,e,n){for(var i=[],r=0;r<t.length;r++)i.push(H(t[r],e,n).source);return D(new RegExp("(?:"+i.join("|")+")",P(n)),e)}(t,e,n):function(t,e,n){return R(F(t,n),e,n)}(t,e,n)}E.parse=S,E.compile=k,E.tokensToFunction=x,E.tokensToRegExp=U;var M=Object.create(null);function K(t,e,n){e=e||{};try{var i=M[t]||(M[t]=E.compile(t));return"string"==typeof e.pathMatch&&(e[0]=e.pathMatch),i(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function j(t,e,n,i){var s="string"==typeof t?{path:t}:t;if(s._normalized)return s;if(s.name){var a=(s=r({},t)).params;return a&&"object"==typeof a&&(s.params=r({},a)),s}if(!s.path&&s.params&&e){(s=r({},s))._normalized=!0;var o=r(r({},e.params),s.params);if(e.name)s.name=e.name,s.params=o;else if(e.matched.length){var u=e.matched[e.matched.length-1].path;s.path=K(u,o,e.path)}else 0;return s}var l=function(t){var e="",n="",i=t.indexOf("#");i>=0&&(e=t.slice(i),t=t.slice(0,i));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}(s.path||""),h=e&&e.path||"/",d=l.path?B(l.path,h,n||s.append):h,f=function(t,e,n){void 0===e&&(e={});var i,r=n||A;try{i=r(t||"")}catch(t){i={}}for(var s in e){var a=e[s];i[s]=Array.isArray(a)?a.map(c):c(a)}return i}(l.query,s.query,i&&i.options.parseQuery),p=s.hash||l.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:d,query:f,hash:p}}var V,z=[String,Object],$=[String,Array],W=function(){},G={name:"RouterLink",props:{to:{type:z,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:$,default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,s=n.resolve(this.to,i,this.append),a=s.location,o=s.route,u=s.href,l={},c=n.options.linkActiveClass,A=n.options.linkExactActiveClass,h=null==c?"router-link-active":c,p=null==A?"router-link-exact-active":A,g=null==this.activeClass?h:this.activeClass,m=null==this.exactActiveClass?p:this.exactActiveClass,y=o.redirectedFrom?f(null,j(o.redirectedFrom),null,n):o;l[m]=v(i,y,this.exactPath),l[g]=this.exact||this.exactPath?l[m]:function(t,e){return 0===t.path.replace(d,"/").indexOf(e.path.replace(d,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(i,y);var b=l[m]?this.ariaCurrentValue:null,_=function(t){X(t)&&(e.replace?n.replace(a,W):n.push(a,W))},w={click:X};Array.isArray(this.event)?this.event.forEach(function(t){w[t]=_}):w[this.event]=_;var B={class:l},C=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:u,route:o,navigate:_,isActive:l[g],isExactActive:l[m]});if(C){if(1===C.length)return C[0];if(C.length>1||!C.length)return 0===C.length?t():t("span",{},C)}if("a"===this.tag)B.on=w,B.attrs={href:u,"aria-current":b};else{var T=function t(e){if(e)for(var n,i=0;i<e.length;i++){if("a"===(n=e[i]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(T){T.isStatic=!1;var E=T.data=r({},T.data);for(var S in E.on=E.on||{},E.on){var k=E.on[S];S in w&&(E.on[S]=Array.isArray(k)?k:[k])}for(var x in w)x in E.on?E.on[x].push(w[x]):E.on[x]=_;var U=T.data.attrs=r({},T.data.attrs);U.href=u,U["aria-current"]=b}else B.on=w}return t(this.tag,B,this.$slots.default)}};function X(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function q(t){if(!q.installed||V!==t){q.installed=!0,V=t;var e=function(t){return void 0!==t},n=function(t,n){var i=t.$options._parentVnode;e(i)&&e(i=i.data)&&e(i=i.registerRouteInstance)&&i(t,n)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.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(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",_),t.component("RouterLink",G);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var Y="undefined"!=typeof window;function J(t,e,n,i,r){var s=e||[],a=n||Object.create(null),o=i||Object.create(null);t.forEach(function(t){!function t(e,n,i,r,s,a){var o=r.path;var u=r.name;0;var l=r.pathToRegexpOptions||{};var c=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return C(e.path+"/"+t)}(o,s,l.strict);"boolean"==typeof r.caseSensitive&&(l.sensitive=r.caseSensitive);var A={path:c,regex:function(t,e){var n=E(t,[],e);return n}(c,l),components:r.components||{default:r.component},alias:r.alias?"string"==typeof r.alias?[r.alias]:r.alias:[],instances:{},enteredCbs:{},name:u,parent:s,matchAs:a,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};r.children&&r.children.forEach(function(r){var s=a?C(a+"/"+r.path):void 0;t(e,n,i,r,A,s)});n[A.path]||(e.push(A.path),n[A.path]=A);if(void 0!==r.alias)for(var h=Array.isArray(r.alias)?r.alias:[r.alias],d=0;d<h.length;++d){var f=h[d];0;var p={path:f,children:r.children};t(e,n,i,p,s,A.path||"/")}u&&(i[u]||(i[u]=A))}(s,a,o,t,r)});for(var u=0,l=s.length;u<l;u++)"*"===s[u]&&(s.push(s.splice(u,1)[0]),l--,u--);return{pathList:s,pathMap:a,nameMap:o}}function Z(t,e){var n=J(t),i=n.pathList,r=n.pathMap,s=n.nameMap;function a(t,n,a){var o=j(t,n,!1,e),l=o.name;if(l){var c=s[l];if(!c)return u(null,o);var A=c.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof o.params&&(o.params={}),n&&"object"==typeof n.params)for(var h in n.params)!(h in o.params)&&A.indexOf(h)>-1&&(o.params[h]=n.params[h]);return o.path=K(c.path,o.params),u(c,o,a)}if(o.path){o.params={};for(var d=0;d<i.length;d++){var f=i[d],p=r[f];if(tt(p.regex,o.path,o.params))return u(p,o,a)}}return u(null,o)}function o(t,n){var i=t.redirect,r="function"==typeof i?i(f(t,n,null,e)):i;if("string"==typeof r&&(r={path:r}),!r||"object"!=typeof r)return u(null,n);var o=r,l=o.name,c=o.path,A=n.query,h=n.hash,d=n.params;if(A=o.hasOwnProperty("query")?o.query:A,h=o.hasOwnProperty("hash")?o.hash:h,d=o.hasOwnProperty("params")?o.params:d,l){s[l];return a({_normalized:!0,name:l,query:A,hash:h,params:d},void 0,n)}if(c){var p=function(t,e){return B(t,e.parent?e.parent.path:"/",!0)}(c,t);return a({_normalized:!0,path:K(p,d),query:A,hash:h},void 0,n)}return u(null,n)}function u(t,n,i){return t&&t.redirect?o(t,i||n):t&&t.matchAs?function(t,e,n){var i=a({_normalized:!0,path:K(n,e.params)});if(i){var r=i.matched,s=r[r.length-1];return e.params=i.params,u(s,e)}return u(null,e)}(0,n,t.matchAs):f(t,n,i,e)}return{match:a,addRoute:function(t,e){var n="object"!=typeof t?s[t]:void 0;J([e||t],i,r,s,n),n&&J(n.alias.map(function(t){return{path:t,children:[e]}}),i,r,s,n)},getRoutes:function(){return i.map(function(t){return r[t]})},addRoutes:function(t){J(t,i,r,s)}}}function tt(t,e,n){var i=e.match(t);if(!i)return!1;if(!n)return!0;for(var r=1,s=i.length;r<s;++r){var a=t.keys[r-1];a&&(n[a.name||"pathMatch"]="string"==typeof i[r]?l(i[r]):i[r])}return!0}var et=Y&&window.performance&&window.performance.now?window.performance:Date;function nt(){return et.now().toFixed(3)}var it=nt();function rt(){return it}function st(t){return it=t}var at=Object.create(null);function ot(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=r({},window.history.state);return n.key=rt(),window.history.replaceState(n,"",e),window.addEventListener("popstate",ct),function(){window.removeEventListener("popstate",ct)}}function ut(t,e,n,i){if(t.app){var r=t.options.scrollBehavior;r&&t.app.$nextTick(function(){var s=function(){var t=rt();if(t)return at[t]}(),a=r.call(t,e,n,i?s:null);a&&("function"==typeof a.then?a.then(function(t){pt(t,s)}).catch(function(t){0}):pt(a,s))})}}function lt(){var t=rt();t&&(at[t]={x:window.pageXOffset,y:window.pageYOffset})}function ct(t){lt(),t.state&&t.state.key&&st(t.state.key)}function At(t){return dt(t.x)||dt(t.y)}function ht(t){return{x:dt(t.x)?t.x:window.pageXOffset,y:dt(t.y)?t.y:window.pageYOffset}}function dt(t){return"number"==typeof t}var ft=/^#\d/;function pt(t,e){var n,i="object"==typeof t;if(i&&"string"==typeof t.selector){var r=ft.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(r){var s=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{x:i.left-n.left-e.x,y:i.top-n.top-e.y}}(r,s={x:dt((n=s).x)?n.x:0,y:dt(n.y)?n.y:0})}else At(t)&&(e=ht(t))}else i&&At(t)&&(e=ht(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var gt,mt=Y&&((-1===(gt=window.navigator.userAgent).indexOf("Android 2.")&&-1===gt.indexOf("Android 4.0")||-1===gt.indexOf("Mobile Safari")||-1!==gt.indexOf("Chrome")||-1!==gt.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function vt(t,e){lt();var n=window.history;try{if(e){var i=r({},n.state);i.key=rt(),n.replaceState(i,"",t)}else n.pushState({key:st(nt())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function yt(t){vt(t,!0)}function bt(t,e,n){var i=function(r){r>=t.length?n():t[r]?e(t[r],function(){i(r+1)}):i(r+1)};i(0)}var _t={redirected:2,aborted:4,cancelled:8,duplicated:16};function wt(t,e){return Ct(t,e,_t.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return Tt.forEach(function(n){n in t&&(e[n]=t[n])}),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function Bt(t,e){return Ct(t,e,_t.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function Ct(t,e,n,i){var r=new Error(i);return r._isRouter=!0,r.from=t,r.to=e,r.type=n,r}var Tt=["params","query","hash"];function Et(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function St(t,e){return Et(t)&&t._isRouter&&(null==e||t.type===e)}function kt(t){return function(e,n,i){var r=!1,s=0,a=null;xt(t,function(t,e,n,o){if("function"==typeof t&&void 0===t.cid){r=!0,s++;var u,l=Ft(function(e){var r;((r=e).__esModule||It&&"Module"===r[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:V.extend(e),n.components[o]=e,--s<=0&&i()}),c=Ft(function(t){var e="Failed to resolve async component "+o+": "+t;a||(a=Et(t)?t:new Error(e),i(a))});try{u=t(l,c)}catch(t){c(t)}if(u)if("function"==typeof u.then)u.then(l,c);else{var A=u.component;A&&"function"==typeof A.then&&A.then(l,c)}}}),r||i()}}function xt(t,e){return Ut(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function Ut(t){return Array.prototype.concat.apply([],t)}var It="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Ft(t){var e=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!e)return e=!0,t.apply(this,n)}}var Ot=function(t,e){this.router=t,this.base=function(t){if(!t)if(Y){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Qt(t,e,n,i){var r=xt(t,function(t,i,r,s){var a=function(t,e){"function"!=typeof t&&(t=V.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,i,r,s)}):n(a,i,r,s)});return Ut(i?r.reverse():r)}function Nt(t,e){if(e)return function(){return t.apply(e,arguments)}}Ot.prototype.listen=function(t){this.cb=t},Ot.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Ot.prototype.onError=function(t){this.errorCbs.push(t)},Ot.prototype.transitionTo=function(t,e,n){var i,r=this;try{i=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach(function(e){e(t)}),t}var s=this.current;this.confirmTransition(i,function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.router.afterHooks.forEach(function(t){t&&t(i,s)}),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(i)}))},function(t){n&&n(t),t&&!r.ready&&(St(t,_t.redirected)&&s===g||(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)})))})},Ot.prototype.confirmTransition=function(t,e,n){var r=this,s=this.current;this.pending=t;var a,o,u=function(t){!St(t)&&Et(t)&&(r.errorCbs.length?r.errorCbs.forEach(function(e){e(t)}):(i(),console.error(t))),n&&n(t)},l=t.matched.length-1,c=s.matched.length-1;if(v(t,s)&&l===c&&t.matched[l]===s.matched[c])return this.ensureURL(),u(((o=Ct(a=s,t,_t.duplicated,'Avoided redundant navigation to current location: "'+a.fullPath+'".')).name="NavigationDuplicated",o));var A=function(t,e){var n,i=Math.max(t.length,e.length);for(n=0;n<i&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),h=A.updated,d=A.deactivated,f=A.activated,p=function(e,n){if(r.pending!==t)return u(Bt(s,t));try{e(t,s,function(e){!1===e?(r.ensureURL(!0),u(function(t,e){return Ct(t,e,_t.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}(s,t))):Et(e)?(r.ensureURL(!0),u(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(u(wt(s,t)),"object"==typeof e&&e.replace?r.replace(e):r.push(e)):n(e)})}catch(t){u(t)}};bt([].concat(function(t){return Qt(t,"beforeRouteLeave",Nt,!0)}(d),this.router.beforeHooks,function(t){return Qt(t,"beforeRouteUpdate",Nt)}(h),f.map(function(t){return t.beforeEnter}),kt(f)),p,function(){bt(function(t){return Qt(t,"beforeRouteEnter",function(t,e,n,i){return function(t,e,n){return function(i,r,s){return t(i,r,function(t){"function"==typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),s(t)})}}(t,n,i)})}(f).concat(r.router.resolveHooks),p,function(){if(r.pending!==t)return u(Bt(s,t));r.pending=null,e(t),r.router.app&&r.router.app.$nextTick(function(){b(t)})})})},Ot.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},Ot.prototype.setupListeners=function(){},Ot.prototype.teardown=function(){this.listeners.forEach(function(t){t()}),this.listeners=[],this.current=g,this.pending=null};var Lt=function(t){function e(e,n){t.call(this,e,n),this._startLocation=Dt(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,i=mt&&n;i&&this.listeners.push(ot());var r=function(){var n=t.current,r=Dt(t.base);t.current===g&&r===t._startLocation||t.transitionTo(r,function(t){i&&ut(e,t,n,!0)})};window.addEventListener("popstate",r),this.listeners.push(function(){window.removeEventListener("popstate",r)})}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){vt(C(i.base+t.fullPath)),ut(i.router,t,r,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){yt(C(i.base+t.fullPath)),ut(i.router,t,r,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(Dt(this.base)!==this.current.fullPath){var e=C(this.base+this.current.fullPath);t?vt(e):yt(e)}},e.prototype.getCurrentLocation=function(){return Dt(this.base)},e}(Ot);function Dt(t){var e=window.location.pathname;return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Pt=function(t){function e(e,n,i){t.call(this,e,n),i&&function(t){var e=Dt(t);if(!/^\/#/.test(e))return window.location.replace(C(t+"/#"+e)),!0}(this.base)||Rt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=mt&&e;n&&this.listeners.push(ot());var i=function(){var e=t.current;Rt()&&t.transitionTo(Ht(),function(i){n&&ut(t.router,i,e,!0),mt||jt(i.fullPath)})},r=mt?"popstate":"hashchange";window.addEventListener(r,i),this.listeners.push(function(){window.removeEventListener(r,i)})}},e.prototype.push=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){Kt(t.fullPath),ut(i.router,t,r,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){jt(t.fullPath),ut(i.router,t,r,!1),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Ht()!==e&&(t?Kt(e):jt(e))},e.prototype.getCurrentLocation=function(){return Ht()},e}(Ot);function Rt(){var t=Ht();return"/"===t.charAt(0)||(jt("/"+t),!1)}function Ht(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Mt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Kt(t){mt?vt(Mt(t)):window.location.hash=t}function jt(t){mt?yt(Mt(t)):window.location.replace(Mt(t))}var Vt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index+1).concat(t),i.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,function(){var t=e.current;e.index=n,e.updateRoute(i),e.router.afterHooks.forEach(function(e){e&&e(i,t)})},function(t){St(t,_t.duplicated)&&(e.index=n)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Ot),zt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Z(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!mt&&!1!==t.fallback,this.fallback&&(e="hash"),Y||(e="abstract"),this.mode=e,e){case"history":this.history=new Lt(this,t.base);break;case"hash":this.history=new Pt(this,t.base,this.fallback);break;case"abstract":this.history=new Vt(this,t.base);break;default:0}},$t={currentRoute:{configurable:!0}};function Wt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}zt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},$t.currentRoute.get=function(){return this.history&&this.history.current},zt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()}),!this.app){this.app=t;var n=this.history;if(n instanceof Lt||n instanceof Pt){var i=function(t){n.setupListeners(),function(t){var i=n.current,r=e.options.scrollBehavior;mt&&r&&"fullPath"in t&&ut(e,t,i,!1)}(t)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},zt.prototype.beforeEach=function(t){return Wt(this.beforeHooks,t)},zt.prototype.beforeResolve=function(t){return Wt(this.resolveHooks,t)},zt.prototype.afterEach=function(t){return Wt(this.afterHooks,t)},zt.prototype.onReady=function(t,e){this.history.onReady(t,e)},zt.prototype.onError=function(t){this.history.onError(t)},zt.prototype.push=function(t,e,n){var i=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){i.history.push(t,e,n)});this.history.push(t,e,n)},zt.prototype.replace=function(t,e,n){var i=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){i.history.replace(t,e,n)});this.history.replace(t,e,n)},zt.prototype.go=function(t){this.history.go(t)},zt.prototype.back=function(){this.go(-1)},zt.prototype.forward=function(){this.go(1)},zt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},zt.prototype.resolve=function(t,e,n){var i=j(t,e=e||this.history.current,n,this),r=this.match(i,e),s=r.redirectedFrom||r.fullPath;return{location:i,route:r,href:function(t,e,n){var i="hash"===n?"#"+e:e;return t?C(t+"/"+i):i}(this.history.base,s,this.mode),normalizedTo:i,resolved:r}},zt.prototype.getRoutes=function(){return this.matcher.getRoutes()},zt.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},zt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(zt.prototype,$t),zt.install=q,zt.version="3.5.1",zt.isNavigationFailure=St,zt.NavigationFailureType=_t,zt.START_LOCATION=g,Y&&window.Vue&&window.Vue.use(zt),e.a=zt},"21It":function(t,e,n){"use strict";var i=n("FtD3");t.exports=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"2IcF":function(t,e){e.entityMap={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:"♦"}},"2KxR":function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},"3Eo+":function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},"3X7g":function(t,e,n){"use strict";(function(t){e.c=u,e.b=function(t){u(function(){u(t)})},e.a=function(t){o.call(s,t)};var i=n("o69Z"),r=Date.now();var s=i.j?t:window,a=s.requestAnimationFrame||function(t){var e=Date.now(),n=Math.max(0,16-(e-r)),i=setTimeout(t,n);return r=e+n,i},o=s.cancelAnimationFrame||s.clearTimeout;function u(t){return a.call(s,t)}}).call(e,n("DuR2"))},"3fs2":function(t,e,n){var i=n("RY/4"),r=n("dSzd")("iterator"),s=n("/bQp");t.exports=n("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||s[i(t)]}},"4PMK":function(t,e,n){"use strict";e.a=function(t){if(!Object(r.e)(t))return;return t=String(t),Object(s.b)(t)?t+"px":t},e.b=function(t){if("number"==typeof t)return t;if(r.d){if(-1!==t.indexOf("rem"))return function(t){return+(t=t.replace(/rem/g,""))*function(){if(!i){var t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;i=parseFloat(e)}return i}()}(t);if(-1!==t.indexOf("vw"))return function(t){return+(t=t.replace(/vw/g,""))*window.innerWidth/100}(t);if(-1!==t.indexOf("vh"))return function(t){return+(t=t.replace(/vh/g,""))*window.innerHeight/100}(t)}return parseFloat(t)};var i,r=n("o69Z"),s=n("mRXp")},"4mcu":function(t,e){t.exports=function(){}},"52gC":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"5VQ+":function(t,e,n){"use strict";var i=n("cGG2");t.exports=function(t,e){i.forEach(t,function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])})}},"63pp":function(t,e,n){"use strict";var i,r,s,a=n("awF4"),o=n.n(a),u=n("dwO+"),l=n.n(u),c=n("lt8z"),A=n.n(c),h=n("M1I4"),d=n.n(h),f=n("86MP"),p=n.n(f),g=n("I/+Z"),m=n.n(g),v=n("ljAp"),y=n.n(v),b=n("OWA6"),_=n.n(b),w=n("ciWi"),B=n.n(w),C=n("kx0S"),T=n.n(C),E=n("j/rp"),S=n.n(E),k=n("fx5k"),x=n.n(k),U=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=o.a.location&&o.a.location.href||"");var n="function"==typeof o.a.URL,i=/^\/\//.test(t),r=!o.a.location&&!/\/\//i.test(t);if(n?t=new o.a.URL(t,o.a.location||"http://example.com"):/\/\//i.test(t)||(t=x.a.buildAbsoluteURL(o.a.location&&o.a.location.href||"",t)),n){var s=new URL(e,t);return r?s.href.slice("http://example.com".length):i?s.href.slice(s.protocol.length):s.href}return x.a.buildAbsoluteURL(t,e)},I=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var n=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(n,1),n>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var n=e.length,i=0;i<n;++i)e[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),s=e.length,a=0;a<s;++a)e[a].apply(this,r)},e.dispose=function(){this.listeners={}},e.pipe=function(t){this.on("data",function(e){t.push(e)})},t}(),F=n("9KJy"),O=function(t){function e(){var e;return(e=t.call(this)||this).buffer="",e}return p()(e,t),e.prototype.push=function(t){var e;for(this.buffer+=t,e=this.buffer.indexOf("\n");e>-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(I),Q=String.fromCharCode(9),N=function(t){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),n={};return e[1]&&(n.length=parseInt(e[1],10)),e[2]&&(n.offset=parseInt(e[2],10)),n},L=function(t){for(var e,n=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),i={},r=n.length;r--;)""!==n[r]&&((e=/([^=]*)=(.*)/.exec(n[r]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),i[e[0]]=e[1]);return i},D=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}p()(e,t);var n=e.prototype;return n.push=function(t){var e,n,i=this;0!==(t=t.trim()).length&&("#"===t[0]?this.tagMappers.reduce(function(e,n){var i=n(t);return i===t?e:e.concat([i])},[t]).forEach(function(t){for(var r=0;r<i.customParsers.length;r++)if(i.customParsers[r].call(i,t))return;if(0===t.indexOf("#EXT"))if(t=t.replace("\r",""),e=/^#EXTM3U/.exec(t))i.trigger("data",{type:"tag",tagType:"m3u"});else{if(e=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(t))return n={type:"tag",tagType:"inf"},e[1]&&(n.duration=parseFloat(e[1])),e[2]&&(n.title=e[2]),void i.trigger("data",n);if(e=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(t))return n={type:"tag",tagType:"targetduration"},e[1]&&(n.duration=parseInt(e[1],10)),void i.trigger("data",n);if(e=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(t))return n={type:"tag",tagType:"version"},e[1]&&(n.version=parseInt(e[1],10)),void i.trigger("data",n);if(e=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return n={type:"tag",tagType:"media-sequence"},e[1]&&(n.number=parseInt(e[1],10)),void i.trigger("data",n);if(e=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return n={type:"tag",tagType:"discontinuity-sequence"},e[1]&&(n.number=parseInt(e[1],10)),void i.trigger("data",n);if(e=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(t))return n={type:"tag",tagType:"playlist-type"},e[1]&&(n.playlistType=e[1]),void i.trigger("data",n);if(e=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(t))return n=A()(N(e[1]),{type:"tag",tagType:"byterange"}),void i.trigger("data",n);if(e=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(t))return n={type:"tag",tagType:"allow-cache"},e[1]&&(n.allowed=!/NO/.test(e[1])),void i.trigger("data",n);if(e=/^#EXT-X-MAP:?(.*)$/.exec(t)){if(n={type:"tag",tagType:"map"},e[1]){var s=L(e[1]);s.URI&&(n.uri=s.URI),s.BYTERANGE&&(n.byterange=N(s.BYTERANGE))}i.trigger("data",n)}else if(e=/^#EXT-X-STREAM-INF:?(.*)$/.exec(t)){if(n={type:"tag",tagType:"stream-inf"},e[1]){if(n.attributes=L(e[1]),n.attributes.RESOLUTION){var a=n.attributes.RESOLUTION.split("x"),o={};a[0]&&(o.width=parseInt(a[0],10)),a[1]&&(o.height=parseInt(a[1],10)),n.attributes.RESOLUTION=o}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(e=/^#EXT-X-MEDIA:?(.*)$/.exec(t))return n={type:"tag",tagType:"media"},e[1]&&(n.attributes=L(e[1])),void i.trigger("data",n);if(e=/^#EXT-X-ENDLIST/.exec(t))i.trigger("data",{type:"tag",tagType:"endlist"});else if(e=/^#EXT-X-DISCONTINUITY/.exec(t))i.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(e=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(t))return n={type:"tag",tagType:"program-date-time"},e[1]&&(n.dateTimeString=e[1],n.dateTimeObject=new Date(e[1])),void i.trigger("data",n);if(e=/^#EXT-X-KEY:?(.*)$/.exec(t))return n={type:"tag",tagType:"key"},e[1]&&(n.attributes=L(e[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(e=/^#EXT-X-START:?(.*)$/.exec(t))return n={type:"tag",tagType:"start"},e[1]&&(n.attributes=L(e[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void i.trigger("data",n);if(e=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(t))return n={type:"tag",tagType:"cue-out-cont"},e[1]?n.data=e[1]:n.data="",void i.trigger("data",n);if(e=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(t))return n={type:"tag",tagType:"cue-out"},e[1]?n.data=e[1]:n.data="",void i.trigger("data",n);if(e=/^#EXT-X-CUE-IN:?(.*)?$/.exec(t))return n={type:"tag",tagType:"cue-in"},e[1]?n.data=e[1]:n.data="",void i.trigger("data",n);if((e=/^#EXT-X-SKIP:(.*)$/.exec(t))&&e[1])return(n={type:"tag",tagType:"skip"}).attributes=L(e[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(Q)),void i.trigger("data",n);if((e=/^#EXT-X-PART:(.*)$/.exec(t))&&e[1])return(n={type:"tag",tagType:"part"}).attributes=L(e[1]),["DURATION"].forEach(function(t){n.attributes.hasOwnProperty(t)&&(n.attributes[t]=parseFloat(n.attributes[t]))}),["INDEPENDENT","GAP"].forEach(function(t){n.attributes.hasOwnProperty(t)&&(n.attributes[t]=/YES/.test(n.attributes[t]))}),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=N(n.attributes.BYTERANGE)),void i.trigger("data",n);if((e=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(t))&&e[1])return(n={type:"tag",tagType:"server-control"}).attributes=L(e[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(t){n.attributes.hasOwnProperty(t)&&(n.attributes[t]=parseFloat(n.attributes[t]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(t){n.attributes.hasOwnProperty(t)&&(n.attributes[t]=/YES/.test(n.attributes[t]))}),void i.trigger("data",n);if((e=/^#EXT-X-PART-INF:(.*)$/.exec(t))&&e[1])return(n={type:"tag",tagType:"part-inf"}).attributes=L(e[1]),["PART-TARGET"].forEach(function(t){n.attributes.hasOwnProperty(t)&&(n.attributes[t]=parseFloat(n.attributes[t]))}),void i.trigger("data",n);if((e=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(t))&&e[1])return(n={type:"tag",tagType:"preload-hint"}).attributes=L(e[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(t){if(n.attributes.hasOwnProperty(t)){n.attributes[t]=parseInt(n.attributes[t],10);var e="BYTERANGE-LENGTH"===t?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[e]=n.attributes[t],delete n.attributes[t]}}),void i.trigger("data",n);if((e=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(t))&&e[1])return(n={type:"tag",tagType:"rendition-report"}).attributes=L(e[1]),["LAST-MSN","LAST-PART"].forEach(function(t){n.attributes.hasOwnProperty(t)&&(n.attributes[t]=parseInt(n.attributes[t],10))}),void i.trigger("data",n);i.trigger("data",{type:"tag",data:t.slice(4)})}}}else i.trigger("data",{type:"comment",text:t.slice(1)})}):this.trigger("data",{type:"uri",uri:t}))},n.addParser=function(t){var e=this,n=t.expression,i=t.customType,r=t.dataParser,s=t.segment;"function"!=typeof r&&(r=function(t){return t}),this.customParsers.push(function(t){if(n.exec(t))return e.trigger("data",{type:"custom",data:r(t),customType:i,segment:s}),!0})},n.addTagMapper=function(t){var e=t.expression,n=t.map;this.tagMappers.push(function(t){return e.test(t)?n(t):t})},e}(I),P=function(t){var e={};return Object.keys(t).forEach(function(n){var i;e[(i=n,i.toLowerCase().replace(/-(\w)/g,function(t){return t[1].toUpperCase()}))]=t[n]}),e},R=function(t){var e=t.serverControl,n=t.targetDuration,i=t.partTargetDuration;if(e){var r="#EXT-X-SERVER-CONTROL",s="holdBack",a="partHoldBack",o=n&&3*n,u=i&&2*i;n&&!e.hasOwnProperty(s)&&(e[s]=o,this.trigger("info",{message:r+" defaulting HOLD-BACK to targetDuration * 3 ("+o+")."})),o&&e[s]<o&&(this.trigger("warn",{message:r+" clamping HOLD-BACK ("+e[s]+") to targetDuration * 3 ("+o+")"}),e[s]=o),i&&!e.hasOwnProperty(a)&&(e[a]=3*i,this.trigger("info",{message:r+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+e[a]+")."})),i&&e[a]<u&&(this.trigger("warn",{message:r+" clamping PART-HOLD-BACK ("+e[a]+") to partTargetDuration * 2 ("+u+")."}),e[a]=u)}},H=function(t){function e(){var e;(e=t.call(this)||this).lineStream=new O,e.parseStream=new D,e.lineStream.pipe(e.parseStream);var n,i,r=d()(e),s=[],a={},o=!1,u={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},l=0;e.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var c=0,h=0;return e.on("end",function(){a.uri||!a.parts&&!a.preloadHints||(!a.map&&n&&(a.map=n),!a.key&&i&&(a.key=i),a.timeline||"number"!=typeof l||(a.timeline=l),e.manifest.preloadSegment=a)}),e.parseStream.on("data",function(t){var e,d;({tag:function(){(({version:function(){t.version&&(this.manifest.version=t.version)},"allow-cache":function(){this.manifest.allowCache=t.allowed,"allowed"in t||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var e={};"length"in t&&(a.byterange=e,e.length=t.length,"offset"in t||(t.offset=c)),"offset"in t&&(a.byterange=e,e.offset=t.offset),c=e.offset+e.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),t.duration>0&&(a.duration=t.duration),0===t.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=s},key:function(){if(t.attributes)if("NONE"!==t.attributes.METHOD)if(t.attributes.URI){if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:Object(F.a)(t.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&&(i.iv=t.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(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,l=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){n={},t.uri&&(n.uri=t.uri),t.byterange&&(n.byterange=t.byterange),i&&(n.key=i)},"stream-inf":function(){this.manifest.playlists=s,this.manifest.mediaGroups=this.manifest.mediaGroups||u,t.attributes?(a.attributes||(a.attributes={}),A()(a.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||u,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var n=this.manifest.mediaGroups[t.attributes.TYPE];n[t.attributes["GROUP-ID"]]=n[t.attributes["GROUP-ID"]]||{},e=n[t.attributes["GROUP-ID"]],(d={default:/yes/i.test(t.attributes.DEFAULT)}).default?d.autoselect=!0:d.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(d.language=t.attributes.LANGUAGE),t.attributes.URI&&(d.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(d.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(d.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(d.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=d}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){l+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(s.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),a.dateTimeString=t.dateTimeString,a.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):(this.manifest.targetDuration=t.duration,R.call(this,this.manifest))},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){a.cueOut=t.data},"cue-out-cont":function(){a.cueOutCont=t.data},"cue-in":function(){a.cueIn=t.data},skip:function(){this.manifest.skip=P(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;o=!0;var n=this.manifest.segments.length,i=P(t.attributes);a.parts=a.parts||[],a.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=h),h=i.byterange.offset+i.byterange.length);var r=a.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+n,t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(t,n){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+n+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var e=this.manifest.serverControl=P(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),R.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,n=P(t.attributes),i=n.type&&"PART"===n.type;a.preloadHints=a.preloadHints||[],a.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?h:0,i&&(h=n.byterange.offset+n.byterange.length)));var r=a.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+e,t.attributes,["TYPE","URI"]),n.type)for(var s=0;s<a.preloadHints.length-1;s++){var o=a.preloadHints[s];o.type&&(o.type===n.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+e+" has the same TYPE "+n.type+" as preload hint #"+s}))}},"rendition-report":function(){var e=P(t.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(e);var n=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];o&&i.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+n,t.attributes,i)},"part-inf":function(){this.manifest.partInf=P(t.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",t.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),R.call(this,this.manifest)}})[t.tagType]||function(){}).call(r)},uri:function(){a.uri=t.uri,s.push(a),!this.manifest.targetDuration||"duration"in a||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),i&&(a.key=i),a.timeline=l,n&&(a.map=n),h=0,a={}},comment:function(){},custom:function(){t.segment?(a.custom=a.custom||{},a.custom[t.customType]=t.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[t.customType]=t.data)}})[t.type].call(r)}),e}p()(e,t);var n=e.prototype;return n.warnOnMissingAttributes_=function(t,e,n){var i=[];n.forEach(function(t){e.hasOwnProperty(t)||i.push(t)}),i.length&&this.trigger("warn",{message:t+" lacks required attribute(s): "+i.join(", ")})},n.push=function(t){this.lineStream.push(t)},n.end=function(){this.lineStream.push("\n"),this.trigger("end")},n.addParser=function(t){this.parseStream.addParser(t)},n.addTagMapper=function(t){this.parseStream.addTagMapper(t)},e}(I),M={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^/},K=["video","audio","text"],j=["Video","Audio","Text"],V=function(t){return t?t.replace(/avc1\.(\d+)\.(\d+)/i,function(t,e,n){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)}):t},z=function(t){void 0===t&&(t="");var e=[];return t.split(",").forEach(function(t){var n;t=t.trim(),K.forEach(function(i){var r=M[i].exec(t.toLowerCase());if(r&&!(r.length<=1)){n=i;var s=t.substring(0,r[1].length),a=t.replace(s,"");e.push({type:s,details:a,mediaType:i})}}),n||e.push({type:t,details:"",mediaType:"unknown"})}),e},$=function(t){return void 0===t&&(t=""),M.audio.test(t.trim().toLowerCase())},W=function(t){if(t&&"string"==typeof t){var e,n=t.toLowerCase().split(",").map(function(t){return V(t.trim())}),i="video";1===n.length&&$(n[0])?i="audio":1===n.length&&(void 0===(e=n[0])&&(e=""),M.text.test(e.trim().toLowerCase()))&&(i="application");var r="mp4";return n.every(function(t){return M.mp4.test(t)})?r="mp4":n.every(function(t){return M.webm.test(t)})?r="webm":n.every(function(t){return M.ogg.test(t)})&&(r="ogg"),i+"/"+r+';codecs="'+t+'"'}},G=function(t){return void 0===t&&(t=""),o.a.MediaSource&&o.a.MediaSource.isTypeSupported&&o.a.MediaSource.isTypeSupported(W(t))||!1},X=function(t){return void 0===t&&(t=""),t.toLowerCase().split(",").every(function(t){t=t.trim();for(var e=0;e<j.length;e++){if(M["muxer"+j[e]].test(t))return!0}return!1})},q=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,Y=/^application\/dash\+xml/i,J=function(t){return q.test(t)?"hls":Y.test(t)?"dash":"application/vnd.videojs.vhs+json"===t?"vhs-json":null},Z=n("Mctu"),tt=function(t){return!!t&&"object"==typeof t},et=function t(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.reduce(function(e,n){return"object"!=typeof n?e:(Object.keys(n).forEach(function(i){Array.isArray(e[i])&&Array.isArray(n[i])?e[i]=e[i].concat(n[i]):tt(e[i])&&tt(n[i])?e[i]=t(e[i],n[i]):e[i]=n[i]}),e)},{})},nt=function(t){return t.reduce(function(t,e){return t.concat(e)},[])},it=function(t){if(!t.length)return[];for(var e=[],n=0;n<t.length;n++)e.push(t[n]);return e},rt="INVALID_NUMBER_OF_PERIOD",st="DASH_EMPTY_MANIFEST",at="DASH_INVALID_XML",ot="NO_BASE_URL",ut="SEGMENT_TIME_UNSPECIFIED",lt="UNSUPPORTED_UTC_TIMING_SCHEME",ct=function(t){var e=t.baseUrl,n=void 0===e?"":e,i=t.source,r=void 0===i?"":i,s=t.range,a=void 0===s?"":s,o=t.indexRange,u=void 0===o?"":o,l={uri:r,resolvedUri:U(n||"",r)};if(a||u){var c=(a||u).split("-"),A=parseInt(c[0],10),h=parseInt(c[1],10);l.byterange={length:h-A+1,offset:A}}return l},At=function(t){return t&&"number"!=typeof t&&(t=parseInt(t,10)),isNaN(t)?null:t},ht={static:function(t){var e=t.duration,n=t.timescale,i=void 0===n?1:n,r=t.sourceDuration,s=At(t.endNumber);return{start:0,end:"number"==typeof s?s:Math.ceil(r/(e/i))}},dynamic:function(t){var e=t.NOW,n=t.clientOffset,i=t.availabilityStartTime,r=t.timescale,s=void 0===r?1:r,a=t.duration,o=t.start,u=void 0===o?0:o,l=t.minimumUpdatePeriod,c=void 0===l?0:l,A=t.timeShiftBufferDepth,h=void 0===A?1/0:A,d=At(t.endNumber),f=(e+n)/1e3,p=i+u,g=f+c-p,m=Math.ceil(g*s/a),v=Math.floor((f-p-h)*s/a),y=Math.floor((f-p)*s/a);return{start:Math.max(0,v),end:"number"==typeof d?d:Math.min(m,y)}}},dt=function(t){var e=t.type,n=void 0===e?"static":e,i=t.duration,r=t.timescale,s=void 0===r?1:r,a=t.sourceDuration,o=ht[n](t),u=function(t,e){for(var n=[],i=t;i<e;i++)n.push(i);return n}(o.start,o.end).map(function(t){return function(e,n){var i=t.duration,r=t.timescale,s=void 0===r?1:r,a=t.periodIndex,o=t.startNumber;return{number:(void 0===o?1:o)+e,duration:i/s,timeline:a,time:n*i}}}(t));if("static"===n){var l=u.length-1;u[l].duration=a-i/s*l}return u},ft=function(t){var e=t.baseUrl,n=t.initialization,i=void 0===n?{}:n,r=t.sourceDuration,s=t.indexRange,a=void 0===s?"":s,o=t.duration;if(!e)throw new Error(ot);var u=ct({baseUrl:e,source:i.sourceURL,range:i.range}),l=ct({baseUrl:e,source:e,indexRange:a});if(l.map=u,o){var c=dt(t);c.length&&(l.duration=c[0].duration,l.timeline=c[0].timeline)}else r&&(l.duration=r,l.timeline=0);return l.number=0,[l]},pt=function(t,e,n){for(var i=t.sidx.map?t.sidx.map:null,r=t.sidx.duration,s=t.timeline||0,a=t.sidx.byterange,o=a.offset+a.length,u=e.timescale,l=e.references.filter(function(t){return 1!==t.referenceType}),c=[],A=o+e.firstOffset,h=0;h<l.length;h++){var d=e.references[h],f=d.referencedSize,p=d.subsegmentDuration,g=ft({baseUrl:n,timescale:u,timeline:s,periodIndex:s,duration:p,sourceDuration:r,indexRange:A+"-"+(A+f-1)})[0];i&&(g.map=i),c.push(g),A+=f}return t.segments=c,t},gt=function(t){return t&&t.uri+"-"+(e=t.byterange,n=e.offset+e.length-1,e.offset+"-"+n);var e,n},mt=function(t){var e;return(e=t.reduce(function(t,e){var n,i=e.attributes.id+(e.attributes.lang||"");t[i]?(e.segments[0]&&(e.segments[0].discontinuity=!0),(n=t[i].segments).push.apply(n,e.segments),e.attributes.contentProtection&&(t[i].attributes.contentProtection=e.attributes.contentProtection)):t[i]=e;return t},{}),Object.keys(e).map(function(t){return e[t]})).map(function(t){var e,n;return t.discontinuityStarts=(e=t.segments,n="discontinuity",e.reduce(function(t,e,i){return e[n]&&t.push(i),t},[])),t})},vt=function(t,e){var n=gt(t.sidx),i=n&&e[n]&&e[n].sidx;return i&&pt(t,i,t.sidx.resolvedUri),t},yt=function(t){var e,n=t.attributes,i=t.segments,r=t.sidx,s={attributes:(e={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:i,mediaSequence:i.length?i[0].number:1};return n.contentProtection&&(s.contentProtection=n.contentProtection),r&&(s.sidx=r),s},bt=function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},_t=function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},wt=function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType},Bt=function(t,e,n){var i;if(void 0===n&&(n={}),!t.length)return{};var r=t[0].attributes,s=r.sourceDuration,a=r.type,o=void 0===a?"static":a,u=r.suggestedPresentationDelay,l=r.minimumUpdatePeriod,c=mt(t.filter(bt)).map(yt),A=mt(t.filter(_t)),h=t.filter(wt),d=t.map(function(t){return t.attributes.captionServices}).filter(Boolean),f={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(i={AUDIO:{},VIDEO:{}},i["CLOSED-CAPTIONS"]={},i.SUBTITLES={},i),uri:"",duration:s,playlists:function(t,e){if(void 0===e&&(e={}),!Object.keys(e).length)return t;for(var n in t)t[n]=vt(t[n],e);return t}(c,n)};l>=0&&(f.minimumUpdatePeriod=1e3*l),e&&(f.locations=e),"dynamic"===o&&(f.suggestedPresentationDelay=u);var p=0===f.playlists.length;return A.length&&(f.mediaGroups.AUDIO.audio=function(t,e,n){var i;void 0===e&&(e={}),void 0===n&&(n=!1);var r=t.reduce(function(t,r){var s=r.attributes.role&&r.attributes.role.value||"",a=r.attributes.lang||"",o=r.attributes.label||"main";if(a&&!r.attributes.label){var u=s?" ("+s+")":"";o=""+r.attributes.lang+u}t[o]||(t[o]={language:a,autoselect:!0,default:"main"===s,playlists:[],uri:""});var l=vt(function(t,e){var n,i=t.attributes,r=t.segments,s=t.sidx,a={attributes:(n={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs},n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===(i.type||"static"),timeline:i.periodIndex,resolvedUri:"",targetDuration:i.duration,segments:r,mediaSequence:r.length?r[0].number:1};return i.contentProtection&&(a.contentProtection=i.contentProtection),s&&(a.sidx=s),e&&(a.attributes.AUDIO="audio",a.attributes.SUBTITLES="subs"),a}(r,n),e);return t[o].playlists.push(l),void 0===i&&"main"===s&&((i=r).default=!0),t},{});i||(r[Object.keys(r)[0]].default=!0);return r}(A,n,p)),h.length&&(f.mediaGroups.SUBTITLES.subs=function(t,e){return void 0===e&&(e={}),t.reduce(function(t,n){var i=n.attributes.lang||"text";return t[i]||(t[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),t[i].playlists.push(vt(function(t){var e,n=t.attributes,i=t.segments;void 0===i&&(i=[{uri:n.baseUrl,timeline:n.periodIndex,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var r=((e={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,e);return n.codecs&&(r.CODECS=n.codecs),{attributes:r,uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:n.baseUrl||"",targetDuration:n.duration,segments:i,mediaSequence:i.length?i[0].number:1}}(n),e)),t},{})}(h,n)),d.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=d.reduce(function(t,e){return e?(e.forEach(function(e){var n=e.channel,i=e.language;t[i]={autoselect:!1,default:!1,instreamId:n,language:i},e.hasOwnProperty("aspectRatio")&&(t[i].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[i].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[i]["3D"]=e["3D"])}),t):t},{})),f},Ct=function(t,e,n){var i=t.NOW,r=t.clientOffset,s=t.availabilityStartTime,a=t.timescale,o=void 0===a?1:a,u=t.start,l=void 0===u?0:u,c=t.minimumUpdatePeriod,A=(i+r)/1e3+(void 0===c?0:c)-(s+l);return Math.ceil((A*o-e)/n)},Tt=function(t,e){for(var n=t.type,i=void 0===n?"static":n,r=t.minimumUpdatePeriod,s=void 0===r?0:r,a=t.media,o=void 0===a?"":a,u=t.sourceDuration,l=t.timescale,c=void 0===l?1:l,A=t.startNumber,h=void 0===A?1:A,d=t.periodIndex,f=[],p=-1,g=0;g<e.length;g++){var m=e[g],v=m.d,y=m.r||0,b=m.t||0;p<0&&(p=b),b&&b>p&&(p=b);var _=void 0;if(y<0){var w=g+1;_=w===e.length?"dynamic"===i&&s>0&&o.indexOf("$Number$")>0?Ct(t,p,v):(u*c-p)/v:(e[w].t-p)/v}else _=y+1;for(var B=h+f.length+_,C=h+f.length;C<B;)f.push({number:C,duration:v/c,time:p,timeline:d}),p+=v,C++}return f},Et=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,St=function(t,e){return t.replace(Et,function(t){return function(e,n,i,r){if("$$"===e)return"$";if(void 0===t[n])return e;var s=""+t[n];return"RepresentationID"===n?s:(r=i?parseInt(r,10):1,s.length>=r?s:""+new Array(r-s.length+1).join("0")+s)}}(e))},kt=function(t,e){var n={RepresentationID:t.id,Bandwidth:t.bandwidth||0},i=t.initialization,r=void 0===i?{sourceURL:"",range:""}:i,s=ct({baseUrl:t.baseUrl,source:St(r.sourceURL,n),range:r.range});return function(t,e){return t.duration||e?t.duration?dt(t):Tt(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodIndex}]}(t,e).map(function(e){n.Number=e.number,n.Time=e.time;var i=St(t.media||"",n),r={uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:U(t.baseUrl||"",i),map:s,number:e.number};return t.presentationTimeOffset&&(r.presentationTimeOffset=t.presentationTimeOffset),r})},xt=function(t,e){var n=t.duration,i=t.segmentUrls,r=void 0===i?[]:i;if(!n&&!e||n&&e)throw new Error(ut);var s,a=r.map(function(e){return function(t,e){var n=t.baseUrl,i=t.initialization,r=void 0===i?{}:i,s=ct({baseUrl:n,source:r.sourceURL,range:r.range}),a=ct({baseUrl:n,source:e.media,range:e.mediaRange});return a.map=s,a}(t,e)});return n&&(s=dt(t)),e&&(s=Tt(t,e)),s.map(function(t,e){if(a[e]){var n=a[e];return n.timeline=t.timeline,n.duration=t.duration,n.number=t.number,n}}).filter(function(t){return t})},Ut=function(t){var e,n,i=t.attributes,r=t.segmentInfo;r.template?(n=kt,e=et(i,r.template),r.template.presentationTimeOffset&&(e.presentationTimeOffset=r.template.presentationTimeOffset/r.template.timescale)):r.base?(n=ft,e=et(i,r.base)):r.list&&(n=xt,e=et(i,r.list));var s={attributes:i};if(!n)return s;var a=n(e,r.timeline);if(e.duration){var o=e,u=o.duration,l=o.timescale,c=void 0===l?1:l;e.duration=u/c}else a.length?e.duration=a.reduce(function(t,e){return Math.max(t,Math.ceil(e.duration))},0):e.duration=0;return s.attributes=e,s.segments=a,r.base&&e.indexRange&&(s.sidx=a[0],s.segments=[]),s},It=function(t,e){return it(t.childNodes).filter(function(t){return t.tagName===e})},Ft=function(t){return t.textContent.trim()},Ot=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var n=e.slice(1),i=n[0],r=n[1],s=n[2],a=n[3],o=n[4],u=n[5];return 31536e3*parseFloat(i||0)+2592e3*parseFloat(r||0)+86400*parseFloat(s||0)+3600*parseFloat(a||0)+60*parseFloat(o||0)+parseFloat(u||0)},Qt={mediaPresentationDuration:function(t){return Ot(t)},availabilityStartTime:function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&&(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:function(t){return Ot(t)},suggestedPresentationDelay:function(t){return Ot(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return Ot(t)},start:function(t){return Ot(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?Ot(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},Nt=function(t){return t&&t.attributes?it(t.attributes).reduce(function(t,e){var n=Qt[e.name]||Qt.DEFAULT;return t[e.name]=n(e.value),t},{}):{}},Lt={"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"},Dt=function(t,e){return e.length?nt(t.map(function(t){return e.map(function(e){return U(t,Ft(e))})})):t},Pt=function(t){var e=It(t,"SegmentTemplate")[0],n=It(t,"SegmentList")[0],i=n&&It(n,"SegmentURL").map(function(t){return et({tag:"SegmentURL"},Nt(t))}),r=It(t,"SegmentBase")[0],s=n||e,a=s&&It(s,"SegmentTimeline")[0],o=n||r||e,u=o&&It(o,"Initialization")[0],l=e&&Nt(e);l&&u?l.initialization=u&&Nt(u):l&&l.initialization&&(l.initialization={sourceURL:l.initialization});var c={template:l,timeline:a&&It(a,"S").map(function(t){return Nt(t)}),list:n&&et(Nt(n),{segmentUrls:i,initialization:Nt(u)}),base:r&&et(Nt(r),{initialization:Nt(u)})};return Object.keys(c).forEach(function(t){c[t]||delete c[t]}),c},Rt=function(t,e,n){return function(i){var r,s=Nt(i),a=Dt(e,It(i,"BaseURL")),o=It(i,"Role")[0],u={role:Nt(o)},l=et(t,s,u),c=It(i,"Accessibility")[0],A="urn:scte:dash:cc:cea-608:2015"===(r=Nt(c)).schemeIdUri?r.value.split(";").map(function(t){var e,n;if(n=t,/^CC\d=/.test(t)){var i=t.split("=");e=i[0],n=i[1]}else/^CC\d$/.test(t)&&(e=t);return{channel:e,language:n}}):"urn:scte:dash:cc:cea-708:2015"===r.schemeIdUri?r.value.split(";").map(function(t){var e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var n=t.split("="),i=n[0],r=n[1],s=void 0===r?"":r;e.channel=i,e.language=t,s.split(",").forEach(function(t){var n=t.split(":"),i=n[0],r=n[1];"lang"===i?e.language=r:"er"===i?e.easyReader=Number(r):"war"===i?e.aspectRatio=Number(r):"3D"===i&&(e["3D"]=Number(r))})}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e}):void 0;A&&(l=et(l,{captionServices:A}));var h=It(i,"Label")[0];if(h&&h.childNodes.length){var d=h.childNodes[0].nodeValue.trim();l=et(l,{label:d})}var f=It(i,"ContentProtection").reduce(function(t,e){var n=Nt(e),i=Lt[n.schemeIdUri];if(i){t[i]={attributes:n};var r=It(e,"cenc:pssh")[0];if(r){var s=Ft(r),a=s&&Object(F.a)(s);t[i].pssh=a}}return t},{});Object.keys(f).length&&(l=et(l,{contentProtection:f}));var p=Pt(i),g=It(i,"Representation"),m=et(n,p);return nt(g.map(function(t,e,n){return function(i){var r=It(i,"BaseURL"),s=Dt(e,r),a=et(t,Nt(i)),o=Pt(i);return s.map(function(t){return{segmentInfo:et(n,o),attributes:et(a,{baseUrl:t})}})}}(l,a,m)))}},Ht=function(t,e){void 0===e&&(e={});var n=e,i=n.manifestUri,r=void 0===i?"":i,s=n.NOW,a=void 0===s?Date.now():s,u=n.clientOffset,l=void 0===u?0:u,c=It(t,"Period");if(!c.length)throw new Error(rt);var A=It(t,"Location"),h=Nt(t),d=Dt([r],It(t,"BaseURL"));return h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=a,h.clientOffset=l,A.length&&(h.locations=A.map(Ft)),{locations:h.locations,representationInfo:nt(c.map(function(t,e){return function(n,i){var r=Dt(e,It(n,"BaseURL")),s=Nt(n),a=parseInt(s.id,10),u=o.a.isNaN(a)?i:a,l=et(t,{periodIndex:u}),c=It(n,"AdaptationSet"),A=Pt(n);return nt(c.map(Rt(l,r,A)))}}(h,d)))}},Mt=function(t){if(""===t)throw new Error(st);var e,n,i=new Z.DOMParser;try{n=(e=i.parseFromString(t,"application/xml"))&&"MPD"===e.documentElement.tagName?e.documentElement:null}catch(t){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(at);return n},Kt=function(t,e){void 0===e&&(e={});var n=Ht(Mt(t),e),i=n.representationInfo.map(Ut);return Bt(i,n.locations,e.sidxMapping)},jt=function(t){return function(t){var e=It(t,"UTCTiming")[0];if(!e)return null;var n=Nt(e);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(lt)}return n}(Mt(t))},Vt=n("GlnR"),zt=n.n(Vt),$t=function(t){return t instanceof Uint8Array?t:(Array.isArray(t)||(e=t,ArrayBuffer.isView(e))||t instanceof ArrayBuffer||(t="number"!=typeof t||"number"==typeof t&&t!=t?0:[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0));var e},Wt=o.a.BigInt||Number,Gt=[Wt("0x1"),Wt("0x100"),Wt("0x10000"),Wt("0x1000000"),Wt("0x100000000"),Wt("0x10000000000"),Wt("0x1000000000000"),Wt("0x100000000000000"),Wt("0x10000000000000000")],Xt=(i=new Uint16Array([65484]),255===(r=new Uint8Array(i.buffer,i.byteOffset,i.byteLength))[0]||r[0],function(t,e){var n=void 0===e?{}:e,i=n.signed,r=void 0!==i&&i,s=n.le,a=void 0!==s&&s;t=$t(t);var o=a?"reduce":"reduceRight",u=(t[o]?t[o]:Array.prototype[o]).call(t,function(e,n,i){var r=a?i:Math.abs(i+1-t.length);return e+Wt(n)*Gt[r]},Wt(0));if(r){var l=Gt[t.length]/Wt(2)-Wt(1);(u=Wt(u))>l&&(u-=l,u-=l,u-=Wt(2))}return Number(u)}),qt=function(t,e){var n=(void 0===e?{}:e).le,i=void 0!==n&&n;("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&t!=t)&&(t=0),t=Wt(t);for(var r,s=(r=t,Math.ceil(function(t){return t.toString(2).length}(r)/8)),a=new Uint8Array(new ArrayBuffer(s)),o=0;o<s;o++){var u=i?o:Math.abs(o+1-a.length);a[u]=Number(t/Gt[o]&Wt(255)),t<0&&(a[u]=Math.abs(~a[u]),a[u]-=0===o?1:2)}return a},Yt=function(t){if(!t)return"";t=Array.prototype.slice.call(t);var e=String.fromCharCode.apply(null,$t(t));try{return decodeURIComponent(escape(e))}catch(t){}return e},Jt=function(t,e){if("string"!=typeof t&&t&&"function"==typeof t.toString&&(t=t.toString()),"string"!=typeof t)return new Uint8Array;e||(t=unescape(encodeURIComponent(t)));for(var n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n},Zt=function(t,e,n){var i=void 0===n?{}:n,r=i.offset,s=void 0===r?0:r,a=i.mask,o=void 0===a?[]:a;t=$t(t);var u=(e=$t(e)).every?e.every:Array.prototype.every;return e.length&&t.length-s>=e.length&&u.call(e,function(e,n){return e===(o[n]?o[n]&t[s+n]:t[s+n])})},te=$t([73,68,51]),ee=function t(e,n){return void 0===n&&(n=0),(e=$t(e)).length-n<10||!Zt(e,te,{offset:n})?n:(n+=function(t,e){void 0===e&&(e=0);var n=(t=$t(t))[e+5],i=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return(16&n)>>4?i+20:i+10}(e,n),t(e,n))},ne=(new Uint8Array([79,112,117,115,72,101,97,100]),function(t){return"string"==typeof t?Jt(t):t}),ie=function(t){t=$t(t);for(var e=[],n=0;t.length>n;){var i=t[n],r=0,a=0,o=t[++a];for(a++;128&o;)r=(127&o)<<7,o=t[a],a++;r+=127&o;for(var u=0;u<s.length;u++){var l=s[u],c=l.id,A=l.parser;if(i===c){e.push(A(t.subarray(a,a+r)));break}}n+=r+a}return e};s=[{id:3,parser:function(t){var e={tag:3,id:t[0]<<8|t[1],flags:t[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&e.flags&&(e.dependsOnEsId=t[e.size]<<8|t[e.size+1],e.size+=2),64&e.flags){var n=t[e.size];e.url=Yt(t.subarray(e.size+1,e.size+1+n)),e.size+=n}return 32&e.flags&&(e.ocrEsId=t[e.size]<<8|t[e.size+1],e.size+=2),e.descriptors=ie(t.subarray(e.size))||[],e}},{id:4,parser:function(t){return{tag:4,oti:t[0],streamType:t[1],bufferSize:t[2]<<16|t[3]<<8|t[4],maxBitrate:t[5]<<24|t[6]<<16|t[7]<<8|t[8],avgBitrate:t[9]<<24|t[10]<<16|t[11]<<8|t[12],descriptors:ie(t.subarray(13))}}},{id:5,parser:function(t){return{tag:5,bytes:t}}},{id:6,parser:function(t){return{tag:6,bytes:t}}}];var re=function t(e,n,i){void 0===i&&(i=!1),n=function(t){return Array.isArray(t)?t.map(function(t){return ne(t)}):[ne(t)]}(n),e=$t(e);var r=[];if(!n.length)return r;for(var s=0;s<e.length;){var a=(e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3])>>>0,o=e.subarray(s+4,s+8);if(0===a)break;var u=s+a;if(u>e.length){if(i)break;u=e.length}var l=e.subarray(s+8,u);Zt(o,n[0])&&(1===n.length?r.push(l):r.push.apply(r,t(l,n.slice(1),i))),s=u}return r},se={EBML:$t([26,69,223,163]),DocType:$t([66,130]),Segment:$t([24,83,128,103]),SegmentInfo:$t([21,73,169,102]),Tracks:$t([22,84,174,107]),Track:$t([174]),TrackNumber:$t([215]),DefaultDuration:$t([35,227,131]),TrackEntry:$t([174]),TrackType:$t([131]),FlagDefault:$t([136]),CodecID:$t([134]),CodecPrivate:$t([99,162]),VideoTrack:$t([224]),AudioTrack:$t([225]),Cluster:$t([31,67,182,117]),Timestamp:$t([231]),TimestampScale:$t([42,215,177]),BlockGroup:$t([160]),BlockDuration:$t([155]),Block:$t([161]),SimpleBlock:$t([163])},ae=[128,64,32,16,8,4,2,1],oe=function(t,e,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var r=function(t){for(var e=1,n=0;n<ae.length&&!(t&ae[n]);n++)e++;return e}(t[e]),s=t.subarray(e,e+r);return n&&((s=Array.prototype.slice.call(t,e,e+r))[0]^=ae[r-1]),{length:r,value:Xt(s,{signed:i}),bytes:s}},ue=function t(e){return"string"==typeof e?e.match(/.{1,2}/g).map(function(e){return t(e)}):"number"==typeof e?qt(e):e},le=function t(e,n,i){if(i>=n.length)return n.length;var r=oe(n,i,!1);if(Zt(e.bytes,r.bytes))return i;var s=oe(n,i+r.length);return t(e,n,i+s.length+s.value+r.length)},ce=function t(e,n){n=function(t){return Array.isArray(t)?t.map(function(t){return ue(t)}):[ue(t)]}(n),e=$t(e);var i=[];if(!n.length)return i;for(var r=0;r<e.length;){var s=oe(e,r,!1),a=oe(e,r+s.length),o=r+s.length+a.length;127===a.value&&(a.value=le(s,e,o),a.value!==e.length&&(a.value-=o));var u=o+a.value>e.length?e.length:o+a.value,l=e.subarray(o,u);Zt(n[0],s.bytes)&&(1===n.length?i.push(l):i=i.concat(t(l,n.slice(1)))),r+=s.length+a.length+l.length}return i},Ae=$t([0,0,0,1]),he=$t([0,0,1]),de=$t([0,0,3]),fe=function(t){for(var e=[],n=1;n<t.length-2;)Zt(t.subarray(n,n+3),de)&&(e.push(n+2),n++),n++;if(0===e.length)return t;var i=t.length-e.length,r=new Uint8Array(i),s=0;for(n=0;n<i;s++,n++)s===e[0]&&(s++,e.shift()),r[n]=t[s];return r},pe=function(t,e,n,i){void 0===i&&(i=1/0),t=$t(t),n=[].concat(n);for(var r,s=0,a=0;s<t.length&&(a<i||r);){var o=void 0;if(Zt(t.subarray(s),Ae)?o=4:Zt(t.subarray(s),he)&&(o=3),o){if(a++,r)return fe(t.subarray(r,s));var u=void 0;"h264"===e?u=31&t[s+o]:"h265"===e&&(u=t[s+o]>>1&63),-1!==n.indexOf(u)&&(r=s+o),s+=o+("h264"===e?1:2)}else s++}return t.subarray(0,0)},ge={webm:$t([119,101,98,109]),matroska:$t([109,97,116,114,111,115,107,97]),flac:$t([102,76,97,67]),ogg:$t([79,103,103,83]),ac3:$t([11,119]),riff:$t([82,73,70,70]),avi:$t([65,86,73]),wav:$t([87,65,86,69]),"3gp":$t([102,116,121,112,51,103]),mp4:$t([102,116,121,112]),fmp4:$t([115,116,121,112]),mov:$t([102,116,121,112,113,116]),moov:$t([109,111,111,118]),moof:$t([109,111,111,102])},me={aac:function(t){var e=ee(t);return Zt(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=ee(t);return Zt(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=ce(t,[se.EBML,se.DocType])[0];return Zt(e,ge.webm)},mkv:function(t){var e=ce(t,[se.EBML,se.DocType])[0];return Zt(e,ge.matroska)},mp4:function(t){return!me["3gp"](t)&&!me.mov(t)&&(!(!Zt(t,ge.mp4,{offset:4})&&!Zt(t,ge.fmp4,{offset:4}))||(!(!Zt(t,ge.moof,{offset:4})&&!Zt(t,ge.moov,{offset:4}))||void 0))},mov:function(t){return Zt(t,ge.mov,{offset:4})},"3gp":function(t){return Zt(t,ge["3gp"],{offset:4})},ac3:function(t){var e=ee(t);return Zt(t,ge.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return 71===t[0];for(var e=0;e+188<t.length&&e<188;){if(71===t[e]&&71===t[e+188])return!0;e+=1}return!1},flac:function(t){var e=ee(t);return Zt(t,ge.flac,{offset:e})},ogg:function(t){return Zt(t,ge.ogg)},avi:function(t){return Zt(t,ge.riff)&&Zt(t,ge.avi,{offset:8})},wav:function(t){return Zt(t,ge.riff)&&Zt(t,ge.wav,{offset:8})},h264:function(t){return function(t,e,n){return pe(t,"h264",e,n)}(t,7,3).length},h265:function(t){return function(t,e,n){return pe(t,"h265",e,n)}(t,[32,33],3).length}},ve=Object.keys(me).filter(function(t){return"ts"!==t&&"h264"!==t&&"h265"!==t}).concat(["ts","h264","h265"]);ve.forEach(function(t){var e=me[t];me[t]=function(t){return e($t(t))}});for(var ye,be=me,_e=function(t){t=$t(t);for(var e=0;e<ve.length;e++){var n=ve[e];if(be[n](t))return n}return""},we=n("lamJ"),Be="7.14.3",Ce={prefixed:!0},Te=[["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"]],Ee=Te[0],Se=0;Se<Te.length;Se++)if(Te[Se][1]in l.a){ye=Te[Se];break}if(ye){for(var ke=0;ke<ye.length;ke++)Ce[Ee[ke]]=ye[ke];Ce.prefixed=ye[0]!==Ee[0]}var xe=[],Ue=function(t,e){return function(n,i,r){var s=e.levels[i],a=new RegExp("^("+s+")$");if("log"!==n&&r.unshift(n.toUpperCase()+":"),r.unshift(t+":"),xe){xe.push([].concat(r));var u=xe.length-1e3;xe.splice(0,u>0?u:0)}if(o.a.console){var l=o.a.console[n];l||"debug"!==n||(l=o.a.console.info||o.a.console.log),l&&s&&a.test(n)&&l[Array.isArray(r)?"apply":"call"](o.a.console,r)}}};var Ie=function t(e){var n,i="info",r=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n("log",i,e)};return n=Ue(e,r),r.createLogger=function(n){return t(e+": "+n)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:i},r.level=function(t){if("string"==typeof t){if(!r.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');i=t}return i},(r.history=function(){return xe?[].concat(xe):[]}).filter=function(t){return(xe||[]).filter(function(e){return new RegExp(".*"+t+".*").test(e[0])})},r.history.clear=function(){xe&&(xe.length=0)},r.history.disable=function(){null!==xe&&(xe.length=0,xe=null)},r.history.enable=function(){null===xe&&(xe=[])},r.error=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return n("error",i,e)},r.warn=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return n("warn",i,e)},r.debug=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return n("debug",i,e)},r}("VIDEOJS"),Fe=Ie.createLogger,Oe=Object.prototype.toString,Qe=function(t){return De(t)?Object.keys(t):[]};function Ne(t,e){Qe(t).forEach(function(n){return e(t[n],n)})}function Le(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return Object.assign?A.a.apply(void 0,[t].concat(n)):(n.forEach(function(e){e&&Ne(e,function(e,n){t[n]=e})}),t)}function De(t){return!!t&&"object"==typeof t}function Pe(t){return De(t)&&"[object Object]"===Oe.call(t)&&t.constructor===Object}function Re(t,e){if(!t||!e)return"";if("function"==typeof o.a.getComputedStyle){var n;try{n=o.a.getComputedStyle(t)}catch(t){return""}return n?n.getPropertyValue(e)||n[e]:""}return""}var He,Me,Ke,je=o.a.navigator&&o.a.navigator.userAgent||"",Ve=/AppleWebKit\/([\d.]+)/i.exec(je),ze=Ve?parseFloat(Ve.pop()):null,$e=/iPod/i.test(je),We=(He=je.match(/OS (\d+)_/i))&&He[1]?He[1]:null,Ge=/Android/i.test(je),Xe=function(){var t=je.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&&parseFloat(t[1]),n=t[2]&&parseFloat(t[2]);return e&&n?parseFloat(t[1]+"."+t[2]):e||null}(),qe=Ge&&Xe<5&&ze<537,Ye=/Firefox/i.test(je),Je=/Edg/i.test(je),Ze=!Je&&(/Chrome/i.test(je)||/CriOS/i.test(je)),tn=function(){var t=je.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),en=(Me=/MSIE\s(\d+)\.\d/.exec(je),!(Ke=Me&&parseFloat(Me[1]))&&/Trident\/7.0/i.test(je)&&/rv:11.0/.test(je)&&(Ke=11),Ke),nn=/Safari/i.test(je)&&!Ze&&!Ge&&!Je,rn=/Windows/i.test(je),sn=Boolean(dn()&&("ontouchstart"in o.a||o.a.navigator.maxTouchPoints||o.a.DocumentTouch&&o.a.document instanceof o.a.DocumentTouch)),an=/iPad/i.test(je)||nn&&sn&&!/iPhone/i.test(je),on=/iPhone/i.test(je)&&!an,un=on||an||$e,ln=(nn||un)&&!Ze,cn=Object.freeze({__proto__:null,IS_IPOD:$e,IOS_VERSION:We,IS_ANDROID:Ge,ANDROID_VERSION:Xe,IS_NATIVE_ANDROID:qe,IS_FIREFOX:Ye,IS_EDGE:Je,IS_CHROME:Ze,CHROME_VERSION:tn,IE_VERSION:en,IS_SAFARI:nn,IS_WINDOWS:rn,TOUCH_ENABLED:sn,IS_IPAD:an,IS_IPHONE:on,IS_IOS:un,IS_ANY_SAFARI:ln});function An(t){return"string"==typeof t&&Boolean(t.trim())}function hn(t){if(t.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function dn(){return l.a===o.a.document}function fn(t){return De(t)&&1===t.nodeType}function pn(){try{return o.a.parent!==o.a.self}catch(t){return!0}}function gn(t){return function(e,n){if(!An(e))return l.a[t](null);An(n)&&(n=l.a.querySelector(n));var i=fn(n)?n:l.a;return i[t]&&i[t](e)}}function mn(t,e,n,i){void 0===t&&(t="div"),void 0===e&&(e={}),void 0===n&&(n={});var r=l.a.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(Ie.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+t+" to "+n+"."),r.setAttribute(t,n)):"textContent"===t?vn(r,n):r[t]===n&&"tabIndex"!==t||(r[t]=n)}),Object.getOwnPropertyNames(n).forEach(function(t){r.setAttribute(t,n[t])}),i&&Dn(r,i),r}function vn(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function yn(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function bn(t,e){return hn(e),t.classList?t.classList.contains(e):(n=e,new RegExp("(^|\\s)"+n+"($|\\s)")).test(t.className);var n}function _n(t,e){return t.classList?t.classList.add(e):bn(t,e)||(t.className=(t.className+" "+e).trim()),t}function wn(t,e){return t?(t.classList?t.classList.remove(e):(hn(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t):(Ie.warn("removeClass was called with an element that doesn't exist"),null)}function Bn(t,e,n){var i=bn(t,e);if("function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!i),n!==i)return n?_n(t,e):wn(t,e),t}function Cn(t,e){Object.getOwnPropertyNames(e).forEach(function(n){var i=e[n];null===i||void 0===i||!1===i?t.removeAttribute(n):t.setAttribute(n,!0===i?"":i)})}function Tn(t){var e={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(t&&t.attributes&&t.attributes.length>0)for(var i=t.attributes,r=i.length-1;r>=0;r--){var s=i[r].name,a=i[r].value;"boolean"!=typeof t[s]&&-1===n.indexOf(","+s+",")||(a=null!==a),e[s]=a}return e}function En(t,e){return t.getAttribute(e)}function Sn(t,e,n){t.setAttribute(e,n)}function kn(t,e){t.removeAttribute(e)}function xn(){l.a.body.focus(),l.a.onselectstart=function(){return!1}}function Un(){l.a.onselectstart=function(){return!0}}function In(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),n.height||(n.height=parseFloat(Re(t,"height"))),n.width||(n.width=parseFloat(Re(t,"width"))),n}}function Fn(t){if(!t||t&&!t.offsetParent)return{left:0,top:0,width:0,height:0};for(var e=t.offsetWidth,n=t.offsetHeight,i=0,r=0;t.offsetParent&&t!==l.a[Ce.fullscreenElement];)i+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent;return{left:i,top:r,width:e,height:n}}function On(t,e){var n={x:0,y:0};if(un)for(var i=t;i&&"html"!==i.nodeName.toLowerCase();){var r=Re(i,"transform");if(/^matrix/.test(r)){var s=r.slice(7,-1).split(/,\s/).map(Number);n.x+=s[4],n.y+=s[5]}else if(/^matrix3d/.test(r)){var a=r.slice(9,-1).split(/,\s/).map(Number);n.x+=a[12],n.y+=a[13]}i=i.parentNode}var o={},u=Fn(e.target),l=Fn(t),c=l.width,A=l.height,h=e.offsetY-(l.top-u.top),d=e.offsetX-(l.left-u.left);return e.changedTouches&&(d=e.changedTouches[0].pageX-l.left,h=e.changedTouches[0].pageY+l.top,un&&(d-=n.x,h-=n.y)),o.y=1-Math.max(0,Math.min(1,h/A)),o.x=Math.max(0,Math.min(1,d/c)),o}function Qn(t){return De(t)&&3===t.nodeType}function Nn(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function Ln(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),fn(t)||Qn(t)?t:"string"==typeof t&&/\S/.test(t)?l.a.createTextNode(t):void 0}).filter(function(t){return t})}function Dn(t,e){return Ln(e).forEach(function(e){return t.appendChild(e)}),t}function Pn(t,e){return Dn(Nn(t),e)}function Rn(t){return void 0===t.button&&void 0===t.buttons||(0===t.button&&void 0===t.buttons||("mouseup"===t.type&&0===t.button&&0===t.buttons||0===t.button&&1===t.buttons))}var Hn,Mn=gn("querySelector"),Kn=gn("querySelectorAll"),jn=Object.freeze({__proto__:null,isReal:dn,isEl:fn,isInFrame:pn,createEl:mn,textContent:vn,prependTo:yn,hasClass:bn,addClass:_n,removeClass:wn,toggleClass:Bn,setAttributes:Cn,getAttributes:Tn,getAttribute:En,setAttribute:Sn,removeAttribute:kn,blockTextSelection:xn,unblockTextSelection:Un,getBoundingClientRect:In,findPosition:Fn,getPointerPosition:On,isTextNode:Qn,emptyEl:Nn,normalizeContent:Ln,appendContent:Dn,insertContent:Pn,isSingleLeftClick:Rn,$:Mn,$$:Kn}),Vn=!1,zn=function(){if(!1!==Hn.options.autoSetup){var t=Array.prototype.slice.call(l.a.getElementsByTagName("video")),e=Array.prototype.slice.call(l.a.getElementsByTagName("audio")),n=Array.prototype.slice.call(l.a.getElementsByTagName("video-js")),i=t.concat(e,n);if(i&&i.length>0)for(var r=0,s=i.length;r<s;r++){var a=i[r];if(!a||!a.getAttribute){$n(1);break}void 0===a.player&&null!==a.getAttribute("data-setup")&&Hn(a)}else Vn||$n(1)}};function $n(t,e){dn()&&(e&&(Hn=e),o.a.setTimeout(zn,t))}function Wn(){Vn=!0,o.a.removeEventListener("load",Wn)}dn()&&("complete"===l.a.readyState?Wn():o.a.addEventListener("load",Wn));var Gn,Xn=function(t){var e=l.a.createElement("style");return e.className=t,e},qn=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e},Yn=3;function Jn(){return Yn++}o.a.WeakMap||(Gn=function(){function t(){this.vdata="vdata"+Math.floor(o.a.performance&&o.a.performance.now()||Date.now()),this.data={}}var e=t.prototype;return e.set=function(t,e){var n=t[this.vdata]||Jn();return t[this.vdata]||(t[this.vdata]=n),this.data[n]=e,this},e.get=function(t){var e=t[this.vdata];if(e)return this.data[e];Ie("We have no data for this element",t)},e.has=function(t){return t[this.vdata]in this.data},e.delete=function(t){var e=t[this.vdata];e&&(delete this.data[e],delete t[this.vdata])},t}());var Zn,ti=o.a.WeakMap?new WeakMap:new Gn;function ei(t,e){if(ti.has(t)){var n=ti.get(t);0===n.handlers[e].length&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&ti.delete(t)}}function ni(t,e,n,i){n.forEach(function(n){t(e,n,i)})}function ii(t){if(t.fixed_)return t;function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){var i=t||o.a.event;for(var r in t={},i)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&i.preventDefault||(t[r]=i[r]));if(t.target||(t.target=t.srcElement||l.a),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){i.preventDefault&&i.preventDefault(),t.returnValue=!1,i.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),t.cancelBubble=!0,i.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,null!==t.clientX&&void 0!==t.clientX){var s=l.a.documentElement,a=l.a.body;t.pageX=t.clientX+(s&&s.scrollLeft||a&&a.scrollLeft||0)-(s&&s.clientLeft||a&&a.clientLeft||0),t.pageY=t.clientY+(s&&s.scrollTop||a&&a.scrollTop||0)-(s&&s.clientTop||a&&a.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t.fixed_=!0,t}var ri=function(){if("boolean"!=typeof Zn){Zn=!1;try{var t=Object.defineProperty({},"passive",{get:function(){Zn=!0}});o.a.addEventListener("test",null,t),o.a.removeEventListener("test",null,t)}catch(t){}}return Zn},si=["touchstart","touchmove"];function ai(t,e,n){if(Array.isArray(e))return ni(ai,t,e,n);ti.has(t)||ti.set(t,{});var i=ti.get(t);if(i.handlers||(i.handlers={}),i.handlers[e]||(i.handlers[e]=[]),n.guid||(n.guid=Jn()),i.handlers[e].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(e,n){if(!i.disabled){e=ii(e);var r=i.handlers[e.type];if(r)for(var s=r.slice(0),a=0,o=s.length;a<o&&!e.isImmediatePropagationStopped();a++)try{s[a].call(t,e,n)}catch(t){Ie.error(t)}}}),1===i.handlers[e].length)if(t.addEventListener){var r=!1;ri()&&si.indexOf(e)>-1&&(r={passive:!0}),t.addEventListener(e,i.dispatcher,r)}else t.attachEvent&&t.attachEvent("on"+e,i.dispatcher)}function oi(t,e,n){if(ti.has(t)){var i=ti.get(t);if(i.handlers){if(Array.isArray(e))return ni(oi,t,e,n);var r=function(t,e){i.handlers[e]=[],ei(t,e)};if(void 0!==e){var s=i.handlers[e];if(s)if(n){if(n.guid)for(var a=0;a<s.length;a++)s[a].guid===n.guid&&s.splice(a--,1);ei(t,e)}else r(t,e)}else for(var o in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},o)&&r(t,o)}}}function ui(t,e,n){var i=ti.has(t)?ti.get(t):{},r=t.parentNode||t.ownerDocument;if("string"==typeof e?e={type:e,target:t}:e.target||(e.target=t),e=ii(e),i.dispatcher&&i.dispatcher.call(t,e,n),r&&!e.isPropagationStopped()&&!0===e.bubbles)ui.call(null,r,e,n);else if(!r&&!e.defaultPrevented&&e.target&&e.target[e.type]){ti.has(e.target)||ti.set(e.target,{});var s=ti.get(e.target);e.target[e.type]&&(s.disabled=!0,"function"==typeof e.target[e.type]&&e.target[e.type](),s.disabled=!1)}return!e.defaultPrevented}function li(t,e,n){if(Array.isArray(e))return ni(li,t,e,n);var i=function i(){oi(t,e,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Jn(),ai(t,e,i)}function ci(t,e,n){var i=function i(){oi(t,e,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Jn(),ai(t,e,i)}var Ai,hi=Object.freeze({__proto__:null,fixEvent:ii,on:ai,off:oi,trigger:ui,one:li,any:ci}),di=30,fi=function(t,e,n){e.guid||(e.guid=Jn());var i=e.bind(t);return i.guid=n?n+"_"+e.guid:e.guid,i},pi=function(t,e){var n=o.a.performance.now();return function(){var i=o.a.performance.now();i-n>=e&&(t.apply(void 0,arguments),n=i)}},gi=function(t,e,n,i){var r;void 0===i&&(i=o.a);var s=function(){var s=this,a=arguments,o=function(){r=null,o=null,n||t.apply(s,a)};!r&&n&&t.apply(s,a),i.clearTimeout(r),r=i.setTimeout(o,e)};return s.cancel=function(){i.clearTimeout(r),r=null},s},mi=function(){};mi.prototype.allowedEvents_={},mi.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},ai(this,t,e),this.addEventListener=n},mi.prototype.addEventListener=mi.prototype.on,mi.prototype.off=function(t,e){oi(this,t,e)},mi.prototype.removeEventListener=mi.prototype.off,mi.prototype.one=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},li(this,t,e),this.addEventListener=n},mi.prototype.any=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},ci(this,t,e),this.addEventListener=n},mi.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=ii(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),ui(this,t)},mi.prototype.dispatchEvent=mi.prototype.trigger,mi.prototype.queueTrigger=function(t){var e=this;Ai||(Ai=new Map);var n=t.type||t,i=Ai.get(this);i||(i=new Map,Ai.set(this,i));var r=i.get(n);i.delete(n),o.a.clearTimeout(r);var s=o.a.setTimeout(function(){0===i.size&&(i=null,Ai.delete(e)),e.trigger(t)},0);i.set(n,s)};var vi=function(t){return"function"==typeof t.name?t.name():"string"==typeof t.name?t.name:t.name_?t.name_:t.constructor&&t.constructor.name?t.constructor.name:typeof t},yi=function(t){return t instanceof mi||!!t.eventBusEl_&&["on","one","off","trigger"].every(function(e){return"function"==typeof t[e]})},bi=function(t){return"string"==typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length},_i=function(t,e,n){if(!t||!t.nodeName&&!yi(t))throw new Error("Invalid target for "+vi(e)+"#"+n+"; must be a DOM node or evented object.")},wi=function(t,e,n){if(!bi(t))throw new Error("Invalid event type for "+vi(e)+"#"+n+"; must be a non-empty string or array.")},Bi=function(t,e,n){if("function"!=typeof t)throw new Error("Invalid listener for "+vi(e)+"#"+n+"; must be a function.")},Ci=function(t,e,n){var i,r,s,a=e.length<3||e[0]===t||e[0]===t.eventBusEl_;return a?(i=t.eventBusEl_,e.length>=3&&e.shift(),r=e[0],s=e[1]):(i=e[0],r=e[1],s=e[2]),_i(i,t,n),wi(r,t,n),Bi(s,t,n),{isTargetingSelf:a,target:i,type:r,listener:s=fi(t,s)}},Ti=function(t,e,n,i){_i(t,t,e),t.nodeName?hi[e](t,n,i):t[e](n,i)},Ei={on:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=Ci(this,n,"on"),s=r.isTargetingSelf,a=r.target,o=r.type,u=r.listener;if(Ti(a,"on",o,u),!s){var l=function(){return t.off(a,o,u)};l.guid=u.guid;var c=function(){return t.off("dispose",l)};c.guid=u.guid,Ti(this,"on","dispose",l),Ti(a,"on","dispose",c)}},one:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=Ci(this,n,"one"),s=r.isTargetingSelf,a=r.target,o=r.type,u=r.listener;if(s)Ti(a,"one",o,u);else{var l=function e(){t.off(a,o,e);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];u.apply(null,i)};l.guid=u.guid,Ti(a,"one",o,l)}},any:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=Ci(this,n,"any"),s=r.isTargetingSelf,a=r.target,o=r.type,u=r.listener;if(s)Ti(a,"any",o,u);else{var l=function e(){t.off(a,o,e);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];u.apply(null,i)};l.guid=u.guid,Ti(a,"any",o,l)}},off:function(t,e,n){if(!t||bi(t))oi(this.eventBusEl_,t,e);else{var i=t,r=e;_i(i,this,"off"),wi(r,this,"off"),Bi(n,this,"off"),n=fi(this,n),this.off("dispose",n),i.nodeName?(oi(i,r,n),oi(i,"dispose",n)):yi(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(t,e){_i(this.eventBusEl_,this,"trigger");var n=t&&"string"!=typeof t?t.type:t;if(!bi(n)){var i="Invalid event type for "+vi(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!t)throw new Error(i);(this.log||Ie).error(i)}return ui(this.eventBusEl_,t,e)}};function Si(t,e){void 0===e&&(e={});var n=e.eventBusKey;if(n){if(!t[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');t.eventBusEl_=t[n]}else t.eventBusEl_=mn("span",{className:"vjs-event-bus"});return Le(t,Ei),t.eventedCallbacks&&t.eventedCallbacks.forEach(function(t){t()}),t.on("dispose",function(){t.off(),o.a.setTimeout(function(){t.eventBusEl_=null},0)}),t}var ki={state:{},setState:function(t){var e,n=this;return"function"==typeof t&&(t=t()),Ne(t,function(t,i){n.state[i]!==t&&((e=e||{})[i]={from:n.state[i],to:t}),n.state[i]=t}),e&&yi(this)&&this.trigger({changes:e,type:"statechanged"}),e}};function xi(t,e){return Le(t,ki),t.state=Le({},t.state,e),"function"==typeof t.handleStateChanged&&yi(t)&&t.on("statechanged",t.handleStateChanged),t}var Ui=function(t){return"string"!=typeof t?t:t.replace(/./,function(t){return t.toLowerCase()})},Ii=function(t){return"string"!=typeof t?t:t.replace(/./,function(t){return t.toUpperCase()})};function Fi(){for(var t={},e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.forEach(function(e){e&&Ne(e,function(e,n){Pe(e)?(Pe(t[n])||(t[n]={}),t[n]=Fi(t[n],e)):t[n]=e})}),t}var Oi=function(){function t(){this.map_={}}var e=t.prototype;return e.has=function(t){return t in this.map_},e.delete=function(t){var e=this.has(t);return delete this.map_[t],e},e.set=function(t,e){return this.map_[t]=e,this},e.forEach=function(t,e){for(var n in this.map_)t.call(e,this.map_[n],n,this)},t}(),Qi=o.a.Map?o.a.Map:Oi,Ni=function(){function t(){this.set_={}}var e=t.prototype;return e.has=function(t){return t in this.set_},e.delete=function(t){var e=this.has(t);return delete this.set_[t],e},e.add=function(t){return this.set_[t]=1,this},e.forEach=function(t,e){for(var n in this.set_)t.call(e,n,n,this)},t}(),Li=o.a.Set?o.a.Set:Ni,Di=function(){function t(t,e,n){if(!t&&this.play?this.player_=t=this:this.player_=t,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Fi({},this.options_),e=this.options_=Fi(this.options_,e),this.id_=e.id||e.el&&e.el.id,!this.id_){var i=t&&t.id&&t.id()||"no_player";this.id_=i+"_component_"+Jn()}this.name_=e.name||null,e.el?this.el_=e.el:!1!==e.createEl&&(this.el_=this.createEl()),!1!==e.evented&&(Si(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),xi(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Li,this.setIntervalIds_=new Li,this.rafIds_=new Li,this.namedRafs_=new Qi,this.clearingTimersOnDispose_=!1,!1!==e.initChildren&&this.initChildren(),this.ready(n),!1!==e.reportTouchActivity&&this.enableTouchActivity()}var e=t.prototype;return e.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 t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),ti.has(this.el_)&&ti.delete(this.el_),this.el_=null),this.player_=null}},e.isDisposed=function(){return Boolean(this.isDisposed_)},e.player=function(){return this.player_},e.options=function(t){return t?(this.options_=Fi(this.options_,t),this.options_):this.options_},e.el=function(){return this.el_},e.createEl=function(t,e,n){return mn(t,e,n)},e.localize=function(t,e,n){void 0===n&&(n=t);var i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),s=r&&r[i],a=i&&i.split("-")[0],o=r&&r[a],u=n;return s&&s[t]?u=s[t]:o&&o[t]&&(u=o[t]),e&&(u=u.replace(/\{(\d+)\}/g,function(t,n){var i=e[n-1],r=i;return void 0===i&&(r=t),r})),u},e.handleLanguagechange=function(){},e.contentEl=function(){return this.contentEl_||this.el_},e.id=function(){return this.id_},e.name=function(){return this.name_},e.children=function(){return this.children_},e.getChildById=function(t){return this.childIndex_[t]},e.getChild=function(t){if(t)return this.childNameIndex_[t]},e.getDescendant=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e=e.reduce(function(t,e){return t.concat(e)},[]);for(var i=this,r=0;r<e.length;r++)if(!(i=i.getChild(e[r]))||!i.getChild)return;return i},e.addChild=function(e,n,i){var r,s;if(void 0===n&&(n={}),void 0===i&&(i=this.children_.length),"string"==typeof e){s=Ii(e);var a=n.componentClass||s;n.name=s;var o=t.getComponent(a);if(!o)throw new Error("Component "+a+" does not exist");if("function"!=typeof o)return null;r=new o(this.player_||this,n)}else r=e;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),(s=s||r.name&&Ii(r.name()))&&(this.childNameIndex_[s]=r,this.childNameIndex_[Ui(s)]=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_:fn(this.children_[i+1])&&(u=this.children_[i+1])),this.contentEl().insertBefore(r.el(),u)}return r},e.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){t.parentComponent_=null,this.childIndex_[t.id()]=null,this.childNameIndex_[Ii(t.name())]=null,this.childNameIndex_[Ui(t.name())]=null;var i=t.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},e.initChildren=function(){var e=this,n=this.options_.children;if(n){var i,r=this.options_,s=t.getComponent("Tech");(i=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(t){return!i.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(t){var i,r;return"string"==typeof t?r=n[i=t]||e.options_[i]||{}:(i=t.name,r=t),{name:i,opts:r}}).filter(function(e){var n=t.getComponent(e.opts.componentClass||Ii(e.name));return n&&!s.isTech(n)}).forEach(function(t){var n=t.name,i=t.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=e.options_.playerOptions;var s=e.addChild(n,i);s&&(e[n]=s)}})}},e.buildCSSClass=function(){return""},e.ready=function(t,e){if(void 0===e&&(e=!1),t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},e.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},e.$=function(t,e){return Mn(t,e||this.contentEl())},e.$$=function(t,e){return Kn(t,e||this.contentEl())},e.hasClass=function(t){return bn(this.el_,t)},e.addClass=function(t){_n(this.el_,t)},e.removeClass=function(t){wn(this.el_,t)},e.toggleClass=function(t,e){Bn(this.el_,t,e)},e.show=function(){this.removeClass("vjs-hidden")},e.hide=function(){this.addClass("vjs-hidden")},e.lockShowing=function(){this.addClass("vjs-lock-showing")},e.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.getAttribute=function(t){return En(this.el_,t)},e.setAttribute=function(t,e){Sn(this.el_,t,e)},e.removeAttribute=function(t){kn(this.el_,t)},e.width=function(t,e){return this.dimension("width",t,e)},e.height=function(t,e){return this.dimension("height",t,e)},e.dimensions=function(t,e){this.width(t,!0),this.height(e)},e.dimension=function(t,e,n){if(void 0!==e)return null!==e&&e==e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[t],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+Ii(t)],10)},e.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if(e=Re(this.el_,t),0===(e=parseFloat(e))||isNaN(e)){var n="offset"+Ii(t);e=this.el_[n]}return e},e.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.currentWidth=function(){return this.currentDimension("width")},e.currentHeight=function(){return this.currentDimension("height")},e.focus=function(){this.el_.focus()},e.blur=function(){this.el_.blur()},e.handleKeyDown=function(t){this.player_&&(t.stopPropagation(),this.player_.handleKeyDown(t))},e.handleKeyPress=function(t){this.handleKeyDown(t)},e.emitTapEvents=function(){var t,e=0,n=null;this.on("touchstart",function(i){1===i.touches.length&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},e=o.a.performance.now(),t=!0)}),this.on("touchmove",function(e){if(e.touches.length>1)t=!1;else if(n){var i=e.touches[0].pageX-n.pageX,r=e.touches[0].pageY-n.pageY;Math.sqrt(i*i+r*r)>10&&(t=!1)}});var i=function(){t=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",function(i){(n=null,!0===t)&&(o.a.performance.now()-e<200&&(i.preventDefault(),this.trigger("tap")))})},e.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,e=fi(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},e.setTimeout=function(t,e){var n,i=this;return t=fi(this,t),this.clearTimersOnDispose_(),n=o.a.setTimeout(function(){i.setTimeoutIds_.has(n)&&i.setTimeoutIds_.delete(n),t()},e),this.setTimeoutIds_.add(n),n},e.clearTimeout=function(t){return this.setTimeoutIds_.has(t)&&(this.setTimeoutIds_.delete(t),o.a.clearTimeout(t)),t},e.setInterval=function(t,e){t=fi(this,t),this.clearTimersOnDispose_();var n=o.a.setInterval(t,e);return this.setIntervalIds_.add(n),n},e.clearInterval=function(t){return this.setIntervalIds_.has(t)&&(this.setIntervalIds_.delete(t),o.a.clearInterval(t)),t},e.requestAnimationFrame=function(t){var e,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),t=fi(this,t),e=o.a.requestAnimationFrame(function(){n.rafIds_.has(e)&&n.rafIds_.delete(e),t()}),this.rafIds_.add(e),e):this.setTimeout(t,1e3/60)},e.requestNamedAnimationFrame=function(t,e){var n=this;if(!this.namedRafs_.has(t)){this.clearTimersOnDispose_(),e=fi(this,e);var i=this.requestAnimationFrame(function(){e(),n.namedRafs_.has(t)&&n.namedRafs_.delete(t)});return this.namedRafs_.set(t,i),t}},e.cancelNamedAnimationFrame=function(t){this.namedRafs_.has(t)&&(this.cancelAnimationFrame(this.namedRafs_.get(t)),this.namedRafs_.delete(t))},e.cancelAnimationFrame=function(t){return this.supportsRaf_?(this.rafIds_.has(t)&&(this.rafIds_.delete(t),o.a.cancelAnimationFrame(t)),t):this.clearTimeout(t)},e.clearTimersOnDispose_=function(){var t=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(e){var n=e[0],i=e[1];t[n].forEach(function(e,n){return t[i](n)})}),t.clearingTimersOnDispose_=!1}))},t.registerComponent=function(e,n){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var i,r=t.getComponent("Tech"),s=r&&r.isTech(n),a=t===n||t.prototype.isPrototypeOf(n.prototype);if(s||!a)throw i=s?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+e+'"; '+i+".");e=Ii(e),t.components_||(t.components_={});var o=t.getComponent("Player");if("Player"===e&&o&&o.players){var u=o.players,l=Object.keys(u);if(u&&l.length>0&&l.map(function(t){return u[t]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return t.components_[e]=n,t.components_[Ui(e)]=n,n},t.getComponent=function(e){if(e&&t.components_)return t.components_[e]},t}();function Pi(t,e,n,i){return function(t,e,n){if("number"!=typeof e||e<0||e>n)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+n+").")}(t,i,n.length-1),n[i][e]}function Ri(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:Pi.bind(null,"start",0,t),end:Pi.bind(null,"end",1,t)}}function Hi(t,e){return Array.isArray(t)?Ri(t):void 0===t||void 0===e?Ri():Ri([[t,e]])}function Mi(t,e){var n,i,r=0;if(!e)return 0;t&&t.length||(t=Hi(0,0));for(var s=0;s<t.length;s++)n=t.start(s),(i=t.end(s))>e&&(i=e),r+=i-n;return r/e}function Ki(t){if(t instanceof Ki)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:De(t)&&("number"==typeof t.code&&(this.code=t.code),Le(this,t)),this.message||(this.message=Ki.defaultMessages[this.code]||"")}Di.prototype.supportsRaf_="function"==typeof o.a.requestAnimationFrame&&"function"==typeof o.a.cancelAnimationFrame,Di.registerComponent("Component",Di),Ki.prototype.code=0,Ki.prototype.message="",Ki.prototype.status=null,Ki.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Ki.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 ji=0;ji<Ki.errorTypes.length;ji++)Ki[Ki.errorTypes[ji]]=ji,Ki.prototype[Ki.errorTypes[ji]]=ji;function Vi(t){return void 0!==t&&null!==t&&"function"==typeof t.then}function zi(t){Vi(t)&&t.then(null,function(t){})}var $i=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,n,i){return t[n]&&(e[n]=t[n]),e},{cues:t.cues&&Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},Wi=function(t){var e=t.$$("track"),n=Array.prototype.map.call(e,function(t){return t.track});return Array.prototype.map.call(e,function(t){var e=$i(t.track);return t.src&&(e.src=t.src),e}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===n.indexOf(t)}).map($i))},Gi=function(t,e){return t.forEach(function(t){var n=e.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach(function(t){return n.addCue(t)})}),e.textTracks()},Xi="vjs-modal-dialog",qi=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handleKeyDown_=function(t){return i.handleKeyDown(t)},i.close_=function(t){return i.close(t)},i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=mn("div",{className:Xi+"-content"},{role:"document"}),i.descEl_=mn("p",{className:Xi+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),vn(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.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,t.prototype.dispose.call(this)},n.buildCSSClass=function(){return Xi+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},n.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&t.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!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_)}!e&&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(t){var e=this.contentEl(),n=e.parentNode,i=e.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(e),this.empty(),Pn(e,t),this.trigger("modalfill"),i?n.insertBefore(e,i):n.appendChild(e);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)},n.empty=function(){this.trigger("beforemodalempty"),Nn(this.contentEl()),this.trigger("modalempty")},n.content=function(t){return void 0!==t&&(this.content_=t),this.content_},n.conditionalFocus_=function(){var t=l.a.activeElement,e=this.player_.el_;this.previouslyActiveEl_=null,(e.contains(t)||e===t)&&(this.previouslyActiveEl_=t,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(t){if(t.stopPropagation(),y.a.isEventKey(t,"Escape")&&this.closeable())return t.preventDefault(),void this.close();if(y.a.isEventKey(t,"Tab")){for(var e,n=this.focusableEls_(),i=this.el_.querySelector(":focus"),r=0;r<n.length;r++)if(i===n[r]){e=r;break}l.a.activeElement===this.el_&&(e=0),t.shiftKey&&0===e?(n[n.length-1].focus(),t.preventDefault()):t.shiftKey||e!==n.length-1||(n[0].focus(),t.preventDefault())}},n.focusableEls_=function(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,function(t){return(t instanceof o.a.HTMLAnchorElement||t instanceof o.a.HTMLAreaElement)&&t.hasAttribute("href")||(t instanceof o.a.HTMLInputElement||t instanceof o.a.HTMLSelectElement||t instanceof o.a.HTMLTextAreaElement||t instanceof o.a.HTMLButtonElement)&&!t.hasAttribute("disabled")||t instanceof o.a.HTMLIFrameElement||t instanceof o.a.HTMLObjectElement||t instanceof o.a.HTMLEmbedElement||t.hasAttribute("tabindex")&&-1!==t.getAttribute("tabindex")||t.hasAttribute("contenteditable")})},e}(Di);qi.prototype.options_={pauseOnOpen:!0,temporary:!0},Di.registerComponent("ModalDialog",qi);var Yi=function(t){function e(e){var n;void 0===e&&(e=[]),(n=t.call(this)||this).tracks_=[],Object.defineProperty(d()(n),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<e.length;i++)n.addTrack(e[i]);return n}p()(e,t);var n=e.prototype;return n.addTrack=function(t){var e=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack",target:this})),t.labelchange_=function(){e.trigger({track:t,type:"labelchange",target:e})},yi(t)&&t.addEventListener("labelchange",t.labelchange_)},n.removeTrack=function(t){for(var e,n=0,i=this.length;n<i;n++)if(this[n]===t){(e=this[n]).off&&e.off(),this.tracks_.splice(n,1);break}e&&this.trigger({track:e,type:"removetrack",target:this})},n.getTrackById=function(t){for(var e=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===t){e=r;break}}return e},e}(mi);for(var Ji in Yi.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Yi.prototype.allowedEvents_)Yi.prototype["on"+Ji]=null;var Zi=function(t,e){for(var n=0;n<t.length;n++)Object.keys(t[n]).length&&e.id!==t[n].id&&(t[n].enabled=!1)},tr=function(t){function e(e){var n;void 0===e&&(e=[]);for(var i=e.length-1;i>=0;i--)if(e[i].enabled){Zi(e,e[i]);break}return(n=t.call(this,e)||this).changing_=!1,n}p()(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;e.enabled&&Zi(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){n.changing_||(n.changing_=!0,Zi(n,e),n.changing_=!1,n.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}(Yi),er=function(t,e){for(var n=0;n<t.length;n++)Object.keys(t[n]).length&&e.id!==t[n].id&&(t[n].selected=!1)},nr=function(t){function e(e){var n;void 0===e&&(e=[]);for(var i=e.length-1;i>=0;i--)if(e[i].selected){er(e,e[i]);break}return(n=t.call(this,e)||this).changing_=!1,Object.defineProperty(d()(n),"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),n}p()(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;e.selected&&er(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.selectedChange_=function(){n.changing_||(n.changing_=!0,er(n,e),n.changing_=!1,n.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)},e}(Yi),ir=function(t){function e(){return t.apply(this,arguments)||this}p()(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;t.prototype.addTrack.call(this,e),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),e.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},e}(Yi),rr=function(){function t(t){void 0===t&&(t=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var e=0,n=t.length;e<n;e++)this.addTrackElement_(t[e])}var e=t.prototype;return e.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),-1===this.trackElements_.indexOf(t)&&this.trackElements_.push(t)},e.getTrackElementByTrack_=function(t){for(var e,n=0,i=this.trackElements_.length;n<i;n++)if(t===this.trackElements_[n].track){e=this.trackElements_[n];break}return e},e.removeTrackElement_=function(t){for(var e=0,n=this.trackElements_.length;e<n;e++)if(t===this.trackElements_[e]){this.trackElements_[e].track&&"function"==typeof this.trackElements_[e].track.off&&this.trackElements_[e].track.off(),"function"==typeof this.trackElements_[e].off&&this.trackElements_[e].off(),this.trackElements_.splice(e,1);break}},t}(),sr=function(){function t(e){t.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var e=t.prototype;return e.setCues_=function(t){var e=this.length||0,n=0,i=t.length;this.cues_=t,this.length_=t.length;var r=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(e<i)for(n=e;n<i;n++)r.call(this,n)},e.getCueById=function(t){for(var e=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===t){e=r;break}}return e},t}(),ar={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},or={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},ur={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},lr={disabled:"disabled",hidden:"hidden",showing:"showing"},cr=function(t){function e(e){var n;void 0===e&&(e={}),n=t.call(this)||this;var i={id:e.id||"vjs_track_"+Jn(),kind:e.kind||"",language:e.language||""},r=e.label||"",s=function(t){Object.defineProperty(d()(n),t,{get:function(){return i[t]},set:function(){}})};for(var a in i)s(a);return Object.defineProperty(d()(n),"label",{get:function(){return r},set:function(t){t!==r&&(r=t,this.trigger("labelchange"))}}),n}return p()(e,t),e}(mi),Ar=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],n=l.a.createElement("a");n.href=t;for(var i={},r=0;r<e.length;r++)i[e[r]]=n[e[r]];return"http:"===i.protocol&&(i.host=i.host.replace(/:80$/,"")),"https:"===i.protocol&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=o.a.location.protocol),i.host||(i.host=o.a.location.host),i},hr=function(t){if(!t.match(/^https?:\/\//)){var e=l.a.createElement("a");e.href=t,t=e.href}return t},dr=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(t);if(e)return e.pop().toLowerCase()}return""},fr=function(t,e){void 0===e&&(e=o.a.location);var n=Ar(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host},pr=Object.freeze({__proto__:null,parseUrl:Ar,getAbsoluteURL:hr,getFileExtension:dr,isCrossOrigin:fr}),gr=function(t,e){var n=new o.a.WebVTT.Parser(o.a,o.a.vttjs,o.a.WebVTT.StringDecoder()),i=[];n.oncue=function(t){e.addCue(t)},n.onparsingerror=function(t){i.push(t)},n.onflush=function(){e.trigger({type:"loadeddata",target:e})},n.parse(t),i.length>0&&(o.a.console&&o.a.console.groupCollapsed&&o.a.console.groupCollapsed("Text Track parsing errors for "+e.src),i.forEach(function(t){return Ie.error(t)}),o.a.console&&o.a.console.groupEnd&&o.a.console.groupEnd()),n.flush()},mr=function(t,e){var n={uri:t},i=fr(t);i&&(n.cors=i);var r="use-credentials"===e.tech_.crossOrigin();r&&(n.withCredentials=r),_()(n,fi(this,function(t,n,i){if(t)return Ie.error(t,n);e.loaded_=!0,"function"!=typeof o.a.WebVTT?e.tech_&&e.tech_.any(["vttjsloaded","vttjserror"],function(t){if("vttjserror"!==t.type)return gr(i,e);Ie.error("vttjs failed to load, stopping trying to process "+e.src)}):gr(i,e)}))},vr=function(t){function e(e){var n;if(void 0===e&&(e={}),!e.tech)throw new Error("A tech was not provided.");var i=Fi(e,{kind:ur[e.kind]||"subtitles",language:e.language||e.srclang||""}),r=lr[i.mode]||"disabled",s=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(r="hidden"),(n=t.call(this,i)||this).tech_=i.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var a=new sr(n.cues_),o=new sr(n.activeCues_),u=!1,l=fi(d()(n),function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,u&&(this.trigger("cuechange"),u=!1))});return n.tech_.one("dispose",function(){n.tech_.off("timeupdate",l)}),"disabled"!==r&&n.tech_.on("timeupdate",l),Object.defineProperties(d()(n),{default:{get:function(){return s},set:function(){}},mode:{get:function(){return r},set:function(t){lr[t]&&r!==t&&(r=t,this.preload_||"disabled"===r||0!==this.cues.length||mr(this.src,this),this.tech_.off("timeupdate",l),"disabled"!==r&&this.tech_.on("timeupdate",l),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return o;for(var t=this.tech_.currentTime(),e=[],n=0,i=this.cues.length;n<i;n++){var r=this.cues[n];r.startTime<=t&&r.endTime>=t?e.push(r):r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t&&e.push(r)}if(u=!1,e.length!==this.activeCues_.length)u=!0;else for(var s=0;s<e.length;s++)-1===this.activeCues_.indexOf(e[s])&&(u=!0);return this.activeCues_=e,o.setCues_(this.activeCues_),o},set:function(){}}}),i.src?(n.src=i.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==i.kind&&"captions"!==i.kind)&&mr(n.src,d()(n))):n.loaded_=!0,n}p()(e,t);var n=e.prototype;return n.addCue=function(t){var e=t;if(o.a.vttjs&&!(t instanceof o.a.vttjs.VTTCue)){for(var n in e=new o.a.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)n in e||(e[n]=t[n]);e.id=t.id,e.originalCue_=t}for(var i=this.tech_.textTracks(),r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},n.removeCue=function(t){for(var e=this.cues_.length;e--;){var n=this.cues_[e];if(n===t||n.originalCue_&&n.originalCue_===t){this.cues_.splice(e,1),this.cues.setCues_(this.cues_);break}}},e}(cr);vr.prototype.allowedEvents_={cuechange:"cuechange"};var yr=function(t){function e(e){var n;void 0===e&&(e={});var i=Fi(e,{kind:or[e.kind]||""});n=t.call(this,i)||this;var r=!1;return Object.defineProperty(d()(n),"enabled",{get:function(){return r},set:function(t){"boolean"==typeof t&&t!==r&&(r=t,this.trigger("enabledchange"))}}),i.enabled&&(n.enabled=i.enabled),n.loaded_=!0,n}return p()(e,t),e}(cr),br=function(t){function e(e){var n;void 0===e&&(e={});var i=Fi(e,{kind:ar[e.kind]||""});n=t.call(this,i)||this;var r=!1;return Object.defineProperty(d()(n),"selected",{get:function(){return r},set:function(t){"boolean"==typeof t&&t!==r&&(r=t,this.trigger("selectedchange"))}}),i.selected&&(n.selected=i.selected),n}return p()(e,t),e}(cr),_r=0,wr=2,Br=function(t){function e(e){var n,i;void 0===e&&(e={}),n=t.call(this)||this;var r=new vr(e);return n.kind=r.kind,n.src=r.src,n.srclang=r.language,n.label=r.label,n.default=r.default,Object.defineProperties(d()(n),{readyState:{get:function(){return i}},track:{get:function(){return r}}}),i=_r,r.addEventListener("loadeddata",function(){i=wr,n.trigger({type:"load",target:d()(n)})}),n}return p()(e,t),e}(mi);Br.prototype.allowedEvents_={load:"load"},Br.NONE=_r,Br.LOADING=1,Br.LOADED=wr,Br.ERROR=3;var Cr={audio:{ListClass:tr,TrackClass:yr,capitalName:"Audio"},video:{ListClass:nr,TrackClass:br,capitalName:"Video"},text:{ListClass:ir,TrackClass:vr,capitalName:"Text"}};Object.keys(Cr).forEach(function(t){Cr[t].getterName=t+"Tracks",Cr[t].privateName=t+"Tracks_"});var Tr={remoteText:{ListClass:ir,TrackClass:vr,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:rr,TrackClass:Br,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Er=A()({},Cr,Tr);Tr.names=Object.keys(Tr),Cr.names=Object.keys(Cr),Er.names=[].concat(Tr.names).concat(Cr.names);var Sr=function(t){function e(e,n){var i;return void 0===e&&(e={}),void 0===n&&(n=function(){}),e.reportTouchActivity=!1,(i=t.call(this,null,e,n)||this).onDurationChange_=function(t){return i.onDurationChange(t)},i.trackProgress_=function(t){return i.trackProgress(t)},i.trackCurrentTime_=function(t){return i.trackCurrentTime(t)},i.stopTrackingCurrentTime_=function(t){return i.stopTrackingCurrentTime(t)},i.disposeSourceHandler_=function(t){return i.disposeSourceHandler(t)},i.hasStarted_=!1,i.on("playing",function(){this.hasStarted_=!0}),i.on("loadstart",function(){this.hasStarted_=!1}),Er.names.forEach(function(t){var n=Er[t];e&&e[n.getterName]&&(i[n.privateName]=e[n.getterName])}),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===e["native"+t+"Tracks"]&&(i["featuresNative"+t+"Tracks"]=!1)}),!1===e.nativeCaptions||!1===e.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==e.preloadTextTracks,i.autoRemoteTextTracks_=new Er.text.ListClass,i.initTrackListeners(),e.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}p()(e,t);var n=e.prototype;return n.triggerSourceset=function(t){var e=this;this.isReady_||this.one("ready",function(){return e.setTimeout(function(){return e.triggerSourceset(t)},1)}),this.trigger({src:t,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(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(fi(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()}),500)},n.onDurationChange=function(t){this.duration_=this.duration()},n.buffered=function(){return Hi(0,0)},n.bufferedPercent=function(){return Mi(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(Cr.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},n.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach(function(t){for(var n=e[t+"Tracks"]()||[],i=n.length;i--;){var r=n[i];"text"===t&&e.removeRemoteTextTrack(r),n.removeTrack(r)}})},n.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],e=t.length;e--;){var n=t[e];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(t){return void 0!==t&&(this.error_=new Ki(t),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Hi(0,0):Hi()},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 t=this;Cr.names.forEach(function(e){var n=Cr[e],i=function(){t.trigger(e+"trackchange")},r=t[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),t.on("dispose",function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)})})},n.addWebVttScript_=function(){var t=this;if(!o.a.WebVTT)if(l.a.body.contains(this.el())){if(!this.options_["vtt.js"]&&Pe(B.a)&&Object.keys(B.a).length>0)return void this.trigger("vttjsloaded");var e=l.a.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){e.onload=null,e.onerror=null}),o.a.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var t=this,e=this.textTracks(),n=this.remoteTextTracks(),i=function(t){return e.addTrack(t.track)},r=function(t){return e.removeTrack(t.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var s=function(){return t.trigger("texttrackchange")},a=function(){s();for(var t=0;t<e.length;t++){var n=e[t];n.removeEventListener("cuechange",s),"showing"===n.mode&&n.addEventListener("cuechange",s)}};a(),e.addEventListener("change",a),e.addEventListener("addtrack",a),e.addEventListener("removetrack",a),this.on("dispose",function(){n.off("addtrack",i),n.off("removetrack",r),e.removeEventListener("change",a),e.removeEventListener("addtrack",a),e.removeEventListener("removetrack",a);for(var t=0;t<e.length;t++){e[t].removeEventListener("cuechange",s)}})},n.addTextTrack=function(t,e,n){if(!t)throw new Error("TextTrack kind is required but was not provided");return function(t,e,n,i,r){void 0===r&&(r={});var s=t.textTracks();r.kind=e,n&&(r.label=n),i&&(r.language=i),r.tech=t;var a=new Er.text.TrackClass(r);return s.addTrack(a),a}(this,t,e,n)},n.createRemoteTextTrack=function(t){var e=Fi(t,{tech:this});return new Tr.remoteTextEl.TrackClass(e)},n.addRemoteTextTrack=function(t,e){var n=this;void 0===t&&(t={});var i=this.createRemoteTextTrack(t);return!0!==e&&!1!==e&&(Ie.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),e=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==e&&this.ready(function(){return n.autoRemoteTextTracks_.addTrack(i.track)}),i},n.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var t=this.options_.Promise||o.a.Promise;if(t)return t.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""},e.canPlayType=function(){return""},e.canPlaySource=function(t,n){return e.canPlayType(t.type)},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,n){if(e.techs_||(e.techs_={}),!e.isTech(n))throw new Error("Tech "+t+" must be a Tech");if(!e.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!e.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=Ii(t),e.techs_[t]=n,e.techs_[Ui(t)]=n,"Tech"!==t&&e.defaultTechOrder_.push(t),n},e.getTech=function(t){if(t)return e.techs_&&e.techs_[t]?e.techs_[t]:(t=Ii(t),o.a&&o.a.videojs&&o.a.videojs[t]?(Ie.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),o.a.videojs[t]):void 0)},e}(Di);Er.names.forEach(function(t){var e=Er[t];Sr.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}}),Sr.prototype.featuresVolumeControl=!0,Sr.prototype.featuresMuteControl=!0,Sr.prototype.featuresFullscreenResize=!1,Sr.prototype.featuresPlaybackRate=!1,Sr.prototype.featuresProgressEvents=!1,Sr.prototype.featuresSourceset=!1,Sr.prototype.featuresTimeupdateEvents=!1,Sr.prototype.featuresNativeTextTracks=!1,Sr.withSourceHandlers=function(t){t.registerSourceHandler=function(e,n){var i=t.sourceHandlers;i||(i=t.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,e)},t.canPlayType=function(e){for(var n,i=t.sourceHandlers||[],r=0;r<i.length;r++)if(n=i[r].canPlayType(e))return n;return""},t.selectSourceHandler=function(e,n){for(var i=t.sourceHandlers||[],r=0;r<i.length;r++)if(i[r].canHandleSource(e,n))return i[r];return null},t.canPlaySource=function(e,n){var i=t.selectSourceHandler(e,n);return i?i.canHandleSource(e,n):""};["seekable","seeking","duration"].forEach(function(t){var e=this[t];"function"==typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(e){var n=t.selectSourceHandler(e,this.options_);n||(t.nativeSourceHandler?n=t.nativeSourceHandler:Ie.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==t.nativeSourceHandler&&(this.currentSource_=e),this.sourceHandler_=n.handleSource(e,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},t.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)}},Di.registerComponent("Tech",Sr),Sr.registerTech("Tech",Sr),Sr.defaultTechOrder_=[];var kr={},xr={},Ur={};function Ir(t,e,n){t.setTimeout(function(){return function t(e,n,i,r,s,a){void 0===e&&(e={});void 0===n&&(n=[]);void 0===s&&(s=[]);void 0===a&&(a=!1);var o=n,u=o[0],l=o.slice(1);if("string"==typeof u)t(e,kr[u],i,r,s,a);else if(u){var c=function(t,e){var n=xr[t.id()],i=null;if(void 0===n||null===n)return i=e(t),xr[t.id()]=[[e,i]],i;for(var r=0;r<n.length;r++){var s=n[r],a=s[0],o=s[1];a===e&&(i=o)}null===i&&(i=e(t),n.push([e,i]));return i}(r,u);if(!c.setSource)return s.push(c),t(e,l,i,r,s,a);c.setSource(Le({},e),function(n,o){if(n)return t(e,l,i,r,s,a);s.push(c),t(o,e.type===o.type?l:kr[o.type],i,r,s,a)})}else l.length?t(e,l,i,r,s,a):a?i(e,s):t(e,kr["*"],i,r,s,!0)}(e,kr[e.type],n,t)},1)}function Fr(t,e,n,i){void 0===i&&(i=null);var r="call"+Ii(n),s=t.reduce(Lr(r),i),a=s===Ur,o=a?null:e[n](s);return function(t,e,n,i){for(var r=t.length-1;r>=0;r--){var s=t[r];s[e]&&s[e](i,n)}}(t,n,o,a),o}var Or={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Qr={setCurrentTime:1,setMuted:1,setVolume:1},Nr={play:1,pause:1};function Lr(t){return function(e,n){return e===Ur?Ur:n[t]?n[t](e):e}}var Dr={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"},Pr=function(t){void 0===t&&(t="");var e=dr(t);return Dr[e.toLowerCase()]||""};function Rr(t){if(!t.type){var e=Pr(t.src);e&&(t.type=e)}return t}var Hr=function(t){function e(e,n,i){var r,s=Fi({createEl:!1},n);if(r=t.call(this,e,s,i)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)e.src(n.playerOptions.sources);else for(var a=0,o=n.playerOptions.techOrder;a<o.length;a++){var u=Ii(o[a]),l=Sr.getTech(u);if(u||(l=Di.getComponent(u)),l&&l.isSupported()){e.loadTech_(u);break}}return r}return p()(e,t),e}(Di);Di.registerComponent("MediaLoader",Hr);var Mr=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handleMouseOver_=function(t){return i.handleMouseOver(t)},i.handleMouseOut_=function(t){return i.handleMouseOut(t)},i.handleClick_=function(t){return i.handleClick(t)},i.handleKeyDown_=function(t){return i.handleKeyDown(t)},i.emitTapEvents(),i.enable(),i}p()(e,t);var n=e.prototype;return n.createEl=function(e,n,i){void 0===e&&(e="div"),void 0===n&&(n={}),void 0===i&&(i={}),n=Le({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===e&&Ie.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),i=Le({role:"button"},i),this.tabIndex_=n.tabIndex;var r=t.prototype.createEl.call(this,e,n,i);return this.createControlTextEl(r),r},n.dispose=function(){this.controlTextEl_=null,t.prototype.dispose.call(this)},n.createControlTextEl=function(t){return this.controlTextEl_=mn("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},n.controlText=function(t,e){if(void 0===e&&(e=this.el()),void 0===t)return this.controlText_||"Need Text";var n=this.localize(t);this.controlText_=t,vn(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||e.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==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"),void 0!==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(t){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(e){y.a.isEventKey(e,"Space")||y.a.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(Di);Di.registerComponent("ClickableComponent",Mr);var Kr=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update(),i.update_=function(t){return i.update(t)},e.on("posterchange",i.update_),i}p()(e,t);var n=e.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),t.prototype.dispose.call(this)},n.createEl=function(){return mn("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},n.setSrc=function(t){var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e},n.handleClick=function(t){if(this.player_.controls()){var e=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(en||Je)&&e||this.player_.tech(!0).focus(),this.player_.paused()?zi(this.player_.play()):this.player_.pause()}},e}(Mr);Di.registerComponent("PosterImage",Kr);var jr={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 Vr(t,e){var n;if(4===t.length)n=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else{if(7!==t.length)throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");n=t.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+e+")"}function zr(t,e,n){try{t.style[e]=n}catch(t){return}}var $r=function(t){function e(e,n,i){var r;r=t.call(this,e,n,i)||this;var s=function(t){return r.updateDisplay(t)};return e.on("loadstart",function(t){return r.toggleDisplay(t)}),e.on("texttrackchange",s),e.on("loadedmetadata",function(t){return r.preselectTrack(t)}),e.ready(fi(d()(r),function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)this.hide();else{e.on("fullscreenchange",s),e.on("playerresize",s),o.a.addEventListener("orientationchange",s),e.on("dispose",function(){return o.a.removeEventListener("orientationchange",s)});for(var t=this.options_.playerOptions.tracks||[],n=0;n<t.length;n++)this.player_.addRemoteTextTrack(t[n],!0);this.preselectTrack()}})),r}p()(e,t);var n=e.prototype;return n.preselectTrack=function(){for(var t,e,n,i={captions:1,subtitles:1},r=this.player_.textTracks(),s=this.player_.cache_.selectedLanguage,a=0;a<r.length;a++){var o=r[a];s&&s.enabled&&s.language&&s.language===o.language&&o.kind in i?o.kind===s.kind?n=o:n||(n=o):s&&!s.enabled?(n=null,t=null,e=null):o.default&&("descriptions"!==o.kind||t?o.kind in i&&!e&&(e=o):t=o)}n?n.mode="showing":e?e.mode="showing":t&&(t.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof o.a.WebVTT&&o.a.WebVTT.processCues(o.a,[],this.el_)},n.updateDisplay=function(){var t=this.player_.textTracks(),e=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),e){for(var n=[],i=0;i<t.length;++i){var r=t[i];"showing"===r.mode&&n.push(r)}this.updateForTrack(n)}else{for(var s=null,a=null,o=t.length;o--;){var u=t[o];"showing"===u.mode&&("descriptions"===u.kind?s=u:a=u)}a?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(a)):s&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(s))}},n.updateDisplayState=function(t){for(var e=this.player_.textTrackSettings.getValues(),n=t.activeCues,i=n.length;i--;){var r=n[i];if(r){var s=r.displayState;if(e.color&&(s.firstChild.style.color=e.color),e.textOpacity&&zr(s.firstChild,"color",Vr(e.color||"#fff",e.textOpacity)),e.backgroundColor&&(s.firstChild.style.backgroundColor=e.backgroundColor),e.backgroundOpacity&&zr(s.firstChild,"backgroundColor",Vr(e.backgroundColor||"#000",e.backgroundOpacity)),e.windowColor&&(e.windowOpacity?zr(s,"backgroundColor",Vr(e.windowColor,e.windowOpacity)):s.style.backgroundColor=e.windowColor),e.edgeStyle&&("dropshadow"===e.edgeStyle?s.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===e.edgeStyle?s.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===e.edgeStyle?s.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===e.edgeStyle&&(s.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),e.fontPercent&&1!==e.fontPercent){var a=o.a.parseFloat(s.style.fontSize);s.style.fontSize=a*e.fontPercent+"px",s.style.height="auto",s.style.top="auto"}e.fontFamily&&"default"!==e.fontFamily&&("small-caps"===e.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=jr[e.fontFamily])}}},n.updateForTrack=function(t){if(Array.isArray(t)||(t=[t]),"function"==typeof o.a.WebVTT&&!t.every(function(t){return!t.activeCues})){for(var e=[],n=0;n<t.length;++n)for(var i=t[n],r=0;r<i.activeCues.length;++r)e.push(i.activeCues[r]);o.a.WebVTT.processCues(o.a,e,this.el_);for(var s=0;s<t.length;++s){for(var a=t[s],u=0;u<a.activeCues.length;++u){var l=a.activeCues[u].displayState;_n(l,"vjs-text-track-cue"),_n(l,"vjs-text-track-cue-"+(a.language?a.language:s))}this.player_.textTrackSettings&&this.updateDisplayState(a)}}},e}(Di);Di.registerComponent("TextTrackDisplay",$r);var Wr=function(t){function e(){return t.apply(this,arguments)||this}return p()(e,t),e.prototype.createEl=function(){var e=this.player_.isAudio(),n=this.localize(e?"Audio Player":"Video Player"),i=mn("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),r=t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r},e}(Di);Di.registerComponent("LoadingSpinner",Wr);var Gr=function(t){function e(){return t.apply(this,arguments)||this}p()(e,t);var n=e.prototype;return n.createEl=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={}),e=Le({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},e),n=Le({type:"button"},n);var i=Di.prototype.createEl.call(this,"button",e,n);return this.createControlTextEl(i),i},n.addChild=function(t,e){void 0===e&&(e={});var n=this.constructor.name;return Ie.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),Di.prototype.addChild.call(this,t,e)},n.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(e){y.a.isEventKey(e,"Space")||y.a.isEventKey(e,"Enter")?e.stopPropagation():t.prototype.handleKeyDown.call(this,e)},e}(Mr);Di.registerComponent("Button",Gr);var Xr=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).mouseused_=!1,i.on("mousedown",function(t){return i.handleMouseDown(t)}),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(t){var e=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return zi(e),void(!this.player_.tech(!0)||(en||Je)&&n||this.player_.tech(!0).focus())}var i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(r){var s=function(){return r.focus()};Vi(e)?e.then(s,function(){}):this.setTimeout(s,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(e){this.mouseused_=!1,t.prototype.handleKeyDown.call(this,e)},n.handleMouseDown=function(t){this.mouseused_=!0},e}(Gr);Xr.prototype.controlText_="Play Video",Di.registerComponent("BigPlayButton",Xr);var qr=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).controlText(n&&n.controlText||i.localize("Close")),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(e){y.a.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(Gr);Di.registerComponent("CloseButton",qr);var Yr=function(t){function e(e,n){var i;return void 0===n&&(n={}),i=t.call(this,e,n)||this,n.replay=void 0===n.replay||n.replay,i.on(e,"play",function(t){return i.handlePlay(t)}),i.on(e,"pause",function(t){return i.handlePause(t)}),n.replay&&i.on(e,"ended",function(t){return i.handleEnded(t)}),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){this.player_.paused()?zi(this.player_.play()):this.player_.pause()},n.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},n.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(t){var e=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(t){return e.handleSeeked(t)})},e}(Gr);Yr.prototype.controlText_="Play",Di.registerComponent("PlayToggle",Yr);var Jr=function(t,e){t=t<0?0:t;var n=Math.floor(t%60),i=Math.floor(t/60%60),r=Math.floor(t/3600),s=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(r=i=n="-"),(r=r>0||a>0?r+":":"")+(i=((r||s>=10)&&i<10?"0"+i:i)+":")+(n=n<10?"0"+n:n)},Zr=Jr;function ts(t,e){return void 0===e&&(e=t),Zr(t,e)}var es=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,["timeupdate","ended"],function(t){return i.updateContent(t)}),i.updateTextNode_(),i}p()(e,t);var n=e.prototype;return n.createEl=function(){var e=this.buildCSSClass(),n=t.prototype.createEl.call(this,"div",{className:e+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text" role="presentation">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=mn("span",{className:e+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,t.prototype.dispose.call(this)},n.updateTextNode_=function(t){var e=this;void 0===t&&(t=0),t=ts(t),this.formattedTime_!==t&&(this.formattedTime_=t,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(e.contentEl_){var t=e.textNode_;t&&e.contentEl_.firstChild!==t&&(t=null,Ie.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),e.textNode_=l.a.createTextNode(e.formattedTime_),e.textNode_&&(t?e.contentEl_.replaceChild(e.textNode_,t):e.contentEl_.appendChild(e.textNode_))}}))},n.updateContent=function(t){},e}(Di);es.prototype.labelText_="Time",es.prototype.controlText_="Time",Di.registerComponent("TimeDisplay",es);var ns=function(t){function e(){return t.apply(this,arguments)||this}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(t){var e;e=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(e)},e}(es);ns.prototype.labelText_="Current Time",ns.prototype.controlText_="Current Time",Di.registerComponent("CurrentTimeDisplay",ns);var is=function(t){function e(e,n){var i,r=function(t){return i.updateContent(t)};return(i=t.call(this,e,n)||this).on(e,"durationchange",r),i.on(e,"loadstart",r),i.on(e,"loadedmetadata",r),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(t){var e=this.player_.duration();this.updateTextNode_(e)},e}(es);is.prototype.labelText_="Duration",is.prototype.controlText_="Duration",Di.registerComponent("DurationDisplay",is);var rs=function(t){function e(){return t.apply(this,arguments)||this}return p()(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"},{"aria-hidden":!0})},e}(Di);Di.registerComponent("TimeDivider",rs);var ss=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,"durationchange",function(t){return i.updateContent(t)}),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var e=t.prototype.createEl.call(this);return e.insertBefore(mn("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e},n.updateContent=function(t){var e;"number"==typeof this.player_.duration()&&(e=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(e))},e}(es);ss.prototype.labelText_="Remaining Time",ss.prototype.controlText_="Remaining Time",Di.registerComponent("RemainingTimeDisplay",ss);var as=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).updateShowing(),i.on(i.player(),"durationchange",function(t){return i.updateShowing(t)}),i}p()(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=mn("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},n.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},n.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(Di);Di.registerComponent("LiveDisplay",as);var os=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(t){return i.updateLiveEdgeStatus(t)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}p()(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=mn("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e},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,t.prototype.dispose.call(this)},e}(Gr);os.prototype.controlText_="Seek to live, currently playing live",Di.registerComponent("SeekToLive",os);var us=function(t,e,n){return t=Number(t),Math.min(n,Math.max(e,isNaN(t)?e:t))},ls=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handleMouseDown_=function(t){return i.handleMouseDown(t)},i.handleMouseUp_=function(t){return i.handleMouseUp(t)},i.handleKeyDown_=function(t){return i.handleKeyDown(t)},i.handleClick_=function(t){return i.handleClick(t)},i.handleMouseMove_=function(t){return i.handleMouseMove(t)},i.update_=function(t){return i.update(t)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}p()(e,t);var n=e.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 t=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(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"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(e,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),n.className=n.className+" vjs-slider",n=Le({tabIndex:0},n),i=Le({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),t.prototype.createEl.call(this,e,n,i)},n.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;"mousedown"===t.type&&t.preventDefault(),"touchstart"!==t.type||Ze||t.preventDefault(),xn(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove_),this.on(e,"mouseup",this.handleMouseUp_),this.on(e,"touchmove",this.handleMouseMove_),this.on(e,"touchend",this.handleMouseUp_),this.handleMouseMove(t)},n.handleMouseMove=function(t){},n.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;Un(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var t=this;if(this.el_&&this.bar){var e=this.getProgress();return e===this.progress_?e:(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",function(){var n=t.vertical()?"height":"width";t.bar.el().style[n]=(100*e).toFixed(2)+"%"}),e)}},n.getProgress=function(){return Number(us(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(t){var e=On(this.el_,t);return this.vertical()?e.y:e.x},n.handleKeyDown=function(e){y.a.isEventKey(e,"Left")||y.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):y.a.isEventKey(e,"Right")||y.a.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):t.prototype.handleKeyDown.call(this,e)},n.handleClick=function(t){t.stopPropagation(),t.preventDefault()},n.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(Di);Di.registerComponent("Slider",ls);var cs=function(t,e){return us(t/e*100,0,100).toFixed(2)+"%"},As=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).partEls_=[],i.on(e,"progress",function(t){return i.update(t)}),i}p()(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=mn("span",{className:"vjs-control-text"}),i=mn("span",{textContent:this.localize("Loaded")}),r=l.a.createTextNode(": ");return this.percentageEl_=mn("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(n),n.appendChild(i),n.appendChild(r),n.appendChild(this.percentageEl_),e},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,t.prototype.dispose.call(this)},n.update=function(t){var e=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var t=e.player_.liveTracker,n=e.player_.buffered(),i=t&&t.isLive()?t.seekableEnd():e.player_.duration(),r=e.player_.bufferedEnd(),s=e.partEls_,a=cs(r,i);e.percent_!==a&&(e.el_.style.width=a,vn(e.percentageEl_,a),e.percent_=a);for(var o=0;o<n.length;o++){var u=n.start(o),l=n.end(o),c=s[o];c||(c=e.el_.appendChild(mn()),s[o]=c),c.dataset.start===u&&c.dataset.end===l||(c.dataset.start=u,c.dataset.end=l,c.style.left=cs(u,r),c.style.width=cs(l-u,r))}for(var A=s.length;A>n.length;A--)e.el_.removeChild(s[A-1]);s.length=n.length})},e}(Di);Di.registerComponent("LoadProgressBar",As);var hs=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=pi(fi(d()(i),i.update),di),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(t,e,n){var i=Fn(this.el_),r=In(this.player_.el()),s=t.width*e;if(r&&i){var a=t.left-r.left+s,o=t.width-s+(r.right-t.right),u=i.width/2;a<u?u+=u-a:o<u&&(u=o),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(t){vn(this.el_,t)},n.updateTime=function(t,e,n,i){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var s,a=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var o=r.player_.liveTracker.liveWindow(),u=o-e*o;s=(u<1?"":"-")+ts(u,o)}else s=ts(n,a);r.update(t,e,s),i&&i()})},e}(Di);Di.registerComponent("TimeTooltip",hs);var ds=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=pi(fi(d()(i),i.update),di),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(t,e){var n=this.getChild("timeTooltip");if(n){var i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(t,e,i)}},e}(Di);ds.prototype.options_={children:[]},un||Ge||ds.prototype.options_.children.push("timeTooltip"),Di.registerComponent("PlayProgressBar",ds);var fs=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=pi(fi(d()(i),i.update),di),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(t,e){var n=this,i=e*this.player_.duration();this.getChild("timeTooltip").updateTime(t,e,i,function(){n.el_.style.left=t.width*e+"px"})},e}(Di);fs.prototype.options_={children:["timeTooltip"]},Di.registerComponent("MouseTimeDisplay",fs);var ps=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).setEventHandlers_(),i}p()(e,t);var n=e.prototype;return n.setEventHandlers_=function(){var t=this;this.update_=fi(this,this.update),this.update=pi(this.update_,di),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(e){return t.enableInterval_(e)},this.disableIntervalHandler_=function(e){return t.disableInterval_(e)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in l.a&&"visibilityState"in l.a&&this.on(l.a,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(t){"hidden"===l.a.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(t)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,di))},n.disableInterval_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&t&&"ended"!==t.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(e){var n=this;if("hidden"!==l.a.visibilityState){var i=t.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var t=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),e=n.player_.liveTracker,r=n.player_.duration();e&&e.isLive()&&(r=n.player_.liveTracker.liveCurrentTime()),n.percent_!==i&&(n.el_.setAttribute("aria-valuenow",(100*i).toFixed(2)),n.percent_=i),n.currentTime_===t&&n.duration_===r||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[ts(t,r),ts(r,r)],"{1} of {2}")),n.currentTime_=t,n.duration_=r),n.bar&&n.bar.update(In(n.el()),n.getProgress())}),i}},n.userSeek_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(t)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var t,e=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(t=(e-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t},n.handleMouseDown=function(e){Rn(e)&&(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e))},n.handleMouseMove=function(t){if(Rn(t)){var e,n=this.calculateDistance(t),i=this.player_.liveTracker;if(i&&i.isLive()){if(n>=.99)return void i.seekToLiveEdge();var r=i.seekableStart(),s=i.liveCurrentTime();if((e=r+n*i.liveWindow())>=s&&(e=s),e<=r&&(e=r+.1),e===1/0)return}else(e=n*this.player_.duration())===this.player_.duration()&&(e-=.1);this.userSeek_(e)}},n.enable=function(){t.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},n.disable=function(){t.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},n.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?zi(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},n.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(e){var n=this.player_.liveTracker;if(y.a.isEventKey(e,"Space")||y.a.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(y.a.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(y.a.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(y()(e))){e.preventDefault(),e.stopPropagation();var i=10*(y.a.codes[y()(e)]-y.a.codes[0])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else y.a.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):y.a.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):t.prototype.handleKeyDown.call(this,e)},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 l.a&&"visibilityState"in l.a&&this.off(l.a,"visibilitychange",this.toggleVisibility_),t.prototype.dispose.call(this)},e}(ls);ps.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},un||Ge||ps.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Di.registerComponent("SeekBar",ps);var gs=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handleMouseMove=pi(fi(d()(i),i.handleMouseMove),di),i.throttledHandleMouseSeek=pi(fi(d()(i),i.handleMouseSeek),di),i.handleMouseUpHandler_=function(t){return i.handleMouseUp(t)},i.handleMouseDownHandler_=function(t){return i.handleMouseDown(t)},i.enable(),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var n=e.getChild("playProgressBar"),i=e.getChild("mouseTimeDisplay");if(n||i){var r=e.el(),s=Fn(r),a=On(r,t).x;a=us(a,0,1),i&&i.update(s,a),n&&n.update(s,e.getProgress())}}},n.handleMouseSeek=function(t){var e=this.getChild("seekBar");e&&e.handleMouseMove(t)},n.enabled=function(){return this.enabled_},n.disable=function(){if(this.children().forEach(function(t){return t.disable&&t.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 t=this.getChild("seekBar");this.player_.scrubbing(!1),t.videoWasPlaying&&zi(this.player_.play())}},n.enable=function(){this.children().forEach(function(t){return t.enable&&t.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 t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(t){var e=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(t),this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUpHandler_),this.on(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(t){var e=this.getChild("seekBar");e&&e.handleMouseUp(t),this.removeListenersAddedOnMousedownAndTouchstart()},e}(Di);gs.prototype.options_={children:["seekBar"]},Di.registerComponent("ProgressControl",gs);var ms=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,["enterpictureinpicture","leavepictureinpicture"],function(t){return i.handlePictureInPictureChange(t)}),i.on(e,["disablepictureinpicturechanged","loadedmetadata"],function(t){return i.handlePictureInPictureEnabledChange(t)}),i.disable(),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+t.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){l.a.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(t){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(t){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},e}(Gr);ms.prototype.controlText_="Picture-in-Picture",Di.registerComponent("PictureInPictureToggle",ms);var vs=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,"fullscreenchange",function(t){return i.handleFullscreenChange(t)}),!1===l.a[e.fsApi_.fullscreenEnabled]&&i.disable(),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(Gr);vs.prototype.controlText_="Fullscreen",Di.registerComponent("FullscreenToggle",vs);var ys=function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})},bs=function(t){function e(){return t.apply(this,arguments)||this}return p()(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},e}(Di);Di.registerComponent("VolumeLevel",bs);var _s=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=pi(fi(d()(i),i.update),di),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(t,e,n,i){if(!n){var r=In(this.el_),s=In(this.player_.el()),a=t.width*e;if(!s||!r)return;var o=t.left-s.left+a,u=t.width-a+(s.right-t.right),l=r.width/2;o<l?l+=l-o:u<l&&(l=u),l<0?l=0:l>r.width&&(l=r.width),this.el_.style.right="-"+l+"px"}this.write(i+"%")},n.write=function(t){vn(this.el_,t)},n.updateVolume=function(t,e,n,i,r){var s=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){s.update(t,e,n,i.toFixed(0)),r&&r()})},e}(Di);Di.registerComponent("VolumeLevelTooltip",_s);var ws=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=pi(fi(d()(i),i.update),di),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(t,e,n){var i=this,r=100*e;this.getChild("volumeLevelTooltip").updateVolume(t,e,n,r,function(){n?i.el_.style.bottom=t.height*e+"px":i.el_.style.left=t.width*e+"px"})},e}(Di);ws.prototype.options_={children:["volumeLevelTooltip"]},Di.registerComponent("MouseVolumeLevelDisplay",ws);var Bs=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on("slideractive",function(t){return i.updateLastVolume_(t)}),i.on(e,"volumechange",function(t){return i.updateARIAAttributes(t)}),e.ready(function(){return i.updateARIAAttributes()}),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(e){Rn(e)&&t.prototype.handleMouseDown.call(this,e)},n.handleMouseMove=function(t){var e=this.getChild("mouseVolumeLevelDisplay");if(e){var n=this.el(),i=In(n),r=this.vertical(),s=On(n,t);s=r?s.y:s.x,s=us(s,0,1),e.update(i,s,r)}Rn(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},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(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",function(){0===t.player_.volume()&&t.player_.lastVolume_(e)})},e}(ls);Bs.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},un||Ge||Bs.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Bs.prototype.playerEvent="volumechange",Di.registerComponent("VolumeBar",Bs);var Cs=function(t){function e(e,n){var i;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||Pe(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),i=t.call(this,e,n)||this,ys(d()(i),e),i.throttledHandleMouseMove=pi(fi(d()(i),i.handleMouseMove),di),i.handleMouseUpHandler_=function(t){return i.handleMouseUp(t)},i.on("mousedown",function(t){return i.handleMouseDown(t)}),i.on("touchstart",function(t){return i.handleMouseDown(t)}),i.on("mousemove",function(t){return i.handleMouseMove(t)}),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}p()(e,t);var n=e.prototype;return n.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},n.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUpHandler_),this.on(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},e}(Di);Cs.prototype.options_={children:["volumeBar"]},Di.registerComponent("VolumeControl",Cs);var Ts=function(t,e){e.tech_&&!e.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})},Es=function(t){function e(e,n){var i;return i=t.call(this,e,n)||this,Ts(d()(i),e),i.on(e,["loadstart","volumechange"],function(t){return i.update(t)}),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){var e=this.player_.volume(),n=this.player_.lastVolume_();if(0===e){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(t){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var t=this.player_.volume(),e=3;un&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);for(var n=0;n<4;n++)wn(this.el_,"vjs-vol-"+n);_n(this.el_,"vjs-vol-"+e)},n.updateControlText_=function(){var t=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},e}(Gr);Es.prototype.controlText_="Mute",Di.registerComponent("MuteToggle",Es);var Ss=function(t){function e(e,n){var i;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||Pe(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(i=t.call(this,e,n)||this).handleKeyPressHandler_=function(t){return i.handleKeyPress(t)},i.on(e,["loadstart"],function(t){return i.volumePanelState_(t)}),i.on(i.muteToggle,"keyup",function(t){return i.handleKeyPress(t)}),i.on(i.volumeControl,"keyup",function(t){return i.handleVolumeControlKeyUp(t)}),i.on("keydown",function(t){return i.handleKeyPress(t)}),i.on("mouseover",function(t){return i.handleMouseOver(t)}),i.on("mouseout",function(t){return i.handleMouseOut(t)}),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}p()(e,t);var n=e.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 e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},n.dispose=function(){this.handleMouseOut(),t.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(t){y.a.isEventKey(t,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(t){this.addClass("vjs-hover"),ai(l.a,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(t){this.removeClass("vjs-hover"),oi(l.a,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(t){y.a.isEventKey(t,"Esc")&&this.handleMouseOut()},e}(Di);Ss.prototype.options_={children:["muteToggle","volumeControl"]},Di.registerComponent("VolumePanel",Ss);var ks=function(t){function e(e,n){var i;return i=t.call(this,e,n)||this,n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",function(t){return i.handleKeyDown(t)}),i.boundHandleBlur_=function(t){return i.handleBlur(t)},i.boundHandleTapClick_=function(t){return i.handleTapClick(t)},i}p()(e,t);var n=e.prototype;return n.addEventListenerForItem=function(t){t instanceof Di&&(this.on(t,"blur",this.boundHandleBlur_),this.on(t,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(t){t instanceof Di&&(this.off(t,"blur",this.boundHandleBlur_),this.off(t,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),t.prototype.removeChild.call(this,e)},n.addItem=function(t){var e=this.addChild(t);e&&this.addEventListenerForItem(e)},n.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=mn(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),ai(n,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,t.prototype.dispose.call(this)},n.handleBlur=function(t){var e=t.relatedTarget||l.a.activeElement;if(!this.children().some(function(t){return t.el()===e})){var n=this.menuButton_;n&&n.buttonPressed_&&e!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(t){if(this.menuButton_){this.menuButton_.unpressButton();var e=this.children();if(!Array.isArray(e))return;var n=e.filter(function(e){return e.el()===t.target})[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(t){y.a.isEventKey(t,"Left")||y.a.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):(y.a.isEventKey(t,"Right")||y.a.isEventKey(t,"Up"))&&(t.preventDefault(),t.stopPropagation(),this.stepBack())},n.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},n.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},n.focus=function(t){void 0===t&&(t=0);var e=this.children().slice();e.length&&e[0].hasClass("vjs-menu-title")&&e.shift(),e.length>0&&(t<0?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(Di);Di.registerComponent("Menu",ks);var xs=function(t){function e(e,n){var i;void 0===n&&(n={}),(i=t.call(this,e,n)||this).menuButton_=new Gr(e,n),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var r=Gr.prototype.buildCSSClass();i.menuButton_.el_.className=i.buildCSSClass()+" "+r,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0;var s=function(t){return i.handleClick(t)};return i.handleMenuKeyUp_=function(t){return i.handleMenuKeyUp(t)},i.on(i.menuButton_,"tap",s),i.on(i.menuButton_,"click",s),i.on(i.menuButton_,"keydown",function(t){return i.handleKeyDown(t)}),i.on(i.menuButton_,"mouseenter",function(){i.addClass("vjs-hover"),i.menu.show(),ai(l.a,"keyup",i.handleMenuKeyUp_)}),i.on("mouseleave",function(t){return i.handleMouseLeave(t)}),i.on("keydown",function(t){return i.handleSubmenuKeyDown(t)}),i}p()(e,t);var n=e.prototype;return n.update=function(){var t=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),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 t=new ks(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var e=mn("li",{className:"vjs-menu-title",innerHTML:Ii(this.options_.title),tabIndex:-1}),n=new Di(this.player_,{el:e});t.addItem(n)}if(this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)t.addItem(this.items[i]);return t},n.createItems=function(){},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+Gr.prototype.buildCSSClass()+" "+t.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},n.controlText=function(t,e){return void 0===e&&(e=this.menuButton_.el()),this.menuButton_.controlText(t,e)},n.dispose=function(){this.handleMouseLeave(),t.prototype.dispose.call(this)},n.handleClick=function(t){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(t){this.removeClass("vjs-hover"),oi(l.a,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(t){y.a.isEventKey(t,"Esc")||y.a.isEventKey(t,"Tab")?(this.buttonPressed_&&this.unpressButton(),y.a.isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus())):(y.a.isEventKey(t,"Up")||y.a.isEventKey(t,"Down"))&&(this.buttonPressed_||(t.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(t){(y.a.isEventKey(t,"Esc")||y.a.isEventKey(t,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(t){this.handleSubmenuKeyDown(t)},n.handleSubmenuKeyDown=function(t){(y.a.isEventKey(t,"Esc")||y.a.isEventKey(t,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),y.a.isEventKey(t,"Tab")||(t.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"),un&&pn())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()},e}(Di);Di.registerComponent("MenuButton",xs);var Us=function(t){function e(e,n){var i,r=n.tracks;if((i=t.call(this,e,n)||this).items.length<=1&&i.hide(),!r)return d()(i);var s=fi(d()(i),i.update);return r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),r.addEventListener("labelchange",s),i.player_.on("ready",s),i.player_.on("dispose",function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s),r.removeEventListener("labelchange",s)}),i}return p()(e,t),e}(xs);Di.registerComponent("TrackButton",Us);var Is=["Tab","Esc","Up","Down","Right","Left"],Fs=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).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}p()(e,t);var n=e.prototype;return n.createEl=function(e,n,i){return this.nonIconControl=!0,t.prototype.createEl.call(this,"li",Le({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),i)},n.handleKeyDown=function(e){Is.some(function(t){return y.a.isEventKey(e,t)})||t.prototype.handleKeyDown.call(this,e)},n.handleClick=function(t){this.selected(!0)},n.selected=function(t){this.selectable&&(t?(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))},e}(Mr);Di.registerComponent("MenuItem",Fs);var Os=function(t){function e(e,n){var i,r=n.track,s=e.textTracks();n.label=r.label||r.language||"Unknown",n.selected="showing"===r.mode,(i=t.call(this,e,n)||this).track=r,i.kinds=(n.kinds||[n.kind||i.track.kind]).filter(Boolean);var a,u=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];i.handleTracksChange.apply(d()(i),e)},c=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];i.handleSelectedLanguageChange.apply(d()(i),e)};(e.on(["loadstart","texttrackchange"],u),s.addEventListener("change",u),s.addEventListener("selectedlanguagechange",c),i.on("dispose",function(){e.off(["loadstart","texttrackchange"],u),s.removeEventListener("change",u),s.removeEventListener("selectedlanguagechange",c)}),void 0===s.onchange)&&i.on(["tap","click"],function(){if("object"!=typeof o.a.Event)try{a=new o.a.Event("change")}catch(t){}a||(a=l.a.createEvent("Event")).initEvent("change",!0,!0),s.dispatchEvent(a)});return i.handleTracksChange(),i}p()(e,t);var n=e.prototype;return n.handleClick=function(e){var n=this.track,i=this.player_.textTracks();if(t.prototype.handleClick.call(this,e),i)for(var r=0;r<i.length;r++){var s=i[r];-1!==this.kinds.indexOf(s.kind)&&(s===n?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled"))}},n.handleTracksChange=function(t){var e="showing"===this.track.mode;e!==this.isSelected_&&this.selected(e)},n.handleSelectedLanguageChange=function(t){if("showing"===this.track.mode){var e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.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,t.prototype.dispose.call(this)},e}(Fs);Di.registerComponent("TextTrackMenuItem",Os);var Qs=function(t){function e(e,n){return n.track={player:e,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,t.call(this,e,n)||this}p()(e,t);var n=e.prototype;return n.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!0,i=0,r=e.length;i<r;i++){var s=e[i];if(this.options_.kinds.indexOf(s.kind)>-1&&"showing"===s.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(t){for(var e=this.player().textTracks(),n=!0,i=0,r=e.length;i<r;i++){var s=e[i];if(["captions","descriptions","subtitles"].indexOf(s.kind)>-1&&"showing"===s.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(Os);Di.registerComponent("OffTextTrackMenuItem",Qs);var Ns=function(t){function e(e,n){return void 0===n&&(n={}),n.tracks=e.textTracks(),t.call(this,e,n)||this}return p()(e,t),e.prototype.createItems=function(t,e){var n;void 0===t&&(t=[]),void 0===e&&(e=Os),this.label_&&(n=this.label_+" off"),t.push(new Qs(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 s=i[r];if(this.kinds_.indexOf(s.kind)>-1){var a=new e(this.player_,{track:s,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+s.kind+"-menu-item"),t.push(a)}}return t},e}(Us);Di.registerComponent("TextTrackButton",Ns);var Ls=function(t){function e(e,n){var i,r=n.track,s=n.cue,a=e.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=s.text,n.selected=s.startTime<=a&&a<s.endTime,(i=t.call(this,e,n)||this).track=r,i.cue=s,r.addEventListener("cuechange",fi(d()(i),i.update)),i}p()(e,t);var n=e.prototype;return n.handleClick=function(e){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(t){var e=this.cue,n=this.player_.currentTime();this.selected(e.startTime<=n&&n<e.endTime)},e}(Fs);Di.registerComponent("ChaptersTrackMenuItem",Ls);var Ds=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildWrapperCSSClass.call(this)},n.update=function(e){this.track_&&(!e||"addtrack"!==e.type&&"removetrack"!==e.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},n.setTrack=function(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=t,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 t=this.player_.textTracks()||[],e=t.length-1;e>=0;e--){var n=t[e];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(Ii(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},n.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var n=0,i=e.length;n<i;n++){var r=e[n],s=new Ls(this.player_,{track:this.track_,cue:r});t.push(s)}return t},e}(Ns);Ds.prototype.kind_="chapters",Ds.prototype.controlText_="Chapters",Di.registerComponent("ChaptersButton",Ds);var Ps=function(t){function e(e,n,i){var r;r=t.call(this,e,n,i)||this;var s=e.textTracks(),a=fi(d()(r),r.handleTracksChange);return s.addEventListener("change",a),r.on("dispose",function(){s.removeEventListener("change",a)}),r}p()(e,t);var n=e.prototype;return n.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!1,i=0,r=e.length;i<r;i++){var s=e[i];if(s.kind!==this.kind_&&"showing"===s.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(Ns);Ps.prototype.kind_="descriptions",Ps.prototype.controlText_="Descriptions",Di.registerComponent("DescriptionsButton",Ps);var Rs=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(Ns);Rs.prototype.kind_="subtitles",Rs.prototype.controlText_="Subtitles",Di.registerComponent("SubtitlesButton",Rs);var Hs=function(t){function e(e,n){var i;return n.track={player:e,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(i=t.call(this,e,n)||this).addClass("vjs-texttrack-settings"),i.controlText(", opens "+n.kind+" settings dialog"),i}return p()(e,t),e.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").open()},e}(Os);Di.registerComponent("CaptionSettingsMenuItem",Hs);var Ms=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Hs(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e)},e}(Ns);Ms.prototype.kind_="captions",Ms.prototype.controlText_="Captions",Di.registerComponent("CaptionsButton",Ms);var Ks=function(t){function e(){return t.apply(this,arguments)||this}return p()(e,t),e.prototype.createEl=function(e,n,i){var r='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(r+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),r+="</span>",t.prototype.createEl.call(this,e,Le({innerHTML:r},n),i)},e}(Os);Di.registerComponent("SubsCapsMenuItem",Ks);var js=function(t){function e(e,n){var i;return void 0===n&&(n={}),(i=t.call(this,e,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)>-1&&(i.label_="captions"),i.menuButton_.controlText(Ii(i.label_)),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Hs(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=t.prototype.createItems.call(this,e,Ks)},e}(Ns);js.prototype.kinds_=["captions","subtitles"],js.prototype.controlText_="Subtitles",Di.registerComponent("SubsCapsButton",js);var Vs=function(t){function e(e,n){var i,r=n.track,s=e.audioTracks();n.label=r.label||r.language||"Unknown",n.selected=r.enabled,(i=t.call(this,e,n)||this).track=r,i.addClass("vjs-"+r.kind+"-menu-item");var a=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];i.handleTracksChange.apply(d()(i),e)};return s.addEventListener("change",a),i.on("dispose",function(){s.removeEventListener("change",a)}),i}p()(e,t);var n=e.prototype;return n.createEl=function(e,n,i){var r='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&&(r+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),r+="</span>",t.prototype.createEl.call(this,e,Le({innerHTML:r},n),i)},n.handleClick=function(e){t.prototype.handleClick.call(this,e),this.track.enabled=!0},n.handleTracksChange=function(t){this.selected(this.track.enabled)},e}(Fs);Di.registerComponent("AudioTrackMenuItem",Vs);var zs=function(t){function e(e,n){return void 0===n&&(n={}),n.tracks=e.audioTracks(),t.call(this,e,n)||this}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(t){void 0===t&&(t=[]),this.hideThreshold_=1;for(var e=this.player_.audioTracks(),n=0;n<e.length;n++){var i=e[n];t.push(new Vs(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return t},e}(Us);zs.prototype.controlText_="Audio Track",Di.registerComponent("AudioTrackButton",zs);var $s=function(t){function e(e,n){var i,r=n.rate,s=parseFloat(r,10);return n.label=r,n.selected=s===e.playbackRate(),n.selectable=!0,n.multiSelectable=!1,(i=t.call(this,e,n)||this).label=r,i.rate=s,i.on(e,"ratechange",function(t){return i.update(t)}),i}p()(e,t);var n=e.prototype;return n.handleClick=function(e){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(t){this.selected(this.player().playbackRate()===this.rate)},e}(Fs);$s.prototype.contentElType="button",Di.registerComponent("PlaybackRateMenuItem",$s);var Ws=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(e,"loadstart",function(t){return i.updateVisibility(t)}),i.on(e,"ratechange",function(t){return i.updateLabel(t)}),i.on(e,"playbackrateschange",function(t){return i.handlePlaybackRateschange(t)}),i}p()(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=mn("div",{className:"vjs-playback-rate-value",id:this.labelElId_,innerHTML:"1x"}),e.appendChild(this.labelEl_),e},n.dispose=function(){this.labelEl_=null,t.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var t=this.playbackRates(),e=[],n=t.length-1;n>=0;n--)e.push(new $s(this.player(),{rate:t[n]+"x"}));return e},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(t){for(var e=this.player().playbackRate(),n=this.playbackRates(),i=n[0],r=0;r<n.length;r++)if(n[r]>e){i=n[r];break}this.player().playbackRate(i)},n.handlePlaybackRateschange=function(t){this.update()},n.playbackRates=function(){var t=this.player();return t.playbackRates&&t.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(t){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(xs);Ws.prototype.controlText_="Playback Rate",Di.registerComponent("PlaybackRateMenuButton",Ws);var Gs=function(t){function e(){return t.apply(this,arguments)||this}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(Di);Di.registerComponent("Spacer",Gs);var Xs=function(t){function e(){return t.apply(this,arguments)||this}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},n.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML=" ",e},e}(Gs);Di.registerComponent("CustomControlSpacer",Xs);var qs=function(t){function e(){return t.apply(this,arguments)||this}return p()(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},e}(Di);qs.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in l.a&&qs.prototype.options_.children.splice(qs.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Di.registerComponent("ControlBar",qs);var Ys=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,"error",function(t){return i.open(t)}),i}p()(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},n.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(qi);Ys.prototype.options_=A()({},qi.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Di.registerComponent("ErrorDisplay",Ys);var Js=["#000","Black"],Zs=["#00F","Blue"],ta=["#0FF","Cyan"],ea=["#0F0","Green"],na=["#F0F","Magenta"],ia=["#F00","Red"],ra=["#FFF","White"],sa=["#FF0","Yellow"],aa=["1","Opaque"],oa=["0.5","Semi-Transparent"],ua=["0","Transparent"],la={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Js,ra,ia,ea,Zs,sa,na,ta]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[aa,oa,ua]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[ra,Js,ia,ea,Zs,sa,na,ta]},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(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[aa,oa]},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:[ua,oa,aa]}};function ca(t,e){if(e&&(t=e(t)),t&&"none"!==t)return t}la.windowColor.options=la.backgroundColor.options;var Aa=function(t){function e(e,n){var i;return n.temporary=!1,(i=t.call(this,e,n)||this).updateDisplay=i.updateDisplay.bind(d()(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=mn("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()}),Ne(la,function(t){i.on(i.$(t.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}p()(e,t);var n=e.prototype;return n.dispose=function(){this.endDialog=null,t.prototype.dispose.call(this)},n.createElSelect_=function(t,e,n){var i=this;void 0===e&&(e=""),void 0===n&&(n="label");var r=la[t],s=r.id.replace("%s",this.id_),a=[e,s].join(" ").trim();return["<"+n+' id="'+s+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(r.label),"</"+n+">",'<select aria-labelledby="'+a+'">'].concat(r.options.map(function(t){var e=s+"-"+t[1].replace(/\W+/g,"");return['<option id="'+e+'" value="'+t[0]+'" ','aria-labelledby="'+a+" "+e+'">',i.localize(t[1]),"</option>"].join("")})).concat("</select>").join("")},n.createElFgColor_=function(){var t="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",t),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var t="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var t="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return mn("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return mn("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 t=this.localize("restore all settings to the default values");return mn("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+t+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+t+"</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 t.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var t,e,n,i=this;return t=la,e=function(t,e,n){var r,s,a=(r=i.$(e.selector),s=e.parser,ca(r.options[r.options.selectedIndex].value,s));return void 0!==a&&(t[n]=a),t},void 0===(n={})&&(n=0),Qe(t).reduce(function(n,i){return e(n,t[i],i)},n)},n.setValues=function(t){var e=this;Ne(la,function(n,i){!function(t,e,n){if(e)for(var i=0;i<t.options.length;i++)if(ca(t.options[i].value,n)===e){t.selectedIndex=i;break}}(e.$(n.selector),t[i],n.parser)})},n.setDefaults=function(){var t=this;Ne(la,function(e){var n=e.hasOwnProperty("default")?e.default:0;t.$(e.selector).selectedIndex=n})},n.restoreSettings=function(){var t;try{t=JSON.parse(o.a.localStorage.getItem("vjs-text-track-settings"))}catch(t){Ie.warn(t)}t&&this.setValues(t)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?o.a.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):o.a.localStorage.removeItem("vjs-text-track-settings")}catch(t){Ie.warn(t)}}},n.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var t=this.player_.controlBar,e=t&&t.subsCapsButton,n=t&&t.captionsButton;e?e.focus():n&&n.focus()},e}(qi);Di.registerComponent("TextTrackSettings",Aa);var ha=function(t){function e(e,n){var i,r=n.ResizeObserver||o.a.ResizeObserver;null===n.ResizeObserver&&(r=!1);var s=Fi({createEl:!r,reportTouchActivity:!1},n);return(i=t.call(this,e,s)||this).ResizeObserver=n.ResizeObserver||o.a.ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=gi(function(){i.resizeHandler()},100,!1,d()(i)),r?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(e.el())):(i.loadListener_=function(){if(i.el_&&i.el_.contentWindow){var t=i.debouncedHandler_,e=i.unloadListener_=function(){oi(this,"resize",t),oi(this,"unload",e),e=null};ai(i.el_.contentWindow,"unload",e),ai(i.el_.contentWindow,"resize",t)}},i.one("load",i.loadListener_)),i}p()(e,t);var n=e.prototype;return n.createEl=function(){return t.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,t.prototype.dispose.call(this)},e}(Di);Di.registerComponent("ResizeManager",ha);var da={trackingThreshold:30,liveTolerance:15},fa=function(t){function e(e,n){var i,r=Fi(da,n,{createEl:!1});return(i=t.call(this,e,r)||this).handleVisibilityChange_=function(t){return i.handleVisibilityChange(t)},i.trackLiveHandler_=function(){return i.trackLive_()},i.handlePlay_=function(t){return i.handlePlay(t)},i.handleFirstTimeupdate_=function(t){return i.handleFirstTimeupdate(t)},i.handleSeeked_=function(t){return i.handleSeeked(t)},i.seekToLiveEdge_=function(t){return i.seekToLiveEdge(t)},i.reset_(),i.on(i.player_,"durationchange",function(t){return i.handleDurationchange(t)}),i.one(i.player_,"canplay",function(){return i.toggleTracking()}),en&&"hidden"in l.a&&"visibilityState"in l.a&&i.on(l.a,"visibilitychange",i.handleVisibilityChange_),i}p()(e,t);var n=e.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(l.a.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var t=this.player_.seekable();if(t&&t.length){var e=Number(o.a.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(e-this.lastTime_)/1e3;this.lastTime_=e,this.pastSeekEnd_=this.pastSeekEnd()+n;var i=this.liveCurrentTime(),r=this.player_.currentTime(),s=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-r)>this.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(s=!1),s!==this.behindLiveEdge_&&(this.behindLiveEdge_=s,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_,di),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 t=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&t>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(){for(var t=this.player_.seekable(),e=[],n=t?t.length:0;n--;)e.push(t.end(n));return e.length?e.sort()[e.length-1]:1/0},n.seekableStart=function(){for(var t=this.player_.seekable(),e=[],n=t?t.length:0;n--;)e.push(t.start(n));return e.length?e.sort()[0]:0},n.liveWindow=function(){var t=this.liveCurrentTime();return t===1/0?0:t-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 t=this.seekableEnd();return-1!==this.lastSeekEnd_&&t!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=t,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(l.a,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),t.prototype.dispose.call(this)},e}(Di);Di.registerComponent("LiveTracker",fa);var pa,ga=function(t){var e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;var n=t.$$("source"),i=[],r="";if(!n.length)return!1;for(var s=0;s<n.length;s++){var a=n[s].src;a&&-1===i.indexOf(a)&&i.push(a)}return!!i.length&&(1===i.length&&(r=i[0]),t.triggerSourceset(r),!0)},ma=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(t){var e=l.a.createElement(this.nodeName.toLowerCase());e.innerHTML=t;for(var n=l.a.createDocumentFragment();e.childNodes.length;)n.appendChild(e.childNodes[0]);return this.innerText="",o.a.Element.prototype.appendChild.call(this,n),this.innerHTML}}),va=function(t,e){for(var n={},i=0;i<t.length&&!((n=Object.getOwnPropertyDescriptor(t[i],e))&&n.set&&n.get);i++);return n.enumerable=!0,n.configurable=!0,n},ya=function(t){var e=t.el();if(!e.resetSourceWatch_){var n={},i=function(t){return va([t.el(),o.a.HTMLMediaElement.prototype,o.a.Element.prototype,ma],"innerHTML")}(t),r=function(n){return function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];var a=n.apply(e,r);return ga(t),a}};["append","appendChild","insertAdjacentHTML"].forEach(function(t){e[t]&&(n[t]=e[t],e[t]=r(n[t]))}),Object.defineProperty(e,"innerHTML",Fi(i,{set:r(i.set)})),e.resetSourceWatch_=function(){e.resetSourceWatch_=null,Object.keys(n).forEach(function(t){e[t]=n[t]}),Object.defineProperty(e,"innerHTML",i)},t.one("sourceset",e.resetSourceWatch_)}},ba=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?hr(o.a.Element.prototype.getAttribute.call(this,"src")):""},set:function(t){return o.a.Element.prototype.setAttribute.call(this,"src",t),t}}),_a=function(t){if(t.featuresSourceset){var e=t.el();if(!e.resetSourceset_){var n=function(t){return va([t.el(),o.a.HTMLMediaElement.prototype,ba],"src")}(t),i=e.setAttribute,r=e.load;Object.defineProperty(e,"src",Fi(n,{set:function(i){var r=n.set.call(e,i);return t.triggerSourceset(e.src),r}})),e.setAttribute=function(n,r){var s=i.call(e,n,r);return/src/i.test(n)&&t.triggerSourceset(e.src),s},e.load=function(){var n=r.call(e);return ga(t)||(t.triggerSourceset(""),ya(t)),n},e.currentSrc?t.triggerSourceset(e.currentSrc):ga(t)||ya(t),e.resetSourceset_=function(){e.resetSourceset_=null,e.load=r,e.setAttribute=i,Object.defineProperty(e,"src",n),e.resetSourceWatch_&&e.resetSourceWatch_()}}}},wa=function(t,e,n,i){void 0===i&&(i=!0);var r=function(n){return Object.defineProperty(t,e,{value:n,enumerable:!0,writable:!0})},s={configurable:!0,enumerable:!0,get:function(){var t=n();return r(t),t}};return i&&(s.set=r),Object.defineProperty(t,e,s)},Ba=function(t){function e(e,n){var i;i=t.call(this,e,n)||this;var r=e.source,s=!1;if(r&&(i.el_.currentSrc!==r.src||e.tag&&3===e.tag.initNetworkState_)?i.setSource(r):i.handleLateInit_(i.el_),e.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){for(var a=i.el_.childNodes,o=a.length,u=[];o--;){var l=a[o];"track"===l.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(l),i.remoteTextTracks().addTrack(l.track),i.textTracks().addTrack(l.track),s||i.el_.hasAttribute("crossorigin")||!fr(l.src)||(s=!0)):u.push(l))}for(var c=0;c<u.length;c++)i.el_.removeChild(u[c])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&s&&Ie.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_(),(sn||on||qe)&&!0===e.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}p()(e,t);var n=e.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),e.disposeMediaElement(this.el_),this.options_=null,t.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){_a(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var t,e=this.textTracks(),n=function(){t=[];for(var n=0;n<e.length;n++){var i=e[n];"metadata"===i.kind&&t.push({track:i,storedMode:i.mode})}};n(),e.addEventListener("change",n),this.on("dispose",function(){return e.removeEventListener("change",n)});var i=function n(){for(var i=0;i<t.length;i++){var r=t[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}e.removeEventListener("change",n)};this.on("webkitbeginfullscreen",function(){e.removeEventListener("change",n),e.removeEventListener("change",i),e.addEventListener("change",i)}),this.on("webkitendfullscreen",function(){e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",i)})},n.overrideNative_=function(t,e){var n=this;if(e===this["featuresNative"+t+"Tracks"]){var i=t.toLowerCase();this[i+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEach(function(t){n.el()[i+"Tracks"].removeEventListener(t,n[i+"TracksListeners_"][t])}),this["featuresNative"+t+"Tracks"]=!e,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i)}},n.overrideNativeAudioTracks=function(t){this.overrideNative_("Audio",t)},n.overrideNativeVideoTracks=function(t){this.overrideNative_("Video",t)},n.proxyNativeTracksForType_=function(t){var e=this,n=Cr[t],i=this.el()[n.getterName],r=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&i&&i.addEventListener){var s={change:function(n){var i={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(i),"text"===t&&e[Tr.remoteText.getterName]().trigger(i)},addtrack:function(t){r.addTrack(t.track)},removetrack:function(t){r.removeTrack(t.track)}},a=function(){for(var t=[],e=0;e<r.length;e++){for(var n=!1,s=0;s<i.length;s++)if(i[s]===r[e]){n=!0;break}n||t.push(r[e])}for(;t.length;)r.removeTrack(t.shift())};this[n.getterName+"Listeners_"]=s,Object.keys(s).forEach(function(t){var n=s[t];i.addEventListener(t,n),e.on("dispose",function(e){return i.removeEventListener(t,n)})}),this.on("loadstart",a),this.on("dispose",function(t){return e.off("loadstart",a)})}},n.proxyNativeTracks_=function(){var t=this;Cr.names.forEach(function(e){t.proxyNativeTracksForType_(e)})},n.createEl=function(){var t=this.options_.tag;if(!t||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(t){var n=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(n,t),e.disposeMediaElement(t),t=n}else{t=l.a.createElement("video");var i=Fi({},this.options_.tag&&Tn(this.options_.tag));sn&&!0===this.options_.nativeControlsForTouch||delete i.controls,Cn(t,Le(i,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}void 0!==this.options_.preload&&Sn(t,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(t.disablePictureInPicture=this.options_.disablePictureInPicture);for(var r=["loop","muted","playsinline","autoplay"],s=0;s<r.length;s++){var a=r[s],o=this.options_[a];void 0!==o&&(o?Sn(t,a,a):kn(t,a),t[a]=o)}return t},n.handleLateInit_=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e=!1,n=function(){e=!0};this.on("loadstart",n);var i=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",i),e||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),t.readyState>=2&&r.push("loadeddata"),t.readyState>=3&&r.push("canplay"),t.readyState>=4&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(t){this.trigger(t)},this)})}},n.setScrubbing=function(t){this.isScrubbing_=t},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(t){try{this.isScrubbing_&&this.el_.fastSeek&&ln?this.el_.fastSeek(t):this.el_.currentTime=t}catch(t){Ie(t,"Video is not ready. (Video.js)")}},n.duration=function(){var t=this;if(this.el_.duration===1/0&&Ge&&Ze&&0===this.el_.currentTime){return this.on("timeupdate",function e(){t.el_.currentTime>0&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))}),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var t=this;if("webkitDisplayingFullscreen"in this.el_){var e=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){t.off("webkitbeginfullscreen",n),t.off("webkitendfullscreen",e)})}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=o.a.navigator&&o.a.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},n.enterFullScreen=function(){var t=this.el_;if(t.paused&&t.networkState<=t.HAVE_METADATA)zi(this.el_.play()),this.setTimeout(function(){t.pause();try{t.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},0);else try{t.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(t){if(void 0===t)return this.el_.src;this.setSrc(t)},n.reset=function(){e.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(t){this.el_.controls=!!t},n.addTextTrack=function(e,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,i):t.prototype.addTextTrack.call(this,e,n,i)},n.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,e);var n=l.a.createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e.default&&(n.default=e.default),e.id&&(n.id=e.id),e.src&&(n.src=e.src),n},n.addRemoteTextTrack=function(e,n){var i=t.prototype.addRemoteTextTrack.call(this,e,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},n.removeRemoteTextTrack=function(e){if(t.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var n=this.$$("track"),i=n.length;i--;)e!==n[i]&&e!==n[i].track||this.el().removeChild(n[i])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),o.a.performance&&"function"==typeof o.a.performance.now?t.creationTime=o.a.performance.now():o.a.performance&&o.a.performance.timing&&"number"==typeof o.a.performance.timing.navigationStart&&(t.creationTime=o.a.Date.now()-o.a.performance.timing.navigationStart),t},e}(Sr);wa(Ba,"TEST_VID",function(){if(dn()){var t=l.a.createElement("video"),e=l.a.createElement("track");return e.kind="captions",e.srclang="en",e.label="English",t.appendChild(e),t}}),Ba.isSupported=function(){try{Ba.TEST_VID.volume=.5}catch(t){return!1}return!(!Ba.TEST_VID||!Ba.TEST_VID.canPlayType)},Ba.canPlayType=function(t){return Ba.TEST_VID.canPlayType(t)},Ba.canPlaySource=function(t,e){return Ba.canPlayType(t.type)},Ba.canControlVolume=function(){try{var t=Ba.TEST_VID.volume;return Ba.TEST_VID.volume=t/2+.1,t!==Ba.TEST_VID.volume}catch(t){return!1}},Ba.canMuteVolume=function(){try{var t=Ba.TEST_VID.muted;return Ba.TEST_VID.muted=!t,Ba.TEST_VID.muted?Sn(Ba.TEST_VID,"muted","muted"):kn(Ba.TEST_VID,"muted"),t!==Ba.TEST_VID.muted}catch(t){return!1}},Ba.canControlPlaybackRate=function(){if(Ge&&Ze&&tn<58)return!1;try{var t=Ba.TEST_VID.playbackRate;return Ba.TEST_VID.playbackRate=t/2+.1,t!==Ba.TEST_VID.playbackRate}catch(t){return!1}},Ba.canOverrideAttributes=function(){try{var t=function(){};Object.defineProperty(l.a.createElement("video"),"src",{get:t,set:t}),Object.defineProperty(l.a.createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(l.a.createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(l.a.createElement("audio"),"innerHTML",{get:t,set:t})}catch(t){return!1}return!0},Ba.supportsNativeTextTracks=function(){return ln||un&&Ze},Ba.supportsNativeVideoTracks=function(){return!(!Ba.TEST_VID||!Ba.TEST_VID.videoTracks)},Ba.supportsNativeAudioTracks=function(){return!(!Ba.TEST_VID||!Ba.TEST_VID.audioTracks)},Ba.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(t){var e=t[0],n=t[1];wa(Ba.prototype,e,function(){return Ba[n]()},!0)}),Ba.prototype.movingMediaElementInDOM=!un,Ba.prototype.featuresFullscreenResize=!0,Ba.prototype.featuresProgressEvents=!0,Ba.prototype.featuresTimeupdateEvents=!0,Ba.patchCanPlayType=function(){Xe>=4&&!Ye&&!Ze&&(pa=Ba.TEST_VID&&Ba.TEST_VID.constructor.prototype.canPlayType,Ba.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(t)?"maybe":pa.call(this,t)})},Ba.unpatchCanPlayType=function(){var t=Ba.TEST_VID.constructor.prototype.canPlayType;return pa&&(Ba.TEST_VID.constructor.prototype.canPlayType=pa),t},Ba.patchCanPlayType(),Ba.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},Ba.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),n=e.length;n--;)t.removeChild(e[n]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){Ba.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){Ba.prototype["set"+Ii(t)]=function(e){this.el_[t]=e,e?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(t){Ba.prototype[t]=function(){return this.el_[t]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(t){Ba.prototype["set"+Ii(t)]=function(e){this.el_[t]=e}}),["pause","load","play"].forEach(function(t){Ba.prototype[t]=function(){return this.el_[t]()}}),Sr.withSourceHandlers(Ba),Ba.nativeSourceHandler={},Ba.nativeSourceHandler.canPlayType=function(t){try{return Ba.TEST_VID.canPlayType(t)}catch(t){return""}},Ba.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return Ba.nativeSourceHandler.canPlayType(t.type);if(t.src){var n=dr(t.src);return Ba.nativeSourceHandler.canPlayType("video/"+n)}return""},Ba.nativeSourceHandler.handleSource=function(t,e,n){e.setSrc(t.src)},Ba.nativeSourceHandler.dispose=function(){},Ba.registerSourceHandler(Ba.nativeSourceHandler),Sr.registerTech("Html5",Ba);var Ca=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Ta={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Ea=["tiny","xsmall","small","medium","large","xlarge","huge"],Sa={};Ea.forEach(function(t){var e="x"===t.charAt(0)?"x-"+t.substring(1):t;Sa[t]="vjs-layout-"+e});var ka={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},xa=function(t){function e(n,i,r){var s;if(n.id=n.id||i.id||"vjs_video_"+Jn(),(i=Le(e.getTagSettings(n),i)).initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"==typeof n.closest){var a=n.closest("[lang]");a&&a.getAttribute&&(i.language=a.getAttribute("lang"))}else for(var o=n;o&&1===o.nodeType;){if(Tn(o).hasOwnProperty("lang")){i.language=o.getAttribute("lang");break}o=o.parentNode}if((s=t.call(this,null,i,r)||this).boundDocumentFullscreenChange_=function(t){return s.documentFullscreenChange_(t)},s.boundFullWindowOnEscKey_=function(t){return s.fullWindowOnEscKey(t)},s.boundUpdateStyleEl_=function(t){return s.updateStyleEl_(t)},s.boundApplyInitTime_=function(t){return s.applyInitTime_(t)},s.boundUpdateCurrentBreakpoint_=function(t){return s.updateCurrentBreakpoint_(t)},s.boundHandleTechClick_=function(t){return s.handleTechClick_(t)},s.boundHandleTechDoubleClick_=function(t){return s.handleTechDoubleClick_(t)},s.boundHandleTechTouchStart_=function(t){return s.handleTechTouchStart_(t)},s.boundHandleTechTouchMove_=function(t){return s.handleTechTouchMove_(t)},s.boundHandleTechTouchEnd_=function(t){return s.handleTechTouchEnd_(t)},s.boundHandleTechTap_=function(t){return s.handleTechTap_(t)},s.isFullscreen_=!1,s.log=Fe(s.id_),s.fsApi_=Ce,s.isPosterFromTech_=!1,s.queuedCallbacks_=[],s.isReady_=!1,s.hasStarted_=!1,s.userActive_=!1,s.debugEnabled_=!1,!s.options_||!s.options_.techOrder||!s.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(s.tag=n,s.tagAttributes=n&&Tn(n),s.language(s.options_.language),i.languages){var u={};Object.getOwnPropertyNames(i.languages).forEach(function(t){u[t.toLowerCase()]=i.languages[t]}),s.languages_=u}else s.languages_=e.prototype.options_.languages;s.resetCache_(),s.poster_=i.poster||"",s.controls_=!!i.controls,n.controls=!1,n.removeAttribute("controls"),s.changingSrc_=!1,s.playCallbacks_=[],s.playTerminatedQueue_=[],n.hasAttribute("autoplay")?s.autoplay(!0):s.autoplay(s.options_.autoplay),i.plugins&&Object.keys(i.plugins).forEach(function(t){if("function"!=typeof s[t])throw new Error('plugin "'+t+'" does not exist')}),s.scrubbing_=!1,s.el_=s.createEl(),Si(d()(s),{eventBusKey:"el_"}),s.fsApi_.requestFullscreen&&(ai(l.a,s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_),s.on(s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_)),s.fluid_&&s.on(["playerreset","resize"],s.boundUpdateStyleEl_);var c=Fi(s.options_);i.plugins&&Object.keys(i.plugins).forEach(function(t){s[t](i.plugins[t])}),i.debug&&s.debug(!0),s.options_.playerOptions=c,s.middleware_=[],s.playbackRates(i.playbackRates),s.initChildren(),s.isAudio("audio"===n.nodeName.toLowerCase()),s.controls()?s.addClass("vjs-controls-enabled"):s.addClass("vjs-controls-disabled"),s.el_.setAttribute("role","region"),s.isAudio()?s.el_.setAttribute("aria-label",s.localize("Audio Player")):s.el_.setAttribute("aria-label",s.localize("Video Player")),s.isAudio()&&s.addClass("vjs-audio"),s.flexNotSupported_()&&s.addClass("vjs-no-flex"),sn&&s.addClass("vjs-touch-enabled"),un||s.addClass("vjs-workinghover"),e.players[s.id_]=d()(s);var A=Be.split(".")[0];return s.addClass("vjs-v"+A),s.userActive(!0),s.reportUserActivity(),s.one("play",function(t){return s.listenForUserActivity_(t)}),s.on("stageclick",function(t){return s.handleStageClick_(t)}),s.on("keydown",function(t){return s.handleKeyDown(t)}),s.on("languagechange",function(t){return s.handleLanguagechange(t)}),s.breakpoints(s.options_.breakpoints),s.responsive(s.options_.responsive),s}p()(e,t);var n=e.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),oi(l.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),oi(l.a,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),e.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),xr[this.id()]=null,Er.names.forEach(function(t){var e=Er[t],i=n[e.getterName]();i&&i.off&&i.off()}),t.prototype.dispose.call(this)},n.createEl=function(){var e,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?e=this.el_=n.parentNode:r||(e=this.el_=t.prototype.createEl.call(this,"div"));var s=Tn(n);if(r){for(e=this.el_=n,n=this.tag=l.a.createElement("video");e.children.length;)n.appendChild(e.firstChild);bn(e,"video-js")||_n(e,"video-js"),e.appendChild(n),i=this.playerElIngest_=e,Object.keys(e).forEach(function(t){try{n[t]=e[t]}catch(t){}})}if(n.setAttribute("tabindex","-1"),s.tabindex="-1",(en||Ze&&rn)&&(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(t){r&&"class"===t||e.setAttribute(t,s[t]),r&&n.setAttribute(t,s[t])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=e.player=this,this.addClass("vjs-paused"),!0!==o.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Xn("vjs-styles-dimensions");var a=Mn(".vjs-styles-defaults"),u=Mn("head");u.insertBefore(this.styleEl_,a?a.nextSibling:u.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 c=n.getElementsByTagName("a"),A=0;A<c.length;A++){var h=c.item(A);_n(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!i&&n.parentNode.insertBefore(e,n),yn(n,e),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_=e,e},n.crossOrigin=function(t){if(!t)return this.techGet_("crossOrigin");"anonymous"===t||"use-credentials"===t?this.techCall_("setCrossOrigin",t):Ie.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+t+'"')},n.width=function(t){return this.dimension("width",t)},n.height=function(t){return this.dimension("height",t)},n.dimension=function(t,e){var n=t+"_";if(void 0===e)return this[n]||0;if(""===e||"auto"===e)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(e);isNaN(i)?Ie.error('Improper value "'+e+'" supplied for for '+t):(this[n]=i,this.updateStyleEl_())},n.fluid=function(t){var e,n,i=this;if(void 0===t)return!!this.fluid_;this.fluid_=!!t,yi(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),t?(this.addClass("vjs-fluid"),this.fill(!1),n=function(){i.on(["playerreset","resize"],i.boundUpdateStyleEl_)},yi(e=this)?n():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(n))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(t){if(void 0===t)return!!this.fill_;this.fill_=!!t,t?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(!0!==o.a.VIDEOJS_NO_DYNAMIC_STYLE){var t,e,n,i=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=i[1]/i[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*r,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),qn(this.styleEl_,"\n ."+n+" {\n width: "+t+"px;\n height: "+e+"px;\n }\n\n ."+n+".vjs-fluid {\n padding-top: "+100*r+"%;\n }\n ")}else{var s="number"==typeof this.width_?this.width_:this.options_.width,a="number"==typeof this.height_?this.height_:this.options_.height,u=this.tech_&&this.tech_.el();u&&(s>=0&&(u.width=s),a>=0&&(u.height=a))}},n.loadTech_=function(t,e){var n=this;this.tech_&&this.unloadTech_();var i=Ii(t),r=t.charAt(0).toLowerCase()+t.slice(1);"Html5"!==i&&this.tag&&(Sr.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var s=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(s=!1);var a={source:e,autoplay:s,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};Er.names.forEach(function(t){var e=Er[t];a[e.getterName]=n[e.privateName]}),Le(a,this.options_[i]),Le(a,this.options_[r]),Le(a,this.options_[t.toLowerCase()]),this.tag&&(a.tag=this.tag),e&&e.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);var o=Sr.getTech(t);if(!o)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new o(a),this.tech_.ready(fi(this,this.handleTechReady_),!0),Gi(this.textTracksJson_||[],this.tech_),Ca.forEach(function(t){n.on(n.tech_,t,function(e){return n["handleTech"+Ii(t)+"_"](e)})}),Object.keys(Ta).forEach(function(t){n.on(n.tech_,t,function(e){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+Ta[t]+"_"].bind(n),event:e}):n["handleTech"+Ta[t]+"_"](e)})}),this.on(this.tech_,"loadstart",function(t){return n.handleTechLoadStart_(t)}),this.on(this.tech_,"sourceset",function(t){return n.handleTechSourceset_(t)}),this.on(this.tech_,"waiting",function(t){return n.handleTechWaiting_(t)}),this.on(this.tech_,"ended",function(t){return n.handleTechEnded_(t)}),this.on(this.tech_,"seeking",function(t){return n.handleTechSeeking_(t)}),this.on(this.tech_,"play",function(t){return n.handleTechPlay_(t)}),this.on(this.tech_,"firstplay",function(t){return n.handleTechFirstPlay_(t)}),this.on(this.tech_,"pause",function(t){return n.handleTechPause_(t)}),this.on(this.tech_,"durationchange",function(t){return n.handleTechDurationChange_(t)}),this.on(this.tech_,"fullscreenchange",function(t,e){return n.handleTechFullscreenChange_(t,e)}),this.on(this.tech_,"fullscreenerror",function(t,e){return n.handleTechFullscreenError_(t,e)}),this.on(this.tech_,"enterpictureinpicture",function(t){return n.handleTechEnterPictureInPicture_(t)}),this.on(this.tech_,"leavepictureinpicture",function(t){return n.handleTechLeavePictureInPicture_(t)}),this.on(this.tech_,"error",function(t){return n.handleTechError_(t)}),this.on(this.tech_,"posterchange",function(t){return n.handleTechPosterChange_(t)}),this.on(this.tech_,"textdata",function(t){return n.handleTechTextData_(t)}),this.on(this.tech_,"ratechange",function(t){return n.handleTechRateChange_(t)}),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||yn(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var t=this;Er.names.forEach(function(e){var n=Er[e];t[n.privateName]=t[n.getterName]()}),this.textTracksJson_=Wi(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(t){return void 0===t&&Ie.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_,"mouseup",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_,"mouseup",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(t){var e=this;if(this.tech_&&"string"==typeof t){var n,i=function(){var t=e.muted();e.muted(!0);var n=function(){e.muted(t)};e.playTerminatedQueue_.push(n);var i=e.play();if(Vi(i))return i.catch(function(t){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(t||""))})};if("any"!==t||this.muted()?n="muted"!==t||this.muted()?this.play():i():Vi(n=this.play())&&(n=n.catch(i)),Vi(n))return n.then(function(){e.trigger({type:"autoplay-success",autoplay:t})}).catch(function(){e.trigger({type:"autoplay-failure",autoplay:t})})}},n.updateSourceCaches_=function(t){void 0===t&&(t="");var e=t,n="";"string"!=typeof e&&(e=t.src,n=t.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],e&&!n&&(n=function(t,e){if(!e)return"";if(t.cache_.source.src===e&&t.cache_.source.type)return t.cache_.source.type;var n=t.cache_.sources.filter(function(t){return t.src===e});if(n.length)return n[0].type;for(var i=t.$$("source"),r=0;r<i.length;r++){var s=i[r];if(s.type&&s.src&&s.src===e)return s.type}return Pr(e)}(this,e)),this.cache_.source=Fi({},t,{src:e,type:n});for(var i=this.cache_.sources.filter(function(t){return t.src&&t.src===e}),r=[],s=this.$$("source"),a=[],o=0;o<s.length;o++){var u=Tn(s[o]);r.push(u),u.src&&u.src===e&&a.push(u.src)}a.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=e},n.handleTechSourceset_=function(t){var e=this;if(!this.changingSrc_){var n=function(t){return e.updateSourceCaches_(t)},i=this.currentSource().src,r=t.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=function(){}),n(r),t.src||this.tech_.any(["sourceset","loadstart"],function(t){if("sourceset"!==t.type){var n=e.techGet("currentSrc");e.lastSource_.tech=n,e.updateSourceCaches_(n)}})}this.lastSource_={player:this.currentSource().src,tech:t.src},this.trigger({src:t.src,type:"sourceset"})},n.hasStarted=function(t){if(void 0===t)return this.hasStarted_;t!==this.hasStarted_&&(this.hasStarted_=t,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(t){return t.callback(t.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting");var e=this.currentTime();this.on("timeupdate",function n(){e!==t.currentTime()&&(t.removeClass("vjs-waiting"),t.off("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&&(Ie.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(t){Rn(t)&&this.controls_&&(this.paused()?zi(this.play()):this.pause())},n.handleTechDoubleClick_=function(t){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(e){return e.contains(t.target)})||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,t):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(t){t.cancelable&&t.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(t){var e=t.target.player;if(!e||e===this){var n=this.el(),i=l.a[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(t,e){e&&(e.nativeIOSFullscreen&&this.toggleClass("vjs-ios-native-fs"),this.isFullscreen(e.isFullscreen))},n.handleTechFullscreenError_=function(t,e){this.trigger("fullscreenerror",e)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(t){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(t){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var t=this.tech_.error();this.error(t)},n.handleTechTextData_=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},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(t,e){this.ready(function(){if(t in Qr)return function(t,e,n,i){return e[n](t.reduce(Lr(n),i))}(this.middleware_,this.tech_,t,e);if(t in Nr)return Fr(this.middleware_,this.tech_,t,e);try{this.tech_&&this.tech_[t](e)}catch(t){throw Ie(t),t}},!0)},n.techGet_=function(t){if(this.tech_&&this.tech_.isReady_){if(t in Or)return function(t,e,n){return t.reduceRight(Lr(n),e[n]())}(this.middleware_,this.tech_,t);if(t in Nr)return Fr(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw Ie("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw Ie("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw Ie(e),e}}},n.play=function(){var t=this,e=this.options_.Promise||o.a.Promise;return e?new e(function(e){t.play_(e)}):this.play_()},n.play_=function(t){var e=this;void 0===t&&(t=zi),this.playCallbacks_.push(t);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(t){e.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!ln&&!un||this.load());var i=this.techGet_("play");null===i?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(i)},n.runPlayTerminatedQueue_=function(){var t=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],t.forEach(function(t){t()})},n.runPlayCallbacks_=function(t){var e=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],e.forEach(function(e){e(t)})},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||Hi(0,0)},n.scrubbing=function(t){if(void 0===t)return this.scrubbing_;this.scrubbing_=!!t,this.techCall_("setScrubbing",this.scrubbing_),t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(t){return void 0!==t?(t<0&&(t=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",t),void(this.cache_.initTime=0)):(this.cache_.initTime=t,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(t){if(void 0===t)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(t=parseFloat(t))<0&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(t)||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 t=this.techGet_("buffered");return t&&t.length||(t=Hi(0,0)),t},n.bufferedPercent=function(){return Mi(this.buffered(),this.duration())},n.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),n=t.end(t.length-1);return n>e&&(n=e),n},n.volume=function(t){var e;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),void(e>0&&this.lastVolume_(e))):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},n.muted=function(t){if(void 0===t)return this.techGet_("muted")||!1;this.techCall_("setMuted",t)},n.defaultMuted=function(t){return void 0!==t?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(t){if(void 0===t||0===t)return this.cache_.lastVolume;this.cache_.lastVolume=t},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(t){if(void 0!==t){var e=this.isFullscreen_;return this.isFullscreen_=Boolean(t),this.isFullscreen_!==e&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(t){var e=this.options_.Promise||o.a.Promise;if(e){var n=this;return new e(function(e,i){function r(){n.off("fullscreenerror",a),n.off("fullscreenchange",s)}function s(){r(),e()}function a(t,e){r(),i(e)}n.one("fullscreenchange",s),n.one("fullscreenerror",a);var o=n.requestFullscreenHelper_(t);o&&(o.then(r,r),o.then(e,i))})}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(t){var e,n=this;if(this.fsApi_.prefixed||(e=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==t&&(e=t)),this.fsApi_.requestFullscreen){var i=this.el_[this.fsApi_.requestFullscreen](e);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 t=this.options_.Promise||o.a.Promise;if(t){var e=this;return new t(function(t,n){function i(){e.off("fullscreenerror",s),e.off("fullscreenchange",r)}function r(){i(),t()}function s(t,e){i(),n(e)}e.one("fullscreenchange",r),e.one("fullscreenerror",s);var a=e.exitFullscreenHelper_();a&&(a.then(i,i),a.then(t,n))})}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var t=this;if(this.fsApi_.requestFullscreen){var e=l.a[this.fsApi_.exitFullscreen]();return e&&zi(e.then(function(){return t.isFullscreen(!1)})),e}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=l.a.documentElement.style.overflow,ai(l.a,"keydown",this.boundFullWindowOnEscKey_),l.a.documentElement.style.overflow="hidden",_n(l.a.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(t){y.a.isEventKey(t,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,oi(l.a,"keydown",this.boundFullWindowOnEscKey_),l.a.documentElement.style.overflow=this.docOrigOverflow,wn(l.a.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(t){if(void 0===t)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",t),this.options_.disablePictureInPicture=t,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(t){return void 0!==t?(this.isInPictureInPicture_=!!t,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in l.a&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in l.a)return l.a.exitPictureInPicture()},n.handleKeyDown=function(t){var e=this.options_.userActions;if(e&&e.hotkeys){(function(t){var e=t.tagName.toLowerCase();if(t.isContentEditable)return!0;if("input"===e)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(t.type);return-1!==["textarea"].indexOf(e)})(this.el_.ownerDocument.activeElement)||("function"==typeof e.hotkeys?e.hotkeys.call(this,t):this.handleHotkeys(t))}},n.handleHotkeys=function(t){var e=this.options_.userActions?this.options_.userActions.hotkeys:{},n=e.fullscreenKey,i=void 0===n?function(t){return y.a.isEventKey(t,"f")}:n,r=e.muteKey,s=void 0===r?function(t){return y.a.isEventKey(t,"m")}:r,a=e.playPauseKey,o=void 0===a?function(t){return y.a.isEventKey(t,"k")||y.a.isEventKey(t,"Space")}:a;if(i.call(this,t)){t.preventDefault(),t.stopPropagation();var u=Di.getComponent("FullscreenToggle");!1!==l.a[this.fsApi_.fullscreenEnabled]&&u.prototype.handleClick.call(this,t)}else if(s.call(this,t)){t.preventDefault(),t.stopPropagation(),Di.getComponent("MuteToggle").prototype.handleClick.call(this,t)}else if(o.call(this,t)){t.preventDefault(),t.stopPropagation(),Di.getComponent("PlayToggle").prototype.handleClick.call(this,t)}},n.canPlayType=function(t){for(var e,n=0,i=this.options_.techOrder;n<i.length;n++){var r=i[n],s=Sr.getTech(r);if(s||(s=Di.getComponent(r)),s){if(s.isSupported()&&(e=s.canPlayType(t)))return e}else Ie.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(t){var e,n=this,i=this.options_.techOrder.map(function(t){return[t,Sr.getTech(t)]}).filter(function(t){var e=t[0],n=t[1];return n?n.isSupported():(Ie.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),r=function(t,e,n){var i;return t.some(function(t){return e.some(function(e){if(i=n(t,e))return!0})}),i},s=function(t,e){var i=t[0];if(t[1].canPlaySource(e,n.options_[i.toLowerCase()]))return{source:e,tech:i}};return(this.options_.sourceOrder?r(t,i,(e=s,function(t,n){return e(n,t)})):r(i,t,s))||!1},n.handleSrc_=function(t,e){var n=this;if(void 0===t)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var i=function t(e){if(Array.isArray(e)){var n=[];e.forEach(function(e){e=t(e),Array.isArray(e)?n=n.concat(e):De(e)&&n.push(e)}),e=n}else e="string"==typeof e&&e.trim()?[Rr({src:e})]:De(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[Rr(e)]:[];return e}(t);if(i.length){if(this.changingSrc_=!0,e||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),Ir(this,i[0],function(t,r){var s,a;if(n.middleware_=r,e||(n.cache_.sources=i),n.updateSourceCaches_(t),n.src_(t))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());s=r,a=n.tech_,s.forEach(function(t){return t.setTech&&t.setTech(a)})}),this.options_.retryOnError&&i.length>1){var r=function(){n.error(null),n.handleSrc_(i.slice(1),!0)},s=function(){n.off("error",r)};this.one("error",r),this.one("playing",s),this.resetRetryOnError_=function(){n.off("error",r),n.off("playing",s)}}}else this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},n.src=function(t){return this.handleSrc_(t,!1)},n.src_=function(t){var e,n,i=this,r=this.selectSource([t]);return!r||(e=r.tech,n=this.techName_,Ii(e)!==Ii(n)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready(function(){i.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),this.changingSrc_=!1},!0),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var t=this,e=this.options_.Promise||o.a.Promise;this.paused()||!e?this.doReset_():zi(this.play().then(function(){return t.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_(),yi(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var t=this.controlBar,e=t.durationDisplay,n=t.remainingTimeDisplay;e&&e.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 t=this.currentSource(),e=[];return 0!==Object.keys(t).length&&e.push(t),this.cache_.sources||e},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(t){return void 0!==t?(this.techCall_("setPreload",t),void(this.options_.preload=t)):this.techGet_("preload")},n.autoplay=function(t){if(void 0===t)return this.options_.autoplay||!1;var e;"string"==typeof t&&/(any|play|muted)/.test(t)||!0===t&&this.options_.normalizeAutoplay?(this.options_.autoplay=t,this.manualAutoplay_("string"==typeof t?t:"play"),e=!1):this.options_.autoplay=!!t,e=void 0===e?this.options_.autoplay:e,this.tech_&&this.techCall_("setAutoplay",e)},n.playsinline=function(t){return void 0!==t?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},n.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),void(this.options_.loop=t)):this.techGet_("loop")},n.poster=function(t){if(void 0===t)return this.poster_;t||(t=""),t!==this.poster_&&(this.poster_=t,this.techCall_("setPoster",t),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var t=this.tech_.poster()||"";t!==this.poster_&&(this.poster_=t,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(t){if(void 0===t)return!!this.controls_;t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),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(t){if(void 0===t)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(t){if(void 0===t)return this.error_||null;if(this.options_.suppressNotSupportedError&&t&&4===t.code){var e=function(){this.error(t)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],e),void this.one("loadstart",function(){this.off(["click","touchstart"],e)})}if(null===t)return this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Ki(t),this.addClass("vjs-error"),Ie.error("(CODE:"+this.error_.code+" "+Ki.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error")},n.reportUserActivity=function(t){this.userActivity_=!0},n.userActive=function(t){if(void 0===t)return this.userActive_;if((t=!!t)!==this.userActive_){if(this.userActive_=t,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(t){t.stopPropagation(),t.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var t,e,n,i=fi(this,this.reportUserActivity),r=function(e){i(),this.clearInterval(t)};this.on("mousedown",function(){i(),this.clearInterval(t),t=this.setInterval(i,250)}),this.on("mousemove",function(t){t.screenX===e&&t.screenY===n||(e=t.screenX,n=t.screenY,i())}),this.on("mouseup",r),this.on("mouseleave",r);var s,a=this.getChild("controlBar");!a||un||Ge||(a.on("mouseenter",function(t){this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout,this.player().options_.inactivityTimeout=0}),a.on("mouseleave",function(t){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 t=this.options_.inactivityTimeout;t<=0||(s=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},n.playbackRate=function(t){if(void 0===t)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",t)},n.defaultPlaybackRate=function(t){return void 0!==t?this.techCall_("setDefaultPlaybackRate",t):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(t){if(void 0===t)return!!this.isAudio_;this.isAudio_=!!t},n.addTextTrack=function(t,e,n){if(this.tech_)return this.tech_.addTextTrack(t,e,n)},n.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},n.removeRemoteTextTrack=function(t){void 0===t&&(t={});var e=t.track;if(e||(e=t),this.tech_)return this.tech_.removeRemoteTextTrack(e)},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(t){if(void 0===t)return this.language_;this.language_!==String(t).toLowerCase()&&(this.language_=String(t).toLowerCase(),yi(this)&&this.trigger("languagechange"))},n.languages=function(){return Fi(e.prototype.options_.languages,this.languages_)},n.toJSON=function(){var t=Fi(this.options_),e=t.tracks;t.tracks=[];for(var n=0;n<e.length;n++){var i=e[n];(i=Fi(i)).player=void 0,t.tracks[n]=i}return t},n.createModal=function(t,e){var n=this;(e=e||{}).content=t||"";var i=new qi(this,e);return this.addChild(i),i.on("dispose",function(){n.removeChild(i)}),i.open(),i},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var t=this.currentBreakpoint(),e=this.currentWidth(),n=0;n<Ea.length;n++){var i=Ea[n];if(e<=this.breakpoints_[i]){if(t===i)return;t&&this.removeClass(Sa[t]),this.addClass(Sa[i]),this.breakpoint_=i;break}}},n.removeCurrentBreakpoint_=function(){var t=this.currentBreakpointClass();this.breakpoint_="",t&&this.removeClass(t)},n.breakpoints=function(t){return void 0===t?Le(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=Le({},ka,t),this.updateCurrentBreakpoint_(),Le(this.breakpoints_))},n.responsive=function(t){return void 0===t?this.responsive_:(t=Boolean(t))!==this.responsive_?(this.responsive_=t,t?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),t):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return Sa[this.breakpoint_]||""},n.loadMedia=function(t,e){var n=this;if(t&&"object"==typeof t){this.reset(),this.cache_.media=Fi(t);var i=this.cache_.media,r=i.artwork,s=i.poster,a=i.src,o=i.textTracks;!r&&s&&(this.cache_.media.artwork=[{src:s,type:Pr(s)}]),a&&this.src(a),s&&this.poster(s),Array.isArray(o)&&o.forEach(function(t){return n.addRemoteTextTrack(t,!1)}),this.ready(e)}},n.getMedia=function(){if(!this.cache_.media){var t=this.poster(),e={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(t){return{kind:t.kind,label:t.label,language:t.language,src:t.src}})};return t&&(e.poster=t,e.artwork=[{src:e.poster,type:Pr(e.poster)}]),e}return Fi(this.cache_.media)},e.getTagSettings=function(t){var e={sources:[],tracks:[]},n=Tn(t),i=n["data-setup"];if(bn(t,"vjs-fill")&&(n.fill=!0),bn(t,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=m()(i||"{}"),s=r[0],a=r[1];s&&Ie.error(s),Le(n,a)}if(Le(e,n),t.hasChildNodes())for(var o=t.childNodes,u=0,l=o.length;u<l;u++){var c=o[u],A=c.nodeName.toLowerCase();"source"===A?e.sources.push(Tn(c)):"track"===A&&e.tracks.push(Tn(c))}return e},n.flexNotSupported_=function(){var t=l.a.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},n.debug=function(t){if(void 0===t)return this.debugEnabled_;t?(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(t){if(void 0===t)return this.cache_.playbackRates;Array.isArray(t)&&t.every(function(t){return"number"==typeof t})&&(this.cache_.playbackRates=t,this.trigger("playbackrateschange"))},e}(Di);Er.names.forEach(function(t){var e=Er[t];xa.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}}),xa.prototype.crossorigin=xa.prototype.crossOrigin,xa.players={};var Ua=o.a.navigator;xa.prototype.options_={techOrder:Sr.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Ua&&(Ua.languages&&Ua.languages[0]||Ua.userLanguage||Ua.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(t){xa.prototype[t]=function(){return this.techGet_(t)}}),Ca.forEach(function(t){xa.prototype["handleTech"+Ii(t)+"_"]=function(){return this.trigger(t)}}),Di.registerComponent("Player",xa);var Ia={},Fa=function(t){return Ia.hasOwnProperty(t)},Oa=function(t){return Fa(t)?Ia[t]:void 0},Qa=function(t,e){t.activePlugins_=t.activePlugins_||{},t.activePlugins_[e]=!0},Na=function(t,e,n){var i=(n?"before":"")+"pluginsetup";t.trigger(i,e),t.trigger(i+":"+e.name,e)},La=function(t,e){return e.prototype.name=t,function(){Na(this,{name:t,plugin:e,instance:null},!0);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var s=T()(e,[this].concat(i));return this[t]=function(){return s},Na(this,s.getEventHash()),s}},Da=function(){function t(e){if(this.constructor===t)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),Si(this),delete this.trigger,xi(this,this.constructor.defaultState),Qa(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}var e=t.prototype;return e.version=function(){return this.constructor.VERSION},e.getEventHash=function(t){return void 0===t&&(t={}),t.name=this.name,t.plugin=this.constructor,t.instance=this,t},e.trigger=function(t,e){return void 0===e&&(e={}),ui(this.eventBusEl_,t,this.getEventHash(e))},e.handleStateChanged=function(t){},e.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e.activePlugins_[t]=!1,this.player=this.state=null,e[t]=La(t,Ia[t])},t.isBasic=function(e){var n="string"==typeof e?Oa(e):e;return"function"==typeof n&&!t.prototype.isPrototypeOf(n.prototype)},t.registerPlugin=function(e,n){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+typeof e+".");if(Fa(e))Ie.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(xa.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+typeof n+".");return Ia[e]=n,"plugin"!==e&&(t.isBasic(n)?xa.prototype[e]=function(t,e){var n=function(){Na(this,{name:t,plugin:e,instance:null},!0);var n=e.apply(this,arguments);return Qa(this,t),Na(this,{name:t,plugin:e,instance:n}),n};return Object.keys(e).forEach(function(t){n[t]=e[t]}),n}(e,n):xa.prototype[e]=La(e,n)),n},t.deregisterPlugin=function(t){if("plugin"===t)throw new Error("Cannot de-register base plugin.");Fa(t)&&(delete Ia[t],delete xa.prototype[t])},t.getPlugins=function(t){var e;return void 0===t&&(t=Object.keys(Ia)),t.forEach(function(t){var n=Oa(t);n&&((e=e||{})[t]=n)}),e},t.getPluginVersion=function(t){var e=Oa(t);return e&&e.VERSION||""},t}();Da.getPlugin=Oa,Da.BASE_PLUGIN_NAME="plugin",Da.registerPlugin("plugin",Da),xa.prototype.usingPlugin=function(t){return!!this.activePlugins_&&!0===this.activePlugins_[t]},xa.prototype.hasPlugin=function(t){return!!Fa(t)};var Pa=function(t){return 0===t.indexOf("#")?t.slice(1):t};function Ra(t,e,n){var i=Ra.getPlayer(t);if(i)return e&&Ie.warn('Player "'+t+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var r="string"==typeof t?Mn("#"+Pa(t)):t;if(!fn(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");r.ownerDocument.defaultView&&r.ownerDocument.body.contains(r)||Ie.warn("The element supplied is not included in the DOM"),e=e||{},Ra.hooks("beforesetup").forEach(function(t){var n=t(r,Fi(e));De(n)&&!Array.isArray(n)?e=Fi(e,n):Ie.error("please return an object in beforesetup hooks")});var s=Di.getComponent("Player");return i=new s(r,e,n),Ra.hooks("setup").forEach(function(t){return t(i)}),i}if(Ra.hooks_={},Ra.hooks=function(t,e){return Ra.hooks_[t]=Ra.hooks_[t]||[],e&&(Ra.hooks_[t]=Ra.hooks_[t].concat(e)),Ra.hooks_[t]},Ra.hook=function(t,e){Ra.hooks(t,e)},Ra.hookOnce=function(t,e){Ra.hooks(t,[].concat(e).map(function(e){return function n(){return Ra.removeHook(t,n),e.apply(void 0,arguments)}}))},Ra.removeHook=function(t,e){var n=Ra.hooks(t).indexOf(e);return!(n<=-1)&&(Ra.hooks_[t]=Ra.hooks_[t].slice(),Ra.hooks_[t].splice(n,1),!0)},!0!==o.a.VIDEOJS_NO_DYNAMIC_STYLE&&dn()){var Ha=Mn(".vjs-styles-defaults");if(!Ha){Ha=Xn("vjs-styles-defaults");var Ma=Mn("head");Ma&&Ma.insertBefore(Ha,Ma.firstChild),qn(Ha,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}$n(1,Ra),Ra.VERSION=Be,Ra.options=xa.prototype.options_,Ra.getPlayers=function(){return xa.players},Ra.getPlayer=function(t){var e,n=xa.players;if("string"==typeof t){var i=Pa(t),r=n[i];if(r)return r;e=Mn("#"+i)}else e=t;if(fn(e)){var s=e,a=s.player,o=s.playerId;if(a||n[o])return a||n[o]}},Ra.getAllPlayers=function(){return Object.keys(xa.players).map(function(t){return xa.players[t]}).filter(Boolean)},Ra.players=xa.players,Ra.getComponent=Di.getComponent,Ra.registerComponent=function(t,e){Sr.isTech(e)&&Ie.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Di.registerComponent.call(Di,t,e)},Ra.getTech=Sr.getTech,Ra.registerTech=Sr.registerTech,Ra.use=function(t,e){kr[t]=kr[t]||[],kr[t].push(e)},Object.defineProperty(Ra,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Ra.middleware,"TERMINATOR",{value:Ur,writeable:!1,enumerable:!0}),Ra.browser=cn,Ra.TOUCH_ENABLED=sn,Ra.extend=function(t,e){void 0===e&&(e={});var n=function(){t.apply(this,arguments)},i={};for(var r in"object"==typeof e?(e.constructor!==Object.prototype.constructor&&(n=e.constructor),i=e):"function"==typeof e&&(n=e),S()(n,t),t&&(n.super_=t),i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);return n},Ra.mergeOptions=Fi,Ra.bind=fi,Ra.registerPlugin=Da.registerPlugin,Ra.deregisterPlugin=Da.deregisterPlugin,Ra.plugin=function(t,e){return Ie.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Da.registerPlugin(t,e)},Ra.getPlugins=Da.getPlugins,Ra.getPlugin=Da.getPlugin,Ra.getPluginVersion=Da.getPluginVersion,Ra.addLanguage=function(t,e){var n;return t=(""+t).toLowerCase(),Ra.options.languages=Fi(Ra.options.languages,((n={})[t]=e,n)),Ra.options.languages[t]},Ra.log=Ie,Ra.createLogger=Fe,Ra.createTimeRange=Ra.createTimeRanges=Hi,Ra.formatTime=ts,Ra.setFormatTime=function(t){Zr=t},Ra.resetFormatTime=function(){Zr=Jr},Ra.parseUrl=Ar,Ra.isCrossOrigin=fr,Ra.EventTarget=mi,Ra.on=ai,Ra.one=li,Ra.off=oi,Ra.trigger=ui,Ra.xhr=_.a,Ra.TextTrack=vr,Ra.AudioTrack=yr,Ra.VideoTrack=br,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(t){Ra[t]=function(){return Ie.warn("videojs."+t+"() is deprecated; use videojs.dom."+t+"() instead"),jn[t].apply(null,arguments)}}),Ra.computedStyle=Re,Ra.dom=jn,Ra.url=pr,Ra.defineLazyProperty=wa,Ra.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});
- /*! @name @videojs/http-streaming @version 2.9.2 @license Apache-2.0 */
- var Ka=U,ja=function(t,e,n){return t&&n&&n.responseURL&&e!==n.responseURL?n.responseURL:e},Va=function(t){return Ra.log.debug?Ra.log.debug.bind(Ra,"VHS:",t+" >"):function(){}},za=function(t,e){var n,i=[];if(t&&t.length)for(n=0;n<t.length;n++)e(t.start(n),t.end(n))&&i.push([t.start(n),t.end(n)]);return Ra.createTimeRanges(i)},$a=function(t,e){return za(t,function(t,n){return t-.1<=e&&n+.1>=e})},Wa=function(t,e){return za(t,function(t){return t-1/30>=e})},Ga=function(t){var e=[];if(!t||!t.length)return"";for(var n=0;n<t.length;n++)e.push(t.start(n)+" => "+t.end(n));return e.join(", ")},Xa=function(t){for(var e=[],n=0;n<t.length;n++)e.push({start:t.start(n),end:t.end(n)});return e},qa=function(t){if(t&&t.length&&t.end)return t.end(t.length-1)},Ya=Ra.createTimeRange,Ja=function(t){return(t.segments||[]).reduce(function(t,e,n){return e.parts?e.parts.forEach(function(i,r){t.push({duration:i.duration,segmentIndex:n,partIndex:r,part:i,segment:e})}):t.push({duration:e.duration,segmentIndex:n,partIndex:null,segment:e,part:null}),t},[])},Za=function(t){var e=t.segments&&t.segments.length&&t.segments[t.segments.length-1];return e&&e.parts||[]},to=function(t){var e=t.preloadSegment;if(e){var n=e.parts,i=(e.preloadHints||[]).reduce(function(t,e){return t+("PART"===e.type?1:0)},0);return i+=n&&n.length?n.length:0}},eo=function(t,e){if(e.endList)return 0;if(t&&t.suggestedPresentationDelay)return t.suggestedPresentationDelay;var n=Za(e).length>0;return n&&e.serverControl&&e.serverControl.partHoldBack?e.serverControl.partHoldBack:n&&e.partTargetDuration?3*e.partTargetDuration:e.serverControl&&e.serverControl.holdBack?e.serverControl.holdBack:e.targetDuration?3*e.targetDuration:0},no=function(t,e,n){if(void 0===e&&(e=t.mediaSequence+t.segments.length),e<t.mediaSequence)return 0;var i=function(t,e){var n=0,i=e-t.mediaSequence,r=t.segments[i];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;i--;){if(void 0!==(r=t.segments[i]).end)return{result:n+r.end,precise:!0};if(n+=r.duration,void 0!==r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}}(t,e);if(i.precise)return i.result;var r=function(t,e){for(var n,i=0,r=e-t.mediaSequence;r<t.segments.length;r++){if(void 0!==(n=t.segments[r]).start)return{result:n.start-i,precise:!0};if(i+=n.duration,void 0!==n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}}(t,e);return r.precise?r.result:i.result+n},io=function(t,e,n){if(!t)return 0;if("number"!=typeof n&&(n=0),void 0===e){if(t.totalDuration)return t.totalDuration;if(!t.endList)return o.a.Infinity}return no(t,e,n)},ro=function(t){var e=t.defaultDuration,n=t.durationList,i=t.startIndex,r=t.endIndex,s=0;if(i>r){var a=[r,i];i=a[0],r=a[1]}if(i<0){for(var o=i;o<Math.min(0,r);o++)s+=e;i=0}for(var u=i;u<r;u++)s+=n[u].duration;return s},so=function(t,e,n,i){if(!t||!t.segments)return null;if(t.endList)return io(t);if(null===e)return null;e=e||0;var r=no(t,t.mediaSequence+t.segments.length,e);return n&&(r-=i="number"==typeof i?i:eo(null,t)),Math.max(0,r)},ao=function(t){return t.excludeUntil&&t.excludeUntil>Date.now()},oo=function(t){return t.excludeUntil&&t.excludeUntil===1/0},uo=function(t){var e=ao(t);return!t.disabled&&!e},lo=function(t,e){return e.attributes&&e.attributes[t]},co=function(t,e){if(1===t.playlists.length)return!0;var n=e.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===t.playlists.filter(function(t){return!!uo(t)&&(t.attributes.BANDWIDTH||0)<n}).length},Ao=function(t,e){return!(!t&&!e||!t&&e||t&&!e)&&(t===e||(!(!t.id||!e.id||t.id!==e.id)||(!(!t.resolvedUri||!e.resolvedUri||t.resolvedUri!==e.resolvedUri)||!(!t.uri||!e.uri||t.uri!==e.uri))))},ho=function(t,e){var n=t&&t.mediaGroups&&t.mediaGroups.AUDIO||{},i=!1;for(var r in n){for(var s in n[r])if(i=e(n[r][s]))break;if(i)break}return!!i},fo=function(t){if(!t||!t.playlists||!t.playlists.length)return ho(t,function(t){return t.playlists&&t.playlists.length||t.uri});for(var e=function(e){var n=t.playlists[e],i=n.attributes&&n.attributes.CODECS;return i&&i.split(",").every(function(t){return $(t)})?"continue":ho(t,function(t){return Ao(n,t)})?"continue":{v:!1}},n=0;n<t.playlists.length;n++){var i=e(n);if("continue"!==i&&"object"==typeof i)return i.v}return!0},po={liveEdgeDelay:eo,duration:io,seekable:function(t,e,n){var i=e||0,r=so(t,e,!0,n);return null===r?Ya():Ya(i,r)},getMediaInfoForTime:function(t){for(var e=t.playlist,n=t.currentTime,i=t.startingSegmentIndex,r=t.startingPartIndex,s=t.startTime,a=n-s,o=Ja(e),u=0,l=0;l<o.length;l++){var c=o[l];if(i===c.segmentIndex&&("number"!=typeof r||"number"!=typeof c.partIndex||r===c.partIndex)){u=l;break}}if(a<0){if(u>0)for(var A=u-1;A>=0;A--){var h=o[A];if((a+=h.duration)+1/30>0)return{partIndex:h.partIndex,segmentIndex:h.segmentIndex,startTime:s-ro({defaultDuration:e.targetDuration,durationList:o,startIndex:u,endIndex:A})}}return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:n}}if(u<0){for(var d=u;d<0;d++)if((a-=e.targetDuration)<0)return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:n};u=0}for(var f=u;f<o.length;f++){var p=o[f];if((a-=p.duration)-1/30<0)return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:s+ro({defaultDuration:e.targetDuration,durationList:o,startIndex:u,endIndex:f})}}return{segmentIndex:o[o.length-1].segmentIndex,partIndex:o[o.length-1].partIndex,startTime:n}},isEnabled:uo,isDisabled:function(t){return t.disabled},isBlacklisted:ao,isIncompatible:oo,playlistEnd:so,isAes:function(t){for(var e=0;e<t.segments.length;e++)if(t.segments[e].key)return!0;return!1},hasAttribute:lo,estimateSegmentRequestTime:function(t,e,n,i){return void 0===i&&(i=0),lo("BANDWIDTH",n)?(t*n.attributes.BANDWIDTH-8*i)/e:NaN},isLowestEnabledRendition:co,isAudioOnly:fo,playlistMatch:Ao},go=Ra.log,mo=function(t,e){return t+"-"+e},vo=function(t,e){t.mediaGroups&&["AUDIO","SUBTITLES"].forEach(function(n){if(t.mediaGroups[n])for(var i in t.mediaGroups[n])for(var r in t.mediaGroups[n][i]){var s=t.mediaGroups[n][i][r];e(s,n,i,r)}})},yo=function(t){var e=t.playlist,n=t.uri,i=t.id;e.id=i,e.playlistErrors_=0,n&&(e.uri=n),e.attributes=e.attributes||{}},bo=function(t,e){t.uri=e;for(var n=0;n<t.playlists.length;n++)if(!t.playlists[n].uri){var i="placeholder-uri-"+n;t.playlists[n].uri=i}vo(t,function(e,n,i,r){var s="placeholder-uri-"+n+"-"+i+"-"+r;e.playlists&&e.playlists.length||(e.playlists=[A()({},e)]),e.playlists.forEach(function(e,n){var i=mo(n,s);e.uri?e.resolvedUri=e.resolvedUri||Ka(t.uri,e.uri):(e.uri=0===n?s:i,e.resolvedUri=e.uri),e.id=e.id||i,e.attributes=e.attributes||{},t.playlists[e.id]=e,t.playlists[e.uri]=e})}),function(t){for(var e=t.playlists.length;e--;){var n=t.playlists[e];yo({playlist:n,id:mo(e,n.uri)}),n.resolvedUri=Ka(t.uri,n.uri),t.playlists[n.id]=n,t.playlists[n.uri]=n,n.attributes.BANDWIDTH||go.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}(t),function(t){vo(t,function(e){e.uri&&(e.resolvedUri=Ka(t.uri,e.uri))})}(t)},_o=Ra.mergeOptions,wo=function(t,e){if(!t)return e;var n=_o(t,e);if(t.preloadHints&&!e.preloadHints&&delete n.preloadHints,t.parts&&!e.parts)delete n.parts;else if(t.parts&&e.parts)for(var i=0;i<e.parts.length;i++)t.parts&&t.parts[i]&&(n.parts[i]=_o(t.parts[i],e.parts[i]));return!t.skipped&&e.skipped&&(n.skipped=!1),t.preload&&!e.preload&&(n.preload=!1),n},Bo=function(t,e){!t.resolvedUri&&t.uri&&(t.resolvedUri=Ka(e,t.uri)),t.key&&!t.key.resolvedUri&&(t.key.resolvedUri=Ka(e,t.key.uri)),t.map&&!t.map.resolvedUri&&(t.map.resolvedUri=Ka(e,t.map.uri)),t.map&&t.map.key&&!t.map.key.resolvedUri&&(t.map.key.resolvedUri=Ka(e,t.map.key.uri)),t.parts&&t.parts.length&&t.parts.forEach(function(t){t.resolvedUri||(t.resolvedUri=Ka(e,t.uri))}),t.preloadHints&&t.preloadHints.length&&t.preloadHints.forEach(function(t){t.resolvedUri||(t.resolvedUri=Ka(e,t.uri))})},Co=function(t){var e=t.segments||[],n=t.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 e;n.duration=t.targetDuration,n.preload=!0,e.push(n)}return e},To=function(t,e){return t===e||t.segments&&e.segments&&t.segments.length===e.segments.length&&t.endList===e.endList&&t.mediaSequence===e.mediaSequence},Eo=function(t,e,n){void 0===n&&(n=To);var i=_o(t,{}),r=i.playlists[e.id];if(!r)return null;if(n(r,e))return null;e.segments=Co(e);var s=_o(r,e);if(s.preloadSegment&&!e.preloadSegment&&delete s.preloadSegment,r.segments){if(e.skip){e.segments=e.segments||[];for(var a=0;a<e.skip.skippedSegments;a++)e.segments.unshift({skipped:!0})}s.segments=function(t,e,n){var i=t.slice(),r=e.slice();n=n||0;for(var s,a=[],o=0;o<r.length;o++){var u=i[o+n],l=r[o];u?(s=u.map||s,a.push(wo(u,l))):(s&&!l.map&&(l.map=s),a.push(l))}return a}(r.segments,e.segments,e.mediaSequence-r.mediaSequence)}s.segments.forEach(function(t){Bo(t,s.resolvedUri)});for(var o=0;o<i.playlists.length;o++)i.playlists[o].id===e.id&&(i.playlists[o]=s);return i.playlists[e.id]=s,i.playlists[e.uri]=s,vo(t,function(t,n,i,r){if(t.playlists)for(var s=0;s<t.playlists.length;s++)e.id===t.playlists[s].id&&(t.playlists[s]=e)}),i},So=function(t,e){var n=t.segments[t.segments.length-1],i=n&&n.parts&&n.parts[n.parts.length-1],r=i&&i.duration||n&&n.duration;return e&&r?1e3*r:500*(t.partTargetDuration||t.targetDuration||10)},ko=function(t){function e(e,n,i){var r;if(void 0===i&&(i={}),r=t.call(this)||this,!e)throw new Error("A non-empty playlist URL or object is required");r.logger_=Va("PlaylistLoader");var s=i,a=s.withCredentials,o=void 0!==a&&a,u=s.handleManifestRedirects,l=void 0!==u&&u;r.src=e,r.vhs_=n,r.withCredentials=o,r.handleManifestRedirects=l;var c=n.options_;return r.customTagParsers=c&&c.customTagParsers||[],r.customTagMappers=c&&c.customTagMappers||[],r.experimentalLLHLS=c&&c.experimentalLLHLS||!1,r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind(d()(r)),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}p()(e,t);var n=e.prototype;return n.handleMediaupdatetimeout_=function(){var t=this;if("HAVE_METADATA"===this.state){var e=this.media(),n=Ka(this.master.uri,e.uri);this.experimentalLLHLS&&(n=function(t,e){if(e.endList)return t;var n=[];if(e.serverControl&&e.serverControl.canBlockReload){var i=e.preloadSegment,r=e.mediaSequence+e.segments.length;if(i){var s=i.parts||[],a=to(e)-1;a>-1&&a!==s.length-1&&n.push("_HLS_part="+a),(a>-1||s.length)&&r--}n.unshift("_HLS_msn="+r)}return e.serverControl&&e.serverControl.canSkipUntil&&n.unshift("_HLS_skip="+(e.serverControl.canSkipDateranges?"v2":"YES")),n.forEach(function(e,n){t+=(0===n?"?":"&")+e}),t}(n,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},function(e,n){if(t.request)return e?t.playlistRequestError(t.request,t.media(),"HAVE_METADATA"):void t.haveMetadata({playlistString:t.request.responseText,url:t.media().uri,id:t.media().id})})}},n.playlistRequestError=function(t,e,n){var i=e.uri,r=e.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[r],status:t.status,message:"HLS playlist request error at URL: "+i+".",responseText:t.responseText,code:t.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(t){var e=this,n=t.url;return function(t){var e=t.onwarn,n=t.oninfo,i=t.manifestString,r=t.customTagParsers,s=void 0===r?[]:r,a=t.customTagMappers,o=void 0===a?[]:a,u=t.experimentalLLHLS,l=new H;e&&l.on("warn",e),n&&l.on("info",n),s.forEach(function(t){return l.addParser(t)}),o.forEach(function(t){return l.addTagMapper(t)}),l.push(i),l.end();var c=l.manifest;if(u||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(t){c.hasOwnProperty(t)&&delete c[t]}),c.segments&&c.segments.forEach(function(t){["parts","preloadHints"].forEach(function(e){t.hasOwnProperty(e)&&delete t[e]})})),!c.targetDuration){var A=10;c.segments&&c.segments.length&&(A=c.segments.reduce(function(t,e){return Math.max(t,e.duration)},0)),e&&e("manifest has no targetDuration defaulting to "+A),c.targetDuration=A}var h=Za(c);if(h.length&&!c.partTargetDuration){var d=h.reduce(function(t,e){return Math.max(t,e.duration)},0);e&&(e("manifest has no partTargetDuration defaulting to "+d),go.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.")),c.partTargetDuration=d}return c}({onwarn:function(t){var i=t.message;return e.logger_("m3u8-parser warn for "+n+": "+i)},oninfo:function(t){var i=t.message;return e.logger_("m3u8-parser info for "+n+": "+i)},manifestString:t.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(t){var e=this,n=t.playlistString,i=t.playlistObject,r=t.url,s=t.id;this.request=null,this.state="HAVE_METADATA";var a=i||this.parseManifest_({url:r,manifestString:n});a.lastRequest=Date.now(),yo({playlist:a,uri:r,id:s});var u=Eo(this.master,a);this.targetDuration=a.partTargetDuration||a.targetDuration,u?(this.master=u,this.media_=this.master.playlists[s]):this.trigger("playlistunchanged"),this.media().endList||(o.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=o.a.setTimeout(function(){e.trigger("mediaupdatetimeout")},So(this.media(),!!u))),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),o.a.clearTimeout(this.mediaUpdateTimeout),o.a.clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}},n.media=function(t,e){var n=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof t){if(!this.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.master.playlists[t]}if(o.a.clearTimeout(this.finalRenditionTimeout),e){var i=(t.partTargetDuration||t.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=o.a.setTimeout(this.media.bind(this,t,!1),i)}else{var r=this.state,s=!this.media_||t.id!==this.media_.id,a=this.master.playlists[t.id];if(a&&a.endList||t.endList&&t.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=t,void(s&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(s){if(this.state="SWITCHING_MEDIA",this.request){if(t.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.vhs_.xhr({uri:t.resolvedUri,withCredentials:this.withCredentials},function(e,i){if(n.request){if(t.lastRequest=Date.now(),t.resolvedUri=ja(n.handleManifestRedirects,t.resolvedUri,i),e)return n.playlistRequestError(n.request,t,r);n.haveMetadata({playlistString:i.responseText,url:t.uri,id:t.id}),"HAVE_MASTER"===r?n.trigger("loadedmetadata"):n.trigger("mediachange")}})}}},n.pause=function(){this.stopRequest(),o.a.clearTimeout(this.mediaUpdateTimeout),"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(t){var e=this;o.a.clearTimeout(this.mediaUpdateTimeout);var n=this.media();if(t){var i=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=o.a.setTimeout(function(){return e.load()},i)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.start=function(){var t=this;if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=o.a.location.href),this.src.resolvedUri=this.src.uri,void setTimeout(function(){t.setupInitialPlaylist(t.src)},0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(e,n){if(t.request){if(t.request=null,e)return t.error={status:n.status,message:"HLS playlist request error at URL: "+t.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===t.state&&(t.started=!1),t.trigger("error");t.src=ja(t.handleManifestRedirects,t.src,n);var i=t.parseManifest_({manifestString:n.responseText,url:t.src});t.setupInitialPlaylist(i)}})},n.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(t){if(this.state="HAVE_MASTER",t.playlists)return this.master=t,bo(this.master,this.srcUri()),t.playlists.forEach(function(t){t.segments=Co(t),t.segments.forEach(function(e){Bo(e,t.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var e=this.srcUri()||o.a.location.href;this.master=function(t,e){var n=mo(0,e),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:o.a.location.href,resolvedUri:o.a.location.href,playlists:[{uri:e,id:n,resolvedUri:e,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[e]=i.playlists[0],i}(0,e),this.haveMetadata({playlistObject:t,url:e,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},e}(Ra.EventTarget),xo=Ra.xhr,Uo=Ra.mergeOptions,Io=function(t,e,n,i){var r="arraybuffer"===t.responseType?t.response:t.responseText;!e&&r&&(t.responseTime=Date.now(),t.roundTripTime=t.responseTime-t.requestTime,t.bytesReceived=r.byteLength||r.length,t.bandwidth||(t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3))),n.headers&&(t.responseHeaders=n.headers),e&&"ETIMEDOUT"===e.code&&(t.timedout=!0),e||t.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(e=new Error("XHR Failed with a response of: "+(t&&(r||t.responseText)))),i(e,t)},Fo=function(){var t=function t(e,n){e=Uo({timeout:45e3},e);var i=t.beforeRequest||Ra.Vhs.xhr.beforeRequest;if(i&&"function"==typeof i){var r=i(e);r&&(e=r)}var s=(!0===Ra.Vhs.xhr.original?xo:Ra.Vhs.xhr)(e,function(t,e){return Io(s,t,e,n)}),a=s.abort;return s.abort=function(){return s.aborted=!0,a.apply(s,arguments)},s.uri=e.uri,s.requestTime=Date.now(),s};return t.original=!0,t},Oo=function(t){var e,n,i={};return t.byterange&&(i.Range=(e=t.byterange,n=e.offset+e.length-1,"bytes="+e.offset+"-"+n)),i},Qo=function(t,e){return t.start(e)+"-"+t.end(e)},No=function(t,e){var n=t.toString(16);return"00".substring(0,2-n.length)+n+(e%2?" ":"")},Lo=function(t){return t>=32&&t<126?String.fromCharCode(t):"."},Do=function(t){var e={};return Object.keys(t).forEach(function(n){var i=t[n];ArrayBuffer.isView(i)?e[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:e[n]=i}),e},Po=function(t){var e=t.byterange||{length:1/0,offset:0};return[e.length,e.offset,t.resolvedUri].join(",")},Ro=function(t){return t.resolvedUri},Ho=function(t){for(var e=Array.prototype.slice.call(t),n="",i=0;i<e.length/16;i++)n+=e.slice(16*i,16*i+16).map(No).join("")+" "+e.slice(16*i,16*i+16).map(Lo).join("")+"\n";return n},Mo=Object.freeze({__proto__:null,createTransferableMessage:Do,initSegmentId:Po,segmentKeyId:Ro,hexDump:Ho,tagDump:function(t){var e=t.bytes;return Ho(e)},textRanges:function(t){var e,n="";for(e=0;e<t.length;e++)n+=Qo(t,e)+" ";return n}}),Ko=function(t){var e=t.playlist,n=t.time,i=void 0===n?void 0:n,r=t.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!e||void 0===i)return r({message:"getProgramTime: playlist and time must be provided"});var s=function(t,e){if(!e||!e.segments||0===e.segments.length)return null;for(var n,i=0,r=0;r<e.segments.length&&!(t<=(i=(n=e.segments[r]).videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration));r++);var s=e.segments[e.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<t)return null;if(t>i){if(t>i+.25*s.duration)return null;n=s}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}(i,e);if(!s)return r({message:"valid programTime was not found"});if("estimate"===s.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:s.estimatedStart});var a={mediaSeconds:i},o=function(t,e){if(!e.dateTimeObject)return null;var n=e.videoTimingInfo.transmuxerPrependedSeconds,i=t-(e.videoTimingInfo.transmuxedPresentationStart+n);return new Date(e.dateTimeObject.getTime()+1e3*i)}(i,s.segment);return o&&(a.programDateTime=o.toISOString()),r(null,a)},jo=function t(e){var n=e.programTime,i=e.playlist,r=e.retryCount,s=void 0===r?2:r,a=e.seekTo,o=e.pauseAfterSeek,u=void 0===o||o,l=e.tech,c=e.callback;if(!c)throw new Error("seekToProgramTime: callback must be provided");if(void 0===n||!i||!a)return c({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!i.endList&&!l.hasStarted_)return c({message:"player must be playing a live stream to start buffering"});if(!function(t){if(!t.segments||0===t.segments.length)return!1;for(var e=0;e<t.segments.length;e++)if(!t.segments[e].dateTimeObject)return!1;return!0}(i))return c({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri});var A=function(t,e){var n;try{n=new Date(t)}catch(t){return null}if(!e||!e.segments||0===e.segments.length)return null;var i=e.segments[0];if(n<i.dateTimeObject)return null;for(var r=0;r<e.segments.length-1&&(i=e.segments[r],!(n<e.segments[r+1].dateTimeObject));r++);var s,a=e.segments[e.segments.length-1],o=a.dateTimeObject,u=a.videoTimingInfo?(s=a.videoTimingInfo).transmuxedPresentationEnd-s.transmuxedPresentationStart-s.transmuxerPrependedSeconds:a.duration+.25*a.duration;return n>new Date(o.getTime()+1e3*u)?null:(n>o&&(i=a),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:po.duration(e,e.mediaSequence+e.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})}(n,i);if(!A)return c({message:n+" was not found in the stream"});var h=A.segment,d=function(t,e){var n,i;try{n=new Date(t),i=new Date(e)}catch(t){}var r=n.getTime();return(i.getTime()-r)/1e3}(h.dateTimeObject,n);if("estimate"===A.type)return 0===s?c({message:n+" is not buffered yet. Try again"}):(a(A.estimatedStart+d),void l.one("seeked",function(){t({programTime:n,playlist:i,retryCount:s-1,seekTo:a,pauseAfterSeek:u,tech:l,callback:c})}));var f=h.start+d;l.one("seeked",function(){return c(null,l.currentTime())}),u&&l.pause(),a(f)},Vo=function(t,e){if(4===t.readyState)return e()},zo=function(t,e,n){var i,r=[],s=!1,a=function(t,e,i,r){return e.abort(),s=!0,n(t,e,i,r)},o=function(t,e){if(!s){if(t)return a(t,e,"",r);var n=e.responseText.substring(r&&r.byteLength||0,e.responseText.length);if(r=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if((e=e.filter(function(t){return t&&(t.byteLength||t.length)&&"string"!=typeof t})).length<=1)return $t(e[0]);var i=e.reduce(function(t,e,n){return t+(e.byteLength||e.length)},0),r=new Uint8Array(i),s=0;return e.forEach(function(t){t=$t(t),r.set(t,s),s+=t.byteLength}),r}(r,Jt(n,!0)),i=i||ee(r),r.length<10||i&&r.length<i+2)return Vo(e,function(){return a(t,e,"",r)});var o=_e(r);return"ts"===o&&r.length<188?Vo(e,function(){return a(t,e,"",r)}):!o&&r.length<376?Vo(e,function(){return a(t,e,"",r)}):a(null,e,o,r)}},u=e({uri:t,beforeSend:function(t){t.overrideMimeType("text/plain; charset=x-user-defined"),t.addEventListener("progress",function(e){return e.total,e.loaded,Io(t,null,{statusCode:t.status},o)})}},function(t,e){return Io(u,t,e,o)});return u},$o=Ra.EventTarget,Wo=Ra.mergeOptions,Go=function(t,e){if(!To(t,e))return!1;if(t.sidx&&e.sidx&&(t.sidx.offset!==e.sidx.offset||t.sidx.length!==e.sidx.length))return!1;if(!t.sidx&&e.sidx||t.sidx&&!e.sidx)return!1;if(t.segments&&!e.segments||!t.segments&&e.segments)return!1;if(!t.segments&&!e.segments)return!0;for(var n=0;n<t.segments.length;n++){var i=t.segments[n],r=e.segments[n];if(i.uri!==r.uri)return!1;if(i.byterange||r.byterange){var s=i.byterange,a=r.byterange;if(s&&!a||!s&&a)return!1;if(s.offset!==a.offset||s.length!==a.length)return!1}}return!0},Xo=function(t,e){var n,i,r={};for(var s in t){var a=t[s].sidx;if(a){var o=gt(a);if(!e[o])break;var u=e[o].sidxInfo;n=u,i=a,(Boolean(!n.map&&!i.map)||Boolean(n.map&&i.map&&n.map.byterange.offset===i.map.byterange.offset&&n.map.byterange.length===i.map.byterange.length))&&n.uri===i.uri&&n.byterange.offset===i.byterange.offset&&n.byterange.length===i.byterange.length&&(r[o]=e[o])}}return r},qo=function(t){function e(e,n,i,r){var s;void 0===i&&(i={}),(s=t.call(this)||this).masterPlaylistLoader_=r||d()(s),r||(s.isMaster_=!0);var a=i,o=a.withCredentials,u=void 0!==o&&o,l=a.handleManifestRedirects,c=void 0!==l&&l;if(s.vhs_=n,s.withCredentials=u,s.handleManifestRedirects=c,!e)throw new Error("A non-empty playlist URL or object is required");return s.on("minimumUpdatePeriod",function(){s.refreshXml_()}),s.on("mediaupdatetimeout",function(){s.refreshMedia_(s.media().id)}),s.state="HAVE_NOTHING",s.loadedPlaylists_={},s.logger_=Va("DashPlaylistLoader"),s.isMaster_?(s.masterPlaylistLoader_.srcUrl=e,s.masterPlaylistLoader_.sidxMapping_={}):s.childPlaylist_=e,s}p()(e,t);var n=e.prototype;return n.requestErrored_=function(t,e,n){return!this.request||(this.request=null,t?(this.error="object"!=typeof t||t instanceof Error?{status:e.status,message:"DASH request error at URL: "+e.uri,response:e.response,code:2}:t,n&&(this.state=n),this.trigger("error"),!0):void 0)},n.addSidxSegments_=function(t,e,n){var i=this,r=t.sidx&>(t.sidx);if(t.sidx&&r&&!this.masterPlaylistLoader_.sidxMapping_[r]){var s=ja(this.handleManifestRedirects,t.sidx.resolvedUri),a=function(s,a){if(!i.requestErrored_(s,a,e)){var o,u=i.masterPlaylistLoader_.sidxMapping_;try{o=zt()($t(a.response).subarray(8))}catch(t){return void i.requestErrored_(t,a,e)}return u[r]={sidxInfo:t.sidx,sidx:o},pt(t,o,t.sidx.resolvedUri),n(!0)}};this.request=zo(s,this.vhs_.xhr,function(e,n,r,o){if(e)return a(e,n);if(!r||"mp4"!==r)return a({status:n.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+s,response:"",playlist:t,internal:!0,blacklistDuration:1/0,code:2},n);var u=t.sidx.byterange,l=u.offset,c=u.length;if(o.length>=c+l)return a(e,{response:o.subarray(l,l+c),status:n.status,uri:n.uri});i.request=i.vhs_.xhr({uri:s,responseType:"arraybuffer",headers:Oo({byterange:t.sidx.byterange})},a)})}else this.mediaRequest_=o.a.setTimeout(function(){return n(!1)},0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},o.a.clearTimeout(this.minimumUpdatePeriodTimeout_),o.a.clearTimeout(this.mediaRequest_),o.a.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 t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}},n.media=function(t){var e=this;if(!t)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 t){if(!this.masterPlaylistLoader_.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.masterPlaylistLoader_.master.playlists[t]}var i=!this.media_||t.id!==this.media_.id;if(i&&this.loadedPlaylists_[t.id]&&this.loadedPlaylists_[t.id].endList)return this.state="HAVE_METADATA",this.media_=t,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(t,n,function(i){e.haveMetadata({startingState:n,playlist:t})}))},n.haveMetadata=function(t){var e=t.startingState,n=t.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MASTER"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),o.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(o.a.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(t){var e=this;o.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();if(t){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=o.a.setTimeout(function(){return e.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 t=this;this.started=!0,this.isMaster_?this.requestMaster_(function(e,n){t.haveMaster_(),t.hasPendingRequest()||t.media_||t.media(t.masterPlaylistLoader_.master.playlists[0])}):this.mediaRequest_=o.a.setTimeout(function(){return t.haveMaster_()},0)},n.requestMaster_=function(t){var e=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(n,i){if(!e.requestErrored_(n,i)){var r=i.responseText!==e.masterPlaylistLoader_.masterXml_;return e.masterPlaylistLoader_.masterXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?e.masterLoaded_=Date.parse(i.responseHeaders.date):e.masterLoaded_=Date.now(),e.masterPlaylistLoader_.srcUrl=ja(e.handleManifestRedirects,e.masterPlaylistLoader_.srcUrl,i),r?(e.handleMaster_(),void e.syncClientServerClock_(function(){return t(i,r)})):t(i,r)}"HAVE_NOTHING"===e.state&&(e.started=!1)})},n.syncClientServerClock_=function(t){var e=this,n=jt(this.masterPlaylistLoader_.masterXml_);return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),t()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),t()):void(this.request=this.vhs_.xhr({uri:Ka(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},function(i,r){if(e.request){if(i)return e.masterPlaylistLoader_.clientOffset_=e.masterLoaded_-Date.now(),t();var s;s="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):e.masterLoaded_:Date.parse(r.responseText),e.masterPlaylistLoader_.clientOffset_=s-Date.now(),t()}}))},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 t,e,n,i,r,s,a=(t={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_},e=t.masterXml,n=t.srcUrl,i=t.clientOffset,r=t.sidxMapping,s=Kt(e,{manifestUri:n,clientOffset:i,sidxMapping:r}),bo(s,n),s),o=this.masterPlaylistLoader_.master;o&&(a=function(t,e,n){for(var i=!0,r=Wo(t,{duration:e.duration,minimumUpdatePeriod:e.minimumUpdatePeriod}),s=0;s<e.playlists.length;s++){var a=e.playlists[s];if(a.sidx){var o=gt(a.sidx);n&&n[o]&&n[o].sidx&&pt(a,n[o].sidx,a.sidx.resolvedUri)}var u=Eo(r,a,Go);u&&(r=u,i=!1)}return vo(e,function(t,e,n,s){if(t.playlists&&t.playlists.length){var a=t.playlists[0].id,o=Eo(r,t.playlists[0],Go);o&&((r=o).mediaGroups[e][n][s].playlists[0]=r.playlists[a],i=!1)}}),e.minimumUpdatePeriod!==t.minimumUpdatePeriod&&(i=!1),i?null:r}(o,a,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=a||o;var u=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return u&&u!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=u),(!o||a&&a.minimumUpdatePeriod!==o.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(a)},n.updateMinimumUpdatePeriodTimeout_=function(){var t=this.masterPlaylistLoader_;t.createMupOnMedia_&&(t.off("loadedmetadata",t.createMupOnMedia_),t.createMupOnMedia_=null),t.minimumUpdatePeriodTimeout_&&(o.a.clearTimeout(t.minimumUpdatePeriodTimeout_),t.minimumUpdatePeriodTimeout_=null);var e=t.master&&t.master.minimumUpdatePeriod;0===e&&(t.media()?e=1e3*t.media().targetDuration:(t.createMupOnMedia_=t.updateMinimumUpdatePeriodTimeout_,t.one("loadedmetadata",t.createMupOnMedia_))),"number"!=typeof e||e<=0?e<0&&this.logger_("found invalid minimumUpdatePeriod of "+e+", not setting a timeout"):this.createMUPTimeout_(e)},n.createMUPTimeout_=function(t){var e=this.masterPlaylistLoader_;e.minimumUpdatePeriodTimeout_=o.a.setTimeout(function(){e.minimumUpdatePeriodTimeout_=null,e.trigger("minimumUpdatePeriod"),e.createMUPTimeout_(t)},t)},n.refreshXml_=function(){var t=this;this.requestMaster_(function(e,n){var i,r,s;n&&(t.media_&&(t.media_=t.masterPlaylistLoader_.master.playlists[t.media_.id]),t.masterPlaylistLoader_.sidxMapping_=(i=t.masterPlaylistLoader_.master,r=t.masterPlaylistLoader_.sidxMapping_,s=Xo(i.playlists,r),vo(i,function(t,e,n,i){if(t.playlists&&t.playlists.length){var a=t.playlists;s=Wo(s,Xo(a,r))}}),s),t.addSidxSegments_(t.media(),t.state,function(e){t.refreshMedia_(t.media().id)}))})},n.refreshMedia_=function(t){var e=this;if(!t)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[t];if(i?this.media_=n[t]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){!function t(){e.media().endList||(e.mediaUpdateTimeout=o.a.setTimeout(function(){e.trigger("mediaupdatetimeout"),t()},So(e.media(),Boolean(i))))}()}this.trigger("loadedplaylist")},e}($o),Yo={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},Jo=function(t){return t.on=t.addEventListener,t.off=t.removeEventListener,t},Zo=function(t){return function(){var e=function(t){try{return URL.createObjectURL(new Blob([t],{type:"application/javascript"}))}catch(n){var e=new BlobBuilder;return e.append(t),URL.createObjectURL(e.getBlob())}}(t),n=Jo(new Worker(e));n.objURL=e;var i=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(e),i.call(this)},n}},tu=function(t){return"var browserWorkerPolyFill = "+Jo.toString()+";\nbrowserWorkerPolyFill(self);\n"+t},eu=function(t){return t.toString().replace(/^function.+?{/,"").slice(0,-1)},nu=Zo(tu(eu(function(){var t=function(){this.init=function(){var t={};this.on=function(e,n){t[e]||(t[e]=[]),t[e]=t[e].concat(n)},this.off=function(e,n){var i;return!!t[e]&&(i=t[e].indexOf(n),t[e]=t[e].slice(),t[e].splice(i,1),i>-1)},this.trigger=function(e){var n,i,r,s;if(n=t[e])if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(s=[],i=arguments.length,i=1;i<arguments.length;++i)s.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,s)}},this.dispose=function(){t={}}}};t.prototype.pipe=function(t){return this.on("data",function(e){t.push(e)}),this.on("done",function(e){t.flush(e)}),this.on("partialdone",function(e){t.partialFlush(e)}),this.on("endedtimeline",function(e){t.endTimeline(e)}),this.on("reset",function(e){t.reset(e)}),t},t.prototype.push=function(t){this.trigger("data",t)},t.prototype.flush=function(t){this.trigger("done",t)},t.prototype.partialFlush=function(t){this.trigger("partialdone",t)},t.prototype.endTimeline=function(t){this.trigger("endedtimeline",t)},t.prototype.reset=function(t){this.trigger("reset",t)};var e,n,i,r,s,a,o,u,l,c,A,h,d,f,p,g,m,v,y,b,_,w,B,C,T,E,S,k,x,U,I,F,O,Q,N,L,D,P,R,H,M=t,K=Math.pow(2,32)-1;!function(){var t;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(t in w)w.hasOwnProperty(t)&&(w[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);B=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),T=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),C=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]),S=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]),k={video:E,audio:S},I=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),U=new Uint8Array([0,0,0,0,0,0,0,0]),F=new Uint8Array([0,0,0,0,0,0,0,0]),O=F,Q=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=F,x=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),e=function(t){var e,n,i=[],r=0;for(e=1;e<arguments.length;e++)i.push(arguments[e]);for(e=i.length;e--;)r+=i[e].byteLength;for(n=new Uint8Array(r+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(t,4),e=0,r=8;e<i.length;e++)n.set(i[e],r),r+=i[e].byteLength;return n},n=function(){return e(w.dinf,e(w.dref,I))},i=function(t){return e(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,t.audioobjecttype<<3|t.samplingfrequencyindex>>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))},p=function(t){return e(w.hdlr,k[t])},f=function(t){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,255&t.duration,85,196,0,0]);return t.samplerate&&(n[12]=t.samplerate>>>24&255,n[13]=t.samplerate>>>16&255,n[14]=t.samplerate>>>8&255,n[15]=255&t.samplerate),e(w.mdhd,n)},d=function(t){return e(w.mdia,f(t),p(t.type),a(t))},s=function(t){return e(w.mfhd,new Uint8Array([0,0,0,0,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))},a=function(t){return e(w.minf,"video"===t.type?e(w.vmhd,x):e(w.smhd,U),n(),m(t))},o=function(t,n){for(var i=[],r=n.length;r--;)i[r]=y(n[r]);return e.apply(null,[w.moof,s(t)].concat(i))},u=function(t){for(var n=t.length,i=[];n--;)i[n]=A(t[n]);return e.apply(null,[w.moov,c(4294967295)].concat(i).concat(l(t)))},l=function(t){for(var n=t.length,i=[];n--;)i[n]=b(t[n]);return e.apply(null,[w.mvex].concat(i))},c=function(t){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t,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 e(w.mvhd,n)},g=function(t){var n,i,r=t.samples||[],s=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)n=r[i].flags,s[i+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return e(w.sdtp,s)},m=function(t){return e(w.stbl,v(t),e(w.stts,N),e(w.stsc,O),e(w.stsz,Q),e(w.stco,F))},v=function(t){return e(w.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===t.type?L(t):D(t))},L=function(t){var n,i,r=t.sps||[],s=t.pps||[],a=[],o=[];for(n=0;n<r.length;n++)a.push((65280&r[n].byteLength)>>>8),a.push(255&r[n].byteLength),a=a.concat(Array.prototype.slice.call(r[n]));for(n=0;n<s.length;n++)o.push((65280&s[n].byteLength)>>>8),o.push(255&s[n].byteLength),o=o.concat(Array.prototype.slice.call(s[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&t.width)>>8,255&t.width,(65280&t.height)>>8,255&t.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]),e(w.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([r.length],a,[s.length],o))),e(w.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],t.sarRatio){var u=t.sarRatio[0],l=t.sarRatio[1];i.push(e(w.pasp,new Uint8Array([(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u,(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l])))}return e.apply(null,i)},D=function(t){return e(w.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&t.channelcount)>>8,255&t.channelcount,(65280&t.samplesize)>>8,255&t.samplesize,0,0,0,0,(65280&t.samplerate)>>8,255&t.samplerate,0,0]),i(t))},h=function(t){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,0,(4278190080&t.duration)>>24,(16711680&t.duration)>>16,(65280&t.duration)>>8,255&t.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&t.width)>>8,255&t.width,0,0,(65280&t.height)>>8,255&t.height,0,0]);return e(w.tkhd,n)},y=function(t){var n,i,r,s,a,o;return n=e(w.tfhd,new Uint8Array([0,0,0,58,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(t.baseMediaDecodeTime/(K+1)),o=Math.floor(t.baseMediaDecodeTime%(K+1)),i=e(w.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,o>>>24&255,o>>>16&255,o>>>8&255,255&o])),92,"audio"===t.type?(r=_(t,92),e(w.traf,n,i,r)):(s=g(t),r=_(t,s.length+92),e(w.traf,n,i,r,s))},A=function(t){return t.duration=t.duration||4294967295,e(w.trak,h(t),d(t))},b=function(t){var n=new Uint8Array([0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==t.type&&(n[n.length-1]=0),e(w.trex,n)},H=function(t,e){var n=0,i=0,r=0,s=0;return t.length&&(void 0!==t[0].duration&&(n=1),void 0!==t[0].size&&(i=2),void 0!==t[0].flags&&(r=4),void 0!==t[0].compositionTimeOffset&&(s=8)),[0,0,n|i|r|s,1,(4278190080&t.length)>>>24,(16711680&t.length)>>>16,(65280&t.length)>>>8,255&t.length,(4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e]},R=function(t,n){var i,r,s,a,o,u;for(n+=20+16*(a=t.samples||[]).length,s=H(a,n),(r=new Uint8Array(s.length+16*a.length)).set(s),i=s.length,u=0;u<a.length;u++)o=a[u],r[i++]=(4278190080&o.duration)>>>24,r[i++]=(16711680&o.duration)>>>16,r[i++]=(65280&o.duration)>>>8,r[i++]=255&o.duration,r[i++]=(4278190080&o.size)>>>24,r[i++]=(16711680&o.size)>>>16,r[i++]=(65280&o.size)>>>8,r[i++]=255&o.size,r[i++]=o.flags.isLeading<<2|o.flags.dependsOn,r[i++]=o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,r[i++]=61440&o.flags.degradationPriority,r[i++]=15&o.flags.degradationPriority,r[i++]=(4278190080&o.compositionTimeOffset)>>>24,r[i++]=(16711680&o.compositionTimeOffset)>>>16,r[i++]=(65280&o.compositionTimeOffset)>>>8,r[i++]=255&o.compositionTimeOffset;return e(w.trun,r)},P=function(t,n){var i,r,s,a,o,u;for(n+=20+8*(a=t.samples||[]).length,s=H(a,n),(i=new Uint8Array(s.length+8*a.length)).set(s),r=s.length,u=0;u<a.length;u++)o=a[u],i[r++]=(4278190080&o.duration)>>>24,i[r++]=(16711680&o.duration)>>>16,i[r++]=(65280&o.duration)>>>8,i[r++]=255&o.duration,i[r++]=(4278190080&o.size)>>>24,i[r++]=(16711680&o.size)>>>16,i[r++]=(65280&o.size)>>>8,i[r++]=255&o.size;return e(w.trun,i)},_=function(t,e){return"audio"===t.type?P(t,e):R(t,e)};r=function(){return e(w.ftyp,B,C,B,T)};var j,V,z,$,W,G=function(t){return e(w.mdat,t)},X=o,q=function(t){var e,n=r(),i=u(t);return(e=new Uint8Array(n.byteLength+i.byteLength)).set(n),e.set(i,n.byteLength),e},Y=function(t,e){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=e,n.compositionTimeOffset=t.pts-t.dts,n.duration=t.duration,n.size=4*t.length,n.size+=t.byteLength,t.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},J=function(t){var e,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,i.byteLength=0,e=0;e<t.length;e++)"access_unit_delimiter_rbsp"===(n=t[e]).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]).byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i),r},Z=function(t){var e,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=t[0].pts,i.dts=t[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=t[0].pts,r.dts=t[0].dts,e=0;e<t.length;e++)(n=t[e]).keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),(i=[n]).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},tt=function(t){var e;return!t[0][0].keyFrame&&t.length>1&&(e=t.shift(),t.byteLength-=e.byteLength,t.nalCount-=e.nalCount,t[0][0].dts=e.dts,t[0][0].pts=e.pts,t[0][0].duration+=e.duration),t},et=function(t,e){var n,i,r,s,a,o=e||0,u=[];for(n=0;n<t.length;n++)for(s=t[n],i=0;i<s.length;i++)a=s[i],o+=(r=Y(a,o)).size,u.push(r);return u},nt=function(t){var e,n,i,r,s,a,o=0,u=t.byteLength,l=t.nalCount,c=new Uint8Array(u+4*l),A=new DataView(c.buffer);for(e=0;e<t.length;e++)for(r=t[e],n=0;n<r.length;n++)for(s=r[n],i=0;i<s.length;i++)a=s[i],A.setUint32(o,a.data.byteLength),o+=4,c.set(a.data,o),o+=a.data.byteLength;return c},it=[33,16,5,32,164,27],rt=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],st=function(t){for(var e=[];t--;)e.push(0);return e},at=function(){if(!j){var t={96000:[it,[227,64],st(154),[56]],88200:[it,[231],st(170),[56]],64000:[it,[248,192],st(240),[56]],48000:[it,[255,192],st(268),[55,148,128],st(54),[112]],44100:[it,[255,192],st(268),[55,163,128],st(84),[112]],32000:[it,[255,192],st(268),[55,234],st(226),[112]],24000:[it,[255,192],st(268),[55,255,128],st(268),[111,112],st(126),[224]],16000:[it,[255,192],st(268),[55,255,128],st(268),[111,255],st(269),[223,108],st(195),[1,192]],12000:[rt,st(268),[3,127,248],st(268),[6,255,240],st(268),[13,255,224],st(268),[27,253,128],st(259),[56]],11025:[rt,st(268),[3,127,248],st(268),[6,255,240],st(268),[13,255,224],st(268),[27,255,192],st(268),[55,175,128],st(108),[112]],8000:[rt,st(268),[3,121,16],st(47),[7]]};e=t,j=Object.keys(e).reduce(function(t,n){return t[n]=new Uint8Array(e[n].reduce(function(t,e){return t.concat(e)},[])),t},{})}var e;return j},ot=9e4,ut=V=function(t){return 9e4*t},lt=(z=function(t,e){return t*e},$=function(t){return t/9e4}),ct=(W=function(t,e){return t/e},function(t,e){return V(W(t,e))}),At=function(t,e){return z($(t),e)},ht=function(t,e,n){return $(n?t:t-e)},dt=function(t,e,n,i){var r,s,a,o,u,l=0,c=0,A=0;if(e.length&&(r=ct(t.baseMediaDecodeTime,t.samplerate),s=Math.ceil(ot/(t.samplerate/1024)),n&&i&&(l=r-Math.max(n,i),A=(c=Math.floor(l/s))*s),!(c<1||A>ot/2))){for((a=at()[t.samplerate])||(a=e[0].data),o=0;o<c;o++)u=e[0],e.splice(0,0,{data:a,dts:u.dts-s,pts:u.pts-s});return t.baseMediaDecodeTime-=Math.floor(At(A,t.samplerate)),A}},ft=function(t,e,n){return e.minSegmentDts>=n?t:(e.minSegmentDts=1/0,t.filter(function(t){return t.dts>=n&&(e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),e.minSegmentPts=e.minSegmentDts,!0)}))},pt=function(t){var e,n,i=[];for(e=0;e<t.length;e++)n=t[e],i.push({size:n.data.byteLength,duration:1024});return i},gt=function(t){var e,n,i=0,r=new Uint8Array(function(t){var e,n=0;for(e=0;e<t.length;e++)n+=t[e].data.byteLength;return n}(t));for(e=0;e<t.length;e++)n=t[e],r.set(n.data,i),i+=n.data.byteLength;return r},mt=ot,vt=function(t){delete t.minSegmentDts,delete t.maxSegmentDts,delete t.minSegmentPts,delete t.maxSegmentPts},yt=function(t,e){var n,i=t.minSegmentDts;return e||(i-=t.timelineStartInfo.dts),n=t.timelineStartInfo.baseMediaDecodeTime,n+=i,n=Math.max(0,n),"audio"===t.type&&(n*=t.samplerate/mt,n=Math.floor(n)),n},bt=function(t,e){"number"==typeof e.pts&&(void 0===t.timelineStartInfo.pts&&(t.timelineStartInfo.pts=e.pts),void 0===t.minSegmentPts?t.minSegmentPts=e.pts:t.minSegmentPts=Math.min(t.minSegmentPts,e.pts),void 0===t.maxSegmentPts?t.maxSegmentPts=e.pts:t.maxSegmentPts=Math.max(t.maxSegmentPts,e.pts)),"number"==typeof e.dts&&(void 0===t.timelineStartInfo.dts&&(t.timelineStartInfo.dts=e.dts),void 0===t.minSegmentDts?t.minSegmentDts=e.dts:t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),void 0===t.maxSegmentDts?t.maxSegmentDts=e.dts:t.maxSegmentDts=Math.max(t.maxSegmentDts,e.dts))},_t=function(t){for(var e=0,n={payloadType:-1,payloadSize:0},i=0,r=0;e<t.byteLength&&128!==t[e];){for(;255===t[e];)i+=255,e++;for(i+=t[e++];255===t[e];)r+=255,e++;if(r+=t[e++],!n.payload&&4===i){if("GA94"===String.fromCharCode(t[e+3],t[e+4],t[e+5],t[e+6])){n.payloadType=i,n.payloadSize=r,n.payload=t.subarray(e,e+r);break}n.payload=void 0}e+=r,i=0,r=0}return n},wt=function(t){return 181!==t.payload[0]?null:49!=(t.payload[1]<<8|t.payload[2])?null:"GA94"!==String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])?null:3!==t.payload[7]?null:t.payload.subarray(8,t.payload.length-1)},Bt=function(t,e){var n,i,r,s,a=[];if(!(64&e[0]))return a;for(i=31&e[0],n=0;n<i;n++)s={type:3&e[2+(r=3*n)],pts:t},4&e[r+2]&&(s.ccData=e[r+3]<<8|e[r+4],a.push(s));return a},Ct=function(t){for(var e,n,i=t.byteLength,r=[],s=1;s<i-2;)0===t[s]&&0===t[s+1]&&3===t[s+2]?(r.push(s+2),s+=2):s++;if(0===r.length)return t;e=i-r.length,n=new Uint8Array(e);var a=0;for(s=0;s<e;a++,s++)a===r[0]&&(a++,r.shift()),n[s]=t[a];return n},Tt=4,Et=function t(e){e=e||{},t.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Lt(0,0),new Lt(0,1),new Lt(1,0),new Lt(1,1)],this.parse708captions_&&(this.cc708Stream_=new It),this.reset(),this.ccStreams_.forEach(function(t){t.on("data",this.trigger.bind(this,"data")),t.on("partialdone",this.trigger.bind(this,"partialdone")),t.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")))};(Et.prototype=new M).push=function(t){var e,n,i;if("sei_rbsp"===t.nalUnitType&&(e=_t(t.escapedRBSP)).payload&&e.payloadType===Tt&&(n=wt(e)))if(t.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(t.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=Bt(t.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==t.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=t.dts}},Et.prototype.flushCCStreams=function(t){this.ccStreams_.forEach(function(e){return"flush"===t?e.flush():e.partialFlush()},this)},Et.prototype.flushStream=function(t){this.captionPackets_.length?(this.captionPackets_.forEach(function(t,e){t.presortIndex=e}),this.captionPackets_.sort(function(t,e){return t.pts===e.pts?t.presortIndex-e.presortIndex:t.pts-e.pts}),this.captionPackets_.forEach(function(t){t.type<2?this.dispatchCea608Packet(t):this.dispatchCea708Packet(t)},this),this.captionPackets_.length=0,this.flushCCStreams(t)):this.flushCCStreams(t)},Et.prototype.flush=function(){return this.flushStream("flush")},Et.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Et.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(t){t.reset()})},Et.prototype.dispatchCea608Packet=function(t){this.setsTextOrXDSActive(t)?this.activeCea608Channel_[t.type]=null:this.setsChannel1Active(t)?this.activeCea608Channel_[t.type]=0:this.setsChannel2Active(t)&&(this.activeCea608Channel_[t.type]=1),null!==this.activeCea608Channel_[t.type]&&this.ccStreams_[(t.type<<1)+this.activeCea608Channel_[t.type]].push(t)},Et.prototype.setsChannel1Active=function(t){return 4096==(30720&t.ccData)},Et.prototype.setsChannel2Active=function(t){return 6144==(30720&t.ccData)},Et.prototype.setsTextOrXDSActive=function(t){return 256==(28928&t.ccData)||4138==(30974&t.ccData)||6186==(30974&t.ccData)},Et.prototype.dispatchCea708Packet=function(t){this.parse708captions_&&this.cc708Stream_.push(t)};var St={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},kt=function(t){return 32<=t&&t<=127||160<=t&&t<=255},xt=function(t){this.windowNum=t,this.reset()};xt.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},xt.prototype.getText=function(){return this.rows.join("\n")},xt.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},xt.prototype.newLine=function(t){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(t),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},xt.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},xt.prototype.addText=function(t){this.rows[this.rowIdx]+=t},xt.prototype.backspace=function(){if(!this.isEmpty()){var t=this.rows[this.rowIdx];this.rows[this.rowIdx]=t.substr(0,t.length-1)}};var Ut=function(t){this.serviceNum=t,this.text="",this.currentWindow=new xt(-1),this.windows=[]};Ut.prototype.init=function(t,e){this.startPts=t;for(var n=0;n<8;n++)this.windows[n]=new xt(n),"function"==typeof e&&(this.windows[n].beforeRowOverflow=e)},Ut.prototype.setCurrentWindow=function(t){this.currentWindow=this.windows[t]};var It=function t(){t.prototype.init.call(this);var e=this;this.current708Packet=null,this.services={},this.push=function(t){3===t.type?(e.new708Packet(),e.add708Bytes(t)):(null===e.current708Packet&&e.new708Packet(),e.add708Bytes(t))}};It.prototype=new M,It.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},It.prototype.add708Bytes=function(t){var e=t.ccData,n=e>>>8,i=255&e;this.current708Packet.ptsVals.push(t.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(i)},It.prototype.push708Packet=function(){var t=this.current708Packet,e=t.data,n=null,i=null,r=0,s=e[r++];for(t.seq=s>>6,t.sizeCode=63&s;r<e.length;r++)i=31&(s=e[r++]),7===(n=s>>5)&&i>0&&(n=s=e[r++]),this.pushServiceBlock(n,r,i),i>0&&(r+=i-1)},It.prototype.pushServiceBlock=function(t,e,n){var i,r=e,s=this.current708Packet.data,a=this.services[t];for(a||(a=this.initService(t,r));r<e+n&&r<s.length;r++)i=s[r],kt(i)?r=this.handleText(r,a):16===i?r=this.extendedCommands(r,a):128<=i&&i<=135?r=this.setCurrentWindow(r,a):152<=i&&i<=159?r=this.defineWindow(r,a):136===i?r=this.clearWindows(r,a):140===i?r=this.deleteWindows(r,a):137===i?r=this.displayWindows(r,a):138===i?r=this.hideWindows(r,a):139===i?r=this.toggleWindows(r,a):151===i?r=this.setWindowAttributes(r,a):144===i?r=this.setPenAttributes(r,a):145===i?r=this.setPenColor(r,a):146===i?r=this.setPenLocation(r,a):143===i?a=this.reset(r,a):8===i?a.currentWindow.backspace():12===i?a.currentWindow.clearText():13===i?a.currentWindow.pendingNewLine=!0:14===i?a.currentWindow.clearText():141===i&&r++},It.prototype.extendedCommands=function(t,e){var n=this.current708Packet.data[++t];return kt(n)&&(t=this.handleText(t,e,!0)),t},It.prototype.getPts=function(t){return this.current708Packet.ptsVals[Math.floor(t/2)]},It.prototype.initService=function(t,e){var n=this;return this.services[t]=new Ut(t),this.services[t].init(this.getPts(e),function(e){n.flushDisplayed(e,n.services[t])}),this.services[t]},It.prototype.handleText=function(t,e,n){var i,r,s=this.current708Packet.data[t],a=(r=St[i=(n?4096:0)|s]||i,4096&i&&i===r?"":String.fromCharCode(r)),o=e.currentWindow;return o.pendingNewLine&&!o.isEmpty()&&o.newLine(this.getPts(t)),o.pendingNewLine=!1,o.addText(a),t},It.prototype.setCurrentWindow=function(t,e){var n=7&this.current708Packet.data[t];return e.setCurrentWindow(n),t},It.prototype.defineWindow=function(t,e){var n=this.current708Packet.data,i=n[t],r=7&i;e.setCurrentWindow(r);var s=e.currentWindow;return i=n[++t],s.visible=(32&i)>>5,s.rowLock=(16&i)>>4,s.columnLock=(8&i)>>3,s.priority=7&i,i=n[++t],s.relativePositioning=(128&i)>>7,s.anchorVertical=127&i,i=n[++t],s.anchorHorizontal=i,i=n[++t],s.anchorPoint=(240&i)>>4,s.rowCount=15&i,i=n[++t],s.columnCount=63&i,i=n[++t],s.windowStyle=(56&i)>>3,s.penStyle=7&i,s.virtualRowCount=s.rowCount+1,t},It.prototype.setWindowAttributes=function(t,e){var n=this.current708Packet.data,i=n[t],r=e.currentWindow.winAttr;return i=n[++t],r.fillOpacity=(192&i)>>6,r.fillRed=(48&i)>>4,r.fillGreen=(12&i)>>2,r.fillBlue=3&i,i=n[++t],r.borderType=(192&i)>>6,r.borderRed=(48&i)>>4,r.borderGreen=(12&i)>>2,r.borderBlue=3&i,i=n[++t],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[++t],r.effectSpeed=(240&i)>>4,r.effectDirection=(12&i)>>2,r.displayEffect=3&i,t},It.prototype.flushDisplayed=function(t,e){for(var n=[],i=0;i<8;i++)e.windows[i].visible&&!e.windows[i].isEmpty()&&n.push(e.windows[i].getText());e.endPts=t,e.text=n.join("\n\n"),this.pushCaption(e),e.startPts=t},It.prototype.pushCaption=function(t){""!==t.text&&(this.trigger("data",{startPts:t.startPts,endPts:t.endPts,text:t.text,stream:"cc708_"+t.serviceNum}),t.text="",t.startPts=t.endPts)},It.prototype.displayWindows=function(t,e){var n=this.current708Packet.data[++t],i=this.getPts(t);this.flushDisplayed(i,e);for(var r=0;r<8;r++)n&1<<r&&(e.windows[r].visible=1);return t},It.prototype.hideWindows=function(t,e){var n=this.current708Packet.data[++t],i=this.getPts(t);this.flushDisplayed(i,e);for(var r=0;r<8;r++)n&1<<r&&(e.windows[r].visible=0);return t},It.prototype.toggleWindows=function(t,e){var n=this.current708Packet.data[++t],i=this.getPts(t);this.flushDisplayed(i,e);for(var r=0;r<8;r++)n&1<<r&&(e.windows[r].visible^=1);return t},It.prototype.clearWindows=function(t,e){var n=this.current708Packet.data[++t],i=this.getPts(t);this.flushDisplayed(i,e);for(var r=0;r<8;r++)n&1<<r&&e.windows[r].clearText();return t},It.prototype.deleteWindows=function(t,e){var n=this.current708Packet.data[++t],i=this.getPts(t);this.flushDisplayed(i,e);for(var r=0;r<8;r++)n&1<<r&&e.windows[r].reset();return t},It.prototype.setPenAttributes=function(t,e){var n=this.current708Packet.data,i=n[t],r=e.currentWindow.penAttr;return i=n[++t],r.textTag=(240&i)>>4,r.offset=(12&i)>>2,r.penSize=3&i,i=n[++t],r.italics=(128&i)>>7,r.underline=(64&i)>>6,r.edgeType=(56&i)>>3,r.fontStyle=7&i,t},It.prototype.setPenColor=function(t,e){var n=this.current708Packet.data,i=n[t],r=e.currentWindow.penColor;return i=n[++t],r.fgOpacity=(192&i)>>6,r.fgRed=(48&i)>>4,r.fgGreen=(12&i)>>2,r.fgBlue=3&i,i=n[++t],r.bgOpacity=(192&i)>>6,r.bgRed=(48&i)>>4,r.bgGreen=(12&i)>>2,r.bgBlue=3&i,i=n[++t],r.edgeRed=(48&i)>>4,r.edgeGreen=(12&i)>>2,r.edgeBlue=3&i,t},It.prototype.setPenLocation=function(t,e){var n=this.current708Packet.data,i=n[t],r=e.currentWindow.penLoc;return e.currentWindow.pendingNewLine=!0,i=n[++t],r.row=15&i,i=n[++t],r.column=63&i,t},It.prototype.reset=function(t,e){var n=this.getPts(t);return this.flushDisplayed(n,e),this.initService(e.serviceNum,t)};var Ft={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},Ot=function(t){return null===t?"":(t=Ft[t]||t,String.fromCharCode(t))},Qt=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Nt=function(){for(var t=[],e=15;e--;)t.push("");return t},Lt=function t(e,n){t.prototype.init.call(this),this.field_=e||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(t){var e,n,i,r,s;if((e=32639&t.ccData)!==this.lastControlCode_){if(4096==(61440&e)?this.lastControlCode_=e:e!==this.PADDING_&&(this.lastControlCode_=null),i=e>>>8,r=255&e,e!==this.PADDING_)if(e===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(e===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(t.pts),this.flushDisplayed(t.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=t.pts;else if(e===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(t.pts);else if(e===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(t.pts);else if(e===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(t.pts);else if(e===this.CARRIAGE_RETURN_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),this.shiftRowsUp_(),this.startPts_=t.pts;else if(e===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(e===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(t.pts),this.displayed_=Nt();else if(e===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Nt();else if(e===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(t.pts),this.displayed_=Nt()),this.mode_="paintOn",this.startPts_=t.pts;else if(this.isSpecialCharacter(i,r))s=Ot((i=(3&i)<<8)|r),this[this.mode_](t.pts,s),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),s=Ot((i=(3&i)<<8)|r),this[this.mode_](t.pts,s),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(t.pts),this[this.mode_](t.pts," "),this.column_++,14==(14&r)&&this.addFormatting(t.pts,["i"]),1==(1&r)&&this.addFormatting(t.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var a=Qt.indexOf(7968&e);"rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(t.pts,a)),a!==this.row_&&(this.clearFormatting(t.pts),this.row_=a),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(t.pts,["u"]),16==(16&e)&&(this.column_=4*((14&e)>>1)),this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(t.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),s=Ot(i),s+=Ot(r),this[this.mode_](t.pts,s),this.column_+=s.length)}else this.lastControlCode_=null}};Lt.prototype=new M,Lt.prototype.flushDisplayed=function(t){var e=this.displayed_.map(function(t,e){try{return t.trim()}catch(t){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."}),""}},this).join("\n").replace(/^\n+|\n+$/g,"");e.length&&this.trigger("data",{startPts:this.startPts_,endPts:t,text:e,stream:this.name_})},Lt.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Nt(),this.nonDisplayed_=Nt(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Lt.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_},Lt.prototype.isSpecialCharacter=function(t,e){return t===this.EXT_&&e>=48&&e<=63},Lt.prototype.isExtCharacter=function(t,e){return(t===this.EXT_+1||t===this.EXT_+2)&&e>=32&&e<=63},Lt.prototype.isMidRowCode=function(t,e){return t===this.EXT_&&e>=32&&e<=47},Lt.prototype.isOffsetControlCode=function(t,e){return t===this.OFFSET_&&e>=33&&e<=35},Lt.prototype.isPAC=function(t,e){return t>=this.BASE_&&t<this.BASE_+8&&e>=64&&e<=127},Lt.prototype.isColorPAC=function(t){return t>=64&&t<=79||t>=96&&t<=127},Lt.prototype.isNormalChar=function(t){return t>=32&&t<=127},Lt.prototype.setRollUp=function(t,e){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(t),this.nonDisplayed_=Nt(),this.displayed_=Nt()),void 0!==e&&e!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[e-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===e&&(e=this.row_),this.topRow_=e-this.rollUpRows_+1},Lt.prototype.addFormatting=function(t,e){this.formatting_=this.formatting_.concat(e);var n=e.reduce(function(t,e){return t+"<"+e+">"},"");this[this.mode_](t,n)},Lt.prototype.clearFormatting=function(t){if(this.formatting_.length){var e=this.formatting_.reverse().reduce(function(t,e){return t+"</"+e+">"},"");this.formatting_=[],this[this.mode_](t,e)}},Lt.prototype.popOn=function(t,e){var n=this.nonDisplayed_[this.row_];n+=e,this.nonDisplayed_[this.row_]=n},Lt.prototype.rollUp=function(t,e){var n=this.displayed_[this.row_];n+=e,this.displayed_[this.row_]=n},Lt.prototype.shiftRowsUp_=function(){var t;for(t=0;t<this.topRow_;t++)this.displayed_[t]="";for(t=this.row_+1;t<15;t++)this.displayed_[t]="";for(t=this.topRow_;t<this.row_;t++)this.displayed_[t]=this.displayed_[t+1];this.displayed_[this.row_]=""},Lt.prototype.paintOn=function(t,e){var n=this.displayed_[this.row_];n+=e,this.displayed_[this.row_]=n};var Dt={CaptionStream:Et,Cea608Stream:Lt,Cea708Stream:It},Pt={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Rt=function(t,e){var n=1;for(t>e&&(n=-1);Math.abs(e-t)>4294967296;)t+=8589934592*n;return t},Ht=function t(e){var n,i;t.prototype.init.call(this),this.type_=e||"shared",this.push=function(t){"shared"!==this.type_&&t.type!==this.type_||(void 0===i&&(i=t.dts),t.dts=Rt(t.dts,i),t.pts=Rt(t.pts,i),n=t.dts,this.trigger("data",t))},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")}};Ht.prototype=new M;var Mt,Kt=Ht,jt=Rt,Vt=function(t,e,n){var i,r="";for(i=e;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r},zt=function(t,e,n){return decodeURIComponent(Vt(t,e,n))},$t=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},Wt={TXXX:function(t){var e;if(3===t.data[0]){for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=zt(t.data,1,e),t.value=zt(t.data,e+1,t.data.length).replace(/\0*$/,"");break}t.data=t.value}},WXXX:function(t){var e;if(3===t.data[0])for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=zt(t.data,1,e),t.url=zt(t.data,e+1,t.data.length);break}},PRIV:function(t){var e,n;for(e=0;e<t.data.length;e++)if(0===t.data[e]){t.owner=(n=t.data,unescape(Vt(n,0,e)));break}t.privateData=t.data.subarray(e+1),t.data=t.privateData}};(Mt=function(t){var e,n={descriptor:t&&t.descriptor},i=0,r=[],s=0;if(Mt.prototype.init.call(this),this.dispatchType=Pt.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(e=0;e<n.descriptor.length;e++)this.dispatchType+=("00"+n.descriptor[e].toString(16)).slice(-2);this.push=function(t){var e,n,a,o,u;if("timed-metadata"===t.type)if(t.dataAlignmentIndicator&&(s=0,r.length=0),0===r.length&&(t.data.length<10||t.data[0]!=="I".charCodeAt(0)||t.data[1]!=="D".charCodeAt(0)||t.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(t),s+=t.data.byteLength,1===r.length&&(i=$t(t.data.subarray(6,10)),i+=10),!(s<i)){for(e={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},u=0;u<i;)e.data.set(r[0].data.subarray(0,i-u),u),u+=r[0].data.byteLength,s-=r[0].data.byteLength,r.shift();n=10,64&e.data[5]&&(n+=4,n+=$t(e.data.subarray(10,14)),i-=$t(e.data.subarray(16,20)));do{if((a=$t(e.data.subarray(n+4,n+8)))<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});if((o={id:String.fromCharCode(e.data[n],e.data[n+1],e.data[n+2],e.data[n+3]),data:e.data.subarray(n+10,n+a+10)}).key=o.id,Wt[o.id]&&(Wt[o.id](o),"com.apple.streaming.transportStreamTimestamp"===o.owner)){var l=o.data,c=(1&l[3])<<30|l[4]<<22|l[5]<<14|l[6]<<6|l[7]>>>2;c*=4,c+=3&l[7],o.timeStamp=c,void 0===e.pts&&void 0===e.dts&&(e.pts=o.timeStamp,e.dts=o.timeStamp),this.trigger("timestamp",o)}e.frames.push(o),n+=10,n+=a}while(n<i);this.trigger("data",e)}}}).prototype=new M;var Gt,Xt,qt,Yt=Mt,Jt=Kt;(Gt=function(){var t=new Uint8Array(188),e=0;Gt.prototype.init.call(this),this.push=function(n){var i,r=0,s=188;for(e?((i=new Uint8Array(n.byteLength+e)).set(t.subarray(0,e)),i.set(n,e),e=0):i=n;s<i.byteLength;)71!==i[r]||71!==i[s]?(r++,s++):(this.trigger("data",i.subarray(r,s)),r+=188,s+=188);r<i.byteLength&&(t.set(i.subarray(r),0),e=i.byteLength-r)},this.flush=function(){188===e&&71===t[0]&&(this.trigger("data",t),e=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){e=0,this.trigger("reset")}}).prototype=new M,(Xt=function(){var t,e,n,i;Xt.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,t=function(t,i){var r=0;i.payloadUnitStartIndicator&&(r+=t[r]+1),"pat"===i.type?e(t.subarray(r),i):n(t.subarray(r),i)},e=function(t,e){e.section_number=t[7],e.last_section_number=t[8],i.pmtPid=(31&t[10])<<8|t[11],e.pmtPid=i.pmtPid},n=function(t,e){var n,r;if(1&t[5]){for(i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&t[1])<<8|t[2])-4,r=12+((15&t[10])<<8|t[11]);r<n;){var s=t[r],a=(31&t[r+1])<<8|t[r+2];s===Pt.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=a:s===Pt.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=a:s===Pt.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][a]=s),r+=5+((15&t[r+3])<<8|t[r+4])}e.programMapTable=i.programMapTable}},this.push=function(e){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&e[1]),n.pid=31&e[1],n.pid<<=8,n.pid|=e[2],(48&e[3])>>>4>1&&(i+=e[i]+1),0===n.pid)n.type="pat",t(e.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",t(e.subarray(i),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,i,n]):this.processPes_(e,i,n)},this.processPes_=function(t,e,n){n.pid===this.programMapTable.video?n.streamType=Pt.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=Pt.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=t.subarray(e),this.trigger("data",n)}}).prototype=new M,Xt.STREAM_TYPES={h264:27,adts:15},(qt=function(){var t,e=this,n=!1,i={data:[],size:0},r={data:[],size:0},s={data:[],size:0},a=function(t,n,i){var r,s,a=new Uint8Array(t.size),o={type:n},u=0,l=0;if(t.data.length&&!(t.size<9)){for(o.trackId=t.data[0].pid,u=0;u<t.data.length;u++)s=t.data[u],a.set(s.data,l),l+=s.data.byteLength;var c,A,h,d;A=o,d=(c=a)[0]<<16|c[1]<<8|c[2],A.data=new Uint8Array,1===d&&(A.packetLength=6+(c[4]<<8|c[5]),A.dataAlignmentIndicator=0!=(4&c[6]),192&(h=c[7])&&(A.pts=(14&c[9])<<27|(255&c[10])<<20|(254&c[11])<<12|(255&c[12])<<5|(254&c[13])>>>3,A.pts*=4,A.pts+=(6&c[13])>>>1,A.dts=A.pts,64&h&&(A.dts=(14&c[14])<<27|(255&c[15])<<20|(254&c[16])<<12|(255&c[17])<<5|(254&c[18])>>>3,A.dts*=4,A.dts+=(6&c[18])>>>1)),A.data=c.subarray(9+c[8])),r="video"===n||o.packetLength<=t.size,(i||r)&&(t.size=0,t.data.length=0),r&&e.trigger("data",o)}};qt.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var t,e;switch(o.streamType){case Pt.H264_STREAM_TYPE:t=i,e="video";break;case Pt.ADTS_STREAM_TYPE:t=r,e="audio";break;case Pt.METADATA_STREAM_TYPE:t=s,e="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&a(t,e,!0),t.data.push(o),t.size+=o.data.byteLength},pmt:function(){var i={type:"metadata",tracks:[]};null!==(t=o.programMapTable).video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),n=!0,e.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(){a(i,"video"),a(r,"audio"),a(s,"timed-metadata")},this.flush=function(){if(!n&&t){var i={type:"metadata",tracks:[]};null!==t.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),e.trigger("data",i)}n=!1,this.flushStreams_(),this.trigger("done")}}).prototype=new M;var Zt={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:Gt,TransportParseStream:Xt,ElementaryStream:qt,TimestampRolloverStream:Jt,CaptionStream:Dt.CaptionStream,Cea608Stream:Dt.Cea608Stream,Cea708Stream:Dt.Cea708Stream,MetadataStream:Yt};for(var te in Pt)Pt.hasOwnProperty(te)&&(Zt[te]=Pt[te]);var ee,ne=Zt,ie=ot,re=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(ee=function(t){var e,n=0;ee.prototype.init.call(this),this.skipWarn_=function(t,e){this.trigger("log",{level:"warn",message:"adts skiping bytes "+t+" to "+e+" in frame "+n+" outside syncword"})},this.push=function(i){var r,s,a,o,u,l=0;if(t||(n=0),"audio"===i.type){var c;for(e&&e.length?(a=e,(e=new Uint8Array(a.byteLength+i.data.byteLength)).set(a),e.set(i.data,a.byteLength)):e=i.data;l+7<e.length;)if(255===e[l]&&240==(246&e[l+1])){if("number"==typeof c&&(this.skipWarn_(c,l),c=null),s=2*(1&~e[l+1]),r=(3&e[l+3])<<11|e[l+4]<<3|(224&e[l+5])>>5,u=(o=1024*(1+(3&e[l+6])))*ie/re[(60&e[l+2])>>>2],e.byteLength-l<r)break;this.trigger("data",{pts:i.pts+n*u,dts:i.dts+n*u,sampleCount:o,audioobjecttype:1+(e[l+2]>>>6&3),channelcount:(1&e[l+2])<<2|(192&e[l+3])>>>6,samplerate:re[(60&e[l+2])>>>2],samplingfrequencyindex:(60&e[l+2])>>>2,samplesize:16,data:e.subarray(l+7+s,l+r)}),n++,l+=r}else"number"!=typeof c&&(c=l),l++;"number"==typeof c&&(this.skipWarn_(c,l),c=null),e=e.subarray(l)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){e=void 0,this.trigger("reset")},this.endTimeline=function(){e=void 0,this.trigger("endedtimeline")}}).prototype=new M;var se,ae,oe,ue=ee,le=function(t){var e=t.byteLength,n=0,i=0;this.length=function(){return 8*e},this.bitsAvailable=function(){return 8*e+i},this.loadWord=function(){var r=t.byteLength-e,s=new Uint8Array(4),a=Math.min(4,e);if(0===a)throw new Error("no bytes available");s.set(t.subarray(r,r+a)),n=new DataView(s.buffer).getUint32(0),i=8*a,e-=a},this.skipBits=function(t){var r;i>t?(n<<=t,i-=t):(t-=i,t-=8*(r=Math.floor(t/8)),e-=r,this.loadWord(),n<<=t,i-=t)},this.readBits=function(t){var r=Math.min(i,t),s=n>>>32-r;return(i-=r)>0?n<<=r:e>0&&this.loadWord(),(r=t-r)>0?s<<r|this.readBits(r):s},this.skipLeadingZeros=function(){var t;for(t=0;t<i;++t)if(0!=(n&2147483648>>>t))return n<<=t,i-=t,t;return this.loadWord(),t+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var t=this.skipLeadingZeros();return this.readBits(t+1)-1},this.readExpGolomb=function(){var t=this.readUnsignedExpGolomb();return 1&t?1+t>>>1:-1*(t>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(ae=function(){var t,e,n=0;ae.prototype.init.call(this),this.push=function(i){var r;e?((r=new Uint8Array(e.byteLength+i.data.byteLength)).set(e),r.set(i.data,e.byteLength),e=r):e=i.data;for(var s=e.byteLength;n<s-3;n++)if(1===e[n+2]){t=n+5;break}for(;t<s;)switch(e[t]){case 0:if(0!==e[t-1]){t+=2;break}if(0!==e[t-2]){t++;break}n+3!==t-2&&this.trigger("data",e.subarray(n+3,t-2));do{t++}while(1!==e[t]&&t<s);n=t-2,t+=3;break;case 1:if(0!==e[t-1]||0!==e[t-2]){t+=3;break}this.trigger("data",e.subarray(n+3,t-2)),n=t-2,t+=3;break;default:t+=3}e=e.subarray(n),t-=n,n=0},this.reset=function(){e=null,n=0,this.trigger("reset")},this.flush=function(){e&&e.byteLength>3&&this.trigger("data",e.subarray(n+3)),e=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new M,oe={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(se=function(){var t,e,n,i,r,s,a,o=new ae;se.prototype.init.call(this),t=this,this.push=function(t){"video"===t.type&&(e=t.trackId,n=t.pts,i=t.dts,o.push(t))},o.on("data",function(a){var o={trackId:e,pts:n,dts:i,data:a,nalUnitTypeCode:31&a[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(a.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(a.subarray(1)),o.config=s(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}t.trigger("data",o)}),o.on("done",function(){t.trigger("done")}),o.on("partialdone",function(){t.trigger("partialdone")}),o.on("reset",function(){t.trigger("reset")}),o.on("endedtimeline",function(){t.trigger("endedtimeline")}),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},a=function(t,e){var n,i=8,r=8;for(n=0;n<t;n++)0!==r&&(r=(i+e.readExpGolomb()+256)%256),i=0===r?i:r},r=function(t){for(var e,n,i=t.byteLength,r=[],s=1;s<i-2;)0===t[s]&&0===t[s+1]&&3===t[s+2]?(r.push(s+2),s+=2):s++;if(0===r.length)return t;e=i-r.length,n=new Uint8Array(e);var a=0;for(s=0;s<e;a++,s++)a===r[0]&&(a++,r.shift()),n[s]=t[a];return n},s=function(t){var e,n,i,r,s,o,u,l,c,A,h,d,f=0,p=0,g=0,m=0,v=[1,1];if(n=(e=new le(t)).readUnsignedByte(),r=e.readUnsignedByte(),i=e.readUnsignedByte(),e.skipUnsignedExpGolomb(),oe[n]&&(3===(s=e.readUnsignedExpGolomb())&&e.skipBits(1),e.skipUnsignedExpGolomb(),e.skipUnsignedExpGolomb(),e.skipBits(1),e.readBoolean()))for(h=3!==s?8:12,d=0;d<h;d++)e.readBoolean()&&a(d<6?16:64,e);if(e.skipUnsignedExpGolomb(),0===(o=e.readUnsignedExpGolomb()))e.readUnsignedExpGolomb();else if(1===o)for(e.skipBits(1),e.skipExpGolomb(),e.skipExpGolomb(),u=e.readUnsignedExpGolomb(),d=0;d<u;d++)e.skipExpGolomb();if(e.skipUnsignedExpGolomb(),e.skipBits(1),l=e.readUnsignedExpGolomb(),c=e.readUnsignedExpGolomb(),0===(A=e.readBits(1))&&e.skipBits(1),e.skipBits(1),e.readBoolean()&&(f=e.readUnsignedExpGolomb(),p=e.readUnsignedExpGolomb(),g=e.readUnsignedExpGolomb(),m=e.readUnsignedExpGolomb()),e.readBoolean()&&e.readBoolean()){switch(e.readUnsignedByte()){case 1:v=[1,1];break;case 2:v=[12,11];break;case 3:v=[10,11];break;case 4:v=[16,11];break;case 5:v=[40,33];break;case 6:v=[24,11];break;case 7:v=[20,11];break;case 8:v=[32,11];break;case 9:v=[80,33];break;case 10:v=[18,11];break;case 11:v=[15,11];break;case 12:v=[64,33];break;case 13:v=[160,99];break;case 14:v=[4,3];break;case 15:v=[3,2];break;case 16:v=[2,1];break;case 255:v=[e.readUnsignedByte()<<8|e.readUnsignedByte(),e.readUnsignedByte()<<8|e.readUnsignedByte()]}v&&(v[0],v[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:16*(l+1)-2*f-2*p,height:(2-A)*(c+1)*16-2*g-2*m,sarRatio:v}}}).prototype=new M;var ce,Ae={H264Stream:se,NalByteStream:ae},he=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],de=function(t,e){var n=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9],i=t[e+5];return n=n>=0?n:0,(16&i)>>4?n+20:n+10},fe=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},pe={isLikelyAacData:function(t){var e=function t(e,n){return e.length-n<10||e[n]!=="I".charCodeAt(0)||e[n+1]!=="D".charCodeAt(0)||e[n+2]!=="3".charCodeAt(0)?n:t(e,n+=de(e,n))}(t,0);return t.length>=e+2&&255==(255&t[e])&&240==(240&t[e+1])&&16==(22&t[e+1])},parseId3TagSize:de,parseAdtsSize:function(t,e){var n=(224&t[e+5])>>5,i=t[e+4]<<3;return 6144&t[e+3]|i|n},parseType:function(t,e){return t[e]==="I".charCodeAt(0)&&t[e+1]==="D".charCodeAt(0)&&t[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&t[e]&&240==(240&t[e+1])?"audio":null},parseSampleRate:function(t){for(var e=0;e+5<t.length;){if(255===t[e]&&240==(246&t[e+1]))return he[(60&t[e+2])>>>2];e++}return null},parseAacTimestamp:function(t){var e,n,i;e=10,64&t[5]&&(e+=4,e+=fe(t.subarray(10,14)));do{if((n=fe(t.subarray(e+4,e+8)))<1)return null;if("PRIV"===String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3])){i=t.subarray(e+10,e+n+10);for(var r=0;r<i.byteLength;r++)if(0===i[r]){if("com.apple.streaming.transportStreamTimestamp"===unescape(function(t,e,n){var i,r="";for(i=e;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r}(i,0,r))){var s=i.subarray(r+1),a=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;return a*=4,a+=3&s[7]}break}}e+=10,e+=n}while(e<t.byteLength);return null}};(ce=function(){var t=new Uint8Array,e=0;ce.prototype.init.call(this),this.setTimestamp=function(t){e=t},this.push=function(n){var i,r,s,a,o=0,u=0;for(t.length?(a=t.length,(t=new Uint8Array(n.byteLength+a)).set(t.subarray(0,a)),t.set(n,a)):t=n;t.length-u>=3;)if(t[u]!=="I".charCodeAt(0)||t[u+1]!=="D".charCodeAt(0)||t[u+2]!=="3".charCodeAt(0))if(255!=(255&t[u])||240!=(240&t[u+1]))u++;else{if(t.length-u<7)break;if(u+(o=pe.parseAdtsSize(t,u))>t.length)break;s={type:"audio",data:t.subarray(u,u+o),pts:e,dts:e},this.trigger("data",s),u+=o}else{if(t.length-u<10)break;if(u+(o=pe.parseId3TagSize(t,u))>t.length)break;r={type:"timed-metadata",data:t.subarray(u,u+o)},this.trigger("data",r),u+=o}i=t.length-u,t=i>0?t.subarray(u):new Uint8Array},this.reset=function(){t=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){t=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new M;var ge,me,ve,ye,be=ce,_e=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],we=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Be=Ae.H264Stream,Ce=pe.isLikelyAacData,Te=ot,Ee=function(t,e){var n;if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},Se=function(t,e,n,i,r,s){return{start:{dts:t,pts:t+(n-e)},end:{dts:t+(i-e),pts:t+(r-n)},prependedContentDuration:s,baseMediaDecodeTime:t}};(me=function(t,e){var n=[],i=0,r=0,s=0,a=1/0;e=e||{},me.prototype.init.call(this),this.push=function(e){bt(t,e),t&&_e.forEach(function(n){t[n]=e[n]}),n.push(e)},this.setEarliestDts=function(t){r=t},this.setVideoBaseMediaDecodeTime=function(t){a=t},this.setAudioAppendStart=function(t){s=t},this.flush=function(){var o,u,l,c,A,h,d;0!==n.length?(o=ft(n,t,r),t.baseMediaDecodeTime=yt(t,e.keepOriginalTimestamps),d=dt(t,o,s,a),t.samples=pt(o),l=G(gt(o)),n=[],u=X(i,[t]),c=new Uint8Array(u.byteLength+l.byteLength),i++,c.set(u),c.set(l,u.byteLength),vt(t),A=Math.ceil(1024*Te/t.samplerate),o.length&&(h=o.length*A,this.trigger("segmentTimingInfo",Se(ct(t.baseMediaDecodeTime,t.samplerate),o[0].dts,o[0].pts,o[0].dts+h,o[0].pts+h,d||0)),this.trigger("timingInfo",{start:o[0].pts,end:o[0].pts+h})),this.trigger("data",{track:t,boxes:c}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){vt(t),n=[],this.trigger("reset")}}).prototype=new M,(ge=function(t,e){var n,i,r=0,s=[],a=[];e=e||{},ge.prototype.init.call(this),delete t.minPTS,this.gopCache_=[],this.push=function(e){bt(t,e),"seq_parameter_set_rbsp"!==e.nalUnitType||n||(n=e.config,t.sps=[e.data],we.forEach(function(e){t[e]=n[e]},this)),"pic_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.data,t.pps=[e.data]),s.push(e)},this.flush=function(){for(var n,i,o,u,l,c,A,h,d=0;s.length&&"access_unit_delimiter_rbsp"!==s[0].nalUnitType;)s.shift();if(0===s.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=J(s),(o=Z(n))[0][0].keyFrame||((i=this.getGopForFusion_(s[0],t))?(d=i.duration,o.unshift(i),o.byteLength+=i.byteLength,o.nalCount+=i.nalCount,o.pts=i.pts,o.dts=i.dts,o.duration+=i.duration):o=tt(o)),a.length){var f;if(!(f=e.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o)))return this.gopCache_.unshift({gop:o.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");vt(t),o=f}bt(t,o),t.samples=et(o),l=G(nt(o)),t.baseMediaDecodeTime=yt(t,e.keepOriginalTimestamps),this.trigger("processedGopsInfo",o.map(function(t){return{pts:t.pts,dts:t.dts,byteLength:t.byteLength}})),A=o[0],h=o[o.length-1],this.trigger("segmentTimingInfo",Se(t.baseMediaDecodeTime,A.dts,A.pts,h.dts+h.duration,h.pts+h.duration,d)),this.trigger("timingInfo",{start:o[0].pts,end:o[o.length-1].pts+o[o.length-1].duration}),this.gopCache_.unshift({gop:o.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime),this.trigger("timelineStartInfo",t.timelineStartInfo),u=X(r,[t]),c=new Uint8Array(u.byteLength+l.byteLength),r++,c.set(u),c.set(l,u.byteLength),this.trigger("data",{track:t,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),s=[],this.gopCache_.length=0,a.length=0,this.trigger("reset")},this.resetStream_=function(){vt(t),n=void 0,i=void 0},this.getGopForFusion_=function(e){var n,i,r,s,a,o=1/0;for(a=0;a<this.gopCache_.length;a++)r=(s=this.gopCache_[a]).gop,t.pps&&Ee(t.pps[0],s.pps[0])&&t.sps&&Ee(t.sps[0],s.sps[0])&&(r.dts<t.timelineStartInfo.dts||(n=e.dts-r.dts-r.duration)>=-1e4&&n<=45e3&&(!i||o>n)&&(i=s,o=n));return i?i.gop:null},this.alignGopsAtStart_=function(t){var e,n,i,r,s,o,u,l;for(s=t.byteLength,o=t.nalCount,u=t.duration,e=n=0;e<a.length&&n<t.length&&(i=a[e],r=t[n],i.pts!==r.pts);)r.pts>i.pts?e++:(n++,s-=r.byteLength,o-=r.nalCount,u-=r.duration);return 0===n?t:n===t.length?null:((l=t.slice(n)).byteLength=s,l.duration=u,l.nalCount=o,l.pts=l[0].pts,l.dts=l[0].dts,l)},this.alignGopsAtEnd_=function(t){var e,n,i,r,s,o,u;for(e=a.length-1,n=t.length-1,s=null,o=!1;e>=0&&n>=0;){if(i=a[e],r=t[n],i.pts===r.pts){o=!0;break}i.pts>r.pts?e--:(e===a.length-1&&(s=n),n--)}if(!o&&null===s)return null;if(0===(u=o?n:s))return t;var l=t.slice(u),c=l.reduce(function(t,e){return t.byteLength+=e.byteLength,t.duration+=e.duration,t.nalCount+=e.nalCount,t},{byteLength:0,duration:0,nalCount:0});return l.byteLength=c.byteLength,l.duration=c.duration,l.nalCount=c.nalCount,l.pts=l[0].pts,l.dts=l[0].dts,l},this.alignGopsWith=function(t){a=t}}).prototype=new M,(ye=function(t,e){this.numberOfTracks=0,this.metadataStream=e,void 0!==(t=t||{}).remux?this.remuxTracks=!!t.remux:this.remuxTracks=!0,"boolean"==typeof t.keepOriginalTimestamps?this.keepOriginalTimestamps=t.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,ye.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):(this.pendingTracks.push(t.track),this.pendingBytes+=t.boxes.byteLength,"video"===t.track.type&&(this.videoTrack=t.track,this.pendingBoxes.push(t.boxes)),void("audio"===t.track.type&&(this.audioTrack=t.track,this.pendingBoxes.unshift(t.boxes))))}}).prototype=new M,ye.prototype.flush=function(t){var e,n,i,r,s=0,a={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==t&&"AudioSegmentStream"!==t)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?(o=this.videoTrack.timelineStartInfo.pts,we.forEach(function(t){a.info[t]=this.videoTrack[t]},this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,_e.forEach(function(t){a.info[t]=this.audioTrack[t]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,i=q(this.pendingTracks),a.initSegment=new Uint8Array(i.byteLength),a.initSegment.set(i),a.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)a.data.set(this.pendingBoxes[r],s),s+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(e=this.pendingCaptions[r]).startTime=ht(e.startPts,o,this.keepOriginalTimestamps),e.endTime=ht(e.endPts,o,this.keepOriginalTimestamps),a.captionStreams[e.stream]=!0,a.captions.push(e);for(r=0;r<this.pendingMetadata.length;r++)(n=this.pendingMetadata[r]).cueTime=ht(n.pts,o,this.keepOriginalTimestamps),a.metadata.push(n);for(a.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",a),r=0;r<a.captions.length;r++)e=a.captions[r],this.trigger("caption",e);for(r=0;r<a.metadata.length;r++)n=a.metadata[r],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},ye.prototype.setRemux=function(t){this.remuxTracks=t},(ve=function(t){var e,n,i=this,r=!0;ve.prototype.init.call(this),t=t||{},this.baseMediaDecodeTime=t.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new ne.MetadataStream,r.aacStream=new be,r.audioTimestampRolloverStream=new ne.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new ne.TimestampRolloverStream("timed-metadata"),r.adtsStream=new ue,r.coalesceStream=new ye(t,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(t){r.aacStream.setTimestamp(t.timeStamp)}),r.aacStream.on("data",function(s){"timed-metadata"!==s.type&&"audio"!==s.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new me(n,t),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:!!e}))}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new ne.MetadataStream,r.packetStream=new ne.TransportPacketStream,r.parseStream=new ne.TransportParseStream,r.elementaryStream=new ne.ElementaryStream,r.timestampRolloverStream=new ne.TimestampRolloverStream,r.adtsStream=new ue,r.h264Stream=new Be,r.captionStream=new ne.CaptionStream(t),r.coalesceStream=new ye(t,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(s){var a;if("metadata"===s.type){for(a=s.tracks.length;a--;)e||"video"!==s.tracks[a].type?n||"audio"!==s.tracks[a].type||((n=s.tracks[a]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(e=s.tracks[a]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;e&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new ge(e,t),r.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",function(e){n&&!t.keepOriginalTimestamps&&(n.timelineStartInfo=e,r.audioSegmentStream.setEarliestDts(e.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(t){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(t)}),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 me(n,t),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:!!e})}}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",function(t){t.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",t)}),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;t.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,vt(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),e&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),e.timelineStartInfo.dts=void 0,e.timelineStartInfo.pts=void 0,vt(e),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(t){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(t)},this.setRemux=function(e){var n=this.transmuxPipeline_;t.remux=e,n&&n.coalesceStream&&n.coalesceStream.setRemux(e)},this.alignGopsWith=function(t){e&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(t)},this.getLogTrigger_=function(t){var e=this;return function(n){n.stream=t,e.trigger("log",n)}},this.push=function(t){if(r){var e=Ce(t);if(e&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():e||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),this.transmuxPipeline_)for(var n=Object.keys(this.transmuxPipeline_),i=0;i<n.length;i++){var s=n[i];"headOfPipeline"!==s&&this.transmuxPipeline_[s].on&&this.transmuxPipeline_[s].on("log",this.getLogTrigger_(s))}r=!1}this.transmuxPipeline_.headOfPipeline.push(t)},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()}}).prototype=new M;var ke,xe={Transmuxer:ve,VideoSegmentStream:ge,AudioSegmentStream:me,AUDIO_PROPERTIES:_e,VIDEO_PROPERTIES:we,generateSegmentTimingInfo:Se},Ue=function(t){return t>>>0},Ie=function(t){var e="";return e+=String.fromCharCode(t[0]),e+=String.fromCharCode(t[1]),e+=String.fromCharCode(t[2]),e+=String.fromCharCode(t[3])},Fe=Ue,Oe=function t(e,n){var i,r,s,a,o,u=[];if(!n.length)return null;for(i=0;i<e.byteLength;)r=Fe(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]),s=Ie(e.subarray(i+4,i+8)),a=r>1?i+r:e.byteLength,s===n[0]&&(1===n.length?u.push(e.subarray(i+8,a)):(o=t(e.subarray(i+8,a),n.slice(1))).length&&(u=u.concat(o))),i=a;return u},Qe=Ue,Ne=function(t){var e={version:t[0],flags:new Uint8Array(t.subarray(1,4)),baseMediaDecodeTime:Qe(t[4]<<24|t[5]<<16|t[6]<<8|t[7])};return 1===e.version&&(e.baseMediaDecodeTime*=Math.pow(2,32),e.baseMediaDecodeTime+=Qe(t[8]<<24|t[9]<<16|t[10]<<8|t[11])),e},Le=function(t){return{isLeading:(12&t[0])>>>2,dependsOn:3&t[0],isDependedOn:(192&t[1])>>>6,hasRedundancy:(48&t[1])>>>4,paddingValue:(14&t[1])>>>1,isNonSyncSample:1&t[1],degradationPriority:t[2]<<8|t[3]}},De=function(t){var e,n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]},i=new DataView(t.buffer,t.byteOffset,t.byteLength),r=1&n.flags[2],s=4&n.flags[2],a=1&n.flags[1],o=2&n.flags[1],u=4&n.flags[1],l=8&n.flags[1],c=i.getUint32(4),A=8;for(r&&(n.dataOffset=i.getInt32(A),A+=4),s&&c&&(e={flags:Le(t.subarray(A,A+4))},A+=4,a&&(e.duration=i.getUint32(A),A+=4),o&&(e.size=i.getUint32(A),A+=4),l&&(1===n.version?e.compositionTimeOffset=i.getInt32(A):e.compositionTimeOffset=i.getUint32(A),A+=4),n.samples.push(e),c--);c--;)e={},a&&(e.duration=i.getUint32(A),A+=4),o&&(e.size=i.getUint32(A),A+=4),u&&(e.flags=Le(t.subarray(A,A+4)),A+=4),l&&(1===n.version?e.compositionTimeOffset=i.getInt32(A):e.compositionTimeOffset=i.getUint32(A),A+=4),n.samples.push(e);return n},Pe=function(t){var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:n.getUint32(4)},r=1&i.flags[2],s=2&i.flags[2],a=8&i.flags[2],o=16&i.flags[2],u=32&i.flags[2],l=65536&i.flags[0],c=131072&i.flags[0];return e=8,r&&(e+=4,i.baseDataOffset=n.getUint32(12),e+=4),s&&(i.sampleDescriptionIndex=n.getUint32(e),e+=4),a&&(i.defaultSampleDuration=n.getUint32(e),e+=4),o&&(i.defaultSampleSize=n.getUint32(e),e+=4),u&&(i.defaultSampleFlags=n.getUint32(e)),l&&(i.durationIsEmpty=!0),!r&&c&&(i.baseDataOffsetIsMoof=!0),i},Re=Ct,He=Dt.CaptionStream,Me=function(t,e){for(var n=t,i=0;i<e.length;i++){var r=e[i];if(n<r.size)return r;n-=r.size}return null},Ke=function(t,e){var n=Oe(t,["moof","traf"]),i={},r=[];return Oe(t,["mdat"]).forEach(function(t,e){var i=n[e];r.push({mdat:t,traf:i})}),r.forEach(function(t){var n,r=t.mdat,s=t.traf,a=Oe(s,["tfhd"]),o=Pe(a[0]),u=o.trackId,l=Oe(s,["tfdt"]),c=l.length>0?Ne(l[0]).baseMediaDecodeTime:0,A=Oe(s,["trun"]);e===u&&A.length>0&&(n=function(t,e,n){var i,r,s,a,o=new DataView(t.buffer,t.byteOffset,t.byteLength),u={logs:[],seiNals:[]};for(r=0;r+4<t.length;r+=s)if(s=o.getUint32(r),r+=4,!(s<=0))switch(31&t[r]){case 6:var l=t.subarray(r+1,r+1+s),c=Me(r,e);if(i={nalUnitType:"sei_rbsp",size:s,data:l,escapedRBSP:Re(l),trackId:n},c)i.pts=c.pts,i.dts=c.dts,a=c;else{if(!a){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=a.pts,i.dts=a.dts}u.seiNals.push(i)}return u}(r,function(t,e,n){var i=e,r=n.defaultSampleDuration||0,s=n.defaultSampleSize||0,a=n.trackId,o=[];return t.forEach(function(t){var e=De(t).samples;e.forEach(function(t){void 0===t.duration&&(t.duration=r),void 0===t.size&&(t.size=s),t.trackId=a,t.dts=i,void 0===t.compositionTimeOffset&&(t.compositionTimeOffset=0),t.pts=i+t.compositionTimeOffset,i+=t.duration}),o=o.concat(e)}),o}(A,c,o),u),i[u]||(i[u]={seiNals:[],logs:[]}),i[u].seiNals=i[u].seiNals.concat(n.seiNals),i[u].logs=i[u].logs.concat(n.logs))}),i},je=function(){var t,e,n,i,r,s,a=!1;this.isInitialized=function(){return a},this.init=function(e){t=new He,a=!0,s=!!e&&e.isPartial,t.on("data",function(t){t.startTime=t.startPts/i,t.endTime=t.endPts/i,r.captions.push(t),r.captionStreams[t.stream]=!0}),t.on("log",function(t){r.logs.push(t)})},this.isNewInit=function(t,e){return!(t&&0===t.length||e&&"object"==typeof e&&0===Object.keys(e).length||n===t[0]&&i===e[n])},this.parse=function(t,s,a){var o;if(!this.isInitialized())return null;if(!s||!a)return null;if(this.isNewInit(s,a))n=s[0],i=a[n];else if(null===n||!i)return e.push(t),null;for(;e.length>0;){var u=e.shift();this.parse(u,s,a)}return(o=function(t,e,n){if(null===e)return null;var i=Ke(t,e)[e]||{};return{seiNals:i.seiNals,logs:i.logs,timescale:n}}(t,n,i))&&o.logs&&(r.logs=r.logs.concat(o.logs)),null!==o&&o.seiNals?(this.pushNals(o.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(e){if(!this.isInitialized()||!e||0===e.length)return null;e.forEach(function(e){t.push(e)})},this.flushStream=function(){if(!this.isInitialized())return null;s?t.partialFlush():t.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;t.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){e=[],n=null,i=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},Ve=Ue,ze=function(t){return("00"+t.toString(16)).slice(-2)},$e=function(t,e){var n,i,r;return n=Oe(e,["moof","traf"]),i=[].concat.apply([],n.map(function(e){return Oe(e,["tfhd"]).map(function(n){var i,r,s;return i=Ve(n[4]<<24|n[5]<<16|n[6]<<8|n[7]),r=t[i]||9e4,(s="number"!=typeof(s=Oe(e,["tfdt"]).map(function(t){var e,n;return e=t[0],n=Ve(t[4]<<24|t[5]<<16|t[6]<<8|t[7]),1===e&&(n*=Math.pow(2,32),n+=Ve(t[8]<<24|t[9]<<16|t[10]<<8|t[11])),n})[0])||isNaN(s)?1/0:s)/r})})),r=Math.min.apply(null,i),isFinite(r)?r:0},We=function(t){var e=[];return Oe(t,["moov","trak"]).forEach(function(t){var n,i,r={},s=Oe(t,["tkhd"])[0];s&&(i=(n=new DataView(s.buffer,s.byteOffset,s.byteLength)).getUint8(0),r.id=0===i?n.getUint32(12):n.getUint32(20));var a=Oe(t,["mdia","hdlr"])[0];if(a){var o=Ie(a.subarray(8,12));r.type="vide"===o?"video":"soun"===o?"audio":o}var u=Oe(t,["mdia","minf","stbl","stsd"])[0];if(u){var l=u.subarray(8);r.codec=Ie(l.subarray(4,8));var c,A=Oe(l,[r.codec])[0];A&&(/^[a-z]vc[1-9]$/i.test(r.codec)?(c=A.subarray(78),"avcC"===Ie(c.subarray(4,8))&&c.length>11?(r.codec+=".",r.codec+=ze(c[9]),r.codec+=ze(c[10]),r.codec+=ze(c[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(c=A.subarray(28),"esds"===Ie(c.subarray(4,8))&&c.length>20&&0!==c[19]?(r.codec+="."+ze(c[19]),r.codec+="."+ze(c[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var h=Oe(t,["mdia","mdhd"])[0];h&&(r.timescale=ke(h)),e.push(r)}),e},Ge=(ke=function(t){var e=0===t[0]?12:20;return Ve(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])},function(t){var e=31&t[1];return e<<=8,e|=t[2]}),Xe=function(t){return!!(64&t[1])},qe=function(t){var e=0;return(48&t[3])>>>4>1&&(e+=t[4]+1),e},Ye=function(t){switch(t){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}},Je={parseType:function(t,e){var n=Ge(t);return 0===n?"pat":n===e?"pmt":e?"pes":null},parsePat:function(t){var e=Xe(t),n=4+qe(t);return e&&(n+=t[n]+1),(31&t[n+10])<<8|t[n+11]},parsePmt:function(t){var e={},n=Xe(t),i=4+qe(t);if(n&&(i+=t[i]+1),1&t[i+5]){var r;r=3+((15&t[i+1])<<8|t[i+2])-4;for(var s=12+((15&t[i+10])<<8|t[i+11]);s<r;){var a=i+s;e[(31&t[a+1])<<8|t[a+2]]=t[a],s+=5+((15&t[a+3])<<8|t[a+4])}return e}},parsePayloadUnitStartIndicator:Xe,parsePesType:function(t,e){switch(e[Ge(t)]){case Pt.H264_STREAM_TYPE:return"video";case Pt.ADTS_STREAM_TYPE:return"audio";case Pt.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(t){if(!Xe(t))return null;var e=4+qe(t);if(e>=t.byteLength)return null;var n,i=null;return 192&(n=t[e+7])&&((i={}).pts=(14&t[e+9])<<27|(255&t[e+10])<<20|(254&t[e+11])<<12|(255&t[e+12])<<5|(254&t[e+13])>>>3,i.pts*=4,i.pts+=(6&t[e+13])>>>1,i.dts=i.pts,64&n&&(i.dts=(14&t[e+14])<<27|(255&t[e+15])<<20|(254&t[e+16])<<12|(255&t[e+17])<<5|(254&t[e+18])>>>3,i.dts*=4,i.dts+=(6&t[e+18])>>>1)),i},videoPacketContainsKeyFrame:function(t){for(var e=4+qe(t),n=t.subarray(e),i=0,r=0,s=!1;r<n.byteLength-3;r++)if(1===n[r+2]){i=r+5;break}for(;i<n.byteLength;)switch(n[i]){case 0:if(0!==n[i-1]){i+=2;break}if(0!==n[i-2]){i++;break}r+3!==i-2&&"slice_layer_without_partitioning_rbsp_idr"===Ye(31&n[r+3])&&(s=!0);do{i++}while(1!==n[i]&&i<n.length);r=i-2,i+=3;break;case 1:if(0!==n[i-1]||0!==n[i-2]){i+=3;break}"slice_layer_without_partitioning_rbsp_idr"===Ye(31&n[r+3])&&(s=!0),r=i-2,i+=3;break;default:i+=3}return n=n.subarray(r),i-=r,r=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===Ye(31&n[r+3])&&(s=!0),s}},Ze=jt,tn={};tn.ts=Je,tn.aac=pe;var en=ot,nn=function(t,e,n){for(var i,r,s,a,o=0,u=188,l=!1;u<=t.byteLength;)if(71!==t[o]||71!==t[u]&&u!==t.byteLength)o++,u++;else{switch(i=t.subarray(o,u),tn.ts.parseType(i,e.pid)){case"pes":r=tn.ts.parsePesType(i,e.table),s=tn.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&s&&(a=tn.ts.parsePesTime(i))&&(a.type="audio",n.audio.push(a),l=!0)}if(l)break;o+=188,u+=188}for(o=(u=t.byteLength)-188,l=!1;o>=0;)if(71!==t[o]||71!==t[u]&&u!==t.byteLength)o--,u--;else{switch(i=t.subarray(o,u),tn.ts.parseType(i,e.pid)){case"pes":r=tn.ts.parsePesType(i,e.table),s=tn.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&s&&(a=tn.ts.parsePesTime(i))&&(a.type="audio",n.audio.push(a),l=!0)}if(l)break;o-=188,u-=188}},rn=function(t,e,n){for(var i,r,s,a,o,u,l,c=0,A=188,h=!1,d={data:[],size:0};A<t.byteLength;)if(71!==t[c]||71!==t[A])c++,A++;else{switch(i=t.subarray(c,A),tn.ts.parseType(i,e.pid)){case"pes":if(r=tn.ts.parsePesType(i,e.table),s=tn.ts.parsePayloadUnitStartIndicator(i),"video"===r&&(s&&!h&&(a=tn.ts.parsePesTime(i))&&(a.type="video",n.video.push(a),h=!0),!n.firstKeyFrame)){if(s&&0!==d.size){for(o=new Uint8Array(d.size),u=0;d.data.length;)l=d.data.shift(),o.set(l,u),u+=l.byteLength;if(tn.ts.videoPacketContainsKeyFrame(o)){var f=tn.ts.parsePesTime(o);f?(n.firstKeyFrame=f,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.")}d.size=0}d.data.push(i),d.size+=i.byteLength}}if(h&&n.firstKeyFrame)break;c+=188,A+=188}for(c=(A=t.byteLength)-188,h=!1;c>=0;)if(71!==t[c]||71!==t[A])c--,A--;else{switch(i=t.subarray(c,A),tn.ts.parseType(i,e.pid)){case"pes":r=tn.ts.parsePesType(i,e.table),s=tn.ts.parsePayloadUnitStartIndicator(i),"video"===r&&s&&(a=tn.ts.parsePesTime(i))&&(a.type="video",n.video.push(a),h=!0)}if(h)break;c-=188,A-=188}},sn=function(t){var e={pid:null,table:null},n={};for(var i in function(t,e){for(var n,i=0,r=188;r<t.byteLength;)if(71!==t[i]||71!==t[r])i++,r++;else{switch(n=t.subarray(i,r),tn.ts.parseType(n,e.pid)){case"pat":e.pid=tn.ts.parsePat(n);break;case"pmt":var s=tn.ts.parsePmt(n);e.table=e.table||{},Object.keys(s).forEach(function(t){e.table[t]=s[t]})}i+=188,r+=188}}(t,e),e.table){if(e.table.hasOwnProperty(i))switch(e.table[i]){case Pt.H264_STREAM_TYPE:n.video=[],rn(t,e,n),0===n.video.length&&delete n.video;break;case Pt.ADTS_STREAM_TYPE:n.audio=[],nn(t,e,n),0===n.audio.length&&delete n.audio}}return n},an=function(t,e){var n;return(n=tn.aac.isLikelyAacData(t)?function(t){for(var e,n=!1,i=0,r=null,s=null,a=0,o=0;t.length-o>=3;){switch(tn.aac.parseType(t,o)){case"timed-metadata":if(t.length-o<10){n=!0;break}if((a=tn.aac.parseId3TagSize(t,o))>t.length){n=!0;break}null===s&&(e=t.subarray(o,o+a),s=tn.aac.parseAacTimestamp(e)),o+=a;break;case"audio":if(t.length-o<7){n=!0;break}if((a=tn.aac.parseAdtsSize(t,o))>t.length){n=!0;break}null===r&&(e=t.subarray(o,o+a),r=tn.aac.parseSampleRate(e)),i++,o+=a;break;default:o++}if(n)return null}if(null===r||null===s)return null;var u=en/r;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*i*u,pts:s+1024*i*u}]}}(t):sn(t))&&(n.audio||n.video)?(function(t,e){if(t.audio&&t.audio.length){var n=e;(void 0===n||isNaN(n))&&(n=t.audio[0].dts),t.audio.forEach(function(t){t.dts=Ze(t.dts,n),t.pts=Ze(t.pts,n),t.dtsTime=t.dts/en,t.ptsTime=t.pts/en})}if(t.video&&t.video.length){var i=e;if((void 0===i||isNaN(i))&&(i=t.video[0].dts),t.video.forEach(function(t){t.dts=Ze(t.dts,i),t.pts=Ze(t.pts,i),t.dtsTime=t.dts/en,t.ptsTime=t.pts/en}),t.firstKeyFrame){var r=t.firstKeyFrame;r.dts=Ze(r.dts,i),r.pts=Ze(r.pts,i),r.dtsTime=r.dts/en,r.ptsTime=r.pts/en}}}(n,e),n):null},on=function(){function t(t,e){this.options=e||{},this.self=t,this.init()}var e=t.prototype;return e.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new xe.Transmuxer(this.options),function(t,e){e.on("data",function(e){var n=e.initSegment;e.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var i=e.data;e.data=i.buffer,t.postMessage({action:"data",segment:e,byteOffset:i.byteOffset,byteLength:i.byteLength},[e.data])}),e.on("done",function(e){t.postMessage({action:"done"})}),e.on("gopInfo",function(e){t.postMessage({action:"gopInfo",gopInfo:e})}),e.on("videoSegmentTimingInfo",function(e){var n={start:{decode:lt(e.start.dts),presentation:lt(e.start.pts)},end:{decode:lt(e.end.dts),presentation:lt(e.end.pts)},baseMediaDecodeTime:lt(e.baseMediaDecodeTime)};e.prependedContentDuration&&(n.prependedContentDuration=lt(e.prependedContentDuration)),t.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})}),e.on("audioSegmentTimingInfo",function(e){var n={start:{decode:lt(e.start.dts),presentation:lt(e.start.pts)},end:{decode:lt(e.end.dts),presentation:lt(e.end.pts)},baseMediaDecodeTime:lt(e.baseMediaDecodeTime)};e.prependedContentDuration&&(n.prependedContentDuration=lt(e.prependedContentDuration)),t.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})}),e.on("id3Frame",function(e){t.postMessage({action:"id3Frame",id3Frame:e})}),e.on("caption",function(e){t.postMessage({action:"caption",caption:e})}),e.on("trackinfo",function(e){t.postMessage({action:"trackinfo",trackInfo:e})}),e.on("audioTimingInfo",function(e){t.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:lt(e.start),end:lt(e.end)}})}),e.on("videoTimingInfo",function(e){t.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:lt(e.start),end:lt(e.end)}})}),e.on("log",function(e){t.postMessage({action:"log",log:e})})}(this.self,this.transmuxer)},e.pushMp4Captions=function(t){this.captionParser||(this.captionParser=new je,this.captionParser.init());var e=new Uint8Array(t.data,t.byteOffset,t.byteLength),n=this.captionParser.parse(e,t.trackIds,t.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:e.buffer},[e.buffer])},e.probeMp4StartTime=function(t){var e=t.timescales,n=t.data,i=$e(e,n);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:n},[n.buffer])},e.probeMp4Tracks=function(t){var e=t.data,n=We(e);this.self.postMessage({action:"probeMp4Tracks",tracks:n,data:e},[e.buffer])},e.probeTs=function(t){var e=t.data,n=t.baseStartTime,i="number"!=typeof n||isNaN(n)?void 0:n*ot,r=an(e,i),s=null;r&&((s={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(s.videoStart=r.video[0].ptsTime),s.hasAudio&&(s.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:s,data:e},[e.buffer])},e.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},e.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},e.push=function(t){var e=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(e)},e.reset=function(){this.transmuxer.reset()},e.setTimestampOffset=function(t){var e=t.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(ut(e)))},e.setAudioAppendStart=function(t){this.transmuxer.setAudioAppendStart(Math.ceil(ut(t.appendStart)))},e.setRemux=function(t){this.transmuxer.setRemux(t.remux)},e.flush=function(t){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},e.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},e.alignGopsWith=function(t){this.transmuxer.alignGopsWith(t.gopsToAlignWith.slice())},t}();self.onmessage=function(t){"init"===t.data.action&&t.data.options?this.messageHandlers=new on(self,t.data.options):(this.messageHandlers||(this.messageHandlers=new on(self)),t.data&&t.data.action&&"init"!==t.data.action&&this.messageHandlers[t.data.action]&&this.messageHandlers[t.data.action](t.data))}}))),iu=function(t){var e=t.transmuxer,n=t.bytes,i=t.audioAppendStart,r=t.gopsToAlignWith,s=t.remux,a=t.onData,o=t.onTrackInfo,u=t.onAudioTimingInfo,l=t.onVideoTimingInfo,c=t.onVideoSegmentTimingInfo,A=t.onAudioSegmentTimingInfo,h=t.onId3,d=t.onCaptions,f=t.onDone,p=t.onEndedTimeline,g=t.onTransmuxerLog,m=t.isEndOfTimeline,v={buffer:[]},y=m;if(e.onmessage=function(n){e.currentTransmux===t&&("data"===n.data.action&&function(t,e,n){var i=t.data.segment,r=i.type,s=i.initSegment,a=i.captions,o=i.captionStreams,u=i.metadata,l=i.videoFrameDtsTime,c=i.videoFramePtsTime;e.buffer.push({captions:a,captionStreams:o,metadata:u});var A=t.data.segment.boxes||{data:t.data.segment.data},h={type:r,data:new Uint8Array(A.data,A.data.byteOffset,A.data.byteLength),initSegment:new Uint8Array(s.data,s.byteOffset,s.byteLength)};void 0!==l&&(h.videoFrameDtsTime=l),void 0!==c&&(h.videoFramePtsTime=c),n(h)}(n,v,a),"trackinfo"===n.data.action&&o(n.data.trackInfo),"gopInfo"===n.data.action&&function(t,e){e.gopInfo=t.data.gopInfo}(n,v),"audioTimingInfo"===n.data.action&&u(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&l(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&c(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&A(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&h([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&d(n.data.caption),"endedtimeline"===n.data.action&&(y=!1,p()),"log"===n.data.action&&g(n.data.log),"transmuxed"===n.data.type&&(y||(e.onmessage=null,function(t){var e=t.transmuxedData,n=t.callback;e.buffer=[],n(e)}({transmuxedData:v,callback:f}),ru(e))))},i&&e.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&e.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==s&&e.postMessage({action:"setRemux",remux:s}),n.byteLength){var b=n instanceof ArrayBuffer?n:n.buffer,_=n instanceof ArrayBuffer?0:n.byteOffset;e.postMessage({action:"push",data:b,byteOffset:_,byteLength:n.byteLength},[b])}m&&e.postMessage({action:"endTimeline"}),e.postMessage({action:"flush"})},ru=function(t){t.currentTransmux=null,t.transmuxQueue.length&&(t.currentTransmux=t.transmuxQueue.shift(),"function"==typeof t.currentTransmux?t.currentTransmux():iu(t.currentTransmux))},su=function(t,e){t.postMessage({action:e}),ru(t)},au=function(t,e){if(!e.currentTransmux)return e.currentTransmux=t,void su(e,t);e.transmuxQueue.push(su.bind(null,e,t))},ou=function(t){if(!t.transmuxer.currentTransmux)return t.transmuxer.currentTransmux=t,void iu(t);t.transmuxer.transmuxQueue.push(t)},uu=function(t){au("reset",t)},lu=function(t){var e=new nu;e.currentTransmux=null,e.transmuxQueue=[];var n=e.terminate;return e.terminate=function(){return e.currentTransmux=null,e.transmuxQueue.length=0,n.call(e)},e.postMessage({action:"init",options:t}),e},cu=function(t){var e=t.transmuxer,n=t.endAction||t.action,i=t.callback,r=A()({},t,{endAction:null,transmuxer:null,callback:null});if(e.addEventListener("message",function r(s){s.data.action===n&&(e.removeEventListener("message",r),s.data.data&&(s.data.data=new Uint8Array(s.data.data,t.byteOffset||0,t.byteLength||s.data.data.byteLength),t.data&&(t.data=s.data.data)),i(s.data))}),t.data){var s=t.data instanceof ArrayBuffer;r.byteOffset=s?0:t.data.byteOffset,r.byteLength=t.data.byteLength;var a=[s?t.data:t.data.buffer];e.postMessage(r,a)}else e.postMessage(r)},Au=2,hu=-101,du=-102,fu=function(t){t.forEach(function(t){t.abort()})},pu=function(t,e){return e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:hu,xhr:e}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:du,xhr:e}:t?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:Au,xhr:e}:"arraybuffer"===e.responseType&&0===e.response.byteLength?{status:e.status,message:"Empty HLS response at URL: "+e.uri,code:Au,xhr:e}:null},gu=function(t,e,n){return function(i,r){var s=r.response,a=pu(i,r);if(a)return n(a,t);if(16!==s.byteLength)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:Au,xhr:r},t);for(var o=new DataView(s),u=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]),l=0;l<e.length;l++)e[l].bytes=u;return n(null,t)}},mu=function(t,e){var n=_e(t.map.bytes);if("mp4"!==n){var i=t.map.resolvedUri||t.map.uri;return e({internal:!0,message:"Found unsupported "+(n||"unknown")+" container for initialization segment at URL: "+i,code:Au})}cu({action:"probeMp4Tracks",data:t.map.bytes,transmuxer:t.transmuxer,callback:function(n){var i=n.tracks,r=n.data;return t.map.bytes=r,i.forEach(function(e){t.map.tracks=t.map.tracks||{},t.map.tracks[e.type]||(t.map.tracks[e.type]=e,"number"==typeof e.id&&e.timescale&&(t.map.timescales=t.map.timescales||{},t.map.timescales[e.id]=e.timescale))}),e(null)}})},vu=function(t){var e=t.segment,n=t.finishProcessingFn,i=t.responseType;return function(t,r){var s=pu(t,r);if(s)return n(s,e);var a="arraybuffer"!==i&&r.responseText?function(t){for(var e=new Uint8Array(new ArrayBuffer(t.length)),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e.buffer}(r.responseText.substring(e.lastReachedChar||0)):r.response;return e.stats=function(t){return{bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}}(r),e.key?e.encryptedBytes=new Uint8Array(a):e.bytes=new Uint8Array(a),n(null,e)}},yu=function(t){var e=t.segment,n=t.bytes,i=t.trackInfoFn,r=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,a=t.audioSegmentTimingInfoFn,o=t.id3Fn,u=t.captionsFn,l=t.isEndOfTimeline,c=t.endedTimelineFn,A=t.dataFn,h=t.doneFn,d=t.onTransmuxerLog,f=e.map&&e.map.tracks||{},p=Boolean(f.audio&&f.video),g=r.bind(null,e,"audio","start"),m=r.bind(null,e,"audio","end"),v=r.bind(null,e,"video","start"),y=r.bind(null,e,"video","end");cu({action:"probeTs",transmuxer:e.transmuxer,data:n,baseStartTime:e.baseStartTime,callback:function(t){e.bytes=n=t.data;var r=t.result;r&&(i(e,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:p}),i=null,r.hasAudio&&!p&&g(r.audioStart),r.hasVideo&&v(r.videoStart),g=null,v=null),ou({bytes:n,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:p,onData:function(t){t.type="combined"===t.type?"video":t.type,A(e,t)},onTrackInfo:function(t){i&&(p&&(t.isMuxed=!0),i(e,t))},onAudioTimingInfo:function(t){g&&void 0!==t.start&&(g(t.start),g=null),m&&void 0!==t.end&&m(t.end)},onVideoTimingInfo:function(t){v&&void 0!==t.start&&(v(t.start),v=null),y&&void 0!==t.end&&y(t.end)},onVideoSegmentTimingInfo:function(t){s(t)},onAudioSegmentTimingInfo:function(t){a(t)},onId3:function(t,n){o(e,t,n)},onCaptions:function(t){u(e,[t])},isEndOfTimeline:l,onEndedTimeline:function(){c()},onTransmuxerLog:d,onDone:function(t){h&&(t.type="combined"===t.type?"video":t.type,h(null,e,t))}})}})},bu=function(t){var e=t.segment,n=t.bytes,i=t.trackInfoFn,r=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,a=t.audioSegmentTimingInfoFn,o=t.id3Fn,u=t.captionsFn,l=t.isEndOfTimeline,c=t.endedTimelineFn,A=t.dataFn,h=t.doneFn,d=t.onTransmuxerLog,f=new Uint8Array(n);if(function(t){return re(t,["moof"]).length>0}(f)){e.isFmp4=!0;var p=e.map.tracks,g={isFmp4:!0,hasVideo:!!p.video,hasAudio:!!p.audio};p.audio&&p.audio.codec&&"enca"!==p.audio.codec&&(g.audioCodec=p.audio.codec),p.video&&p.video.codec&&"encv"!==p.video.codec&&(g.videoCodec=p.video.codec),p.video&&p.audio&&(g.isMuxed=!0),i(e,g);var m=function(t){A(e,{data:f,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),t&&t.length&&u(e,t),h(null,e,{})};cu({action:"probeMp4StartTime",timescales:e.map.timescales,data:f,transmuxer:e.transmuxer,callback:function(t){var i=t.data,s=t.startTime;n=i.buffer,e.bytes=f=i,g.hasAudio&&!g.isMuxed&&r(e,"audio","start",s),g.hasVideo&&r(e,"video","start",s),p.video&&i.byteLength&&e.transmuxer?cu({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:f,timescales:e.map.timescales,trackIds:[p.video.id],callback:function(t){n=t.data.buffer,e.bytes=f=t.data,t.logs.forEach(function(t){d(Ra.mergeOptions(t,{stream:"mp4CaptionParser"}))}),m(t.captions)}}):m()}})}else if(e.transmuxer){if(void 0===e.container&&(e.container=_e(f)),"ts"!==e.container&&"aac"!==e.container)return i(e,{hasAudio:!1,hasVideo:!1}),void h(null,e,{});yu({segment:e,bytes:n,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:u,isEndOfTimeline:l,endedTimelineFn:c,dataFn:A,doneFn:h,onTransmuxerLog:d})}else h(null,e,{})},_u=function(t,e){var n,i=t.id,r=t.key,s=t.encryptedBytes,a=t.decryptionWorker;a.addEventListener("message",function t(n){if(n.data.source===i){a.removeEventListener("message",t);var r=n.data.decrypted;e(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}}),n=r.bytes.slice?r.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.bytes)),a.postMessage(Do({source:i,encrypted:s,key:n,iv:r.iv}),[s.buffer,n.buffer])},wu=function(t){var e=t.activeXhrs,n=t.decryptionWorker,i=t.trackInfoFn,r=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,a=t.audioSegmentTimingInfoFn,o=t.id3Fn,u=t.captionsFn,l=t.isEndOfTimeline,c=t.endedTimelineFn,A=t.dataFn,h=t.doneFn,d=t.onTransmuxerLog,f=0,p=!1;return function(t,g){if(!p){if(t)return p=!0,fu(e),h(t,g);if((f+=1)===e.length){var m=function(){if(g.encryptedBytes)return function(t){var e=t.decryptionWorker,n=t.segment,i=t.trackInfoFn,r=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,a=t.audioSegmentTimingInfoFn,o=t.id3Fn,u=t.captionsFn,l=t.isEndOfTimeline,c=t.endedTimelineFn,A=t.dataFn,h=t.doneFn,d=t.onTransmuxerLog;_u({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:e},function(t){n.bytes=t,bu({segment:n,bytes:n.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:u,isEndOfTimeline:l,endedTimelineFn:c,dataFn:A,doneFn:h,onTransmuxerLog:d})})}({decryptionWorker:n,segment:g,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:u,isEndOfTimeline:l,endedTimelineFn:c,dataFn:A,doneFn:h,onTransmuxerLog:d});bu({segment:g,bytes:g.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:u,isEndOfTimeline:l,endedTimelineFn:c,dataFn:A,doneFn:h,onTransmuxerLog:d})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return _u({decryptionWorker:n,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},function(t){g.map.bytes=t,mu(g,function(t){if(t)return fu(e),h(t,g);m()})});m()}}}},Bu=function(t){var e=t.segment,n=t.progressFn;return t.trackInfoFn,t.timingInfoFn,t.videoSegmentTimingInfoFn,t.audioSegmentTimingInfoFn,t.id3Fn,t.captionsFn,t.isEndOfTimeline,t.endedTimelineFn,t.dataFn,function(t){if(!t.target.aborted)return e.stats=Ra.mergeOptions(e.stats,function(t){var e=t.target,n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-e.requestTime||0};return n.bytesReceived=t.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n}(t)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),n(t,e)}},Cu=function(t){var e=t.xhr,n=t.xhrOptions,i=t.decryptionWorker,r=t.segment,s=t.abortFn,a=t.progressFn,o=t.trackInfoFn,u=t.timingInfoFn,l=t.videoSegmentTimingInfoFn,c=t.audioSegmentTimingInfoFn,A=t.id3Fn,h=t.captionsFn,d=t.isEndOfTimeline,f=t.endedTimelineFn,p=t.dataFn,g=t.doneFn,m=t.onTransmuxerLog,v=[],y=wu({activeXhrs:v,decryptionWorker:i,trackInfoFn:o,timingInfoFn:u,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:A,captionsFn:h,isEndOfTimeline:d,endedTimelineFn:f,dataFn:p,doneFn:g,onTransmuxerLog:m});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 _=e(Ra.mergeOptions(n,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),gu(r,b,y));v.push(_)}if(r.map&&!r.map.bytes){if(r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri)){var w=e(Ra.mergeOptions(n,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),gu(r,[r.map.key],y));v.push(w)}var B=e(Ra.mergeOptions(n,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:Oo(r.map)}),function(t){var e=t.segment,n=t.finishProcessingFn;return function(t,i){var r=pu(t,i);if(r)return n(r,e);var s=new Uint8Array(i.response);if(e.map.key)return e.map.encryptedBytes=s,n(null,e);e.map.bytes=s,mu(e,function(t){if(t)return t.xhr=i,t.status=i.status,n(t,e);n(null,e)})}}({segment:r,finishProcessingFn:y}));v.push(B)}var C=Ra.mergeOptions(n,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:Oo(r)}),T=e(C,vu({segment:r,finishProcessingFn:y,responseType:C.responseType}));T.addEventListener("progress",Bu({segment:r,progressFn:a,trackInfoFn:o,timingInfoFn:u,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:A,captionsFn:h,isEndOfTimeline:d,endedTimelineFn:f,dataFn:p})),v.push(T);var E={};return v.forEach(function(t){t.addEventListener("loadend",function(t){var e=t.loadendState,n=t.abortFn;return function(t){t.target.aborted&&n&&!e.calledAbortFn&&(n(),e.calledAbortFn=!0)}}({loadendState:E,abortFn:s}))}),function(){return fu(v)}},Tu=Va("CodecUtils"),Eu=function(t,e){var n=e.attributes||{};return t&&t.mediaGroups&&t.mediaGroups.AUDIO&&n.AUDIO&&t.mediaGroups.AUDIO[n.AUDIO]},Su=function(t){var e={};return t.forEach(function(t){var n=t.mediaType,i=t.type,r=t.details;e[n]=e[n]||[],e[n].push(V(""+i+r))}),Object.keys(e).forEach(function(t){if(e[t].length>1)return Tu("multiple "+t+" codecs found as attributes: "+e[t].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(e[t]=null);e[t]=e[t][0]}),e},ku=function(t){var e=0;return t.audio&&e++,t.video&&e++,e},xu=function(t,e){var n=e.attributes||{},i=Su(function(t){var e=t.attributes||{};if(e.CODECS)return z(e.CODECS)}(e)||[]);if(Eu(t,e)&&!i.audio&&!function(t,e){if(!Eu(t,e))return!0;var n=e.attributes||{},i=t.mediaGroups.AUDIO[n.AUDIO];for(var r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1}(t,e)){var r=Su(function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var n=t.mediaGroups.AUDIO[e];if(!n)return null;for(var i in n){var r=n[i];if(r.default&&r.playlists)return z(r.playlists[0].attributes.CODECS)}return null}(t,n.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},Uu=Va("PlaylistSelector"),Iu=function(t){if(t&&t.playlist){var e=t.playlist;return JSON.stringify({id:e.id,bandwidth:t.bandwidth,width:t.width,height:t.height,codecs:e.attributes&&e.attributes.CODECS||""})}},Fu=function(t,e){if(!t)return"";var n=o.a.getComputedStyle(t);return n?n[e]:""},Ou=function(t,e){var n=t.slice();t.sort(function(t,i){var r=e(t,i);return 0===r?n.indexOf(t)-n.indexOf(i):r})},Qu=function(t,e){var n,i;return t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),n=n||o.a.Number.MAX_VALUE,e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),n-(i=i||o.a.Number.MAX_VALUE)},Nu=function(t,e,n,i,r,s){if(t){var a={bandwidth:e,width:n,height:i,limitRenditionByPlayerDimensions:r},u=t.playlists;po.isAudioOnly(t)&&(u=s.getAudioTrackPlaylists_(),a.audioOnly=!0);var l=u.map(function(t){var e=t.attributes&&t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width,n=t.attributes&&t.attributes.RESOLUTION&&t.attributes.RESOLUTION.height;return{bandwidth:t.attributes&&t.attributes.BANDWIDTH||o.a.Number.MAX_VALUE,width:e,height:n,playlist:t}});Ou(l,function(t,e){return t.bandwidth-e.bandwidth});var c=(l=l.filter(function(t){return!po.isIncompatible(t.playlist)})).filter(function(t){return po.isEnabled(t.playlist)});c.length||(c=l.filter(function(t){return!po.isDisabled(t.playlist)}));var A=c.filter(function(t){return t.bandwidth*Yo.BANDWIDTH_VARIANCE<e}),h=A[A.length-1],d=A.filter(function(t){return t.bandwidth===h.bandwidth})[0];if(!1===r){var f=d||c[0]||l[0];if(f&&f.playlist){var p="sortedPlaylistReps";return d&&(p="bandwidthBestRep"),c[0]&&(p="enabledPlaylistReps"),Uu("choosing "+Iu(f)+" using "+p+" with options",a),f.playlist}return Uu("could not choose a playlist with options",a),null}var g=A.filter(function(t){return t.width&&t.height});Ou(g,function(t,e){return t.width-e.width});var m=g.filter(function(t){return t.width===n&&t.height===i});h=m[m.length-1];var v,y,b,_=m.filter(function(t){return t.bandwidth===h.bandwidth})[0];_||(y=(v=g.filter(function(t){return t.width>n||t.height>i})).filter(function(t){return t.width===v[0].width&&t.height===v[0].height}),h=y[y.length-1],b=y.filter(function(t){return t.bandwidth===h.bandwidth})[0]);var w=b||_||d||c[0]||l[0];if(w&&w.playlist){var B="sortedPlaylistReps";return b?B="resolutionPlusOneRep":_?B="resolutionBestRep":d?B="bandwidthBestRep":c[0]&&(B="enabledPlaylistReps"),Uu("choosing "+Iu(w)+" using "+B+" with options",a),w.playlist}return Uu("could not choose a playlist with options",a),null}},Lu=function(){var t=this.useDevicePixelRatio&&o.a.devicePixelRatio||1;return Nu(this.playlists.master,this.systemBandwidth,parseInt(Fu(this.tech_.el(),"width"),10)*t,parseInt(Fu(this.tech_.el(),"height"),10)*t,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},Du=function(t){var e=t.inbandTextTracks,n=t.metadataArray,i=t.timestampOffset,r=t.videoDuration;if(n){var s=o.a.WebKitDataCue||o.a.VTTCue,a=e.metadataTrack_;if(a&&(n.forEach(function(t){var e=t.cueTime+i;!("number"!=typeof e||o.a.isNaN(e)||e<0)&&e<1/0&&t.frames.forEach(function(t){var n=new s(e,e,t.value||t.url||t.data||"");n.frame=t,n.value=t,function(t){Object.defineProperties(t.frame,{id:{get:function(){return Ra.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get:function(){return Ra.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get:function(){return Ra.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})}(n),a.addCue(n)})}),a.cues&&a.cues.length)){for(var u=a.cues,l=[],c=0;c<u.length;c++)u[c]&&l.push(u[c]);var A=l.reduce(function(t,e){var n=t[e.startTime]||[];return n.push(e),t[e.startTime]=n,t},{}),h=Object.keys(A).sort(function(t,e){return Number(t)-Number(e)});h.forEach(function(t,e){var n=A[t],i=Number(h[e+1])||r;n.forEach(function(t){t.endTime=i})})}}},Pu=function(t,e,n){var i,r;if(n&&n.cues)for(i=n.cues.length;i--;)(r=n.cues[i]).startTime>=t&&r.endTime<=e&&n.removeCue(r)},Ru=function(t){return"number"==typeof t&&isFinite(t)},Hu=function(t){var e=t.startOfSegment,n=t.duration,i=t.segment,r=t.part,s=t.playlist,a=s.mediaSequence,o=s.id,u=s.segments,l=void 0===u?[]:u,c=t.mediaIndex,A=t.partIndex,h=t.timeline,d=l.length-1,f="mediaIndex/partIndex increment";t.getMediaInfoForTime?f="getMediaInfoForTime ("+t.getMediaInfoForTime+")":t.isSyncRequest&&(f="getSyncSegmentCandidate (isSyncRequest)");var p="number"==typeof A,g=t.segment.uri?"segment":"pre-segment",m=p?to({preloadSegment:i})-1:0;return g+" ["+(a+c)+"/"+(a+d)+"]"+(p?" part ["+A+"/"+m+"]":"")+" segment start/end ["+i.start+" => "+i.end+"]"+(p?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+e+"] duration ["+n+"] timeline ["+h+"] selected by ["+f+"] playlist ["+o+"]"},Mu=function(t){return t+"TimingInfo"},Ku=function(t){var e=t.timelineChangeController,n=t.currentTimeline,i=t.segmentTimeline,r=t.loaderType,s=t.audioDisabled;if(n===i)return!1;if("audio"===r){var a=e.lastTimelineChange({type:"main"});return!a||a.to!==i}if("main"===r&&s){var o=e.pendingTimelineChange({type:"audio"});return!o||o.to!==i}return!1},ju=function(t){var e=t.segmentDuration,n=t.maxDuration;return!!e&&Math.round(e)>n+1/30},Vu=function(t,e){if("hls"!==e)return null;var n,i,r,s,a=(n=t.audioTimingInfo,i=t.videoTimingInfo,r=n&&"number"==typeof n.start&&"number"==typeof n.end?n.end-n.start:0,s=i&&"number"==typeof i.start&&"number"==typeof i.end?i.end-i.start:0,Math.max(r,s));if(!a)return null;var o=t.playlist.targetDuration,u=ju({segmentDuration:a,maxDuration:2*o}),l=ju({segmentDuration:a,maxDuration:o}),c="Segment with index "+t.mediaIndex+" from playlist "+t.playlist.id+" has a duration of "+a+" when the reported duration is "+t.duration+" and the target duration is "+o+". 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 u||l?{severity:u?"warn":"info",message:c}:null},zu=function(t){function e(e,n){var i;if(i=t.call(this)||this,!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");return i.bandwidth=e.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=e.hasPlayed,i.currentTime_=e.currentTime,i.seekable_=e.seekable,i.seeking_=e.seeking,i.duration_=e.duration,i.mediaSource_=e.mediaSource,i.vhs_=e.vhs,i.loaderType_=e.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=e.segmentMetadataTrack,i.goalBufferLength_=e.goalBufferLength,i.sourceType_=e.sourceType,i.sourceUpdater_=e.sourceUpdater,i.inbandTextTracks_=e.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=e.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=e.parse708captions,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_=Ra.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_=e.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=e.decrypter,i.syncController_=e.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_=Va("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(d()(i),"state",{get:function(){return this.state_},set:function(t){t!==this.state_&&(this.logger_(this.state_+" -> "+t),this.state_=t,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}p()(e,t);var n=e.prototype;return n.createTransmuxer_=function(){return lu({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_})},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_&&o.a.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(t){this.audioDisabled_=!t,t?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,o.a.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(t){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==t:(this.state="READY",!0)},n.error=function(t){return void 0!==t&&(this.logger_("error occurred:",t),this.error_=t),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&uu(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var t=this.getMediaInfo_();if(!this.sourceUpdater_||!t)return Ra.createTimeRanges();if("main"===this.loaderType_){var e=t.hasAudio,n=t.hasVideo,i=t.isMuxed;if(n&&e&&!this.audioDisabled_&&!i)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(t,e){if(void 0===e&&(e=!1),!t)return null;var n=Po(t),i=this.initSegments_[n];return e&&!i&&t.bytes&&(this.initSegments_[n]=i={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes,tracks:t.tracks,timescales:t.timescales}),i||t},n.segmentKey=function(t,e){if(void 0===e&&(e=!1),!t)return null;var n=Ro(t),i=this.keyCache_[n];this.cacheEncryptionKeys_&&e&&!i&&t.bytes&&(this.keyCache_[n]=i={resolvedUri:t.resolvedUri,bytes:t.bytes});var r={resolvedUri:(i||t).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(t,e){if(void 0===e&&(e={}),t){var n=this.playlist_,i=this.pendingSegment_;this.playlist_=t,this.xhrOptions_=e,"INIT"===this.state&&(t.syncInfo={mediaSequence:t.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(t));var r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_("playlist update ["+r+" => "+(t.id||t.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==t.uri)return null!==this.mediaIndex&&this.resyncLoader(),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var s=t.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+s+"]"),null!==this.mediaIndex)if(this.mediaIndex-=s,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var a=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!a.parts||!a.parts.length||!a.parts[this.partIndex])){var o=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=o}}i&&(i.mediaIndex-=s,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(i.mediaIndex>=0&&(i.segment=t.segments[i.mediaIndex]),i.partIndex>=0&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,t)}},n.pause=function(){this.checkBufferTimeout_&&(o.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(t){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,t),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"})},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&uu(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(t,e,n,i){if(void 0===n&&(n=function(){}),void 0===i&&(i=!1),e===1/0&&(e=this.duration_()),e<=t)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r=1,s=function(){0===--r&&n()};for(var a in!i&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(t,e,s)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=function(t,e,n,i){for(var r=Math.ceil((e-i)*we.ONE_SECOND_IN_TS),s=Math.ceil((n-i)*we.ONE_SECOND_IN_TS),a=t.slice(),o=t.length;o--&&!(t[o].pts<=s););if(-1===o)return a;for(var u=o+1;u--&&!(t[u].pts<=r););return u=Math.max(u,0),a.splice(u,o-u+1),a}(this.gopBuffer_,t,e,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(t,e,s)),this.inbandTextTracks_)Pu(t,e,this.inbandTextTracks_[a]);Pu(t,e,this.segmentMetadataTrack_),s()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&o.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=o.a.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&o.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=o.a.setTimeout(this.monitorBufferTick_.bind(this),500)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var t=this.chooseNextRequest_();t&&("number"==typeof t.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline})),this.loadSegment_(t))}},n.isEndOfStream_=function(t,e,n){if(void 0===t&&(t=this.mediaIndex),void 0===e&&(e=this.playlist_),void 0===n&&(n=this.partIndex),!e||!this.mediaSource_)return!1;var i="number"==typeof t&&e.segments[t],r=t+1===e.segments.length,s=!i||!i.parts||n+1===i.parts.length;return e.endList&&"open"===this.mediaSource_.readyState&&r&&s},n.chooseNextRequest_=function(){var t=qa(this.buffered_())||0,e=Math.max(0,t-this.currentTime_()),n=!this.hasPlayed_()&&e>=1,i=e>=this.goalBufferLength_(),r=this.playlist_.segments;if(!r.length||n||i)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var s={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(s.isSyncRequest)s.mediaIndex=function(t,e,n){e=e||[];for(var i=[],r=0,s=0;s<e.length;s++){var a=e[s];if(t===a.timeline&&(i.push(s),(r+=a.duration)>n))return s}return 0===i.length?0:i[i.length-1]}(this.currentTimeline_,r,t);else if(null!==this.mediaIndex){var a=r[this.mediaIndex],o="number"==typeof this.partIndex?this.partIndex:-1;s.startOfSegment=a.end?a.end:t,a.parts&&a.parts[o+1]?(s.mediaIndex=this.mediaIndex,s.partIndex=o+1):s.mediaIndex=this.mediaIndex+1}else{var u=po.getMediaInfoForTime({playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),l=u.segmentIndex,c=u.startTime,A=u.partIndex;s.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd":"currentTime",s.mediaIndex=l,s.startOfSegment=c,s.partIndex=A}var h=r[s.mediaIndex],d=h&&"number"==typeof s.partIndex&&h.parts&&h.parts[s.partIndex];if(!h||"number"==typeof s.partIndex&&!d)return null;"number"!=typeof s.partIndex&&h.parts&&(s.partIndex=0);var f=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return s.mediaIndex>=r.length-1&&f&&!this.seeking_()?null:this.generateSegmentInfo_(s)},n.generateSegmentInfo_=function(t){var e=t.playlist,n=t.mediaIndex,i=t.startOfSegment,r=t.isSyncRequest,s=t.partIndex,a=t.forceTimestampOffset,o=t.getMediaInfoForTime,u=e.segments[n],l="number"==typeof s&&u.parts[s],c={requestId:"segment-loader-"+Math.random(),uri:l&&l.resolvedUri||u.resolvedUri,mediaIndex:n,partIndex:l?s:null,isSyncRequest:r,startOfSegment:i,playlist:e,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:l&&l.duration||u.duration,segment:u,part:l,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:o},A=void 0!==a?a:this.isPendingTimestampOffset_;c.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:i,buffered:this.buffered_(),overrideCheck:A});var h=qa(this.sourceUpdater_.audioBuffered());return"number"==typeof h&&(c.audioAppendStart=h-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(c.gopsToAlignWith=function(t,e,n){if(void 0===e||null===e||!t.length)return[];var i,r=Math.ceil((e-n+3)*we.ONE_SECOND_IN_TS);for(i=0;i<t.length&&!(t[i].pts>r);i++);return t.slice(i)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),c},n.timestampOffsetForSegment_=function(t){return n=(e=t).segmentTimeline,i=e.currentTimeline,r=e.startOfSegment,s=e.buffered,e.overrideCheck||n!==i?n<i?r:s.length?s.end(s.length-1):r:null;var e,n,i,r,s},n.earlyAbortWhenNeeded_=function(t){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(t.firstBytesReceivedAt||Date.now())<1e3)){var e=this.currentTime_(),n=t.bandwidth,i=this.pendingSegment_.duration,r=po.estimateSegmentRequestTime(i,n,this.playlist_,t.bytesReceived),s=function(t,e,n){return void 0===n&&(n=1),((t.length?t.end(t.length-1):0)-e)/n}(this.buffered_(),e,this.vhs_.tech_.playbackRate())-1;if(!(r<=s)){var a=function(t){var e=t.master,n=t.currentTime,i=t.bandwidth,r=t.duration,s=t.segmentDuration,a=t.timeUntilRebuffer,o=t.currentTimeline,u=t.syncController,l=e.playlists.filter(function(t){return!po.isIncompatible(t)}),c=l.filter(po.isEnabled);c.length||(c=l.filter(function(t){return!po.isDisabled(t)}));var A=c.filter(po.hasAttribute.bind(null,"BANDWIDTH")).map(function(t){var e=u.getSyncPoint(t,r,o,n)?1:2;return{playlist:t,rebufferingImpact:po.estimateSegmentRequestTime(s,i,t)*e-a}}),h=A.filter(function(t){return t.rebufferingImpact<=0});return Ou(h,function(t,e){return Qu(e.playlist,t.playlist)}),h.length?h[0]:(Ou(A,function(t,e){return t.rebufferingImpact-e.rebufferingImpact}),A[0]||null)}({master:this.vhs_.playlists.master,currentTime:e,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:s,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(a){var o=r-s-a.rebufferingImpact,u=.5;s<=1/30&&(u=1),!a.playlist||a.playlist.uri===this.playlist_.uri||o<u||(this.bandwidth=a.playlist.attributes.BANDWIDTH*Yo.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(t){this.logger_("Aborting "+Hu(t)),this.mediaRequestsAborted+=1},n.handleProgress_=function(t,e){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(t,e){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.checkForIllegalMediaSwitch(e)||(e=e||{},function(t,e){if(!t&&!e||!t&&e||t&&!e)return!1;if(t===e)return!0;var n=Object.keys(t).sort(),i=Object.keys(e).sort();if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var s=n[r];if(s!==i[r])return!1;if(t[s]!==e[s])return!1}return!0}(this.currentMediaInfo_,e)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=e,this.currentMediaInfo_=e,this.logger_("trackinfo update",e),this.trigger("trackinfo")),this.checkForAbort_(t.requestId)||(this.pendingSegment_.trackInfo=e,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},n.handleTimingInfo_=function(t,e,n,i){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)){var r=this.pendingSegment_,s=Mu(e);r[s]=r[s]||{},r[s][n]=i,this.logger_("timinginfo: "+e+" - "+n+" - "+i),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(t,e){var n=this;if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId))if(0!==e.length)if(this.pendingSegment_.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};e.forEach(function(t){r[t.stream]=r[t.stream]||{startTime:1/0,captions:[],endTime:0};var e=r[t.stream];e.startTime=Math.min(e.startTime,t.startTime+i),e.endTime=Math.max(e.endTime,t.endTime+i),e.captions.push(t)}),Object.keys(r).forEach(function(t){var e=r[t],s=e.startTime,a=e.endTime,u=e.captions,l=n.inbandTextTracks_;n.logger_("adding cues from "+s+" -> "+a+" for "+t),function(t,e,n){if(!t[n]){e.trigger({type:"usage",name:"vhs-608"}),e.trigger({type:"usage",name:"hls-608"});var i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);var r=e.textTracks().getTrackById(i);if(r)t[n]=r;else{var s=n,a=n,o=!1,u=(e.options_.vhs&&e.options_.vhs.captionServices||{})[i];u&&(s=u.label,a=u.language,o=u.default),t[n]=e.addRemoteTextTrack({kind:"captions",id:i,default:o,label:s,language:a},!1).track}}}(l,n.vhs_.tech_,t),Pu(s,a,l[t]),function(t){var e=t.inbandTextTracks,n=t.captionArray,i=t.timestampOffset;if(n){var r=o.a.WebKitDataCue||o.a.VTTCue;n.forEach(function(t){var n=t.stream;e[n].addCue(new r(t.startTime+i,t.endTime+i,t.text))})}}({captionArray:u,inbandTextTracks:l,timestampOffset:i})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,t,e));else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(t,e,n){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId))if(this.pendingSegment_.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();!function(t,e,n){t.metadataTrack_||(t.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,t.metadataTrack_.inBandMetadataTrackDispatchType=e)}(this.inbandTextTracks_,n,this.vhs_.tech_),Du({inbandTextTracks:this.inbandTextTracks_,metadataArray:e,timestampOffset:i,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,t,e,n))},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(t){return t()}),this.metadataQueue_.caption.forEach(function(t){return t()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var t=this.callQueue_;this.callQueue_=[],t.forEach(function(t){return t()})},n.processLoadQueue_=function(){var t=this.loadQueue_;this.loadQueue_=[],t.forEach(function(t){return t()})},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var t=this.pendingSegment_;return!!t&&(!this.getCurrentMediaInfo_()||!Ku({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(t){return void 0===t&&(t=this.pendingSegment_),t&&t.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(t){return void 0===t&&(t=this.pendingSegment_),this.getCurrentMediaInfo_(t)||this.startingMediaInfo_},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var t=this.pendingSegment_,e=this.getCurrentMediaInfo_();if(!t||!e)return!1;var n=e.hasAudio,i=e.hasVideo,r=e.isMuxed;return!(i&&!t.videoTimingInfo)&&(!(n&&!this.audioDisabled_&&!r&&!t.audioTimingInfo)&&!Ku({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(t,e){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.segment),"closed"!==this.mediaSource_.readyState){if(t.map&&(t.map=this.initSegmentForMap(t.map,!0),n.segment.map=t.map),t.key&&this.segmentKey(t.key,!0),n.isFmp4=t.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[Mu(e.type)].start;else{var i,r=this.getCurrentMediaInfo_(),s="main"===this.loaderType_&&r&&r.hasVideo;s&&(i=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:s,firstVideoFrameTimeForData:i,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,e.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var a=this.chooseNextRequest_();if(a.mediaIndex!==n.mediaIndex||a.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,e)}}else this.callQueue_.push(this.handleData_.bind(this,t,e))},n.updateAppendInitSegmentStatus=function(t,e){"main"!==this.loaderType_||"number"!=typeof t.timestampOffset||t.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[e]!==t.playlist&&(this.appendInitSegment_[e]=!0)},n.getInitSegmentAndUpdateState_=function(t){var e=t.type,n=t.initSegment,i=t.map,r=t.playlist;if(i){var s=Po(i);if(this.activeInitSegmentId_===s)return null;n=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=s}return n&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=r,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(t,e){var n=this,i=t.segmentInfo,r=t.type,s=t.bytes,a=this.sourceUpdater_.audioBuffered(),u=this.sourceUpdater_.videoBuffered();a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Xa(a).join(", ")),u.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Xa(u).join(", "));var l=a.length?a.start(0):0,c=a.length?a.end(a.length-1):0,A=u.length?u.start(0):0,h=u.length?u.end(u.length-1):0;if(c-l<=1&&h-A<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+s.byteLength+", audio buffer: "+Xa(a).join(", ")+", video buffer: "+Xa(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:s}));var d=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+d),this.remove(0,d,function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=o.a.setTimeout(function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()},1e3)},!0)},n.handleAppendError_=function(t,e){var n=t.segmentInfo,i=t.type,r=t.bytes;e&&(22!==e.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",e),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(t){var e,n,i,r=t.segmentInfo,s=t.type,a=t.initSegment,o=t.data,u=t.bytes;if(!u){var l=[o],c=o.byteLength;a&&(l.unshift(a),c+=a.byteLength),i=0,(e={bytes:c,segments:l}).bytes&&(n=new Uint8Array(e.bytes),e.segments.forEach(function(t){n.set(t,i),i+=t.byteLength})),u=n}this.sourceUpdater_.appendBuffer({segmentInfo:r,type:s,bytes:u},this.handleAppendError_.bind(this,{segmentInfo:r,type:s,bytes:u}))},n.handleSegmentTimingInfo_=function(t,e,n){if(this.pendingSegment_&&e===this.pendingSegment_.requestId){var i=this.pendingSegment_.segment,r=t+"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(t,e){var n=e.type,i=e.data;if(i&&i.byteLength&&("audio"!==n||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:n,initSegment:e.initSegment,playlist:t.playlist,map:t.isFmp4?t.segment.map:null});this.appendToSourceBuffer_({segmentInfo:t,type:n,initSegment:r,data:i})}},n.loadSegment_=function(t){var e=this;this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),"number"==typeof t.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(t):this.loadQueue_.push(function(){var n=A()({},t,{forceTimestampOffset:!0});A()(t,e.generateSegmentInfo_(n)),e.isPendingTimestampOffset_=!1,e.updateTransmuxerAndRequestSegment_(t)})},n.updateTransmuxerAndRequestSegment_=function(t){var e=this;this.shouldUpdateTransmuxerTimestampOffset_(t.timestampOffset)&&(this.gopBuffer_.length=0,t.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t.timestampOffset}));var n=this.createSimplifiedSegmentObj_(t),i=this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex),r=null!==this.mediaIndex,s=t.timeline!==this.currentTimeline_&&t.timeline>0,a=i||r&&s;this.logger_("Requesting "+Hu(t)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),t.abortRequests=Cu({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,t),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",t.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",t.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:a,endedTimelineFn:function(){e.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,s=n.stream;e.logger_(Hu(t)+" logged from transmuxer stream "+s+" as a "+r+": "+i)}})},n.trimBackBuffer_=function(t){var e=function(t,e,n){var i=e-Yo.BACK_BUFFER_LENGTH;t.length&&(i=Math.max(i,t.start(0)));var r=e-n;return Math.min(r,i)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);e>0&&this.remove(0,e)},n.createSimplifiedSegmentObj_=function(t){var e=t.segment,n=t.part,i={resolvedUri:n?n.resolvedUri:e.resolvedUri,byterange:n?n.byterange:e.byterange,requestId:t.requestId,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,part:t.part},r=t.playlist.segments[t.mediaIndex-1];if(r&&r.timeline===e.timeline&&(r.videoTimingInfo?i.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(i.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),e.key){var s=e.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);i.key=this.segmentKey(e.key),i.key.iv=s}return e.map&&(i.map=this.initSegmentForMap(e.map)),i},n.saveTransferStats_=function(t){this.mediaRequests+=1,t&&(this.mediaBytesTransferred+=t.bytesReceived,this.mediaTransferDuration+=t.roundTripTime)},n.saveBandwidthRelatedStats_=function(t,e){this.pendingSegment_.byteLength=e.bytesReceived,t<1/60?this.logger_("Ignoring segment's bandwidth because its duration of "+t+" is less than the min to record "+1/60):(this.bandwidth=e.bandwidth,this.roundTrip=e.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},n.segmentRequestFinished_=function(t,e,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,t,e,n));else if(this.saveTransferStats_(e.stats),this.pendingSegment_&&e.requestId===this.pendingSegment_.requestId){if(t){if(this.pendingSegment_=null,this.state="READY",t.code===du)return;return this.pause(),t.code===hu?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(t),void this.trigger("error"))}var i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,e.stats),i.endOfAllRequests=e.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=function(t,e,n){if(!e.length)return t;if(n)return e.slice();for(var i=e[0].pts,r=0;r<t.length&&!(t[r].pts>=i);r++);return t.slice(0,r).concat(e)}(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(i)}},n.setTimeMapping_=function(t){var e=this.syncController_.mappingForTimeline(t);null!==e&&(this.timeMapping_=e)},n.updateMediaSecondsLoaded_=function(t){"number"==typeof t.start&&"number"==typeof t.end?this.mediaSecondsLoaded+=t.end-t.start:this.mediaSecondsLoaded+=t.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(t){return null!==t&&("main"===this.loaderType_&&t!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&t!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(t){var e=t.currentStart,n=t.playlist,i=t.mediaIndex,r=t.firstVideoFrameTimeForData,s=t.currentVideoTimestampOffset,a=t.useVideoTimingInfo,o=t.videoTimingInfo,u=t.audioTimingInfo;if(void 0!==e)return e;if(!a)return u.start;var l=n.segments[i-1];return 0!==i&&l&&void 0!==l.start&&l.end===r+s?o.start:r},n.waitForAppendsToComplete_=function(t){var e=this.getCurrentMediaInfo_(t);if(!e)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var n=e.hasAudio,i=e.hasVideo,r=e.isMuxed,s="main"===this.loaderType_&&i,a=!this.audioDisabled_&&n&&!r;if(t.waitingOnAppends=0,!t.hasAppendedData_)return t.timingInfo||"number"!=typeof t.timestampOffset||(this.isPendingTimestampOffset_=!0),t.timingInfo={start:0},t.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(t),this.processMetadataQueue_()),void this.checkAppendsDone_(t);s&&t.waitingOnAppends++,a&&t.waitingOnAppends++,s&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,t)),a&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,t))},n.checkAppendsDone_=function(t){this.checkForAbort_(t.requestId)||(t.waitingOnAppends--,0===t.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(t){var e=function(t,e,n){return"main"===t&&e&&n?n.hasAudio||n.hasVideo?e.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.":!e.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}(this.loaderType_,this.getCurrentMediaInfo_(),t);return!!e&&(this.error({message:e,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(t){if(null!==t.timestampOffset&&"number"==typeof t.timingInfo.start&&!t.changedTimestampOffset&&"main"===this.loaderType_){var e=!1;t.timestampOffset-=t.timingInfo.start,t.changedTimestampOffset=!0,t.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(t.timestampOffset),e=!0),t.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(t.timestampOffset),e=!0),e&&this.trigger("timestampoffset")}},n.updateTimingInfoEnd_=function(t){t.timingInfo=t.timingInfo||{};var e=this.getMediaInfo_(),n="main"===this.loaderType_&&e&&e.hasVideo&&t.videoTimingInfo?t.videoTimingInfo:t.audioTimingInfo;n&&(t.timingInfo.end="number"==typeof n.end?n.end:n.start+t.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var t=this.pendingSegment_;this.updateTimingInfoEnd_(t),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:"main"===this.loaderType_});var e=Vu(t,this.sourceType_);if(e&&("warn"===e.severity?Ra.log.warn(e.message):this.logger_(e.message)),this.recordThroughput_(t),this.pendingSegment_=null,this.state="READY",!t.isSyncRequest||(this.trigger("syncinfoupdate"),t.hasAppendedData_)){this.logger_("Appended "+Hu(t)),this.addSegmentMetadataCue_(t),this.fetchAtBuffer_=!0,this.currentTimeline_!==t.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:t.timeline})),this.currentTimeline_=t.timeline,this.trigger("syncinfoupdate");var n=t.segment;if(n.end&&this.currentTime_()-n.end>3*t.playlist.targetDuration)this.resetEverything();else null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=t.mediaIndex,this.partIndex=t.partIndex,this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex)&&this.endOfStream(),this.trigger("appended"),t.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+Hu(t))},n.recordThroughput_=function(t){if(t.duration<1/60)this.logger_("Ignoring segment's throughput because its duration of "+t.duration+" is less than the min to record "+1/60);else{var e=this.throughput.rate,n=Date.now()-t.endOfAllRequests+1,i=Math.floor(t.byteLength/n*8*1e3);this.throughput.rate+=(i-e)/++this.throughput.count}},n.addSegmentMetadataCue_=function(t){if(this.segmentMetadataTrack_){var e=t.segment,n=e.start,i=e.end;if(Ru(n)&&Ru(i)){Pu(n,i,this.segmentMetadataTrack_);var r=o.a.WebKitDataCue||o.a.VTTCue,s={custom:e.custom,dateTimeObject:e.dateTimeObject,dateTimeString:e.dateTimeString,bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.id,start:n,end:i},a=new r(n,i,JSON.stringify(s));a.value=s,this.segmentMetadataTrack_.addCue(a)}}},e}(Ra.EventTarget);function $u(){}var Wu,Gu=function(t){return"string"!=typeof t?t:t.replace(/./,function(t){return t.toUpperCase()})},Xu=["video","audio"],qu=function(t,e){var n=e[t+"Buffer"];return n&&n.updating||e.queuePending[t]},Yu=function t(e,n){if(0!==n.queue.length){var i=0,r=n.queue[i];if("mediaSource"!==r.type){if("mediaSource"!==e&&n.ready()&&"closed"!==n.mediaSource.readyState&&!qu(e,n)){if(r.type!==e){if(null===(i=function(t,e){for(var n=0;n<e.length;n++){var i=e[n];if("mediaSource"===i.type)return null;if(i.type===t)return n}return null}(e,n.queue)))return;r=n.queue[i]}return n.queue.splice(i,1),n.queuePending[e]=r,r.action(e,n),r.doneFn?void 0:(n.queuePending[e]=null,void t(e,n))}}else n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),r.action(n),r.doneFn&&r.doneFn(),t("audio",n),t("video",n))}},Ju=function(t,e){var n=e[t+"Buffer"],i=Gu(t);n&&(n.removeEventListener("updateend",e["on"+i+"UpdateEnd_"]),n.removeEventListener("error",e["on"+i+"Error_"]),e.codecs[t]=null,e[t+"Buffer"]=null)},Zu=function(t,e){return t&&e&&-1!==Array.prototype.indexOf.call(t.sourceBuffers,e)},tl=function(t,e,n){return function(i,r){var s=r[i+"Buffer"];if(Zu(r.mediaSource,s)){r.logger_("Appending segment "+e.mediaIndex+"'s "+t.length+" bytes to "+i+"Buffer");try{s.appendBuffer(t)}catch(t){r.logger_("Error with code "+t.code+" "+(22===t.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+e.mediaIndex+" to "+i+"Buffer"),r.queuePending[i]=null,n(t)}}}},el=function(t,e){return function(n,i){var r=i[n+"Buffer"];if(Zu(i.mediaSource,r)){i.logger_("Removing "+t+" to "+e+" from "+n+"Buffer");try{r.remove(t,e)}catch(r){i.logger_("Remove "+t+" to "+e+" from "+n+"Buffer failed")}}}},nl=function(t){return function(e,n){var i=n[e+"Buffer"];Zu(n.mediaSource,i)&&(n.logger_("Setting "+e+"timestampOffset to "+t),i.timestampOffset=t)}},il=function(t){return function(e,n){t()}},rl=function(t){return function(e){if("open"===e.mediaSource.readyState){e.logger_("Calling mediaSource endOfStream("+(t||"")+")");try{e.mediaSource.endOfStream(t)}catch(t){Ra.log.warn("Failed to call media source endOfStream",t)}}}},sl=function(t){return function(e){e.logger_("Setting mediaSource duration to "+t);try{e.mediaSource.duration=t}catch(t){Ra.log.warn("Failed to set media source duration",t)}}},al=function(){return function(t,e){if("open"===e.mediaSource.readyState){var n=e[t+"Buffer"];if(Zu(e.mediaSource,n)){e.logger_("calling abort on "+t+"Buffer");try{n.abort()}catch(e){Ra.log.warn("Failed to abort on "+t+"Buffer",e)}}}}},ol=function(t,e){return function(n){var i=Gu(t),r=W(e);n.logger_("Adding "+t+"Buffer with codec "+e+" to mediaSource");var s=n.mediaSource.addSourceBuffer(r);s.addEventListener("updateend",n["on"+i+"UpdateEnd_"]),s.addEventListener("error",n["on"+i+"Error_"]),n.codecs[t]=e,n[t+"Buffer"]=s}},ul=function(t){return function(e){var n=e[t+"Buffer"];if(Ju(t,e),Zu(e.mediaSource,n)){e.logger_("Removing "+t+"Buffer with codec "+e.codecs[t]+" from mediaSource");try{e.mediaSource.removeSourceBuffer(n)}catch(e){Ra.log.warn("Failed to removeSourceBuffer "+t+"Buffer",e)}}}},ll=function(t){return function(e,n){var i=n[e+"Buffer"],r=W(t);Zu(n.mediaSource,i)&&n.codecs[e]!==t&&(n.logger_("changing "+e+"Buffer codec from "+n.codecs[e]+" to "+t),i.changeType(r),n.codecs[e]=t)}},cl=function(t){var e=t.type,n=t.sourceUpdater,i=t.action,r=t.doneFn,s=t.name;n.queue.push({type:e,action:i,doneFn:r,name:s}),Yu(e,n)},Al=function(t,e){return function(n){if(e.queuePending[t]){var i=e.queuePending[t].doneFn;e.queuePending[t]=null,i&&i(e[t+"Error_"])}Yu(t,e)}},hl=function(t){function e(e){var n;return(n=t.call(this)||this).mediaSource=e,n.sourceopenListener_=function(){return Yu("mediaSource",d()(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=Va("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null},n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=Al("video",d()(n)),n.onAudioUpdateEnd_=Al("audio",d()(n)),n.onVideoError_=function(t){n.videoError_=t},n.onAudioError_=function(t){n.audioError_=t},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}p()(e,t);var n=e.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(t){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(t),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(t,e){cl({type:"mediaSource",sourceUpdater:this,action:ol(t,e),name:"addSourceBuffer"})},n.abort=function(t){cl({type:t,sourceUpdater:this,action:al(t),name:"abort"})},n.removeSourceBuffer=function(t){this.canRemoveSourceBuffer()?cl({type:"mediaSource",sourceUpdater:this,action:ul(t),name:"removeSourceBuffer"}):Ra.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!Ra.browser.IE_VERSION&&!Ra.browser.IS_FIREFOX&&o.a.MediaSource&&o.a.MediaSource.prototype&&"function"==typeof o.a.MediaSource.prototype.removeSourceBuffer},e.canChangeType=function(){return o.a.SourceBuffer&&o.a.SourceBuffer.prototype&&"function"==typeof o.a.SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(t,e){this.canChangeType()?cl({type:t,sourceUpdater:this,action:ll(e),name:"changeType"}):Ra.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(t){var e=this;if(!t||"object"!=typeof t||0===Object.keys(t).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(t).forEach(function(n){var i=t[n];if(!e.hasCreatedSourceBuffers())return e.addSourceBuffer(n,i);e.canChangeType()&&e.changeType(n,i)})},n.appendBuffer=function(t,e){var n=this,i=t.segmentInfo,r=t.type,s=t.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([t,e]),void this.logger_("delayed audio append of "+s.length+" until video append");if(cl({type:r,sourceUpdater:this,action:tl(s,i||{mediaIndex:-1},e),doneFn:e,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var a=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+a.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,a.forEach(function(t){n.appendBuffer.apply(n,t)})}},n.audioBuffered=function(){return Zu(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Ra.createTimeRange()},n.videoBuffered=function(){return Zu(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Ra.createTimeRange()},n.buffered=function(){var t=Zu(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,e=Zu(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return e&&!t?this.audioBuffered():t&&!e?this.videoBuffered():function(t,e){var n=null,i=null,r=0,s=[],a=[];if(!(t&&t.length&&e&&e.length))return Ra.createTimeRange();for(var o=t.length;o--;)s.push({time:t.start(o),type:"start"}),s.push({time:t.end(o),type:"end"});for(o=e.length;o--;)s.push({time:e.start(o),type:"start"}),s.push({time:e.end(o),type:"end"});for(s.sort(function(t,e){return t.time-e.time}),o=0;o<s.length;o++)"start"===s[o].type?2==++r&&(n=s[o].time):"end"===s[o].type&&1==--r&&(i=s[o].time),null!==n&&null!==i&&(a.push([n,i]),n=null,i=null);return Ra.createTimeRanges(a)}(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(t,e){void 0===e&&(e=$u),cl({type:"mediaSource",sourceUpdater:this,action:sl(t),name:"duration",doneFn:e})},n.endOfStream=function(t,e){void 0===t&&(t=null),void 0===e&&(e=$u),"string"!=typeof t&&(t=void 0),cl({type:"mediaSource",sourceUpdater:this,action:rl(t),name:"endOfStream",doneFn:e})},n.removeAudio=function(t,e,n){void 0===n&&(n=$u),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?cl({type:"audio",sourceUpdater:this,action:el(t,e),doneFn:n,name:"remove"}):n()},n.removeVideo=function(t,e,n){void 0===n&&(n=$u),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?cl({type:"video",sourceUpdater:this,action:el(t,e),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!qu("audio",this)&&!qu("video",this))},n.audioTimestampOffset=function(t){return void 0!==t&&this.audioBuffer&&this.audioTimestampOffset_!==t&&(cl({type:"audio",sourceUpdater:this,action:nl(t),name:"timestampOffset"}),this.audioTimestampOffset_=t),this.audioTimestampOffset_},n.videoTimestampOffset=function(t){return void 0!==t&&this.videoBuffer&&this.videoTimestampOffset!==t&&(cl({type:"video",sourceUpdater:this,action:nl(t),name:"timestampOffset"}),this.videoTimestampOffset_=t),this.videoTimestampOffset_},n.audioQueueCallback=function(t){this.audioBuffer&&cl({type:"audio",sourceUpdater:this,action:il(t),name:"callback"})},n.videoQueueCallback=function(t){this.videoBuffer&&cl({type:"video",sourceUpdater:this,action:il(t),name:"callback"})},n.dispose=function(){var t=this;this.trigger("dispose"),Xu.forEach(function(e){t.abort(e),t.canRemoveSourceBuffer()?t.removeSourceBuffer(e):t[e+"QueueCallback"](function(){return Ju(e,t)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},e}(Ra.EventTarget),dl=function(t){return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))},fl=new Uint8Array("\n\n".split("").map(function(t){return t.charCodeAt(0)})),pl=function(t){function e(e,n){var i;return void 0===n&&(n={}),(i=t.call(this,e,n)||this).mediaSource_=null,i.subtitlesTrack_=null,i.loaderType_="subtitle",i.featuresNativeTextTracks_=e.featuresNativeTextTracks,i.shouldSaveSegmentTimingInfo_=!1,i}p()(e,t);var n=e.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Ra.createTimeRanges();var t=this.subtitlesTrack_.cues,e=t[0].startTime,n=t[t.length-1].startTime;return Ra.createTimeRanges([[e,n]])},n.initSegmentForMap=function(t,e){if(void 0===e&&(e=!1),!t)return null;var n=Po(t),i=this.initSegments_[n];if(e&&!i&&t.bytes){var r=fl.byteLength+t.bytes.byteLength,s=new Uint8Array(r);s.set(t.bytes),s.set(fl,t.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:s}}return i||t},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(t){return void 0===t?this.subtitlesTrack_:(this.subtitlesTrack_=t,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)},n.remove=function(t,e){Pu(t,e,this.subtitlesTrack_)},n.fillBuffer_=function(){var t=this,e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){return this.syncController_.one("timestampoffset",function(){t.state="READY",t.paused()||t.monitorBuffer_()}),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(t.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(t){for(;t&&t.segment.empty;){if(t.mediaIndex+1>=t.playlist.segments.length){t=null;break}t=this.generateSegmentInfo_({playlist:t.playlist,mediaIndex:t.mediaIndex+1,startOfSegment:t.startOfSegment+t.duration,isSyncRequest:t.isSyncRequest})}return t},n.stopForError=function(t){this.error(t),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(t,e,n){var i=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(e.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(t)return t.code===hu&&this.handleTimeout_(),t.code===du?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(t);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,e.stats),this.state="APPENDING",this.trigger("appending");var s=r.segment;if(s.map&&(s.map.bytes=e.map.bytes),r.bytes=e.bytes,"function"!=typeof o.a.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var a,u=function(){i.subtitlesTrack_.tech_.off("vttjsloaded",a),i.stopForError({message:"Error loading vtt.js"})};return a=function(){i.subtitlesTrack_.tech_.off("vttjserror",u),i.segmentRequestFinished_(t,e,n)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",a),void this.subtitlesTrack_.tech_.one("vttjserror",u)}s.requested=!0;try{this.parseVTTCues_(r)}catch(t){return void this.stopForError({message:t.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+=s.duration,r.cues.forEach(function(t){i.subtitlesTrack_.addCue(i.featuresNativeTextTracks_?new o.a.VTTCue(t.startTime,t.endTime,t.text):t)}),function(t){var e=t.cues;if(e)for(var n=0;n<e.length;n++){for(var i=[],r=0,s=0;s<e.length;s++)e[n].startTime===e[s].startTime&&e[n].endTime===e[s].endTime&&e[n].text===e[s].text&&++r>1&&i.push(e[s]);i.length&&i.forEach(function(e){return t.removeCue(e)})}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(t){var e,n=!1;"function"==typeof o.a.TextDecoder?e=new o.a.TextDecoder("utf8"):(e=o.a.WebVTT.StringDecoder(),n=!0);var i=new o.a.WebVTT.Parser(o.a,o.a.vttjs,e);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=t.cues.push.bind(t.cues),i.ontimestampmap=function(e){t.timestampmap=e},i.onparsingerror=function(t){Ra.log.warn("Error encountered when parsing cues: "+t.message)},t.segment.map){var r=t.segment.map.bytes;n&&(r=dl(r)),i.parse(r)}var s=t.bytes;n&&(s=dl(s)),i.parse(s),i.flush()},n.updateTimeMapping_=function(t,e,n){var i=t.segment;if(e)if(t.cues.length){var r=t.timestampmap,s=r.MPEGTS/we.ONE_SECOND_IN_TS-r.LOCAL+e.mapping;if(t.cues.forEach(function(t){t.startTime+=s,t.endTime+=s}),!n.syncInfo){var a=t.cues[0].startTime,o=t.cues[t.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+t.mediaIndex,time:Math.min(a,o-i.duration)}}}else i.empty=!0},e}(zu),gl=function(t,e){for(var n=t.cues,i=0;i<n.length;i++){var r=n[i];if(e>=r.adStartTime&&e<=r.adEndTime)return r}return null},ml=[{name:"VOD",run:function(t,e,n,i,r){if(n!==1/0){return{time:0,segmentIndex:0,partIndex:null}}return null}},{name:"ProgramDateTime",run:function(t,e,n,i,r){if(!Object.keys(t.timelineToDatetimeMappings).length)return null;var s=null,a=null,o=Ja(e);r=r||0;for(var u=0;u<o.length;u++){var l=o[e.endList||0===r?u:o.length-(u+1)],c=l.segment,A=t.timelineToDatetimeMappings[c.timeline];if(A&&c.dateTimeObject){var h=c.dateTimeObject.getTime()/1e3+A;if(c.parts&&"number"==typeof l.partIndex)for(var d=0;d<l.partIndex;d++)h+=c.parts[d].duration;var f=Math.abs(r-h);if(null!==a&&(0===f||a<f))break;a=f,s={time:h,segmentIndex:l.segmentIndex,partIndex:l.partIndex}}}return s}},{name:"Segment",run:function(t,e,n,i,r){var s=null,a=null;r=r||0;for(var o=Ja(e),u=0;u<o.length;u++){var l=o[e.endList||0===r?u:o.length-(u+1)],c=l.segment,A=l.part&&l.part.start||c&&c.start;if(c.timeline===i&&void 0!==A){var h=Math.abs(r-A);if(null!==a&&a<h)break;(!s||null===a||a>=h)&&(a=h,s={time:A,segmentIndex:l.segmentIndex,partIndex:l.partIndex})}}return s}},{name:"Discontinuity",run:function(t,e,n,i,r){var s=null;if(r=r||0,e.discontinuityStarts&&e.discontinuityStarts.length)for(var a=null,o=0;o<e.discontinuityStarts.length;o++){var u=e.discontinuityStarts[o],l=e.discontinuitySequence+o+1,c=t.discontinuities[l];if(c){var A=Math.abs(r-c.time);if(null!==a&&a<A)break;(!s||null===a||a>=A)&&(a=A,s={time:c.time,segmentIndex:u,partIndex:null})}}return s}},{name:"Playlist",run:function(t,e,n,i,r){return e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence,partIndex:null}:null}}],vl=function(t){function e(e){var n;return(n=t.call(this)||this).timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=Va("SyncController"),n}p()(e,t);var n=e.prototype;return n.getSyncPoint=function(t,e,n,i){var r=this.runStrategies_(t,e,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null},n.getExpiredTime=function(t,e){if(!t||!t.segments)return null;var n=this.runStrategies_(t,e,t.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+ro({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:i.segmentIndex,endIndex:0}))},n.runStrategies_=function(t,e,n,i){for(var r=[],s=0;s<ml.length;s++){var a=ml[s],o=a.run(this,t,e,n,i);o&&(o.strategy=a.name,r.push({strategy:a.name,syncPoint:o}))}return r},n.selectSyncPoint_=function(t,e){for(var n=t[0].syncPoint,i=Math.abs(t[0].syncPoint[e.key]-e.value),r=t[0].strategy,s=1;s<t.length;s++){var a=Math.abs(t[s].syncPoint[e.key]-e.value);a<i&&(i=a,n=t[s].syncPoint,r=t[s].strategy)}return this.logger_("syncPoint for ["+e.key+": "+e.value+"] chosen with strategy ["+r+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+("number"==typeof n.partIndex?",partIndex:"+n.partIndex:"")+"]"),n},n.saveExpiredSegmentInfo=function(t,e){for(var n=e.mediaSequence-t.mediaSequence-1;n>=0;n--){var i=t.segments[n];if(i&&void 0!==i.start){e.syncInfo={mediaSequence:t.mediaSequence+n,time:i.start},this.logger_("playlist refresh sync: [time:"+e.syncInfo.time+", mediaSequence: "+e.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(t){if(this.timelineToDatetimeMappings={},t.segments&&t.segments.length&&t.segments[0].dateTimeObject){var e=t.segments[0],n=e.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[e.timeline]=-n}},n.saveSegmentTimingInfo=function(t){var e=t.segmentInfo,n=t.shouldSaveTimelineMapping,i=this.calculateSegmentTimeMapping_(e,e.timingInfo,n),r=e.segment;i&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:r.start}));var s=r.dateTimeObject;r.discontinuity&&n&&s&&(this.timelineToDatetimeMappings[r.timeline]=-s.getTime()/1e3)},n.timestampOffsetForTimeline=function(t){return void 0===this.timelines[t]?null:this.timelines[t].time},n.mappingForTimeline=function(t){return void 0===this.timelines[t]?null:this.timelines[t].mapping},n.calculateSegmentTimeMapping_=function(t,e,n){var i,r,s=t.segment,a=t.part,o=this.timelines[t.timeline];if("number"==typeof t.timestampOffset)o={time:t.startOfSegment,mapping:t.startOfSegment-e.start},n&&(this.timelines[t.timeline]=o,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+t.timeline+": [time: "+o.time+"] [mapping: "+o.mapping+"]")),i=t.startOfSegment,r=e.end+o.mapping;else{if(!o)return!1;i=e.start+o.mapping,r=e.end+o.mapping}return a&&(a.start=i,a.end=r),(!s.start||i<s.start)&&(s.start=i),s.end=r,!0},n.saveDiscontinuitySyncInfo_=function(t){var e=t.playlist,n=t.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(e.discontinuityStarts&&e.discontinuityStarts.length)for(var i=0;i<e.discontinuityStarts.length;i++){var r=e.discontinuityStarts[i],s=e.discontinuitySequence+i+1,a=r-t.mediaIndex,o=Math.abs(a);if(!this.discontinuities[s]||this.discontinuities[s].accuracy>o){var u=void 0;u=a<0?n.start-ro({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:t.mediaIndex,endIndex:r}):n.end+ro({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:t.mediaIndex+1,endIndex:r}),this.discontinuities[s]={time:u,accuracy:o}}}},n.dispose=function(){this.trigger("dispose"),this.off()},e}(Ra.EventTarget),yl=function(t){function e(){var e;return(e=t.call(this)||this).pendingTimelineChanges_={},e.lastTimelineChanges_={},e}p()(e,t);var n=e.prototype;return n.clearPendingTimelineChange=function(t){this.pendingTimelineChanges_[t]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(t){var e=t.type,n=t.from,i=t.to;return"number"==typeof n&&"number"==typeof i&&(this.pendingTimelineChanges_[e]={type:e,from:n,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]},n.lastTimelineChange=function(t){var e=t.type,n=t.from,i=t.to;return"number"==typeof n&&"number"==typeof i&&(this.lastTimelineChanges_[e]={type:e,from:n,to:i},delete this.pendingTimelineChanges_[e],this.trigger("timelinechange")),this.lastTimelineChanges_[e]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},e}(Ra.EventTarget),bl=Zo(tu(eu(function(){function t(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===e||null===e)&&n.path)}},n.exports),n.exports}var e=t(function(t){function e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}t.exports=function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t},t.exports.default=t.exports,t.exports.__esModule=!0}),n=t(function(t){function e(n,i){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,e(n,i)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),i=t(function(t){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,n(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0}),r=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var n=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(n,1),n>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var n=e.length,i=0;i<n;++i)e[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),s=e.length,a=0;a<s;++a)e[a].apply(this,r)},e.dispose=function(){this.listeners={}},e.pipe=function(t){this.on("data",function(e){t.push(e)})},t}();
- /*! @name aes-decrypter @version 3.1.2 @license Apache-2.0 */
- var s=function(){var t,e,n,i,r,s,a,o,u=[[[],[],[],[],[]],[[],[],[],[],[]]],l=u[0],c=u[1],A=l[4],h=c[4],d=[],f=[];for(t=0;t<256;t++)f[(d[t]=t<<1^283*(t>>7))^t]=t;for(e=n=0;!A[e];e^=i||1,n=f[n]||1)for(s=(s=n^n<<1^n<<2^n<<3^n<<4)>>8^255&s^99,A[e]=s,h[s]=e,o=16843009*d[r=d[i=d[e]]]^65537*r^257*i^16843008*e,a=257*d[s]^16843008*s,t=0;t<4;t++)l[t][e]=a=a<<24^a>>>8,c[t][s]=o=o<<24^o>>>8;for(t=0;t<5;t++)l[t]=l[t].slice(0),c[t]=c[t].slice(0);return u},a=null,o=function(){function t(t){var e,n,i;a||(a=s()),this._tables=[[a[0][0].slice(),a[0][1].slice(),a[0][2].slice(),a[0][3].slice(),a[0][4].slice()],[a[1][0].slice(),a[1][1].slice(),a[1][2].slice(),a[1][3].slice(),a[1][4].slice()]];var r=this._tables[0][4],o=this._tables[1],u=t.length,l=1;if(4!==u&&6!==u&&8!==u)throw new Error("Invalid aes key size");var c=t.slice(0),A=[];for(this._key=[c,A],e=u;e<4*u+28;e++)i=c[e-1],(e%u==0||8===u&&e%u==4)&&(i=r[i>>>24]<<24^r[i>>16&255]<<16^r[i>>8&255]<<8^r[255&i],e%u==0&&(i=i<<8^i>>>24^l<<24,l=l<<1^283*(l>>7))),c[e]=c[e-u]^i;for(n=0;e;n++,e--)i=c[3&n?e:e-4],A[n]=e<=4||n<4?i:o[0][r[i>>>24]]^o[1][r[i>>16&255]]^o[2][r[i>>8&255]]^o[3][r[255&i]]}return t.prototype.decrypt=function(t,e,n,i,r,s){var a,o,u,l,c=this._key[1],A=t^c[0],h=i^c[1],d=n^c[2],f=e^c[3],p=c.length/4-2,g=4,m=this._tables[1],v=m[0],y=m[1],b=m[2],_=m[3],w=m[4];for(l=0;l<p;l++)a=v[A>>>24]^y[h>>16&255]^b[d>>8&255]^_[255&f]^c[g],o=v[h>>>24]^y[d>>16&255]^b[f>>8&255]^_[255&A]^c[g+1],u=v[d>>>24]^y[f>>16&255]^b[A>>8&255]^_[255&h]^c[g+2],f=v[f>>>24]^y[A>>16&255]^b[h>>8&255]^_[255&d]^c[g+3],g+=4,A=a,h=o,d=u;for(l=0;l<4;l++)r[(3&-l)+s]=w[A>>>24]<<24^w[h>>16&255]<<16^w[d>>8&255]<<8^w[255&f]^c[g++],a=A,A=h,h=d,d=f,f=a},t}(),u=function(t){function e(){var e;return(e=t.call(this,r)||this).jobs=[],e.delay=1,e.timeout_=null,e}i(e,t);var n=e.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(t){this.jobs.push(t),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},e}(r),l=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},c=function(){function t(e,n,i,r){var s=t.STEP,a=new Int32Array(e.buffer),o=new Uint8Array(e.byteLength),c=0;for(this.asyncStream_=new u,this.asyncStream_.push(this.decryptChunk_(a.subarray(c,c+s),n,i,o)),c=s;c<a.length;c+=s)i=new Uint32Array([l(a[c-4]),l(a[c-3]),l(a[c-2]),l(a[c-1])]),this.asyncStream_.push(this.decryptChunk_(a.subarray(c,c+s),n,i,o));this.asyncStream_.push(function(){
- /*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
- var t;r(null,(t=o).subarray(0,t.byteLength-t[t.byteLength-1]))})}return t.prototype.decryptChunk_=function(t,e,n,i){return function(){var r=function(t,e,n){var i,r,s,a,u,c,A,h,d,f=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),p=new o(Array.prototype.slice.call(e)),g=new Uint8Array(t.byteLength),m=new Int32Array(g.buffer);for(i=n[0],r=n[1],s=n[2],a=n[3],d=0;d<f.length;d+=4)u=l(f[d]),c=l(f[d+1]),A=l(f[d+2]),h=l(f[d+3]),p.decrypt(u,c,A,h,m,d),m[d]=l(m[d]^i),m[d+1]=l(m[d+1]^r),m[d+2]=l(m[d+2]^s),m[d+3]=l(m[d+3]^a),i=u,r=c,s=A,a=h;return g}(t,e,n);i.set(r,t.byteOffset)}},e(t,null,[{key:"STEP",get:function(){return 32e3}}]),t}();self.onmessage=function(t){var e=t.data,n=new Uint8Array(e.encrypted.bytes,e.encrypted.byteOffset,e.encrypted.byteLength),i=new Uint32Array(e.key.bytes,e.key.byteOffset,e.key.byteLength/4),r=new Uint32Array(e.iv.bytes,e.iv.byteOffset,e.iv.byteLength/4);new c(n,i,r,function(t,n){var i,r;self.postMessage((i={source:e.source,decrypted:n},r={},Object.keys(i).forEach(function(t){var e=i[t];ArrayBuffer.isView(e)?r[t]={bytes:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength}:r[t]=e}),r),[n.buffer])})}}))),_l=function(t){var e=t.default?"main":"alternative";return t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0&&(e="main-desc"),e},wl=function(t,e){t.abort(),t.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)},Bl=function(t,e){e.activePlaylistLoader=t,t.load()},Cl={AUDIO:function(t,e){return function(){var n=e.segmentLoaders[t],i=e.mediaTypes[t],r=e.blacklistCurrentPlaylist;wl(n,i);var s=i.activeTrack(),a=i.activeGroup(),o=(a.filter(function(t){return t.default})[0]||a[0]).id,u=i.tracks[o];if(s!==u){for(var l in Ra.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[l].enabled=i.tracks[l]===u;i.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(t,e){return function(){var n=e.segmentLoaders[t],i=e.mediaTypes[t];Ra.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),wl(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}},Tl={AUDIO:function(t,e,n){if(e){var i=n.tech,r=n.requestOptions,s=n.segmentLoaders[t];e.on("loadedmetadata",function(){var t=e.media();s.playlist(t,r),(!i.paused()||t.endList&&"none"!==i.preload())&&s.load()}),e.on("loadedplaylist",function(){s.playlist(e.media(),r),i.paused()||s.load()}),e.on("error",Cl[t](t,n))}},SUBTITLES:function(t,e,n){var i=n.tech,r=n.requestOptions,s=n.segmentLoaders[t],a=n.mediaTypes[t];e.on("loadedmetadata",function(){var t=e.media();s.playlist(t,r),s.track(a.activeTrack()),(!i.paused()||t.endList&&"none"!==i.preload())&&s.load()}),e.on("loadedplaylist",function(){s.playlist(e.media(),r),i.paused()||s.load()}),e.on("error",Cl[t](t,n))}},El={AUDIO:function(t,e){var n=e.vhs,i=e.sourceType,r=e.segmentLoaders[t],s=e.requestOptions,a=e.master.mediaGroups,o=e.mediaTypes[t],u=o.groups,l=o.tracks,c=o.logger_,A=e.masterPlaylistLoader,h=fo(A.master);for(var d in a[t]&&0!==Object.keys(a[t]).length||(a[t]={main:{default:{default:!0}}},h&&(a[t].main.default.playlists=A.master.playlists)),a[t])for(var f in u[d]||(u[d]=[]),a[t][d]){var p=a[t][d][f],g=void 0;if(h?(c("AUDIO group '"+d+"' label '"+f+"' is a master playlist"),p.isMasterPlaylist=!0,g=null):g="vhs-json"===i&&p.playlists?new ko(p.playlists[0],n,s):p.resolvedUri?new ko(p.resolvedUri,n,s):p.playlists&&"dash"===i?new qo(p.playlists[0],n,s,A):null,p=Ra.mergeOptions({id:f,playlistLoader:g},p),Tl[t](t,p.playlistLoader,e),u[d].push(p),void 0===l[f]){var m=new Ra.AudioTrack({id:f,kind:_l(p),enabled:!1,language:p.language,default:p.default,label:f});l[f]=m}}r.on("error",Cl[t](t,e))},SUBTITLES:function(t,e){var n=e.tech,i=e.vhs,r=e.sourceType,s=e.segmentLoaders[t],a=e.requestOptions,o=e.master.mediaGroups,u=e.mediaTypes[t],l=u.groups,c=u.tracks,A=e.masterPlaylistLoader;for(var h in o[t])for(var d in l[h]||(l[h]=[]),o[t][h])if(!o[t][h][d].forced){var f=o[t][h][d],p=void 0;if("hls"===r)p=new ko(f.resolvedUri,i,a);else if("dash"===r){if(!f.playlists.filter(function(t){return t.excludeUntil!==1/0}).length)return;p=new qo(f.playlists[0],i,a,A)}else"vhs-json"===r&&(p=new ko(f.playlists?f.playlists[0]:f.resolvedUri,i,a));if(f=Ra.mergeOptions({id:d,playlistLoader:p},f),Tl[t](t,f.playlistLoader,e),l[h].push(f),void 0===c[d]){var g=n.addRemoteTextTrack({id:d,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:d},!1).track;c[d]=g}}s.on("error",Cl[t](t,e))},"CLOSED-CAPTIONS":function(t,e){var n=e.tech,i=e.master.mediaGroups,r=e.mediaTypes[t],s=r.groups,a=r.tracks;for(var o in i[t])for(var u in s[o]||(s[o]=[]),i[t][o]){var l=i[t][o][u];if(/^(?:CC|SERVICE)/.test(l.instreamId)){var c=n.options_.vhs&&n.options_.vhs.captionServices||{},A={label:u,language:l.language,instreamId:l.instreamId,default:l.default&&l.autoselect};if(c[A.instreamId]&&(A=Ra.mergeOptions(A,c[A.instreamId])),void 0===A.default&&delete A.default,s[o].push(Ra.mergeOptions({id:u},l)),void 0===a[u]){var h=n.addRemoteTextTrack({id:A.instreamId,kind:"captions",default:A.default,language:A.language,label:A.label},!1).track;a[u]=h}}}}},Sl=function t(e,n){for(var i=0;i<e.length;i++){if(Ao(n,e[i]))return!0;if(e[i].playlists&&t(e[i].playlists,n))return!0}return!1},kl={AUDIO:function(t,e){return function(){var n=e.mediaTypes[t].tracks;for(var i in n)if(n[i].enabled)return n[i];return null}},SUBTITLES:function(t,e){return function(){var n=e.mediaTypes[t].tracks;for(var i in n)if("showing"===n[i].mode||"hidden"===n[i].mode)return n[i];return null}}},xl=function(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){El[e](e,t)});var e=t.mediaTypes,n=t.masterPlaylistLoader,i=t.tech,r=t.vhs,s=t.segmentLoaders,a=s.AUDIO,o=s.main;["AUDIO","SUBTITLES"].forEach(function(n){e[n].activeGroup=function(t,e){return function(n){var i=e.masterPlaylistLoader,r=e.mediaTypes[t].groups,s=i.media();if(!s)return null;var a=null;s.attributes[t]&&(a=r[s.attributes[t]]);var o=Object.keys(r);if(!a)if("AUDIO"===t&&o.length>1&&fo(e.master))for(var u=0;u<o.length;u++){var l=r[o[u]];if(Sl(l,s)){a=l;break}}else r.main?a=r.main:1===o.length&&(a=r[o[0]]);return void 0===n?a:null!==n&&a&&a.filter(function(t){return t.id===n.id})[0]||null}}(n,t),e[n].activeTrack=kl[n](n,t),e[n].onGroupChanged=function(t,e){return function(){var n=e.segmentLoaders,i=n[t],r=n.main,s=e.mediaTypes[t],a=s.activeTrack(),o=s.getActiveGroup(),u=s.activePlaylistLoader,l=s.lastGroup_;o&&l&&o.id===l.id||(s.lastGroup_=o,s.lastTrack_=a,wl(i,s),o&&!o.isMasterPlaylist&&(o.playlistLoader?(i.resyncLoader(),Bl(o.playlistLoader,s)):u&&r.resetEverything()))}}(n,t),e[n].onGroupChanging=function(t,e){return function(){var n=e.segmentLoaders[t];e.mediaTypes[t].lastGroup_=null,n.abort(),n.pause()}}(n,t),e[n].onTrackChanged=function(t,e){return function(){var n=e.masterPlaylistLoader,i=e.segmentLoaders,r=i[t],s=i.main,a=e.mediaTypes[t],o=a.activeTrack(),u=a.getActiveGroup(),l=a.activePlaylistLoader,c=a.lastTrack_;if((!c||!o||c.id!==o.id)&&(a.lastGroup_=u,a.lastTrack_=o,wl(r,a),u)){if(u.isMasterPlaylist){if(!o||!c||o.id===c.id)return;var A=e.vhs.masterPlaylistController_,h=A.selectPlaylist();if(A.media()===h)return;return a.logger_("track change. Switching master audio from "+c.id+" to "+o.id),n.pause(),s.resetEverything(),void A.fastQualityChange_(h)}if("AUDIO"===t){if(!u.playlistLoader)return s.setAudio(!0),void s.resetEverything();r.setAudio(!0),s.setAudio(!1)}l!==u.playlistLoader?(r.track&&r.track(o),r.resetEverything(),Bl(u.playlistLoader,a)):Bl(u.playlistLoader,a)}}}(n,t),e[n].getActiveGroup=function(t,e){var n=e.mediaTypes;return function(){var e=n[t].activeTrack();return e?n[t].activeGroup(e):null}}(n,t)});var u=e.AUDIO.activeGroup();if(u){var l=(u.filter(function(t){return t.default})[0]||u[0]).id;e.AUDIO.tracks[l].enabled=!0,e.AUDIO.onGroupChanged(),e.AUDIO.onTrackChanged(),e.AUDIO.getActiveGroup().playlistLoader?(o.setAudio(!1),a.setAudio(!0)):o.setAudio(!0)}n.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(t){return e[t].onGroupChanged()})}),n.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(t){return e[t].onGroupChanging()})});var c=function(){e.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"}),i.trigger({type:"usage",name:"hls-audio-change"})};for(var A in i.audioTracks().addEventListener("change",c),i.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),r.on("dispose",function(){i.audioTracks().removeEventListener("change",c),i.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)}),i.clearTracks("audio"),e.AUDIO.tracks)i.audioTracks().addTrack(e.AUDIO.tracks[A])},Ul=function(){var t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:$u,activeTrack:$u,getActiveGroup:$u,onGroupChanged:$u,onTrackChanged:$u,lastTrack_:null,logger_:Va("MediaGroups["+e+"]")}}),t},Il=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Fl=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},Ol=function(t){function e(e){var n;n=t.call(this)||this;var i=e.src,r=e.handleManifestRedirects,s=e.withCredentials,a=e.tech,u=e.bandwidth,l=e.externVhs,c=e.useCueTags,A=e.blacklistDuration,h=e.enableLowInitialPlaylist,f=e.sourceType,p=e.cacheEncryptionKeys,g=e.experimentalBufferBasedABR;if(!i)throw new Error("A non-empty playlist URL or JSON manifest string is required");var m=e.maxPlaylistRetries;null!==m&&void 0!==m||(m=1/0),Wu=l,n.experimentalBufferBasedABR=Boolean(g),n.withCredentials=s,n.tech_=a,n.vhs_=a.vhs,n.sourceType_=f,n.useCueTags_=c,n.blacklistDuration=A,n.maxPlaylistRetries=m,n.enableLowInitialPlaylist=h,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:s,handleManifestRedirects:r,maxPlaylistRetries:m,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=Ul(),n.mediaSource=new o.a.MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind(d()(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind(d()(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind(d()(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=Ra.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new vl(e),n.segmentMetadataTrack_=a.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new bl,n.sourceUpdater_=new hl(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new yl;var v={vhs:n.vhs_,parse708captions:e.parse708captions,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:u,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:p,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_};n.masterPlaylistLoader_="dash"===n.sourceType_?new qo(i,n.vhs_,n.requestOptions_):new ko(i,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new zu(Ra.mergeOptions(v,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),e),n.audioSegmentLoader_=new zu(Ra.mergeOptions(v,{loaderType:"audio"}),e),n.subtitleSegmentLoader_=new pl(Ra.mergeOptions(v,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks}),e),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_()})),Il.forEach(function(t){n[t+"_"]=Fl.bind(d()(n),t)}),n.logger_=Va("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 y="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(y,function(){var t=Date.now();n.tech_.one("loadeddata",function(){n.timeToLoadedData__=Date.now()-t,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends})}),n}p()(e,t);var n=e.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var t=this.mainAppendsToLoadedData_(),e=this.audioAppendsToLoadedData_();return-1===t||-1===e?-1:t+e},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(){var t=this.selectPlaylist();this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,"abr")},n.switchMedia_=function(t,e,n){var i=this.media(),r=i&&(i.id||i.uri),s=t.id||t.uri;r&&r!==s&&(this.logger_("switch media "+r+" -> "+s+" from "+e),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+e})),this.masterPlaylistLoader_.media(t,n)},n.startABRTimer_=function(){var t=this;this.stopABRTimer_(),this.abrTimer_=o.a.setInterval(function(){return t.checkABR_()},250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(o.a.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var t=this.master();if(!t||!t.mediaGroups||!t.mediaGroups.AUDIO)return t&&t.playlists||[];var e,n=t.mediaGroups.AUDIO,i=Object.keys(n);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)e=this.mediaTypes_.AUDIO.activeTrack();else{var r=n.main||i.length&&n[i[0]];for(var s in r)if(r[s].default){e={label:s};break}}if(!e)return[];var a=[];for(var o in n)if(n[o][e.label]){var u=n[o][e.label];u.playlists?a.push.apply(a,u.playlists):a.push(u)}return a},n.setupMasterPlaylistLoaderListeners_=function(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var e=t.masterPlaylistLoader_.media(),n=1.5*e.targetDuration*1e3;co(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=n,e.endList&&"none"!==t.tech_.preload()&&(t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load()),xl({sourceType:t.sourceType_,segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,vhs:t.vhs_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)}),t.triggerPresenceUsage_(t.master(),e),t.setupFirstPlay(),!t.mediaTypes_.AUDIO.activePlaylistLoader||t.mediaTypes_.AUDIO.activePlaylistLoader.media()?t.trigger("selectedinitialmedia"):t.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){t.trigger("selectedinitialmedia")})}),this.masterPlaylistLoader_.on("loadedplaylist",function(){t.loadOnPlay_&&t.tech_.off("play",t.loadOnPlay_);var e=t.masterPlaylistLoader_.media();if(!e){var n;if(t.excludeUnsupportedVariants_(),t.enableLowInitialPlaylist&&(n=t.selectInitialPlaylist()),n||(n=t.selectPlaylist()),!n||!t.shouldSwitchToMedia_(n))return;if(t.initialMedia_=n,t.switchMedia_(t.initialMedia_,"initial"),!("vhs-json"===t.sourceType_&&t.initialMedia_.segments))return;e=t.initialMedia_}t.handleUpdatedMediaPlaylist(e)}),this.masterPlaylistLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){t.mainSegmentLoader_.abort(),t.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var e=t.masterPlaylistLoader_.media(),n=1.5*e.targetDuration*1e3;co(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=n,t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load(),t.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var e=t.masterPlaylistLoader_.media();"playlist-unchanged"!==e.lastExcludeReason_&&(t.stuckAtPlaylistEnd_(e)&&(t.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),t.tech_.trigger("playliststuck")))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})},n.handleUpdatedMediaPlaylist=function(t){this.useCueTags_&&this.updateAdCues_(t),this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.updateDuration(!t.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(t,e){var n=t.mediaGroups||{},i=!0,r=Object.keys(n.AUDIO);for(var s in n.AUDIO)for(var a in n.AUDIO[s]){n.AUDIO[s][a].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"})),Wu.Playlist.isAes(e)&&(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(t){var e=this.masterPlaylistLoader_.media(),n=this.tech_.buffered();return function(t){var e=t.currentPlaylist,n=t.nextPlaylist,i=t.forwardBuffer,r=t.bufferLowWaterLine,s=t.bufferHighWaterLine,a=t.duration,o=t.experimentalBufferBasedABR,u=t.log;if(!n)return Ra.log.warn("We received no playlist to switch to. Please check your stream."),!1;var l="allowing switch "+(e&&e.id||"null")+" -> "+n.id;if(!e||!e.endList)return u(l+" as current playlist "+(e?"is live":"is not set")),!0;if(n.id===e.id)return!1;var c=o?Yo.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Yo.MAX_BUFFER_LOW_WATER_LINE;if(a<c)return u(l+" as duration < max low water line ("+a+" < "+c+")"),!0;var A=n.attributes.BANDWIDTH,h=e.attributes.BANDWIDTH;if(A<h&&(!o||i<s)){var d=l+" as next bandwidth < current bandwidth ("+A+" < "+h+")";return o&&(d+=" and forwardBuffer < bufferHighWaterLine ("+i+" < "+s+")"),u(d),!0}if((!o||A>h)&&i>=r){var f=l+" as forwardBuffer >= bufferLowWaterLine ("+i+" >= "+r+")";return o&&(f+=" and next bandwidth > current bandwidth ("+A+" > "+h+")"),u(f),!0}return u("not "+l+" as no switching criteria met"),!1}({currentPlaylist:e,nextPlaylist:t,forwardBuffer:n.length?n.end(n.length-1)-this.tech_.currentTime():0,bufferLowWaterLine:this.bufferLowWaterLine(),bufferHighWaterLine:this.bufferHighWaterLine(),duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var t=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",function(){var e=t.selectPlaylist();t.shouldSwitchToMedia_(e)&&t.switchMedia_(e,"bandwidthupdate"),t.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){t.trigger("progress")})),this.mainSegmentLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("appenderror",function(){t.error=t.mainSegmentLoader_.error_,t.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){t.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){t.error=t.audioSegmentLoader_.error_,t.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){t.logger_("main segment loader ended"),t.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(e){t.experimentalBufferBasedABR||(t.delegateLoaders_("all",["abort"]),t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))});var e=function(){if(!t.sourceUpdater_.hasCreatedSourceBuffers())return t.tryToCreateSourceBuffers_();var e=t.getCodecsOrExclude_();e&&t.sourceUpdater_.addOrChangeSourceBuffers(e)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){t.logger_("audioSegmentLoader ended"),t.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(t){void 0===t&&(t=this.selectPlaylist()),this.fastQualityChange_(t)},n.fastQualityChange_=function(t){var e=this;void 0===t&&(t=this.selectPlaylist()),t!==this.masterPlaylistLoader_.media()?(this.switchMedia_(t,"fast-quality"),this.mainSegmentLoader_.resetEverything(function(){Ra.browser.IE_VERSION||Ra.browser.IS_EDGE?e.tech_.setCurrentTime(e.tech_.currentTime()+.04):e.tech_.setCurrentTime(e.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 t=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<t.start(0)?this.tech_.setCurrentTime(t.end(t.length-1)):void 0}},n.setupFirstPlay=function(){var t=this,e=this.masterPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList){var n=this.seekable();if(!n.length)return!1;if(Ra.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){t.trigger("firstplay"),t.tech_.setCurrentTime(n.end(0)),t.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 t=this.tech_.play();void 0!==t&&"function"==typeof t.then&&t.then(null,function(t){})}this.trigger("sourceopen")},n.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var t=this.inbandTextTracks_.metadataTrack_.cues;if(t&&t.length){var e=this.duration();t[t.length-1].endTime=isNaN(e)||Math.abs(e)===1/0?Number.MAX_VALUE:e}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")},n.onEndOfStream=function(){var t=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var e=this.mainSegmentLoader_.getCurrentMediaInfo_();t=!e||e.hasVideo?t&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}t&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(t){if(!this.seekable().length)return!1;var e=this.syncController_.getExpiredTime(t,this.duration());if(null===e)return!1;var n=Wu.Playlist.playlistEnd(t,e),i=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return n-i<=.1;var s=r.end(r.length-1);return s-i<=.1&&n-s<=.1},n.blacklistCurrentPlaylist=function(t,e){void 0===t&&(t={});var n=t.playlist||this.masterPlaylistLoader_.media();if(e=e||t.blacklistDuration||this.blacklistDuration,!n)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var i,r=this.masterPlaylistLoader_.master.playlists,s=r.filter(uo),a=1===s.length&&s[0]===n;if(1===r.length&&e!==1/0)return Ra.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(a);if(a){var o=!1;r.forEach(function(t){if(t!==n){var e=t.excludeUntil;void 0!==e&&e!==1/0&&(o=!0,delete t.excludeUntil)}}),o&&(Ra.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*e,n.excludeUntil=i,t.reason&&(n.lastExcludeReason_=t.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 l=t.internal?this.logger_:Ra.log.warn,c=t.message?" "+t.message:"";l((t.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+c+" 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 A=u.targetDuration/2*1e3||5e3,h="number"==typeof u.lastRequest&&Date.now()-u.lastRequest<=A;return this.switchMedia_(u,"exclude",a||h)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(t,e){var n=this,i=[],r="all"===t;(r||"main"===t)&&i.push(this.masterPlaylistLoader_);var s=[];(r||"audio"===t)&&s.push("AUDIO"),(r||"subtitle"===t)&&(s.push("CLOSED-CAPTIONS"),s.push("SUBTITLES")),s.forEach(function(t){var e=n.mediaTypes_[t]&&n.mediaTypes_[t].activePlaylistLoader;e&&i.push(e)}),["main","audio","subtitle"].forEach(function(e){var r=n[e+"SegmentLoader_"];!r||t!==e&&"all"!==t||i.push(r)}),i.forEach(function(t){return e.forEach(function(e){"function"==typeof t[e]&&t[e]()})})},n.setCurrentTime=function(t){var e=$a(this.tech_.buffered(),t);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?e&&e.length?t:(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 t=this.masterPlaylistLoader_.media();return t?t.endList?this.mediaSource?this.mediaSource.duration:Wu.Playlist.duration(t):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var t;if(this.masterPlaylistLoader_){var e=this.masterPlaylistLoader_.media();if(e){var n=this.syncController_.getExpiredTime(e,this.duration());if(null!==n){var i=this.masterPlaylistLoader_.master,r=Wu.Playlist.seekable(e,n,Wu.Playlist.liveEdgeDelay(i,e));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(e=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(e,this.duration())))return;if(0===(t=Wu.Playlist.seekable(e,n,Wu.Playlist.liveEdgeDelay(i,e))).length)return}var s,a;this.seekable_&&this.seekable_.length&&(s=this.seekable_.end(0),a=this.seekable_.start(0)),t?t.start(0)>r.end(0)||r.start(0)>t.end(0)?this.seekable_=r:this.seekable_=Ra.createTimeRanges([[t.start(0)>r.start(0)?t.start(0):r.start(0),t.end(0)<r.end(0)?t.end(0):r.end(0)]]):this.seekable_=r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===s&&this.seekable_.start(0)===a||(this.logger_("seekable updated ["+Ga(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(t){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,t),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(t){var e=this.seekable();if(!e.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1))}else{var n=this.tech_.buffered(),i=Wu.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 t=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(e){var n=t.mediaTypes_[e].groups;for(var i in n)n[i].forEach(function(t){t.playlistLoader&&t.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 t=!!this.mediaTypes_.AUDIO.activePlaylistLoader,e=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!t||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!e||!n)},n.getCodecsOrExclude_=function(){var t=this,e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};e.video=e.main;var n=xu(this.master(),this.media()),i={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(i.video=n.video||e.main.videoCodec||"avc1.4d400d"),e.main.isMuxed&&(i.video+=","+(n.audio||e.main.audioCodec||"mp4a.40.2")),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||r)&&(i.audio=n.audio||e.main.audioCodec||e.audio.audioCodec||"mp4a.40.2",e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),i.audio||i.video){var s,a={};if(["video","audio"].forEach(function(t){if(i.hasOwnProperty(t)&&(r=e[t].isFmp4,o=i[t],!(r?G(o):X(o)))){var n=e[t].isFmp4?"browser":"muxer";a[n]=a[n]||[],a[n].push(i[t]),"audio"===t&&(s=n)}var r,o}),r&&s&&this.media().attributes.AUDIO){var o=this.media().attributes.AUDIO;this.master().playlists.forEach(function(e){(e.attributes&&e.attributes.AUDIO)===o&&e!==t.media()&&(e.excludeUntil=1/0)}),this.logger_("excluding audio group "+o+" as "+s+' does not support codec(s): "'+i.audio+'"')}if(!Object.keys(a).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var u=[];if(["video","audio"].forEach(function(e){var n=(z(t.sourceUpdater_.codecs[e]||"")[0]||{}).type,r=(z(i[e]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&u.push('"'+t.sourceUpdater_.codecs[e]+'" -> "'+i[e]+'"')}),u.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+u.join(", ")+".",blacklistDuration:1/0,internal:!0})}return i}var l=Object.keys(a).reduce(function(t,e){return t&&(t+=", "),t+=e+' does not support codec(s): "'+a[e].join(",")+'"'},"")+".";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 t=this.getCodecsOrExclude_();if(t){this.sourceUpdater_.createSourceBuffers(t);var e=[t.video,t.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(e)}}},n.excludeUnsupportedVariants_=function(){var t=this,e=this.master().playlists,n=[];Object.keys(e).forEach(function(i){var r=e[i];if(-1===n.indexOf(r.id)){n.push(r.id);var s=xu(t.master,r),a=[];!s.audio||X(s.audio)||G(s.audio)||a.push("audio codec "+s.audio),!s.video||X(s.video)||G(s.video)||a.push("video codec "+s.video),s.text&&"stpp.ttml.im1t"===s.text&&a.push("text codec "+s.text),a.length&&(r.excludeUntil=1/0,t.logger_("excluding "+r.id+" for unsupported: "+a.join(", ")))}})},n.excludeIncompatibleVariants_=function(t){var e=this,n=[],i=this.master().playlists,r=Su(z(t)),s=ku(r),a=r.video&&z(r.video)[0]||null,o=r.audio&&z(r.audio)[0]||null;Object.keys(i).forEach(function(t){var r=i[t];if(-1===n.indexOf(r.id)&&r.excludeUntil!==1/0){n.push(r.id);var u=[],l=xu(e.masterPlaylistLoader_.master,r),c=ku(l);if(l.audio||l.video){if(c!==s&&u.push('codec count "'+c+'" !== "'+s+'"'),!e.sourceUpdater_.canChangeType()){var A=l.video&&z(l.video)[0]||null,h=l.audio&&z(l.audio)[0]||null;A&&a&&A.type.toLowerCase()!==a.type.toLowerCase()&&u.push('video codec "'+A.type+'" !== "'+a.type+'"'),h&&o&&h.type.toLowerCase()!==o.type.toLowerCase()&&u.push('audio codec "'+h.type+'" !== "'+o.type+'"')}u.length&&(r.excludeUntil=1/0,e.logger_("blacklisting "+r.id+": "+u.join(" && ")))}}})},n.updateAdCues_=function(t){var e=0,n=this.seekable();n.length&&(e=n.start(0)),function(t,e,n){if(void 0===n&&(n=0),t.segments)for(var i,r=n,s=0;s<t.segments.length;s++){var a=t.segments[s];if(i||(i=gl(e,r+a.duration/2)),i){if("cueIn"in a){i.endTime=r,i.adEndTime=r,r+=a.duration,i=null;continue}if(r<i.endTime){r+=a.duration;continue}i.endTime+=a.duration}else if("cueOut"in a&&((i=new o.a.VTTCue(r,r+a.duration,a.cueOut)).adStartTime=r,i.adEndTime=r+parseFloat(a.cueOut),e.addCue(i)),"cueOutCont"in a){var u=a.cueOutCont.split("/").map(parseFloat),l=u[0],c=u[1];(i=new o.a.VTTCue(r,r+a.duration,"")).adStartTime=r-l,i.adEndTime=i.adStartTime+c,e.addCue(i)}r+=a.duration}}(t,this.cueTagsTrack_,e)},n.goalBufferLength=function(){var t=this.tech_.currentTime(),e=Yo.GOAL_BUFFER_LENGTH,n=Yo.GOAL_BUFFER_LENGTH_RATE,i=Math.max(e,Yo.MAX_GOAL_BUFFER_LENGTH);return Math.min(e+t*n,i)},n.bufferLowWaterLine=function(){var t=this.tech_.currentTime(),e=Yo.BUFFER_LOW_WATER_LINE,n=Yo.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(e,Yo.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(e,Yo.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(e+t*n,this.experimentalBufferBasedABR?r:i)},n.bufferHighWaterLine=function(){return Yo.BUFFER_HIGH_WATER_LINE},e}(Ra.EventTarget),Ql=function(t,e,n){var i,r,s,a=t.masterPlaylistController_,o=a[(t.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(a);if(e.attributes){var u=e.attributes.RESOLUTION;this.width=u&&u.width,this.height=u&&u.height,this.bandwidth=e.attributes.BANDWIDTH}this.codecs=xu(a.master(),e),this.playlist=e,this.id=n,this.enabled=(i=t.playlists,r=e.id,s=o,function(t){var e=i.master.playlists[r],n=oo(e),a=uo(e);return void 0===t?a:(t?delete e.disabled:e.disabled=!0,t===a||n||(s(),t?i.trigger("renditionenabled"):i.trigger("renditiondisabled")),t)})},Nl=["seeking","seeked","pause","playing","error"],Ll=function(){function t(t){var e=this;this.masterPlaylistController_=t.masterPlaylistController,this.tech_=t.tech,this.seekable=t.seekable,this.allowSeeksWithinUnsafeLiveWindow=t.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=t.liveRangeSafeTimeDelta,this.media=t.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Va("PlaybackWatcher"),this.logger_("initialize");var n=function(){return e.monitorCurrentTime_()},i=function(){return e.monitorCurrentTime_()},r=function(){return e.techWaiting_()},s=function(){return e.cancelTimer_()},a=function(){return e.fixesBadSeeks_()},u=this.masterPlaylistController_,l=["main","subtitle","audio"],c={};l.forEach(function(t){c[t]={reset:function(){return e.resetSegmentDownloads_(t)},updateend:function(){return e.checkSegmentDownloads_(t)}},u[t+"SegmentLoader_"].on("appendsdone",c[t].updateend),u[t+"SegmentLoader_"].on("playlistupdate",c[t].reset),e.tech_.on(["seeked","seeking"],c[t].reset)}),this.tech_.on("seekablechanged",a),this.tech_.on("waiting",r),this.tech_.on(Nl,s),this.tech_.on("canplay",i),this.tech_.one("play",n),this.dispose=function(){e.logger_("dispose"),e.tech_.off("seekablechanged",a),e.tech_.off("waiting",r),e.tech_.off(Nl,s),e.tech_.off("canplay",i),e.tech_.off("play",n),l.forEach(function(t){u[t+"SegmentLoader_"].off("appendsdone",c[t].updateend),u[t+"SegmentLoader_"].off("playlistupdate",c[t].reset),e.tech_.off(["seeked","seeking"],c[t].reset)}),e.checkCurrentTimeTimeout_&&o.a.clearTimeout(e.checkCurrentTimeTimeout_),e.cancelTimer_()}}var e=t.prototype;return e.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&o.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=o.a.setTimeout(this.monitorCurrentTime_.bind(this),250)},e.resetSegmentDownloads_=function(t){var e=this.masterPlaylistController_[t+"SegmentLoader_"];this[t+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+t+" loader"),this[t+"StalledDownloads_"]=0,this[t+"Buffered_"]=e.buffered_()},e.checkSegmentDownloads_=function(t){var e=this.masterPlaylistController_,n=e[t+"SegmentLoader_"],i=n.buffered_(),r=function(t,e){if(t===e)return!1;if(!t&&e||!e&&t)return!0;if(t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t.start(n)!==e.start(n)||t.end(n)!==e.end(n))return!0;return!1}(this[t+"Buffered_"],i);this[t+"Buffered_"]=i,r?this.resetSegmentDownloads_(t):(this[t+"StalledDownloads_"]++,this.logger_("found #"+this[t+"StalledDownloads_"]+" "+t+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:Xa(i)}),this[t+"StalledDownloads_"]<10||(this.logger_(t+" loader stalled download exclusion"),this.resetSegmentDownloads_(t),this.tech_.trigger({type:"usage",name:"vhs-"+t+"-download-exclusion"}),"subtitle"!==t&&e.blacklistCurrentPlaylist({message:"Excessive "+t+" segment downloading detected."},1/0)))},e.checkCurrentTime_=function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var t=this.tech_.currentTime(),e=this.tech_.buffered();if(this.lastRecordedTime===t&&(!e.length||t+.1>=e.end(e.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&t===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):t===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=t)}},e.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},e.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var t,e=this.seekable(),n=this.tech_.currentTime();this.afterSeekableWindow_(e,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(t=e.end(e.length-1));if(this.beforeSeekableWindow_(e,n)){var i=e.start(0);t=i+(i===e.end(0)?0:.1)}if(void 0!==t)return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+Ga(e)+". Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0;var r=this.tech_.buffered();return!!function(t){var e=t.buffered,n=t.targetDuration,i=t.currentTime;return!(!e.length||e.end(0)-e.start(0)<2*n||i>e.start(0)||!(e.start(0)-i<n))}({buffered:r,targetDuration:this.media().targetDuration,currentTime:n})&&(t=r.start(0)+.1,this.logger_("Buffered region starts ("+r.start(0)+") just beyond seek point ("+n+"). Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0)},e.waiting_=function(){if(!this.techWaiting_()){var t=this.tech_.currentTime(),e=this.tech_.buffered(),n=$a(e,t);return n.length&&t+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(t),this.logger_("Stopped at "+t+" 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}},e.techWaiting_=function(){var t=this.seekable(),e=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(t,e)){var n=t.end(t.length-1);return this.logger_("Fell out of live window at time "+e+". 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();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:e}))return this.cancelTimer_(),this.tech_.setCurrentTime(e),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var s=Wa(r,e);if(s.length>0){var a=s.start(0)-e;return this.logger_("Stopped at "+e+", setting timer for "+a+", seeking to "+s.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*a,e),!0}return!1},e.afterSeekableWindow_=function(t,e,n,i){if(void 0===i&&(i=!1),!t.length)return!1;var r=t.end(t.length-1)+.1;return!n.endList&&i&&(r=t.end(t.length-1)+3*n.targetDuration),e>r},e.beforeSeekableWindow_=function(t,e){return!!(t.length&&t.start(0)>0&&e<t.start(0)-this.liveRangeSafeTimeDelta)},e.videoUnderflow_=function(t){var e=t.videoBuffered,n=t.audioBuffered,i=t.currentTime;if(e){var r;if(e.length&&n.length){var s=$a(e,i-3),a=$a(e,i),o=$a(n,i);o.length&&!a.length&&s.length&&(r={start:s.end(0),end:o.end(0)})}else{Wa(e,i).length||(r=this.gapFromVideoUnderflow_(e,i))}return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+i),!0)}},e.skipTheGap_=function(t){var e=this.tech_.buffered(),n=this.tech_.currentTime(),i=Wa(e,n);this.cancelTimer_(),0!==i.length&&n===t&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",t,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+1/30),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},e.gapFromVideoUnderflow_=function(t,e){for(var n=function(t){if(t.length<2)return Ra.createTimeRanges();for(var e=[],n=1;n<t.length;n++){var i=t.end(n-1),r=t.start(n);e.push([i,r])}return Ra.createTimeRanges(e)}(t),i=0;i<n.length;i++){var r=n.start(i),s=n.end(i);if(e-r<4&&e-r>2)return{start:r,end:s}}return null},t}(),Dl={errorInterval:30,getSource:function(t){return t(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},Pl=function(t){!function t(e,n){var i=0,r=0,s=Ra.mergeOptions(Dl,n);e.ready(function(){e.trigger({type:"usage",name:"vhs-error-reload-initialized"}),e.trigger({type:"usage",name:"hls-error-reload-initialized"})});var a=function(){r&&e.currentTime(r)},o=function(t){null!==t&&void 0!==t&&(r=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",a),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.trigger({type:"usage",name:"hls-error-reload"}),e.play())},u=function(){return Date.now()-i<1e3*s.errorInterval?(e.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void e.trigger({type:"usage",name:"hls-error-reload-canceled"})):s.getSource&&"function"==typeof s.getSource?(i=Date.now(),s.getSource.call(e,o)):void Ra.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},l=function t(){e.off("loadedmetadata",a),e.off("error",u),e.off("dispose",t)};e.on("error",u),e.on("dispose",l),e.reloadSourceOnError=function(n){l(),t(e,n)}}(this,t)},Rl={PlaylistLoader:ko,Playlist:po,utils:Mo,STANDARD_PLAYLIST_SELECTOR:Lu,INITIAL_PLAYLIST_SELECTOR:function(){var t=this,e=this.playlists.master.playlists.filter(po.isEnabled);return Ou(e,function(t,e){return Qu(t,e)}),e.filter(function(e){return!!xu(t.playlists.master,e).video})[0]||null},lastBandwidthSelector:Lu,movingAverageBandwidthSelector:function(t){var e=-1,n=-1;if(t<0||t>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var i=this.useDevicePixelRatio&&o.a.devicePixelRatio||1;return e<0&&(e=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(e=t*this.systemBandwidth+(1-t)*e,n=this.systemBandwidth),Nu(this.playlists.master,e,parseInt(Fu(this.tech_.el(),"width"),10)*i,parseInt(Fu(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:Qu,comparePlaylistResolution:function(t,e){var n,i;return t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),n=n||o.a.Number.MAX_VALUE,e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),n===(i=i||o.a.Number.MAX_VALUE)&&t.attributes.BANDWIDTH&&e.attributes.BANDWIDTH?t.attributes.BANDWIDTH-e.attributes.BANDWIDTH:n-i},xhr:Fo()};Object.keys(Yo).forEach(function(t){Object.defineProperty(Rl,t,{get:function(){return Ra.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),Yo[t]},set:function(e){Ra.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),"number"!=typeof e||e<0?Ra.log.warn("value of Vhs."+t+" must be greater than or equal to 0"):Yo[t]=e}})});var Hl=function(t,e){for(var n=e.media(),i=-1,r=0;r<t.length;r++)if(t[r].id===n.id){i=r;break}t.selectedIndex_=i,t.trigger({selectedIndex:i,type:"change"})};Rl.canPlaySource=function(){return Ra.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Ml=function(t){var e=t.player,n=t.sourceKeySystems,i=t.audioMedia,r=t.mainPlaylists;if(!e.eme.initializeMediaKeys)return Promise.resolve();var s=[],a=[];return function(t,e){return t.reduce(function(t,n){if(!n.contentProtection)return t;var i=e.reduce(function(t,e){var i=n.contentProtection[e];return i&&i.pssh&&(t[e]={pssh:i.pssh}),t},{});return Object.keys(i).length&&t.push(i),t},[])}(i?r.concat([i]):r,Object.keys(n)).forEach(function(t){a.push(new Promise(function(t,n){e.tech_.one("keysessioncreated",t)})),s.push(new Promise(function(n,i){e.eme.initializeMediaKeys({keySystems:t},function(t){t?i(t):n()})}))}),Promise.race([Promise.all(s),Promise.race(a)])},Kl=function(t){var e=t.player,n=function(t,e,n){if(!t)return t;var i={};e&&e.attributes&&e.attributes.CODECS&&(i=Su(z(e.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);var r=W(i.video),s=W(i.audio),a={};for(var o in t)a[o]={},s&&(a[o].audioContentType=s),r&&(a[o].videoContentType=r),e.contentProtection&&e.contentProtection[o]&&e.contentProtection[o].pssh&&(a[o].pssh=e.contentProtection[o].pssh),"string"==typeof t[o]&&(a[o].url=t[o]);return Ra.mergeOptions(t,a)}(t.sourceKeySystems,t.media,t.audioMedia);return!!n&&(e.currentSource().keySystems=n,!(n&&!e.eme)||(Ra.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},jl=function(){if(!o.a.localStorage)return null;var t=o.a.localStorage.getItem("videojs-vhs");if(!t)return null;try{return JSON.parse(t)}catch(t){return null}};Rl.supportsNativeHls=function(){if(!l.a||!l.a.createElement)return!1;var t=l.a.createElement("video");if(!Ra.getTech("Html5").isSupported())return!1;return["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(e){return/maybe|probably/i.test(t.canPlayType(e))})}(),Rl.supportsNativeDash=!!(l.a&&l.a.createElement&&Ra.getTech("Html5").isSupported())&&/maybe|probably/i.test(l.a.createElement("video").canPlayType("application/dash+xml")),Rl.supportsTypeNatively=function(t){return"hls"===t?Rl.supportsNativeHls:"dash"===t&&Rl.supportsNativeDash},Rl.isSupported=function(){return Ra.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Vl=function(t){function e(e,n,i){var r;if(r=t.call(this,n,Ra.mergeOptions(i.hls,i.vhs))||this,i.hls&&Object.keys(i.hls).length&&Ra.log.warn("Using hls options is deprecated. Use vhs instead."),"number"==typeof i.initialBandwidth&&(r.options_.bandwidth=i.initialBandwidth),r.logger_=Va("VhsHandler"),n.options_&&n.options_.playerId){var s=Ra(n.options_.playerId);s.hasOwnProperty("hls")||Object.defineProperty(s,"hls",{get:function(){return Ra.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),d()(r)},configurable:!0}),s.hasOwnProperty("vhs")||Object.defineProperty(s,"vhs",{get:function(){return Ra.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),d()(r)},configurable:!0}),s.hasOwnProperty("dash")||Object.defineProperty(s,"dash",{get:function(){return Ra.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),d()(r)},configurable:!0}),r.player_=s}if(r.tech_=n,r.source_=e,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(l.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(t){var e=l.a.fullscreenElement||l.a.webkitFullscreenElement||l.a.mozFullScreenElement||l.a.msFullscreenElement;e&&e.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}p()(e,t);var n=e.prototype;return n.setOptions_=function(){var t=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=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!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 e=jl();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.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=Yo.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Yo.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS"].forEach(function(e){void 0!==t.source_[e]&&(t.options_[e]=t.source_[e])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(t,e){var n=this;if(t){var i;this.setOptions_(),this.options_.src=0===(i=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(i.substring(i.indexOf(",")+1)):i,this.options_.tech=this.tech_,this.options_.externVhs=Rl,this.options_.sourceType=J(e),this.options_.seekTo=function(t){n.tech_.setCurrentTime(t)},this.options_.smoothQualityChange&&Ra.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new Ol(this.options_);var r=Ra.mergeOptions({liveRangeSafeTimeDelta:.1},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new Ll(r),this.masterPlaylistController_.on("error",function(){var t=Ra.players[n.tech_.options_.playerId],e=n.masterPlaylistController_.error;"object"!=typeof e||e.code?"string"==typeof e&&(e={message:e,code:3}):e.code=3,t.error(e)});var s=this.options_.experimentalBufferBasedABR?Rl.movingAverageBandwidthSelector(.55):Rl.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Rl.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(t){this.masterPlaylistController_.selectPlaylist=t.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=t,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=t,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var t,e=1/(this.bandwidth||1);return t=this.throughput>0?1/this.throughput:0,Math.floor(1/(e+t))},set:function(){Ra.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 Xa(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 Xa(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&&function(t){if(!o.a.localStorage)return!1;var e=jl();e=e?Ra.mergeOptions(e,t):t;try{o.a.localStorage.setItem("videojs-vhs",JSON.stringify(e))}catch(t){return!1}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){var t;(t=n).representations=function(){var e=t.masterPlaylistController_.master(),n=fo(e)?t.masterPlaylistController_.getAudioTrackPlaylists_():e.playlists;return n?n.filter(function(t){return!oo(t)}).map(function(e,n){return new Ql(t,e,e.id)}):[]}}),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_=o.a.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.setupEme_=function(){var t=this,e=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=Kl({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});11!==Ra.browser.IE_VERSION&&n?(this.logger_("waiting for EME key session creation"),Ml({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){t.logger_("created EME key session"),t.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(e){t.logger_("error while creating EME key session",e),t.player_.error({message:"Failed to initialize media keys for EME",code:3})})):this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var t=this,e=Ra.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){var e,n;e=t.qualityLevels_,(n=t).representations().forEach(function(t){e.addQualityLevel(t)}),Hl(e,n.playlists)}),this.playlists.on("mediachange",function(){Hl(t.qualityLevels_,t.playlists)}))},e.version=function(){return{"@videojs/http-streaming":"2.9.2","mux.js":"5.12.2","mpd-parser":"0.17.0","m3u8-parser":"4.7.0","aes-decrypter":"3.1.2"}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return hl.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(t){this.masterPlaylistController_.setCurrentTime(t)},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_&&o.a.URL.revokeObjectURL&&(o.a.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),t.prototype.dispose.call(this)},n.convertToProgramTime=function(t,e){return Ko({playlist:this.masterPlaylistController_.media(),time:t,callback:e})},n.seekToProgramTime=function(t,e,n,i){return void 0===n&&(n=!0),void 0===i&&(i=2),jo({programTime:t,playlist:this.masterPlaylistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:e})},e}(Ra.getComponent("Component")),zl={name:"videojs-http-streaming",VERSION:"2.9.2",canHandleSource:function(t,e){void 0===e&&(e={});var n=Ra.mergeOptions(Ra.options,e);return zl.canPlayType(t.type,n)},handleSource:function(t,e,n){void 0===n&&(n={});var i=Ra.mergeOptions(Ra.options,n);return e.vhs=new Vl(t,e,i),Ra.hasOwnProperty("hls")||Object.defineProperty(e,"hls",{get:function(){return Ra.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),e.vhs},configurable:!0}),e.vhs.xhr=Fo(),e.vhs.src(t.src,t.type),e.vhs},canPlayType:function(t,e){void 0===e&&(e={});var n=Ra.mergeOptions(Ra.options,e).vhs.overrideNative,i=void 0===n?!Ra.browser.IS_ANY_SAFARI:n,r=J(t);return r&&(!Rl.supportsTypeNatively(r)||i)?"maybe":""}};G("avc1.4d400d,mp4a.40.2")&&Ra.getTech("Html5").registerSourceHandler(zl,0),Ra.VhsHandler=Vl,Object.defineProperty(Ra,"HlsHandler",{get:function(){return Ra.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),Vl},configurable:!0}),Ra.VhsSourceHandler=zl,Object.defineProperty(Ra,"HlsSourceHandler",{get:function(){return Ra.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),zl},configurable:!0}),Ra.Vhs=Rl,Object.defineProperty(Ra,"Hls",{get:function(){return Ra.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Rl},configurable:!0}),Ra.use||(Ra.registerComponent("Hls",Rl),Ra.registerComponent("Vhs",Rl)),Ra.options.vhs=Ra.options.vhs||{},Ra.options.hls=Ra.options.hls||{},Ra.registerPlugin?Ra.registerPlugin("reloadSourceOnError",Pl):Ra.plugin("reloadSourceOnError",Pl);e.a=Ra},"7+uW":function(t,e,n){"use strict";(function(t){
- /*!
- * Vue.js v2.6.12
- * (c) 2014-2020 Evan You
- * Released under the MIT License.
- */
- var n=Object.freeze({});function i(t){return void 0===t||null===t}function r(t){return void 0!==t&&null!==t}function s(t){return!0===t}function a(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function o(t){return null!==t&&"object"==typeof t}var u=Object.prototype.toString;function l(t){return"[object Object]"===u.call(t)}function c(t){return"[object RegExp]"===u.call(t)}function A(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return r(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function d(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function f(t){var e=parseFloat(t);return isNaN(e)?t:e}function p(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var g=p("slot,component",!0),m=p("key,ref,slot,slot-scope,is");function v(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function b(t,e){return y.call(t,e)}function _(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var w=/-(\w)/g,B=_(function(t){return t.replace(w,function(t,e){return e?e.toUpperCase():""})}),C=_(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),T=/\B([A-Z])/g,E=_(function(t){return t.replace(T,"-$1").toLowerCase()});var S=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function k(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}function x(t,e){for(var n in e)t[n]=e[n];return t}function U(t){for(var e={},n=0;n<t.length;n++)t[n]&&x(e,t[n]);return e}function I(t,e,n){}var F=function(t,e,n){return!1},O=function(t){return t};function Q(t,e){if(t===e)return!0;var n=o(t),i=o(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{var r=Array.isArray(t),s=Array.isArray(e);if(r&&s)return t.length===e.length&&t.every(function(t,n){return Q(t,e[n])});if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(r||s)return!1;var a=Object.keys(t),u=Object.keys(e);return a.length===u.length&&a.every(function(n){return Q(t[n],e[n])})}catch(t){return!1}}function N(t,e){for(var n=0;n<t.length;n++)if(Q(t[n],e))return n;return-1}function L(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var D="data-server-rendered",P=["component","directive","filter"],R=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],H={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:F,isReservedAttr:F,isUnknownElement:F,getTagNamespace:I,parsePlatformTagName:O,mustUseProp:F,async:!0,_lifecycleHooks:R},M=/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 K(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function j(t,e,n,i){Object.defineProperty(t,e,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var V=new RegExp("[^"+M.source+".$_\\d]");var z,$="__proto__"in{},W="undefined"!=typeof window,G="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,X=G&&WXEnvironment.platform.toLowerCase(),q=W&&window.navigator.userAgent.toLowerCase(),Y=q&&/msie|trident/.test(q),J=q&&q.indexOf("msie 9.0")>0,Z=q&&q.indexOf("edge/")>0,tt=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===X),et=(q&&/chrome\/\d+/.test(q),q&&/phantomjs/.test(q),q&&q.match(/firefox\/(\d+)/)),nt={}.watch,it=!1;if(W)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){it=!0}}),window.addEventListener("test-passive",null,rt)}catch(t){}var st=function(){return void 0===z&&(z=!W&&!G&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),z},at=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ot(t){return"function"==typeof t&&/native code/.test(t.toString())}var ut,lt="undefined"!=typeof Symbol&&ot(Symbol)&&"undefined"!=typeof Reflect&&ot(Reflect.ownKeys);ut="undefined"!=typeof Set&&ot(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ct=I,At=0,ht=function(){this.id=At++,this.subs=[]};ht.prototype.addSub=function(t){this.subs.push(t)},ht.prototype.removeSub=function(t){v(this.subs,t)},ht.prototype.depend=function(){ht.target&&ht.target.addDep(this)},ht.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},ht.target=null;var dt=[];function ft(t){dt.push(t),ht.target=t}function pt(){dt.pop(),ht.target=dt[dt.length-1]}var gt=function(t,e,n,i,r,s,a,o){this.tag=t,this.data=e,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=s,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,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=o,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},mt={child:{configurable:!0}};mt.child.get=function(){return this.componentInstance},Object.defineProperties(gt.prototype,mt);var vt=function(t){void 0===t&&(t="");var e=new gt;return e.text=t,e.isComment=!0,e};function yt(t){return new gt(void 0,void 0,void 0,String(t))}function bt(t){var e=new gt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var _t=Array.prototype,wt=Object.create(_t);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=_t[t];j(wt,t,function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];var r,s=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&a.observeArray(r),a.dep.notify(),s})});var Bt=Object.getOwnPropertyNames(wt),Ct=!0;function Tt(t){Ct=t}var Et=function(t){var e;this.value=t,this.dep=new ht,this.vmCount=0,j(t,"__ob__",this),Array.isArray(t)?($?(e=wt,t.__proto__=e):function(t,e,n){for(var i=0,r=n.length;i<r;i++){var s=n[i];j(t,s,e[s])}}(t,wt,Bt),this.observeArray(t)):this.walk(t)};function St(t,e){var n;if(o(t)&&!(t instanceof gt))return b(t,"__ob__")&&t.__ob__ instanceof Et?n=t.__ob__:Ct&&!st()&&(Array.isArray(t)||l(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Et(t)),e&&n&&n.vmCount++,n}function kt(t,e,n,i,r){var s=new ht,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var o=a&&a.get,u=a&&a.set;o&&!u||2!==arguments.length||(n=t[e]);var l=!r&&St(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=o?o.call(t):n;return ht.target&&(s.depend(),l&&(l.dep.depend(),Array.isArray(e)&&function t(e){for(var n=void 0,i=0,r=e.length;i<r;i++)(n=e[i])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&t(n)}(e))),e},set:function(e){var i=o?o.call(t):n;e===i||e!=e&&i!=i||o&&!u||(u?u.call(t,e):n=e,l=!r&&St(e),s.notify())}})}}function xt(t,e,n){if(Array.isArray(t)&&A(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var i=t.__ob__;return t._isVue||i&&i.vmCount?n:i?(kt(i.value,e,n),i.dep.notify(),n):(t[e]=n,n)}function Ut(t,e){if(Array.isArray(t)&&A(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||b(t,e)&&(delete t[e],n&&n.dep.notify())}}Et.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)kt(t,e[n])},Et.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)St(t[e])};var It=H.optionMergeStrategies;function Ft(t,e){if(!e)return t;for(var n,i,r,s=lt?Reflect.ownKeys(e):Object.keys(e),a=0;a<s.length;a++)"__ob__"!==(n=s[a])&&(i=t[n],r=e[n],b(t,n)?i!==r&&l(i)&&l(r)&&Ft(i,r):xt(t,n,r));return t}function Ot(t,e,n){return n?function(){var i="function"==typeof e?e.call(n,n):e,r="function"==typeof t?t.call(n,n):t;return i?Ft(i,r):r}:e?t?function(){return Ft("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function Qt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Nt(t,e,n,i){var r=Object.create(t||null);return e?x(r,e):r}It.data=function(t,e,n){return n?Ot(t,e,n):e&&"function"!=typeof e?t:Ot(t,e)},R.forEach(function(t){It[t]=Qt}),P.forEach(function(t){It[t+"s"]=Nt}),It.watch=function(t,e,n,i){if(t===nt&&(t=void 0),e===nt&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var r={};for(var s in x(r,t),e){var a=r[s],o=e[s];a&&!Array.isArray(a)&&(a=[a]),r[s]=a?a.concat(o):Array.isArray(o)?o:[o]}return r},It.props=It.methods=It.inject=It.computed=function(t,e,n,i){if(!t)return e;var r=Object.create(null);return x(r,t),e&&x(r,e),r},It.provide=Ot;var Lt=function(t,e){return void 0===e?t:e};function Dt(t,e,n){if("function"==typeof e&&(e=e.options),function(t,e){var n=t.props;if(n){var i,r,s={};if(Array.isArray(n))for(i=n.length;i--;)"string"==typeof(r=n[i])&&(s[B(r)]={type:null});else if(l(n))for(var a in n)r=n[a],s[B(a)]=l(r)?r:{type:r};t.props=s}}(e),function(t,e){var n=t.inject;if(n){var i=t.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 s in n){var a=n[s];i[s]=l(a)?x({from:s},a):{from:a}}}}(e),function(t){var e=t.directives;if(e)for(var n in e){var i=e[n];"function"==typeof i&&(e[n]={bind:i,update:i})}}(e),!e._base&&(e.extends&&(t=Dt(t,e.extends,n)),e.mixins))for(var i=0,r=e.mixins.length;i<r;i++)t=Dt(t,e.mixins[i],n);var s,a={};for(s in t)o(s);for(s in e)b(t,s)||o(s);function o(i){var r=It[i]||Lt;a[i]=r(t[i],e[i],n,i)}return a}function Pt(t,e,n,i){if("string"==typeof n){var r=t[e];if(b(r,n))return r[n];var s=B(n);if(b(r,s))return r[s];var a=C(s);return b(r,a)?r[a]:r[n]||r[s]||r[a]}}function Rt(t,e,n,i){var r=e[t],s=!b(n,t),a=n[t],o=Kt(Boolean,r.type);if(o>-1)if(s&&!b(r,"default"))a=!1;else if(""===a||a===E(t)){var u=Kt(String,r.type);(u<0||o<u)&&(a=!0)}if(void 0===a){a=function(t,e,n){if(!b(e,"default"))return;var i=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return"function"==typeof i&&"Function"!==Ht(e.type)?i.call(t):i}(i,r,t);var l=Ct;Tt(!0),St(a),Tt(l)}return a}function Ht(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Mt(t,e){return Ht(t)===Ht(e)}function Kt(t,e){if(!Array.isArray(e))return Mt(e,t)?0:-1;for(var n=0,i=e.length;n<i;n++)if(Mt(e[n],t))return n;return-1}function jt(t,e,n){ft();try{if(e)for(var i=e;i=i.$parent;){var r=i.$options.errorCaptured;if(r)for(var s=0;s<r.length;s++)try{if(!1===r[s].call(i,t,e,n))return}catch(t){zt(t,i,"errorCaptured hook")}}zt(t,e,n)}finally{pt()}}function Vt(t,e,n,i,r){var s;try{(s=n?t.apply(e,n):t.call(e))&&!s._isVue&&h(s)&&!s._handled&&(s.catch(function(t){return jt(t,i,r+" (Promise/async)")}),s._handled=!0)}catch(t){jt(t,i,r)}return s}function zt(t,e,n){if(H.errorHandler)try{return H.errorHandler.call(null,t,e,n)}catch(e){e!==t&&$t(e,null,"config.errorHandler")}$t(t,e,n)}function $t(t,e,n){if(!W&&!G||"undefined"==typeof console)throw t;console.error(t)}var Wt,Gt=!1,Xt=[],qt=!1;function Yt(){qt=!1;var t=Xt.slice(0);Xt.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&ot(Promise)){var Jt=Promise.resolve();Wt=function(){Jt.then(Yt),tt&&setTimeout(I)},Gt=!0}else if(Y||"undefined"==typeof MutationObserver||!ot(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Wt="undefined"!=typeof setImmediate&&ot(setImmediate)?function(){setImmediate(Yt)}:function(){setTimeout(Yt,0)};else{var Zt=1,te=new MutationObserver(Yt),ee=document.createTextNode(String(Zt));te.observe(ee,{characterData:!0}),Wt=function(){Zt=(Zt+1)%2,ee.data=String(Zt)},Gt=!0}function ne(t,e){var n;if(Xt.push(function(){if(t)try{t.call(e)}catch(t){jt(t,e,"nextTick")}else n&&n(e)}),qt||(qt=!0,Wt()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){n=t})}var ie=new ut;function re(t){!function t(e,n){var i,r;var s=Array.isArray(e);if(!s&&!o(e)||Object.isFrozen(e)||e instanceof gt)return;if(e.__ob__){var a=e.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(s)for(i=e.length;i--;)t(e[i],n);else for(r=Object.keys(e),i=r.length;i--;)t(e[r[i]],n)}(t,ie),ie.clear()}var se=_(function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),i="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=i?t.slice(1):t,once:n,capture:i,passive:e}});function ae(t,e){function n(){var t=arguments,i=n.fns;if(!Array.isArray(i))return Vt(i,null,arguments,e,"v-on handler");for(var r=i.slice(),s=0;s<r.length;s++)Vt(r[s],null,t,e,"v-on handler")}return n.fns=t,n}function oe(t,e,n,r,a,o){var u,l,c,A;for(u in t)l=t[u],c=e[u],A=se(u),i(l)||(i(c)?(i(l.fns)&&(l=t[u]=ae(l,o)),s(A.once)&&(l=t[u]=a(A.name,l,A.capture)),n(A.name,l,A.capture,A.passive,A.params)):l!==c&&(c.fns=l,t[u]=c));for(u in e)i(t[u])&&r((A=se(u)).name,e[u],A.capture)}function ue(t,e,n){var a;t instanceof gt&&(t=t.data.hook||(t.data.hook={}));var o=t[e];function u(){n.apply(this,arguments),v(a.fns,u)}i(o)?a=ae([u]):r(o.fns)&&s(o.merged)?(a=o).fns.push(u):a=ae([o,u]),a.merged=!0,t[e]=a}function le(t,e,n,i,s){if(r(e)){if(b(e,n))return t[n]=e[n],s||delete e[n],!0;if(b(e,i))return t[n]=e[i],s||delete e[i],!0}return!1}function ce(t){return a(t)?[yt(t)]:Array.isArray(t)?function t(e,n){var o=[];var u,l,c,A;for(u=0;u<e.length;u++)i(l=e[u])||"boolean"==typeof l||(c=o.length-1,A=o[c],Array.isArray(l)?l.length>0&&(Ae((l=t(l,(n||"")+"_"+u))[0])&&Ae(A)&&(o[c]=yt(A.text+l[0].text),l.shift()),o.push.apply(o,l)):a(l)?Ae(A)?o[c]=yt(A.text+l):""!==l&&o.push(yt(l)):Ae(l)&&Ae(A)?o[c]=yt(A.text+l.text):(s(e._isVList)&&r(l.tag)&&i(l.key)&&r(n)&&(l.key="__vlist"+n+"_"+u+"__"),o.push(l)));return o}(t):void 0}function Ae(t){return r(t)&&r(t.text)&&!1===t.isComment}function he(t,e){if(t){for(var n=Object.create(null),i=lt?Reflect.ownKeys(t):Object.keys(t),r=0;r<i.length;r++){var s=i[r];if("__ob__"!==s){for(var a=t[s].from,o=e;o;){if(o._provided&&b(o._provided,a)){n[s]=o._provided[a];break}o=o.$parent}if(!o)if("default"in t[s]){var u=t[s].default;n[s]="function"==typeof u?u.call(e):u}else 0}}return n}}function de(t,e){if(!t||!t.length)return{};for(var n={},i=0,r=t.length;i<r;i++){var s=t[i],a=s.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,s.context!==e&&s.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(s);else{var o=a.slot,u=n[o]||(n[o]=[]);"template"===s.tag?u.push.apply(u,s.children||[]):u.push(s)}}for(var l in n)n[l].every(fe)&&delete n[l];return n}function fe(t){return t.isComment&&!t.asyncFactory||" "===t.text}function pe(t,e,i){var r,s=Object.keys(e).length>0,a=t?!!t.$stable:!s,o=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&i&&i!==n&&o===i.$key&&!s&&!i.$hasNormal)return i;for(var u in r={},t)t[u]&&"$"!==u[0]&&(r[u]=ge(e,u,t[u]))}else r={};for(var l in e)l in r||(r[l]=me(e,l));return t&&Object.isExtensible(t)&&(t._normalized=r),j(r,"$stable",a),j(r,"$key",o),j(r,"$hasNormal",s),r}function ge(t,e,n){var i=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ce(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:i,enumerable:!0,configurable:!0}),i}function me(t,e){return function(){return t[e]}}function ve(t,e){var n,i,s,a,u;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),i=0,s=t.length;i<s;i++)n[i]=e(t[i],i);else if("number"==typeof t)for(n=new Array(t),i=0;i<t;i++)n[i]=e(i+1,i);else if(o(t))if(lt&&t[Symbol.iterator]){n=[];for(var l=t[Symbol.iterator](),c=l.next();!c.done;)n.push(e(c.value,n.length)),c=l.next()}else for(a=Object.keys(t),n=new Array(a.length),i=0,s=a.length;i<s;i++)u=a[i],n[i]=e(t[u],u,i);return r(n)||(n=[]),n._isVList=!0,n}function ye(t,e,n,i){var r,s=this.$scopedSlots[t];s?(n=n||{},i&&(n=x(x({},i),n)),r=s(n)||e):r=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},r):r}function be(t){return Pt(this.$options,"filters",t)||O}function _e(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function we(t,e,n,i,r){var s=H.keyCodes[e]||n;return r&&i&&!H.keyCodes[e]?_e(r,i):s?_e(s,t):i?E(i)!==e:void 0}function Be(t,e,n,i,r){if(n)if(o(n)){var s;Array.isArray(n)&&(n=U(n));var a=function(a){if("class"===a||"style"===a||m(a))s=t;else{var o=t.attrs&&t.attrs.type;s=i||H.mustUseProp(e,o,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var u=B(a),l=E(a);u in s||l in s||(s[a]=n[a],r&&((t.on||(t.on={}))["update:"+a]=function(t){n[a]=t}))};for(var u in n)a(u)}else;return t}function Ce(t,e){var n=this._staticTrees||(this._staticTrees=[]),i=n[t];return i&&!e?i:(Ee(i=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),i)}function Te(t,e,n){return Ee(t,"__once__"+e+(n?"_"+n:""),!0),t}function Ee(t,e,n){if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]&&"string"!=typeof t[i]&&Se(t[i],e+"_"+i,n);else Se(t,e,n)}function Se(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function ke(t,e){if(e)if(l(e)){var n=t.on=t.on?x({},t.on):{};for(var i in e){var r=n[i],s=e[i];n[i]=r?[].concat(r,s):s}}else;return t}function xe(t,e,n,i){e=e||{$stable:!n};for(var r=0;r<t.length;r++){var s=t[r];Array.isArray(s)?xe(s,e,n):s&&(s.proxy&&(s.fn.proxy=!0),e[s.key]=s.fn)}return i&&(e.$key=i),e}function Ue(t,e){for(var n=0;n<e.length;n+=2){var i=e[n];"string"==typeof i&&i&&(t[e[n]]=e[n+1])}return t}function Ie(t,e){return"string"==typeof t?e+t:t}function Fe(t){t._o=Te,t._n=f,t._s=d,t._l=ve,t._t=ye,t._q=Q,t._i=N,t._m=Ce,t._f=be,t._k=we,t._b=Be,t._v=yt,t._e=vt,t._u=xe,t._g=ke,t._d=Ue,t._p=Ie}function Oe(t,e,i,r,a){var o,u=this,l=a.options;b(r,"_uid")?(o=Object.create(r))._original=r:(o=r,r=r._original);var c=s(l._compiled),A=!c;this.data=t,this.props=e,this.children=i,this.parent=r,this.listeners=t.on||n,this.injections=he(l.inject,r),this.slots=function(){return u.$slots||pe(t.scopedSlots,u.$slots=de(i,r)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return pe(t.scopedSlots,this.slots())}}),c&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=pe(t.scopedSlots,this.$slots)),l._scopeId?this._c=function(t,e,n,i){var s=Ke(o,t,e,n,i,A);return s&&!Array.isArray(s)&&(s.fnScopeId=l._scopeId,s.fnContext=r),s}:this._c=function(t,e,n,i){return Ke(o,t,e,n,i,A)}}function Qe(t,e,n,i,r){var s=bt(t);return s.fnContext=n,s.fnOptions=i,e.slot&&((s.data||(s.data={})).slot=e.slot),s}function Ne(t,e){for(var n in e)t[B(n)]=e[n]}Fe(Oe.prototype);var Le={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Le.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},i=t.data.inlineTemplate;r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,Je)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var i=e.componentOptions;!function(t,e,i,r,s){0;var a=r.data.scopedSlots,o=t.$scopedSlots,u=!!(a&&!a.$stable||o!==n&&!o.$stable||a&&t.$scopedSlots.$key!==a.$key),l=!!(s||t.$options._renderChildren||u);t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r);if(t.$options._renderChildren=s,t.$attrs=r.data.attrs||n,t.$listeners=i||n,e&&t.$options.props){Tt(!1);for(var c=t._props,A=t.$options._propKeys||[],h=0;h<A.length;h++){var d=A[h],f=t.$options.props;c[d]=Rt(d,f,e,t)}Tt(!0),t.$options.propsData=e}i=i||n;var p=t.$options._parentListeners;t.$options._parentListeners=i,Ye(t,i,p),l&&(t.$slots=de(s,r.context),t.$forceUpdate());0}(e.componentInstance=t.componentInstance,i.propsData,i.listeners,e,i.children)},insert:function(t){var e,n=t.context,i=t.componentInstance;i._isMounted||(i._isMounted=!0,nn(i,"mounted")),t.data.keepAlive&&(n._isMounted?((e=i)._inactive=!1,sn.push(e)):en(i,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(n&&(e._directInactive=!0,tn(e)))return;if(!e._inactive){e._inactive=!0;for(var i=0;i<e.$children.length;i++)t(e.$children[i]);nn(e,"deactivated")}}(e,!0):e.$destroy())}},De=Object.keys(Le);function Pe(t,e,a,u,l){if(!i(t)){var c=a.$options._base;if(o(t)&&(t=c.extend(t)),"function"==typeof t){var A;if(i(t.cid)&&void 0===(t=function(t,e){if(s(t.error)&&r(t.errorComp))return t.errorComp;if(r(t.resolved))return t.resolved;var n=Ve;n&&r(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n);if(s(t.loading)&&r(t.loadingComp))return t.loadingComp;if(n&&!r(t.owners)){var a=t.owners=[n],u=!0,l=null,c=null;n.$on("hook:destroyed",function(){return v(a,n)});var A=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==l&&(clearTimeout(l),l=null),null!==c&&(clearTimeout(c),c=null))},d=L(function(n){t.resolved=ze(n,e),u?a.length=0:A(!0)}),f=L(function(e){r(t.errorComp)&&(t.error=!0,A(!0))}),p=t(d,f);return o(p)&&(h(p)?i(t.resolved)&&p.then(d,f):h(p.component)&&(p.component.then(d,f),r(p.error)&&(t.errorComp=ze(p.error,e)),r(p.loading)&&(t.loadingComp=ze(p.loading,e),0===p.delay?t.loading=!0:l=setTimeout(function(){l=null,i(t.resolved)&&i(t.error)&&(t.loading=!0,A(!1))},p.delay||200)),r(p.timeout)&&(c=setTimeout(function(){c=null,i(t.resolved)&&f(null)},p.timeout)))),u=!1,t.loading?t.loadingComp:t.resolved}}(A=t,c)))return function(t,e,n,i,r){var s=vt();return s.asyncFactory=t,s.asyncMeta={data:e,context:n,children:i,tag:r},s}(A,e,a,u,l);e=e||{},Tn(t),r(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",i=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var s=e.on||(e.on={}),a=s[i],o=e.model.callback;r(a)?(Array.isArray(a)?-1===a.indexOf(o):a!==o)&&(s[i]=[o].concat(a)):s[i]=o}(t.options,e);var d=function(t,e,n){var s=e.options.props;if(!i(s)){var a={},o=t.attrs,u=t.props;if(r(o)||r(u))for(var l in s){var c=E(l);le(a,u,l,c,!0)||le(a,o,l,c,!1)}return a}}(e,t);if(s(t.options.functional))return function(t,e,i,s,a){var o=t.options,u={},l=o.props;if(r(l))for(var c in l)u[c]=Rt(c,l,e||n);else r(i.attrs)&&Ne(u,i.attrs),r(i.props)&&Ne(u,i.props);var A=new Oe(i,u,a,s,t),h=o.render.call(null,A._c,A);if(h instanceof gt)return Qe(h,i,A.parent,o);if(Array.isArray(h)){for(var d=ce(h)||[],f=new Array(d.length),p=0;p<d.length;p++)f[p]=Qe(d[p],i,A.parent,o);return f}}(t,d,e,a,u);var f=e.on;if(e.on=e.nativeOn,s(t.options.abstract)){var p=e.slot;e={},p&&(e.slot=p)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<De.length;n++){var i=De[n],r=e[i],s=Le[i];r===s||r&&r._merged||(e[i]=r?Re(s,r):s)}}(e);var g=t.options.name||l;return new gt("vue-component-"+t.cid+(g?"-"+g:""),e,void 0,void 0,void 0,a,{Ctor:t,propsData:d,listeners:f,tag:l,children:u},A)}}}function Re(t,e){var n=function(n,i){t(n,i),e(n,i)};return n._merged=!0,n}var He=1,Me=2;function Ke(t,e,n,u,l,c){return(Array.isArray(n)||a(n))&&(l=u,u=n,n=void 0),s(c)&&(l=Me),function(t,e,n,a,u){if(r(n)&&r(n.__ob__))return vt();r(n)&&r(n.is)&&(e=n.is);if(!e)return vt();0;Array.isArray(a)&&"function"==typeof a[0]&&((n=n||{}).scopedSlots={default:a[0]},a.length=0);u===Me?a=ce(a):u===He&&(a=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(a));var l,c;if("string"==typeof e){var A;c=t.$vnode&&t.$vnode.ns||H.getTagNamespace(e),l=H.isReservedTag(e)?new gt(H.parsePlatformTagName(e),n,a,void 0,void 0,t):n&&n.pre||!r(A=Pt(t.$options,"components",e))?new gt(e,n,a,void 0,void 0,t):Pe(A,n,t,a,e)}else l=Pe(e,n,t,a);return Array.isArray(l)?l:r(l)?(r(c)&&function t(e,n,a){e.ns=n;"foreignObject"===e.tag&&(n=void 0,a=!0);if(r(e.children))for(var o=0,u=e.children.length;o<u;o++){var l=e.children[o];r(l.tag)&&(i(l.ns)||s(a)&&"svg"!==l.tag)&&t(l,n,a)}}(l,c),r(n)&&function(t){o(t.style)&&re(t.style);o(t.class)&&re(t.class)}(n),l):vt()}(t,e,n,u,l)}var je,Ve=null;function ze(t,e){return(t.__esModule||lt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),o(t)?e.extend(t):t}function $e(t){return t.isComment&&t.asyncFactory}function We(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(r(n)&&(r(n.componentOptions)||$e(n)))return n}}function Ge(t,e){je.$on(t,e)}function Xe(t,e){je.$off(t,e)}function qe(t,e){var n=je;return function i(){null!==e.apply(null,arguments)&&n.$off(t,i)}}function Ye(t,e,n){je=t,oe(e,n||{},Ge,Xe,qe,t),je=void 0}var Je=null;function Ze(t){var e=Je;return Je=t,function(){Je=e}}function tn(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function en(t,e){if(e){if(t._directInactive=!1,tn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)en(t.$children[n]);nn(t,"activated")}}function nn(t,e){ft();var n=t.$options[e],i=e+" hook";if(n)for(var r=0,s=n.length;r<s;r++)Vt(n[r],t,null,t,i);t._hasHookEvent&&t.$emit("hook:"+e),pt()}var rn=[],sn=[],an={},on=!1,un=!1,ln=0;var cn=0,An=Date.now;if(W&&!Y){var hn=window.performance;hn&&"function"==typeof hn.now&&An()>document.createEvent("Event").timeStamp&&(An=function(){return hn.now()})}function dn(){var t,e;for(cn=An(),un=!0,rn.sort(function(t,e){return t.id-e.id}),ln=0;ln<rn.length;ln++)(t=rn[ln]).before&&t.before(),e=t.id,an[e]=null,t.run();var n=sn.slice(),i=rn.slice();ln=rn.length=sn.length=0,an={},on=un=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,en(t[e],!0)}(n),function(t){var e=t.length;for(;e--;){var n=t[e],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&nn(i,"updated")}}(i),at&&H.devtools&&at.emit("flush")}var fn=0,pn=function(t,e,n,i,r){this.vm=t,r&&(t._watcher=this),t._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=++fn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ut,this.newDepIds=new ut,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(t){if(!V.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=I)),this.value=this.lazy?void 0:this.get()};pn.prototype.get=function(){var t;ft(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;jt(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&re(t),pt(),this.cleanupDeps()}return t},pn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},pn.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.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},pn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==an[e]){if(an[e]=!0,un){for(var n=rn.length-1;n>ln&&rn[n].id>t.id;)n--;rn.splice(n+1,0,t)}else rn.push(t);on||(on=!0,ne(dn))}}(this)},pn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||o(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){jt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},pn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},pn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},pn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var gn={enumerable:!0,configurable:!0,get:I,set:I};function mn(t,e,n){gn.get=function(){return this[e][n]},gn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,gn)}function vn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[],s=!t.$parent;s||Tt(!1);var a=function(s){r.push(s);var a=Rt(s,e,n,t);kt(i,s,a),s in t||mn(t,"_props",s)};for(var o in e)a(o);Tt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?I:S(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;l(e=t._data="function"==typeof e?function(t,e){ft();try{return t.call(e,e)}catch(t){return jt(t,e,"data()"),{}}finally{pt()}}(e,t):e||{})||(e={});var n=Object.keys(e),i=t.$options.props,r=(t.$options.methods,n.length);for(;r--;){var s=n[r];0,i&&b(i,s)||K(s)||mn(t,"_data",s)}St(e,!0)}(t):St(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),i=st();for(var r in e){var s=e[r],a="function"==typeof s?s:s.get;0,i||(n[r]=new pn(t,a||I,I,yn)),r in t||bn(t,r,s)}}(t,e.computed),e.watch&&e.watch!==nt&&function(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)Bn(t,n,i[r]);else Bn(t,n,i)}}(t,e.watch)}var yn={lazy:!0};function bn(t,e,n){var i=!st();"function"==typeof n?(gn.get=i?_n(e):wn(n),gn.set=I):(gn.get=n.get?i&&!1!==n.cache?_n(e):wn(n.get):I,gn.set=n.set||I),Object.defineProperty(t,e,gn)}function _n(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ht.target&&e.depend(),e.value}}function wn(t){return function(){return t.call(this,this)}}function Bn(t,e,n,i){return l(n)&&(i=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,i)}var Cn=0;function Tn(t){var e=t.options;if(t.super){var n=Tn(t.super);if(n!==t.superOptions){t.superOptions=n;var i=function(t){var e,n=t.options,i=t.sealedOptions;for(var r in n)n[r]!==i[r]&&(e||(e={}),e[r]=n[r]);return e}(t);i&&x(t.extendOptions,i),(e=t.options=Dt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function En(t){this._init(t)}function Sn(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var s=t.name||n.options.name;var a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=Dt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)mn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)bn(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,P.forEach(function(t){a[t]=n[t]}),s&&(a.options.components[s]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=x({},a.options),r[i]=a,a}}function kn(t){return t&&(t.Ctor.options.name||t.tag)}function xn(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!c(t)&&t.test(e)}function Un(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var s in n){var a=n[s];if(a){var o=kn(a.componentOptions);o&&!e(o)&&In(n,s,i,r)}}}function In(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,v(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Cn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),i=e._parentVnode;n.parent=e.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Dt(Tn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ye(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,i=t.$vnode=e._parentVnode,r=i&&i.context;t.$slots=de(e._renderChildren,r),t.$scopedSlots=n,t._c=function(e,n,i,r){return Ke(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return Ke(t,e,n,i,r,!0)};var s=i&&i.data;kt(t,"$attrs",s&&s.attrs||n,null,!0),kt(t,"$listeners",e._parentListeners||n,null,!0)}(e),nn(e,"beforeCreate"),function(t){var e=he(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach(function(n){kt(t,n,e[n])}),Tt(!0))}(e),vn(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),nn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(En),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=xt,t.prototype.$delete=Ut,t.prototype.$watch=function(t,e,n){if(l(e))return Bn(this,t,e,n);(n=n||{}).user=!0;var i=new pn(this,t,e,n);if(n.immediate)try{e.call(this,i.value)}catch(t){jt(t,this,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}(En),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var i=this;if(Array.isArray(t))for(var r=0,s=t.length;r<s;r++)i.$on(t[r],n);else(i._events[t]||(i._events[t]=[])).push(n),e.test(t)&&(i._hasHookEvent=!0);return i},t.prototype.$once=function(t,e){var n=this;function i(){n.$off(t,i),e.apply(n,arguments)}return i.fn=e,n.$on(t,i),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var i=0,r=t.length;i<r;i++)n.$off(t[i],e);return n}var s,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;for(var o=a.length;o--;)if((s=a[o])===e||s.fn===e){a.splice(o,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?k(n):n;for(var i=k(arguments,1),r='event handler for "'+t+'"',s=0,a=n.length;s<a;s++)Vt(n[s],e,i,e,r)}return e}}(En),function(t){t.prototype._update=function(t,e){var n=this,i=n.$el,r=n._vnode,s=Ze(n);n._vnode=t,n.$el=r?n.__patch__(r,t):n.__patch__(n.$el,t,e,!1),s(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){nn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||v(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),nn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(En),function(t){Fe(t.prototype),t.prototype.$nextTick=function(t){return ne(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,i=n.render,r=n._parentVnode;r&&(e.$scopedSlots=pe(r.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=r;try{Ve=e,t=i.call(e._renderProxy,e.$createElement)}catch(n){jt(n,e,"render"),t=e._vnode}finally{Ve=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof gt||(t=vt()),t.parent=r,t}}(En);var Fn=[String,RegExp,Array],On={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Fn,exclude:Fn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)In(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",function(e){Un(t,function(t){return xn(e,t)})}),this.$watch("exclude",function(e){Un(t,function(t){return!xn(e,t)})})},render:function(){var t=this.$slots.default,e=We(t),n=e&&e.componentOptions;if(n){var i=kn(n),r=this.include,s=this.exclude;if(r&&(!i||!xn(r,i))||s&&i&&xn(s,i))return e;var a=this.cache,o=this.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;a[u]?(e.componentInstance=a[u].componentInstance,v(o,u),o.push(u)):(a[u]=e,o.push(u),this.max&&o.length>parseInt(this.max)&&In(a,o[0],o,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ct,extend:x,mergeOptions:Dt,defineReactive:kt},t.set=xt,t.delete=Ut,t.nextTick=ne,t.observable=function(t){return St(t),t},t.options=Object.create(null),P.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,x(t.options.components,On),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=k(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Dt(this.options,t),this}}(t),Sn(t),function(t){P.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}(t)}(En),Object.defineProperty(En.prototype,"$isServer",{get:st}),Object.defineProperty(En.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(En,"FunctionalRenderContext",{value:Oe}),En.version="2.6.12";var Qn=p("style,class"),Nn=p("input,textarea,option,select,progress"),Ln=function(t,e,n){return"value"===n&&Nn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Dn=p("contenteditable,draggable,spellcheck"),Pn=p("events,caret,typing,plaintext-only"),Rn=function(t,e){return Vn(e)||"false"===e?"false":"contenteditable"===t&&Pn(e)?e:"true"},Hn=p("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"),Mn="http://www.w3.org/1999/xlink",Kn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},jn=function(t){return Kn(t)?t.slice(6,t.length):""},Vn=function(t){return null==t||!1===t};function zn(t){for(var e=t.data,n=t,i=t;r(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(e=$n(i.data,e));for(;r(n=n.parent);)n&&n.data&&(e=$n(e,n.data));return function(t,e){if(r(t)||r(e))return Wn(t,Gn(e));return""}(e.staticClass,e.class)}function $n(t,e){return{staticClass:Wn(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function Wn(t,e){return t?e?t+" "+e:t:e||""}function Gn(t){return Array.isArray(t)?function(t){for(var e,n="",i=0,s=t.length;i<s;i++)r(e=Gn(t[i]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):o(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var Xn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},qn=p("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"),Yn=p("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),Jn=function(t){return qn(t)||Yn(t)};function Zn(t){return Yn(t)?"svg":"math"===t?"math":void 0}var ti=Object.create(null);var ei=p("text,number,password,search,email,tel,url");function ni(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}var ii=Object.freeze({createElement:function(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(t,e){return document.createElementNS(Xn[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),ri={create:function(t,e){si(e)},update:function(t,e){t.data.ref!==e.data.ref&&(si(t,!0),si(e))},destroy:function(t){si(t,!0)}};function si(t,e){var n=t.data.ref;if(r(n)){var i=t.context,s=t.componentInstance||t.elm,a=i.$refs;e?Array.isArray(a[n])?v(a[n],s):a[n]===s&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(s)<0&&a[n].push(s):a[n]=[s]:a[n]=s}}var ai=new gt("",{},[]),oi=["create","activate","update","remove","destroy"];function ui(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,i=r(n=t.data)&&r(n=n.attrs)&&n.type,s=r(n=e.data)&&r(n=n.attrs)&&n.type;return i===s||ei(i)&&ei(s)}(t,e)||s(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&i(e.asyncFactory.error))}function li(t,e,n){var i,s,a={};for(i=e;i<=n;++i)r(s=t[i].key)&&(a[s]=i);return a}var ci={create:Ai,update:Ai,destroy:function(t){Ai(t,ai)}};function Ai(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,i,r,s=t===ai,a=e===ai,o=di(t.data.directives,t.context),u=di(e.data.directives,e.context),l=[],c=[];for(n in u)i=o[n],r=u[n],i?(r.oldValue=i.value,r.oldArg=i.arg,pi(r,"update",e,t),r.def&&r.def.componentUpdated&&c.push(r)):(pi(r,"bind",e,t),r.def&&r.def.inserted&&l.push(r));if(l.length){var A=function(){for(var n=0;n<l.length;n++)pi(l[n],"inserted",e,t)};s?ue(e,"insert",A):A()}c.length&&ue(e,"postpatch",function(){for(var n=0;n<c.length;n++)pi(c[n],"componentUpdated",e,t)});if(!s)for(n in o)u[n]||pi(o[n],"unbind",t,t,a)}(t,e)}var hi=Object.create(null);function di(t,e){var n,i,r=Object.create(null);if(!t)return r;for(n=0;n<t.length;n++)(i=t[n]).modifiers||(i.modifiers=hi),r[fi(i)]=i,i.def=Pt(e.$options,"directives",i.name);return r}function fi(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function pi(t,e,n,i,r){var s=t.def&&t.def[e];if(s)try{s(n.elm,t,n,i,r)}catch(i){jt(i,n.context,"directive "+t.name+" "+e+" hook")}}var gi=[ri,ci];function mi(t,e){var n=e.componentOptions;if(!(r(n)&&!1===n.Ctor.options.inheritAttrs||i(t.data.attrs)&&i(e.data.attrs))){var s,a,o=e.elm,u=t.data.attrs||{},l=e.data.attrs||{};for(s in r(l.__ob__)&&(l=e.data.attrs=x({},l)),l)a=l[s],u[s]!==a&&vi(o,s,a);for(s in(Y||Z)&&l.value!==u.value&&vi(o,"value",l.value),u)i(l[s])&&(Kn(s)?o.removeAttributeNS(Mn,jn(s)):Dn(s)||o.removeAttribute(s))}}function vi(t,e,n){t.tagName.indexOf("-")>-1?yi(t,e,n):Hn(e)?Vn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Dn(e)?t.setAttribute(e,Rn(e,n)):Kn(e)?Vn(n)?t.removeAttributeNS(Mn,jn(e)):t.setAttributeNS(Mn,e,n):yi(t,e,n)}function yi(t,e,n){if(Vn(n))t.removeAttribute(e);else{if(Y&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var bi={create:mi,update:mi};function _i(t,e){var n=e.elm,s=e.data,a=t.data;if(!(i(s.staticClass)&&i(s.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var o=zn(e),u=n._transitionClasses;r(u)&&(o=Wn(o,Gn(u))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var wi,Bi,Ci,Ti,Ei,Si,ki={create:_i,update:_i},xi=/[\w).+\-_$\]]/;function Ui(t){var e,n,i,r,s,a=!1,o=!1,u=!1,l=!1,c=0,A=0,h=0,d=0;for(i=0;i<t.length;i++)if(n=e,e=t.charCodeAt(i),a)39===e&&92!==n&&(a=!1);else if(o)34===e&&92!==n&&(o=!1);else if(u)96===e&&92!==n&&(u=!1);else if(l)47===e&&92!==n&&(l=!1);else if(124!==e||124===t.charCodeAt(i+1)||124===t.charCodeAt(i-1)||c||A||h){switch(e){case 34:o=!0;break;case 39:a=!0;break;case 96:u=!0;break;case 40:h++;break;case 41:h--;break;case 91:A++;break;case 93:A--;break;case 123:c++;break;case 125:c--}if(47===e){for(var f=i-1,p=void 0;f>=0&&" "===(p=t.charAt(f));f--);p&&xi.test(p)||(l=!0)}}else void 0===r?(d=i+1,r=t.slice(0,i).trim()):g();function g(){(s||(s=[])).push(t.slice(d,i).trim()),d=i+1}if(void 0===r?r=t.slice(0,i).trim():0!==d&&g(),s)for(i=0;i<s.length;i++)r=Ii(r,s[i]);return r}function Ii(t,e){var n=e.indexOf("(");if(n<0)return'_f("'+e+'")('+t+")";var i=e.slice(0,n),r=e.slice(n+1);return'_f("'+i+'")('+t+(")"!==r?","+r:r)}function Fi(t,e){console.error("[Vue compiler]: "+t)}function Oi(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function Qi(t,e,n,i,r){(t.props||(t.props=[])).push(Vi({name:e,value:n,dynamic:r},i)),t.plain=!1}function Ni(t,e,n,i,r){(r?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push(Vi({name:e,value:n,dynamic:r},i)),t.plain=!1}function Li(t,e,n,i){t.attrsMap[e]=n,t.attrsList.push(Vi({name:e,value:n},i))}function Di(t,e,n,i,r,s,a,o){(t.directives||(t.directives=[])).push(Vi({name:e,rawName:n,value:i,arg:r,isDynamicArg:s,modifiers:a},o)),t.plain=!1}function Pi(t,e,n){return n?"_p("+e+',"'+t+'")':t+e}function Ri(t,e,i,r,s,a,o,u){var l;(r=r||n).right?u?e="("+e+")==='click'?'contextmenu':("+e+")":"click"===e&&(e="contextmenu",delete r.right):r.middle&&(u?e="("+e+")==='click'?'mouseup':("+e+")":"click"===e&&(e="mouseup")),r.capture&&(delete r.capture,e=Pi("!",e,u)),r.once&&(delete r.once,e=Pi("~",e,u)),r.passive&&(delete r.passive,e=Pi("&",e,u)),r.native?(delete r.native,l=t.nativeEvents||(t.nativeEvents={})):l=t.events||(t.events={});var c=Vi({value:i.trim(),dynamic:u},o);r!==n&&(c.modifiers=r);var A=l[e];Array.isArray(A)?s?A.unshift(c):A.push(c):l[e]=A?s?[c,A]:[A,c]:c,t.plain=!1}function Hi(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}function Mi(t,e,n){var i=Ki(t,":"+e)||Ki(t,"v-bind:"+e);if(null!=i)return Ui(i);if(!1!==n){var r=Ki(t,e);if(null!=r)return JSON.stringify(r)}}function Ki(t,e,n){var i;if(null!=(i=t.attrsMap[e]))for(var r=t.attrsList,s=0,a=r.length;s<a;s++)if(r[s].name===e){r.splice(s,1);break}return n&&delete t.attrsMap[e],i}function ji(t,e){for(var n=t.attrsList,i=0,r=n.length;i<r;i++){var s=n[i];if(e.test(s.name))return n.splice(i,1),s}}function Vi(t,e){return e&&(null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end)),t}function zi(t,e,n){var i=n||{},r=i.number,s="$$v";i.trim&&(s="(typeof $$v === 'string'? $$v.trim(): $$v)"),r&&(s="_n("+s+")");var a=$i(e,s);t.model={value:"("+e+")",expression:JSON.stringify(e),callback:"function ($$v) {"+a+"}"}}function $i(t,e){var n=function(t){if(t=t.trim(),wi=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<wi-1)return(Ti=t.lastIndexOf("."))>-1?{exp:t.slice(0,Ti),key:'"'+t.slice(Ti+1)+'"'}:{exp:t,key:null};Bi=t,Ti=Ei=Si=0;for(;!Gi();)Xi(Ci=Wi())?Yi(Ci):91===Ci&&qi(Ci);return{exp:t.slice(0,Ei),key:t.slice(Ei+1,Si)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Wi(){return Bi.charCodeAt(++Ti)}function Gi(){return Ti>=wi}function Xi(t){return 34===t||39===t}function qi(t){var e=1;for(Ei=Ti;!Gi();)if(Xi(t=Wi()))Yi(t);else if(91===t&&e++,93===t&&e--,0===e){Si=Ti;break}}function Yi(t){for(var e=t;!Gi()&&(t=Wi())!==e;);}var Ji,Zi="__r",tr="__c";function er(t,e,n){var i=Ji;return function r(){null!==e.apply(null,arguments)&&rr(t,r,n,i)}}var nr=Gt&&!(et&&Number(et[1])<=53);function ir(t,e,n,i){if(nr){var r=cn,s=e;e=s._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return s.apply(this,arguments)}}Ji.addEventListener(t,e,it?{capture:n,passive:i}:n)}function rr(t,e,n,i){(i||Ji).removeEventListener(t,e._wrapper||e,n)}function sr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},s=t.data.on||{};Ji=e.elm,function(t){if(r(t[Zi])){var e=Y?"change":"input";t[e]=[].concat(t[Zi],t[e]||[]),delete t[Zi]}r(t[tr])&&(t.change=[].concat(t[tr],t.change||[]),delete t[tr])}(n),oe(n,s,ir,rr,er,e.context),Ji=void 0}}var ar,or={create:sr,update:sr};function ur(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,s,a=e.elm,o=t.data.domProps||{},u=e.data.domProps||{};for(n in r(u.__ob__)&&(u=e.data.domProps=x({},u)),o)n in u||(a[n]="");for(n in u){if(s=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),s===o[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=s;var l=i(s)?"":String(s);lr(a,l)&&(a.value=l)}else if("innerHTML"===n&&Yn(a.tagName)&&i(a.innerHTML)){(ar=ar||document.createElement("div")).innerHTML="<svg>"+s+"</svg>";for(var c=ar.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;c.firstChild;)a.appendChild(c.firstChild)}else if(s!==o[n])try{a[n]=s}catch(t){}}}}function lr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,i=t._vModifiers;if(r(i)){if(i.number)return f(n)!==f(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var cr={create:ur,update:ur},Ar=_(function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var i=t.split(n);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e});function hr(t){var e=dr(t.style);return t.staticStyle?x(t.staticStyle,e):e}function dr(t){return Array.isArray(t)?U(t):"string"==typeof t?Ar(t):t}var fr,pr=/^--/,gr=/\s*!important$/,mr=function(t,e,n){if(pr.test(e))t.style.setProperty(e,n);else if(gr.test(n))t.style.setProperty(E(e),n.replace(gr,""),"important");else{var i=yr(e);if(Array.isArray(n))for(var r=0,s=n.length;r<s;r++)t.style[i]=n[r];else t.style[i]=n}},vr=["Webkit","Moz","ms"],yr=_(function(t){if(fr=fr||document.createElement("div").style,"filter"!==(t=B(t))&&t in fr)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<vr.length;n++){var i=vr[n]+e;if(i in fr)return i}});function br(t,e){var n=e.data,s=t.data;if(!(i(n.staticStyle)&&i(n.style)&&i(s.staticStyle)&&i(s.style))){var a,o,u=e.elm,l=s.staticStyle,c=s.normalizedStyle||s.style||{},A=l||c,h=dr(e.data.style)||{};e.data.normalizedStyle=r(h.__ob__)?x({},h):h;var d=function(t,e){var n,i={};if(e)for(var r=t;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(n=hr(r.data))&&x(i,n);(n=hr(t.data))&&x(i,n);for(var s=t;s=s.parent;)s.data&&(n=hr(s.data))&&x(i,n);return i}(e,!0);for(o in A)i(d[o])&&mr(u,o,"");for(o in d)(a=d[o])!==A[o]&&mr(u,o,null==a?"":a)}}var _r={create:br,update:br},wr=/\s+/;function Br(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wr).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Cr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wr).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Tr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&x(e,Er(t.name||"v")),x(e,t),e}return"string"==typeof t?Er(t):void 0}}var Er=_(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),Sr=W&&!J,kr="transition",xr="animation",Ur="transition",Ir="transitionend",Fr="animation",Or="animationend";Sr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ur="WebkitTransition",Ir="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Fr="WebkitAnimation",Or="webkitAnimationEnd"));var Qr=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Nr(t){Qr(function(){Qr(t)})}function Lr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Br(t,e))}function Dr(t,e){t._transitionClasses&&v(t._transitionClasses,e),Cr(t,e)}function Pr(t,e,n){var i=Hr(t,e),r=i.type,s=i.timeout,a=i.propCount;if(!r)return n();var o=r===kr?Ir:Or,u=0,l=function(){t.removeEventListener(o,c),n()},c=function(e){e.target===t&&++u>=a&&l()};setTimeout(function(){u<a&&l()},s+1),t.addEventListener(o,c)}var Rr=/\b(transform|all)(,|$)/;function Hr(t,e){var n,i=window.getComputedStyle(t),r=(i[Ur+"Delay"]||"").split(", "),s=(i[Ur+"Duration"]||"").split(", "),a=Mr(r,s),o=(i[Fr+"Delay"]||"").split(", "),u=(i[Fr+"Duration"]||"").split(", "),l=Mr(o,u),c=0,A=0;return e===kr?a>0&&(n=kr,c=a,A=s.length):e===xr?l>0&&(n=xr,c=l,A=u.length):A=(n=(c=Math.max(a,l))>0?a>l?kr:xr:null)?n===kr?s.length:u.length:0,{type:n,timeout:c,propCount:A,hasTransform:n===kr&&Rr.test(i[Ur+"Property"])}}function Mr(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return Kr(e)+Kr(t[n])}))}function Kr(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function jr(t,e){var n=t.elm;r(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var s=Tr(t.data.transition);if(!i(s)&&!r(n._enterCb)&&1===n.nodeType){for(var a=s.css,u=s.type,l=s.enterClass,c=s.enterToClass,A=s.enterActiveClass,h=s.appearClass,d=s.appearToClass,p=s.appearActiveClass,g=s.beforeEnter,m=s.enter,v=s.afterEnter,y=s.enterCancelled,b=s.beforeAppear,_=s.appear,w=s.afterAppear,B=s.appearCancelled,C=s.duration,T=Je,E=Je.$vnode;E&&E.parent;)T=E.context,E=E.parent;var S=!T._isMounted||!t.isRootInsert;if(!S||_||""===_){var k=S&&h?h:l,x=S&&p?p:A,U=S&&d?d:c,I=S&&b||g,F=S&&"function"==typeof _?_:m,O=S&&w||v,Q=S&&B||y,N=f(o(C)?C.enter:C);0;var D=!1!==a&&!J,P=$r(F),R=n._enterCb=L(function(){D&&(Dr(n,U),Dr(n,x)),R.cancelled?(D&&Dr(n,k),Q&&Q(n)):O&&O(n),n._enterCb=null});t.data.show||ue(t,"insert",function(){var e=n.parentNode,i=e&&e._pending&&e._pending[t.key];i&&i.tag===t.tag&&i.elm._leaveCb&&i.elm._leaveCb(),F&&F(n,R)}),I&&I(n),D&&(Lr(n,k),Lr(n,x),Nr(function(){Dr(n,k),R.cancelled||(Lr(n,U),P||(zr(N)?setTimeout(R,N):Pr(n,u,R)))})),t.data.show&&(e&&e(),F&&F(n,R)),D||P||R()}}}function Vr(t,e){var n=t.elm;r(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var s=Tr(t.data.transition);if(i(s)||1!==n.nodeType)return e();if(!r(n._leaveCb)){var a=s.css,u=s.type,l=s.leaveClass,c=s.leaveToClass,A=s.leaveActiveClass,h=s.beforeLeave,d=s.leave,p=s.afterLeave,g=s.leaveCancelled,m=s.delayLeave,v=s.duration,y=!1!==a&&!J,b=$r(d),_=f(o(v)?v.leave:v);0;var w=n._leaveCb=L(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),y&&(Dr(n,c),Dr(n,A)),w.cancelled?(y&&Dr(n,l),g&&g(n)):(e(),p&&p(n)),n._leaveCb=null});m?m(B):B()}function B(){w.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),h&&h(n),y&&(Lr(n,l),Lr(n,A),Nr(function(){Dr(n,l),w.cancelled||(Lr(n,c),b||(zr(_)?setTimeout(w,_):Pr(n,u,w)))})),d&&d(n,w),y||b||w())}}function zr(t){return"number"==typeof t&&!isNaN(t)}function $r(t){if(i(t))return!1;var e=t.fns;return r(e)?$r(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Wr(t,e){!0!==e.data.show&&jr(e)}var Gr=function(t){var e,n,o={},u=t.modules,l=t.nodeOps;for(e=0;e<oi.length;++e)for(o[oi[e]]=[],n=0;n<u.length;++n)r(u[n][oi[e]])&&o[oi[e]].push(u[n][oi[e]]);function c(t){var e=l.parentNode(t);r(e)&&l.removeChild(e,t)}function A(t,e,n,i,a,u,c){if(r(t.elm)&&r(u)&&(t=u[c]=bt(t)),t.isRootInsert=!a,!function(t,e,n,i){var a=t.data;if(r(a)){var u=r(t.componentInstance)&&a.keepAlive;if(r(a=a.hook)&&r(a=a.init)&&a(t,!1),r(t.componentInstance))return h(t,e),d(n,t.elm,i),s(u)&&function(t,e,n,i){for(var s,a=t;a.componentInstance;)if(a=a.componentInstance._vnode,r(s=a.data)&&r(s=s.transition)){for(s=0;s<o.activate.length;++s)o.activate[s](ai,a);e.push(a);break}d(n,t.elm,i)}(t,e,n,i),!0}}(t,e,n,i)){var A=t.data,p=t.children,g=t.tag;r(g)?(t.elm=t.ns?l.createElementNS(t.ns,g):l.createElement(g,t),v(t),f(t,p,e),r(A)&&m(t,e),d(n,t.elm,i)):s(t.isComment)?(t.elm=l.createComment(t.text),d(n,t.elm,i)):(t.elm=l.createTextNode(t.text),d(n,t.elm,i))}}function h(t,e){r(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,g(t)?(m(t,e),v(t)):(si(t),e.push(t))}function d(t,e,n){r(t)&&(r(n)?l.parentNode(n)===t&&l.insertBefore(t,e,n):l.appendChild(t,e))}function f(t,e,n){if(Array.isArray(e))for(var i=0;i<e.length;++i)A(e[i],n,t.elm,null,!0,e,i);else a(t.text)&&l.appendChild(t.elm,l.createTextNode(String(t.text)))}function g(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return r(t.tag)}function m(t,n){for(var i=0;i<o.create.length;++i)o.create[i](ai,t);r(e=t.data.hook)&&(r(e.create)&&e.create(ai,t),r(e.insert)&&n.push(t))}function v(t){var e;if(r(e=t.fnScopeId))l.setStyleScope(t.elm,e);else for(var n=t;n;)r(e=n.context)&&r(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e),n=n.parent;r(e=Je)&&e!==t.context&&e!==t.fnContext&&r(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e)}function y(t,e,n,i,r,s){for(;i<=r;++i)A(n[i],s,t,e,!1,n,i)}function b(t){var e,n,i=t.data;if(r(i))for(r(e=i.hook)&&r(e=e.destroy)&&e(t),e=0;e<o.destroy.length;++e)o.destroy[e](t);if(r(e=t.children))for(n=0;n<t.children.length;++n)b(t.children[n])}function _(t,e,n){for(;e<=n;++e){var i=t[e];r(i)&&(r(i.tag)?(w(i),b(i)):c(i.elm))}}function w(t,e){if(r(e)||r(t.data)){var n,i=o.remove.length+1;for(r(e)?e.listeners+=i:e=function(t,e){function n(){0==--n.listeners&&c(t)}return n.listeners=e,n}(t.elm,i),r(n=t.componentInstance)&&r(n=n._vnode)&&r(n.data)&&w(n,e),n=0;n<o.remove.length;++n)o.remove[n](t,e);r(n=t.data.hook)&&r(n=n.remove)?n(t,e):e()}else c(t.elm)}function B(t,e,n,i){for(var s=n;s<i;s++){var a=e[s];if(r(a)&&ui(t,a))return s}}function C(t,e,n,a,u,c){if(t!==e){r(e.elm)&&r(a)&&(e=a[u]=bt(e));var h=e.elm=t.elm;if(s(t.isAsyncPlaceholder))r(e.asyncFactory.resolved)?S(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(s(e.isStatic)&&s(t.isStatic)&&e.key===t.key&&(s(e.isCloned)||s(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,f=e.data;r(f)&&r(d=f.hook)&&r(d=d.prepatch)&&d(t,e);var p=t.children,m=e.children;if(r(f)&&g(e)){for(d=0;d<o.update.length;++d)o.update[d](t,e);r(d=f.hook)&&r(d=d.update)&&d(t,e)}i(e.text)?r(p)&&r(m)?p!==m&&function(t,e,n,s,a){for(var o,u,c,h=0,d=0,f=e.length-1,p=e[0],g=e[f],m=n.length-1,v=n[0],b=n[m],w=!a;h<=f&&d<=m;)i(p)?p=e[++h]:i(g)?g=e[--f]:ui(p,v)?(C(p,v,s,n,d),p=e[++h],v=n[++d]):ui(g,b)?(C(g,b,s,n,m),g=e[--f],b=n[--m]):ui(p,b)?(C(p,b,s,n,m),w&&l.insertBefore(t,p.elm,l.nextSibling(g.elm)),p=e[++h],b=n[--m]):ui(g,v)?(C(g,v,s,n,d),w&&l.insertBefore(t,g.elm,p.elm),g=e[--f],v=n[++d]):(i(o)&&(o=li(e,h,f)),i(u=r(v.key)?o[v.key]:B(v,e,h,f))?A(v,s,t,p.elm,!1,n,d):ui(c=e[u],v)?(C(c,v,s,n,d),e[u]=void 0,w&&l.insertBefore(t,c.elm,p.elm)):A(v,s,t,p.elm,!1,n,d),v=n[++d]);h>f?y(t,i(n[m+1])?null:n[m+1].elm,n,d,m,s):d>m&&_(e,h,f)}(h,p,m,n,c):r(m)?(r(t.text)&&l.setTextContent(h,""),y(h,null,m,0,m.length-1,n)):r(p)?_(p,0,p.length-1):r(t.text)&&l.setTextContent(h,""):t.text!==e.text&&l.setTextContent(h,e.text),r(f)&&r(d=f.hook)&&r(d=d.postpatch)&&d(t,e)}}}function T(t,e,n){if(s(n)&&r(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i<e.length;++i)e[i].data.hook.insert(e[i])}var E=p("attrs,class,staticClass,staticStyle,key");function S(t,e,n,i){var a,o=e.tag,u=e.data,l=e.children;if(i=i||u&&u.pre,e.elm=t,s(e.isComment)&&r(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(r(u)&&(r(a=u.hook)&&r(a=a.init)&&a(e,!0),r(a=e.componentInstance)))return h(e,n),!0;if(r(o)){if(r(l))if(t.hasChildNodes())if(r(a=u)&&r(a=a.domProps)&&r(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var c=!0,A=t.firstChild,d=0;d<l.length;d++){if(!A||!S(A,l[d],n,i)){c=!1;break}A=A.nextSibling}if(!c||A)return!1}else f(e,l,n);if(r(u)){var p=!1;for(var g in u)if(!E(g)){p=!0,m(e,n);break}!p&&u.class&&re(u.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,a){if(!i(e)){var u,c=!1,h=[];if(i(t))c=!0,A(e,h);else{var d=r(t.nodeType);if(!d&&ui(t,e))C(t,e,h,null,null,a);else{if(d){if(1===t.nodeType&&t.hasAttribute(D)&&(t.removeAttribute(D),n=!0),s(n)&&S(t,e,h))return T(e,h,!0),t;u=t,t=new gt(l.tagName(u).toLowerCase(),{},[],void 0,u)}var f=t.elm,p=l.parentNode(f);if(A(e,h,f._leaveCb?null:p,l.nextSibling(f)),r(e.parent))for(var m=e.parent,v=g(e);m;){for(var y=0;y<o.destroy.length;++y)o.destroy[y](m);if(m.elm=e.elm,v){for(var w=0;w<o.create.length;++w)o.create[w](ai,m);var B=m.data.hook.insert;if(B.merged)for(var E=1;E<B.fns.length;E++)B.fns[E]()}else si(m);m=m.parent}r(p)?_([t],0,0):r(t.tag)&&b(t)}}return T(e,h,c),e.elm}r(t)&&b(t)}}({nodeOps:ii,modules:[bi,ki,or,cr,_r,W?{create:Wr,activate:Wr,remove:function(t,e){!0!==t.data.show?Vr(t,e):e()}}:{}].concat(gi)});J&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&ns(t,"input")});var Xr={inserted:function(t,e,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?ue(n,"postpatch",function(){Xr.componentUpdated(t,e,n)}):qr(t,e,n.context),t._vOptions=[].map.call(t.options,Zr)):("textarea"===n.tag||ei(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",ts),t.addEventListener("compositionend",es),t.addEventListener("change",es),J&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){qr(t,e,n.context);var i=t._vOptions,r=t._vOptions=[].map.call(t.options,Zr);if(r.some(function(t,e){return!Q(t,i[e])}))(t.multiple?e.value.some(function(t){return Jr(t,r)}):e.value!==e.oldValue&&Jr(e.value,r))&&ns(t,"change")}}};function qr(t,e,n){Yr(t,e,n),(Y||Z)&&setTimeout(function(){Yr(t,e,n)},0)}function Yr(t,e,n){var i=e.value,r=t.multiple;if(!r||Array.isArray(i)){for(var s,a,o=0,u=t.options.length;o<u;o++)if(a=t.options[o],r)s=N(i,Zr(a))>-1,a.selected!==s&&(a.selected=s);else if(Q(Zr(a),i))return void(t.selectedIndex!==o&&(t.selectedIndex=o));r||(t.selectedIndex=-1)}}function Jr(t,e){return e.every(function(e){return!Q(e,t)})}function Zr(t){return"_value"in t?t._value:t.value}function ts(t){t.target.composing=!0}function es(t){t.target.composing&&(t.target.composing=!1,ns(t.target,"input"))}function ns(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function is(t){return!t.componentInstance||t.data&&t.data.transition?t:is(t.componentInstance._vnode)}var rs={model:Xr,show:{bind:function(t,e,n){var i=e.value,r=(n=is(n)).data&&n.data.transition,s=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,jr(n,function(){t.style.display=s})):t.style.display=i?s:"none"},update:function(t,e,n){var i=e.value;!i!=!e.oldValue&&((n=is(n)).data&&n.data.transition?(n.data.show=!0,i?jr(n,function(){t.style.display=t.__vOriginalDisplay}):Vr(n,function(){t.style.display="none"})):t.style.display=i?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}}},ss={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 as(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?as(We(e.children)):t}function os(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var s in r)e[B(s)]=r[s];return e}function us(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var ls=function(t){return t.tag||$e(t)},cs=function(t){return"show"===t.name},As={name:"transition",props:ss,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(ls)).length){0;var i=this.mode;0;var r=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return r;var s=as(r);if(!s)return r;if(this._leaving)return us(t,r);var o="__transition-"+this._uid+"-";s.key=null==s.key?s.isComment?o+"comment":o+s.tag:a(s.key)?0===String(s.key).indexOf(o)?s.key:o+s.key:s.key;var u=(s.data||(s.data={})).transition=os(this),l=this._vnode,c=as(l);if(s.data.directives&&s.data.directives.some(cs)&&(s.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(s,c)&&!$e(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var A=c.data.transition=x({},u);if("out-in"===i)return this._leaving=!0,ue(A,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),us(t,r);if("in-out"===i){if($e(s))return l;var h,d=function(){h()};ue(u,"afterEnter",d),ue(u,"enterCancelled",d),ue(A,"delayLeave",function(t){h=t})}}return r}}},hs=x({tag:String,moveClass:String},ss);function ds(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function fs(t){t.data.newPos=t.elm.getBoundingClientRect()}function ps(t){var e=t.data.pos,n=t.data.newPos,i=e.left-n.left,r=e.top-n.top;if(i||r){t.data.moved=!0;var s=t.elm.style;s.transform=s.WebkitTransform="translate("+i+"px,"+r+"px)",s.transitionDuration="0s"}}delete hs.mode;var gs={Transition:As,TransitionGroup:{props:hs,beforeMount:function(){var t=this,e=this._update;this._update=function(n,i){var r=Ze(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],s=this.children=[],a=os(this),o=0;o<r.length;o++){var u=r[o];if(u.tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))s.push(u),n[u.key]=u,(u.data||(u.data={})).transition=a;else;}if(i){for(var l=[],c=[],A=0;A<i.length;A++){var h=i[A];h.data.transition=a,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?l.push(h):c.push(h)}this.kept=t(e,null,l),this.removed=c}return t(e,null,s)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(ds),t.forEach(fs),t.forEach(ps),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var n=t.elm,i=n.style;Lr(n,e),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(Ir,n._moveCb=function t(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(Ir,t),n._moveCb=null,Dr(n,e))})}}))},methods:{hasMove:function(t,e){if(!Sr)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){Cr(n,t)}),Br(n,e),n.style.display="none",this.$el.appendChild(n);var i=Hr(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}}};En.config.mustUseProp=Ln,En.config.isReservedTag=Jn,En.config.isReservedAttr=Qn,En.config.getTagNamespace=Zn,En.config.isUnknownElement=function(t){if(!W)return!0;if(Jn(t))return!1;if(t=t.toLowerCase(),null!=ti[t])return ti[t];var e=document.createElement(t);return t.indexOf("-")>-1?ti[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:ti[t]=/HTMLUnknownElement/.test(e.toString())},x(En.options.directives,rs),x(En.options.components,gs),En.prototype.__patch__=W?Gr:I,En.prototype.$mount=function(t,e){return function(t,e,n){return t.$el=e,t.$options.render||(t.$options.render=vt),nn(t,"beforeMount"),new pn(t,function(){t._update(t._render(),n)},I,{before:function(){t._isMounted&&!t._isDestroyed&&nn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,nn(t,"mounted")),t}(this,t=t&&W?ni(t):void 0,e)},W&&setTimeout(function(){H.devtools&&at&&at.emit("init",En)},0);var ms=/\{\{((?:.|\r?\n)+?)\}\}/g,vs=/[-.*+?^${}()|[\]\/\\]/g,ys=_(function(t){var e=t[0].replace(vs,"\\$&"),n=t[1].replace(vs,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")});function bs(t,e){var n=e?ys(e):ms;if(n.test(t)){for(var i,r,s,a=[],o=[],u=n.lastIndex=0;i=n.exec(t);){(r=i.index)>u&&(o.push(s=t.slice(u,r)),a.push(JSON.stringify(s)));var l=Ui(i[1].trim());a.push("_s("+l+")"),o.push({"@binding":l}),u=r+i[0].length}return u<t.length&&(o.push(s=t.slice(u)),a.push(JSON.stringify(s))),{expression:a.join("+"),tokens:o}}}var _s={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=Ki(t,"class");n&&(t.staticClass=JSON.stringify(n));var i=Mi(t,"class",!1);i&&(t.classBinding=i)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}};var ws,Bs={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=Ki(t,"style");n&&(t.staticStyle=JSON.stringify(Ar(n)));var i=Mi(t,"style",!1);i&&(t.styleBinding=i)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},Cs=function(t){return(ws=ws||document.createElement("div")).innerHTML=t,ws.textContent},Ts=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Es=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Ss=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ks=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,xs=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Us="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+M.source+"]*",Is="((?:"+Us+"\\:)?"+Us+")",Fs=new RegExp("^<"+Is),Os=/^\s*(\/?)>/,Qs=new RegExp("^<\\/"+Is+"[^>]*>"),Ns=/^<!DOCTYPE [^>]+>/i,Ls=/^<!\--/,Ds=/^<!\[/,Ps=p("script,style,textarea",!0),Rs={},Hs={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},Ms=/&(?:lt|gt|quot|amp|#39);/g,Ks=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,js=p("pre,textarea",!0),Vs=function(t,e){return t&&js(t)&&"\n"===e[0]};function zs(t,e){var n=e?Ks:Ms;return t.replace(n,function(t){return Hs[t]})}var $s,Ws,Gs,Xs,qs,Ys,Js,Zs,ta=/^@|^v-on:/,ea=/^v-|^@|^:|^#/,na=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,ia=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,ra=/^\(|\)$/g,sa=/^\[.*\]$/,aa=/:(.*)$/,oa=/^:|^\.|^v-bind:/,ua=/\.[^.\]]+(?=[^\]]*$)/g,la=/^v-slot(:|$)|^#/,ca=/[\r\n]/,Aa=/\s+/g,ha=_(Cs),da="_empty_";function fa(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:function(t){for(var e={},n=0,i=t.length;n<i;n++)e[t[n].name]=t[n].value;return e}(e),rawAttrsMap:{},parent:n,children:[]}}function pa(t,e){$s=e.warn||Fi,Ys=e.isPreTag||F,Js=e.mustUseProp||F,Zs=e.getTagNamespace||F;var n=e.isReservedTag||F;(function(t){return!!t.component||!n(t.tag)}),Gs=Oi(e.modules,"transformNode"),Xs=Oi(e.modules,"preTransformNode"),qs=Oi(e.modules,"postTransformNode"),Ws=e.delimiters;var i,r,s=[],a=!1!==e.preserveWhitespace,o=e.whitespace,u=!1,l=!1;function c(t){if(A(t),u||t.processed||(t=ga(t,e)),s.length||t===i||i.if&&(t.elseif||t.else)&&va(i,{exp:t.elseif,block:t}),r&&!t.forbidden)if(t.elseif||t.else)a=t,(o=function(t){var e=t.length;for(;e--;){if(1===t[e].type)return t[e];t.pop()}}(r.children))&&o.if&&va(o,{exp:a.elseif,block:a});else{if(t.slotScope){var n=t.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[n]=t}r.children.push(t),t.parent=r}var a,o;t.children=t.children.filter(function(t){return!t.slotScope}),A(t),t.pre&&(u=!1),Ys(t.tag)&&(l=!1);for(var c=0;c<qs.length;c++)qs[c](t,e)}function A(t){if(!l)for(var e;(e=t.children[t.children.length-1])&&3===e.type&&" "===e.text;)t.children.pop()}return function(t,e){for(var n,i,r=[],s=e.expectHTML,a=e.isUnaryTag||F,o=e.canBeLeftOpenTag||F,u=0;t;){if(n=t,i&&Ps(i)){var l=0,c=i.toLowerCase(),A=Rs[c]||(Rs[c]=new RegExp("([\\s\\S]*?)(</"+c+"[^>]*>)","i")),h=t.replace(A,function(t,n,i){return l=i.length,Ps(c)||"noscript"===c||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Vs(c,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});u+=t.length-h.length,t=h,E(c,u-l,u)}else{var d=t.indexOf("<");if(0===d){if(Ls.test(t)){var f=t.indexOf("--\x3e");if(f>=0){e.shouldKeepComment&&e.comment(t.substring(4,f),u,u+f+3),B(f+3);continue}}if(Ds.test(t)){var p=t.indexOf("]>");if(p>=0){B(p+2);continue}}var g=t.match(Ns);if(g){B(g[0].length);continue}var m=t.match(Qs);if(m){var v=u;B(m[0].length),E(m[1],v,u);continue}var y=C();if(y){T(y),Vs(y.tagName,t)&&B(1);continue}}var b=void 0,_=void 0,w=void 0;if(d>=0){for(_=t.slice(d);!(Qs.test(_)||Fs.test(_)||Ls.test(_)||Ds.test(_)||(w=_.indexOf("<",1))<0);)d+=w,_=t.slice(d);b=t.substring(0,d)}d<0&&(b=t),b&&B(b.length),e.chars&&b&&e.chars(b,u-b.length,u)}if(t===n){e.chars&&e.chars(t);break}}function B(e){u+=e,t=t.substring(e)}function C(){var e=t.match(Fs);if(e){var n,i,r={tagName:e[1],attrs:[],start:u};for(B(e[0].length);!(n=t.match(Os))&&(i=t.match(xs)||t.match(ks));)i.start=u,B(i[0].length),i.end=u,r.attrs.push(i);if(n)return r.unarySlash=n[1],B(n[0].length),r.end=u,r}}function T(t){var n=t.tagName,u=t.unarySlash;s&&("p"===i&&Ss(n)&&E(i),o(n)&&i===n&&E(n));for(var l=a(n)||!!u,c=t.attrs.length,A=new Array(c),h=0;h<c;h++){var d=t.attrs[h],f=d[3]||d[4]||d[5]||"",p="a"===n&&"href"===d[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;A[h]={name:d[1],value:zs(f,p)}}l||(r.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:A,start:t.start,end:t.end}),i=n),e.start&&e.start(n,A,l,t.start,t.end)}function E(t,n,s){var a,o;if(null==n&&(n=u),null==s&&(s=u),t)for(o=t.toLowerCase(),a=r.length-1;a>=0&&r[a].lowerCasedTag!==o;a--);else a=0;if(a>=0){for(var l=r.length-1;l>=a;l--)e.end&&e.end(r[l].tag,n,s);r.length=a,i=a&&r[a-1].tag}else"br"===o?e.start&&e.start(t,[],!0,n,s):"p"===o&&(e.start&&e.start(t,[],!1,n,s),e.end&&e.end(t,n,s))}E()}(t,{warn:$s,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,n,a,o,A){var h=r&&r.ns||Zs(t);Y&&"svg"===h&&(n=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];_a.test(i.name)||(i.name=i.name.replace(wa,""),e.push(i))}return e}(n));var d,f=fa(t,n,r);h&&(f.ns=h),"style"!==(d=f).tag&&("script"!==d.tag||d.attrsMap.type&&"text/javascript"!==d.attrsMap.type)||st()||(f.forbidden=!0);for(var p=0;p<Xs.length;p++)f=Xs[p](f,e)||f;u||(!function(t){null!=Ki(t,"v-pre")&&(t.pre=!0)}(f),f.pre&&(u=!0)),Ys(f.tag)&&(l=!0),u?function(t){var e=t.attrsList,n=e.length;if(n)for(var i=t.attrs=new Array(n),r=0;r<n;r++)i[r]={name:e[r].name,value:JSON.stringify(e[r].value)},null!=e[r].start&&(i[r].start=e[r].start,i[r].end=e[r].end);else t.pre||(t.plain=!0)}(f):f.processed||(ma(f),function(t){var e=Ki(t,"v-if");if(e)t.if=e,va(t,{exp:e,block:t});else{null!=Ki(t,"v-else")&&(t.else=!0);var n=Ki(t,"v-else-if");n&&(t.elseif=n)}}(f),function(t){null!=Ki(t,"v-once")&&(t.once=!0)}(f)),i||(i=f),a?c(f):(r=f,s.push(f))},end:function(t,e,n){var i=s[s.length-1];s.length-=1,r=s[s.length-1],c(i)},chars:function(t,e,n){if(r&&(!Y||"textarea"!==r.tag||r.attrsMap.placeholder!==t)){var i,s,c,A=r.children;if(t=l||t.trim()?"script"===(i=r).tag||"style"===i.tag?t:ha(t):A.length?o?"condense"===o&&ca.test(t)?"":" ":a?" ":"":"")l||"condense"!==o||(t=t.replace(Aa," ")),!u&&" "!==t&&(s=bs(t,Ws))?c={type:2,expression:s.expression,tokens:s.tokens,text:t}:" "===t&&A.length&&" "===A[A.length-1].text||(c={type:3,text:t}),c&&A.push(c)}},comment:function(t,e,n){if(r){var i={type:3,text:t,isComment:!0};0,r.children.push(i)}}}),i}function ga(t,e){var n,i;!function(t){var e=Mi(t,"key");if(e){t.key=e}}(t),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,(i=Mi(n=t,"ref"))&&(n.ref=i,n.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(n)),function(t){var e;"template"===t.tag?(e=Ki(t,"scope"),t.slotScope=e||Ki(t,"slot-scope")):(e=Ki(t,"slot-scope"))&&(t.slotScope=e);var n=Mi(t,"slot");n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Ni(t,"slot",n,Hi(t,"slot")));if("template"===t.tag){var i=ji(t,la);if(i){0;var r=ya(i),s=r.name,a=r.dynamic;t.slotTarget=s,t.slotTargetDynamic=a,t.slotScope=i.value||da}}else{var o=ji(t,la);if(o){0;var u=t.scopedSlots||(t.scopedSlots={}),l=ya(o),c=l.name,A=l.dynamic,h=u[c]=fa("template",[],t);h.slotTarget=c,h.slotTargetDynamic=A,h.children=t.children.filter(function(t){if(!t.slotScope)return t.parent=h,!0}),h.slotScope=o.value||da,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Mi(t,"name"))}(t),function(t){var e;(e=Mi(t,"is"))&&(t.component=e);null!=Ki(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var r=0;r<Gs.length;r++)t=Gs[r](t,e)||t;return function(t){var e,n,i,r,s,a,o,u,l=t.attrsList;for(e=0,n=l.length;e<n;e++){if(i=r=l[e].name,s=l[e].value,ea.test(i))if(t.hasBindings=!0,(a=ba(i.replace(ea,"")))&&(i=i.replace(ua,"")),oa.test(i))i=i.replace(oa,""),s=Ui(s),(u=sa.test(i))&&(i=i.slice(1,-1)),a&&(a.prop&&!u&&"innerHtml"===(i=B(i))&&(i="innerHTML"),a.camel&&!u&&(i=B(i)),a.sync&&(o=$i(s,"$event"),u?Ri(t,'"update:"+('+i+")",o,null,!1,0,l[e],!0):(Ri(t,"update:"+B(i),o,null,!1,0,l[e]),E(i)!==B(i)&&Ri(t,"update:"+E(i),o,null,!1,0,l[e])))),a&&a.prop||!t.component&&Js(t.tag,t.attrsMap.type,i)?Qi(t,i,s,l[e],u):Ni(t,i,s,l[e],u);else if(ta.test(i))i=i.replace(ta,""),(u=sa.test(i))&&(i=i.slice(1,-1)),Ri(t,i,s,a,!1,0,l[e],u);else{var c=(i=i.replace(ea,"")).match(aa),A=c&&c[1];u=!1,A&&(i=i.slice(0,-(A.length+1)),sa.test(A)&&(A=A.slice(1,-1),u=!0)),Di(t,i,r,s,A,u,a,l[e])}else Ni(t,i,JSON.stringify(s),l[e]),!t.component&&"muted"===i&&Js(t.tag,t.attrsMap.type,i)&&Qi(t,i,"true",l[e])}}(t),t}function ma(t){var e;if(e=Ki(t,"v-for")){var n=function(t){var e=t.match(na);if(!e)return;var n={};n.for=e[2].trim();var i=e[1].trim().replace(ra,""),r=i.match(ia);r?(n.alias=i.replace(ia,"").trim(),n.iterator1=r[1].trim(),r[2]&&(n.iterator2=r[2].trim())):n.alias=i;return n}(e);n&&x(t,n)}}function va(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function ya(t){var e=t.name.replace(la,"");return e||"#"!==t.name[0]&&(e="default"),sa.test(e)?{name:e.slice(1,-1),dynamic:!0}:{name:'"'+e+'"',dynamic:!1}}function ba(t){var e=t.match(ua);if(e){var n={};return e.forEach(function(t){n[t.slice(1)]=!0}),n}}var _a=/^xmlns:NS\d+/,wa=/^NS\d+:/;function Ba(t){return fa(t.tag,t.attrsList.slice(),t.parent)}var Ca=[_s,Bs,{preTransformNode:function(t,e){if("input"===t.tag){var n,i=t.attrsMap;if(!i["v-model"])return;if((i[":type"]||i["v-bind:type"])&&(n=Mi(t,"type")),i.type||n||!i["v-bind"]||(n="("+i["v-bind"]+").type"),n){var r=Ki(t,"v-if",!0),s=r?"&&("+r+")":"",a=null!=Ki(t,"v-else",!0),o=Ki(t,"v-else-if",!0),u=Ba(t);ma(u),Li(u,"type","checkbox"),ga(u,e),u.processed=!0,u.if="("+n+")==='checkbox'"+s,va(u,{exp:u.if,block:u});var l=Ba(t);Ki(l,"v-for",!0),Li(l,"type","radio"),ga(l,e),va(u,{exp:"("+n+")==='radio'"+s,block:l});var c=Ba(t);return Ki(c,"v-for",!0),Li(c,":type",n),ga(c,e),va(u,{exp:r,block:c}),a?u.else=!0:o&&(u.elseif=o),u}}}}];var Ta,Ea,Sa={expectHTML:!0,modules:Ca,directives:{model:function(t,e,n){n;var i=e.value,r=e.modifiers,s=t.tag,a=t.attrsMap.type;if(t.component)return zi(t,i,r),!1;if("select"===s)!function(t,e,n){var i='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";i=i+" "+$i(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Ri(t,"change",i,null,!0)}(t,i,r);else if("input"===s&&"checkbox"===a)!function(t,e,n){var i=n&&n.number,r=Mi(t,"value")||"null",s=Mi(t,"true-value")||"true",a=Mi(t,"false-value")||"false";Qi(t,"checked","Array.isArray("+e+")?_i("+e+","+r+")>-1"+("true"===s?":("+e+")":":_q("+e+","+s+")")),Ri(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+s+"):("+a+");if(Array.isArray($$a)){var $$v="+(i?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+$i(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+$i(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+$i(e,"$$c")+"}",null,!0)}(t,i,r);else if("input"===s&&"radio"===a)!function(t,e,n){var i=n&&n.number,r=Mi(t,"value")||"null";Qi(t,"checked","_q("+e+","+(r=i?"_n("+r+")":r)+")"),Ri(t,"change",$i(e,r),null,!0)}(t,i,r);else if("input"===s||"textarea"===s)!function(t,e,n){var i=t.attrsMap.type,r=n||{},s=r.lazy,a=r.number,o=r.trim,u=!s&&"range"!==i,l=s?"change":"range"===i?Zi:"input",c="$event.target.value";o&&(c="$event.target.value.trim()"),a&&(c="_n("+c+")");var A=$i(e,c);u&&(A="if($event.target.composing)return;"+A),Qi(t,"value","("+e+")"),Ri(t,l,A,null,!0),(o||a)&&Ri(t,"blur","$forceUpdate()")}(t,i,r);else if(!H.isReservedTag(s))return zi(t,i,r),!1;return!0},text:function(t,e){e.value&&Qi(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Qi(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:Ts,mustUseProp:Ln,canBeLeftOpenTag:Es,isReservedTag:Jn,getTagNamespace:Zn,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(Ca)},ka=_(function(t){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))});function xa(t,e){t&&(Ta=ka(e.staticKeys||""),Ea=e.isReservedTag||F,function t(e){e.static=function(t){if(2===t.type)return!1;if(3===t.type)return!0;return!(!t.pre&&(t.hasBindings||t.if||t.for||g(t.tag)||!Ea(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(Ta)))}(e);if(1===e.type){if(!Ea(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var n=0,i=e.children.length;n<i;n++){var r=e.children[n];t(r),r.static||(e.static=!1)}if(e.ifConditions)for(var s=1,a=e.ifConditions.length;s<a;s++){var o=e.ifConditions[s].block;t(o),o.static||(e.static=!1)}}}(t),function t(e,n){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=n),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var i=0,r=e.children.length;i<r;i++)t(e.children[i],n||!!e.for);if(e.ifConditions)for(var s=1,a=e.ifConditions.length;s<a;s++)t(e.ifConditions[s].block,n)}}(t,!1))}var Ua=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Ia=/\([^)]*?\);*$/,Fa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Oa={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Qa={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"]},Na=function(t){return"if("+t+")return null;"},La={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Na("$event.target !== $event.currentTarget"),ctrl:Na("!$event.ctrlKey"),shift:Na("!$event.shiftKey"),alt:Na("!$event.altKey"),meta:Na("!$event.metaKey"),left:Na("'button' in $event && $event.button !== 0"),middle:Na("'button' in $event && $event.button !== 1"),right:Na("'button' in $event && $event.button !== 2")};function Da(t,e){var n=e?"nativeOn:":"on:",i="",r="";for(var s in t){var a=Pa(t[s]);t[s]&&t[s].dynamic?r+=s+","+a+",":i+='"'+s+'":'+a+","}return i="{"+i.slice(0,-1)+"}",r?n+"_d("+i+",["+r.slice(0,-1)+"])":n+i}function Pa(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map(function(t){return Pa(t)}).join(",")+"]";var e=Fa.test(t.value),n=Ua.test(t.value),i=Fa.test(t.value.replace(Ia,""));if(t.modifiers){var r="",s="",a=[];for(var o in t.modifiers)if(La[o])s+=La[o],Oa[o]&&a.push(o);else if("exact"===o){var u=t.modifiers;s+=Na(["ctrl","shift","alt","meta"].filter(function(t){return!u[t]}).map(function(t){return"$event."+t+"Key"}).join("||"))}else a.push(o);return a.length&&(r+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Ra).join("&&")+")return null;"}(a)),s&&(r+=s),"function($event){"+r+(e?"return "+t.value+"($event)":n?"return ("+t.value+")($event)":i?"return "+t.value:t.value)+"}"}return e||n?t.value:"function($event){"+(i?"return "+t.value:t.value)+"}"}function Ra(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=Oa[t],i=Qa[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(i)+")"}var Ha={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:I},Ma=function(t){this.options=t,this.warn=t.warn||Fi,this.transforms=Oi(t.modules,"transformCode"),this.dataGenFns=Oi(t.modules,"genData"),this.directives=x(x({},Ha),t.directives);var e=t.isReservedTag||F;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ka(t,e){var n=new Ma(e);return{render:"with(this){return "+(t?ja(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function ja(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Va(t,e);if(t.once&&!t.onceProcessed)return za(t,e);if(t.for&&!t.forProcessed)return Wa(t,e);if(t.if&&!t.ifProcessed)return $a(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',i=Ya(t,e),r="_t("+n+(i?","+i:""),s=t.attrs||t.dynamicAttrs?to((t.attrs||[]).concat(t.dynamicAttrs||[]).map(function(t){return{name:B(t.name),value:t.value,dynamic:t.dynamic}})):null,a=t.attrsMap["v-bind"];!s&&!a||i||(r+=",null");s&&(r+=","+s);a&&(r+=(s?"":",null")+","+a);return r+")"}(t,e);var n;if(t.component)n=function(t,e,n){var i=e.inlineTemplate?null:Ya(e,n,!0);return"_c("+t+","+Ga(e,n)+(i?","+i:"")+")"}(t.component,t,e);else{var i;(!t.plain||t.pre&&e.maybeComponent(t))&&(i=Ga(t,e));var r=t.inlineTemplate?null:Ya(t,e,!0);n="_c('"+t.tag+"'"+(i?","+i:"")+(r?","+r:"")+")"}for(var s=0;s<e.transforms.length;s++)n=e.transforms[s](t,n);return n}return Ya(t,e)||"void 0"}function Va(t,e){t.staticProcessed=!0;var n=e.pre;return t.pre&&(e.pre=t.pre),e.staticRenderFns.push("with(this){return "+ja(t,e)+"}"),e.pre=n,"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function za(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return $a(t,e);if(t.staticInFor){for(var n="",i=t.parent;i;){if(i.for){n=i.key;break}i=i.parent}return n?"_o("+ja(t,e)+","+e.onceId+++","+n+")":ja(t,e)}return Va(t,e)}function $a(t,e,n,i){return t.ifProcessed=!0,function t(e,n,i,r){if(!e.length)return r||"_e()";var s=e.shift();return s.exp?"("+s.exp+")?"+a(s.block)+":"+t(e,n,i,r):""+a(s.block);function a(t){return i?i(t,n):t.once?za(t,n):ja(t,n)}}(t.ifConditions.slice(),e,n,i)}function Wa(t,e,n,i){var r=t.for,s=t.alias,a=t.iterator1?","+t.iterator1:"",o=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,(i||"_l")+"(("+r+"),function("+s+a+o+"){return "+(n||ja)(t,e)+"})"}function Ga(t,e){var n="{",i=function(t,e){var n=t.directives;if(!n)return;var i,r,s,a,o="directives:[",u=!1;for(i=0,r=n.length;i<r;i++){s=n[i],a=!0;var l=e.directives[s.name];l&&(a=!!l(t,s,e.warn)),a&&(u=!0,o+='{name:"'+s.name+'",rawName:"'+s.rawName+'"'+(s.value?",value:("+s.value+"),expression:"+JSON.stringify(s.value):"")+(s.arg?",arg:"+(s.isDynamicArg?s.arg:'"'+s.arg+'"'):"")+(s.modifiers?",modifiers:"+JSON.stringify(s.modifiers):"")+"},")}if(u)return o.slice(0,-1)+"]"}(t,e);i&&(n+=i+","),t.key&&(n+="key:"+t.key+","),t.ref&&(n+="ref:"+t.ref+","),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'+t.tag+'",');for(var r=0;r<e.dataGenFns.length;r++)n+=e.dataGenFns[r](t);if(t.attrs&&(n+="attrs:"+to(t.attrs)+","),t.props&&(n+="domProps:"+to(t.props)+","),t.events&&(n+=Da(t.events,!1)+","),t.nativeEvents&&(n+=Da(t.nativeEvents,!0)+","),t.slotTarget&&!t.slotScope&&(n+="slot:"+t.slotTarget+","),t.scopedSlots&&(n+=function(t,e,n){var i=t.for||Object.keys(e).some(function(t){var n=e[t];return n.slotTargetDynamic||n.if||n.for||Xa(n)}),r=!!t.if;if(!i)for(var s=t.parent;s;){if(s.slotScope&&s.slotScope!==da||s.for){i=!0;break}s.if&&(r=!0),s=s.parent}var a=Object.keys(e).map(function(t){return qa(e[t],n)}).join(",");return"scopedSlots:_u(["+a+"]"+(i?",null,true":"")+(!i&&r?",null,false,"+function(t){var e=5381,n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e>>>0}(a):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var s=function(t,e){var n=t.children[0];0;if(n&&1===n.type){var i=Ka(n,e.options);return"inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}(t,e);s&&(n+=s+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+to(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Xa(t){return 1===t.type&&("slot"===t.tag||t.children.some(Xa))}function qa(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return $a(t,e,qa,"null");if(t.for&&!t.forProcessed)return Wa(t,e,qa);var i=t.slotScope===da?"":String(t.slotScope),r="function("+i+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(Ya(t,e)||"undefined")+":undefined":Ya(t,e)||"undefined":ja(t,e))+"}",s=i?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+r+s+"}"}function Ya(t,e,n,i,r){var s=t.children;if(s.length){var a=s[0];if(1===s.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var o=n?e.maybeComponent(a)?",1":",0":"";return""+(i||ja)(a,e)+o}var u=n?function(t,e){for(var n=0,i=0;i<t.length;i++){var r=t[i];if(1===r.type){if(Ja(r)||r.ifConditions&&r.ifConditions.some(function(t){return Ja(t.block)})){n=2;break}(e(r)||r.ifConditions&&r.ifConditions.some(function(t){return e(t.block)}))&&(n=1)}}return n}(s,e.maybeComponent):0,l=r||Za;return"["+s.map(function(t){return l(t,e)}).join(",")+"]"+(u?","+u:"")}}function Ja(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function Za(t,e){return 1===t.type?ja(t,e):3===t.type&&t.isComment?(i=t,"_e("+JSON.stringify(i.text)+")"):"_v("+(2===(n=t).type?n.expression:eo(JSON.stringify(n.text)))+")";var n,i}function to(t){for(var e="",n="",i=0;i<t.length;i++){var r=t[i],s=eo(r.value);r.dynamic?n+=r.name+","+s+",":e+='"'+r.name+'":'+s+","}return e="{"+e.slice(0,-1)+"}",n?"_d("+e+",["+n.slice(0,-1)+"])":e}function eo(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function no(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),I}}function io(t){var e=Object.create(null);return function(n,i,r){(i=x({},i)).warn;delete i.warn;var s=i.delimiters?String(i.delimiters)+n:n;if(e[s])return e[s];var a=t(n,i);var o={},u=[];return o.render=no(a.render,u),o.staticRenderFns=a.staticRenderFns.map(function(t){return no(t,u)}),e[s]=o}}var ro,so,ao=(ro=function(t,e){var n=pa(t.trim(),e);!1!==e.optimize&&xa(n,e);var i=Ka(n,e);return{ast:n,render:i.render,staticRenderFns:i.staticRenderFns}},function(t){function e(e,n){var i=Object.create(t),r=[],s=[],a=function(t,e,n){(n?s:r).push(t)};if(n)for(var o in n.modules&&(i.modules=(t.modules||[]).concat(n.modules)),n.directives&&(i.directives=x(Object.create(t.directives||null),n.directives)),n)"modules"!==o&&"directives"!==o&&(i[o]=n[o]);i.warn=a;var u=ro(e.trim(),i);return u.errors=r,u.tips=s,u}return{compile:e,compileToFunctions:io(e)}})(Sa),oo=(ao.compile,ao.compileToFunctions);function uo(t){return(so=so||document.createElement("div")).innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',so.innerHTML.indexOf(" ")>0}var lo=!!W&&uo(!1),co=!!W&&uo(!0),Ao=_(function(t){var e=ni(t);return e&&e.innerHTML}),ho=En.prototype.$mount;En.prototype.$mount=function(t,e){if((t=t&&ni(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var i=n.template;if(i)if("string"==typeof i)"#"===i.charAt(0)&&(i=Ao(i));else{if(!i.nodeType)return this;i=i.innerHTML}else t&&(i=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(i){0;var r=oo(i,{outputSourceRange:!1,shouldDecodeNewlines:lo,shouldDecodeNewlinesForHref:co,delimiters:n.delimiters,comments:n.comments},this),s=r.render,a=r.staticRenderFns;n.render=s,n.staticRenderFns=a}}return ho.call(this,t,e)},En.compile=oo,e.a=En}).call(e,n("DuR2"))},"77Pl":function(t,e,n){var i=n("EqjI");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},"7GwW":function(t,e,n){"use strict";var i=n("cGG2"),r=n("21It"),s=n("p1b6"),a=n("DQCr"),o=n("Oi+a"),u=n("oJlt"),l=n("GHBc"),c=n("FtD3");t.exports=function(t){return new Promise(function(e,n){var A=t.data,h=t.headers;i.isFormData(A)&&delete h["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";h.Authorization="Basic "+btoa(f+":"+p)}var g=o(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),a(g,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,s={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:i,config:t,request:d};r(e,n,s),d=null}},d.onabort=function(){d&&(n(c("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(c("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(c(e,t,"ECONNABORTED",d)),d=null},i.isStandardBrowserEnv()){var m=(t.withCredentials||l(g))&&t.xsrfCookieName?s.read(t.xsrfCookieName):void 0;m&&(h[t.xsrfHeaderName]=m)}if("setRequestHeader"in d&&i.forEach(h,function(t,e){void 0===A&&"content-type"===e.toLowerCase()?delete h[e]:d.setRequestHeader(e,t)}),i.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){d&&(d.abort(),n(t),d=null)}),A||(A=null),d.send(A)})}},"7KvD":function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"82Mu":function(t,e,n){var i=n("7KvD"),r=n("L42u").set,s=i.MutationObserver||i.WebKitMutationObserver,a=i.process,o=i.Promise,u="process"==n("R9M2")(a);t.exports=function(){var t,e,n,l=function(){var i,r;for(u&&(i=a.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(u)n=function(){a.nextTick(l)};else if(!s||i.navigator&&i.navigator.standalone)if(o&&o.resolve){var c=o.resolve(void 0);n=function(){c.then(l)}}else n=function(){r.call(i,l)};else{var A=!0,h=document.createTextNode("");new s(l).observe(h,{characterData:!0}),n=function(){h.data=A=!A}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},"86MP":function(t,e,n){var i=n("dkdY");t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0},"880/":function(t,e,n){t.exports=n("hJx8")},"94VQ":function(t,e,n){"use strict";var i=n("Yobk"),r=n("X8DO"),s=n("e6n0"),a={};n("hJx8")(a,n("dSzd")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),s(t,e+" Iterator")}},"9KJy":function(t,e,n){"use strict";(function(t){e.a=function(t){for(var e=s(t),n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n};var i=n("awF4"),r=n.n(i),s=function(e){return r.a.atob?r.a.atob(e):t.from(e,"base64").toString("binary")}}).call(e,n("EuP9").Buffer)},AA6R:function(t,e,n){"use strict";function i(){return(i=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}var r=["attrs","props","domProps"],s=["class","style","directives"],a=["on","nativeOn"],o=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce(function(t,e){for(var n in e)if(t[n])if(-1!==r.indexOf(n))t[n]=i({},t[n],e[n]);else if(-1!==s.indexOf(n)){var u=t[n]instanceof Array?t[n]:[t[n]],l=e[n]instanceof Array?e[n]:[e[n]];t[n]=u.concat(l)}else if(-1!==a.indexOf(n))for(var c in e[n])if(t[n][c]){var A=t[n][c]instanceof Array?t[n][c]:[t[n][c]],h=e[n][c]instanceof Array?e[n][c]:[e[n][c]];t[n][c]=A.concat(h)}else t[n][c]=e[n][c];else if("hook"==n)for(var d in e[n])t[n][d]=t[n][d]?o(t[n][d],e[n][d]):e[n][d];else t[n]=e[n];else t[n]=e[n];return t},{})}},ARpH:function(t,e){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}},t.exports.default=t.exports,t.exports.__esModule=!0},CXw9:function(t,e,n){"use strict";var i,r,s,a,o=n("O4g8"),u=n("7KvD"),l=n("+ZMJ"),c=n("RY/4"),A=n("kM2E"),h=n("EqjI"),d=n("lOnJ"),f=n("2KxR"),p=n("NWt+"),g=n("t8x9"),m=n("L42u").set,v=n("82Mu")(),y=n("qARP"),b=n("dNDb"),_=n("iUbK"),w=n("fJUb"),B=u.TypeError,C=u.process,T=C&&C.versions,E=T&&T.v8||"",S=u.Promise,k="process"==c(C),x=function(){},U=r=y.f,I=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n("dSzd")("species")]=function(t){t(x,x)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(x)instanceof e&&0!==E.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),F=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},O=function(t,e){if(!t._n){t._n=!0;var n=t._c;v(function(){for(var i=t._v,r=1==t._s,s=0,a=function(e){var n,s,a,o=r?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{o?(r||(2==t._h&&L(t),t._h=1),!0===o?n=i:(c&&c.enter(),n=o(i),c&&(c.exit(),a=!0)),n===e.promise?l(B("Promise-chain cycle")):(s=F(n))?s.call(n,u,l):u(n)):l(i)}catch(t){c&&!a&&c.exit(),l(t)}};n.length>s;)a(n[s++]);t._c=[],t._n=!1,e&&!t._h&&Q(t)})}},Q=function(t){m.call(u,function(){var e,n,i,r=t._v,s=N(t);if(s&&(e=b(function(){k?C.emit("unhandledRejection",r,t):(n=u.onunhandledrejection)?n({promise:t,reason:r}):(i=u.console)&&i.error&&i.error("Unhandled promise rejection",r)}),t._h=k||N(t)?2:1),t._a=void 0,s&&e.e)throw e.v})},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){m.call(u,function(){var e;k?C.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},D=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),O(e,!0))},P=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw B("Promise can't be resolved itself");(e=F(t))?v(function(){var i={_w:n,_d:!1};try{e.call(t,l(P,i,1),l(D,i,1))}catch(t){D.call(i,t)}}):(n._v=t,n._s=1,O(n,!1))}catch(t){D.call({_w:n,_d:!1},t)}}};I||(S=function(t){f(this,S,"Promise","_h"),d(t),i.call(this);try{t(l(P,this,1),l(D,this,1))}catch(t){D.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("xH/j")(S.prototype,{then:function(t,e){var n=U(g(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=k?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),s=function(){var t=new i;this.promise=t,this.resolve=l(P,t,1),this.reject=l(D,t,1)},y.f=U=function(t){return t===S||t===a?new s(t):r(t)}),A(A.G+A.W+A.F*!I,{Promise:S}),n("e6n0")(S,"Promise"),n("bRrM")("Promise"),a=n("FeBl").Promise,A(A.S+A.F*!I,"Promise",{reject:function(t){var e=U(this);return(0,e.reject)(t),e.promise}}),A(A.S+A.F*(o||!I),"Promise",{resolve:function(t){return w(o&&this===a?S:this,t)}}),A(A.S+A.F*!(I&&n("dY0y")(function(t){S.all(t).catch(x)})),"Promise",{all:function(t){var e=this,n=U(e),i=n.resolve,r=n.reject,s=b(function(){var n=[],s=0,a=1;p(t,!1,function(t){var o=s++,u=!1;n.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,n[o]=t,--a||i(n))},r)}),--a||i(n)});return s.e&&r(s.v),n.promise},race:function(t){var e=this,n=U(e),i=n.reject,r=b(function(){p(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},D2L2:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},DQCr:function(t,e,n){"use strict";var i=n("cGG2");function r(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var s;if(n)s=n(e);else if(i.isURLSearchParams(e))s=e.toString();else{var a=[];i.forEach(e,function(t,e){null!==t&&void 0!==t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))}))}),s=a.join("&")}if(s){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+s}return t}},DUeU:function(t,e,n){"use strict";var i=n("cGG2");t.exports=function(t,e){e=e||{};var n={},r=["url","method","data"],s=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function u(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function l(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=u(void 0,t[r])):n[r]=u(t[r],e[r])}i.forEach(r,function(t){i.isUndefined(e[t])||(n[t]=u(void 0,e[t]))}),i.forEach(s,l),i.forEach(a,function(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=u(void 0,t[r])):n[r]=u(void 0,e[r])}),i.forEach(o,function(i){i in e?n[i]=u(t[i],e[i]):i in t&&(n[i]=u(void 0,t[i]))});var c=r.concat(s).concat(a).concat(o),A=Object.keys(t).concat(Object.keys(e)).filter(function(t){return-1===c.indexOf(t)});return i.forEach(A,l),n}},DuR2:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},DvOw:function(t,e){var n={"":!0,up:!0};function i(t){return"number"==typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,e=3,r=0,s=100,a=0,o=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!i(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!i(t))throw new Error("RegionAnchorX must be between 0 and 100.");s=t}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!i(t))throw new Error("RegionAnchorY must be between 0 and 100.");r=t}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!i(t))throw new Error("ViewportAnchorY must be between 0 and 100.");o=t}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(t){if(!i(t))throw new Error("ViewportAnchorX must be between 0 and 100.");a=t}},scroll:{enumerable:!0,get:function(){return u},set:function(t){var e=function(t){return"string"==typeof t&&!!n[t.toLowerCase()]&&t.toLowerCase()}(t);!1===e?console.warn("Scroll: an invalid or illegal string was specified."):u=e}}})}},EGZi:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},EKta:function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,i=l(t),a=i[0],o=i[1],u=new s(function(t,e,n){return 3*(e+n)/4-n}(0,a,o)),c=0,A=o>0?a-4:a;for(n=0;n<A;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===o&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,u[c++]=255&e);1===o&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,s=[],a=0,o=n-r;a<o;a+=16383)s.push(c(t,a,a+16383>o?o:a+16383));1===r?(e=t[n-1],s.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],s.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return s.join("")};for(var i=[],r=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,u=a.length;o<u;++o)i[o]=a[o],r[a.charCodeAt(o)]=o;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var r,s,a=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),a.push(i[(s=r)>>18&63]+i[s>>12&63]+i[s>>6&63]+i[63&s]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},EqBC:function(t,e,n){"use strict";var i=n("kM2E"),r=n("FeBl"),s=n("7KvD"),a=n("t8x9"),o=n("fJUb");i(i.P+i.R,"Promise",{finally:function(t){var e=a(this,r.Promise||s.Promise),n="function"==typeof t;return this.then(n?function(n){return o(e,t()).then(function(){return n})}:t,n?function(n){return o(e,t()).then(function(){throw n})}:t)}})},EqjI:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},EuP9:function(t,e,n){"use strict";(function(t){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- var i=n("EKta"),r=n("ujcs"),s=n("sOR5");function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return A(this,t)}return l(this,t,e,n)}function l(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=h(t,e);return t}(t,e,n,i):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|f(e,n),r=(t=o(t,i)).write(e,n);r!==i&&(t=t.slice(0,r));return t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|d(e.length);return 0===(t=o(t,n)).length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?o(t,0):h(t,e);if("Buffer"===e.type&&s(e.data))return h(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function A(t,e){if(c(e),t=o(t,e<0?0:0|d(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e){var n=e.length<0?0:0|d(e.length);t=o(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function f(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return M(t).length;default:if(i)return H(t).length;e=(""+e).toLowerCase(),i=!0}}function p(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function g(t,e,n,i,r){if(0===t.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:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=u.from(e,i)),u.isBuffer(e))return 0===e.length?-1:m(t,e,n,i,r);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,i,r){var s,a=1,o=t.length,u=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,o/=2,u/=2,n/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var c=-1;for(s=n;s<o;s++)if(l(t,s)===l(e,-1===c?0:s-c)){if(-1===c&&(c=s),s-c+1===u)return c*a}else-1!==c&&(s-=s-c),c=-1}else for(n+u>o&&(n=o-u),s=n;s>=0;s--){for(var A=!0,h=0;h<u;h++)if(l(t,s+h)!==l(e,h)){A=!1;break}if(A)return s}return-1}function v(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var s=e.length;if(s%2!=0)throw new TypeError("Invalid hex string");i>s/2&&(i=s/2);for(var a=0;a<i;++a){var o=parseInt(e.substr(2*a,2),16);if(isNaN(o))return a;t[n+a]=o}return a}function y(t,e,n,i){return K(H(e,t.length-n),t,n,i)}function b(t,e,n,i){return K(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function _(t,e,n,i){return b(t,e,n,i)}function w(t,e,n,i){return K(M(e),t,n,i)}function B(t,e,n,i){return K(function(t,e){for(var n,i,r,s=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),i=n>>8,r=n%256,s.push(r),s.push(i);return s}(e,t.length-n),t,n,i)}function C(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var s,a,o,u,l=t[r],c=null,A=l>239?4:l>223?3:l>191?2:1;if(r+A<=n)switch(A){case 1:l<128&&(c=l);break;case 2:128==(192&(s=t[r+1]))&&(u=(31&l)<<6|63&s)>127&&(c=u);break;case 3:s=t[r+1],a=t[r+2],128==(192&s)&&128==(192&a)&&(u=(15&l)<<12|(63&s)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:s=t[r+1],a=t[r+2],o=t[r+3],128==(192&s)&&128==(192&a)&&128==(192&o)&&(u=(15&l)<<18|(63&s)<<12|(63&a)<<6|63&o)>65535&&u<1114112&&(c=u)}null===c?(c=65533,A=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=A}return function(t){var e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=E));return n}(i)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return l(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,i){return c(e),e<=0?o(t,e):void 0!==n?"string"==typeof i?o(t,e).fill(n,i):o(t,e).fill(n):o(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return A(null,t)},u.allocUnsafeSlow=function(t){return A(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,s=Math.min(n,i);r<s;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!s(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=u.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var a=t[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},u.byteLength=f,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)p(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?T(this,0,t):function(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return S(this,e,n);case"latin1":case"binary":return k(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,i,r){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var s=r-i,a=n-e,o=Math.min(s,a),l=this.slice(i,r),c=t.slice(e,n),A=0;A<o;++A)if(l[A]!==c[A]){s=l[A],a=c[A];break}return s<a?-1:a<s?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},u.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return v(this,t,e,n);case"utf8":case"utf-8":return y(this,t,e,n);case"ascii":return b(this,t,e,n);case"latin1":case"binary":return _(this,t,e,n);case"base64":return w(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,e,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function S(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function k(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function x(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",s=e;s<n;++s)r+=R(t[s]);return r}function U(t,e,n){for(var i=t.slice(e,n),r="",s=0;s<i.length;s+=2)r+=String.fromCharCode(i[s]+256*i[s+1]);return r}function I(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,n,i,r,s){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<s)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function O(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,s=Math.min(t.length-n,2);r<s;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function Q(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,s=Math.min(t.length-n,4);r<s;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function N(t,e,n,i,r,s){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(t,e,n,i,s){return s||N(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function D(t,e,n,i,s){return s||N(t,0,n,8),r.write(t,e,n,i,52,8),n+8}u.prototype.slice=function(t,e){var n,i=this.length;if(t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=u.prototype;else{var r=e-t;n=new u(r,void 0);for(var s=0;s<r;++s)n[s]=this[s+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var i=this[t],r=1,s=0;++s<e&&(r*=256);)i+=this[t+s]*r;return i},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},u.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var i=this[t],r=1,s=0;++s<e&&(r*=256);)i+=this[t+s]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var i=e,r=1,s=this[t+--i];i>0&&(r*=256);)s+=this[t+--i]*r;return s>=(r*=128)&&(s-=Math.pow(2,8*e)),s},u.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),r.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),r.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),r.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),r.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||F(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,s=0;for(this[e]=255&t;++s<n&&(r*=256);)this[e+s]=t/r&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||F(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,s=1;for(this[e+r]=255&t;--r>=0&&(s*=256);)this[e+r]=t/s&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Q(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Q(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);F(this,t,e,n,r-1,-r)}var s=0,a=1,o=0;for(this[e]=255&t;++s<n&&(a*=256);)t<0&&0===o&&0!==this[e+s-1]&&(o=1),this[e+s]=(t/a>>0)-o&255;return e+n},u.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);F(this,t,e,n,r-1,-r)}var s=n-1,a=1,o=0;for(this[e+s]=255&t;--s>=0&&(a*=256);)t<0&&0===o&&0!==this[e+s+1]&&(o=1),this[e+s]=(t/a>>0)-o&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Q(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Q(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return L(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return L(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<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),t.length-e<i-n&&(i=t.length-e+n);var r,s=i-n;if(this===t&&n<e&&e<i)for(r=s-1;r>=0;--r)t[r+e]=this[r+n];else if(s<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r<s;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+s),e);return s},u.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var s;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(s=e;s<n;++s)this[s]=t;else{var a=u.isBuffer(t)?t:H(new u(t,i).toString()),o=a.length;for(s=0;s<n-e;++s)this[s+e]=a[s%o]}return this};var P=/[^+\/0-9A-Za-z-_]/g;function R(t){return t<16?"0"+t.toString(16):t.toString(16)}function H(t,e){var n;e=e||1/0;for(var i=t.length,r=null,s=[],a=0;a<i;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&s.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&s.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;s.push(n)}else if(n<2048){if((e-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function M(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(P,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function K(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}}).call(e,n("DuR2"))},"Fd2+":function(t,e,n){"use strict";function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var r=n("AA6R"),s=n.n(r),a=n("7+uW"),o=n("o69Z"),u=["ref","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],l={nativeOn:"on"};function c(t,e){var n=u.reduce(function(e,n){return t.data[n]&&(e[l[n]||n]=t.data[n]),e},{});return e&&(n.on=n.on||{},i(n.on,t.data.on)),n}function A(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var s=t.listeners[e];s&&(Array.isArray(s)?s.forEach(function(t){t.apply(void 0,i)}):s.apply(void 0,i))}function h(t,e){var n=new a.a({el:document.createElement("div"),props:t.props,render:function(n){return n(t,i({props:this.$props},e))}});return document.body.appendChild(n.$el),n}var d={zIndex:2e3,lockCount:0,stack:[],find:function(t){return this.stack.filter(function(e){return e.vm===t})[0]}},f=!1;if(!o.j)try{var p={};Object.defineProperty(p,"passive",{get:function(){f=!0}}),window.addEventListener("test-passive",null,p)}catch(t){}function g(t,e,n,i){void 0===i&&(i=!1),o.j||t.addEventListener(e,n,!!f&&{capture:!1,passive:i})}function m(t,e,n){o.j||t.removeEventListener(e,n)}function v(t){t.stopPropagation()}function y(t,e){("boolean"!=typeof t.cancelable||t.cancelable)&&t.preventDefault(),e&&v(t)}var b=Object(o.b)("overlay"),_=b[0],w=b[1];function B(t){y(t,!0)}function C(t,e,n,r){var a=i({zIndex:e.zIndex},e.customStyle);return Object(o.e)(e.duration)&&(a.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"van-fade"}},[t("div",s()([{directives:[{name:"show",value:e.show}],style:a,class:[w(),e.className],on:{touchmove:e.lockScroll?B:o.k}},c(r,!0)]),[null==n.default?void 0:n.default()])])}C.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}};var T=_(C);function E(t){var e=t.parentNode;e&&e.removeChild(t)}var S={className:"",customStyle:{}};function k(t){var e=d.find(t);if(e){var n=t.$el,r=e.config,s=e.overlay;n&&n.parentNode&&n.parentNode.insertBefore(s.$el,n),i(s,S,r,{show:!0})}}function x(t,e){var n=d.find(t);if(n)n.config=e;else{var i=function(t){return h(T,{on:{click:function(){t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}})}(t);d.stack.push({vm:t,config:e,overlay:i})}k(t)}function U(t){var e=d.find(t);e&&(e.overlay.show=!1)}function I(t){return t===window}var F=/scroll|auto/i;function O(t,e){void 0===e&&(e=window);for(var n=t;n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==e;){var i=window.getComputedStyle(n).overflowY;if(F.test(i))return n;n=n.parentNode}return e}function Q(t){var e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function N(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function L(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function D(t){N(window,t),N(document.body,t)}function P(t,e){if(I(t))return 0;var n=e?Q(e):L();return t.getBoundingClientRect().top+n}var R=10;var H={data:function(){return{direction:""}},methods:{touchStart:function(t){this.resetTouchStatus(),this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},touchMove:function(t){var e,n,i=t.touches[0];this.deltaX=i.clientX<0?0:i.clientX-this.startX,this.deltaY=i.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||(e=this.offsetX,n=this.offsetY,e>n&&e>R?"horizontal":n>e&&n>R?"vertical":"")},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(t){var e=this.onTouchStart,n=this.onTouchMove,i=this.onTouchEnd;g(t,"touchstart",e),g(t,"touchmove",n),i&&(g(t,"touchend",i),g(t,"touchcancel",i))}}};function M(t){var e=void 0===t?{}:t,n=e.ref,i=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var t,e,r=this.getContainer,s=n?this.$refs[n]:this.$el;r?t="string"==typeof(e=r)?document.querySelector(e):e():this.$parent&&(t=this.$parent.$el),t&&t!==s.parentNode&&t.appendChild(s),i&&i.call(this)}}}}var K=0;function j(t){var e="binded_"+K++;function n(){this[e]||(t.call(this,g,!0),this[e]=!0)}function i(){this[e]&&(t.call(this,m,!1),this[e]=!1)}return{mounted:n,activated:n,deactivated:i,beforeDestroy:i}}var V={mixins:[j(function(t,e){this.handlePopstate(e&&this.closeOnPopstate)})],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(t){this.handlePopstate(t)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(t){this.$isServer||this.bindStatus!==t&&(this.bindStatus=t,(t?g:m)(window,"popstate",this.onPopstate))}}},z={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function $(t){return void 0===t&&(t={}),{mixins:[H,V,M({afterPortal:function(){this.overlay&&k()}})],props:z,data:function(){return{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(e){var n=e?"open":"close";this.inited=this.inited||this.value,this[n](),t.skipToggleEvent||this.$emit(n)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){var t,e;t=this,(e=d.find(t))&&E(e.overlay.$el),this.opened&&this.removeLock(),this.getContainer&&E(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(d.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock())},addLock:function(){this.lockScroll&&(g(document,"touchstart",this.touchStart),g(document,"touchmove",this.onTouchMove),d.lockCount||document.body.classList.add("van-overflow-hidden"),d.lockCount++)},removeLock:function(){this.lockScroll&&d.lockCount&&(d.lockCount--,m(document,"touchstart",this.touchStart),m(document,"touchmove",this.onTouchMove),d.lockCount||document.body.classList.remove("van-overflow-hidden"))},close:function(){this.opened&&(U(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",n=O(t.target,this.$el),i=n.scrollHeight,r=n.offsetHeight,s=n.scrollTop,a="11";0===s?a=r>=i?"00":"01":s+r>=i&&(a="10"),"11"===a||"vertical"!==this.direction||parseInt(a,2)&parseInt(e,2)||y(t,!0)},renderOverlay:function(){var t=this;!this.$isServer&&this.value&&this.$nextTick(function(){t.updateZIndex(t.overlay?1:0),t.overlay?x(t,{zIndex:d.zIndex++,duration:t.duration,className:t.overlayClass,customStyle:t.overlayStyle}):U(t)})},updateZIndex:function(t){void 0===t&&(t=0),this.$el.style.zIndex=++d.zIndex+t}}}}var W=Object(o.b)("info"),G=W[0],X=W[1];function q(t,e,n,i){var r=e.dot,a=e.info,u=Object(o.e)(a)&&""!==a;if(r||u)return t("div",s()([{class:X({dot:r})},c(i,!0)]),[r?"":e.info])}q.props={dot:Boolean,info:[Number,String]};var Y=G(q),J=Object(o.b)("icon"),Z=J[0],tt=J[1];var et={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function nt(t,e,n,i){var r,a=function(t){return t&&et[t]||t}(e.name),u=function(t){return!!t&&-1!==t.indexOf("/")}(a);return t(e.tag,s()([{class:[e.classPrefix,u?"":e.classPrefix+"-"+a],style:{color:e.color,fontSize:Object(o.a)(e.size)}},c(i,!0)]),[n.default&&n.default(),u&&t("img",{class:tt("image"),attrs:{src:a}}),t(Y,{attrs:{dot:e.dot,info:null!=(r=e.badge)?r:e.info}})])}nt.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:tt()}};var it=Z(nt),rt=Object(o.b)("popup"),st=rt[0],at=rt[1],ot=st({mixins:[$()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(n){return t.$emit(e,n)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},methods:{onClickCloseIcon:function(t){this.$emit("click-close-icon",t),this.close()}},render:function(){var t,e=arguments[0];if(this.shouldRender){var n=this.round,i=this.position,r=this.duration,s="center"===i,a=this.transition||(s?"van-fade":"van-popup-slide-"+i),u={};if(Object(o.e)(r))u[s?"animationDuration":"transitionDuration"]=r+"s";return e("transition",{attrs:{appear:this.transitionAppear,name:a},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:u,class:at((t={round:n},t[i]=i,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(it,{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:at("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}}),ut=Object(o.b)("loading"),lt=ut[0],ct=ut[1];function At(t,e,n,i){var r=e.color,a=e.size,u=e.type,l={color:r};if(a){var A=Object(o.a)(a);l.width=A,l.height=A}return t("div",s()([{class:ct([u,{vertical:e.vertical}])},c(i,!0)]),[t("span",{class:ct("spinner",u),style:l},[function(t,e){if("spinner"===e.type){for(var n=[],i=0;i<12;i++)n.push(t("i"));return n}return t("svg",{class:ct("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}(t,e)]),function(t,e,n){if(n.default){var i,r={fontSize:Object(o.a)(e.textSize),color:null!=(i=e.textColor)?i:e.color};return t("span",{class:ct("text"),style:r},[n.default()])}}(t,e,n)])}At.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}};var ht=lt(At),dt=Object(o.b)("action-sheet"),ft=dt[0],pt=dt[1];function gt(t,e,n,i){var r=e.title,o=e.cancelText,u=e.closeable;function l(){A(i,"input",!1),A(i,"cancel")}return t(ot,s()([{class:pt(),attrs:{position:"bottom",round:e.round,value:e.value,overlay:e.overlay,duration:e.duration,lazyRender:e.lazyRender,lockScroll:e.lockScroll,getContainer:e.getContainer,closeOnPopstate:e.closeOnPopstate,closeOnClickOverlay:e.closeOnClickOverlay,safeAreaInsetBottom:e.safeAreaInsetBottom}},c(i,!0)]),[function(){if(r)return t("div",{class:pt("header")},[r,u&&t(it,{attrs:{name:e.closeIcon},class:pt("close"),on:{click:l}})])}(),function(){var i=(null==n.description?void 0:n.description())||e.description;if(i)return t("div",{class:pt("description")},[i])}(),t("div",{class:pt("content")},[e.actions&&e.actions.map(function(n,r){var s=n.disabled,o=n.loading,u=n.callback;return t("button",{attrs:{type:"button"},class:[pt("item",{disabled:s,loading:o}),n.className],style:{color:n.color},on:{click:function(t){t.stopPropagation(),s||o||(u&&u(n),e.closeOnClickAction&&A(i,"input",!1),a.a.nextTick(function(){A(i,"select",n,r)}))}}},[o?t(ht,{class:pt("loading-icon")}):[t("span",{class:pt("name")},[n.name]),n.subname&&t("div",{class:pt("subname")},[n.subname])]])}),null==n.default?void 0:n.default()]),function(){if(o)return[t("div",{class:pt("gap")}),t("button",{attrs:{type:"button"},class:pt("cancel"),on:{click:l}},[o])]}()])}gt.props=i({},z,{title:String,actions:Array,duration:[Number,String],cancelText:String,description:String,getContainer:[String,Function],closeOnPopstate:Boolean,closeOnClickAction:Boolean,round:{type:Boolean,default:!0},closeable:{type:Boolean,default:!0},closeIcon:{type:String,default:"cross"},safeAreaInsetBottom:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}});var mt=ft(gt);function vt(t){return t=t.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(t)||/^0[0-9-]{10,13}$/.test(t)}var yt={title:String,loading:Boolean,readonly:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:6},swipeDuration:{type:[Number,String],default:1e3}},bt="#ee0a24",_t="van-hairline",wt=_t+"--top",Bt=_t+"--left",Ct=_t+"--bottom",Tt=_t+"--surround",Et=_t+"--top-bottom",St=n("4PMK");function kt(t){if(!Object(o.e)(t))return t;if(Array.isArray(t))return t.map(function(t){return kt(t)});if("object"==typeof t){var e={};return Object.keys(t).forEach(function(n){e[n]=kt(t[n])}),e}return t}function xt(t,e,n){return Math.min(Math.max(t,e),n)}function Ut(t,e,n){var i=t.indexOf(e),r="";return-1===i?t:"-"===e&&0!==i?t.slice(0,i):("."===e&&t.match(/^(\.|-\.)/)&&(r=i?"-0":"0"),r+t.slice(0,i+1)+t.slice(i).replace(n,""))}function It(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!0),t=e?Ut(t,".",/\./g):t.split(".")[0],t=n?Ut(t,"-",/-/g):t.replace(/-/,"");var i=e?/[^-0-9.]/g:/[^-0-9]/g;return t.replace(i,"")}var Ft=Object(o.b)("picker-column"),Ot=Ft[0],Qt=Ft[1];function Nt(t){return Object(o.h)(t)&&t.disabled}var Lt=Ot({mixins:[H],props:{valueKey:String,readonly:Boolean,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:kt(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1)},watch:{initialOptions:"setOptions",defaultIndex:function(t){this.setIndex(t)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(t){JSON.stringify(t)!==JSON.stringify(this.options)&&(this.options=kt(t),this.setIndex(this.defaultIndex))},onTouchStart:function(t){if(!this.readonly){if(this.touchStart(t),this.moving){var e=function(t){var e=window.getComputedStyle(t),n=e.transform||e.webkitTransform,i=n.slice(7,n.length-1).split(", ")[5];return Number(i)}(this.$refs.wrapper);this.offset=Math.min(0,e-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset}},onTouchMove:function(t){if(!this.readonly){this.touchMove(t),"vertical"===this.direction&&(this.moving=!0,y(t,!0)),this.offset=xt(this.startOffset+this.deltaY,-this.count*this.itemHeight,this.itemHeight);var e=Date.now();e-this.touchStartTime>300&&(this.touchStartTime=e,this.momentumOffset=this.offset)}},onTouchEnd:function(){var t=this;if(!this.readonly){var e=this.offset-this.momentumOffset,n=Date.now()-this.touchStartTime;if(n<300&&Math.abs(e)>15)this.momentum(e,n);else{var i=this.getIndexByOffset(this.offset);this.duration=200,this.setIndex(i,!0),setTimeout(function(){t.moving=!1},0)}}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(t){this.moving||this.readonly||(this.transitionEndTrigger=null,this.duration=200,this.setIndex(t,!0))},adjustIndex:function(t){for(var e=t=xt(t,0,this.count);e<this.count;e++)if(!Nt(this.options[e]))return e;for(var n=t-1;n>=0;n--)if(!Nt(this.options[n]))return n},getOptionText:function(t){return Object(o.h)(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){var n=this,i=-(t=this.adjustIndex(t)||0)*this.itemHeight,r=function(){t!==n.currentIndex&&(n.currentIndex=t,e&&n.$emit("change",t))};this.moving&&i!==this.offset?this.transitionEndTrigger=r:r(),this.offset=i},setValue:function(t){for(var e=this.options,n=0;n<e.length;n++)if(this.getOptionText(e[n])===t)return this.setIndex(n)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(t){return xt(Math.round(-t/this.itemHeight),0,this.count-1)},momentum:function(t,e){var n=Math.abs(t/e);t=this.offset+n/.003*(t<0?-1:1);var i=this.getIndexByOffset(t);this.duration=+this.swipeDuration,this.setIndex(i,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var t=this,e=this.$createElement,n={height:this.itemHeight+"px"};return this.options.map(function(i,r){var a,o=t.getOptionText(i),u=Nt(i),l={style:n,attrs:{role:"button",tabindex:u?-1:0},class:[Qt("item",{disabled:u,selected:r===t.currentIndex})],on:{click:function(){t.onClickItem(r)}}},c={class:"van-ellipsis",domProps:(a={},a[t.allowHtml?"innerHTML":"textContent"]=o,a)};return e("li",s()([{},l]),[t.slots("option",i)||e("div",s()([{},c]))])})}},render:function(){var t=arguments[0],e={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return t("div",{class:[Qt(),this.className]},[t("ul",{ref:"wrapper",style:e,class:Qt("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}}),Dt=Object(o.b)("picker"),Pt=Dt[0],Rt=Dt[1],Ht=Dt[2],Mt=Pt({props:i({},yt,{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?Object(St.b)(this.itemHeight):44},dataType:function(){var t=this.columns[0]||{};return t.children?"cascade":t.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var t=this.columns,e=this.dataType;"text"===e?this.formattedColumns=[{values:t}]:"cascade"===e?this.formatCascade():this.formattedColumns=t},formatCascade:function(){for(var t=[],e={children:this.columns};e&&e.children;){for(var n,i=e.children,r=null!=(n=e.defaultIndex)?n:+this.defaultIndex;i[r]&&i[r].disabled;){if(!(r<i.length-1)){r=0;break}r++}t.push({values:e.children,className:e.className,defaultIndex:r}),e=i[r]}this.formattedColumns=t},emit:function(t){var e=this;if("text"===this.dataType)this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0));else{var n=this.getValues();"cascade"===this.dataType&&(n=n.map(function(t){return t[e.valueKey]})),this.$emit(t,n,this.getIndexes())}},onCascadeChange:function(t){for(var e={children:this.columns},n=this.getIndexes(),i=0;i<=t;i++)e=e.children[n[i]];for(;e&&e.children;)t++,this.setColumnValues(t,e.children),e=e.children[e.defaultIndex||0]},onChange:function(t){var e=this;if("cascade"===this.dataType&&this.onCascadeChange(t),"text"===this.dataType)this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0));else{var n=this.getValues();"cascade"===this.dataType&&(n=n.map(function(t){return t[e.valueKey]})),this.$emit("change",this,n,t)}},getColumn:function(t){return this.children[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.getValue()},setColumnValue:function(t,e){var n=this.getColumn(t);n&&(n.setValue(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,e){var n=this.getColumn(t);n&&(n.setIndex(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnValues:function(t){return(this.children[t]||{}).options},setColumnValues:function(t,e){var n=this.children[t];n&&n.setOptions(e)},getValues:function(){return this.children.map(function(t){return t.getValue()})},setValues:function(t){var e=this;t.forEach(function(t,n){e.setColumnValue(n,t)})},getIndexes:function(){return this.children.map(function(t){return t.currentIndex})},setIndexes:function(t){var e=this;t.forEach(function(t,n){e.setColumnIndex(n,t)})},confirm:function(){this.children.forEach(function(t){return t.stopMomentum()}),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var t=this.$createElement,e=this.slots("title");return e||(this.title?t("div",{class:["van-ellipsis",Rt("title")]},[this.title]):void 0)},genCancel:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:Rt("cancel"),on:{click:this.cancel}},[this.slots("cancel")||this.cancelButtonText||Ht("cancel")])},genConfirm:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:Rt("confirm"),on:{click:this.confirm}},[this.slots("confirm")||this.confirmButtonText||Ht("confirm")])},genToolbar:function(){var t=this.$createElement;if(this.showToolbar)return t("div",{class:Rt("toolbar")},[this.slots()||[this.genCancel(),this.genTitle(),this.genConfirm()]])},genColumns:function(){var t=this.$createElement,e=this.itemPxHeight,n=e*this.visibleItemCount,i={height:e+"px"},r={height:n+"px"},s={backgroundSize:"100% "+(n-e)/2+"px"};return t("div",{class:Rt("columns"),style:r,on:{touchmove:y}},[this.genColumnItems(),t("div",{class:Rt("mask"),style:s}),t("div",{class:["van-hairline-unset--top-bottom",Rt("frame")],style:i})])},genColumnItems:function(){var t=this,e=this.$createElement;return this.formattedColumns.map(function(n,i){var r;return e(Lt,{attrs:{readonly:t.readonly,valueKey:t.valueKey,allowHtml:t.allowHtml,className:n.className,itemHeight:t.itemPxHeight,defaultIndex:null!=(r=n.defaultIndex)?r:+t.defaultIndex,swipeDuration:t.swipeDuration,visibleItemCount:t.visibleItemCount,initialOptions:n.values},scopedSlots:{option:t.$scopedSlots.option},on:{change:function(){t.onChange(i)}}})})}},render:function(t){return t("div",{class:Rt()},["top"===this.toolbarPosition?this.genToolbar():t(),this.loading?t(ht,{class:Rt("loading")}):t(),this.slots("columns-top"),this.genColumns(),this.slots("columns-bottom"),"bottom"===this.toolbarPosition?this.genToolbar():t()])}}),Kt=Object(o.b)("area"),jt=Kt[0],Vt=Kt[1];var zt=jt({props:i({},yt,{value:String,areaList:{type:Object,default:function(){return{}}},columnsNum:{type:[Number,String],default:3},isOverseaCode:{type:Function,default:function(t){return"9"===t[0]}},columnsPlaceholder:{type:Array,default:function(){return[]}}}),data:function(){return{code:this.value,columns:[{values:[]},{values:[]},{values:[]}]}},computed:{province:function(){return this.areaList.province_list||{}},city:function(){return this.areaList.city_list||{}},county:function(){return this.areaList.county_list||{}},displayColumns:function(){return this.columns.slice(0,+this.columnsNum)},placeholderMap:function(){return{province:this.columnsPlaceholder[0]||"",city:this.columnsPlaceholder[1]||"",county:this.columnsPlaceholder[2]||""}}},watch:{value:function(t){this.code=t,this.setValues()},areaList:{deep:!0,handler:"setValues"},columnsNum:function(){var t=this;this.$nextTick(function(){t.setValues()})}},mounted:function(){this.setValues()},methods:{getList:function(t,e){var n=[];if("province"!==t&&!e)return n;var i=this[t];if(n=Object.keys(i).map(function(t){return{code:t,name:i[t]}}),e&&(this.isOverseaCode(e)&&"city"===t&&(e="9"),n=n.filter(function(t){return 0===t.code.indexOf(e)})),this.placeholderMap[t]&&n.length){var r="";"city"===t?r="000000".slice(2,4):"county"===t&&(r="000000".slice(4,6)),n.unshift({code:""+e+r,name:this.placeholderMap[t]})}return n},getIndex:function(t,e){var n="province"===t?2:"city"===t?4:6,i=this.getList(t,e.slice(0,n-2));this.isOverseaCode(e)&&"province"===t&&(n=1),e=e.slice(0,n);for(var r=0;r<i.length;r++)if(i[r].code.slice(0,n)===e)return r;return 0},parseOutputValues:function(t){var e=this;return t.map(function(t,n){return t?((t=JSON.parse(JSON.stringify(t))).code&&t.name!==e.columnsPlaceholder[n]||(t.code="",t.name=""),t):t})},onChange:function(t,e,n){this.code=e[n].code,this.setValues();var i=this.parseOutputValues(t.getValues());this.$emit("change",t,i,n)},onConfirm:function(t,e){t=this.parseOutputValues(t),this.setValues(),this.$emit("confirm",t,e)},getDefaultCode:function(){if(this.columnsPlaceholder.length)return"000000";var t=Object.keys(this.county);if(t[0])return t[0];var e=Object.keys(this.city);return e[0]?e[0]:""},setValues:function(){var t=this.code;t||(t=this.getDefaultCode());var e=this.$refs.picker,n=this.getList("province"),i=this.getList("city",t.slice(0,2));e&&(e.setColumnValues(0,n),e.setColumnValues(1,i),i.length&&"00"===t.slice(2,4)&&!this.isOverseaCode(t)&&(t=i[0].code),e.setColumnValues(2,this.getList("county",t.slice(0,4))),e.setIndexes([this.getIndex("province",t),this.getIndex("city",t),this.getIndex("county",t)]))},getValues:function(){var t=this.$refs.picker,e=t?t.getValues().filter(function(t){return!!t}):[];return e=this.parseOutputValues(e),e},getArea:function(){var t=this.getValues(),e={code:"",country:"",province:"",city:"",county:""};if(!t.length)return e;var n=t.map(function(t){return t.name}),i=t.filter(function(t){return!!t.code});return e.code=i.length?i[i.length-1].code:"",this.isOverseaCode(e.code)?(e.country=n[1]||"",e.province=n[2]||""):(e.province=n[0]||"",e.city=n[1]||"",e.county=n[2]||""),e},reset:function(t){this.code=t||"",this.setValues()}},render:function(){var t,e,n,r,s,a=arguments[0],o=i({},this.$listeners,{change:this.onChange,confirm:this.onConfirm});return a(Mt,{ref:"picker",class:Vt(),attrs:{showToolbar:!0,valueKey:"name",title:this.title,columns:this.displayColumns,loading:this.loading,readonly:this.readonly,itemHeight:this.itemHeight,swipeDuration:this.swipeDuration,visibleItemCount:this.visibleItemCount,cancelButtonText:this.cancelButtonText,confirmButtonText:this.confirmButtonText},scopedSlots:(t=this,e=["title","columns-top","columns-bottom"],n=t.$slots,r=t.$scopedSlots,s={},e.forEach(function(t){r[t]?s[t]=r[t]:n[t]&&(s[t]=function(){return n[t]})}),s),on:i({},o)})}});function $t(t,e){var n=e.to,i=e.url,r=e.replace;if(n&&t){var s=t[r?"replace":"push"](n);s&&s.catch&&s.catch(function(t){if(t&&!function(t){return"NavigationDuplicated"===t.name||t.message&&-1!==t.message.indexOf("redundant navigation")}(t))throw t})}else i&&(r?location.replace(i):location.href=i)}function Wt(t){$t(t.parent&&t.parent.$router,t.props)}var Gt={url:String,replace:Boolean,to:[String,Object]},Xt={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}},qt=Object(o.b)("cell"),Yt=qt[0],Jt=qt[1];function Zt(t,e,n,i){var r,a=e.icon,u=e.size,l=e.title,h=e.label,d=e.value,f=e.isLink,p=n.title||Object(o.e)(l);var g=null!=(r=e.clickable)?r:f,m={clickable:g,center:e.center,required:e.required,borderless:!e.border};return u&&(m[u]=u),t("div",s()([{class:Jt(m),attrs:{role:g?"button":null,tabindex:g?0:null},on:{click:function(t){A(i,"click",t),Wt(i)}}},c(i)]),[n.icon?n.icon():a?t(it,{class:Jt("left-icon"),attrs:{name:a,classPrefix:e.iconPrefix}}):void 0,function(){if(p)return t("div",{class:[Jt("title"),e.titleClass],style:e.titleStyle},[n.title?n.title():t("span",[l]),function(){if(n.label||Object(o.e)(h))return t("div",{class:[Jt("label"),e.labelClass]},[n.label?n.label():h])}()])}(),function(){if(n.default||Object(o.e)(d))return t("div",{class:[Jt("value",{alone:!p}),e.valueClass]},[n.default?n.default():t("span",[d])])}(),function(){var i=n["right-icon"];if(i)return i();if(f){var r=e.arrowDirection;return t(it,{class:Jt("right-icon"),attrs:{name:r?"arrow-"+r:"arrow"}})}}(),null==n.extra?void 0:n.extra()])}Zt.props=i({},Xt,Gt);var te=Yt(Zt);var ee=!o.j&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function ne(){ee&&D(L())}var ie=Object(o.b)("field"),re=ie[0],se=ie[1],ae=re({inheritAttrs:!1,provide:function(){return{vanField:this}},inject:{vanForm:{default:null}},props:i({},Xt,{name:String,rules:Array,disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},autosize:[Boolean,Object],leftIcon:String,rightIcon:String,clearable:Boolean,formatter:Function,maxlength:[Number,String],labelWidth:[Number,String],labelClass:null,labelAlign:String,inputAlign:String,placeholder:String,errorMessage:String,errorMessageAlign:String,showWordLimit:Boolean,value:{type:[Number,String],default:""},type:{type:String,default:"text"},error:{type:Boolean,default:null},colon:{type:Boolean,default:null},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),data:function(){return{focused:!1,validateFailed:!1,validateMessage:""}},watch:{value:function(){this.updateValue(this.value),this.resetValidation(),this.validateWithTrigger("onChange"),this.$nextTick(this.adjustSize)}},mounted:function(){this.updateValue(this.value,this.formatTrigger),this.$nextTick(this.adjustSize),this.vanForm&&this.vanForm.addField(this)},beforeDestroy:function(){this.vanForm&&this.vanForm.removeField(this)},computed:{showClear:function(){var t=this.getProp("readonly");if(this.clearable&&!t){var e=Object(o.e)(this.value)&&""!==this.value,n="always"===this.clearTrigger||"focus"===this.clearTrigger&&this.focused;return e&&n}},showError:function(){return null!==this.error?this.error:!!(this.vanForm&&this.vanForm.showError&&this.validateFailed)||void 0},listeners:function(){return i({},this.$listeners,{blur:this.onBlur,focus:this.onFocus,input:this.onInput,click:this.onClickInput,keypress:this.onKeypress})},labelStyle:function(){var t=this.getProp("labelWidth");if(t)return{width:Object(o.a)(t)}},formValue:function(){return this.children&&(this.$scopedSlots.input||this.$slots.input)?this.children.value:this.value}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},runValidator:function(t,e){return new Promise(function(n){var i=e.validator(t,e);if(Object(o.i)(i))return i.then(n);n(i)})},isEmptyValue:function(t){return Array.isArray(t)?!t.length:0!==t&&!t},runSyncRule:function(t,e){return(!e.required||!this.isEmptyValue(t))&&!(e.pattern&&!e.pattern.test(t))},getRuleMessage:function(t,e){var n=e.message;return Object(o.g)(n)?n(t,e):n},runRules:function(t){var e=this;return t.reduce(function(t,n){return t.then(function(){if(!e.validateFailed){var t=e.formValue;return n.formatter&&(t=n.formatter(t,n)),e.runSyncRule(t,n)?n.validator?e.runValidator(t,n).then(function(i){!1===i&&(e.validateFailed=!0,e.validateMessage=e.getRuleMessage(t,n))}):void 0:(e.validateFailed=!0,void(e.validateMessage=e.getRuleMessage(t,n)))}})},Promise.resolve())},validate:function(t){var e=this;return void 0===t&&(t=this.rules),new Promise(function(n){t||n(),e.resetValidation(),e.runRules(t).then(function(){e.validateFailed?n({name:e.name,message:e.validateMessage}):n()})})},validateWithTrigger:function(t){if(this.vanForm&&this.rules){var e=this.vanForm.validateTrigger===t,n=this.rules.filter(function(n){return n.trigger?n.trigger===t:e});n.length&&this.validate(n)}},resetValidation:function(){this.validateFailed&&(this.validateFailed=!1,this.validateMessage="")},updateValue:function(t,e){void 0===e&&(e="onChange"),t=Object(o.e)(t)?String(t):"";var n=this.maxlength;if(Object(o.e)(n)&&t.length>n&&(t=this.value&&this.value.length===+n?this.value:t.slice(0,n)),"number"===this.type||"digit"===this.type){var i="number"===this.type;t=It(t,i,i)}this.formatter&&e===this.formatTrigger&&(t=this.formatter(t));var r=this.$refs.input;r&&t!==r.value&&(r.value=t),t!==this.value&&this.$emit("input",t)},onInput:function(t){t.target.composing||this.updateValue(t.target.value)},onFocus:function(t){this.focused=!0,this.$emit("focus",t),this.getProp("readonly")&&this.blur()},onBlur:function(t){this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",t),this.validateWithTrigger("onBlur"),ne()},onClick:function(t){this.$emit("click",t)},onClickInput:function(t){this.$emit("click-input",t)},onClickLeftIcon:function(t){this.$emit("click-left-icon",t)},onClickRightIcon:function(t){this.$emit("click-right-icon",t)},onClear:function(t){y(t),this.$emit("input",""),this.$emit("clear",t)},onKeypress:function(t){13===t.keyCode&&(this.getProp("submitOnEnter")||"textarea"===this.type||y(t),"search"===this.type&&this.blur());this.$emit("keypress",t)},adjustSize:function(){var t=this.$refs.input;if("textarea"===this.type&&this.autosize&&t){t.style.height="auto";var e=t.scrollHeight;if(Object(o.h)(this.autosize)){var n=this.autosize,i=n.maxHeight,r=n.minHeight;i&&(e=Math.min(e,i)),r&&(e=Math.max(e,r))}e&&(t.style.height=e+"px")}},genInput:function(){var t=this.$createElement,e=this.type,n=this.getProp("disabled"),r=this.getProp("readonly"),a=this.slots("input"),o=this.getProp("inputAlign");if(a)return t("div",{class:se("control",[o,"custom"]),on:{click:this.onClickInput}},[a]);var u={ref:"input",class:se("control",o),domProps:{value:this.value},attrs:i({},this.$attrs,{name:this.name,disabled:n,readonly:r,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]};if("textarea"===e)return t("textarea",s()([{},u]));var l,c=e;return"number"===e&&(c="text",l="decimal"),"digit"===e&&(c="tel",l="numeric"),t("input",s()([{attrs:{type:c,inputmode:l}},u]))},genLeftIcon:function(){var t=this.$createElement;if(this.slots("left-icon")||this.leftIcon)return t("div",{class:se("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||t(it,{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var t=this.$createElement,e=this.slots;if(e("right-icon")||this.rightIcon)return t("div",{class:se("right-icon"),on:{click:this.onClickRightIcon}},[e("right-icon")||t(it,{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var t=this.$createElement;if(this.showWordLimit&&this.maxlength){var e=(this.value||"").length;return t("div",{class:se("word-limit")},[t("span",{class:se("word-num")},[e]),"/",this.maxlength])}},genMessage:function(){var t=this.$createElement;if(!this.vanForm||!1!==this.vanForm.showErrorMessage){var e=this.errorMessage||this.validateMessage;if(e){var n=this.getProp("errorMessageAlign");return t("div",{class:se("error-message",n)},[e])}}},getProp:function(t){return Object(o.e)(this[t])?this[t]:this.vanForm&&Object(o.e)(this.vanForm[t])?this.vanForm[t]:void 0},genLabel:function(){var t=this.$createElement,e=this.getProp("colon")?":":"";return this.slots("label")?[this.slots("label"),e]:this.label?t("span",[this.label+e]):void 0}},render:function(){var t,e=arguments[0],n=this.slots,i=this.getProp("disabled"),r=this.getProp("labelAlign"),s={icon:this.genLeftIcon},a=this.genLabel();a&&(s.title=function(){return a});var o=this.slots("extra");return o&&(s.extra=function(){return o}),e(te,{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:se("value"),titleClass:[se("label",r),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:s,class:se((t={error:this.showError,disabled:i},t["label-"+r]=r,t["min-height"]="textarea"===this.type&&!this.autosize,t)),on:{click:this.onClick}},[e("div",{class:se("body")},[this.genInput(),this.showClear&&e(it,{attrs:{name:"clear"},class:se("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),n("button")&&e("div",{class:se("button")},[n("button")])]),this.genWordLimit(),this.genMessage()])}}),oe=0;var ue=Object(o.b)("toast"),le=ue[0],ce=ue[1],Ae=le({mixins:[$()],props:{icon:String,className:null,iconPrefix:String,loadingType:String,forbidClick:Boolean,closeOnClick:Boolean,message:[Number,String],type:{type:String,default:"text"},position:{type:String,default:"middle"},transition:{type:String,default:"van-fade"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickable()},destroyed:function(){this.toggleClickable()},watch:{value:"toggleClickable",forbidClick:"toggleClickable"},methods:{onClick:function(){this.closeOnClick&&this.close()},toggleClickable:function(){var t=this.value&&this.forbidClick;this.clickable!==t&&(this.clickable=t,t?(oe||document.body.classList.add("van-toast--unclickable"),oe++):--oe||document.body.classList.remove("van-toast--unclickable"))},onAfterEnter:function(){this.$emit("opened"),this.onOpened&&this.onOpened()},onAfterLeave:function(){this.$emit("closed")},genIcon:function(){var t=this.$createElement,e=this.icon,n=this.type,i=this.iconPrefix,r=this.loadingType;return e||"success"===n||"fail"===n?t(it,{class:ce("icon"),attrs:{classPrefix:i,name:e||n}}):"loading"===n?t(ht,{class:ce("loading"),attrs:{type:r}}):void 0},genMessage:function(){var t=this.$createElement,e=this.type,n=this.message;if(Object(o.e)(n)&&""!==n)return"html"===e?t("div",{class:ce("text"),domProps:{innerHTML:n}}):t("div",{class:ce("text")},[n])}},render:function(){var t,e=arguments[0];return e("transition",{attrs:{name:this.transition},on:{afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[e("div",{directives:[{name:"show",value:this.value}],class:[ce([this.position,(t={},t[this.type]=!this.icon,t)]),this.className],on:{click:this.onClick}},[this.genIcon(),this.genMessage()])])}}),he={icon:"",type:"text",mask:!1,value:!0,message:"",className:"",overlay:!1,onClose:null,onOpened:null,duration:2e3,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,getContainer:"body",overlayStyle:null,closeOnClick:!1,closeOnClickOverlay:!1},de={},fe=[],pe=!1,ge=i({},he);function me(t){return Object(o.h)(t)?t:{message:t}}function ve(){if(o.j)return{};if(!(fe=fe.filter(function(t){return!t.$el.parentNode||(e=t.$el,document.body.contains(e));var e})).length||pe){var t=new(a.a.extend(Ae))({el:document.createElement("div")});t.$on("input",function(e){t.value=e}),fe.push(t)}return fe[fe.length-1]}function ye(t){void 0===t&&(t={});var e=ve();return e.value&&e.updateZIndex(),t=me(t),(t=i({},ge,de[t.type||ge.type],t)).clear=function(){e.value=!1,t.onClose&&(t.onClose(),t.onClose=null),pe&&!o.j&&e.$on("closed",function(){clearTimeout(e.timer),fe=fe.filter(function(t){return t!==e}),E(e.$el),e.$destroy()})},i(e,function(t){return i({},t,{overlay:t.mask||t.overlay,mask:void 0,duration:void 0})}(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout(function(){e.clear()},t.duration)),e}["loading","success","fail"].forEach(function(t){var e;ye[t]=(e=t,function(t){return ye(i({type:e},me(t)))})}),ye.clear=function(t){fe.length&&(t?(fe.forEach(function(t){t.clear()}),fe=[]):pe?fe.shift().clear():fe[0].clear())},ye.setDefaultOptions=function(t,e){"string"==typeof t?de[t]=e:i(ge,t)},ye.resetDefaultOptions=function(t){"string"==typeof t?de[t]=null:(ge=i({},he),de={})},ye.allowMultiple=function(t){void 0===t&&(t=!0),pe=t},ye.install=function(){a.a.use(Ae)},a.a.prototype.$toast=ye;var be=ye,_e=Object(o.b)("button"),we=_e[0],Be=_e[1];function Ce(t,e,n,i){var r,a=e.tag,o=e.icon,u=e.type,l=e.color,h=e.plain,d=e.disabled,f=e.loading,p=e.hairline,g=e.loadingText,m=e.iconPosition,v={};l&&(v.color=h?l:"white",h||(v.background=l),-1!==l.indexOf("gradient")?v.border=0:v.borderColor=l);var y,b,_=[Be([u,e.size,{plain:h,loading:f,disabled:d,hairline:p,block:e.block,round:e.round,square:e.square}]),(r={},r[Tt]=p,r)];function w(){return f?n.loading?n.loading():t(ht,{class:Be("loading"),attrs:{size:e.loadingSize,type:e.loadingType,color:"currentColor"}}):o?t(it,{attrs:{name:o,classPrefix:e.iconPrefix},class:Be("icon")}):void 0}return t(a,s()([{style:v,class:_,attrs:{type:e.nativeType,disabled:d},on:{click:function(t){f||d||(A(i,"click",t),Wt(i))},touchstart:function(t){A(i,"touchstart",t)}}},c(i)]),[t("div",{class:Be("content")},[(b=[],"left"===m&&b.push(w()),(y=f?g:n.default?n.default():e.text)&&b.push(t("span",{class:Be("text")},[y])),"right"===m&&b.push(w()),b)])])}Ce.props=i({},Gt,{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"},iconPosition:{type:String,default:"left"}});var Te=we(Ce);function Ee(t,e){var n=e.$vnode.componentOptions;if(n&&n.children){var i=function(t){var e=[];return function t(n){n.forEach(function(n){e.push(n),n.componentInstance&&t(n.componentInstance.$children.map(function(t){return t.$vnode})),n.children&&t(n.children)})}(t),e}(n.children);t.sort(function(t,e){return i.indexOf(t.$vnode)-i.indexOf(e.$vnode)})}}function Se(t,e){var n,i;void 0===e&&(e={});var r=e.indexKey||"index";return{inject:(n={},n[t]={default:null},n),computed:(i={parent:function(){return this.disableBindRelation?null:this[t]}},i[r]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},i),watch:{disableBindRelation:function(t){t||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter(function(e){return e!==t}))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);Ee(t,this.parent),this.parent.children=t}}}}}function ke(t){return{provide:function(){var e;return(e={})[t]=this,e},data:function(){return{children:[]}}}}var xe,Ue=Object(o.b)("goods-action"),Ie=Ue[0],Fe=Ue[1],Oe=Ie({mixins:[ke("vanGoodsAction")],props:{safeAreaInsetBottom:{type:Boolean,default:!0}},render:function(){return(0,arguments[0])("div",{class:Fe({unfit:!this.safeAreaInsetBottom})},[this.slots()])}}),Qe=Object(o.b)("goods-action-button"),Ne=Qe[0],Le=Qe[1],De=Ne({mixins:[Se("vanGoodsAction")],props:i({},Gt,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),computed:{isFirst:function(){var t=this.parent&&this.parent.children[this.index-1];return!t||t.$options.name!==this.$options.name},isLast:function(){var t=this.parent&&this.parent.children[this.index+1];return!t||t.$options.name!==this.$options.name}},methods:{onClick:function(t){this.$emit("click",t),$t(this.$router,this)}},render:function(){return(0,arguments[0])(Te,{class:Le([{first:this.isFirst,last:this.isLast},this.type]),attrs:{size:"large",type:this.type,icon:this.icon,color:this.color,loading:this.loading,disabled:this.disabled},on:{click:this.onClick}},[this.slots()||this.text])}}),Pe=Object(o.b)("dialog"),Re=Pe[0],He=Pe[1],Me=Pe[2],Ke=Re({mixins:[$()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var e=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,function(n){!1!==n&&e.loading[t]&&e.onClose(t),e.loading.confirm=!1,e.loading.cancel=!1})):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genRoundButtons:function(){var t=this,e=this.$createElement;return e(Oe,{class:He("footer")},[this.showCancelButton&&e(De,{attrs:{size:"large",type:"warning",text:this.cancelButtonText||Me("cancel"),color:this.cancelButtonColor,loading:this.loading.cancel},class:He("cancel"),on:{click:function(){t.handleAction("cancel")}}}),this.showConfirmButton&&e(De,{attrs:{size:"large",type:"danger",text:this.confirmButtonText||Me("confirm"),color:this.confirmButtonColor,loading:this.loading.confirm},class:He("confirm"),on:{click:function(){t.handleAction("confirm")}}})])},genButtons:function(){var t,e=this,n=this.$createElement,i=this.showCancelButton&&this.showConfirmButton;return n("div",{class:[wt,He("footer")]},[this.showCancelButton&&n(Te,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||Me("cancel")},class:He("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&n(Te,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||Me("confirm")},class:[He("confirm"),(t={},t[Bt]=i,t)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(t,e){var n=this.$createElement;if(e)return n("div",{class:He("content")},[e]);var i=this.message,r=this.messageAlign;if(i){var a,o,u={class:He("message",(a={"has-title":t},a[r]=r,a)),domProps:(o={},o[this.allowHtml?"innerHTML":"textContent"]=i,o)};return n("div",{class:He("content",{isolated:!t})},[n("div",s()([{},u]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var e=this.message,n=this.slots(),i=this.slots("title")||this.title,r=i&&t("div",{class:He("header",{isolated:!e&&!n})},[i]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||e},class:[He([this.theme]),this.className],style:{width:Object(o.a)(this.width)}},[r,this.genContent(i,n),"round-button"===this.theme?this.genRoundButtons():this.genButtons()])])}}});function je(t){return o.j?Promise.resolve():new Promise(function(e,n){var r;xe&&(r=xe.$el,document.body.contains(r))||(xe&&xe.$destroy(),(xe=new(a.a.extend(Ke))({el:document.createElement("div"),propsData:{lazyRender:!1}})).$on("input",function(t){xe.value=t})),i(xe,je.currentOptions,t,{resolve:e,reject:n})})}je.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(t){xe["confirm"===t?"resolve":"reject"](t)}},je.alert=je,je.confirm=function(t){return je(i({showCancelButton:!0},t))},je.close=function(){xe&&(xe.value=!1)},je.setDefaultOptions=function(t){i(je.currentOptions,t)},je.resetDefaultOptions=function(){je.currentOptions=i({},je.defaultOptions)},je.resetDefaultOptions(),je.install=function(){a.a.use(Ke)},je.Component=Ke,a.a.prototype.$dialog=je;var Ve=je,ze=Object(o.b)("address-edit-detail"),$e=ze[0],We=ze[1],Ge=ze[2],Xe=!o.j&&/android/.test(navigator.userAgent.toLowerCase()),qe=$e({props:{value:String,errorMessage:String,focused:Boolean,detailRows:[Number,String],searchResult:Array,detailMaxlength:[Number,String],showSearchResult:Boolean},computed:{shouldShowSearchResult:function(){return this.focused&&this.searchResult&&this.showSearchResult}},methods:{onSelect:function(t){this.$emit("select-search",t),this.$emit("input",((t.address||"")+" "+(t.name||"")).trim())},onFinish:function(){this.$refs.field.blur()},genFinish:function(){var t=this.$createElement;if(this.value&&this.focused&&Xe)return t("div",{class:We("finish"),on:{click:this.onFinish}},[Ge("complete")])},genSearchResult:function(){var t=this,e=this.$createElement,n=this.value,i=this.shouldShowSearchResult,r=this.searchResult;if(i)return r.map(function(i){return e(te,{key:i.name+i.address,attrs:{clickable:!0,border:!1,icon:"location-o",label:i.address},class:We("search-item"),on:{click:function(){t.onSelect(i)}},scopedSlots:{title:function(){if(i.name){var t=i.name.replace(n,"<span class="+We("keyword")+">"+n+"</span>");return e("div",{domProps:{innerHTML:t}})}}}})})}},render:function(){var t=arguments[0];return t(te,{class:We()},[t(ae,{attrs:{autosize:!0,rows:this.detailRows,clearable:!Xe,type:"textarea",value:this.value,errorMessage:this.errorMessage,border:!this.shouldShowSearchResult,label:Ge("label"),maxlength:this.detailMaxlength,placeholder:Ge("placeholder")},ref:"field",scopedSlots:{icon:this.genFinish},on:i({},this.$listeners)}),this.genSearchResult()])}}),Ye={size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}},Je={inject:{vanField:{default:null}},watch:{value:function(){var t=this.vanField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.vanField;t&&!t.children&&(t.children=this)}},Ze=Object(o.b)("switch"),tn=Ze[0],en=Ze[1],nn=tn({mixins:[Je],props:Ye,computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:Object(o.a)(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(t){if(this.$emit("click",t),!this.disabled&&!this.loading){var e=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",e),this.$emit("change",e)}},genLoading:function(){var t=this.$createElement;if(this.loading){var e=this.checked?this.activeColor:this.inactiveColor;return t(ht,{class:en("loading"),attrs:{color:e}})}}},render:function(){var t=arguments[0],e=this.checked,n=this.loading,i=this.disabled;return t("div",{class:en({on:e,loading:n,disabled:i}),attrs:{role:"switch","aria-checked":String(e)},style:this.style,on:{click:this.onClick}},[t("div",{class:en("node")},[this.genLoading()])])}}),rn=Object(o.b)("address-edit"),sn=rn[0],an=rn[1],on=rn[2],un={name:"",tel:"",country:"",province:"",city:"",county:"",areaCode:"",postalCode:"",addressDetail:"",isDefault:!1};var ln=sn({props:{areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showDelete:Boolean,showPostal:Boolean,searchResult:Array,telMaxlength:[Number,String],showSetDefault:Boolean,saveButtonText:String,areaPlaceholder:String,deleteButtonText:String,showSearchResult:Boolean,showArea:{type:Boolean,default:!0},showDetail:{type:Boolean,default:!0},disableArea:Boolean,detailRows:{type:[Number,String],default:1},detailMaxlength:{type:[Number,String],default:200},addressInfo:{type:Object,default:function(){return i({},un)}},telValidator:{type:Function,default:vt},postalValidator:{type:Function,default:function(t){return/^\d{6}$/.test(t)}},areaColumnsPlaceholder:{type:Array,default:function(){return[]}}},data:function(){return{data:{},showAreaPopup:!1,detailFocused:!1,errorInfo:{tel:"",name:"",areaCode:"",postalCode:"",addressDetail:""}}},computed:{areaListLoaded:function(){return Object(o.h)(this.areaList)&&Object.keys(this.areaList).length},areaText:function(){var t=this.data,e=t.country,n=t.province,i=t.city,r=t.county;if(t.areaCode){var s=[e,n,i,r];return n&&n===i&&s.splice(1,1),s.filter(function(t){return t}).join("/")}return""},hideBottomFields:function(){var t=this.searchResult;return t&&t.length&&this.detailFocused}},watch:{addressInfo:{handler:function(t){this.data=i({},un,t),this.setAreaCode(t.areaCode)},deep:!0,immediate:!0},areaList:function(){this.setAreaCode(this.data.areaCode)}},methods:{onFocus:function(t){this.errorInfo[t]="",this.detailFocused="addressDetail"===t,this.$emit("focus",t)},onChangeDetail:function(t){this.data.addressDetail=t,this.$emit("change-detail",t)},onAreaConfirm:function(t){(t=t.filter(function(t){return!!t})).some(function(t){return!t.code})?be(on("areaEmpty")):(this.showAreaPopup=!1,this.assignAreaValues(),this.$emit("change-area",t))},assignAreaValues:function(){var t=this.$refs.area;if(t){var e=t.getArea();e.areaCode=e.code,delete e.code,i(this.data,e)}},onSave:function(){var t=this,e=["name","tel"];this.showArea&&e.push("areaCode"),this.showDetail&&e.push("addressDetail"),this.showPostal&&e.push("postalCode"),e.every(function(e){var n=t.getErrorMessage(e);return n&&(t.errorInfo[e]=n),!n})&&!this.isSaving&&this.$emit("save",this.data)},getErrorMessage:function(t){var e=String(this.data[t]||"").trim();if(this.validator){var n=this.validator(t,e);if(n)return n}switch(t){case"name":return e?"":on("nameEmpty");case"tel":return this.telValidator(e)?"":on("telInvalid");case"areaCode":return e?"":on("areaEmpty");case"addressDetail":return e?"":on("addressEmpty");case"postalCode":return e&&!this.postalValidator(e)?on("postalEmpty"):""}},onDelete:function(){var t=this;Ve.confirm({title:on("confirmDelete")}).then(function(){t.$emit("delete",t.data)}).catch(function(){t.$emit("cancel-delete",t.data)})},getArea:function(){return this.$refs.area?this.$refs.area.getValues():[]},setAreaCode:function(t){this.data.areaCode=t||"",t&&this.$nextTick(this.assignAreaValues)},setAddressDetail:function(t){this.data.addressDetail=t},onDetailBlur:function(){var t=this;setTimeout(function(){t.detailFocused=!1})},genSetDefaultCell:function(t){var e=this;if(this.showSetDefault){var n={"right-icon":function(){return t(nn,{attrs:{size:"24"},on:{change:function(t){e.$emit("change-default",t)}},model:{value:e.data.isDefault,callback:function(t){e.$set(e.data,"isDefault",t)}}})}};return t(te,{directives:[{name:"show",value:!this.hideBottomFields}],attrs:{center:!0,title:on("defaultAddress")},class:an("default"),scopedSlots:n})}return t()}},render:function(t){var e=this,n=this.data,i=this.errorInfo,r=this.disableArea,s=this.hideBottomFields,a=function(t){return function(){return e.onFocus(t)}};return t("div",{class:an()},[t("div",{class:an("fields")},[t(ae,{attrs:{clearable:!0,label:on("name"),placeholder:on("namePlaceholder"),errorMessage:i.name},on:{focus:a("name")},model:{value:n.name,callback:function(t){e.$set(n,"name",t)}}}),t(ae,{attrs:{clearable:!0,type:"tel",label:on("tel"),maxlength:this.telMaxlength,placeholder:on("telPlaceholder"),errorMessage:i.tel},on:{focus:a("tel")},model:{value:n.tel,callback:function(t){e.$set(n,"tel",t)}}}),t(ae,{directives:[{name:"show",value:this.showArea}],attrs:{readonly:!0,clickable:!r,label:on("area"),placeholder:this.areaPlaceholder||on("areaPlaceholder"),errorMessage:i.areaCode,rightIcon:r?null:"arrow",value:this.areaText},on:{focus:a("areaCode"),click:function(){e.$emit("click-area"),e.showAreaPopup=!r}}}),t(qe,{directives:[{name:"show",value:this.showDetail}],attrs:{focused:this.detailFocused,value:n.addressDetail,errorMessage:i.addressDetail,detailRows:this.detailRows,detailMaxlength:this.detailMaxlength,searchResult:this.searchResult,showSearchResult:this.showSearchResult},on:{focus:a("addressDetail"),blur:this.onDetailBlur,input:this.onChangeDetail,"select-search":function(t){e.$emit("select-search",t)}}}),this.showPostal&&t(ae,{directives:[{name:"show",value:!s}],attrs:{type:"tel",maxlength:"6",label:on("postal"),placeholder:on("postal"),errorMessage:i.postalCode},on:{focus:a("postalCode")},model:{value:n.postalCode,callback:function(t){e.$set(n,"postalCode",t)}}}),this.slots()]),this.genSetDefaultCell(t),t("div",{directives:[{name:"show",value:!s}],class:an("buttons")},[t(Te,{attrs:{block:!0,round:!0,loading:this.isSaving,type:"danger",text:this.saveButtonText||on("save")},on:{click:this.onSave}}),this.showDelete&&t(Te,{attrs:{block:!0,round:!0,loading:this.isDeleting,text:this.deleteButtonText||on("delete")},on:{click:this.onDelete}})]),t(ot,{attrs:{round:!0,position:"bottom",lazyRender:!1,getContainer:"body"},model:{value:e.showAreaPopup,callback:function(t){e.showAreaPopup=t}}},[t(zt,{ref:"area",attrs:{value:n.areaCode,loading:!this.areaListLoaded,areaList:this.areaList,columnsPlaceholder:this.areaColumnsPlaceholder},on:{confirm:this.onAreaConfirm,cancel:function(){e.showAreaPopup=!1}}})])])}}),cn=Object(o.b)("radio-group"),An=cn[0],hn=cn[1],dn=An({mixins:[ke("vanRadio"),Je],props:{value:null,disabled:Boolean,direction:String,checkedColor:String,iconSize:[Number,String]},watch:{value:function(t){this.$emit("change",t)}},render:function(){return(0,arguments[0])("div",{class:hn([this.direction]),attrs:{role:"radiogroup"}},[this.slots()])}}),fn=Object(o.b)("tag"),pn=fn[0],gn=fn[1];function mn(t,e,n,i){var r,a=e.type,o=e.mark,u=e.plain,l=e.color,h=e.round,d=e.size,f=e.textColor,p=((r={})[u?"color":"backgroundColor"]=l,r);u?(p.color=f||l,p.borderColor=l):(p.color=f,p.background=l);var g={mark:o,plain:u,round:h};d&&(g[d]=d);var m=e.closeable&&t(it,{attrs:{name:"cross"},class:gn("close"),on:{click:function(t){t.stopPropagation(),A(i,"close")}}});return t("transition",{attrs:{name:e.closeable?"van-fade":null}},[t("span",s()([{key:"content",style:p,class:gn([g,a])},c(i,!0)]),[null==n.default?void 0:n.default(),m])])}mn.props={size:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}};var vn=pn(mn),yn=function(t){var e=t.parent,n=t.bem,i=t.role;return{mixins:[Se(e),Je],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===i&&!this.checked?-1:0}},methods:{onClick:function(t){var e=this,n=t.target,i=this.$refs.icon,r=i===n||i.contains(n);this.isDisabled||!r&&this.labelDisabled?this.$emit("click",t):(this.toggle(),setTimeout(function(){e.$emit("click",t)}))},genIcon:function(){var t=this.$createElement,e=this.checked,i=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:n("icon",[this.shape,{disabled:this.isDisabled,checked:e}]),style:{fontSize:Object(o.a)(i)}},[this.slots("icon",{checked:e})||t(it,{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,e=this.slots();if(e)return t("span",{class:n("label",[this.labelPosition,{disabled:this.isDisabled}])},[e])}},render:function(){var t=arguments[0],e=[this.genIcon()];return"left"===this.labelPosition?e.unshift(this.genLabel()):e.push(this.genLabel()),t("div",{attrs:{role:i,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:n([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[e])}}},bn=Object(o.b)("radio"),_n=(0,bn[0])({mixins:[yn({bem:bn[1],role:"radio",parent:"vanRadio"})],computed:{currentValue:{get:function(){return this.parent?this.parent.value:this.value},set:function(t){(this.parent||this).$emit("input",t)}},checked:function(){return this.currentValue===this.name}},methods:{toggle:function(){this.currentValue=this.name}}}),wn=Object(o.b)("address-item"),Bn=wn[0],Cn=wn[1];function Tn(t,e,n,r){var a=e.disabled,o=e.switchable;return t("div",{class:Cn({disabled:a}),on:{click:function(){o&&A(r,"select"),A(r,"click")}}},[t(te,s()([{attrs:{border:!1,valueClass:Cn("value")},scopedSlots:{default:function(){var r=e.data,s=[t("div",{class:Cn("name")},[r.name+" "+r.tel,n.tag?n.tag(i({},e.data)):e.data.isDefault&&e.defaultTagText?t(vn,{attrs:{type:"danger",round:!0},class:Cn("tag")},[e.defaultTagText]):void 0]),t("div",{class:Cn("address")},[r.address])];return o&&!a?t(_n,{attrs:{name:r.id,iconSize:18}},[s]):s},"right-icon":function(){return t(it,{attrs:{name:"edit"},class:Cn("edit"),on:{click:function(t){t.stopPropagation(),A(r,"edit"),A(r,"click")}}})}}},c(r)])),null==n.bottom?void 0:n.bottom(i({},e.data,{disabled:a}))])}Tn.props={data:Object,disabled:Boolean,switchable:Boolean,defaultTagText:String};var En=Bn(Tn),Sn=Object(o.b)("address-list"),kn=Sn[0],xn=Sn[1],Un=Sn[2];function In(t,e,n,i){function r(r,s){if(r)return r.map(function(r,a){return t(En,{attrs:{data:r,disabled:s,switchable:e.switchable,defaultTagText:e.defaultTagText},key:r.id,scopedSlots:{bottom:n["item-bottom"],tag:n.tag},on:{select:function(){A(i,s?"select-disabled":"select",r,a),s||A(i,"input",r.id)},edit:function(){A(i,s?"edit-disabled":"edit",r,a)},click:function(){A(i,"click-item",r,a)}}})})}var a=r(e.list),o=r(e.disabledList,!0);return t("div",s()([{class:xn()},c(i)]),[null==n.top?void 0:n.top(),t(dn,{attrs:{value:e.value}},[a]),e.disabledText&&t("div",{class:xn("disabled-text")},[e.disabledText]),o,null==n.default?void 0:n.default(),t("div",{class:xn("bottom")},[t(Te,{attrs:{round:!0,block:!0,type:"danger",text:e.addButtonText||Un("add")},class:xn("add"),on:{click:function(){A(i,"add")}}})])])}In.props={list:Array,value:[Number,String],disabledList:Array,disabledText:String,addButtonText:String,defaultTagText:String,switchable:{type:Boolean,default:!0}};var Fn=kn(In),On=n("mRXp"),Qn=Object(o.b)("badge"),Nn=Qn[0],Ln=Qn[1],Dn=Nn({props:{dot:Boolean,max:[Number,String],color:String,content:[Number,String],tag:{type:String,default:"div"}},methods:{hasContent:function(){return!!(this.$scopedSlots.content||Object(o.e)(this.content)&&""!==this.content)},renderContent:function(){var t=this.dot,e=this.max,n=this.content;if(!t&&this.hasContent())return this.$scopedSlots.content?this.$scopedSlots.content():Object(o.e)(e)&&Object(On.b)(n)&&+n>e?e+"+":n},renderBadge:function(){var t=this.$createElement;if(this.hasContent()||this.dot)return t("div",{class:Ln({dot:this.dot,fixed:!!this.$scopedSlots.default}),style:{background:this.color}},[this.renderContent()])}},render:function(){var t=arguments[0];return this.$scopedSlots.default?t(this.tag,{class:Ln("wrapper")},[this.$scopedSlots.default(),this.renderBadge()]):this.renderBadge()}}),Pn=n("3X7g");function Rn(t){return"[object Date]"===Object.prototype.toString.call(t)&&!Object(On.a)(t.getTime())}var Hn=Object(o.b)("calendar"),Mn=Hn[0],Kn=Hn[1],jn=Hn[2];function Vn(t,e){var n=t.getFullYear(),i=e.getFullYear(),r=t.getMonth(),s=e.getMonth();return n===i?r===s?0:r>s?1:-1:n>i?1:-1}function zn(t,e){var n=Vn(t,e);if(0===n){var i=t.getDate(),r=e.getDate();return i===r?0:i>r?1:-1}return n}function $n(t,e){return(t=new Date(t)).setDate(t.getDate()+e),t}function Wn(t){return $n(t,1)}function Gn(t){return new Date(t)}function Xn(t){return Array.isArray(t)?t.map(function(t){return null===t?t:Gn(t)}):Gn(t)}function qn(t,e){return 32-new Date(t,e-1,32).getDate()}var Yn=(0,Object(o.b)("calendar-month")[0])({props:{date:Date,type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:[Number,String],formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number},data:function(){return{visible:!1}},computed:{title:function(){return t=this.date,jn("monthTitle",t.getFullYear(),t.getMonth()+1);var t},rowHeightWithUnit:function(){return Object(o.a)(this.rowHeight)},offset:function(){var t=this.firstDayOfWeek,e=this.date.getDay();return t?(e+7-this.firstDayOfWeek)%7:e},totalDay:function(){return qn(this.date.getFullYear(),this.date.getMonth()+1)},shouldRender:function(){return this.visible||!this.lazyRender},placeholders:function(){for(var t=[],e=Math.ceil((this.totalDay+this.offset)/7),n=1;n<=e;n++)t.push({type:"placeholder"});return t},days:function(){for(var t=[],e=this.date.getFullYear(),n=this.date.getMonth(),i=1;i<=this.totalDay;i++){var r=new Date(e,n,i),s=this.getDayType(r),a={date:r,type:s,text:i,bottomInfo:this.getBottomInfo(s)};this.formatter&&(a=this.formatter(a)),t.push(a)}return t}},methods:{getHeight:function(){return this.height||(this.height=this.$el.getBoundingClientRect().height),this.height},scrollIntoView:function(t){var e=this.$refs,n=e.days,i=e.month;N(t,(this.showSubtitle?n:i).getBoundingClientRect().top-t.getBoundingClientRect().top+t.scrollTop)},getMultipleDayType:function(t){var e=this,n=function(t){return e.currentDate.some(function(e){return 0===zn(e,t)})};if(n(t)){var i=$n(t,-1),r=Wn(t),s=n(i),a=n(r);return s&&a?"multiple-middle":s?"end":a?"start":"multiple-selected"}return""},getRangeDayType:function(t){var e=this.currentDate,n=e[0],i=e[1];if(!n)return"";var r=zn(t,n);if(!i)return 0===r?"start":"";var s=zn(t,i);return 0===r&&0===s&&this.allowSameDay?"start-end":0===r?"start":0===s?"end":r>0&&s<0?"middle":void 0},getDayType:function(t){var e=this.type,n=this.minDate,i=this.maxDate,r=this.currentDate;return zn(t,n)<0||zn(t,i)>0?"disabled":null!==r?"single"===e?0===zn(t,r)?"selected":"":"multiple"===e?this.getMultipleDayType(t):"range"===e?this.getRangeDayType(t):void 0:void 0},getBottomInfo:function(t){if("range"===this.type){if("start"===t||"end"===t)return jn(t);if("start-end"===t)return jn("startEnd")}},getDayStyle:function(t,e){var n={height:this.rowHeightWithUnit};return"placeholder"===t?(n.width="100%",n):(0===e&&(n.marginLeft=100*this.offset/7+"%"),this.color&&("start"===t||"end"===t||"start-end"===t||"multiple-selected"===t||"multiple-middle"===t?n.background=this.color:"middle"===t&&(n.color=this.color)),n)},genTitle:function(){var t=this.$createElement;if(this.showMonthTitle)return t("div",{class:Kn("month-title")},[this.title])},genMark:function(){var t=this.$createElement;if(this.showMark&&this.shouldRender)return t("div",{class:Kn("month-mark")},[this.date.getMonth()+1])},genDays:function(){var t=this.$createElement,e=this.shouldRender?this.days:this.placeholders;return t("div",{ref:"days",attrs:{role:"grid"},class:Kn("days")},[this.genMark(),e.map(this.genDay)])},genDay:function(t,e){var n=this,i=this.$createElement,r=t.type,s=t.topInfo,a=t.bottomInfo,o=this.getDayStyle(r,e),u="disabled"===r,l=function(){u||n.$emit("click",t)},c=s&&i("div",{class:Kn("top-info")},[s]),A=a&&i("div",{class:Kn("bottom-info")},[a]);return"selected"===r?i("div",{attrs:{role:"gridcell",tabindex:-1},style:o,class:[Kn("day"),t.className],on:{click:l}},[i("div",{class:Kn("selected-day"),style:{width:this.rowHeightWithUnit,height:this.rowHeightWithUnit,background:this.color}},[c,t.text,A])]):i("div",{attrs:{role:"gridcell",tabindex:u?null:-1},style:o,class:[Kn("day",r),t.className],on:{click:l}},[c,t.text,A])}},render:function(){return(0,arguments[0])("div",{class:Kn("month"),ref:"month"},[this.genTitle(),this.genDays()])}}),Jn=(0,Object(o.b)("calendar-header")[0])({props:{title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},methods:{genTitle:function(){var t=this.$createElement;if(this.showTitle){var e=this.slots("title")||this.title||jn("title");return t("div",{class:Kn("header-title")},[e])}},genSubtitle:function(){var t=this.$createElement;if(this.showSubtitle)return t("div",{class:Kn("header-subtitle")},[this.subtitle])},genWeekDays:function(){var t=this.$createElement,e=jn("weekdays"),n=this.firstDayOfWeek,i=[].concat(e.slice(n,7),e.slice(0,n));return t("div",{class:Kn("weekdays")},[i.map(function(e){return t("span",{class:Kn("weekday")},[e])})])}},render:function(){return(0,arguments[0])("div",{class:Kn("header")},[this.genTitle(),this.genSubtitle(),this.genWeekDays()])}}),Zn=Mn({props:{title:String,color:String,value:Boolean,readonly:Boolean,formatter:Function,rowHeight:[Number,String],confirmText:String,rangePrompt:String,defaultDate:[Date,Array],getContainer:[String,Function],allowSameDay:Boolean,confirmDisabledText:String,type:{type:String,default:"single"},round:{type:Boolean,default:!0},position:{type:String,default:"bottom"},poppable:{type:Boolean,default:!0},maxRange:{type:[Number,String],default:null},lazyRender:{type:Boolean,default:!0},showMark:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},minDate:{type:Date,validator:Rn,default:function(){return new Date}},maxDate:{type:Date,validator:Rn,default:function(){var t=new Date;return new Date(t.getFullYear(),t.getMonth()+6,t.getDate())}},firstDayOfWeek:{type:[Number,String],default:0,validator:function(t){return t>=0&&t<=6}}},data:function(){return{subtitle:"",currentDate:this.getInitialDate()}},computed:{months:function(){var t=[],e=new Date(this.minDate);e.setDate(1);do{t.push(new Date(e)),e.setMonth(e.getMonth()+1)}while(1!==Vn(e,this.maxDate));return t},buttonDisabled:function(){var t=this.type,e=this.currentDate;if(e){if("range"===t)return!e[0]||!e[1];if("multiple"===t)return!e.length}return!e},dayOffset:function(){return this.firstDayOfWeek?this.firstDayOfWeek%7:0}},watch:{value:"init",type:function(){this.reset()},defaultDate:function(t){this.currentDate=t,this.scrollIntoView()}},mounted:function(){this.init()},activated:function(){this.init()},methods:{reset:function(t){void 0===t&&(t=this.getInitialDate()),this.currentDate=t,this.scrollIntoView()},init:function(){var t=this;this.poppable&&!this.value||this.$nextTick(function(){t.bodyHeight=Math.floor(t.$refs.body.getBoundingClientRect().height),t.onScroll(),t.scrollIntoView()})},scrollToDate:function(t){var e=this;Object(Pn.c)(function(){var n=e.value||!e.poppable;t&&n&&(e.months.some(function(n,i){if(0===Vn(n,t)){var r=e.$refs,s=r.body;return r.months[i].scrollIntoView(s),!0}return!1}),e.onScroll())})},scrollIntoView:function(){var t=this.currentDate;if(t){var e="single"===this.type?t:t[0];this.scrollToDate(e)}},getInitialDate:function(){var t=this.type,e=this.minDate,n=this.maxDate,i=this.defaultDate;if(null===i)return i;var r=new Date;if(-1===zn(r,e)?r=e:1===zn(r,n)&&(r=n),"range"===t){var s=i||[],a=s[0],o=s[1];return[a||r,o||Wn(r)]}return"multiple"===t?i||[r]:i||r},onScroll:function(){var t=this.$refs,e=t.body,n=t.months,i=Q(e),r=i+this.bodyHeight,s=n.map(function(t){return t.getHeight()});if(!(r>s.reduce(function(t,e){return t+e},0)&&i>0)){for(var a,o=0,u=[-1,-1],l=0;l<n.length;l++){o<=r&&o+s[l]>=i&&(u[1]=l,a||(a=n[l],u[0]=l),n[l].showed||(n[l].showed=!0,this.$emit("month-show",{date:n[l].date,title:n[l].title}))),o+=s[l]}n.forEach(function(t,e){t.visible=e>=u[0]-1&&e<=u[1]+1}),a&&(this.subtitle=a.title)}},onClickDay:function(t){if(!this.readonly){var e=t.date,n=this.type,i=this.currentDate;if("range"===n){if(!i)return void this.select([e,null]);var r=i[0],s=i[1];if(r&&!s){var a=zn(e,r);1===a?this.select([r,e],!0):-1===a?this.select([e,null]):this.allowSameDay&&this.select([e,e],!0)}else this.select([e,null])}else if("multiple"===n){if(!i)return void this.select([e]);var o;if(this.currentDate.some(function(t,n){var i=0===zn(t,e);return i&&(o=n),i})){var u=i.splice(o,1)[0];this.$emit("unselect",Gn(u))}else this.maxRange&&i.length>=this.maxRange?be(this.rangePrompt||jn("rangePrompt",this.maxRange)):this.select([].concat(i,[e]))}else this.select(e,!0)}},togglePopup:function(t){this.$emit("input",t)},select:function(t,e){var n=this,i=function(t){n.currentDate=t,n.$emit("select",Xn(n.currentDate))};if(e&&"range"===this.type&&!this.checkRange(t))return void(this.showConfirm?i([t[0],$n(t[0],this.maxRange-1)]):i(t));i(t),e&&!this.showConfirm&&this.onConfirm()},checkRange:function(t){var e=this.maxRange,n=this.rangePrompt;return!(e&&function(t){var e=t[0].getTime();return(t[1].getTime()-e)/864e5+1}(t)>e)||(be(n||jn("rangePrompt",e)),!1)},onConfirm:function(){this.$emit("confirm",Xn(this.currentDate))},genMonth:function(t,e){var n=this.$createElement,i=0!==e||!this.showSubtitle;return n(Yn,{ref:"months",refInFor:!0,attrs:{date:t,type:this.type,color:this.color,minDate:this.minDate,maxDate:this.maxDate,showMark:this.showMark,formatter:this.formatter,rowHeight:this.rowHeight,lazyRender:this.lazyRender,currentDate:this.currentDate,showSubtitle:this.showSubtitle,allowSameDay:this.allowSameDay,showMonthTitle:i,firstDayOfWeek:this.dayOffset},on:{click:this.onClickDay}})},genFooterContent:function(){var t=this.$createElement,e=this.slots("footer");if(e)return e;if(this.showConfirm){var n=this.buttonDisabled?this.confirmDisabledText:this.confirmText;return t(Te,{attrs:{round:!0,block:!0,type:"danger",color:this.color,disabled:this.buttonDisabled,nativeType:"button"},class:Kn("confirm"),on:{click:this.onConfirm}},[n||jn("confirm")])}},genFooter:function(){return(0,this.$createElement)("div",{class:Kn("footer",{unfit:!this.safeAreaInsetBottom})},[this.genFooterContent()])},genCalendar:function(){var t=this,e=this.$createElement;return e("div",{class:Kn()},[e(Jn,{attrs:{title:this.title,showTitle:this.showTitle,subtitle:this.subtitle,showSubtitle:this.showSubtitle,firstDayOfWeek:this.dayOffset},scopedSlots:{title:function(){return t.slots("title")}}}),e("div",{ref:"body",class:Kn("body"),on:{scroll:this.onScroll}},[this.months.map(this.genMonth)]),this.genFooter()])}},render:function(){var t=this,e=arguments[0];if(this.poppable){var n,i=function(e){return function(){return t.$emit(e)}};return e(ot,{attrs:(n={round:!0,value:this.value},n.round=this.round,n.position=this.position,n.closeable=this.showTitle||this.showSubtitle,n.getContainer=this.getContainer,n.closeOnPopstate=this.closeOnPopstate,n.closeOnClickOverlay=this.closeOnClickOverlay,n),class:Kn("popup"),on:{input:this.togglePopup,open:i("open"),opened:i("opened"),close:i("close"),closed:i("closed")}},[this.genCalendar()])}return this.genCalendar()}}),ti=Object(o.b)("image"),ei=ti[0],ni=ti[1],ii=ei({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var t={};return Object(o.e)(this.width)&&(t.width=Object(o.a)(this.width)),Object(o.e)(this.height)&&(t.height=Object(o.a)(this.height)),Object(o.e)(this.radius)&&(t.overflow="hidden",t.borderRadius=Object(o.a)(this.radius)),t}},created:function(){var t=this.$Lazyload;t&&o.d&&(t.$on("loaded",this.onLazyLoaded),t.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var t=this.$Lazyload;t&&(t.$off("loaded",this.onLazyLoaded),t.$off("error",this.onLazyLoadError))},methods:{onLoad:function(t){this.loading=!1,this.$emit("load",t)},onLazyLoaded:function(t){t.el===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(t){t.el!==this.$refs.image||this.error||this.onError()},onError:function(t){this.error=!0,this.loading=!1,this.$emit("error",t)},onClick:function(t){this.$emit("click",t)},genPlaceholder:function(){var t=this.$createElement;return this.loading&&this.showLoading?t("div",{class:ni("loading")},[this.slots("loading")||t(it,{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:ni("loading-icon")})]):this.error&&this.showError?t("div",{class:ni("error")},[this.slots("error")||t(it,{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:ni("error-icon")})]):void 0},genImage:function(){var t=this.$createElement,e={class:ni("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?t("img",s()([{ref:"image",directives:[{name:"lazy",value:this.src}]},e])):t("img",s()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},e]))}},render:function(){return(0,arguments[0])("div",{class:ni({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}}),ri=Object(o.b)("card"),si=ri[0],ai=ri[1];function oi(t,e,n,i){var r,a=e.thumb,u=n.num||Object(o.e)(e.num),l=n.price||Object(o.e)(e.price),h=n["origin-price"]||Object(o.e)(e.originPrice),d=u||l||h||n.bottom;function f(t){A(i,"click-thumb",t)}return t("div",s()([{class:ai()},c(i,!0)]),[t("div",{class:ai("header")},[function(){if(n.thumb||a)return t("a",{attrs:{href:e.thumbLink},class:ai("thumb"),on:{click:f}},[n.thumb?n.thumb():t(ii,{attrs:{src:a,width:"100%",height:"100%",fit:"cover","lazy-load":e.lazyLoad}}),function(){if(n.tag||e.tag)return t("div",{class:ai("tag")},[n.tag?n.tag():t(vn,{attrs:{mark:!0,type:"danger"}},[e.tag])])}()])}(),t("div",{class:ai("content",{centered:e.centered})},[t("div",[n.title?n.title():e.title?t("div",{class:[ai("title"),"van-multi-ellipsis--l2"]},[e.title]):void 0,n.desc?n.desc():e.desc?t("div",{class:[ai("desc"),"van-ellipsis"]},[e.desc]):void 0,null==n.tags?void 0:n.tags()]),d&&t("div",{class:"van-card__bottom"},[null==(r=n["price-top"])?void 0:r.call(n),function(){if(l)return t("div",{class:ai("price")},[n.price?n.price():(i=e.price.toString().split("."),t("div",[t("span",{class:ai("price-currency")},[e.currency]),t("span",{class:ai("price-integer")},[i[0]]),".",t("span",{class:ai("price-decimal")},[i[1]])]))]);var i}(),function(){if(h){var i=n["origin-price"];return t("div",{class:ai("origin-price")},[i?i():e.currency+" "+e.originPrice])}}(),function(){if(u)return t("div",{class:ai("num")},[n.num?n.num():"x"+e.num])}(),null==n.bottom?void 0:n.bottom()])])]),function(){if(n.footer)return t("div",{class:ai("footer")},[n.footer()])}()])}oi.props={tag:String,desc:String,thumb:String,title:String,centered:Boolean,lazyLoad:Boolean,thumbLink:String,num:[Number,String],price:[Number,String],originPrice:[Number,String],currency:{type:String,default:"¥"}};var ui,li=si(oi),ci=Object(o.b)("tab"),Ai=ci[0],hi=ci[1],di=Ai({mixins:[Se("vanTabs")],props:i({},Gt,{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var t;return null!=(t=this.name)?t:this.index},isActive:function(){var t=this.computedName===this.parent.currentName;return t&&(this.inited=!0),t}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick(function(){e.parent.$emit("rendered",e.computedName,e.title)})}},render:function(t){var e=this.slots,n=this.parent,i=this.isActive,r=e();if(r||n.animated){var s=n.scrollspy||i,a=this.inited||n.scrollspy||!n.lazyRender?r:t();return n.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!i},class:hi("pane-wrapper",{inactive:!i})},[t("div",{class:hi("pane")},[a])]):t("div",{directives:[{name:"show",value:s}],attrs:{role:"tabpanel"},class:hi("pane")},[a])}}});function fi(t){var e=window.getComputedStyle(t),n="none"===e.display,i=null===t.offsetParent&&"fixed"!==e.position;return n||i}function pi(t){var e=t.interceptor,n=t.args,i=t.done;if(e){var r=e.apply(void 0,n);Object(o.i)(r)?r.then(function(t){t&&i()}).catch(o.k):r&&i()}else i()}var gi=Object(o.b)("tab"),mi=gi[0],vi=gi[1],yi=mi({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var t={},e=this.color,n=this.isActive,i="card"===this.type;e&&i&&(t.borderColor=e,this.disabled||(n?t.backgroundColor=e:t.color=e));var r=n?this.activeColor:this.inactiveColor;return r&&(t.color=r),t}},methods:{onClick:function(){this.$emit("click")},genText:function(){var t=this.$createElement,e=t("span",{class:vi("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||Object(o.e)(this.info)&&""!==this.info?t("span",{class:vi("text-wrapper")},[e,t(Y,{attrs:{dot:this.dot,info:this.info}})]):e}},render:function(){return(0,arguments[0])("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[vi({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}}),bi=Object(o.b)("sticky"),_i=bi[0],wi=bi[1],Bi=_i({mixins:[j(function(t,e){if(this.scroller||(this.scroller=O(this.$el)),this.observer){var n=e?"observe":"unobserve";this.observer[n](this.$el)}t(this.scroller,"scroll",this.onScroll,!0),this.onScroll()})],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return Object(St.b)(this.offsetTop)},style:function(){if(this.fixed){var t={};return Object(o.e)(this.zIndex)&&(t.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(t.top=this.offsetTopPx+"px"),this.transform&&(t.transform="translate3d(0, "+this.transform+"px, 0)"),t}}},watch:{fixed:function(t){this.$emit("change",t)}},created:function(){var t=this;!o.j&&window.IntersectionObserver&&(this.observer=new IntersectionObserver(function(e){e[0].intersectionRatio>0&&t.onScroll()},{root:document.body}))},methods:{onScroll:function(){var t=this;if(!fi(this.$el)){this.height=this.$el.offsetHeight;var e=this.container,n=this.offsetTopPx,i=Q(window),r=P(this.$el),s=function(){t.$emit("scroll",{scrollTop:i,isFixed:t.fixed})};if(e){var a=r+e.offsetHeight;if(i+n+this.height>a){var o=this.height+i-a;return o<this.height?(this.fixed=!0,this.transform=-(o+n)):this.fixed=!1,void s()}}i+n>r?(this.fixed=!0,this.transform=0):this.fixed=!1,s()}}},render:function(){var t=arguments[0],e=this.fixed;return t("div",{style:{height:e?this.height+"px":null}},[t("div",{class:wi({fixed:e}),style:this.style},[this.slots()])])}}),Ci=Object(o.b)("tabs"),Ti=Ci[0],Ei=Ci[1],Si=Ti({mixins:[H],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,n=this.currentIndex;"horizontal"===t&&this.offsetX>=50&&(e>0&&0!==n?this.$emit("change",n-1):e<0&&n!==this.count-1&&this.$emit("change",n+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:Ei("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){return(0,arguments[0])("div",{class:Ei("content",{animated:this.animated}),on:i({},this.listeners)},[this.genChildren()])}}),ki=Object(o.b)("tabs"),xi=ki[0],Ui=ki[1],Ii=xi({mixins:[ke("vanTabs"),j(function(t){this.scroller||(this.scroller=O(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)})],model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},offsetTopPx:function(){return Object(St.b)(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.active),this.setLine(),this.$nextTick(function(){t.scrollIntoView(!0)})},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&D(Math.ceil(P(this.$el)-this.offsetTopPx))},scrollspy:function(t){t?g(this.scroller,"scroll",this.onScroll,!0):m(this.scroller,"scroll",this.onScroll)}},mounted:function(){this.init()},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var t=this;this.$nextTick(function(){var e;t.inited=!0,t.tabHeight=I(e=t.$refs.wrap)?e.innerHeight:e.getBoundingClientRect().height,t.scrollIntoView(!0)})},setLine:function(){var t=this,e=this.inited;this.$nextTick(function(){var n=t.$refs.titles;if(n&&n[t.currentIndex]&&"line"===t.type&&!fi(t.$el)){var i=n[t.currentIndex].$el,r=t.lineWidth,s=t.lineHeight,a=i.offsetLeft+i.offsetWidth/2,u={width:Object(o.a)(r),backgroundColor:t.color,transform:"translateX("+a+"px) translateX(-50%)"};if(e&&(u.transitionDuration=t.duration+"s"),Object(o.e)(s)){var l=Object(o.a)(s);u.height=l,u.borderRadius=l}t.lineStyle=u}})},setCurrentIndexByName:function(t){var e=this.children.filter(function(e){return e.computedName===t}),n=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:n)},setCurrentIndex:function(t){var e=this.findAvailableTab(t);if(Object(o.e)(e)){var n=this.children[e],i=n.computedName,r=null!==this.currentIndex;this.currentIndex=e,i!==this.active&&(this.$emit("input",i),r&&this.$emit("change",i,n.title))}},findAvailableTab:function(t){for(var e=t<this.currentIndex?-1:1;t>=0&&t<this.children.length;){if(!this.children[t].disabled)return t;t+=e}},onClick:function(t,e){var n=this,i=this.children[e],r=i.title,s=i.disabled,a=i.computedName;s?this.$emit("disabled",a,r):(pi({interceptor:this.beforeChange,args:[a],done:function(){n.setCurrentIndex(e),n.scrollToCurrentContent()}}),this.$emit("click",a,r),$t(t.$router,t))},scrollIntoView:function(t){var e=this.$refs.titles;if(this.scrollable&&e&&e[this.currentIndex]){var n=this.$refs.nav,i=e[this.currentIndex].$el;!function(t,e,n){Object(Pn.a)(ui);var i=0,r=t.scrollLeft,s=0===n?1:Math.round(1e3*n/16);!function n(){t.scrollLeft+=(e-r)/s,++i<s&&(ui=Object(Pn.c)(n))}()}(n,i.offsetLeft-(n.offsetWidth-i.offsetWidth)/2,t?0:+this.duration)}},onSticktScroll:function(t){this.stickyFixed=t.isFixed,this.$emit("scroll",t)},scrollTo:function(t){var e=this;this.$nextTick(function(){e.setCurrentIndexByName(t),e.scrollToCurrentContent(!0)})},scrollToCurrentContent:function(t){var e=this;if(void 0===t&&(t=!1),this.scrollspy){var n=this.children[this.currentIndex],i=null==n?void 0:n.$el;if(i){var r=P(i,this.scroller)-this.scrollOffset;this.lockScroll=!0,function(t,e,n,i){var r=Q(t),s=r<e,a=0===n?1:Math.round(1e3*n/16),o=(e-r)/a;!function n(){r+=o,(s&&r>e||!s&&r<e)&&(r=e),N(t,r),s&&r<e||!s&&r>e?Object(Pn.c)(n):i&&Object(Pn.c)(i)}()}(this.scroller,r,t?0:+this.duration,function(){e.lockScroll=!1})}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var t=this.getCurrentIndexOnScroll();this.setCurrentIndex(t)}},getCurrentIndexOnScroll:function(){for(var t,e=this.children,n=0;n<e.length;n++){if((I(t=e[n].$el)?0:t.getBoundingClientRect().top)>this.scrollOffset)return 0===n?0:n-1}return e.length-1}},render:function(){var t,e=this,n=arguments[0],i=this.type,r=this.animated,s=this.scrollable,a=this.children.map(function(t,r){var a;return n(yi,{ref:"titles",refInFor:!0,attrs:{type:i,dot:t.dot,info:null!=(a=t.badge)?a:t.info,title:t.title,color:e.color,isActive:r===e.currentIndex,disabled:t.disabled,scrollable:s,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:t.titleStyle,class:t.titleClass,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(t,r)}}})}),o=n("div",{ref:"wrap",class:[Ui("wrap",{scrollable:s}),(t={},t[Et]="line"===i&&this.border,t)]},[n("div",{ref:"nav",attrs:{role:"tablist"},class:Ui("nav",[i,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),a,"line"===i&&n("div",{class:Ui("line"),style:this.lineStyle}),this.slots("nav-right")])]);return n("div",{class:Ui([i])},[this.sticky?n(Bi,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[o]):o,n(Si,{attrs:{count:this.children.length,animated:r,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}}),Fi=Object(o.b)("cascader"),Oi=Fi[0],Qi=Fi[1],Ni=Fi[2],Li=Oi({props:{title:String,value:[Number,String],fieldNames:Object,placeholder:String,activeColor:String,options:{type:Array,default:function(){return[]}},closeable:{type:Boolean,default:!0}},data:function(){return{tabs:[],activeTab:0}},computed:{textKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.text)||"text"},valueKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.value)||"value"},childrenKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.children)||"children"}},watch:{options:{deep:!0,handler:"updateTabs"},value:function(t){var e=this;if((t||0===t)&&-1!==this.tabs.map(function(t){var n;return null==(n=t.selectedOption)?void 0:n[e.valueKey]}).indexOf(t))return;this.updateTabs()}},created:function(){this.updateTabs()},methods:{getSelectedOptionsByValue:function(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(i[this.valueKey]===e)return[i];if(i[this.childrenKey]){var r=this.getSelectedOptionsByValue(i[this.childrenKey],e);if(r)return[i].concat(r)}}},updateTabs:function(){var t=this;if(this.value||0===this.value){var e=this.getSelectedOptionsByValue(this.options,this.value);if(e){var n=this.options;return this.tabs=e.map(function(e){var i={options:n,selectedOption:e},r=n.filter(function(n){return n[t.valueKey]===e[t.valueKey]});return r.length&&(n=r[0][t.childrenKey]),i}),n&&this.tabs.push({options:n,selectedOption:null}),void this.$nextTick(function(){t.activeTab=t.tabs.length-1})}}this.tabs=[{options:this.options,selectedOption:null}]},onSelect:function(t,e){var n=this;if(this.tabs[e].selectedOption=t,this.tabs.length>e+1&&(this.tabs=this.tabs.slice(0,e+1)),t[this.childrenKey]){var i={options:t[this.childrenKey],selectedOption:null};this.tabs[e+1]?this.$set(this.tabs,e+1,i):this.tabs.push(i),this.$nextTick(function(){n.activeTab++})}var r=this.tabs.map(function(t){return t.selectedOption}).filter(function(t){return!!t}),s={value:t[this.valueKey],tabIndex:e,selectedOptions:r};this.$emit("input",t[this.valueKey]),this.$emit("change",s),t[this.childrenKey]||this.$emit("finish",s)},onClose:function(){this.$emit("close")},renderHeader:function(){var t=this.$createElement;return t("div",{class:Qi("header")},[t("h2",{class:Qi("title")},[this.slots("title")||this.title]),this.closeable?t(it,{attrs:{name:"cross"},class:Qi("close-icon"),on:{click:this.onClose}}):null])},renderOptions:function(t,e,n){var i=this,r=this.$createElement;return r("ul",{class:Qi("options")},[t.map(function(t){var s=e&&t[i.valueKey]===e[i.valueKey];return r("li",{class:Qi("option",{selected:s}),style:{color:s?i.activeColor:null},on:{click:function(){i.onSelect(t,n)}}},[r("span",[t[i.textKey]]),s?r(it,{attrs:{name:"success"},class:Qi("selected-icon")}):null])})])},renderTab:function(t,e){var n=this.$createElement,i=t.options,r=t.selectedOption,s=r?r[this.textKey]:this.placeholder||Ni("select");return n(di,{attrs:{title:s,titleClass:Qi("tab",{unselected:!r})}},[this.renderOptions(i,r,e)])},renderTabs:function(){var t=this;return(0,this.$createElement)(Ii,{attrs:{animated:!0,swipeable:!0,swipeThreshold:0,color:this.activeColor},class:Qi("tabs"),model:{value:t.activeTab,callback:function(e){t.activeTab=e}}},[this.tabs.map(this.renderTab)])}},render:function(){return(0,arguments[0])("div",{class:Qi()},[this.renderHeader(),this.renderTabs()])}}),Di=Object(o.b)("cell-group"),Pi=Di[0],Ri=Di[1];function Hi(t,e,n,i){var r,a=t("div",s()([{class:[Ri(),(r={},r[Et]=e.border,r)]},c(i,!0)]),[null==n.default?void 0:n.default()]);return e.title||n.title?t("div",[t("div",{class:Ri("title")},[n.title?n.title():e.title]),a]):a}Hi.props={title:String,border:{type:Boolean,default:!0}};var Mi=Pi(Hi),Ki=Object(o.b)("checkbox"),ji=(0,Ki[0])({mixins:[yn({bem:Ki[1],role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(t){var e=this;void 0===t&&(t=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout(function(){e.checked=t})},setParentValue:function(t){var e=this.parent,n=e.value.slice();if(t){if(e.max&&n.length>=e.max)return;-1===n.indexOf(this.name)&&(n.push(this.name),e.$emit("input",n))}else{var i=n.indexOf(this.name);-1!==i&&(n.splice(i,1),e.$emit("input",n))}}}}),Vi=Object(o.b)("checkbox-group"),zi=Vi[0],$i=Vi[1],Wi=zi({mixins:[ke("vanCheckbox"),Je],props:{max:[Number,String],disabled:Boolean,direction:String,iconSize:[Number,String],checkedColor:String,value:{type:Array,default:function(){return[]}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggleAll:function(t){void 0===t&&(t={}),"boolean"==typeof t&&(t={checked:t});var e=t,n=e.checked,i=e.skipDisabled,r=this.children.filter(function(t){return t.disabled&&i?t.checked:null!=n?n:!t.checked}).map(function(t){return t.name});this.$emit("input",r)}},render:function(){return(0,arguments[0])("div",{class:$i([this.direction])},[this.slots()])}}),Gi=Object(o.b)("circle"),Xi=Gi[0],qi=Gi[1],Yi=0;function Ji(t){return Math.min(Math.max(t,0),100)}var Zi=Xi({props:{text:String,size:[Number,String],color:[String,Object],layerColor:String,strokeLinecap:String,value:{type:Number,default:0},speed:{type:[Number,String],default:0},fill:{type:String,default:"none"},rate:{type:[Number,String],default:100},strokeWidth:{type:[Number,String],default:40},clockwise:{type:Boolean,default:!0}},beforeCreate:function(){this.uid="van-circle-gradient-"+Yi++},computed:{style:function(){var t=Object(o.a)(this.size);return{width:t,height:t}},path:function(){return t=this.clockwise,"M "+(e=this.viewBoxSize)/2+" "+e/2+" m 0, -500 a 500, 500 0 1, "+(n=t?1:0)+" 0, 1000 a 500, 500 0 1, "+n+" 0, -1000";var t,e,n},viewBoxSize:function(){return+this.strokeWidth+1e3},layerStyle:function(){return{fill:""+this.fill,stroke:""+this.layerColor,strokeWidth:this.strokeWidth+"px"}},hoverStyle:function(){var t=3140*this.value/100;return{stroke:""+(this.gradient?"url(#"+this.uid+")":this.color),strokeWidth:+this.strokeWidth+1+"px",strokeLinecap:this.strokeLinecap,strokeDasharray:t+"px 3140px"}},gradient:function(){return Object(o.h)(this.color)},LinearGradient:function(){var t=this,e=this.$createElement;if(this.gradient){var n=Object.keys(this.color).sort(function(t,e){return parseFloat(t)-parseFloat(e)}).map(function(n,i){return e("stop",{key:i,attrs:{offset:n,"stop-color":t.color[n]}})});return e("defs",[e("linearGradient",{attrs:{id:this.uid,x1:"100%",y1:"0%",x2:"0%",y2:"0%"}},[n])])}}},watch:{rate:{handler:function(t){this.startTime=Date.now(),this.startRate=this.value,this.endRate=Ji(t),this.increase=this.endRate>this.startRate,this.duration=Math.abs(1e3*(this.startRate-this.endRate)/this.speed),this.speed?(Object(Pn.a)(this.rafId),this.rafId=Object(Pn.c)(this.animate)):this.$emit("input",this.endRate)},immediate:!0}},methods:{animate:function(){var t=Date.now(),e=Math.min((t-this.startTime)/this.duration,1)*(this.endRate-this.startRate)+this.startRate;this.$emit("input",Ji(parseFloat(e.toFixed(1)))),(this.increase?e<this.endRate:e>this.endRate)&&(this.rafId=Object(Pn.c)(this.animate))}},render:function(){var t=arguments[0];return t("div",{class:qi(),style:this.style},[t("svg",{attrs:{viewBox:"0 0 "+this.viewBoxSize+" "+this.viewBoxSize}},[this.LinearGradient,t("path",{class:qi("layer"),style:this.layerStyle,attrs:{d:this.path}}),t("path",{attrs:{d:this.path},class:qi("hover"),style:this.hoverStyle})]),this.slots()||this.text&&t("div",{class:qi("text")},[this.text])])}}),tr=Object(o.b)("col"),er=tr[0],nr=tr[1],ir=er({mixins:[Se("vanRow")],props:{span:[Number,String],offset:[Number,String],tag:{type:String,default:"div"}},computed:{style:function(){var t=this.index,e=(this.parent||{}).spaces;if(e&&e[t]){var n=e[t],i=n.left,r=n.right;return{paddingLeft:i?i+"px":null,paddingRight:r?r+"px":null}}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],n=this.span,i=this.offset;return e(this.tag,{style:this.style,class:nr((t={},t[n]=n,t["offset-"+i]=i,t)),on:{click:this.onClick}},[this.slots()])}}),rr=Object(o.b)("collapse"),sr=rr[0],ar=rr[1],or=sr({mixins:[ke("vanCollapse")],props:{accordion:Boolean,value:[String,Number,Array],border:{type:Boolean,default:!0}},methods:{switch:function(t,e){this.accordion||(t=e?this.value.concat(t):this.value.filter(function(e){return e!==t})),this.$emit("change",t),this.$emit("input",t)}},render:function(){var t;return(0,arguments[0])("div",{class:[ar(),(t={},t[Et]=this.border,t)]},[this.slots()])}}),ur=Object(o.b)("collapse-item"),lr=ur[0],cr=ur[1],Ar=["title","icon","right-icon"],hr=lr({mixins:[Se("vanCollapse")],props:i({},Xt,{name:[Number,String],disabled:Boolean,isLink:{type:Boolean,default:!0}}),data:function(){return{show:null,inited:null}},computed:{currentName:function(){var t;return null!=(t=this.name)?t:this.index},expanded:function(){var t=this;if(!this.parent)return null;var e=this.parent,n=e.value;return e.accordion?n===this.currentName:n.some(function(e){return e===t.currentName})}},created:function(){this.show=this.expanded,this.inited=this.expanded},watch:{expanded:function(t,e){var n=this;null!==e&&(t&&(this.show=!0,this.inited=!0),(t?this.$nextTick:Pn.c)(function(){var e=n.$refs,i=e.content,r=e.wrapper;if(i&&r){var s=i.offsetHeight;if(s){var a=s+"px";r.style.height=t?0:a,Object(Pn.b)(function(){r.style.height=t?a:0})}else n.onTransitionEnd()}}))}},methods:{onClick:function(){this.disabled||this.toggle()},toggle:function(t){void 0===t&&(t=!this.expanded);var e=this.parent,n=this.currentName,i=e.accordion&&n===e.value?"":n;this.parent.switch(i,t)},onTransitionEnd:function(){this.expanded?this.$refs.wrapper.style.height="":this.show=!1},genTitle:function(){var t=this,e=this.$createElement,n=this.border,r=this.disabled,s=this.expanded,a=Ar.reduce(function(e,n){return t.slots(n)&&(e[n]=function(){return t.slots(n)}),e},{});return this.slots("value")&&(a.default=function(){return t.slots("value")}),e(te,{attrs:{role:"button",tabindex:r?-1:0,"aria-expanded":String(s)},class:cr("title",{disabled:r,expanded:s,borderless:!n}),on:{click:this.onClick},scopedSlots:a,props:i({},this.$props)})},genContent:function(){var t=this.$createElement;if(this.inited)return t("div",{directives:[{name:"show",value:this.show}],ref:"wrapper",class:cr("wrapper"),on:{transitionend:this.onTransitionEnd}},[t("div",{ref:"content",class:cr("content")},[this.slots()])])}},render:function(){return(0,arguments[0])("div",{class:[cr({border:this.index&&this.border})]},[this.genTitle(),this.genContent()])}}),dr=Object(o.b)("contact-card"),fr=dr[0],pr=dr[1],gr=dr[2];function mr(t,e,n,i){var r=e.type,a=e.editable;return t(te,s()([{attrs:{center:!0,border:!1,isLink:a,valueClass:pr("value"),icon:"edit"===r?"contact":"add-square"},class:pr([r]),on:{click:function(t){a&&A(i,"click",t)}}},c(i)]),["add"===r?e.addText||gr("addText"):[t("div",[gr("name")+":"+e.name]),t("div",[gr("tel")+":"+e.tel])]])}mr.props={tel:String,name:String,addText:String,editable:{type:Boolean,default:!0},type:{type:String,default:"add"}};var vr=fr(mr),yr=Object(o.b)("contact-edit"),br=yr[0],_r=yr[1],wr=yr[2],Br={tel:"",name:""},Cr=br({props:{isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:function(){return i({},Br)}},telValidator:{type:Function,default:vt}},data:function(){return{data:i({},Br,this.contactInfo),errorInfo:{name:"",tel:""}}},watch:{contactInfo:function(t){this.data=i({},Br,t)}},methods:{onFocus:function(t){this.errorInfo[t]=""},getErrorMessageByKey:function(t){var e=this.data[t].trim();switch(t){case"name":return e?"":wr("nameInvalid");case"tel":return this.telValidator(e)?"":wr("telInvalid")}},onSave:function(){var t=this;["name","tel"].every(function(e){var n=t.getErrorMessageByKey(e);return n&&(t.errorInfo[e]=n),!n})&&!this.isSaving&&this.$emit("save",this.data)},onDelete:function(){var t=this;Ve.confirm({title:wr("confirmDelete")}).then(function(){t.$emit("delete",t.data)})}},render:function(){var t=this,e=arguments[0],n=this.data,i=this.errorInfo,r=function(e){return function(){return t.onFocus(e)}};return e("div",{class:_r()},[e("div",{class:_r("fields")},[e(ae,{attrs:{clearable:!0,maxlength:"30",label:wr("name"),placeholder:wr("nameEmpty"),errorMessage:i.name},on:{focus:r("name")},model:{value:n.name,callback:function(e){t.$set(n,"name",e)}}}),e(ae,{attrs:{clearable:!0,type:"tel",label:wr("tel"),placeholder:wr("telEmpty"),errorMessage:i.tel},on:{focus:r("tel")},model:{value:n.tel,callback:function(e){t.$set(n,"tel",e)}}})]),this.showSetDefault&&e(te,{attrs:{title:this.setDefaultLabel,border:!1},class:_r("switch-cell")},[e(nn,{attrs:{size:24},slot:"right-icon",on:{change:function(e){t.$emit("change-default",e)}},model:{value:n.isDefault,callback:function(e){t.$set(n,"isDefault",e)}}})]),e("div",{class:_r("buttons")},[e(Te,{attrs:{block:!0,round:!0,type:"danger",text:wr("save"),loading:this.isSaving},on:{click:this.onSave}}),this.isEdit&&e(Te,{attrs:{block:!0,round:!0,text:wr("delete"),loading:this.isDeleting},on:{click:this.onDelete}})])])}}),Tr=Object(o.b)("contact-list"),Er=Tr[0],Sr=Tr[1],kr=Tr[2];function xr(t,e,n,i){var r=e.list&&e.list.map(function(n,r){function s(){A(i,"input",n.id),A(i,"select",n,r)}return t(te,{key:n.id,attrs:{isLink:!0,center:!0,valueClass:Sr("item-value")},class:Sr("item"),scopedSlots:{icon:function(){return t(it,{attrs:{name:"edit"},class:Sr("edit"),on:{click:function(t){t.stopPropagation(),A(i,"edit",n,r)}}})},default:function(){var i=[n.name+","+n.tel];return n.isDefault&&e.defaultTagText&&i.push(t(vn,{attrs:{type:"danger",round:!0},class:Sr("item-tag")},[e.defaultTagText])),i},"right-icon":function(){return t(_n,{attrs:{name:n.id,iconSize:16,checkedColor:bt},on:{click:s}})}},on:{click:s}})});return t("div",s()([{class:Sr()},c(i)]),[t(dn,{attrs:{value:e.value},class:Sr("group")},[r]),t("div",{class:Sr("bottom")},[t(Te,{attrs:{round:!0,block:!0,type:"danger",text:e.addText||kr("addText")},class:Sr("add"),on:{click:function(){A(i,"add")}}})])])}xr.props={value:null,list:Array,addText:String,defaultTagText:String};var Ur=Er(xr),Ir=n("YNA3"),Fr=1e3,Or=60*Fr,Qr=60*Or,Nr=24*Qr;var Lr=Object(o.b)("count-down"),Dr=Lr[0],Pr=Lr[1],Rr=Dr({props:{millisecond:Boolean,time:{type:[Number,String],default:0},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0}},data:function(){return{remain:0}},computed:{timeData:function(){return t=this.remain,{days:Math.floor(t/Nr),hours:Math.floor(t%Nr/Qr),minutes:Math.floor(t%Qr/Or),seconds:Math.floor(t%Or/Fr),milliseconds:Math.floor(t%Fr)};var t},formattedTime:function(){return function(t,e){var n=e.days,i=e.hours,r=e.minutes,s=e.seconds,a=e.milliseconds;if(-1===t.indexOf("DD")?i+=24*n:t=t.replace("DD",Object(Ir.b)(n)),-1===t.indexOf("HH")?r+=60*i:t=t.replace("HH",Object(Ir.b)(i)),-1===t.indexOf("mm")?s+=60*r:t=t.replace("mm",Object(Ir.b)(r)),-1===t.indexOf("ss")?a+=1e3*s:t=t.replace("ss",Object(Ir.b)(s)),-1!==t.indexOf("S")){var o=Object(Ir.b)(a,3);t=-1!==t.indexOf("SSS")?t.replace("SSS",o):-1!==t.indexOf("SS")?t.replace("SS",o.slice(0,2)):t.replace("S",o.charAt(0))}return t}(this.format,this.timeData)}},watch:{time:{immediate:!0,handler:"reset"}},activated:function(){this.keepAlivePaused&&(this.counting=!0,this.keepAlivePaused=!1,this.tick())},deactivated:function(){this.counting&&(this.pause(),this.keepAlivePaused=!0)},beforeDestroy:function(){this.pause()},methods:{start:function(){this.counting||(this.counting=!0,this.endTime=Date.now()+this.remain,this.tick())},pause:function(){this.counting=!1,Object(Pn.a)(this.rafId)},reset:function(){this.pause(),this.remain=+this.time,this.autoStart&&this.start()},tick:function(){o.d&&(this.millisecond?this.microTick():this.macroTick())},microTick:function(){var t=this;this.rafId=Object(Pn.c)(function(){t.counting&&(t.setRemain(t.getRemain()),t.remain>0&&t.microTick())})},macroTick:function(){var t=this;this.rafId=Object(Pn.c)(function(){if(t.counting){var e,n,i=t.getRemain();e=i,n=t.remain,(Math.floor(e/1e3)!==Math.floor(n/1e3)||0===i)&&t.setRemain(i),t.remain>0&&t.macroTick()}})},getRemain:function(){return Math.max(this.endTime-Date.now(),0)},setRemain:function(t){this.remain=t,this.$emit("change",this.timeData),0===t&&(this.pause(),this.$emit("finish"))}},render:function(){return(0,arguments[0])("div",{class:Pr()},[this.slots("default",this.timeData)||this.formattedTime])}}),Hr=Object(o.b)("coupon"),Mr=Hr[0],Kr=Hr[1],jr=Hr[2];function Vr(t){var e=new Date(function(t){return t<Math.pow(10,12)?1e3*t:+t}(t));return e.getFullYear()+"."+Object(Ir.b)(e.getMonth()+1)+"."+Object(Ir.b)(e.getDate())}function zr(t){return(t/100).toFixed(t%100==0?0:t%10==0?1:2)}var $r=Mr({props:{coupon:Object,chosen:Boolean,disabled:Boolean,currency:{type:String,default:"¥"}},computed:{validPeriod:function(){var t=this.coupon,e=t.startAt,n=t.endAt;return t.customValidPeriod||Vr(e)+" - "+Vr(n)},faceAmount:function(){var t,e=this.coupon;if(e.valueDesc)return e.valueDesc+"<span>"+(e.unitDesc||"")+"</span>";if(e.denominations){var n=zr(e.denominations);return"<span>"+this.currency+"</span> "+n}return e.discount?jr("discount",((t=e.discount)/10).toFixed(t%10==0?0:1)):""},conditionMessage:function(){var t=zr(this.coupon.originCondition);return"0"===t?jr("unlimited"):jr("condition",t)}},render:function(){var t=arguments[0],e=this.coupon,n=this.disabled,i=n&&e.reason||e.description;return t("div",{class:Kr({disabled:n})},[t("div",{class:Kr("content")},[t("div",{class:Kr("head")},[t("h2",{class:Kr("amount"),domProps:{innerHTML:this.faceAmount}}),t("p",{class:Kr("condition")},[this.coupon.condition||this.conditionMessage])]),t("div",{class:Kr("body")},[t("p",{class:Kr("name")},[e.name]),t("p",{class:Kr("valid")},[this.validPeriod]),!this.disabled&&t(ji,{attrs:{size:18,value:this.chosen,checkedColor:bt},class:Kr("corner")})])]),i&&t("p",{class:Kr("description")},[i])])}}),Wr=Object(o.b)("coupon-cell"),Gr=Wr[0],Xr=Wr[1],qr=Wr[2];function Yr(t,e,n,i){var r=e.coupons[+e.chosenCoupon],a=function(t){var e=t.coupons,n=t.chosenCoupon,i=t.currency,r=e[+n];if(r){var s=0;return Object(o.e)(r.value)?s=r.value:Object(o.e)(r.denominations)&&(s=r.denominations),"-"+i+" "+(s/100).toFixed(2)}return 0===e.length?qr("tips"):qr("count",e.length)}(e);return t(te,s()([{class:Xr(),attrs:{value:a,title:e.title||qr("title"),border:e.border,isLink:e.editable,valueClass:Xr("value",{selected:r})}},c(i,!0)]))}Yr.model={prop:"chosenCoupon"},Yr.props={title:String,coupons:{type:Array,default:function(){return[]}},currency:{type:String,default:"¥"},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0},chosenCoupon:{type:[Number,String],default:-1}};var Jr=Gr(Yr),Zr=Object(o.b)("coupon-list"),ts=Zr[0],es=Zr[1],ns=Zr[2],is=ts({model:{prop:"code"},props:{code:String,closeButtonText:String,inputPlaceholder:String,enabledTitle:String,disabledTitle:String,exchangeButtonText:String,exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,exchangeMinLength:{type:Number,default:1},chosenCoupon:{type:Number,default:-1},coupons:{type:Array,default:function(){return[]}},disabledCoupons:{type:Array,default:function(){return[]}},displayedCouponIndex:{type:Number,default:-1},showExchangeBar:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},showCount:{type:Boolean,default:!0},currency:{type:String,default:"¥"},emptyImage:{type:String,default:"https://img01.yzcdn.cn/vant/coupon-empty.png"}},data:function(){return{tab:0,winHeight:window.innerHeight,currentCode:this.code||""}},computed:{buttonDisabled:function(){return!this.exchangeButtonLoading&&(this.exchangeButtonDisabled||!this.currentCode||this.currentCode.length<this.exchangeMinLength)},listStyle:function(){return{height:this.winHeight-(this.showExchangeBar?140:94)+"px"}}},watch:{code:function(t){this.currentCode=t},currentCode:function(t){this.$emit("input",t)},displayedCouponIndex:"scrollToShowCoupon"},mounted:function(){this.scrollToShowCoupon(this.displayedCouponIndex)},methods:{onClickExchangeButton:function(){this.$emit("exchange",this.currentCode),this.code||(this.currentCode="")},scrollToShowCoupon:function(t){var e=this;-1!==t&&this.$nextTick(function(){var n=e.$refs,i=n.card,r=n.list;r&&i&&i[t]&&(r.scrollTop=i[t].$el.offsetTop-100)})},genEmpty:function(){var t=this.$createElement;return t("div",{class:es("empty")},[t("img",{attrs:{src:this.emptyImage}}),t("p",[ns("empty")])])},genExchangeButton:function(){return(0,this.$createElement)(Te,{attrs:{plain:!0,type:"danger",text:this.exchangeButtonText||ns("exchange"),loading:this.exchangeButtonLoading,disabled:this.buttonDisabled},class:es("exchange"),on:{click:this.onClickExchangeButton}})}},render:function(){var t=this,e=arguments[0],n=this.coupons,i=this.disabledCoupons,r=this.showCount?" ("+n.length+")":"",s=(this.enabledTitle||ns("enable"))+r,a=this.showCount?" ("+i.length+")":"",o=(this.disabledTitle||ns("disabled"))+a,u=this.showExchangeBar&&e("div",{class:es("exchange-bar")},[e(ae,{attrs:{clearable:!0,border:!1,placeholder:this.inputPlaceholder||ns("placeholder"),maxlength:"20"},class:es("field"),model:{value:t.currentCode,callback:function(e){t.currentCode=e}}}),this.genExchangeButton()]),l=function(e){return function(){return t.$emit("change",e)}},c=e(di,{attrs:{title:s}},[e("div",{class:es("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[n.map(function(n,i){return e($r,{ref:"card",key:n.id,attrs:{coupon:n,currency:t.currency,chosen:i===t.chosenCoupon},nativeOn:{click:l(i)}})}),!n.length&&this.genEmpty()])]),A=e(di,{attrs:{title:o}},[e("div",{class:es("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[i.map(function(n){return e($r,{attrs:{disabled:!0,coupon:n,currency:t.currency},key:n.id})}),!i.length&&this.genEmpty()])]);return e("div",{class:es()},[u,e(Ii,{class:es("tab"),attrs:{border:!1},model:{value:t.tab,callback:function(e){t.tab=e}}},[c,A]),e("div",{class:es("bottom")},[e(Te,{directives:[{name:"show",value:this.showCloseButton}],attrs:{round:!0,type:"danger",block:!0,text:this.closeButtonText||ns("close")},class:es("close"),on:{click:l(-1)}})])])}}),rs=i({},yt,{value:null,filter:Function,columnsOrder:Array,showToolbar:{type:Boolean,default:!0},formatter:{type:Function,default:function(t,e){return e}}}),ss={data:function(){return{innerValue:this.formatValue(this.value)}},computed:{originColumns:function(){var t=this;return this.ranges.map(function(e){var n=e.type,i=e.range,r=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(i[1]-i[0]+1,function(t){return Object(Ir.b)(i[0]+t)});return t.filter&&(r=t.filter(n,r)),{type:n,values:r}})},columns:function(){var t=this;return this.originColumns.map(function(e){return{values:e.values.map(function(n){return t.formatter(e.type,n)})}})}},watch:{columns:"updateColumnValue",innerValue:function(t,e){e?this.$emit("input",t):this.$emit("input",null)}},mounted:function(){var t=this;this.updateColumnValue(),this.$nextTick(function(){t.updateInnerValue()})},methods:{getPicker:function(){return this.$refs.picker},onConfirm:function(){this.$emit("input",this.innerValue),this.$emit("confirm",this.innerValue)},onCancel:function(){this.$emit("cancel")}},render:function(){var t=this,e=arguments[0],n={};return Object.keys(yt).forEach(function(e){n[e]=t[e]}),e(Mt,{ref:"picker",attrs:{columns:this.columns,readonly:this.readonly},scopedSlots:this.$scopedSlots,on:{change:this.onChange,confirm:this.onConfirm,cancel:this.onCancel},props:i({},n)})}},as=(0,Object(o.b)("time-picker")[0])({mixins:[ss],props:i({},rs,{minHour:{type:[Number,String],default:0},maxHour:{type:[Number,String],default:23},minMinute:{type:[Number,String],default:0},maxMinute:{type:[Number,String],default:59}}),computed:{ranges:function(){return[{type:"hour",range:[+this.minHour,+this.maxHour]},{type:"minute",range:[+this.minMinute,+this.maxMinute]}]}},watch:{filter:"updateInnerValue",minHour:function(){var t=this;this.$nextTick(function(){t.updateInnerValue()})},maxHour:"updateInnerValue",minMinute:"updateInnerValue",maxMinute:"updateInnerValue",value:function(t){(t=this.formatValue(t))!==this.innerValue&&(this.innerValue=t,this.updateColumnValue())}},methods:{formatValue:function(t){t||(t=Object(Ir.b)(this.minHour)+":"+Object(Ir.b)(this.minMinute));var e=t.split(":"),n=e[0],i=e[1];return(n=Object(Ir.b)(xt(n,this.minHour,this.maxHour)))+":"+(i=Object(Ir.b)(xt(i,this.minMinute,this.maxMinute)))},updateInnerValue:function(){var t=this.getPicker().getIndexes(),e=t[0],n=t[1],i=this.originColumns,r=i[0],s=i[1],a=r.values[e]||r.values[0],o=s.values[n]||s.values[0];this.innerValue=this.formatValue(a+":"+o),this.updateColumnValue()},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick(function(){e.$nextTick(function(){e.$emit("change",t)})})},updateColumnValue:function(){var t=this,e=this.formatter,n=this.innerValue.split(":"),i=[e("hour",n[0]),e("minute",n[1])];this.$nextTick(function(){t.getPicker().setValues(i)})}}}),os=(new Date).getFullYear(),us=(0,Object(o.b)("date-picker")[0])({mixins:[ss],props:i({},rs,{type:{type:String,default:"datetime"},minDate:{type:Date,default:function(){return new Date(os-10,0,1)},validator:Rn},maxDate:{type:Date,default:function(){return new Date(os+10,11,31)},validator:Rn}}),watch:{filter:"updateInnerValue",minDate:function(){var t=this;this.$nextTick(function(){t.updateInnerValue()})},maxDate:"updateInnerValue",value:function(t){(t=this.formatValue(t))&&t.valueOf()!==this.innerValue.valueOf()&&(this.innerValue=t)}},computed:{ranges:function(){var t=this.getBoundary("max",this.innerValue?this.innerValue:this.minDate),e=t.maxYear,n=t.maxDate,i=t.maxMonth,r=t.maxHour,s=t.maxMinute,a=this.getBoundary("min",this.innerValue?this.innerValue:this.minDate),o=a.minYear,u=a.minDate,l=[{type:"year",range:[o,e]},{type:"month",range:[a.minMonth,i]},{type:"day",range:[u,n]},{type:"hour",range:[a.minHour,r]},{type:"minute",range:[a.minMinute,s]}];switch(this.type){case"date":l=l.slice(0,3);break;case"year-month":l=l.slice(0,2);break;case"month-day":l=l.slice(1,3);break;case"datehour":l=l.slice(0,4)}if(this.columnsOrder){var c=this.columnsOrder.concat(l.map(function(t){return t.type}));l.sort(function(t,e){return c.indexOf(t.type)-c.indexOf(e.type)})}return l}},methods:{formatValue:function(t){return Rn(t)?(t=Math.max(t,this.minDate.getTime()),t=Math.min(t,this.maxDate.getTime()),new Date(t)):null},getBoundary:function(t,e){var n,i=this[t+"Date"],r=i.getFullYear(),s=1,a=1,o=0,u=0;return"max"===t&&(s=12,a=qn(e.getFullYear(),e.getMonth()+1),o=23,u=59),e.getFullYear()===r&&(s=i.getMonth()+1,e.getMonth()+1===s&&(a=i.getDate(),e.getDate()===a&&(o=i.getHours(),e.getHours()===o&&(u=i.getMinutes())))),(n={})[t+"Year"]=r,n[t+"Month"]=s,n[t+"Date"]=a,n[t+"Hour"]=o,n[t+"Minute"]=u,n},updateInnerValue:function(){var t,e,n,i=this,r=this.type,s=this.getPicker().getIndexes(),a=function(t){var e=0;return i.originColumns.forEach(function(n,i){t===n.type&&(e=i)}),function(t){if(!t)return 0;for(;Object(On.a)(parseInt(t,10));){if(!(t.length>1))return 0;t=t.slice(1)}return parseInt(t,10)}(i.originColumns[e].values[s[e]])};"month-day"===r?(t=(this.innerValue?this.innerValue:this.minDate).getFullYear(),e=a("month"),n=a("day")):(t=a("year"),e=a("month"),n="year-month"===r?1:a("day"));var o=qn(t,e);n=n>o?o:n;var u=0,l=0;"datehour"===r&&(u=a("hour")),"datetime"===r&&(u=a("hour"),l=a("minute"));var c=new Date(t,e-1,n,u,l);this.innerValue=this.formatValue(c)},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick(function(){e.$nextTick(function(){e.$emit("change",t)})})},updateColumnValue:function(){var t=this,e=this.innerValue?this.innerValue:this.minDate,n=this.formatter,i=this.originColumns.map(function(t){switch(t.type){case"year":return n("year",""+e.getFullYear());case"month":return n("month",Object(Ir.b)(e.getMonth()+1));case"day":return n("day",Object(Ir.b)(e.getDate()));case"hour":return n("hour",Object(Ir.b)(e.getHours()));case"minute":return n("minute",Object(Ir.b)(e.getMinutes()));default:return null}});this.$nextTick(function(){t.getPicker().setValues(i)})}}}),ls=Object(o.b)("datetime-picker"),cs=ls[0],As=ls[1],hs=cs({props:i({},as.props,us.props),methods:{getPicker:function(){return this.$refs.root.getPicker()}},render:function(){return(0,arguments[0])("time"===this.type?as:us,{ref:"root",class:As(),scopedSlots:this.$scopedSlots,props:i({},this.$props),on:i({},this.$listeners)})}}),ds=Object(o.b)("divider"),fs=ds[0],ps=ds[1];function gs(t,e,n,i){var r;return t("div",s()([{attrs:{role:"separator"},style:{borderColor:e.borderColor},class:ps((r={dashed:e.dashed,hairline:e.hairline},r["content-"+e.contentPosition]=n.default,r))},c(i,!0)]),[n.default&&n.default()])}gs.props={dashed:Boolean,hairline:{type:Boolean,default:!0},contentPosition:{type:String,default:"center"}};var ms=fs(gs),vs=Object(o.b)("dropdown-item"),ys=vs[0],bs=vs[1],_s=ys({mixins:[M({ref:"wrapper"}),Se("vanDropdownMenu")],props:{value:null,title:String,disabled:Boolean,titleClass:String,options:{type:Array,default:function(){return[]}},lazyRender:{type:Boolean,default:!0}},data:function(){return{transition:!0,showPopup:!1,showWrapper:!1}},computed:{displayTitle:function(){var t=this;if(this.title)return this.title;var e=this.options.filter(function(e){return e.value===t.value});return e.length?e[0].text:""}},watch:{showPopup:function(t){this.bindScroll(t)}},beforeCreate:function(){var t=this,e=function(e){return function(){return t.$emit(e)}};this.onOpen=e("open"),this.onClose=e("close"),this.onOpened=e("opened")},methods:{toggle:function(t,e){void 0===t&&(t=!this.showPopup),void 0===e&&(e={}),t!==this.showPopup&&(this.transition=!e.immediate,this.showPopup=t,t&&(this.parent.updateOffset(),this.showWrapper=!0))},bindScroll:function(t){var e=this.parent.scroller;(t?g:m)(e,"scroll",this.onScroll,!0)},onScroll:function(){this.parent.updateOffset()},onClickWrapper:function(t){this.getContainer&&t.stopPropagation()}},render:function(){var t=this,e=arguments[0],n=this.parent,i=n.zIndex,r=n.offset,s=n.overlay,a=n.duration,o=n.direction,u=n.activeColor,l=n.closeOnClickOverlay,c=this.options.map(function(n){var i=n.value===t.value;return e(te,{attrs:{clickable:!0,icon:n.icon,title:n.text},key:n.value,class:bs("option",{active:i}),style:{color:i?u:""},on:{click:function(){t.showPopup=!1,n.value!==t.value&&(t.$emit("input",n.value),t.$emit("change",n.value))}}},[i&&e(it,{class:bs("icon"),attrs:{color:u,name:"success"}})])}),A={zIndex:i};return"down"===o?A.top=r+"px":A.bottom=r+"px",e("div",[e("div",{directives:[{name:"show",value:this.showWrapper}],ref:"wrapper",style:A,class:bs([o]),on:{click:this.onClickWrapper}},[e(ot,{attrs:{overlay:s,position:"down"===o?"top":"bottom",duration:this.transition?a:0,lazyRender:this.lazyRender,overlayStyle:{position:"absolute"},closeOnClickOverlay:l},class:bs("content"),on:{open:this.onOpen,close:this.onClose,opened:this.onOpened,closed:function(){t.showWrapper=!1,t.$emit("closed")}},model:{value:t.showPopup,callback:function(e){t.showPopup=e}}},[c,this.slots("default")])])])}}),ws=function(t){return{props:{closeOnClickOutside:{type:Boolean,default:!0}},data:function(){var e=this;return{clickOutsideHandler:function(n){e.closeOnClickOutside&&!e.$el.contains(n.target)&&e[t.method]()}}},mounted:function(){g(document,t.event,this.clickOutsideHandler)},beforeDestroy:function(){m(document,t.event,this.clickOutsideHandler)}}},Bs=Object(o.b)("dropdown-menu"),Cs=Bs[0],Ts=Bs[1],Es=Cs({mixins:[ke("vanDropdownMenu"),ws({event:"click",method:"onClickOutside"})],props:{zIndex:[Number,String],activeColor:String,overlay:{type:Boolean,default:!0},duration:{type:[Number,String],default:.2},direction:{type:String,default:"down"},closeOnClickOverlay:{type:Boolean,default:!0}},data:function(){return{offset:0}},computed:{scroller:function(){return O(this.$el)},opened:function(){return this.children.some(function(t){return t.showWrapper})},barStyle:function(){if(this.opened&&Object(o.e)(this.zIndex))return{zIndex:1+this.zIndex}}},methods:{updateOffset:function(){if(this.$refs.bar){var t=this.$refs.bar.getBoundingClientRect();"down"===this.direction?this.offset=t.bottom:this.offset=window.innerHeight-t.top}},toggleItem:function(t){this.children.forEach(function(e,n){n===t?e.toggle():e.showPopup&&e.toggle(!1,{immediate:!0})})},onClickOutside:function(){this.children.forEach(function(t){t.toggle(!1)})}},render:function(){var t=this,e=arguments[0],n=this.children.map(function(n,i){return e("div",{attrs:{role:"button",tabindex:n.disabled?-1:0},class:Ts("item",{disabled:n.disabled}),on:{click:function(){n.disabled||t.toggleItem(i)}}},[e("span",{class:[Ts("title",{active:n.showPopup,down:n.showPopup===("down"===t.direction)}),n.titleClass],style:{color:n.showPopup?t.activeColor:""}},[e("div",{class:"van-ellipsis"},[n.slots("title")||n.displayTitle])])])});return e("div",{class:Ts()},[e("div",{ref:"bar",style:this.barStyle,class:Ts("bar",{opened:this.opened})},[n]),this.slots("default")])}}),Ss="van-empty-network-",ks={render:function(){var t=arguments[0],e=function(e,n,i){return t("stop",{attrs:{"stop-color":e,offset:n+"%","stop-opacity":i}})};return t("svg",{attrs:{viewBox:"0 0 160 160",xmlns:"http://www.w3.org/2000/svg"}},[t("defs",[t("linearGradient",{attrs:{id:Ss+"1",x1:"64.022%",y1:"100%",x2:"64.022%",y2:"0%"}},[e("#FFF",0,.5),e("#F2F3F5",100)]),t("linearGradient",{attrs:{id:Ss+"2",x1:"50%",y1:"0%",x2:"50%",y2:"84.459%"}},[e("#EBEDF0",0),e("#DCDEE0",100,0)]),t("linearGradient",{attrs:{id:Ss+"3",x1:"100%",y1:"0%",x2:"100%",y2:"100%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:Ss+"4",x1:"100%",y1:"100%",x2:"100%",y2:"0%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:Ss+"5",x1:"0%",y1:"43.982%",x2:"100%",y2:"54.703%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:Ss+"6",x1:"94.535%",y1:"43.837%",x2:"5.465%",y2:"54.948%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("radialGradient",{attrs:{id:Ss+"7",cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54835 0 .5 -.5)"}},[e("#EBEDF0",0),e("#FFF",100,0)])]),t("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[t("g",{attrs:{opacity:".8"}},[t("path",{attrs:{d:"M0 124V46h20v20h14v58H0z",fill:"url(#"+Ss+"1)",transform:"matrix(-1 0 0 1 36 7)"}}),t("path",{attrs:{d:"M121 8h22.231v14H152v77.37h-31V8z",fill:"url(#"+Ss+"1)",transform:"translate(2 7)"}})]),t("path",{attrs:{fill:"url(#"+Ss+"7)",d:"M0 139h160v21H0z"}}),t("path",{attrs:{d:"M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",fill:"url(#"+Ss+"2)","fill-rule":"nonzero",transform:"translate(43 36)"}}),t("g",{attrs:{opacity:".6","stroke-linecap":"round","stroke-width":"7"}},[t("path",{attrs:{d:"M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+Ss+"3)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+Ss+"3)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+Ss+"4)",transform:"rotate(-180 76.483 42.257)"}}),t("path",{attrs:{d:"M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+Ss+"4)",transform:"rotate(-180 89.791 42.146)"}})]),t("g",{attrs:{transform:"translate(31 105)","fill-rule":"nonzero"}},[t("rect",{attrs:{fill:"url(#"+Ss+"5)",width:"98",height:"34",rx:"2"}}),t("rect",{attrs:{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.114"}}),t("rect",{attrs:{fill:"url(#"+Ss+"6)",x:"15",y:"12",width:"18",height:"6",rx:"1.114"}})])])])}},xs=Object(o.b)("empty"),Us=xs[0],Is=xs[1],Fs=["error","search","default"],Os=Us({props:{imageSize:[Number,String],description:String,image:{type:String,default:"default"}},methods:{genImageContent:function(){var t=this.$createElement,e=this.slots("image");if(e)return e;if("network"===this.image)return t(ks);var n=this.image;return-1!==Fs.indexOf(n)&&(n="https://img01.yzcdn.cn/vant/empty-image-"+n+".png"),t("img",{attrs:{src:n}})},genImage:function(){var t=this.$createElement,e={width:Object(o.a)(this.imageSize),height:Object(o.a)(this.imageSize)};return t("div",{class:Is("image"),style:e},[this.genImageContent()])},genDescription:function(){var t=this.$createElement,e=this.slots("description")||this.description;if(e)return t("p",{class:Is("description")},[e])},genBottom:function(){var t=this.$createElement,e=this.slots();if(e)return t("div",{class:Is("bottom")},[e])}},render:function(){return(0,arguments[0])("div",{class:Is()},[this.genImage(),this.genDescription(),this.genBottom()])}}),Qs=Object(o.b)("form"),Ns=Qs[0],Ls=Qs[1],Ds=Ns({props:{colon:Boolean,disabled:Boolean,readonly:Boolean,labelWidth:[Number,String],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,errorMessageAlign:String,submitOnEnter:{type:Boolean,default:!0},validateTrigger:{type:String,default:"onBlur"},showError:{type:Boolean,default:!0},showErrorMessage:{type:Boolean,default:!0}},provide:function(){return{vanForm:this}},data:function(){return{fields:[]}},methods:{getFieldsByNames:function(t){return t?this.fields.filter(function(e){return-1!==t.indexOf(e.name)}):this.fields},validateSeq:function(t){var e=this;return new Promise(function(n,i){var r=[];e.getFieldsByNames(t).reduce(function(t,e){return t.then(function(){if(!r.length)return e.validate().then(function(t){t&&r.push(t)})})},Promise.resolve()).then(function(){r.length?i(r):n()})})},validateFields:function(t){var e=this;return new Promise(function(n,i){var r=e.getFieldsByNames(t);Promise.all(r.map(function(t){return t.validate()})).then(function(t){(t=t.filter(function(t){return t})).length?i(t):n()})})},validate:function(t){return t&&!Array.isArray(t)?this.validateField(t):this.validateFirst?this.validateSeq(t):this.validateFields(t)},validateField:function(t){var e=this.fields.filter(function(e){return e.name===t});return e.length?new Promise(function(t,n){e[0].validate().then(function(e){e?n(e):t()})}):Promise.reject()},resetValidation:function(t){t&&!Array.isArray(t)&&(t=[t]),this.getFieldsByNames(t).forEach(function(t){t.resetValidation()})},scrollToField:function(t,e){this.fields.some(function(n){return n.name===t&&(n.$el.scrollIntoView(e),!0)})},addField:function(t){this.fields.push(t),Ee(this.fields,this)},removeField:function(t){this.fields=this.fields.filter(function(e){return e!==t})},getValues:function(){return this.fields.reduce(function(t,e){return t[e.name]=e.formValue,t},{})},onSubmit:function(t){t.preventDefault(),this.submit()},submit:function(){var t=this,e=this.getValues();this.validate().then(function(){t.$emit("submit",e)}).catch(function(n){t.$emit("failed",{values:e,errors:n}),t.scrollToError&&t.scrollToField(n[0].name)})}},render:function(){return(0,arguments[0])("form",{class:Ls(),on:{submit:this.onSubmit}},[this.slots()])}}),Ps=Object(o.b)("goods-action-icon"),Rs=Ps[0],Hs=Ps[1],Ms=Rs({mixins:[Se("vanGoodsAction")],props:i({},Gt,{dot:Boolean,text:String,icon:String,color:String,info:[Number,String],badge:[Number,String],iconClass:null}),methods:{onClick:function(t){this.$emit("click",t),$t(this.$router,this)},genIcon:function(){var t,e=this.$createElement,n=this.slots("icon"),i=null!=(t=this.badge)?t:this.info;return n?e("div",{class:Hs("icon")},[n,e(Y,{attrs:{dot:this.dot,info:i}})]):e(it,{class:[Hs("icon"),this.iconClass],attrs:{tag:"div",dot:this.dot,name:this.icon,badge:i,color:this.color}})}},render:function(){return(0,arguments[0])("div",{attrs:{role:"button",tabindex:"0"},class:Hs(),on:{click:this.onClick}},[this.genIcon(),this.slots()||this.text])}}),Ks=Object(o.b)("grid"),js=Ks[0],Vs=Ks[1],zs=js({mixins:[ke("vanGrid")],props:{square:Boolean,gutter:[Number,String],iconSize:[Number,String],direction:String,clickable:Boolean,columnNum:{type:[Number,String],default:4},center:{type:Boolean,default:!0},border:{type:Boolean,default:!0}},computed:{style:function(){var t=this.gutter;if(t)return{paddingLeft:Object(o.a)(t)}}},render:function(){var t;return(0,arguments[0])("div",{style:this.style,class:[Vs(),(t={},t[wt]=this.border&&!this.gutter,t)]},[this.slots()])}}),$s=Object(o.b)("grid-item"),Ws=$s[0],Gs=$s[1],Xs=Ws({mixins:[Se("vanGrid")],props:i({},Gt,{dot:Boolean,text:String,icon:String,iconPrefix:String,info:[Number,String],badge:[Number,String]}),computed:{style:function(){var t=this.parent,e=t.square,n=t.gutter,i=t.columnNum,r=100/i+"%",s={flexBasis:r};if(e)s.paddingTop=r;else if(n){var a=Object(o.a)(n);s.paddingRight=a,this.index>=i&&(s.marginTop=a)}return s},contentStyle:function(){var t=this.parent,e=t.square,n=t.gutter;if(e&&n){var i=Object(o.a)(n);return{right:i,bottom:i,height:"auto"}}}},methods:{onClick:function(t){this.$emit("click",t),$t(this.$router,this)},genIcon:function(){var t,e=this.$createElement,n=this.slots("icon"),i=null!=(t=this.badge)?t:this.info;return n?e("div",{class:Gs("icon-wrapper")},[n,e(Y,{attrs:{dot:this.dot,info:i}})]):this.icon?e(it,{attrs:{name:this.icon,dot:this.dot,badge:i,size:this.parent.iconSize,classPrefix:this.iconPrefix},class:Gs("icon")}):void 0},getText:function(){var t=this.$createElement,e=this.slots("text");return e||(this.text?t("span",{class:Gs("text")},[this.text]):void 0)},genContent:function(){var t=this.slots();return t||[this.genIcon(),this.getText()]}},render:function(){var t,e=arguments[0],n=this.parent,i=n.center,r=n.border,s=n.square,a=n.gutter,o=n.direction,u=n.clickable;return e("div",{class:[Gs({square:s})],style:this.style},[e("div",{style:this.contentStyle,attrs:{role:u?"button":null,tabindex:u?0:null},class:[Gs("content",[o,{center:i,square:s,clickable:u,surround:r&&a}]),(t={},t[_t]=r,t)],on:{click:this.onClick}},[this.genContent()])])}}),qs=Object(o.b)("image-preview"),Ys=qs[0],Js=qs[1],Zs=Object(o.b)("swipe"),ta=Zs[0],ea=Zs[1],na=ta({mixins:[H,ke("vanSwipe"),j(function(t,e){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()})],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var e=this.vertical?"height":"width",n=this.vertical?"width":"height";t[e]=this.trackSize+"px",t[n]=this[n]?this[n]+"px":""}return t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),this.$el&&!fi(this.$el)){clearTimeout(this.timer);var e={width:this.$el.offsetWidth,height:this.$el.offsetHeight};this.rect=e,this.swiping=!0,this.active=t,this.computedWidth=+this.width||e.width,this.computedHeight=+this.height||e.height,this.offset=this.getTargetOffset(t),this.children.forEach(function(t){t.offset=0}),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(y(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var t=this.size,e=this.delta,n=e/(Date.now()-this.touchStartTime);if((Math.abs(n)>.25||Math.abs(e)>t/2)&&this.isCorrectDirection){var i=this.vertical?this.offsetY:this.offsetX,r=0;r=this.loop?i>0?e>0?-1:1:0:-Math[e>0?"ceil":"floor"](e/t),this.move({pace:r,emitChange:!0})}else e&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,n=this.count,i=this.maxCount;return t?this.loop?xt(e+t,-1,n):xt(e+t,0,i):e},getTargetOffset:function(t,e){void 0===e&&(e=0);var n=t*this.size;this.loop||(n=Math.min(n,-this.minOffset));var i=e-n;return this.loop||(i=xt(i,this.minOffset,0)),i},move:function(t){var e=t.pace,n=void 0===e?0:e,i=t.offset,r=void 0===i?0:i,s=t.emitChange,a=this.loop,o=this.count,u=this.active,l=this.children,c=this.trackSize,A=this.minOffset;if(!(o<=1)){var h=this.getTargetActive(n),d=this.getTargetOffset(h,r);if(a){if(l[0]&&d!==A){var f=d<A;l[0].offset=f?c:0}if(l[o-1]&&0!==d){var p=d>0;l[o-1].offset=p?-c:0}}this.active=h,this.offset=d,s&&h!==u&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(Pn.b)(function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})})},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(Pn.b)(function(){t.swiping=!1,t.move({pace:1,emitChange:!0})})},swipeTo:function(t,e){var n=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),Object(Pn.b)(function(){var i;i=n.loop&&t===n.count?0===n.active?0:t:t%n.count,e.immediate?Object(Pn.b)(function(){n.swiping=!1}):n.swiping=!1,n.move({pace:i-n.active,emitChange:!0})})},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout(function(){t.next(),t.autoPlay()},e))},genIndicator:function(){var t=this,e=this.$createElement,n=this.count,i=this.activeIndicator,r=this.slots("indicator");return r||(this.showIndicators&&n>1?e("div",{class:ea("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(n)).map(function(n,r){return e("i",{class:ea("indicator",{active:r===i}),style:r===i?t.indicatorStyle:null})})]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:ea()},[t("div",{ref:"track",style:this.trackStyle,class:ea("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}}),ia=Object(o.b)("swipe-item"),ra=ia[0],sa=ia[1],aa=ra({mixins:[Se("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var t=this;this.$nextTick(function(){t.mounted=!0})},computed:{style:function(){var t={},e=this.parent,n=e.size,i=e.vertical;return n&&(t[i?"height":"width"]=n+"px"),this.offset&&(t.transform="translate"+(i?"Y":"X")+"("+this.offset+"px)"),t},shouldRender:function(){var t=this.index,e=this.inited,n=this.parent,i=this.mounted;if(!n.lazyRender||e)return!0;if(!i)return!1;var r=n.activeIndicator,s=n.count-1,a=0===r&&n.loop?s:r-1,o=r===s&&n.loop?0:r+1,u=t===r||t===a||t===o;return u&&(this.inited=!0),u}},render:function(){return(0,arguments[0])("div",{class:sa(),style:this.style,on:i({},this.$listeners)},[this.shouldRender&&this.slots()])}});function oa(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}var ua,la={mixins:[H],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var t=this.rootWidth,e=this.rootHeight/t;return this.imageRatio>e},imageStyle:function(){var t=this.scale,e={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(1!==t){var n=this.moveX/t,i=this.moveY/t;e.transform="scale("+t+", "+t+") translate("+n+"px, "+i+"px)"}return e},maxMoveX:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*t-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*t-this.rootHeight)/2)}return 0}},watch:{active:"resetScale",show:function(t){t||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(t){(t=xt(t,+this.minZoom,+this.maxZoom))!==this.scale&&(this.scale=t,this.$emit("scale",{scale:this.scale,index:this.active}))},toggleScale:function(){var t=this.scale>1?1:2;this.setScale(t),this.moveX=0,this.moveY=0},onTouchStart:function(t){var e=t.touches,n=this.offsetX,i=void 0===n?0:n;this.touchStart(t),this.touchStartTime=new Date,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=1===e.length&&1!==this.scale,this.zooming=2===e.length&&!i,this.zooming&&(this.startScale=this.scale,this.startDistance=oa(t.touches))},onTouchMove:function(t){var e=t.touches;if(this.touchMove(t),(this.moving||this.zooming)&&y(t,!0),this.moving){var n=this.deltaX+this.startMoveX,i=this.deltaY+this.startMoveY;this.moveX=xt(n,-this.maxMoveX,this.maxMoveX),this.moveY=xt(i,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var r=oa(e),s=this.startScale*r/this.startDistance;this.setScale(s)}},onTouchEnd:function(t){var e=!1;(this.moving||this.zooming)&&(e=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.zooming&&(this.moveX=xt(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=xt(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),y(t,e),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var t=this,e=this.offsetX,n=void 0===e?0:e,i=this.offsetY,r=void 0===i?0:i,s=new Date-this.touchStartTime;n<10&&r<10&&s<250&&(this.doubleTapTimer?(clearTimeout(this.doubleTapTimer),this.doubleTapTimer=null,this.toggleScale()):this.doubleTapTimer=setTimeout(function(){t.$emit("close"),t.doubleTapTimer=null},250))},onLoad:function(t){var e=t.target,n=e.naturalWidth,i=e.naturalHeight;this.imageRatio=i/n}},render:function(){var t=arguments[0],e={loading:function(){return t(ht,{attrs:{type:"spinner"}})}};return t(aa,{class:Js("swipe-item")},[t(ii,{attrs:{src:this.src,fit:"contain"},class:Js("image",{vertical:this.vertical}),style:this.imageStyle,scopedSlots:e,on:{load:this.onLoad}})])}},ca=Ys({mixins:[H,$({skipToggleEvent:!0}),j(function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)})],props:{className:null,closeable:Boolean,asyncClose:Boolean,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},transition:{type:String,default:"van-fade"},showIndex:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:300},startPosition:{type:[Number,String],default:0},overlayClass:{type:String,default:Js("overlay")},closeIcon:{type:String,default:"clear"},closeOnPopstate:{type:Boolean,default:!0},closeIconPosition:{type:String,default:"top-right"}},data:function(){return{active:0,rootWidth:0,rootHeight:0,doubleClickTimer:null}},mounted:function(){this.resize()},watch:{startPosition:"setActive",value:function(t){var e=this;t?(this.setActive(+this.startPosition),this.$nextTick(function(){e.resize(),e.$refs.swipe.swipeTo(+e.startPosition,{immediate:!0})})):this.$emit("close",{index:this.active,url:this.images[this.active]})}},methods:{resize:function(){if(this.$el&&this.$el.getBoundingClientRect){var t=this.$el.getBoundingClientRect();this.rootWidth=t.width,this.rootHeight=t.height}},emitClose:function(){this.asyncClose||this.$emit("input",!1)},emitScale:function(t){this.$emit("scale",t)},setActive:function(t){t!==this.active&&(this.active=t,this.$emit("change",t))},genIndex:function(){var t=this.$createElement;if(this.showIndex)return t("div",{class:Js("index")},[this.slots("index",{index:this.active})||this.active+1+" / "+this.images.length])},genCover:function(){var t=this.$createElement,e=this.slots("cover");if(e)return t("div",{class:Js("cover")},[e])},genImages:function(){var t=this,e=this.$createElement;return e(na,{ref:"swipe",attrs:{lazyRender:!0,loop:this.loop,duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators,indicatorColor:"white"},class:Js("swipe"),on:{change:this.setActive}},[this.images.map(function(n){return e(la,{attrs:{src:n,show:t.value,active:t.active,maxZoom:t.maxZoom,minZoom:t.minZoom,rootWidth:t.rootWidth,rootHeight:t.rootHeight},on:{scale:t.emitScale,close:t.emitClose}})})])},genClose:function(){var t=this.$createElement;if(this.closeable)return t(it,{attrs:{role:"button",name:this.closeIcon},class:Js("close-icon",this.closeIconPosition),on:{click:this.emitClose}})},onClosed:function(){this.$emit("closed")},swipeTo:function(t,e){this.$refs.swipe&&this.$refs.swipe.swipeTo(t,e)}},render:function(){var t=arguments[0];return t("transition",{attrs:{name:this.transition},on:{afterLeave:this.onClosed}},[this.shouldRender?t("div",{directives:[{name:"show",value:this.value}],class:[Js(),this.className]},[this.genClose(),this.genImages(),this.genIndex(),this.genCover()]):null])}}),Aa={loop:!0,value:!0,images:[],maxZoom:3,minZoom:1/3,onClose:null,onChange:null,className:"",showIndex:!0,closeable:!1,closeIcon:"clear",asyncClose:!1,transition:"van-fade",getContainer:"body",startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"},ha=function(t,e){if(void 0===e&&(e=0),!o.j){ua||(ua=new(a.a.extend(ca))({el:document.createElement("div")}),document.body.appendChild(ua.$el),ua.$on("change",function(t){ua.onChange&&ua.onChange(t)}),ua.$on("scale",function(t){ua.onScale&&ua.onScale(t)}));var n=Array.isArray(t)?{images:t,startPosition:e}:t;return i(ua,Aa,n),ua.$once("input",function(t){ua.value=t}),ua.$once("closed",function(){ua.images=[]}),n.onClose&&(ua.$off("close"),ua.$once("close",n.onClose)),ua}};ha.Component=ca,ha.install=function(){a.a.use(ca)};var da=ha,fa=Object(o.b)("index-anchor"),pa=fa[0],ga=fa[1],ma=pa({mixins:[Se("vanIndexBar",{indexKey:"childrenIndex"})],props:{index:[Number,String]},data:function(){return{top:0,left:null,rect:{top:0,height:0},width:null,active:!1}},computed:{sticky:function(){return this.active&&this.parent.sticky},anchorStyle:function(){if(this.sticky)return{zIndex:""+this.parent.zIndex,left:this.left?this.left+"px":null,width:this.width?this.width+"px":null,transform:"translate3d(0, "+this.top+"px, 0)",color:this.parent.highlightColor}}},mounted:function(){var t=this.$el.getBoundingClientRect();this.rect.height=t.height},methods:{scrollIntoView:function(){this.$el.scrollIntoView()},getRect:function(t,e){var n=this.$el.getBoundingClientRect();return this.rect.height=n.height,t===window||t===document.body?this.rect.top=n.top+L():this.rect.top=n.top+Q(t)-e.top,this.rect}},render:function(){var t,e=arguments[0],n=this.sticky;return e("div",{style:{height:n?this.rect.height+"px":null}},[e("div",{style:this.anchorStyle,class:[ga({sticky:n}),(t={},t[Ct]=n,t)]},[this.slots("default")||this.index])])}});var va=Object(o.b)("index-bar"),ya=va[0],ba=va[1],_a=ya({mixins:[H,ke("vanIndexBar"),j(function(t){this.scroller||(this.scroller=O(this.$el)),t(this.scroller,"scroll",this.onScroll)})],props:{zIndex:[Number,String],highlightColor:String,sticky:{type:Boolean,default:!0},stickyOffsetTop:{type:Number,default:0},indexList:{type:Array,default:function(){for(var t=[],e="A".charCodeAt(0),n=0;n<26;n++)t.push(String.fromCharCode(e+n));return t}}},data:function(){return{activeAnchorIndex:null}},computed:{sidebarStyle:function(){if(Object(o.e)(this.zIndex))return{zIndex:this.zIndex+1}},highlightStyle:function(){var t=this.highlightColor;if(t)return{color:t}}},watch:{indexList:function(){this.$nextTick(this.onScroll)},activeAnchorIndex:function(t){t&&this.$emit("change",t)}},methods:{onScroll:function(){var t=this;if(!fi(this.$el)){var e=Q(this.scroller),n=this.getScrollerRect(),i=this.children.map(function(e){return e.getRect(t.scroller,n)}),r=this.getActiveAnchorIndex(e,i);this.activeAnchorIndex=this.indexList[r],this.sticky&&this.children.forEach(function(s,a){if(a===r||a===r-1){var o=s.$el.getBoundingClientRect();s.left=o.left,s.width=o.width}else s.left=null,s.width=null;if(a===r)s.active=!0,s.top=Math.max(t.stickyOffsetTop,i[a].top-e)+n.top;else if(a===r-1){var u=i[r].top-e;s.active=u>0,s.top=u+n.top-i[a].height}else s.active=!1})}},getScrollerRect:function(){return this.scroller.getBoundingClientRect?this.scroller.getBoundingClientRect():{top:0,left:0}},getActiveAnchorIndex:function(t,e){for(var n=this.children.length-1;n>=0;n--){var i=n>0?e[n-1].height:0;if(t+(this.sticky?i+this.stickyOffsetTop:0)>=e[n].top)return n}return-1},onClick:function(t){this.scrollToElement(t.target)},onTouchMove:function(t){if(this.touchMove(t),"vertical"===this.direction){y(t);var e=t.touches[0],n=e.clientX,i=e.clientY,r=document.elementFromPoint(n,i);if(r){var s=r.dataset.index;this.touchActiveIndex!==s&&(this.touchActiveIndex=s,this.scrollToElement(r))}}},scrollTo:function(t){var e=this.children.filter(function(e){return String(e.index)===t});e[0]&&(e[0].scrollIntoView(),this.sticky&&this.stickyOffsetTop&&D(L()-this.stickyOffsetTop),this.$emit("select",e[0].index))},scrollToElement:function(t){var e=t.dataset.index;this.scrollTo(e)},onTouchEnd:function(){this.active=null}},render:function(){var t=this,e=arguments[0],n=this.indexList.map(function(n){var i=n===t.activeAnchorIndex;return e("span",{class:ba("index",{active:i}),style:i?t.highlightStyle:null,attrs:{"data-index":n}},[n])});return e("div",{class:ba()},[e("div",{class:ba("sidebar"),style:this.sidebarStyle,on:{click:this.onClick,touchstart:this.touchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[n]),this.slots("default")])}}),wa=n("cTzj"),Ba=n.n(wa).a,Ca=Object(o.b)("list"),Ta=Ca[0],Ea=Ca[1],Sa=Ca[2],ka=Ta({mixins:[j(function(t){this.scroller||(this.scroller=O(this.$el)),t(this.scroller,"scroll",this.check)})],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick(function(){if(!(t.innerLoading||t.finished||t.error)){var e,n=t.$el,i=t.scroller,r=t.offset,s=t.direction;if(!((e=i.getBoundingClientRect?i.getBoundingClientRect():{top:0,bottom:i.innerHeight}).bottom-e.top)||fi(n))return!1;var a=t.$refs.placeholder.getBoundingClientRect();("up"===s?e.top-a.top<=r:a.bottom-e.bottom<=r)&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}})},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{key:"loading",class:Ea("loading")},[this.slots("loading")||t(ht,{attrs:{size:"16"}},[this.loadingText||Sa("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var e=this.slots("finished")||this.finishedText;if(e)return t("div",{class:Ea("finished-text")},[e])}},genErrorText:function(){var t=this.$createElement;if(this.error){var e=this.slots("error")||this.errorText;if(e)return t("div",{on:{click:this.clickErrorText},class:Ea("error-text")},[e])}}},render:function(){var t=arguments[0],e=t("div",{ref:"placeholder",key:"placeholder",class:Ea("placeholder")});return t("div",{class:Ea(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():e,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():e])}}),xa=n("S06l"),Ua=Object(o.b)("nav-bar"),Ia=Ua[0],Fa=Ua[1],Oa=Ia({props:{title:String,fixed:Boolean,zIndex:[Number,String],leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,border:{type:Boolean,default:!0}},data:function(){return{height:null}},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.navBar.getBoundingClientRect().height)},methods:{genLeft:function(){var t=this.$createElement,e=this.slots("left");return e||[this.leftArrow&&t(it,{class:Fa("arrow"),attrs:{name:"arrow-left"}}),this.leftText&&t("span",{class:Fa("text")},[this.leftText])]},genRight:function(){var t=this.$createElement,e=this.slots("right");return e||(this.rightText?t("span",{class:Fa("text")},[this.rightText]):void 0)},genNavBar:function(){var t,e=this.$createElement;return e("div",{ref:"navBar",style:{zIndex:this.zIndex},class:[Fa({fixed:this.fixed,"safe-area-inset-top":this.safeAreaInsetTop}),(t={},t[Ct]=this.border,t)]},[e("div",{class:Fa("content")},[this.hasLeft()&&e("div",{class:Fa("left"),on:{click:this.onClickLeft}},[this.genLeft()]),e("div",{class:[Fa("title"),"van-ellipsis"]},[this.slots("title")||this.title]),this.hasRight()&&e("div",{class:Fa("right"),on:{click:this.onClickRight}},[this.genRight()])])])},hasLeft:function(){return this.leftArrow||this.leftText||this.slots("left")},hasRight:function(){return this.rightText||this.slots("right")},onClickLeft:function(t){this.$emit("click-left",t)},onClickRight:function(t){this.$emit("click-right",t)}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:Fa("placeholder"),style:{height:this.height+"px"}},[this.genNavBar()]):this.genNavBar()}}),Qa=Object(o.b)("notice-bar"),Na=Qa[0],La=Qa[1],Da=Na({mixins:[j(function(t){t(window,"pageshow",this.start)})],props:{text:String,mode:String,color:String,leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null},delay:{type:[Number,String],default:1},speed:{type:[Number,String],default:50}},data:function(){return{show:!0,offset:0,duration:0,wrapWidth:0,contentWidth:0}},watch:{scrollable:"start",text:{handler:"start",immediate:!0}},activated:function(){this.start()},methods:{onClickIcon:function(t){"closeable"===this.mode&&(this.show=!1,this.$emit("close",t))},onTransitionEnd:function(){var t=this;this.offset=this.wrapWidth,this.duration=0,Object(Pn.c)(function(){Object(Pn.b)(function(){t.offset=-t.contentWidth,t.duration=(t.contentWidth+t.wrapWidth)/t.speed,t.$emit("replay")})})},reset:function(){this.offset=0,this.duration=0,this.wrapWidth=0,this.contentWidth=0},start:function(){var t=this,e=Object(o.e)(this.delay)?1e3*this.delay:0;this.reset(),clearTimeout(this.startTimer),this.startTimer=setTimeout(function(){var e=t.$refs,n=e.wrap,i=e.content;if(n&&i&&!1!==t.scrollable){var r=n.getBoundingClientRect().width,s=i.getBoundingClientRect().width;(t.scrollable||s>r)&&Object(Pn.b)(function(){t.offset=-s,t.duration=s/t.speed,t.wrapWidth=r,t.contentWidth=s})}},e)}},render:function(){var t,e=this,n=arguments[0],i=this.slots,r=this.mode,s=this.leftIcon,a=this.onClickIcon,o={color:this.color,background:this.background},u={transform:this.offset?"translateX("+this.offset+"px)":"",transitionDuration:this.duration+"s"};return n("div",{attrs:{role:"alert"},directives:[{name:"show",value:this.show}],class:La({wrapable:this.wrapable}),style:o,on:{click:function(t){e.$emit("click",t)}}},[(t=i("left-icon"),t||(s?n(it,{class:La("left-icon"),attrs:{name:s}}):void 0)),n("div",{ref:"wrap",class:La("wrap"),attrs:{role:"marquee"}},[n("div",{ref:"content",class:[La("content"),{"van-ellipsis":!1===this.scrollable&&!this.wrapable}],style:u,on:{transitionend:this.onTransitionEnd}},[this.slots()||this.text])]),function(){var t,e=i("right-icon");return e||("closeable"===r?t="cross":"link"===r&&(t="arrow"),t?n(it,{class:La("right-icon"),attrs:{name:t},on:{click:a}}):void 0)}()])}}),Pa=Object(o.b)("notify"),Ra=Pa[0],Ha=Pa[1];function Ma(t,e,n,i){var r={color:e.color,background:e.background};return t(ot,s()([{attrs:{value:e.value,position:"top",overlay:!1,duration:.2,lockScroll:!1},style:r,class:[Ha([e.type]),e.className]},c(i,!0)]),[(null==n.default?void 0:n.default())||e.message])}Ma.props=i({},z,{color:String,message:[Number,String],duration:[Number,String],className:null,background:String,getContainer:[String,Function],type:{type:String,default:"danger"}});var Ka,ja,Va=Ra(Ma);function za(t){var e;if(!o.j)return ja||(ja=h(Va,{on:{click:function(t){ja.onClick&&ja.onClick(t)},close:function(){ja.onClose&&ja.onClose()},opened:function(){ja.onOpened&&ja.onOpened()}}})),t=i({},za.currentOptions,(e=t,Object(o.h)(e)?e:{message:e})),i(ja,t),clearTimeout(Ka),t.duration&&t.duration>0&&(Ka=setTimeout(za.clear,t.duration)),ja}za.clear=function(){ja&&(ja.value=!1)},za.currentOptions={type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null},za.setDefaultOptions=function(t){i(za.currentOptions,t)},za.resetDefaultOptions=function(){za.currentOptions={type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null}},za.install=function(){a.a.use(Va)},za.Component=Va,a.a.prototype.$notify=za;var $a=za,Wa={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 32 22",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",fill:"currentColor"}})])}},Ga={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 30 24",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",fill:"currentColor"}})])}},Xa=Object(o.b)("key"),qa=Xa[0],Ya=Xa[1],Ja=qa({mixins:[H],props:{type:String,text:[Number,String],color:String,wider:Boolean,large:Boolean,loading:Boolean},data:function(){return{active:!1}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{onTouchStart:function(t){t.stopPropagation(),this.touchStart(t),this.active=!0},onTouchMove:function(t){this.touchMove(t),this.direction&&(this.active=!1)},onTouchEnd:function(t){this.active&&(this.slots("default")||t.preventDefault(),this.active=!1,this.$emit("press",this.text,this.type))},genContent:function(){var t=this.$createElement,e="extra"===this.type,n="delete"===this.type,i=this.slots("default")||this.text;return this.loading?t(ht,{class:Ya("loading-icon")}):n?i||t(Wa,{class:Ya("delete-icon")}):e?i||t(Ga,{class:Ya("collapse-icon")}):i}},render:function(){var t=arguments[0];return t("div",{class:Ya("wrapper",{wider:this.wider})},[t("div",{attrs:{role:"button",tabindex:"0"},class:Ya([this.color,{large:this.large,active:this.active,delete:"delete"===this.type}])},[this.genContent()])])}}),Za=Object(o.b)("number-keyboard"),to=Za[0],eo=Za[1],no=to({mixins:[M(),j(function(t){this.hideOnClickOutside&&t(document.body,"touchstart",this.onBlur)})],model:{event:"update:value"},props:{show:Boolean,title:String,zIndex:[Number,String],randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,theme:{type:String,default:"default"},value:{type:String,default:""},extraKey:{type:[String,Array],default:""},maxlength:{type:[Number,String],default:Number.MAX_VALUE},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0}},watch:{show:function(t){this.transition||this.$emit(t?"show":"hide")}},computed:{keys:function(){return"custom"===this.theme?this.genCustomKeys():this.genDefaultKeys()}},methods:{genBasicKeys:function(){for(var t=[],e=1;e<=9;e++)t.push({text:e});return this.randomKeyOrder&&t.sort(function(){return Math.random()>.5?1:-1}),t},genDefaultKeys:function(){return[].concat(this.genBasicKeys(),[{text:this.extraKey,type:"extra"},{text:0},{text:this.showDeleteKey?this.deleteButtonText:"",type:this.showDeleteKey?"delete":""}])},genCustomKeys:function(){var t=this.genBasicKeys(),e=this.extraKey,n=Array.isArray(e)?e:[e];return 1===n.length?t.push({text:0,wider:!0},{text:n[0],type:"extra"}):2===n.length&&t.push({text:n[0],type:"extra"},{text:0},{text:n[1],type:"extra"}),t},onBlur:function(){this.show&&this.$emit("blur")},onClose:function(){this.$emit("close"),this.onBlur()},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPress:function(t,e){if(""!==t){var n=this.value;"delete"===e?(this.$emit("delete"),this.$emit("update:value",n.slice(0,n.length-1))):"close"===e?this.onClose():n.length<this.maxlength&&(this.$emit("input",t),this.$emit("update:value",n+t))}else"extra"===e&&this.onBlur()},genTitle:function(){var t=this.$createElement,e=this.title,n=this.theme,i=this.closeButtonText,r=this.slots("title-left"),s=i&&"default"===n;if(e||s||r)return t("div",{class:eo("header")},[r&&t("span",{class:eo("title-left")},[r]),e&&t("h2",{class:eo("title")},[e]),s&&t("button",{attrs:{type:"button"},class:eo("close"),on:{click:this.onClose}},[i])])},genKeys:function(){var t=this,e=this.$createElement;return this.keys.map(function(n){return e(Ja,{key:n.text,attrs:{text:n.text,type:n.type,wider:n.wider,color:n.color},on:{press:t.onPress}},["delete"===n.type&&t.slots("delete"),"extra"===n.type&&t.slots("extra-key")])})},genSidebar:function(){var t=this.$createElement;if("custom"===this.theme)return t("div",{class:eo("sidebar")},[this.showDeleteKey&&t(Ja,{attrs:{large:!0,text:this.deleteButtonText,type:"delete"},on:{press:this.onPress}},[this.slots("delete")]),t(Ja,{attrs:{large:!0,text:this.closeButtonText,type:"close",color:"blue",loading:this.closeButtonLoading},on:{press:this.onPress}})])}},render:function(){var t=arguments[0],e=this.genTitle();return t("transition",{attrs:{name:this.transition?"van-slide-up":""}},[t("div",{directives:[{name:"show",value:this.show}],style:{zIndex:this.zIndex},class:eo({unfit:!this.safeAreaInsetBottom,"with-title":e}),on:{touchstart:v,animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[e,t("div",{class:eo("body")},[t("div",{class:eo("keys")},[this.genKeys()]),this.genSidebar()])])])}}),io=Object(o.b)("pagination"),ro=io[0],so=io[1],ao=io[2];function oo(t,e,n){return{number:t,text:e,active:n}}var uo=ro({props:{prevText:String,nextText:String,forceEllipses:Boolean,mode:{type:String,default:"multi"},value:{type:Number,default:0},pageCount:{type:[Number,String],default:0},totalItems:{type:[Number,String],default:0},itemsPerPage:{type:[Number,String],default:10},showPageSize:{type:[Number,String],default:5}},computed:{count:function(){var t=this.pageCount||Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(1,t)},pages:function(){var t=[],e=this.count,n=+this.showPageSize;if("multi"!==this.mode)return t;var i=1,r=e,s=n<e;s&&(r=(i=Math.max(this.value-Math.floor(n/2),1))+n-1)>e&&(i=(r=e)-n+1);for(var a=i;a<=r;a++){var o=oo(a,a,a===this.value);t.push(o)}if(s&&n>0&&this.forceEllipses){if(i>1){var u=oo(i-1,"...",!1);t.unshift(u)}if(r<e){var l=oo(r+1,"...",!1);t.push(l)}}return t}},watch:{value:{handler:function(t){this.select(t||this.value)},immediate:!0}},methods:{select:function(t,e){t=Math.min(this.count,Math.max(1,t)),this.value!==t&&(this.$emit("input",t),e&&this.$emit("change",t))}},render:function(){var t,e,n=this,i=arguments[0],r=this.value,s="multi"!==this.mode,a=function(t){return function(){n.select(t,!0)}};return i("ul",{class:so({simple:s})},[i("li",{class:[so("item",{disabled:1===r}),so("prev"),_t],on:{click:a(r-1)}},[(null!=(t=this.slots("prev-text"))?t:this.prevText)||ao("prev")]),this.pages.map(function(t){var e;return i("li",{class:[so("item",{active:t.active}),so("page"),_t],on:{click:a(t.number)}},[null!=(e=n.slots("page",t))?e:t.text])}),s&&i("li",{class:so("page-desc")},[this.slots("pageDesc")||r+"/"+this.count]),i("li",{class:[so("item",{disabled:r===this.count}),so("next"),_t],on:{click:a(r+1)}},[(null!=(e=this.slots("next-text"))?e:this.nextText)||ao("next")])])}}),lo=Object(o.b)("panel"),co=lo[0],Ao=lo[1];function ho(t,e,n,i){return t(Mi,s()([{class:Ao(),scopedSlots:{default:function(){return[n.header?n.header():t(te,{attrs:{icon:e.icon,label:e.desc,title:e.title,value:e.status,valueClass:Ao("header-value")},class:Ao("header")}),t("div",{class:Ao("content")},[n.default&&n.default()]),n.footer&&t("div",{class:[Ao("footer"),wt]},[n.footer()])]}}},c(i,!0)]))}ho.props={icon:String,desc:String,title:String,status:String};var fo=co(ho),po=Object(o.b)("password-input"),go=po[0],mo=po[1];function vo(t,e,n,i){for(var r,a=e.mask,u=e.value,l=e.length,h=e.gutter,d=e.focused,f=e.errorInfo,p=f||e.info,g=[],m=0;m<l;m++){var v,y=u[m],b=0!==m&&!h,_=d&&m===u.length,w=void 0;0!==m&&h&&(w={marginLeft:Object(o.a)(h)}),g.push(t("li",{class:[(v={},v[Bt]=b,v),mo("item",{focus:_})],style:w},[a?t("i",{style:{visibility:y?"visible":"hidden"}}):y,_&&t("div",{class:mo("cursor")})]))}return t("div",{class:mo()},[t("ul",s()([{class:[mo("security"),(r={},r[Tt]=!h,r)],on:{touchstart:function(t){t.stopPropagation(),A(i,"focus",t)}}},c(i,!0)]),[g]),p&&t("div",{class:mo(f?"error-info":"info")},[p])])}vo.props={info:String,gutter:[Number,String],focused:Boolean,errorInfo:String,mask:{type:Boolean,default:!0},value:{type:String,default:""},length:{type:[Number,String],default:6}};var yo=go(vo);function bo(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function _o(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function wo(t){var e=_o(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Bo(t){return t instanceof _o(t).Element||t instanceof Element}function Co(t){return t instanceof _o(t).HTMLElement||t instanceof HTMLElement}function To(t){return t?(t.nodeName||"").toLowerCase():null}function Eo(t){return((Bo(t)?t.ownerDocument:t.document)||window.document).documentElement}function So(t){return _o(t).getComputedStyle(t)}function ko(t){var e=So(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function xo(t,e,n){void 0===n&&(n=!1);var i,r,s=Eo(e),a=bo(t),o=Co(e),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&(("body"!==To(e)||ko(s))&&(u=(i=e)!==_o(i)&&Co(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:wo(i)),Co(e)?((l=bo(e)).x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=function(t){return bo(Eo(t)).left+wo(t).scrollLeft}(s))),{x:a.left+u.scrollLeft-l.x,y:a.top+u.scrollTop-l.y,width:a.width,height:a.height}}function Uo(t){return"html"===To(t)?t:t.assignedSlot||t.parentNode||(e=t,"undefined"!=typeof ShadowRoot&&(e instanceof _o(e).ShadowRoot||e instanceof ShadowRoot)?t.host:null)||Eo(t);var e}function Io(t,e){var n;void 0===e&&(e=[]);var i=function t(e){return["html","body","#document"].indexOf(To(e))>=0?e.ownerDocument.body:Co(e)&&ko(e)?e:t(Uo(e))}(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),s=_o(i),a=r?[s].concat(s.visualViewport||[],ko(i)?i:[]):i,o=e.concat(a);return r?o:o.concat(Io(Uo(a)))}function Fo(t){return["table","td","th"].indexOf(To(t))>=0}function Oo(t){return Co(t)&&"fixed"!==So(t).position?t.offsetParent:null}function Qo(t){for(var e=_o(t),n=Oo(t);n&&Fo(n)&&"static"===So(n).position;)n=Oo(n);return n&&("html"===To(n)||"body"===To(n)&&"static"===So(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Co(t)&&"fixed"===So(t).position)return null;for(var n=Uo(t);Co(n)&&["html","body"].indexOf(To(n))<0;){var i=So(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}var No="top",Lo="bottom",Do="right",Po="left",Ro="auto",Ho="start",Mo="end",Ko=[].concat([No,Lo,Do,Po],[Ro]).reduce(function(t,e){return t.concat([e,e+"-"+Ho,e+"-"+Mo])},[]),jo=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Vo(t){var e=new Map,n=new Set,i=[];return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||function t(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach(function(i){if(!n.has(i)){var r=e.get(i);r&&t(r)}}),i.push(r)}(t)}),i}function zo(t){return t.split("-")[0]}var $o=Math.round;var Wo={placement:"bottom",modifiers:[],strategy:"absolute"};function Go(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}var Xo={passive:!0};var qo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yo(t){var e,n=t.popper,i=t.popperRect,r=t.placement,s=t.offsets,a=t.position,o=t.gpuAcceleration,u=t.adaptive,l=t.roundOffsets,c=!0===l?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:$o($o(e*i)/i)||0,y:$o($o(n*i)/i)||0}}(s):"function"==typeof l?l(s):s,A=c.x,h=void 0===A?0:A,d=c.y,f=void 0===d?0:d,p=s.hasOwnProperty("x"),g=s.hasOwnProperty("y"),m=Po,v=No,y=window;if(u){var b=Qo(n),_="clientHeight",w="clientWidth";b===_o(n)&&"static"!==So(b=Eo(n)).position&&(_="scrollHeight",w="scrollWidth"),b=b,r===No&&(v=Lo,f-=b[_]-i.height,f*=o?1:-1),r===Po&&(m=Do,h-=b[w]-i.width,h*=o?1:-1)}var B,C=Object.assign({position:a},u&&qo);return o?Object.assign({},C,((B={})[v]=g?"0":"",B[m]=p?"0":"",B.transform=(y.devicePixelRatio||1)<2?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",B)):Object.assign({},C,((e={})[v]=g?f+"px":"",e[m]=p?h+"px":"",e.transform="",e))}var Jo=function(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,r=e.defaultOptions,s=void 0===r?Wo:r;return function(t,e,n){void 0===n&&(n=s);var r,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wo,s),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},u=[],l=!1,c={state:o,setOptions:function(n){A(),o.options=Object.assign({},s,o.options,n),o.scrollParents={reference:Bo(t)?Io(t):t.contextElement?Io(t.contextElement):[],popper:Io(e)};var r=function(t){var e=Vo(t);return jo.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}(function(t){var e=t.reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{});return Object.keys(e).map(function(t){return e[t]})}([].concat(i,o.options.modifiers)));return o.orderedModifiers=r.filter(function(t){return t.enabled}),o.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,r=t.effect;if("function"==typeof r){var s=r({state:o,name:e,instance:c,options:i});u.push(s||function(){})}}),c.update()},forceUpdate:function(){if(!l){var t=o.elements,e=t.reference,n=t.popper;if(Go(e,n)){var i,r,s,a;o.rects={reference:xo(e,Qo(n),"fixed"===o.options.strategy),popper:(i=n,r=bo(i),s=i.offsetWidth,a=i.offsetHeight,Math.abs(r.width-s)<=1&&(s=r.width),Math.abs(r.height-a)<=1&&(a=r.height),{x:i.offsetLeft,y:i.offsetTop,width:s,height:a})},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(t){return o.modifiersData[t.name]=Object.assign({},t.data)});for(var u=0;u<o.orderedModifiers.length;u++)if(!0!==o.reset){var A=o.orderedModifiers[u],h=A.fn,d=A.options,f=void 0===d?{}:d,p=A.name;"function"==typeof h&&(o=h({state:o,options:f,name:p,instance:c})||o)}else o.reset=!1,u=-1}}},update:(r=function(){return new Promise(function(t){c.forceUpdate(),t(o)})},function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(r())})})),a}),destroy:function(){A(),l=!0}};if(!Go(t,e))return c;function A(){u.forEach(function(t){return t()}),u=[]}return c.setOptions(n).then(function(t){!l&&n.onFirstUpdate&&n.onFirstUpdate(t)}),c}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,r=i.scroll,s=void 0===r||r,a=i.resize,o=void 0===a||a,u=_o(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&l.forEach(function(t){t.addEventListener("scroll",n.update,Xo)}),o&&u.addEventListener("resize",n.update,Xo),function(){s&&l.forEach(function(t){t.removeEventListener("scroll",n.update,Xo)}),o&&u.removeEventListener("resize",n.update,Xo)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=function(t){var e,n=t.reference,i=t.element,r=t.placement,s=r?zo(r):null,a=r?function(t){return t.split("-")[1]}(r):null,o=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2;switch(s){case No:e={x:o,y:n.y-i.height};break;case Lo:e={x:o,y:n.y+n.height};break;case Do:e={x:n.x+n.width,y:u};break;case Po:e={x:n.x-i.width,y:u};break;default:e={x:n.x,y:n.y}}var l=s?function(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}(s):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case Ho:e[l]=e[l]-(n[c]/2-i[c]/2);break;case Mo:e[l]=e[l]+(n[c]/2-i[c]/2)}}return e}({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,s=n.adaptive,a=void 0===s||s,o=n.roundOffsets,u=void 0===o||o,l={placement:zo(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Yo(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Yo(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];Co(r)&&To(r)&&(Object.assign(r.style,n),Object.keys(i).forEach(function(t){var e=i[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var i=e.elements[t],r=e.attributes[t]||{},s=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});Co(i)&&To(i)&&(Object.assign(i.style,s),Object.keys(r).forEach(function(t){i.removeAttribute(t)}))})}},requires:["computeStyles"]}]});var Zo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.offset,s=void 0===r?[0,0]:r,a=Ko.reduce(function(t,n){return t[n]=function(t,e,n){var i=zo(t),r=[Po,No].indexOf(i)>=0?-1:1,s="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=s[0],o=s[1];return a=a||0,o=(o||0)*r,[Po,Do].indexOf(i)>=0?{x:o,y:a}:{x:a,y:o}}(n,e.rects,s),t},{}),o=a[e.placement],u=o.x,l=o.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=a}},tu=Object(o.b)("popover"),eu=tu[0],nu=tu[1],iu=eu({mixins:[ws({event:"touchstart",method:"onClickOutside"})],props:{value:Boolean,trigger:String,overlay:Boolean,offset:{type:Array,default:function(){return[0,8]}},theme:{type:String,default:"light"},actions:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom"},getContainer:{type:[String,Function],default:"body"},closeOnClickAction:{type:Boolean,default:!0}},watch:{value:"updateLocation",placement:"updateLocation"},mounted:function(){this.updateLocation()},beforeDestroy:function(){this.popper&&(this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){return Jo(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},i({},Zo,{options:{offset:this.offset}})]})},updateLocation:function(){var t=this;this.$nextTick(function(){t.value&&(t.popper?t.popper.setOptions({placement:t.placement}):t.popper=t.createPopper())})},renderAction:function(t,e){var n=this,i=this.$createElement,r=t.icon,s=t.text,a=t.disabled,o=t.className;return i("div",{attrs:{role:"menuitem"},class:[nu("action",{disabled:a,"with-icon":r}),o],on:{click:function(){return n.onClickAction(t,e)}}},[r&&i(it,{attrs:{name:r},class:nu("action-icon")}),i("div",{class:[nu("action-text"),Ct]},[s])])},onToggle:function(t){this.$emit("input",t)},onClickWrapper:function(){"click"===this.trigger&&this.onToggle(!this.value)},onTouchstart:function(t){t.stopPropagation(),this.$emit("touchstart",t)},onClickAction:function(t,e){t.disabled||(this.$emit("select",t,e),this.closeOnClickAction&&this.$emit("input",!1))},onClickOutside:function(){this.$emit("input",!1)},onOpen:function(){this.$emit("open")},onOpened:function(){this.$emit("opened")},onClose:function(){this.$emit("close")},onClosed:function(){this.$emit("closed")}},render:function(){var t=arguments[0];return t("span",{ref:"wrapper",class:nu("wrapper"),on:{click:this.onClickWrapper}},[t(ot,{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:nu([this.theme]),on:{open:this.onOpen,close:this.onClose,input:this.onToggle,opened:this.onOpened,closed:this.onClosed},nativeOn:{touchstart:this.onTouchstart}},[t("div",{class:nu("arrow")}),t("div",{class:nu("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}}),ru=Object(o.b)("progress"),su=ru[0],au=ru[1],ou=su({props:{color:String,inactive:Boolean,pivotText:String,textColor:String,pivotColor:String,trackColor:String,strokeWidth:[Number,String],percentage:{type:[Number,String],required:!0,validator:function(t){return t>=0&&t<=100}},showPivot:{type:Boolean,default:!0}},data:function(){return{pivotWidth:0,progressWidth:0}},mounted:function(){this.resize()},watch:{showPivot:"resize",pivotText:"resize"},methods:{resize:function(){var t=this;this.$nextTick(function(){t.progressWidth=t.$el.offsetWidth,t.pivotWidth=t.$refs.pivot?t.$refs.pivot.offsetWidth:0})}},render:function(){var t=arguments[0],e=this.pivotText,n=this.percentage,i=null!=e?e:n+"%",r=this.showPivot&&i,s=this.inactive?"#cacaca":this.color,a={color:this.textColor,left:(this.progressWidth-this.pivotWidth)*n/100+"px",background:this.pivotColor||s},u={background:s,width:this.progressWidth*n/100+"px"},l={background:this.trackColor,height:Object(o.a)(this.strokeWidth)};return t("div",{class:au(),style:l},[t("span",{class:au("portion"),style:u},[r&&t("span",{ref:"pivot",style:a,class:au("pivot")},[i])])])}}),uu=Object(o.b)("pull-refresh"),lu=uu[0],cu=uu[1],Au=uu[2],hu=["pulling","loosing","success"],du=lu({mixins:[H],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:[Number,String],value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:50}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return"loading"!==this.status&&"success"!==this.status&&!this.disabled},headStyle:function(){if(50!==this.headHeight)return{height:this.headHeight+"px"}}},watch:{value:function(t){this.duration=this.animationDuration,t?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=O(this.$el)},methods:{checkPullStart:function(t){this.ceiling=0===Q(this.scrollEl),this.ceiling&&(this.duration=0,this.touchStart(t))},onTouchStart:function(t){this.touchable&&this.checkPullStart(t)},onTouchMove:function(t){this.touchable&&(this.ceiling||this.checkPullStart(t),this.touchMove(t),this.ceiling&&this.deltaY>=0&&"vertical"===this.direction&&(y(t),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var t=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,"loosing"===this.status?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick(function(){t.$emit("refresh")})):this.setStatus(0))},ease:function(t){var e=+(this.pullDistance||this.headHeight);return t>e&&(t=t<2*e?e+(t-e)/2:1.5*e+(t-2*e)/4),Math.round(t)},setStatus:function(t,e){var n;n=e?"loading":0===t?"normal":t<(this.pullDistance||this.headHeight)?"pulling":"loosing",this.distance=t,n!==this.status&&(this.status=n)},genStatus:function(){var t=this.$createElement,e=this.status,n=this.distance,i=this.slots(e,{distance:n});if(i)return i;var r=[],s=this[e+"Text"]||Au(e);return-1!==hu.indexOf(e)&&r.push(t("div",{class:cu("text")},[s])),"loading"===e&&r.push(t(ht,{attrs:{size:"16"}},[s])),r},showSuccessTip:function(){var t=this;this.status="success",setTimeout(function(){t.setStatus(0)},this.successDuration)}},render:function(){var t=arguments[0],e={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return t("div",{class:cu()},[t("div",{ref:"track",class:cu("track"),style:e},[t("div",{class:cu("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}}),fu=Object(o.b)("rate"),pu=fu[0],gu=fu[1];var mu=pu({mixins:[H,Je],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var t,e,n,i=[],r=1;r<=this.count;r++)i.push((t=this.value,e=r,n=this.allowHalf,t>=e?"full":t+.5>=e&&n?"half":"void"));return i},sizeWithUnit:function(){return Object(o.a)(this.size)},gutterWithUnit:function(){return Object(o.a)(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(t){this.disabled||this.readonly||t===this.value||(this.$emit("input",t),this.$emit("change",t))},onTouchStart:function(t){var e=this;if(!this.readonly&&!this.disabled&&this.touchable){this.touchStart(t);var n=[];this.$refs.items.map(function(t){return t.getBoundingClientRect()}).forEach(function(t,i){e.allowHalf?n.push({score:i+.5,left:t.left},{score:i+1,left:t.left+t.width/2}):n.push({score:i+1,left:t.left})}),this.ranges=n}},onTouchMove:function(t){if(!this.readonly&&!this.disabled&&this.touchable&&(this.touchMove(t),"horizontal"===this.direction)){y(t);var e=t.touches[0].clientX;this.select(this.getScoreByPosition(e))}},getScoreByPosition:function(t){for(var e=this.ranges.length-1;e>0;e--)if(t>this.ranges[e].left)return this.ranges[e].score;return this.allowHalf?.5:1},genStar:function(t,e){var n,i=this,r=this.$createElement,s=this.icon,a=this.color,o=this.count,u=this.voidIcon,l=this.disabled,c=this.voidColor,A=this.disabledColor,h=e+1,d="full"===t,f="void"===t;return this.gutterWithUnit&&h!==+o&&(n={paddingRight:this.gutterWithUnit}),r("div",{ref:"items",refInFor:!0,key:e,attrs:{role:"radio",tabindex:"0","aria-setsize":o,"aria-posinset":h,"aria-checked":String(!f)},style:n,class:gu("item")},[r(it,{attrs:{size:this.sizeWithUnit,name:d?s:u,color:l?A:d?a:c,classPrefix:this.iconPrefix,"data-score":h},class:gu("icon",{disabled:l,full:d}),on:{click:function(){i.select(h)}}}),this.allowHalf&&r(it,{attrs:{size:this.sizeWithUnit,name:f?u:s,color:l?A:f?c:a,classPrefix:this.iconPrefix,"data-score":h-.5},class:gu("icon",["half",{disabled:l,full:!f}]),on:{click:function(){i.select(h-.5)}}})])}},render:function(){var t=this;return(0,arguments[0])("div",{class:gu({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map(function(e,n){return t.genStar(e,n)})])}}),vu=Object(o.b)("row"),yu=vu[0],bu=vu[1],_u=yu({mixins:[ke("vanRow")],props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},computed:{spaces:function(){var t=Number(this.gutter);if(t){var e=[],n=[[]],i=0;return this.children.forEach(function(t,e){(i+=Number(t.span))>24?(n.push([e]),i-=24):n[n.length-1].push(e)}),n.forEach(function(n){var i=t*(n.length-1)/n.length;n.forEach(function(n,r){if(0===r)e.push({right:i});else{var s=t-e[n-1].right,a=i-s;e.push({left:s,right:a})}})}),e}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],n=this.align,i=this.justify,r="flex"===this.type;return e(this.tag,{class:bu((t={flex:r},t["align-"+n]=r&&n,t["justify-"+i]=r&&i,t)),on:{click:this.onClick}},[this.slots()])}}),wu=Object(o.b)("search"),Bu=wu[0],Cu=wu[1],Tu=wu[2];function Eu(t,e,n,r){var a={attrs:r.data.attrs,on:i({},r.listeners,{keypress:function(t){13===t.keyCode&&(y(t),A(r,"search",e.value)),A(r,"keypress",t)}})},o=c(r);return o.attrs=void 0,t("div",s()([{class:Cu({"show-action":e.showAction}),style:{background:e.background}},o]),[null==n.left?void 0:n.left(),t("div",{class:Cu("content",e.shape)},[function(){if(n.label||e.label)return t("div",{class:Cu("label")},[n.label?n.label():e.label])}(),t(ae,s()([{attrs:{type:"search",border:!1,value:e.value,leftIcon:e.leftIcon,rightIcon:e.rightIcon,clearable:e.clearable,clearTrigger:e.clearTrigger},scopedSlots:{"left-icon":n["left-icon"],"right-icon":n["right-icon"]}},a]))]),function(){if(e.showAction)return t("div",{class:Cu("action"),attrs:{role:"button",tabindex:"0"},on:{click:function(){n.action||(A(r,"input",""),A(r,"cancel"))}}},[n.action?n.action():e.actionText||Tu("cancel")])}()])}Eu.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}};var Su=Bu(Eu),ku=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode","wechat-moments"],xu=Object(o.b)("share-sheet"),Uu=xu[0],Iu=xu[1],Fu=xu[2],Ou=Uu({props:i({},z,{title:String,duration:String,cancelText:String,description:String,getContainer:[String,Function],options:{type:Array,default:function(){return[]}},overlay:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),methods:{onCancel:function(){this.toggle(!1),this.$emit("cancel")},onSelect:function(t,e){this.$emit("select",t,e)},toggle:function(t){this.$emit("input",t)},getIconURL:function(t){return-1!==ku.indexOf(t)?"https://img01.yzcdn.cn/vant/share-sheet-"+t+".png":t},genHeader:function(){var t=this.$createElement,e=this.slots("title")||this.title,n=this.slots("description")||this.description;if(e||n)return t("div",{class:Iu("header")},[e&&t("h2",{class:Iu("title")},[e]),n&&t("span",{class:Iu("description")},[n])])},genOptions:function(t,e){var n=this,i=this.$createElement;return i("div",{class:Iu("options",{border:e})},[t.map(function(t,e){return i("div",{attrs:{role:"button",tabindex:"0"},class:[Iu("option"),t.className],on:{click:function(){n.onSelect(t,e)}}},[i("img",{attrs:{src:n.getIconURL(t.icon)},class:Iu("icon")}),t.name&&i("span",{class:Iu("name")},[t.name]),t.description&&i("span",{class:Iu("option-description")},[t.description])])})])},genRows:function(){var t=this,e=this.options;return Array.isArray(e[0])?e.map(function(e,n){return t.genOptions(e,0!==n)}):this.genOptions(e)},genCancelText:function(){var t,e=this.$createElement,n=null!=(t=this.cancelText)?t:Fu("cancel");if(n)return e("button",{attrs:{type:"button"},class:Iu("cancel"),on:{click:this.onCancel}},[n])},onClickOverlay:function(){this.$emit("click-overlay")}},render:function(){return(0,arguments[0])(ot,{attrs:{round:!0,value:this.value,position:"bottom",overlay:this.overlay,duration:this.duration,lazyRender:this.lazyRender,lockScroll:this.lockScroll,getContainer:this.getContainer,closeOnPopstate:this.closeOnPopstate,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:Iu(),on:{input:this.toggle,"click-overlay":this.onClickOverlay}},[this.genHeader(),this.genRows(),this.genCancelText()])}}),Qu=Object(o.b)("sidebar"),Nu=Qu[0],Lu=Qu[1],Du=Nu({mixins:[ke("vanSidebar")],model:{prop:"activeKey"},props:{activeKey:{type:[Number,String],default:0}},data:function(){return{index:+this.activeKey}},watch:{activeKey:function(){this.setIndex(+this.activeKey)}},methods:{setIndex:function(t){t!==this.index&&(this.index=t,this.$emit("change",t))}},render:function(){return(0,arguments[0])("div",{class:Lu()},[this.slots()])}}),Pu=Object(o.b)("sidebar-item"),Ru=Pu[0],Hu=Pu[1],Mu=Ru({mixins:[Se("vanSidebar")],props:i({},Gt,{dot:Boolean,info:[Number,String],badge:[Number,String],title:String,disabled:Boolean}),computed:{select:function(){return this.index===+this.parent.activeKey}},methods:{onClick:function(){this.disabled||(this.$emit("click",this.index),this.parent.$emit("input",this.index),this.parent.setIndex(this.index),$t(this.$router,this))}},render:function(){var t,e,n=arguments[0];return n("a",{class:Hu({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[n("div",{class:Hu("text")},[null!=(t=this.slots("title"))?t:this.title,n(Y,{attrs:{dot:this.dot,info:null!=(e=this.badge)?e:this.info},class:Hu("info")})])])}}),Ku=Object(o.b)("skeleton"),ju=Ku[0],Vu=Ku[1],zu="100%",$u="60%";function Wu(t,e,n,i){if(!e.loading)return n.default&&n.default();return t("div",s()([{class:Vu({animate:e.animate,round:e.round})},c(i)]),[function(){if(e.avatar){var n=Object(o.a)(e.avatarSize);return t("div",{class:Vu("avatar",e.avatarShape),style:{width:n,height:n}})}}(),t("div",{class:Vu("content")},[function(){if(e.title)return t("h3",{class:Vu("title"),style:{width:Object(o.a)(e.titleWidth)}})}(),function(){for(var n,i=[],r=e.rowWidth,s=0;s<e.row;s++)i.push(t("div",{class:Vu("row"),style:{width:Object(o.a)((n=s,r===zu&&n===+e.row-1?$u:Array.isArray(r)?r[n]:r))}}));return i}()])])}Wu.props={title:Boolean,round:Boolean,avatar:Boolean,titleWidth:[Number,String],avatarSize:[Number,String],row:{type:[Number,String],default:0},loading:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},avatarShape:{type:String,default:"round"},rowWidth:{type:[Number,String,Array],default:zu}};var Gu=ju(Wu),Xu={QUOTA_LIMIT:0,STOCK_LIMIT:1},qu={LIMIT_TYPE:Xu,UNSELECTED_SKU_VALUE_ID:""},Yu=function(t){var e={};return t.forEach(function(t){e[t.k_s]=t.v}),e},Ju=function(t,e){var n=Object.keys(e).filter(function(t){return""!==e[t]});return t.length===n.length},Zu=function(t,e){return t.filter(function(t){return Object.keys(e).every(function(n){return String(t[n])===String(e[n])})})[0]},tl=function(t,e){var n=Yu(t);return Object.keys(e).reduce(function(t,i){var r=n[i],s=e[i];if(""!==s){var a=r.filter(function(t){return t.id===s})[0];a&&t.push(a)}return t},[])},el=function(t,e,n){var r,s=n.key,a=n.valueId,o=i({},e,((r={})[s]=a,r)),u=Object.keys(o).filter(function(t){return""!==o[t]});return t.filter(function(t){return u.every(function(e){return String(o[e])===String(t[e])})}).reduce(function(t,e){return t+=e.stock_num},0)>0},nl=function(t,e){var n=function(t){var e={};return t.forEach(function(t){var n={};t.v.forEach(function(t){n[t.id]=t}),e[t.k_id]=n}),e}(t);return Object.keys(e).reduce(function(t,r){return e[r].forEach(function(e){t.push(i({},n[r][e]))}),t},[])},il=function(t,e){var n=[];return(t||[]).forEach(function(t){if(e[t.k_id]&&e[t.k_id].length>0){var r=[];t.v.forEach(function(n){e[t.k_id].indexOf(n.id)>-1&&r.push(i({},n))}),n.push(i({},t,{v:r}))}}),n},rl={normalizeSkuTree:Yu,getSkuComb:Zu,getSelectedSkuValues:tl,isAllSelected:Ju,isSkuChoosable:el,getSelectedPropValues:nl,getSelectedProperties:il},sl=Object(o.b)("sku-header"),al=sl[0],ol=sl[1];function ul(t,e,n,r){var a,o=e.sku,u=e.goods,l=e.skuEventBus,A=e.selectedSku,h=e.showHeaderImage,d=void 0===h||h,f=function(t,e){var n;return t.tree.some(function(t){var r=e[t.k_s];if(r&&t.v){var s=t.v.filter(function(t){return t.id===r})[0]||{},a=s.previewImgUrl||s.imgUrl||s.img_url;if(a)return n=i({},s,{ks:t.k_s,imgUrl:a}),!0}return!1}),n}(o,A),p=f?f.imgUrl:u.picture;return t("div",s()([{class:[ol(),Ct]},c(r)]),[d&&t(ii,{attrs:{fit:"cover",src:p},class:ol("img-wrap"),on:{click:function(){l.$emit("sku:previewImage",f)}}},[null==(a=n["sku-header-image-extra"])?void 0:a.call(n)]),t("div",{class:ol("goods-info")},[null==n.default?void 0:n.default()])])}ul.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object,showHeaderImage:Boolean};var ll=al(ul),cl=Object(o.b)("sku-header-item"),Al=cl[0],hl=cl[1];var dl=Al(function(t,e,n,i){return t("div",s()([{class:hl()},c(i)]),[n.default&&n.default()])}),fl=Object(o.b)("sku-row"),pl=fl[0],gl=fl[1],ml=fl[2],vl=pl({mixins:[ke("vanSkuRows"),j(function(t){this.scrollable&&this.$refs.scroller&&t(this.$refs.scroller,"scroll",this.onScroll)})],props:{skuRow:Object},data:function(){return{progress:0}},computed:{scrollable:function(){return this.skuRow.largeImageMode&&this.skuRow.v.length>6}},methods:{onScroll:function(){var t=this.$refs,e=t.scroller,n=t.row.offsetWidth-e.offsetWidth;this.progress=e.scrollLeft/n},genTitle:function(){var t=this.$createElement;return t("div",{class:gl("title")},[this.skuRow.k,this.skuRow.is_multiple&&t("span",{class:gl("title-multiple")},["(",ml("multiple"),")"])])},genIndicator:function(){var t=this.$createElement;if(this.scrollable){var e={transform:"translate3d("+20*this.progress+"px, 0, 0)"};return t("div",{class:gl("indicator-wrapper")},[t("div",{class:gl("indicator")},[t("div",{class:gl("indicator-slider"),style:e})])])}},genContent:function(){var t=this.$createElement,e=this.slots();if(this.skuRow.largeImageMode){var n=[],i=[];return e.forEach(function(t,e){(Math.floor(e/3)%2==0?n:i).push(t)}),t("div",{class:gl("scroller"),ref:"scroller"},[t("div",{class:gl("row"),ref:"row"},[n]),i.length?t("div",{class:gl("row")},[i]):null])}return e},centerItem:function(t){if(this.skuRow.largeImageMode&&t){var e=this.children,n=void 0===e?[]:e,i=this.$refs,r=i.scroller,s=i.row,a=n.find(function(e){return+e.skuValue.id==+t});if(r&&s&&a&&a.$el){var o=a.$el,u=o.offsetLeft-(r.offsetWidth-o.offsetWidth)/2;r.scrollLeft=u}}}},render:function(){return(0,arguments[0])("div",{class:[gl(),Ct]},[this.genTitle(),this.genContent(),this.genIndicator()])}}),yl=(0,Object(o.b)("sku-row-item")[0])({mixins:[Se("vanSkuRows")],props:{lazyLoad:Boolean,skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedSku:Object,largeImageMode:Boolean,disableSoldoutSku:Boolean,skuList:{type:Array,default:function(){return[]}}},computed:{imgUrl:function(){var t=this.skuValue.imgUrl||this.skuValue.img_url;return this.largeImageMode?t||"https://img01.yzcdn.cn/upload_files/2020/06/24/FmKWDg0bN9rMcTp9ne8MXiQWGtLn.png":t},choosable:function(){return!this.disableSoldoutSku||el(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id})}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",i({},this.skuValue,{skuKeyStr:this.skuKeyStr}))},onPreviewImg:function(t){t.stopPropagation();var e=this.skuValue,n=this.skuKeyStr;this.skuEventBus.$emit("sku:previewImage",i({},e,{ks:n,imgUrl:e.imgUrl||e.img_url}))},genImage:function(t){var e=this.$createElement;if(this.imgUrl)return e(ii,{attrs:{fit:"cover",src:this.imgUrl,lazyLoad:this.lazyLoad},class:t+"-img"})}},render:function(){var t=arguments[0],e=this.skuValue.id===this.selectedSku[this.skuKeyStr],n=this.largeImageMode?gl("image-item"):gl("item");return t("span",{class:[n,e?n+"--active":"",this.choosable?"":n+"--disabled"],on:{click:this.onSelect}},[this.genImage(n),t("div",{class:n+"-name"},[this.largeImageMode?t("span",{class:{"van-multi-ellipsis--l2":this.largeImageMode}},[this.skuValue.name]):this.skuValue.name]),this.largeImageMode&&t(it,{attrs:{name:"enlarge"},class:n+"-img-icon",on:{click:this.onPreviewImg}})])}}),bl=(0,Object(o.b)("sku-row-prop-item")[0])({props:{skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedProp:Object,multiple:Boolean},computed:{choosed:function(){var t=this.selectedProp,e=this.skuKeyStr,n=this.skuValue;return!(!t||!t[e])&&t[e].indexOf(n.id)>-1}},methods:{onSelect:function(){this.skuEventBus.$emit("sku:propSelect",i({},this.skuValue,{skuKeyStr:this.skuKeyStr,multiple:this.multiple}))}},render:function(){var t=arguments[0];return t("span",{class:["van-sku-row__item",{"van-sku-row__item--active":this.choosed}],on:{click:this.onSelect}},[t("span",{class:"van-sku-row__item-name"},[this.skuValue.name])])}}),_l=Object(o.b)("stepper"),wl=_l[0],Bl=_l[1];function Cl(t,e){return String(t)===String(e)}var Tl=wl({mixins:[Je],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var t,e=null!=(t=this.value)?t:this.defaultValue,n=this.format(e);return Cl(n,this.value)||this.$emit("input",n),{currentValue:n}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var t={};return this.inputWidth&&(t.width=Object(o.a)(this.inputWidth)),this.buttonSize&&(t.height=Object(o.a)(this.buttonSize)),t},buttonStyle:function(){if(this.buttonSize){var t=Object(o.a)(this.buttonSize);return{width:t,height:t}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(t){Cl(t,this.currentValue)||(this.currentValue=this.format(t))},currentValue:function(t){this.$emit("input",t),this.$emit("change",t,{name:this.name})}},methods:{check:function(){var t=this.format(this.currentValue);Cl(t,this.currentValue)||(this.currentValue=t)},formatNumber:function(t){return It(String(t),!this.integer)},format:function(t){return this.allowEmpty&&""===t?t:(t=""===(t=this.formatNumber(t))?0:+t,t=Object(On.a)(t)?this.min:t,t=Math.max(Math.min(this.max,t),this.min),Object(o.e)(this.decimalLength)&&(t=t.toFixed(this.decimalLength)),t)},onInput:function(t){var e=t.target.value,n=this.formatNumber(e);if(Object(o.e)(this.decimalLength)&&-1!==n.indexOf(".")){var i=n.split(".");n=i[0]+"."+i[1].slice(0,this.decimalLength)}Cl(e,n)||(t.target.value=n),n===String(+n)&&(n=+n),this.emitChange(n)},emitChange:function(t){this.asyncChange?(this.$emit("input",t),this.$emit("change",t,{name:this.name})):this.currentValue=t},onChange:function(){var t=this.type;if(this[t+"Disabled"])this.$emit("overlimit",t);else{var e,n,i,r="minus"===t?-this.step:+this.step,s=this.format((e=+this.currentValue,n=r,i=Math.pow(10,10),Math.round((e+n)*i)/i));this.emitChange(s),this.$emit(t)}},onFocus:function(t){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",t)},onBlur:function(t){var e=this.format(t.target.value);t.target.value=e,this.currentValue=e,this.$emit("blur",t),ne()},longPressStep:function(){var t=this;this.longPressTimer=setTimeout(function(){t.onChange(),t.longPressStep(t.type)},200)},onTouchStart:function(){var t=this;this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout(function(){t.isLongPress=!0,t.onChange(),t.longPressStep()},600))},onTouchEnd:function(t){this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress&&y(t))},onMousedown:function(t){this.disableInput&&t.preventDefault()}},render:function(){var t=this,e=arguments[0],n=function(e){return{on:{click:function(n){n.preventDefault(),t.type=e,t.onChange()},touchstart:function(){t.type=e,t.onTouchStart()},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}}};return e("div",{class:Bl([this.theme])},[e("button",s()([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:Bl("minus",{disabled:this.minusDisabled})},n("minus")])),e("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:Bl("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),e("button",s()([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:Bl("plus",{disabled:this.plusDisabled})},n("plus")]))])}}),El=Object(o.b)("sku-stepper"),Sl=El[0],kl=El[2],xl=Xu.QUOTA_LIMIT,Ul=Xu.STOCK_LIMIT,Il=Sl({props:{stock:Number,skuEventBus:Object,skuStockNum:Number,selectedNum:Number,stepperTitle:String,disableStepperInput:Boolean,customStepperConfig:Object,hideQuotaText:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1}},data:function(){return{currentNum:this.selectedNum,limitType:Ul}},watch:{currentNum:function(t){var e=parseInt(t,10);e>=this.stepperMinLimit&&e<=this.stepperLimit&&this.skuEventBus.$emit("sku:numChange",e)},stepperLimit:function(t){t<this.currentNum&&this.stepperMinLimit<=t&&(this.currentNum=t),this.checkState(this.stepperMinLimit,t)},stepperMinLimit:function(t){(t>this.currentNum||t>this.stepperLimit)&&(this.currentNum=t),this.checkState(t,this.stepperLimit)}},computed:{stepperLimit:function(){var t,e=this.quota-this.quotaUsed;return this.quota>0&&e<=this.stock?(t=e<0?0:e,this.limitType=xl):(t=this.stock,this.limitType=Ul),t},stepperMinLimit:function(){return this.startSaleNum<1?1:this.startSaleNum},quotaText:function(){var t=this.customStepperConfig,e=t.quotaText;if(t.hideQuotaText)return"";var n="";if(e)n=e;else{var i=[];this.startSaleNum>1&&i.push(kl("quotaStart",this.startSaleNum)),this.quota>0&&i.push(kl("quotaLimit",this.quota)),n=i.join(kl("comma"))}return n}},created:function(){this.checkState(this.stepperMinLimit,this.stepperLimit)},methods:{setCurrentNum:function(t){this.currentNum=t,this.checkState(this.stepperMinLimit,this.stepperLimit)},onOverLimit:function(t){this.skuEventBus.$emit("sku:overLimit",{action:t,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})},onChange:function(t){var e=parseInt(t,10),n=this.customStepperConfig.handleStepperChange;n&&n(e),this.$emit("change",e)},checkState:function(t,e){this.currentNum<t||t>e?this.currentNum=t:this.currentNum>e&&(this.currentNum=e),this.skuEventBus.$emit("sku:stepperState",{valid:t<=e,min:t,max:e,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})}},render:function(){var t=this,e=arguments[0];return e("div",{class:"van-sku-stepper-stock"},[e("div",{class:"van-sku__stepper-title"},[this.stepperTitle||kl("num")]),e(Tl,{attrs:{integer:!0,min:this.stepperMinLimit,max:this.stepperLimit,disableInput:this.disableStepperInput},class:"van-sku__stepper",on:{overlimit:this.onOverLimit,change:this.onChange},model:{value:t.currentNum,callback:function(e){t.currentNum=e}}}),!this.hideQuotaText&&this.quotaText&&e("span",{class:"van-sku__stepper-quota"},["(",this.quotaText,")"])])}});function Fl(t){return/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(t)}function Ol(t){return Array.isArray(t)?t:[t]}function Ql(t,e){return new Promise(function(n){if("file"!==e){var i=new FileReader;i.onload=function(t){n(t.target.result)},"dataUrl"===e?i.readAsDataURL(t):"text"===e&&i.readAsText(t)}else n(null)})}var Nl=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function Ll(t){return!!t.isImage||(t.file&&t.file.type?0===t.file.type.indexOf("image"):t.url?(e=t.url,Nl.test(e)):!!t.content&&0===t.content.indexOf("data:image"));var e}var Dl=Object(o.b)("uploader"),Pl=Dl[0],Rl=Dl[1],Hl=Pl({inheritAttrs:!1,mixins:[Je],model:{prop:"fileList"},props:{disabled:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return Object(o.a)(this.previewSize)},value:function(){return this.fileList}},methods:{getDetail:function(t){return void 0===t&&(t=this.fileList.length),{name:this.name,index:t}},onChange:function(t){var e=this,n=t.target.files;if(!this.disabled&&n.length){if(n=1===n.length?n[0]:[].slice.call(n),this.beforeRead){var i=this.beforeRead(n,this.getDetail());if(!i)return void this.resetInput();if(Object(o.i)(i))return void i.then(function(t){t?e.readFile(t):e.readFile(n)}).catch(this.resetInput)}this.readFile(n)}},readFile:function(t){var e=this,n=function(t,e){return Ol(t).some(function(t){return t.size>e})}(t,this.maxSize);if(Array.isArray(t)){var i=this.maxCount-this.fileList.length;t.length>i&&(t=t.slice(0,i)),Promise.all(t.map(function(t){return Ql(t,e.resultType)})).then(function(i){var r=t.map(function(t,e){var n={file:t,status:"",message:""};return i[e]&&(n.content=i[e]),n});e.onAfterRead(r,n)})}else Ql(t,this.resultType).then(function(i){var r={file:t,status:"",message:""};i&&(r.content=i),e.onAfterRead(r,n)})},onAfterRead:function(t,e){var n=this;this.resetInput();var i=t;if(e){var r=t;Array.isArray(t)?(r=[],i=[],t.forEach(function(t){t.file&&(t.file.size>n.maxSize?r.push(t):i.push(t))})):i=null,this.$emit("oversize",r,this.getDetail())}(Array.isArray(i)?Boolean(i.length):Boolean(i))&&(this.$emit("input",[].concat(this.fileList,Ol(i))),this.afterRead&&this.afterRead(i,this.getDetail()))},onDelete:function(t,e){var n,i=this,r=null!=(n=t.beforeDelete)?n:this.beforeDelete;if(r){var s=r(t,this.getDetail(e));if(!s)return;if(Object(o.i)(s))return void s.then(function(){i.deleteFile(t,e)}).catch(o.k)}this.deleteFile(t,e)},deleteFile:function(t,e){var n=this.fileList.slice(0);n.splice(e,1),this.$emit("input",n),this.$emit("delete",t,this.getDetail(e))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onPreviewImage:function(t){var e=this;if(this.previewFullImage){var n=this.fileList.filter(function(t){return Ll(t)}),r=n.map(function(t){return t.content||t.url});this.imagePreview=da(i({images:r,startPosition:n.indexOf(t),onClose:function(){e.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(t){var e=this.$createElement,n=t.status,i=t.message;if("uploading"===n||"failed"===n){var r="failed"===n?e(it,{attrs:{name:"close"},class:Rl("mask-icon")}):e(ht,{class:Rl("loading")}),s=Object(o.e)(i)&&""!==i;return e("div",{class:Rl("mask")},[r,s&&e("div",{class:Rl("mask-message")},[i])])}},genPreviewItem:function(t,e){var n,r,s,a=this,o=this.$createElement,u=null!=(n=t.deletable)?n:this.deletable,l="uploading"!==t.status&&u&&o("div",{class:Rl("preview-delete"),on:{click:function(n){n.stopPropagation(),a.onDelete(t,e)}}},[o(it,{attrs:{name:"cross"},class:Rl("preview-delete-icon")})]),c=this.slots("preview-cover",i({index:e},t)),A=c&&o("div",{class:Rl("preview-cover")},[c]),h=null!=(r=t.previewSize)?r:this.previewSize,d=null!=(s=t.imageFit)?s:this.imageFit,f=Ll(t)?o(ii,{attrs:{fit:d,src:t.content||t.url,width:h,height:h,lazyLoad:this.lazyLoad},class:Rl("preview-image"),on:{click:function(){a.onPreviewImage(t)}}},[A]):o("div",{class:Rl("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[o(it,{class:Rl("file-icon"),attrs:{name:"description"}}),o("div",{class:[Rl("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),A]);return o("div",{class:Rl("preview"),on:{click:function(){a.$emit("click-preview",t,a.getDetail(e))}}},[f,this.genPreviewMask(t),l])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var t=this.$createElement;if(!(this.fileList.length>=this.maxCount)&&this.showUpload){var e,n=this.slots(),r=t("input",{attrs:i({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:Rl("input"),on:{change:this.onChange}});if(n)return t("div",{class:Rl("input-wrapper"),key:"input-wrapper"},[n,r]);if(this.previewSize){var s=this.previewSizeWithUnit;e={width:s,height:s}}return t("div",{class:Rl("upload"),style:e},[t(it,{attrs:{name:this.uploadIcon},class:Rl("upload-icon")}),this.uploadText&&t("span",{class:Rl("upload-text")},[this.uploadText]),r])}}},render:function(){var t=arguments[0];return t("div",{class:Rl()},[t("div",{class:Rl("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}}),Ml=Object(o.b)("sku-img-uploader"),Kl=Ml[0],jl=Ml[2],Vl=Kl({props:{value:String,uploadImg:Function,maxSize:{type:Number,default:6}},data:function(){return{fileList:[]}},watch:{value:function(t){this.fileList=t?[{url:t,isImage:!0}]:[]}},methods:{afterReadFile:function(t){var e=this;t.status="uploading",t.message=jl("uploading"),this.uploadImg(t.file,t.content).then(function(n){t.status="done",e.$emit("input",n)}).catch(function(){t.status="failed",t.message=jl("fail")})},onOversize:function(){this.$toast(jl("oversize",this.maxSize))},onDelete:function(){this.$emit("input","")}},render:function(){var t=this;return(0,arguments[0])(Hl,{attrs:{maxCount:1,afterRead:this.afterReadFile,maxSize:1024*this.maxSize*1024},on:{oversize:this.onOversize,delete:this.onDelete},model:{value:t.fileList,callback:function(e){t.fileList=e}}})}});var zl=Object(o.b)("sku-datetime-field"),$l=zl[0],Wl=zl[2],Gl=$l({props:{value:String,label:String,required:Boolean,placeholder:String,type:{type:String,default:"date"}},data:function(){return{showDatePicker:!1,currentDate:"time"===this.type?"":new Date,minDate:new Date((new Date).getFullYear()-60,0,1)}},watch:{value:function(t){switch(this.type){case"time":this.currentDate=t;break;case"date":case"datetime":this.currentDate=((e=t)?new Date(e.replace(/-/g,"/")):null)||new Date}var e}},computed:{title:function(){return Wl("title."+this.type)}},methods:{onClick:function(){this.showDatePicker=!0},onConfirm:function(t){var e=t;"time"!==this.type&&(e=function(t,e){if(void 0===e&&(e="date"),!t)return"";var n=t.getFullYear(),i=t.getMonth()+1,r=t.getDate(),s=n+"-"+Object(Ir.b)(i)+"-"+Object(Ir.b)(r);if("datetime"===e){var a=t.getHours(),o=t.getMinutes();s+=" "+Object(Ir.b)(a)+":"+Object(Ir.b)(o)}return s}(t,this.type)),this.$emit("input",e),this.showDatePicker=!1},onCancel:function(){this.showDatePicker=!1},formatter:function(t,e){return""+e+Wl("format."+t)}},render:function(){var t=this,e=arguments[0];return e(ae,{attrs:{readonly:!0,"is-link":!0,center:!0,value:this.value,label:this.label,required:this.required,placeholder:this.placeholder},on:{click:this.onClick}},[e(ot,{attrs:{round:!0,position:"bottom",getContainer:"body"},slot:"extra",model:{value:t.showDatePicker,callback:function(e){t.showDatePicker=e}}},[e(hs,{attrs:{type:this.type,title:this.title,value:this.currentDate,minDate:this.minDate,formatter:this.formatter},on:{cancel:this.onCancel,confirm:this.onConfirm}})])])}}),Xl=Object(o.b)("sku-messages"),ql=Xl[0],Yl=Xl[1],Jl=Xl[2],Zl=ql({props:{messageConfig:Object,goodsId:[Number,String],messages:{type:Array,default:function(){return[]}}},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(t){this.messageValues=this.resetMessageValues(t)}},methods:{resetMessageValues:function(t){var e=this.messageConfig.initialMessages,n=void 0===e?{}:e;return(t||[]).map(function(t){return{value:n[t.name]||""}})},getType:function(t){return 1==+t.multiple?"textarea":"id_no"===t.type?"text":t.datetime>0?"datetime":t.type},getMessages:function(){var t={};return this.messageValues.forEach(function(e,n){t["message_"+n]=e.value}),t},getCartMessages:function(){var t=this,e={};return this.messageValues.forEach(function(n,i){var r=t.messages[i];e[r.name]=n.value}),e},getPlaceholder:function(t){var e=1==+t.multiple?"textarea":t.type,n=this.messageConfig.placeholderMap||{};return t.placeholder||n[e]||Jl("placeholder."+e)},validateMessages:function(){for(var t=this.messageValues,e=0;e<t.length;e++){var n=t[e].value,i=this.messages[e];if(""===n){if("1"===String(i.required))return Jl("image"===i.type?"upload":"fill")+i.name}else{if("tel"===i.type&&!Object(On.b)(n))return Jl("invalid.tel");if("mobile"===i.type&&!/^\d{6,20}$/.test(n))return Jl("invalid.mobile");if("email"===i.type&&!Fl(n))return Jl("invalid.email");if("id_no"===i.type&&(n.length<15||n.length>18))return Jl("invalid.id_no")}}},getFormatter:function(t){return function(e){return"mobile"===t.type||"tel"===t.type?e.replace(/[^\d.]/g,""):e}},genMessage:function(t,e){var n=this,i=this.$createElement;return"image"===t.type?i(te,{key:this.goodsId+"-"+e,attrs:{title:t.name,required:"1"===String(t.required),valueClass:Yl("image-cell-value")},class:Yl("image-cell")},[i(Vl,{attrs:{maxSize:this.messageConfig.uploadMaxSize,uploadImg:this.messageConfig.uploadImg},model:{value:n.messageValues[e].value,callback:function(t){n.$set(n.messageValues[e],"value",t)}}}),i("div",{class:Yl("image-cell-label")},[Jl("imageLabel")])]):["date","time"].indexOf(t.type)>-1?i(Gl,{attrs:{label:t.name,required:"1"===String(t.required),placeholder:this.getPlaceholder(t),type:this.getType(t)},key:this.goodsId+"-"+e,model:{value:n.messageValues[e].value,callback:function(t){n.$set(n.messageValues[e],"value",t)}}}):i(ae,{attrs:{maxlength:"200",center:!t.multiple,label:t.name,required:"1"===String(t.required),placeholder:this.getPlaceholder(t),type:this.getType(t),formatter:this.getFormatter(t)},key:this.goodsId+"-"+e,model:{value:n.messageValues[e].value,callback:function(t){n.$set(n.messageValues[e],"value",t)}}})}},render:function(){return(0,arguments[0])("div",{class:Yl()},[this.messages.map(this.genMessage)])}}),tc=Object(o.b)("sku-actions"),ec=tc[0],nc=tc[1],ic=tc[2];function rc(t,e,n,i){var r=function(t){return function(){e.skuEventBus.$emit(t)}};return t("div",s()([{class:nc()},c(i)]),[e.showAddCartBtn&&t(Te,{attrs:{size:"large",type:"warning",text:e.addCartText||ic("addCart")},on:{click:r("sku:addCart")}}),t(Te,{attrs:{size:"large",type:"danger",text:e.buyText||ic("buy")},on:{click:r("sku:buy")}})])}rc.props={buyText:String,addCartText:String,skuEventBus:Object,showAddCartBtn:Boolean};var sc=ec(rc),ac=Object(o.b)("sku"),oc=ac[0],uc=ac[1],lc=ac[2],cc=Xu.QUOTA_LIMIT,Ac=oc({props:{sku:Object,goods:Object,value:Boolean,buyText:String,goodsId:[Number,String],priceTag:String,lazyLoad:Boolean,hideStock:Boolean,properties:Array,addCartText:String,stepperTitle:String,getContainer:[String,Function],hideQuotaText:Boolean,hideSelectedText:Boolean,resetStepperOnHide:Boolean,customSkuValidator:Function,disableStepperInput:Boolean,resetSelectedSkuOnHide:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1},initialSku:{type:Object,default:function(){return{}}},stockThreshold:{type:Number,default:50},showSoldoutSku:{type:Boolean,default:!0},showAddCartBtn:{type:Boolean,default:!0},disableSoldoutSku:{type:Boolean,default:!0},customStepperConfig:{type:Object,default:function(){return{}}},showHeaderImage:{type:Boolean,default:!0},previewOnClickImage:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},bodyOffsetTop:{type:Number,default:200},messageConfig:{type:Object,default:function(){return{initialMessages:{},placeholderMap:{},uploadImg:function(){return Promise.resolve()},uploadMaxSize:5}}}},data:function(){return{selectedSku:{},selectedProp:{},selectedNum:1,show:this.value}},watch:{show:function(t){this.$emit("input",t),t||(this.$emit("sku-close",{selectedSkuValues:this.selectedSkuValues,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb}),this.resetStepperOnHide&&this.resetStepper(),this.resetSelectedSkuOnHide&&this.resetSelectedSku())},value:function(t){this.show=t},skuTree:"resetSelectedSku",initialSku:function(){this.resetStepper(),this.resetSelectedSku()}},computed:{skuGroupClass:function(){return["van-sku-group-container",{"van-sku-group-container--hide-soldout":!this.showSoldoutSku}]},bodyStyle:function(){if(!this.$isServer)return{maxHeight:window.innerHeight-this.bodyOffsetTop+"px"}},isSkuCombSelected:function(){var t=this;return!(this.hasSku&&!Ju(this.skuTree,this.selectedSku))&&!this.propList.filter(function(t){return!1!==t.is_necessary}).some(function(e){return 0===(t.selectedProp[e.k_id]||[]).length})},isSkuEmpty:function(){return 0===Object.keys(this.sku).length},hasSku:function(){return!this.sku.none_sku},hasSkuOrAttr:function(){return this.hasSku||this.propList.length>0},selectedSkuComb:function(){var t=null;return this.isSkuCombSelected&&(t=this.hasSku?Zu(this.skuList,this.selectedSku):{id:this.sku.collection_id,price:Math.round(100*this.sku.price),stock_num:this.sku.stock_num})&&(t.properties=il(this.propList,this.selectedProp),t.property_price=this.selectedPropValues.reduce(function(t,e){return t+(e.price||0)},0)),t},selectedSkuValues:function(){return tl(this.skuTree,this.selectedSku)},selectedPropValues:function(){return nl(this.propList,this.selectedProp)},price:function(){return this.selectedSkuComb?((this.selectedSkuComb.price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.price},originPrice:function(){return this.selectedSkuComb&&this.selectedSkuComb.origin_price?((this.selectedSkuComb.origin_price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.origin_price},skuTree:function(){return this.sku.tree||[]},skuList:function(){return this.sku.list||[]},propList:function(){return this.properties||[]},imageList:function(){var t=[this.goods.picture];return this.skuTree.length>0&&this.skuTree.forEach(function(e){e.v&&e.v.forEach(function(e){var n=e.previewImgUrl||e.imgUrl||e.img_url;n&&-1===t.indexOf(n)&&t.push(n)})}),t},stock:function(){var t=this.customStepperConfig.stockNum;return void 0!==t?t:this.selectedSkuComb?this.selectedSkuComb.stock_num:this.sku.stock_num},stockText:function(){var t=this.$createElement,e=this.customStepperConfig.stockFormatter;return e?e(this.stock):[lc("stock")+" ",t("span",{class:uc("stock-num",{highlight:this.stock<this.stockThreshold})},[this.stock])," "+lc("stockUnit")]},selectedText:function(){var t=this;if(this.selectedSkuComb){var e=this.selectedSkuValues.concat(this.selectedPropValues);return lc("selected")+" "+e.map(function(t){return t.name}).join(" ")}var n=this.skuTree.filter(function(e){return""===t.selectedSku[e.k_s]}).map(function(t){return t.k}),i=this.propList.filter(function(e){return(t.selectedProp[e.k_id]||[]).length<1}).map(function(t){return t.k});return lc("select")+" "+n.concat(i).join(" ")}},created:function(){var t=new a.a;this.skuEventBus=t,t.$on("sku:select",this.onSelect),t.$on("sku:propSelect",this.onPropSelect),t.$on("sku:numChange",this.onNumChange),t.$on("sku:previewImage",this.onPreviewImage),t.$on("sku:overLimit",this.onOverLimit),t.$on("sku:stepperState",this.onStepperState),t.$on("sku:addCart",this.onAddCart),t.$on("sku:buy",this.onBuy),this.resetStepper(),this.resetSelectedSku(),this.$emit("after-sku-create",t)},methods:{resetStepper:function(){var t=this.$refs.skuStepper,e=this.initialSku.selectedNum,n=null!=e?e:this.startSaleNum;this.stepperError=null,t?t.setCurrentNum(n):this.selectedNum=n},resetSelectedSku:function(){var t=this;this.selectedSku={},this.skuTree.forEach(function(e){t.selectedSku[e.k_s]=""}),this.skuTree.forEach(function(e){var n=e.k_s,i=1===e.v.length?e.v[0].id:t.initialSku[n];i&&el(t.skuList,t.selectedSku,{key:n,valueId:i})&&(t.selectedSku[n]=i)});var e=this.selectedSkuValues;e.length>0&&this.$nextTick(function(){t.$emit("sku-selected",{skuValue:e[e.length-1],selectedSku:t.selectedSku,selectedSkuComb:t.selectedSkuComb})}),this.selectedProp={};var n=this.initialSku.selectedProp,i=void 0===n?{}:n;this.propList.forEach(function(e){i[e.k_id]&&(t.selectedProp[e.k_id]=i[e.k_id])}),Object(o.f)(this.selectedProp)&&this.propList.forEach(function(e){var n;if((null==e?void 0:null==(n=e.v)?void 0:n.length)>0){var i=e.v,r=e.k_id;i.some(function(t){return 0!=+t.price})||(t.selectedProp[r]=[i[0].id])}});var r=this.selectedPropValues;r.length>0&&this.$emit("sku-prop-selected",{propValue:r[r.length-1],selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.$emit("sku-reset",{selectedSku:this.selectedSku,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.centerInitialSku()},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){if(0===this.selectedNum)return lc("unavailable");if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var t=this.customSkuValidator(this);if(t)return t}return lc("selectSku")},onSelect:function(t){var e,n;this.selectedSku=this.selectedSku[t.skuKeyStr]===t.id?i({},this.selectedSku,((e={})[t.skuKeyStr]="",e)):i({},this.selectedSku,((n={})[t.skuKeyStr]=t.id,n)),this.$emit("sku-selected",{skuValue:t,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onPropSelect:function(t){var e,n=this.selectedProp[t.skuKeyStr]||[],r=n.indexOf(t.id);r>-1?n.splice(r,1):t.multiple?n.push(t.id):n.splice(0,1,t.id),this.selectedProp=i({},this.selectedProp,((e={})[t.skuKeyStr]=n,e)),this.$emit("sku-prop-selected",{propValue:t,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(t){this.selectedNum=t},onPreviewImage:function(t){var e=this,n=0,r=this.imageList[0];t&&t.imgUrl&&(this.imageList.some(function(e,i){return e===t.imgUrl&&(n=i,!0)}),r=t.imgUrl);var s=i({},t,{index:n,imageList:this.imageList,indexImage:r});this.$emit("open-preview",s),this.previewOnClickImage&&da({images:this.imageList,startPosition:n,onClose:function(){e.$emit("close-preview",s)}})},onOverLimit:function(t){var e=t.action,n=t.limitType,i=t.quota,r=t.quotaUsed,s=this.customStepperConfig.handleOverLimit;s?s(t):"minus"===e?this.startSaleNum>1?be(lc("minusStartTip",this.startSaleNum)):be(lc("minusTip")):"plus"===e&&be(n===cc?r>0?lc("quotaUsedTip",i,r):lc("quotaTip",i):lc("soldout"))},onStepperState:function(t){this.stepperError=t.valid?null:i({},t,{action:"plus"})},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(t){if(this.stepperError)return this.onOverLimit(this.stepperError);var e=this.validateSku();e?be(e):this.$emit(t,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,messages:this.getSkuMessages(),selectedNum:this.selectedNum,cartMessages:this.getSkuCartMessages(),selectedSkuComb:this.selectedSkuComb}},onOpened:function(){this.centerInitialSku()},centerInitialSku:function(){var t=this;(this.$refs.skuRows||[]).forEach(function(e){var n=(e.skuRow||{}).k_s;e.centerItem(t.initialSku[n])})}},render:function(){var t=this,e=arguments[0];if(!this.isSkuEmpty){var n=this.sku,i=this.skuList,r=this.goods,s=this.price,a=this.lazyLoad,o=this.originPrice,u=this.skuEventBus,l=this.selectedSku,c=this.selectedProp,A=this.selectedNum,h=this.stepperTitle,d=this.selectedSkuComb,f=this.showHeaderImage,p=this.disableSoldoutSku,g={price:s,originPrice:o,selectedNum:A,skuEventBus:u,selectedSku:l,selectedSkuComb:d},m=function(e){return t.slots(e,g)},v=m("sku-header")||e(ll,{attrs:{sku:n,goods:r,skuEventBus:u,selectedSku:l,showHeaderImage:f}},[e("template",{slot:"sku-header-image-extra"},[m("sku-header-image-extra")]),m("sku-header-price")||e("div",{class:"van-sku__goods-price"},[e("span",{class:"van-sku__price-symbol"},["¥"]),e("span",{class:"van-sku__price-num"},[s]),this.priceTag&&e("span",{class:"van-sku__price-tag"},[this.priceTag])]),m("sku-header-origin-price")||o&&e(dl,[lc("originPrice")," ¥",o]),!this.hideStock&&e(dl,[e("span",{class:"van-sku__stock"},[this.stockText])]),this.hasSkuOrAttr&&!this.hideSelectedText&&e(dl,[this.selectedText]),m("sku-header-extra")]),y=m("sku-group")||this.hasSkuOrAttr&&e("div",{class:this.skuGroupClass},[this.skuTree.map(function(t){return e(vl,{attrs:{skuRow:t},ref:"skuRows",refInFor:!0},[t.v.map(function(n){return e(yl,{attrs:{skuList:i,lazyLoad:a,skuValue:n,skuKeyStr:t.k_s,selectedSku:l,skuEventBus:u,disableSoldoutSku:p,largeImageMode:t.largeImageMode}})})])}),this.propList.map(function(t){return e(vl,{attrs:{skuRow:t}},[t.v.map(function(n){return e(bl,{attrs:{skuValue:n,skuKeyStr:t.k_id+"",selectedProp:c,skuEventBus:u,multiple:t.is_multiple}})})])})]),b=m("sku-stepper")||e(Il,{ref:"skuStepper",attrs:{stock:this.stock,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum,skuEventBus:u,selectedNum:A,stepperTitle:h,skuStockNum:n.stock_num,disableStepperInput:this.disableStepperInput,customStepperConfig:this.customStepperConfig,hideQuotaText:this.hideQuotaText},on:{change:function(e){t.$emit("stepper-change",e)}}}),_=m("sku-messages")||e(Zl,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:n.messages}}),w=m("sku-actions")||e(sc,{attrs:{buyText:this.buyText,skuEventBus:u,addCartText:this.addCartText,showAddCartBtn:this.showAddCartBtn}});return e(ot,{attrs:{round:!0,closeable:!0,position:"bottom",getContainer:this.getContainer,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:"van-sku-container",on:{opened:this.onOpened},model:{value:t.show,callback:function(e){t.show=e}}},[v,e("div",{class:"van-sku-body",style:this.bodyStyle},[m("sku-body-top"),y,m("extra-sku-group"),b,_]),m("sku-actions-top"),w])}}});xa.a.add({"zh-CN":{vanSku:{select:"请选择",selected:"已选",selectSku:"请先选择商品规格",soldout:"库存不足",originPrice:"原价",minusTip:"至少选择一件",minusStartTip:function(t){return t+"件起售"},unavailable:"商品已经无法购买啦",stock:"剩余",stockUnit:"件",quotaTip:function(t){return"每人限购"+t+"件"},quotaUsedTip:function(t,e){return"每人限购"+t+"件,你已购买"+e+"件"}},vanSkuActions:{buy:"立即购买",addCart:"加入购物车"},vanSkuImgUploader:{oversize:function(t){return"最大可上传图片为"+t+"MB,请尝试压缩图片尺寸"},fail:"上传失败",uploading:"上传中..."},vanSkuStepper:{quotaLimit:function(t){return"限购"+t+"件"},quotaStart:function(t){return t+"件起售"},comma:",",num:"购买数量"},vanSkuMessages:{fill:"请填写",upload:"请上传",imageLabel:"仅限一张",invalid:{tel:"请填写正确的数字格式留言",mobile:"手机号长度为6-20位数字",email:"请填写正确的邮箱",id_no:"请填写正确的身份证号码"},placeholder:{id_no:"请填写身份证号",text:"请填写留言",tel:"请填写数字",email:"请填写邮箱",date:"请选择日期",time:"请选择时间",textarea:"请填写留言",mobile:"请填写手机号"}},vanSkuRow:{multiple:"可多选"},vanSkuDatetimeField:{title:{date:"选择年月日",time:"选择时间",datetime:"选择日期时间"},format:{year:"年",month:"月",day:"日",hour:"时",minute:"分"}}}}),Ac.SkuActions=sc,Ac.SkuHeader=ll,Ac.SkuHeaderItem=dl,Ac.SkuMessages=Zl,Ac.SkuStepper=Il,Ac.SkuRow=vl,Ac.SkuRowItem=yl,Ac.SkuRowPropItem=bl,Ac.skuHelper=rl,Ac.skuConstants=qu;var hc=Ac,dc=Object(o.b)("slider"),fc=dc[0],pc=dc[1],gc=function(t,e){return JSON.stringify(t)===JSON.stringify(e)},mc=fc({mixins:[H,Je],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var t=Object(o.a)(this.buttonSize);return{width:t,height:t}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(t){this.disabled||(this.touchStart(t),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(t){if(!this.disabled){"start"===this.dragStatus&&this.$emit("drag-start"),y(t,!0),this.touchMove(t),this.dragStatus="draging";var e=this.$el.getBoundingClientRect(),n=(this.vertical?this.deltaY:this.deltaX)/(this.vertical?e.height:e.width)*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+n:this.currentValue=this.startValue+n,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||("draging"===this.dragStatus&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(t){if(t.stopPropagation(),!this.disabled){var e=this.$el.getBoundingClientRect(),n=this.vertical?t.clientY-e.top:t.clientX-e.left,i=this.vertical?e.height:e.width,r=+this.min+n/i*this.scope;if(this.range){var s=this.value,a=s[0],o=s[1];r<=(a+o)/2?a=r:o=r,r=[a,o]}this.startValue=this.value,this.updateValue(r,!0)}},handleOverlap:function(t){return t[0]>t[1]?(t=kt(t)).reverse():t},updateValue:function(t,e){t=this.range?this.handleOverlap(t).map(this.format):this.format(t),gc(t,this.value)||this.$emit("input",t),e&&!gc(t,this.startValue)&&this.$emit("change",t)},format:function(t){return Math.round(Math.max(this.min,Math.min(t,this.max))/this.step)*this.step}},render:function(){var t,e,n,i,r,s,a=this,u=arguments[0],l=this.vertical,c=l?"height":"width",A=l?"width":"height",h=((t={background:this.inactiveColor})[A]=Object(o.a)(this.barHeight),t),d=function(){var t=a.value,e=a.min,n=a.range,i=a.scope;return n?100*(t[0]-e)/i+"%":null},f=((e={})[c]=(n=a.value,i=a.min,r=a.range,s=a.scope,r?100*(n[1]-n[0])/s+"%":100*(n-i)/s+"%"),e.left=this.vertical?null:d(),e.top=this.vertical?d():null,e.background=this.activeColor,e);this.dragStatus&&(f.transition="none");var p=function(t){var e=["left","right"],n="number"==typeof t;return u("div",{ref:n?"wrapper"+t:"wrapper",attrs:{role:"slider",tabindex:a.disabled?-1:0,"aria-valuemin":a.min,"aria-valuenow":a.value,"aria-valuemax":a.max,"aria-orientation":a.vertical?"vertical":"horizontal"},class:pc(n?"button-wrapper-"+e[t]:"button-wrapper"),on:{touchstart:function(){n&&(a.index=t)},click:function(t){return t.stopPropagation()}}},[a.slots("button")||u("div",{class:pc("button"),style:a.buttonStyle})])};return u("div",{style:h,class:pc({disabled:this.disabled,vertical:l}),on:{click:this.onClick}},[u("div",{class:pc("bar"),style:f},[this.range?[p(0),p(1)]:p()])])}}),vc=Object(o.b)("step"),yc=vc[0],bc=vc[1],_c=yc({mixins:[Se("vanSteps")],computed:{status:function(){return this.index<this.parent.active?"finish":this.index===+this.parent.active?"process":void 0},active:function(){return"process"===this.status},lineStyle:function(){return"finish"===this.status?{background:this.parent.activeColor}:{background:this.parent.inactiveColor}},titleStyle:function(){return this.active?{color:this.parent.activeColor}:this.status?void 0:{color:this.parent.inactiveColor}}},methods:{genCircle:function(){var t=this.$createElement,e=this.parent,n=e.activeIcon,i=e.iconPrefix,r=e.activeColor,s=e.finishIcon,a=e.inactiveIcon;if(this.active)return this.slots("active-icon")||t(it,{class:bc("icon","active"),attrs:{name:n,color:r,classPrefix:i}});var o=this.slots("finish-icon");if("finish"===this.status&&(s||o))return o||t(it,{class:bc("icon","finish"),attrs:{name:s,color:r,classPrefix:i}});var u=this.slots("inactive-icon");return a||u?u||t(it,{class:bc("icon"),attrs:{name:a,classPrefix:i}}):t("i",{class:bc("circle"),style:this.lineStyle})},onClickStep:function(){this.parent.$emit("click-step",this.index)}},render:function(){var t,e=arguments[0],n=this.status,i=this.active,r=this.parent.direction;return e("div",{class:[_t,bc([r,(t={},t[n]=n,t)])]},[e("div",{class:bc("title",{active:i}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),e("div",{class:bc("circle-container"),on:{click:this.onClickStep}},[this.genCircle()]),e("div",{class:bc("line"),style:this.lineStyle})])}}),wc=Object(o.b)("steps"),Bc=wc[0],Cc=wc[1],Tc=Bc({mixins:[ke("vanSteps")],props:{iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String,active:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},activeIcon:{type:String,default:"checked"}},render:function(){var t=arguments[0];return t("div",{class:Cc([this.direction])},[t("div",{class:Cc("items")},[this.slots()])])}}),Ec=Object(o.b)("submit-bar"),Sc=Ec[0],kc=Ec[1],xc=Ec[2];function Uc(t,e,n,i){var r=e.tip,a=e.price,o=e.tipIcon;return t("div",s()([{class:kc({unfit:!e.safeAreaInsetBottom})},c(i)]),[n.top&&n.top(),function(){if(n.tip||r)return t("div",{class:kc("tip")},[o&&t(it,{class:kc("tip-icon"),attrs:{name:o}}),r&&t("span",{class:kc("tip-text")},[r]),n.tip&&n.tip()])}(),t("div",{class:kc("bar")},[n.default&&n.default(),function(){if("number"==typeof a){var n=(a/100).toFixed(e.decimalLength).split("."),i=e.decimalLength?"."+n[1]:"";return t("div",{style:{textAlign:e.textAlign?e.textAlign:""},class:kc("text")},[t("span",[e.label||xc("label")]),t("span",{class:kc("price")},[e.currency,t("span",{class:kc("price","integer")},[n[0]]),i]),e.suffixLabel&&t("span",{class:kc("suffix-label")},[e.suffixLabel])])}}(),n.button?n.button():t(Te,{attrs:{round:!0,type:e.buttonType,text:e.loading?"":e.buttonText,color:e.buttonColor,loading:e.loading,disabled:e.disabled},class:kc("button",e.buttonType),on:{click:function(){A(i,"submit")}}})])])}Uc.props={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,disabled:Boolean,textAlign:String,buttonText:String,buttonColor:String,suffixLabel:String,safeAreaInsetBottom:{type:Boolean,default:!0},decimalLength:{type:[Number,String],default:2},currency:{type:String,default:"¥"},buttonType:{type:String,default:"danger"}};var Ic=Sc(Uc),Fc=Object(o.b)("swipe-cell"),Oc=Fc[0],Qc=Fc[1],Nc=Oc({mixins:[H,ws({event:"touchstart",method:"onClick"})],props:{onClose:Function,disabled:Boolean,leftWidth:[Number,String],rightWidth:[Number,String],beforeClose:Function,stopPropagation:Boolean,name:{type:[Number,String],default:""}},data:function(){return{offset:0,dragging:!1}},computed:{computedLeftWidth:function(){return+this.leftWidth||this.getWidthByRef("left")},computedRightWidth:function(){return+this.rightWidth||this.getWidthByRef("right")}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{getWidthByRef:function(t){return this.$refs[t]?this.$refs[t].getBoundingClientRect().width:0},open:function(t){var e="left"===t?this.computedLeftWidth:-this.computedRightWidth;this.opened=!0,this.offset=e,this.$emit("open",{position:t,name:this.name,detail:this.name})},close:function(t){this.offset=0,this.opened&&(this.opened=!1,this.$emit("close",{position:t,name:this.name}))},onTouchStart:function(t){this.disabled||(this.startOffset=this.offset,this.touchStart(t))},onTouchMove:function(t){this.disabled||(this.touchMove(t),"horizontal"===this.direction&&(this.dragging=!0,this.lockClick=!0,(!this.opened||this.deltaX*this.startOffset<0)&&y(t,this.stopPropagation),this.offset=xt(this.deltaX+this.startOffset,-this.computedRightWidth,this.computedLeftWidth)))},onTouchEnd:function(){var t=this;this.disabled||this.dragging&&(this.toggle(this.offset>0?"left":"right"),this.dragging=!1,setTimeout(function(){t.lockClick=!1},0))},toggle:function(t){var e=Math.abs(this.offset),n=this.opened?.85:.15,i=this.computedLeftWidth,r=this.computedRightWidth;r&&"right"===t&&e>r*n?this.open("right"):i&&"left"===t&&e>i*n?this.open("left"):this.close()},onClick:function(t){void 0===t&&(t="outside"),this.$emit("click",t),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:t,name:this.name,instance:this}):this.onClose?this.onClose(t,this,{name:this.name}):this.close(t))},getClickHandler:function(t,e){var n=this;return function(i){e&&i.stopPropagation(),n.onClick(t)}},genLeftPart:function(){var t=this.$createElement,e=this.slots("left");if(e)return t("div",{ref:"left",class:Qc("left"),on:{click:this.getClickHandler("left",!0)}},[e])},genRightPart:function(){var t=this.$createElement,e=this.slots("right");if(e)return t("div",{ref:"right",class:Qc("right"),on:{click:this.getClickHandler("right",!0)}},[e])}},render:function(){var t=arguments[0],e={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return t("div",{class:Qc(),on:{click:this.getClickHandler("cell")}},[t("div",{class:Qc("wrapper"),style:e},[this.genLeftPart(),this.slots(),this.genRightPart()])])}}),Lc=Object(o.b)("switch-cell"),Dc=Lc[0],Pc=Lc[1];function Rc(t,e,n,r){return t(te,s()([{attrs:{center:!0,size:e.cellSize,title:e.title,border:e.border},class:Pc([e.cellSize])},c(r)]),[t(nn,{props:i({},e),on:i({},r.listeners)})])}Rc.props=i({},Ye,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var Hc=Dc(Rc),Mc=Object(o.b)("tabbar"),Kc=Mc[0],jc=Mc[1],Vc=Kc({mixins:[ke("vanTabbar")],props:{route:Boolean,zIndex:[Number,String],placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,value:{type:[Number,String],default:0},border:{type:Boolean,default:!0},fixed:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:null}},data:function(){return{height:null}},computed:{fit:function(){return null!==this.safeAreaInsetBottom?this.safeAreaInsetBottom:this.fixed}},watch:{value:"setActiveItem",children:"setActiveItem"},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.tabbar.getBoundingClientRect().height)},methods:{setActiveItem:function(){var t=this;this.children.forEach(function(e,n){e.active=(e.name||n)===t.value})},onChange:function(t){var e=this;t!==this.value&&pi({interceptor:this.beforeChange,args:[t],done:function(){e.$emit("input",t),e.$emit("change",t)}})},genTabbar:function(){var t;return(0,this.$createElement)("div",{ref:"tabbar",style:{zIndex:this.zIndex},class:[(t={},t[Et]=this.border,t),jc({unfit:!this.fit,fixed:this.fixed})]},[this.slots()])}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:jc("placeholder"),style:{height:this.height+"px"}},[this.genTabbar()]):this.genTabbar()}}),zc=Object(o.b)("tabbar-item"),$c=zc[0],Wc=zc[1],Gc=$c({mixins:[Se("vanTabbar")],props:i({},Gt,{dot:Boolean,icon:String,name:[Number,String],info:[Number,String],badge:[Number,String],iconPrefix:String}),data:function(){return{active:!1}},computed:{routeActive:function(){var t=this.to,e=this.$route;if(t&&e){var n=Object(o.h)(t)?t:{path:t},i=n.path===e.path,r=Object(o.e)(n.name)&&n.name===e.name;return i||r}}},methods:{onClick:function(t){this.parent.onChange(this.name||this.index),this.$emit("click",t),$t(this.$router,this)},genIcon:function(t){var e=this.$createElement,n=this.slots("icon",{active:t});return n||(this.icon?e(it,{attrs:{name:this.icon,classPrefix:this.iconPrefix}}):void 0)}},render:function(){var t,e=arguments[0],n=this.parent.route?this.routeActive:this.active,i=this.parent[n?"activeColor":"inactiveColor"];return e("div",{class:Wc({active:n}),style:{color:i},on:{click:this.onClick}},[e("div",{class:Wc("icon")},[this.genIcon(n),e(Y,{attrs:{dot:this.dot,info:null!=(t=this.badge)?t:this.info}})]),e("div",{class:Wc("text")},[this.slots("default",{active:n})])])}}),Xc=Object(o.b)("tree-select"),qc=Xc[0],Yc=Xc[1];function Jc(t,e,n,i){var r=e.items,a=e.height,u=e.activeId,l=e.selectedIcon,h=e.mainActiveIndex;var d=(r[+h]||{}).children||[],f=Array.isArray(u);function p(t){return f?-1!==u.indexOf(t):u===t}var g=r.map(function(e){var n;return t(Mu,{attrs:{dot:e.dot,info:null!=(n=e.badge)?n:e.info,title:e.text,disabled:e.disabled},class:[Yc("nav-item"),e.className]})});return t("div",s()([{class:Yc(),style:{height:Object(o.a)(a)}},c(i)]),[t(Du,{class:Yc("nav"),attrs:{activeKey:h},on:{change:function(t){A(i,"update:main-active-index",t),A(i,"click-nav",t),A(i,"navclick",t)}}},[g]),t("div",{class:Yc("content")},[n.content?n.content():d.map(function(n){return t("div",{key:n.id,class:["van-ellipsis",Yc("item",{active:p(n.id),disabled:n.disabled})],on:{click:function(){if(!n.disabled){var t=n.id;if(f){var r=(t=u.slice()).indexOf(n.id);-1!==r?t.splice(r,1):t.length<e.max&&t.push(n.id)}A(i,"update:active-id",t),A(i,"click-item",n),A(i,"itemclick",n)}}}},[n.text,p(n.id)&&t(it,{attrs:{name:l},class:Yc("selected")})])})])])}Jc.props={max:{type:[Number,String],default:1/0},items:{type:Array,default:function(){return[]}},height:{type:[Number,String],default:300},activeId:{type:[Number,String,Array],default:0},selectedIcon:{type:String,default:"success"},mainActiveIndex:{type:[Number,String],default:0}};var Zc=qc(Jc);n.d(e,!1,function(){return mt}),n.d(e,!1,function(){return ln}),n.d(e,!1,function(){return Fn}),n.d(e,!1,function(){return zt}),n.d(e,!1,function(){return Dn}),n.d(e,!1,function(){return Te}),n.d(e,!1,function(){return Zn}),n.d(e,!1,function(){return li}),n.d(e,!1,function(){return Li}),n.d(e,!1,function(){return te}),n.d(e,!1,function(){return Mi}),n.d(e,!1,function(){return ji}),n.d(e,!1,function(){return Wi}),n.d(e,!1,function(){return Zi}),n.d(e,!1,function(){return ir}),n.d(e,!1,function(){return or}),n.d(e,!1,function(){return hr}),n.d(e,!1,function(){return vr}),n.d(e,!1,function(){return Cr}),n.d(e,!1,function(){return Ur}),n.d(e,!1,function(){return Rr}),n.d(e,!1,function(){return $r}),n.d(e,!1,function(){return Jr}),n.d(e,!1,function(){return is}),n.d(e,!1,function(){return hs}),n.d(e,!1,function(){return Ve}),n.d(e,!1,function(){return ms}),n.d(e,!1,function(){return _s}),n.d(e,!1,function(){return Es}),n.d(e,!1,function(){return Os}),n.d(e,!1,function(){return ae}),n.d(e,!1,function(){return Ds}),n.d(e,!1,function(){return Oe}),n.d(e,!1,function(){return De}),n.d(e,!1,function(){return Ms}),n.d(e,!1,function(){return zs}),n.d(e,!1,function(){return Xs}),n.d(e,!1,function(){return it}),n.d(e,!1,function(){return ii}),n.d(e,!1,function(){return da}),n.d(e,!1,function(){return ma}),n.d(e,!1,function(){return _a}),n.d(e,!1,function(){return Y}),n.d(e,!1,function(){return Ba}),n.d(e,!1,function(){return ka}),n.d(e,!1,function(){return ht}),n.d(e,!1,function(){return xa.a}),n.d(e,!1,function(){return Oa}),n.d(e,!1,function(){return Da}),n.d(e,!1,function(){return $a}),n.d(e,!1,function(){return no}),n.d(e,!1,function(){return T}),n.d(e,!1,function(){return uo}),n.d(e,!1,function(){return fo}),n.d(e,!1,function(){return yo}),n.d(e,!1,function(){return Mt}),n.d(e,!1,function(){return iu}),n.d(e,!1,function(){return ot}),n.d(e,!1,function(){return ou}),n.d(e,!1,function(){return du}),n.d(e,!1,function(){return _n}),n.d(e,!1,function(){return dn}),n.d(e,!1,function(){return mu}),n.d(e,!1,function(){return _u}),n.d(e,!1,function(){return Su}),n.d(e,!1,function(){return Ou}),n.d(e,!1,function(){return Du}),n.d(e,!1,function(){return Mu}),n.d(e,!1,function(){return Gu}),n.d(e,!1,function(){return hc}),n.d(e,!1,function(){return mc}),n.d(e,!1,function(){return _c}),n.d(e,!1,function(){return Tl}),n.d(e,!1,function(){return Tc}),n.d(e,!1,function(){return Bi}),n.d(e,!1,function(){return Ic}),n.d(e,!1,function(){return na}),n.d(e,!1,function(){return Nc}),n.d(e,!1,function(){return aa}),n.d(e,!1,function(){return nn}),n.d(e,!1,function(){return Hc}),n.d(e,!1,function(){return di}),n.d(e,!1,function(){return Vc}),n.d(e,!1,function(){return Gc}),n.d(e,!1,function(){return Ii}),n.d(e,!1,function(){return vn}),n.d(e,"a",function(){return be}),n.d(e,!1,function(){return Zc}),n.d(e,!1,function(){return Hl});function tA(t){[mt,ln,Fn,zt,Dn,Te,Zn,li,Li,te,Mi,ji,Wi,Zi,ir,or,hr,vr,Cr,Ur,Rr,$r,Jr,is,hs,Ve,ms,_s,Es,Os,ae,Ds,Oe,De,Ms,zs,Xs,it,ii,da,ma,_a,Y,ka,ht,xa.a,Oa,Da,$a,no,T,uo,fo,yo,Mt,iu,ot,ou,du,_n,dn,mu,_u,Su,Ou,Du,Mu,Gu,hc,mc,_c,Tl,Tc,Bi,Ic,na,Nc,aa,nn,Hc,di,Vc,Gc,Ii,vn,be,Zc,Hl].forEach(function(e){e.install?t.use(e):e.name&&t.component(e.name,e)})}"undefined"!=typeof window&&window.Vue&&tA(window.Vue);e.b={install:tA,version:"2.12.18"}},FeBl:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},FtD3:function(t,e,n){"use strict";var i=n("t8qj");t.exports=function(t,e,n,r,s){var a=new Error(t);return i(a,e,n,r,s)}},GHBc:function(t,e,n){"use strict";var i=n("cGG2");t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=i.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},GlnR:function(t,e){var n=Math.pow(2,32);t.exports=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},r=12;0===i.version?(i.earliestPresentationTime=e.getUint32(r),i.firstOffset=e.getUint32(r+4),r+=8):(i.earliestPresentationTime=e.getUint32(r)*n+e.getUint32(r+4),i.firstOffset=e.getUint32(r+8)*n+e.getUint32(r+12),r+=16),r+=2;var s=e.getUint16(r);for(r+=2;s>0;r+=12,s--)i.references.push({referenceType:(128&t[r])>>>7,referencedSize:2147483647&e.getUint32(r),subsegmentDuration:e.getUint32(r+4),startsWithSap:!!(128&t[r+8]),sapType:(112&t[r+8])>>>4,sapDeltaTime:268435455&e.getUint32(r+8)});return i}},"I/+Z":function(t,e){t.exports=function(t,e){var n,i=null;try{n=JSON.parse(t,e)}catch(t){i=t}return[i,n]}},Ibhu:function(t,e,n){var i=n("D2L2"),r=n("TcQ7"),s=n("vFc/")(!1),a=n("ax3d")("IE_PROTO");t.exports=function(t,e){var n,o=r(t),u=0,l=[];for(n in o)n!=a&&i(o,n)&&l.push(n);for(;e.length>u;)i(o,n=e[u++])&&(~s(l,n)||l.push(n));return l}},"JP+z":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},KCLY:function(t,e,n){"use strict";(function(e){var i=n("cGG2"),r=n("5VQ+"),s={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var o,u={adapter:("undefined"!=typeof XMLHttpRequest?o=n("7GwW"):void 0!==e&&"[object process]"===Object.prototype.toString.call(e)&&(o=n("7GwW")),o),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(t){u.headers[t]={}}),i.forEach(["post","put","patch"],function(t){u.headers[t]=i.merge(s)}),t.exports=u}).call(e,n("W2nU"))},L42u:function(t,e,n){var i,r,s,a=n("+ZMJ"),o=n("knuC"),u=n("RPLV"),l=n("ON07"),c=n("7KvD"),A=c.process,h=c.setImmediate,d=c.clearImmediate,f=c.MessageChannel,p=c.Dispatch,g=0,m={},v=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},y=function(t){v.call(t.data)};h&&d||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++g]=function(){o("function"==typeof t?t:Function(t),e)},i(g),g},d=function(t){delete m[t]},"process"==n("R9M2")(A)?i=function(t){A.nextTick(a(v,t,1))}:p&&p.now?i=function(t){p.now(a(v,t,1))}:f?(s=(r=new f).port2,r.port1.onmessage=y,i=a(s.postMessage,s,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(t){c.postMessage(t+"","*")},c.addEventListener("message",y,!1)):i="onreadystatechange"in l("script")?function(t){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),v.call(t)}}:function(t){setTimeout(a(v,t,1),0)}),t.exports={set:h,clear:d}},M1I4:function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0},M6a0:function(t,e){},MJLE:function(t,e,n){var i,r;r=function(){function t(t){this.mode=n.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,i=this.data.length;e<i;e++){var r=[],s=this.data.charCodeAt(e);s>65536?(r[0]=240|(1835008&s)>>>18,r[1]=128|(258048&s)>>>12,r[2]=128|(4032&s)>>>6,r[3]=128|63&s):s>2048?(r[0]=224|(61440&s)>>>12,r[1]=128|(4032&s)>>>6,r[2]=128|63&s):s>128?(r[0]=192|(1984&s)>>>6,r[1]=128|63&s):r[0]=s,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function e(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}t.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,n=this.parsedData.length;e<n;e++)t.put(this.parsedData[e],8)}},e.prototype={addData:function(e){var n=new t(e);this.dataList.push(n),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,n){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++){this.modules[i]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[i][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,n),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=e.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,n)},setupPositionProbePattern:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(this.modules[t+n][e+i]=0<=n&&n<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=i&&i<=4)},getBestMaskPattern:function(){for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=d.getLostPoint(this);(0==n||t>i)&&(t=i,e=n)}return e},createMovieClip:function(t,e,n){var i=t.createEmptyMovieClip(e,n);this.make();for(var r=0;r<this.modules.length;r++)for(var s=1*r,a=0;a<this.modules[r].length;a++){var o=1*a;this.modules[r][a]&&(i.beginFill(0,100),i.moveTo(o,s),i.lineTo(o+1,s),i.lineTo(o+1,s+1),i.lineTo(o,s+1),i.endFill())}return i},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},setupPositionAdjustPattern:function(){for(var t=d.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var n=0;n<t.length;n++){var i=t[e],r=t[n];if(null==this.modules[i][r])for(var s=-2;s<=2;s++)for(var a=-2;a<=2;a++)this.modules[i+s][r+a]=-2==s||2==s||-2==a||2==a||0==s&&0==a}},setupTypeNumber:function(t){for(var e=d.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var i=!t&&1==(e>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(n=0;n<18;n++){i=!t&&1==(e>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i}},setupTypeInfo:function(t,e){for(var n=this.errorCorrectLevel<<3|e,i=d.getBCHTypeInfo(n),r=0;r<15;r++){var s=!t&&1==(i>>r&1);r<6?this.modules[r][8]=s:r<8?this.modules[r+1][8]=s:this.modules[this.moduleCount-15+r][8]=s}for(r=0;r<15;r++){s=!t&&1==(i>>r&1);r<8?this.modules[8][this.moduleCount-r-1]=s:r<9?this.modules[8][15-r-1+1]=s:this.modules[8][15-r-1]=s}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var n=-1,i=this.moduleCount-1,r=7,s=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var o=0;o<2;o++)if(null==this.modules[i][a-o]){var u=!1;s<t.length&&(u=1==(t[s]>>>r&1)),d.getMask(e,i,a-o)&&(u=!u),this.modules[i][a-o]=u,-1==--r&&(s++,r=7)}if((i+=n)<0||this.moduleCount<=i){i-=n,n=-n;break}}}},e.PAD0=236,e.PAD1=17,e.createData=function(t,n,i){for(var r=m.getRSBlocks(t,n),s=new v,a=0;a<i.length;a++){var o=i[a];s.put(o.mode,4),s.put(o.getLength(),d.getLengthInBits(o.mode,t)),o.write(s)}var u=0;for(a=0;a<r.length;a++)u+=r[a].dataCount;if(s.getLengthInBits()>8*u)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*u+")");for(s.getLengthInBits()+4<=8*u&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*u||(s.put(e.PAD0,8),s.getLengthInBits()>=8*u));)s.put(e.PAD1,8);return e.createBytes(s,r)},e.createBytes=function(t,e){for(var n=0,i=0,r=0,s=new Array(e.length),a=new Array(e.length),o=0;o<e.length;o++){var u=e[o].dataCount,l=e[o].totalCount-u;i=Math.max(i,u),r=Math.max(r,l),s[o]=new Array(u);for(var c=0;c<s[o].length;c++)s[o][c]=255&t.buffer[c+n];n+=u;var A=d.getErrorCorrectPolynomial(l),h=new g(s[o],A.getLength()-1).mod(A);a[o]=new Array(A.getLength()-1);for(c=0;c<a[o].length;c++){var f=c+h.getLength()-a[o].length;a[o][c]=f>=0?h.get(f):0}}var p=0;for(c=0;c<e.length;c++)p+=e[c].totalCount;var m=new Array(p),v=0;for(c=0;c<i;c++)for(o=0;o<e.length;o++)c<s[o].length&&(m[v++]=s[o][c]);for(c=0;c<r;c++)for(o=0;o<e.length;o++)c<a[o].length&&(m[v++]=a[o][c]);return m};for(var n={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},r={L:1,M:0,Q:3,H:2},s=0,a=1,o=2,u=3,l=4,c=5,A=6,h=7,d={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;d.getBCHDigit(e)-d.getBCHDigit(d.G15)>=0;)e^=d.G15<<d.getBCHDigit(e)-d.getBCHDigit(d.G15);return(t<<10|e)^d.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;d.getBCHDigit(e)-d.getBCHDigit(d.G18)>=0;)e^=d.G18<<d.getBCHDigit(e)-d.getBCHDigit(d.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return d.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case s:return(e+n)%2==0;case a:return e%2==0;case o:return n%3==0;case u:return(e+n)%3==0;case l:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case c:return e*n%2+e*n%3==0;case A:return(e*n%2+e*n%3)%2==0;case h:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new g([1],0),n=0;n<t;n++)e=e.multiply(new g([1,f.gexp(n)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),n=0,i=0;i<e;i++)for(var r=0;r<e;r++){for(var s=0,a=t.isDark(i,r),o=-1;o<=1;o++)if(!(i+o<0||e<=i+o))for(var u=-1;u<=1;u++)r+u<0||e<=r+u||0==o&&0==u||a==t.isDark(i+o,r+u)&&s++;s>5&&(n+=3+s-5)}for(i=0;i<e-1;i++)for(r=0;r<e-1;r++){var l=0;t.isDark(i,r)&&l++,t.isDark(i+1,r)&&l++,t.isDark(i,r+1)&&l++,t.isDark(i+1,r+1)&&l++,0!=l&&4!=l||(n+=3)}for(i=0;i<e;i++)for(r=0;r<e-6;r++)t.isDark(i,r)&&!t.isDark(i,r+1)&&t.isDark(i,r+2)&&t.isDark(i,r+3)&&t.isDark(i,r+4)&&!t.isDark(i,r+5)&&t.isDark(i,r+6)&&(n+=40);for(r=0;r<e;r++)for(i=0;i<e-6;i++)t.isDark(i,r)&&!t.isDark(i+1,r)&&t.isDark(i+2,r)&&t.isDark(i+3,r)&&t.isDark(i+4,r)&&!t.isDark(i+5,r)&&t.isDark(i+6,r)&&(n+=40);var c=0;for(r=0;r<e;r++)for(i=0;i<e;i++)t.isDark(i,r)&&c++;return n+=10*(Math.abs(100*c/e/e-50)/5)}},f={glog:function(t){if(t<1)throw new Error("glog("+t+")");return f.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return f.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},p=0;p<8;p++)f.EXP_TABLE[p]=1<<p;for(p=8;p<256;p++)f.EXP_TABLE[p]=f.EXP_TABLE[p-4]^f.EXP_TABLE[p-5]^f.EXP_TABLE[p-6]^f.EXP_TABLE[p-8];for(p=0;p<255;p++)f.LOG_TABLE[f.EXP_TABLE[p]]=p;function g(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var n=0;n<t.length&&0==t[n];)n++;this.num=new Array(t.length-n+e);for(var i=0;i<t.length-n;i++)this.num[i]=t[i+n]}function m(t,e){this.totalCount=t,this.dataCount=e}function v(){this.buffer=[],this.length=0}g.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),n=0;n<this.getLength();n++)for(var i=0;i<t.getLength();i++)e[n+i]^=f.gexp(f.glog(this.get(n))+f.glog(t.get(i)));return new g(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=f.glog(this.get(0))-f.glog(t.get(0)),n=new Array(this.getLength()),i=0;i<this.getLength();i++)n[i]=this.get(i);for(i=0;i<t.getLength();i++)n[i]^=f.gexp(f.glog(t.get(i))+e);return new g(n,0).mod(t)}},m.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],m.getRSBlocks=function(t,e){var n=m.getRsBlockTable(t,e);if(void 0==n)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var i=n.length/3,r=[],s=0;s<i;s++)for(var a=n[3*s+0],o=n[3*s+1],u=n[3*s+2],l=0;l<a;l++)r.push(new m(o,u));return r},m.getRsBlockTable=function(t,e){switch(e){case r.L:return m.RS_BLOCK_TABLE[4*(t-1)+0];case r.M:return m.RS_BLOCK_TABLE[4*(t-1)+1];case r.Q:return m.RS_BLOCK_TABLE[4*(t-1)+2];case r.H:return m.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},v.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var y=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function b(){var t=!1,e=navigator.userAgent;if(/android/i.test(e)){t=!0;var n=e.toString().match(/android ([0-9]\.[0-9])/i);n&&n[1]&&(t=parseFloat(n[1]))}return t}var _=function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){var e=this._htOption,n=this._el,i=t.getModuleCount();Math.floor(e.width/i),Math.floor(e.height/i);function r(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg",t);for(var i in e)e.hasOwnProperty(i)&&n.setAttribute(i,e[i]);return n}this.clear();var s=r("svg",{viewBox:"0 0 "+String(i)+" "+String(i),width:"100%",height:"100%",fill:e.colorLight});s.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),n.appendChild(s),s.appendChild(r("rect",{fill:e.colorLight,width:"100%",height:"100%"})),s.appendChild(r("rect",{fill:e.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a<i;a++)for(var o=0;o<i;o++)if(t.isDark(a,o)){var u=r("use",{x:String(o),y:String(a)});u.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),s.appendChild(u)}},t.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},t}(),w="svg"===document.documentElement.tagName.toLowerCase()?_:"undefined"==typeof CanvasRenderingContext2D?function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){for(var e=this._htOption,n=this._el,i=t.getModuleCount(),r=Math.floor(e.width/i),s=Math.floor(e.height/i),a=['<table style="border:0;border-collapse:collapse;">'],o=0;o<i;o++){a.push("<tr>");for(var u=0;u<i;u++)a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+r+"px;height:"+s+"px;background-color:"+(t.isDark(o,u)?e.colorDark:e.colorLight)+';"></td>');a.push("</tr>")}a.push("</table>"),n.innerHTML=a.join("");var l=n.childNodes[0],c=(e.width-l.offsetWidth)/2,A=(e.height-l.offsetHeight)/2;c>0&&A>0&&(l.style.margin=A+"px "+c+"px")},t.prototype.clear=function(){this._el.innerHTML=""},t}():function(){function t(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}if(this._android&&this._android<=2.1){var e=1/window.devicePixelRatio,n=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(t,i,r,s,a,o,u,l,c){if("nodeName"in t&&/img/i.test(t.nodeName))for(var A=arguments.length-1;A>=1;A--)arguments[A]=arguments[A]*e;else void 0===l&&(arguments[1]*=e,arguments[2]*=e,arguments[3]*=e,arguments[4]*=e);n.apply(this,arguments)}}var i=function(t,e){this._bIsPainted=!1,this._android=b(),this._htOption=e,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=e.width,this._elCanvas.height=e.height,t.appendChild(this._elCanvas),this._el=t,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return i.prototype.draw=function(t){var e=this._elImage,n=this._oContext,i=this._htOption,r=t.getModuleCount(),s=i.width/r,a=i.height/r,o=Math.round(s),u=Math.round(a);e.style.display="none",this.clear();for(var l=0;l<r;l++)for(var c=0;c<r;c++){var A=t.isDark(l,c),h=c*s,d=l*a;n.strokeStyle=A?i.colorDark:i.colorLight,n.lineWidth=1,n.fillStyle=A?i.colorDark:i.colorLight,n.fillRect(h,d,s,a),n.strokeRect(Math.floor(h)+.5,Math.floor(d)+.5,o,u),n.strokeRect(Math.ceil(h)-.5,Math.ceil(d)-.5,o,u)}this._bIsPainted=!0},i.prototype.makeImage=function(){this._bIsPainted&&function(t,e){var n=this;if(n._fFail=e,n._fSuccess=t,null===n._bSupportDataURI){var i=document.createElement("img"),r=function(){n._bSupportDataURI=!1,n._fFail&&n._fFail.call(n)};return i.onabort=r,i.onerror=r,i.onload=function(){n._bSupportDataURI=!0,n._fSuccess&&n._fSuccess.call(n)},void(i.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")}!0===n._bSupportDataURI&&n._fSuccess?n._fSuccess.call(n):!1===n._bSupportDataURI&&n._fFail&&n._fFail.call(n)}.call(this,t)},i.prototype.isPainted=function(){return this._bIsPainted},i.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},i.prototype.round=function(t){return t?Math.floor(1e3*t)/1e3:t},i}();function B(t,e){for(var n=1,i=function(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}(t),s=0,a=y.length;s<=a;s++){var o=0;switch(e){case r.L:o=y[s][0];break;case r.M:o=y[s][1];break;case r.Q:o=y[s][2];break;case r.H:o=y[s][3]}if(i<=o)break;n++}if(n>y.length)throw new Error("Too long data");return n}return(i=function(t,e){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:r.H},"string"==typeof e&&(e={text:e}),e)for(var n in e)this._htOption[n]=e[n];"string"==typeof t&&(t=document.getElementById(t)),this._htOption.useSVG&&(w=_),this._android=b(),this._el=t,this._oQRCode=null,this._oDrawing=new w(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)}).prototype.makeCode=function(t){this._oQRCode=new e(B(t,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(t),this._oQRCode.make(),this._el.title=t,this._oDrawing.draw(this._oQRCode),this.makeImage()},i.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},i.prototype.clear=function(){this._oDrawing.clear()},i.CorrectLevel=r,i},t.exports=r()},MU5D:function(t,e,n){var i=n("R9M2");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},Mctu:function(t,e,n){function i(t){this.options=t||{locator:{}}}function r(){this.cdata=!1}function s(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function a(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function o(t,e,n){return"string"==typeof t?t.substr(e,n):t.length>=e+n||e?new java.lang.String(t,e,n)+"":t}function u(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}i.prototype.parseFromString=function(t,e){var n=this.options,i=new A,s=n.domBuilder||new r,o=n.errorHandler,u=n.locator,c=n.xmlns||{},h=/\/x?html?$/.test(e),d=h?l.entityMap:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return u&&s.setDocumentLocator(u),i.errorHandler=function(t,e,n){if(!t){if(e instanceof r)return e;t=e}var i={},s=t instanceof Function;function o(e){var r=t[e];!r&&s&&(r=2==t.length?function(n){t(e,n)}:t),i[e]=r&&function(t){r("[xmldom "+e+"]\t"+t+a(n))}||function(){}}return n=n||{},o("warning"),o("error"),o("fatalError"),i}(o,s,u),i.domBuilder=n.domBuilder||s,h&&(c[""]="http://www.w3.org/1999/xhtml"),c.xml=c.xml||"http://www.w3.org/XML/1998/namespace",t&&"string"==typeof t?i.parse(t,c,d):i.errorHandler.error("invalid doc source"),s.doc},r.prototype={startDocument:function(){this.doc=(new d).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,n,i){var r=this.doc,a=r.createElementNS(t,n||e),o=i.length;u(this,a),this.currentElement=a,this.locator&&s(this.locator,a);for(var l=0;l<o;l++){t=i.getURI(l);var c=i.getValue(l),A=(n=i.getQName(l),r.createAttributeNS(t,n));this.locator&&s(i.getLocator(l),A),A.value=A.nodeValue=c,a.setAttributeNode(A)}},endElement:function(t,e,n){var i=this.currentElement;i.tagName;this.currentElement=i.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var n=this.doc.createProcessingInstruction(t,e);this.locator&&s(this.locator,n),u(this,n)},ignorableWhitespace:function(t,e,n){},characters:function(t,e,n){if(t=o.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(t);else i=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(t)&&this.doc.appendChild(i),this.locator&&s(this.locator,i)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,n){t=o.apply(this,arguments);var i=this.doc.createComment(t);this.locator&&s(this.locator,i),u(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(t,e,n);this.locator&&s(this.locator,r),u(this,r)}},warning:function(t){console.warn("[xmldom warning]\t"+t,a(this.locator))},error:function(t){console.error("[xmldom error]\t"+t,a(this.locator))},fatalError:function(t){throw new h(t,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){r.prototype[t]=function(){return null}});var l=n("2IcF"),c=n("UJiq"),A=c.XMLReader,h=c.ParseError,d=e.DOMImplementation=n("c/bS").DOMImplementation;e.XMLSerializer=n("c/bS").XMLSerializer,e.DOMParser=i,e.__DOMHandler=r},Mhyx:function(t,e,n){var i=n("/bQp"),r=n("dSzd")("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||s[r]===t)}},MmMw:function(t,e,n){var i=n("EqjI");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"NWt+":function(t,e,n){var i=n("+ZMJ"),r=n("msXi"),s=n("Mhyx"),a=n("77Pl"),o=n("QRG4"),u=n("3fs2"),l={},c={};(e=t.exports=function(t,e,n,A,h){var d,f,p,g,m=h?function(){return t}:u(t),v=i(n,A,e?2:1),y=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(s(m)){for(d=o(t.length);d>y;y++)if((g=e?v(a(f=t[y])[0],f[1]):v(t[y]))===l||g===c)return g}else for(p=m.call(t);!(f=p.next()).done;)if((g=r(p,v,f.value,e))===l||g===c)return g}).BREAK=l,e.RETURN=c},O4g8:function(t,e){t.exports=!0},ON07:function(t,e,n){var i=n("EqjI"),r=n("7KvD").document,s=i(r)&&i(r.createElement);t.exports=function(t){return s?r.createElement(t):{}}},OWA6:function(t,e,n){"use strict";var i=n("awF4"),r=n("lt8z"),s=n("Rl2i"),a=function(t){var e={};return t?(t.trim().split("\n").forEach(function(t){var n=t.indexOf(":"),i=t.slice(0,n).trim().toLowerCase(),r=t.slice(n+1).trim();void 0===e[i]?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]}),e):e};function o(t,e,n){var i=t;return s(e)?(n=e,"string"==typeof t&&(i={uri:t})):i=r({},e,{uri:t}),i.callback=n,i}function u(t,e,n){return l(e=o(t,e,n))}function l(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,n=function(n,i,r){e||(e=!0,t.callback(n,i,r))};function i(t){return clearTimeout(c),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,n(t,m)}function r(){if(!o){var e;clearTimeout(c),e=t.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var i=m,r=null;return 0!==e?(i={body:function(){var t=void 0;if(t=l.response?l.response:l.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(t){}return null}(l),g)try{t=JSON.parse(t)}catch(t){}return t}(),statusCode:e,method:h,headers:{},url:A,rawRequest:l},l.getAllResponseHeaders&&(i.headers=a(l.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),n(r,i,i.body)}}var s,o,l=t.xhr||null;l||(l=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var c,A=l.url=t.uri||t.url,h=l.method=t.method||"GET",d=t.body||t.data,f=l.headers=t.headers||{},p=!!t.sync,g=!1,m={body:void 0,headers:{},statusCode:0,method:h,url:A,rawRequest:l};if("json"in t&&!1!==t.json&&(g=!0,f.accept||f.Accept||(f.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(f["content-type"]||f["Content-Type"]||(f["Content-Type"]="application/json"),d=JSON.stringify(!0===t.json?d:t.json))),l.onreadystatechange=function(){4===l.readyState&&setTimeout(r,0)},l.onload=r,l.onerror=i,l.onprogress=function(){},l.onabort=function(){o=!0},l.ontimeout=i,l.open(h,A,!p,t.username,t.password),p||(l.withCredentials=!!t.withCredentials),!p&&t.timeout>0&&(c=setTimeout(function(){if(!o){o=!0,l.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}},t.timeout)),l.setRequestHeader)for(s in f)f.hasOwnProperty(s)&&l.setRequestHeader(s,f[s]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(l.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(l),l.send(d||null),l}t.exports=u,t.exports.default=u,u.XMLHttpRequest=i.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:i.XDomainRequest,function(t,e){for(var n=0;n<t.length;n++)e(t[n])}(["get","put","post","patch","head","delete"],function(t){u["delete"===t?"del":t]=function(e,n,i){return(n=o(e,n,i)).method=t.toUpperCase(),l(n)}})},"Oi+a":function(t,e,n){"use strict";var i=n("dIwP"),r=n("qRfI");t.exports=function(t,e){return t&&!i(e)?r(t,e):e}},PzxK:function(t,e,n){var i=n("D2L2"),r=n("sB3e"),s=n("ax3d")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},QRG4:function(t,e,n){var i=n("UuGF"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},R9M2:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},RPLV:function(t,e,n){var i=n("7KvD").document;t.exports=i&&i.documentElement},"RY/4":function(t,e,n){var i=n("R9M2"),r=n("dSzd")("toStringTag"),s="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:s?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},Rl2i:function(t,e){t.exports=function(t){if(!t)return!1;var e=n.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var n=Object.prototype.toString},S06l:function(t,e,n){"use strict";var i=n("7+uW"),r=n("o69Z"),s=Object.prototype.hasOwnProperty;function a(t,e){return Object.keys(e).forEach(function(n){!function(t,e,n){var i=e[n];Object(r.e)(i)&&(s.call(t,n)&&Object(r.h)(i)?t[n]=a(Object(t[n]),e[n]):t[n]=i)}(t,e,n)}),t}var o=i.a.prototype,u=i.a.util.defineReactive;u(o,"$vantLang","zh-CN"),u(o,"$vantMessages",{"zh-CN":{name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(t,e){return t+"年"+e+"月"},rangePrompt:function(t){return"选择天数不能超过 "+t+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(t){return t+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}}});e.a={messages:function(){return o.$vantMessages[o.$vantLang]},use:function(t,e){var n;o.$vantLang=t,this.add(((n={})[t]=e,n))},add:function(t){void 0===t&&(t={}),a(o.$vantMessages,t)}}},S82l:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},SLDG:function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},SfB7:function(t,e,n){t.exports=!n("+E39")&&!n("S82l")(function(){return 7!=Object.defineProperty(n("ON07")("div"),"a",{get:function(){return 7}}).a})},TNV1:function(t,e,n){"use strict";var i=n("cGG2");t.exports=function(t,e,n){return i.forEach(n,function(n){t=n(t,e)}),t}},TcQ7:function(t,e,n){var i=n("MU5D"),r=n("52gC");t.exports=function(t){return i(r(t))}},U5ju:function(t,e,n){n("M6a0"),n("zQR9"),n("+tPU"),n("CXw9"),n("EqBC"),n("jKW+"),t.exports=n("FeBl").Promise},UJiq:function(t,e){var n=/[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]/,i=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),r=new RegExp("^"+n.source+i.source+"*(?::"+n.source+i.source+"*)?$"),s=0,a=1,o=2,u=3,l=4,c=5,A=6,h=7;function d(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,d)}function f(){}function p(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function g(t,e,n,i,r,d){function f(t,e,i){t in n.attributeNames&&d.fatalError("Attribute "+t+" redefined"),n.addValue(t,e,i)}for(var p,g=++e,m=s;;){var v=t.charAt(g);switch(v){case"=":if(m===a)p=t.slice(e,g),m=u;else{if(m!==o)throw new Error("attribute equal must after attrName");m=u}break;case"'":case'"':if(m===u||m===a){if(m===a&&(d.warning('attribute value must after "="'),p=t.slice(e,g)),e=g+1,!((g=t.indexOf(v,e))>0))throw new Error("attribute value no end '"+v+"' match");f(p,y=t.slice(e,g).replace(/&#?\w+;/g,r),e-1),m=c}else{if(m!=l)throw new Error('attribute value must after "="');f(p,y=t.slice(e,g).replace(/&#?\w+;/g,r),e),d.warning('attribute "'+p+'" missed start quot('+v+")!!"),e=g+1,m=c}break;case"/":switch(m){case s:n.setTagName(t.slice(e,g));case c:case A:case h:m=h,n.closed=!0;case l:case a:case o:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return d.error("unexpected end of input"),m==s&&n.setTagName(t.slice(e,g)),g;case">":switch(m){case s:n.setTagName(t.slice(e,g));case c:case A:case h:break;case l:case a:"/"===(y=t.slice(e,g)).slice(-1)&&(n.closed=!0,y=y.slice(0,-1));case o:m===o&&(y=p),m==l?(d.warning('attribute "'+y+'" missed quot(")!'),f(p,y.replace(/&#?\w+;/g,r),e)):("http://www.w3.org/1999/xhtml"===i[""]&&y.match(/^(?:disabled|checked|selected)$/i)||d.warning('attribute "'+y+'" missed value!! "'+y+'" instead!!'),f(y,y,e));break;case u:throw new Error("attribute value missed!!")}return g;case"":v=" ";default:if(v<=" ")switch(m){case s:n.setTagName(t.slice(e,g)),m=A;break;case a:p=t.slice(e,g),m=o;break;case l:var y=t.slice(e,g).replace(/&#?\w+;/g,r);d.warning('attribute "'+y+'" missed quot(")!!'),f(p,y,e);case c:m=A}else switch(m){case o:n.tagName;"http://www.w3.org/1999/xhtml"===i[""]&&p.match(/^(?:disabled|checked|selected)$/i)||d.warning('attribute "'+p+'" missed value!! "'+p+'" instead2!!'),f(p,p,e),e=g,m=a;break;case c:d.warning('attribute space is required"'+p+'"!!');case A:m=a,e=g;break;case u:m=l,e=g;break;case h:throw new Error("elements closed character '/' and '>' must be connected to")}}g++}}function m(t,e,n){for(var i=t.tagName,r=null,s=t.length;s--;){var a=t[s],o=a.qName,u=a.value;if((h=o.indexOf(":"))>0)var l=a.prefix=o.slice(0,h),c=o.slice(h+1),A="xmlns"===l&&c;else c=o,l=null,A="xmlns"===o&&"";a.localName=c,!1!==A&&(null==r&&(r={},b(n,n={})),n[A]=r[A]=u,a.uri="http://www.w3.org/2000/xmlns/",e.startPrefixMapping(A,u))}for(s=t.length;s--;){(l=(a=t[s]).prefix)&&("xml"===l&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==l&&(a.uri=n[l||""]))}var h;(h=i.indexOf(":"))>0?(l=t.prefix=i.slice(0,h),c=t.localName=i.slice(h+1)):(l=null,c=t.localName=i);var d=t.uri=n[l||""];if(e.startElement(d,c,i,t),!t.closed)return t.currentNSMap=n,t.localNSMap=r,!0;if(e.endElement(d,c,i),r)for(l in r)e.endPrefixMapping(l)}function v(t,e,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var s=t.indexOf("</"+n+">",e),a=t.substring(e+1,s);if(/[&<]/.test(a))return/^script$/i.test(n)?(r.characters(a,0,a.length),s):(a=a.replace(/&#?\w+;/g,i),r.characters(a,0,a.length),s)}return e+1}function y(t,e,n,i){var r=i[n];return null==r&&((r=t.lastIndexOf("</"+n+">"))<e&&(r=t.lastIndexOf("</"+n)),i[n]=r),r<e}function b(t,e){for(var n in t)e[n]=t[n]}function _(t,e,n,i){switch(t.charAt(e+2)){case"-":return"-"===t.charAt(e+3)?(r=t.indexOf("--\x3e",e+4))>e?(n.comment(t,e+4,r-e-4),r+3):(i.error("Unclosed comment"),-1):-1;default:if("CDATA["==t.substr(e+3,6)){var r=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,r-e-9),n.endCDATA(),r+3}var s=function(t,e){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=e,r.exec(t);for(;n=r.exec(t);)if(i.push(n),n[1])return i}(t,e),a=s.length;if(a>1&&/!doctype/i.test(s[0][0])){var o=s[1][0],u=!1,l=!1;a>3&&(/^public$/i.test(s[2][0])?(u=s[3][0],l=a>4&&s[4][0]):/^system$/i.test(s[2][0])&&(l=s[3][0]));var c=s[a-1];return n.startDTD(o,u,l),n.endDTD(),c.index+c[0].length}}return-1}function w(t,e,n){var i=t.indexOf("?>",e);if(i){var r=t.substring(e,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 B(){this.attributeNames={}}d.prototype=new Error,d.prototype.name=d.name,f.prototype={parse:function(t,e,n){var i=this.domBuilder;i.startDocument(),b(e,e={}),function(t,e,n,i,r){function s(t){var e=t.slice(1,-1);return e in n?n[e]:"#"===e.charAt(0)?function(t){if(t>65535){var e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}(parseInt(e.substr(1).replace("x","0x"))):(r.error("entity not found:"+t),t)}function a(e){if(e>b){var n=t.substring(b,e).replace(/&#?\w+;/g,s);A&&o(b),i.characters(n,0,e-b),b=e}}function o(e,n){for(;e>=l&&(n=c.exec(t));)u=n.index,l=u+n[0].length,A.lineNumber++;A.columnNumber=e-u+1}var u=0,l=0,c=/.*(?:\r\n?|\n)|.*$/g,A=i.locator,h=[{currentNSMap:e}],f={},b=0;for(;;){try{var C=t.indexOf("<",b);if(C<0){if(!t.substr(b).match(/^\s*$/)){var T=i.doc,E=T.createTextNode(t.substr(b));T.appendChild(E),i.currentElement=E}return}switch(C>b&&a(C),t.charAt(C+1)){case"/":var S=t.indexOf(">",C+3),k=t.substring(C+2,S),x=h.pop();S<0?(k=t.substring(C+2).replace(/[\s<].*/,""),r.error("end tag name: "+k+" is not complete:"+x.tagName),S=C+1+k.length):k.match(/\s</)&&(k=k.replace(/[\s<].*/,""),r.error("end tag name: "+k+" maybe not complete"),S=C+1+k.length);var U=x.localNSMap,I=x.tagName==k,F=I||x.tagName&&x.tagName.toLowerCase()==k.toLowerCase();if(F){if(i.endElement(x.uri,x.localName,k),U)for(var O in U)i.endPrefixMapping(O);I||r.fatalError("end tag name: "+k+" is not match the current start tagName:"+x.tagName)}else h.push(x);S++;break;case"?":A&&o(C),S=w(t,C,i);break;case"!":A&&o(C),S=_(t,C,i,r);break;default:A&&o(C);var Q=new B,N=h[h.length-1].currentNSMap,S=g(t,C,Q,N,s,r),L=Q.length;if(!Q.closed&&y(t,S,Q.tagName,f)&&(Q.closed=!0,n.nbsp||r.warning("unclosed xml attribute")),A&&L){for(var D=p(A,{}),P=0;P<L;P++){var R=Q[P];o(R.offset),R.locator=p(A,{})}i.locator=D,m(Q,i,N)&&h.push(Q),i.locator=A}else m(Q,i,N)&&h.push(Q);"http://www.w3.org/1999/xhtml"!==Q.uri||Q.closed?S++:S=v(t,S,Q.tagName,s,i)}}catch(t){if(t instanceof d)throw t;r.error("element parse error: "+t),S=-1}S>b?b=S:a(Math.max(C,b)+1)}}(t,e,n,i,this.errorHandler),i.endDocument()}},B.prototype={setTagName:function(t){if(!r.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,n){if(!r.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=f,e.ParseError=d},UuGF:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},"VU/8":function(t,e){t.exports=function(t,e,n,i,r,s){var a,o=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(a=t,o=t.default);var l,c="function"==typeof o?o.options:o;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId=r),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=l):i&&(l=i),l){var A=c.functional,h=A?c.render:c.beforeCreate;A?(c._injectStyles=l,c.render=function(t,e){return l.call(e),h(t,e)}):c.beforeCreate=h?[].concat(h,l):[l]}return{esModule:a,exports:o,options:c}}},W1rN:function(t,e,n){var i;i=function(){return e={134:function(t,e,n){"use strict";n.d(e,{default:function(){return f}});e=n(279);var i=n.n(e),r=(e=n(370),n.n(e)),s=(e=n(817),n.n(e));function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var u=function(){function t(e){!function(e){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),this.resolveOptions(e),this.initSelection()}var e,n;return e=t,(n=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var t="rtl"===document.documentElement.getAttribute("dir");return this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px",t=window.pageYOffset||document.documentElement.scrollTop,this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var t=this,e=this.createFakeElement();this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(e),this.selectedText=s()(e),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=s()(this.target),this.copyText()}},{key:"copyText",value:function(){var t;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==a(t)||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}])&&o(e.prototype,n),t}();function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function A(t,e){return(A=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){if(t="data-clipboard-".concat(t),e.hasAttribute(t))return e.getAttribute(t)}var f=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&A(t,e)}(a,i());var t,e,n,s=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var n,i=h(t);return n=e?(n=h(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),i=this,!(n=n)||"object"!==l(n)&&"function"!=typeof n?function(t){if(void 0!==i)return i;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}():n}}(a);function a(t,e){var n;return function(t){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}(this),(n=s.call(this)).resolveOptions(e),n.listenClick(t),n}return t=a,n=[{key:"isSupported",value:function(){var t="string"==typeof(t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"])?[t]:t,e=!!document.queryCommandSupported;return t.forEach(function(t){e=e&&!!document.queryCommandSupported(t)}),e}}],(e=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===l(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=r()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){t=t.delegateTarget||t.currentTarget,this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new u({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(t){return d("action",t)}},{key:"defaultTarget",value:function(t){if(t=d("target",t))return document.querySelector(t)}},{key:"defaultText",value:function(t){return d("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}])&&c(t.prototype,e),n&&c(t,n),a}()},828:function(t){var e;"undefined"==typeof Element||Element.prototype.matches||((e=Element.prototype).matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector),t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var i=n(828);function r(t,e,n,r,s){var a=function(t,e,n,r){return function(n){n.delegateTarget=i(n.target,e),n.delegateTarget&&r.call(t,n)}}.apply(this,arguments);return t.addEventListener(n,a,s),{destroy:function(){t.removeEventListener(n,a,s)}}}t.exports=function(t,e,n,i,s){return"function"==typeof t.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return r(t,e,n,i,s)}))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var i=n(879),r=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!i.string(e))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(t))return l=e,c=n,(u=t).addEventListener(l,c),{destroy:function(){u.removeEventListener(l,c)}};if(i.nodeList(t))return s=t,a=e,o=n,Array.prototype.forEach.call(s,function(t){t.addEventListener(a,o)}),{destroy:function(){Array.prototype.forEach.call(s,function(t){t.removeEventListener(a,o)})}};if(i.string(t))return t=t,e=e,n=n,r(document.body,t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var s,a,o,u,l,c}},817:function(t){t.exports=function(t){var e,n="SELECT"===t.nodeName?(t.focus(),t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?((e=t.hasAttribute("readonly"))||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),e||t.removeAttribute("readonly"),t.value):(t.hasAttribute("contenteditable")&&t.focus(),n=window.getSelection(),(e=document.createRange()).selectNodeContents(t),n.removeAllRanges(),n.addRange(e),n.toString());return n}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var i=this;function r(){i.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],r=[];if(i&&e)for(var s=0,a=i.length;s<a;s++)i[s].fn!==e&&i[s].fn._!==e&&r.push(i[s]);return r.length?n[t]=r:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},n={},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t(134).default;function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{}};return e[i](r,r.exports,t),r.exports}var e,n},t.exports=i()},W2nU:function(t,e){var n,i,r=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(t){if(n===setTimeout)return setTimeout(t,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(t){n=s}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var u,l=[],c=!1,A=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):A=-1,l.length&&d())}function d(){if(!c){var t=o(h);c=!0;for(var e=l.length;e;){for(u=l,l=[];++A<e;)u&&u[A].run();A=-1,e=l.length}u=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new f(t,e)),1!==l.length||c||o(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},X8DO:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},XmWM:function(t,e,n){"use strict";var i=n("cGG2"),r=n("DQCr"),s=n("fuGk"),a=n("xLtR"),o=n("DUeU");function u(t){this.defaults=t,this.interceptors={request:new s,response:new s}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=o(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=o(this.defaults,t),r(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],function(t){u.prototype[t]=function(e,n){return this.request(o(n||{},{method:t,url:e,data:(n||{}).data}))}}),i.forEach(["post","put","patch"],function(t){u.prototype[t]=function(e,n,i){return this.request(o(i||{},{method:t,url:e,data:n}))}}),t.exports=u},YNA3:function(t,e,n){"use strict";e.a=function(t){return t.replace(i,function(t,e){return e.toUpperCase()})},e.b=function(t,e){void 0===e&&(e=2);var n=t+"";for(;n.length<e;)n="0"+n;return n};var i=/-(\w)/g},Yobk:function(t,e,n){var i=n("77Pl"),r=n("qio6"),s=n("xnc9"),a=n("ax3d")("IE_PROTO"),o=function(){},u=function(){var t,e=n("ON07")("iframe"),i=s.length;for(e.style.display="none",n("RPLV").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;i--;)delete u.prototype[s[i]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(o.prototype=i(t),n=new o,o.prototype=null,n[a]=t):n=u(),void 0===e?n:r(n,e)}},YqKu:function(t,e,n){!function(){function e(t){t.directive("wechat-title",function(t,e){!function(t,e){if(void 0!==t&&window.document.title!==t){document.title=t;var n=navigator.userAgent.toLowerCase();if(/iphone|ipad|ipod/.test(n)){var i=document.createElement("iframe");i.style.display="none";var r=/alipay/.test(n)?e:e||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";r&&i.setAttribute("src",r);var s=function(){setTimeout(function(){i.removeEventListener("load",s),document.body.removeChild(i)},0)};i.addEventListener("load",s),document.body.appendChild(i)}}}(e.value,t.getAttribute("img-set")||null)})}t.exports=e}()},aj7g:function(t,e){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 s(t){return"string"==typeof t&&(!!r[t.toLowerCase()]&&t.toLowerCase())}function a(t,e,r){this.hasBeenReset=!1;var a="",o=!1,u=t,l=e,c=r,A=null,h="",d=!0,f="auto",p="start",g="auto",m="auto",v=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return a},set:function(t){a=""+t}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(t){o=!!t}},startTime:{enumerable:!0,get:function(){return u},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");u=t,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return l},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");l=t,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(t){c=""+t,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return A},set:function(t){A=t,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return h},set:function(t){var e=function(t){return"string"==typeof t&&!!i[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");h=e,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return d},set:function(t){d=!!t,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(t){if("number"!=typeof t&&t!==n)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=t,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return p},set:function(t){var e=s(t);e?(p=e,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");g=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return m},set:function(t){var e=s(t);e?(m=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");v=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(t){var e=s(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=e,this.hasBeenReset=!0}}}),this.displayState=void 0}a.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=a},awF4:function(t,e,n){(function(e){var n;n="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=n}).call(e,n("DuR2"))},ax3d:function(t,e,n){var i=n("e8AB")("keys"),r=n("3Eo+");t.exports=function(t){return i[t]||(i[t]=r(t))}},bRrM:function(t,e,n){"use strict";var i=n("7KvD"),r=n("FeBl"),s=n("evD5"),a=n("+E39"),o=n("dSzd")("species");t.exports=function(t){var e="function"==typeof r[t]?r[t]:i[t];a&&e&&!e[o]&&s.f(e,o,{configurable:!0,get:function(){return this}})}},"c/bS":function(t,e){function n(t,e){for(var n in t)e[n]=t[n]}function i(t,e){var i=t.prototype;if(!(i instanceof e)){function r(){}r.prototype=e.prototype,n(i,r=new r),t.prototype=i=r}i.constructor!=t&&("function"!=typeof t&&console.error("unknow Class:"+t),i.constructor=t)}var r="http://www.w3.org/1999/xhtml",s={},a=s.ELEMENT_NODE=1,o=s.ATTRIBUTE_NODE=2,u=s.TEXT_NODE=3,l=s.CDATA_SECTION_NODE=4,c=s.ENTITY_REFERENCE_NODE=5,A=s.ENTITY_NODE=6,h=s.PROCESSING_INSTRUCTION_NODE=7,d=s.COMMENT_NODE=8,f=s.DOCUMENT_NODE=9,p=s.DOCUMENT_TYPE_NODE=10,g=s.DOCUMENT_FRAGMENT_NODE=11,m=s.NOTATION_NODE=12,v={},y={},b=(v.INDEX_SIZE_ERR=(y[1]="Index size error",1),v.DOMSTRING_SIZE_ERR=(y[2]="DOMString size error",2),v.HIERARCHY_REQUEST_ERR=(y[3]="Hierarchy request error",3)),_=(v.WRONG_DOCUMENT_ERR=(y[4]="Wrong document",4),v.INVALID_CHARACTER_ERR=(y[5]="Invalid character",5),v.NO_DATA_ALLOWED_ERR=(y[6]="No data allowed",6),v.NO_MODIFICATION_ALLOWED_ERR=(y[7]="No modification allowed",7),v.NOT_FOUND_ERR=(y[8]="Not found",8)),w=(v.NOT_SUPPORTED_ERR=(y[9]="Not supported",9),v.INUSE_ATTRIBUTE_ERR=(y[10]="Attribute in use",10));v.INVALID_STATE_ERR=(y[11]="Invalid state",11),v.SYNTAX_ERR=(y[12]="Syntax error",12),v.INVALID_MODIFICATION_ERR=(y[13]="Invalid modification",13),v.NAMESPACE_ERR=(y[14]="Invalid namespace",14),v.INVALID_ACCESS_ERR=(y[15]="Invalid access",15);function B(t,e){if(e instanceof Error)var n=e;else n=this,Error.call(this,y[t]),this.message=y[t],Error.captureStackTrace&&Error.captureStackTrace(this,B);return n.code=t,e&&(this.message=this.message+": "+e),n}function C(){}function T(t,e){this._node=t,this._refresh=e,E(this)}function E(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!=e){var i=t._refresh(t._node);nt(t,"length",i.length),n(i,t),t._inc=e}}function S(){}function k(t,e){for(var n=t.length;n--;)if(t[n]===e)return n}function x(t,e,n,i){if(i?e[k(e,i)]=n:e[e.length++]=n,t){n.ownerElement=t;var r=t.ownerDocument;r&&(i&&L(r,t,i),function(t,e,n){t&&t._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(e._nsMap[n.prefix?n.localName:""]=n.value)}(r,t,n))}}function U(t,e,n){var i=k(e,n);if(!(i>=0))throw B(_,new Error(t.tagName+"@"+n));for(var r=e.length-1;i<r;)e[i]=e[++i];if(e.length=r,t){var s=t.ownerDocument;s&&(L(s,t,n),n.ownerElement=null)}}function I(t){if(this._features={},t)for(var e in t)this._features=t[e]}function F(){}function O(t){return("<"==t?"<":">"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function Q(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(Q(t,e))return!0}while(t=t.nextSibling)}function N(){}function L(t,e,n,i){t&&t._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete e._nsMap[n.prefix?n.localName:""]}function D(t,e,n){if(t&&t._inc){t._inc++;var i=e.childNodes;if(n)i[i.length++]=n;else{for(var r=e.firstChild,s=0;r;)i[s++]=r,r=r.nextSibling;i.length=s}}}function P(t,e){var n=e.previousSibling,i=e.nextSibling;return n?n.nextSibling=i:t.firstChild=i,i?i.previousSibling=n:t.lastChild=n,D(t.ownerDocument,t),e}function R(t,e,n){var i=e.parentNode;if(i&&i.removeChild(e),e.nodeType===g){var r=e.firstChild;if(null==r)return e;var s=e.lastChild}else r=s=e;var a=n?n.previousSibling:t.lastChild;r.previousSibling=a,s.nextSibling=n,a?a.nextSibling=r:t.firstChild=r,null==n?t.lastChild=s:n.previousSibling=s;do{r.parentNode=t}while(r!==s&&(r=r.nextSibling));return D(t.ownerDocument||t,t),e.nodeType==g&&(e.firstChild=e.lastChild=null),e}function H(){this._nsMap={}}function M(){}function K(){}function j(){}function V(){}function z(){}function $(){}function W(){}function G(){}function X(){}function q(){}function Y(){}function J(){}function Z(t,e){var n=[],i=9==this.nodeType&&this.documentElement||this,r=i.prefix,s=i.namespaceURI;if(s&&null==r&&null==(r=i.lookupPrefix(s)))var a=[{namespace:s,prefix:null}];return et(this,n,t,e,a),n.join("")}function tt(t,e,n){var i=t.prefix||"",r=t.namespaceURI;if(!i&&!r)return!1;if("xml"===i&&"http://www.w3.org/XML/1998/namespace"===r||"http://www.w3.org/2000/xmlns/"==r)return!1;for(var s=n.length;s--;){var a=n[s];if(a.prefix==i)return a.namespace!=r}return!0}function et(t,e,n,i,s){if(i){if(!(t=i(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case a:s||(s=[]);s.length;var A=t.attributes,m=A.length,v=t.firstChild,y=t.tagName;n=r===t.namespaceURI||n,e.push("<",y);for(var b=0;b<m;b++){"xmlns"==(_=A.item(b)).prefix?s.push({prefix:_.localName,namespace:_.value}):"xmlns"==_.nodeName&&s.push({prefix:"",namespace:_.value})}for(b=0;b<m;b++){var _;if(tt(_=A.item(b),0,s)){var w=_.prefix||"",B=_.namespaceURI,C=w?" xmlns:"+w:" xmlns";e.push(C,'="',B,'"'),s.push({prefix:w,namespace:B})}et(_,e,n,i,s)}if(tt(t,0,s)){w=t.prefix||"",B=t.namespaceURI,C=w?" xmlns:"+w:" xmlns";e.push(C,'="',B,'"'),s.push({prefix:w,namespace:B})}if(v||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(y)){if(e.push(">"),n&&/^script$/i.test(y))for(;v;)v.data?e.push(v.data):et(v,e,n,i,s),v=v.nextSibling;else for(;v;)et(v,e,n,i,s),v=v.nextSibling;e.push("</",y,">")}else e.push("/>");return;case f:case g:for(v=t.firstChild;v;)et(v,e,n,i,s),v=v.nextSibling;return;case o:return e.push(" ",t.name,'="',t.value.replace(/[&"]/g,O),'"');case u:return e.push(t.data.replace(/[<&]/g,O).replace(/]]>/g,"]]>"));case l:return e.push("<![CDATA[",t.data,"]]>");case d:return e.push("\x3c!--",t.data,"--\x3e");case p:var T=t.publicId,E=t.systemId;if(e.push("<!DOCTYPE ",t.name),T)e.push(" PUBLIC ",T),E&&"."!=E&&e.push(" ",E),e.push(">");else if(E&&"."!=E)e.push(" SYSTEM ",E,">");else{var S=t.internalSubset;S&&e.push(" [",S,"]"),e.push(">")}return;case h:return e.push("<?",t.target," ",t.data,"?>");case c:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function nt(t,e,n){t[e]=n}B.prototype=Error.prototype,n(v,B),C.prototype={length:0,item:function(t){return this[t]||null},toString:function(t,e){for(var n=[],i=0;i<this.length;i++)et(this[i],n,t,e);return n.join("")}},T.prototype.item=function(t){return E(this),this[t]},i(T,C),S.prototype={length:0,item:C.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var n=this[e];if(n.nodeName==t)return n}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new B(w);var n=this.getNamedItem(t.nodeName);return x(this._ownerElement,this,t,n),n},setNamedItemNS:function(t){var e,n=t.ownerElement;if(n&&n!=this._ownerElement)throw new B(w);return e=this.getNamedItemNS(t.namespaceURI,t.localName),x(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var e=this.getNamedItem(t);return U(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var n=this.getNamedItemNS(t,e);return U(this._ownerElement,this,n),n},getNamedItemNS:function(t,e){for(var n=this.length;n--;){var i=this[n];if(i.localName==e&&i.namespaceURI==t)return i}return null}},I.prototype={hasFeature:function(t,e){var n=this._features[t.toLowerCase()];return!(!n||e&&!(e in n))},createDocument:function(t,e,n){var i=new N;if(i.implementation=this,i.childNodes=new C,i.doctype=n,n&&i.appendChild(n),e){var r=i.createElementNS(t,e);i.appendChild(r)}return i},createDocumentType:function(t,e,n){var i=new $;return i.name=t,i.nodeName=t,i.publicId=e,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(t,e){return R(this,t,e)},replaceChild:function(t,e){this.insertBefore(t,e),e&&this.removeChild(e)},removeChild:function(t){return P(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(t){return function t(e,n,i){var r=new n.constructor;for(var s in n){var u=n[s];"object"!=typeof u&&u!=r[s]&&(r[s]=u)}n.childNodes&&(r.childNodes=new C);r.ownerDocument=e;switch(r.nodeType){case a:var l=n.attributes,c=r.attributes=new S,A=l.length;c._ownerElement=r;for(var h=0;h<A;h++)r.setAttributeNode(t(e,l.item(h),!0));break;case o:i=!0}if(i)for(var d=n.firstChild;d;)r.appendChild(t(e,d,i)),d=d.nextSibling;return r}(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==u&&t.nodeType==u?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var n=e._nsMap;if(n)for(var i in n)if(n[i]==t)return i;e=e.nodeType==o?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var n=e._nsMap;if(n&&t in n)return n[t];e=e.nodeType==o?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},n(s,F),n(s,F.prototype),N.prototype={nodeName:"#document",nodeType:f,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==g){for(var n=t.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,e),n=i}return t}return null==this.documentElement&&t.nodeType==a&&(this.documentElement=t),R(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),P(this,t)},importNode:function(t,e){return function t(e,n,i){var r;switch(n.nodeType){case a:(r=n.cloneNode(!1)).ownerDocument=e;case g:break;case o:i=!0}r||(r=n.cloneNode(!1));r.ownerDocument=e;r.parentNode=null;if(i)for(var s=n.firstChild;s;)r.appendChild(t(e,s,i)),s=s.nextSibling;return r}(this,t,e)},getElementById:function(t){var e=null;return Q(this.documentElement,function(n){if(n.nodeType==a&&n.getAttribute("id")==t)return e=n,!0}),e},getElementsByClassName:function(t){var e=new RegExp("(^|\\s)"+t+"(\\s|$)");return new T(this,function(t){var n=[];return Q(t.documentElement,function(i){i!==t&&i.nodeType==a&&e.test(i.getAttribute("class"))&&n.push(i)}),n})},createElement:function(t){var e=new H;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.childNodes=new C,(e.attributes=new S)._ownerElement=e,e},createDocumentFragment:function(){var t=new q;return t.ownerDocument=this,t.childNodes=new C,t},createTextNode:function(t){var e=new j;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new V;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new z;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new Y;return n.ownerDocument=this,n.tagName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new M;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new X;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new H,i=e.split(":"),r=n.attributes=new S;return n.childNodes=new C,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=e,r._ownerElement=n,n},createAttributeNS:function(t,e){var n=new M,i=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=e,n}},i(N,F),H.prototype={nodeType:a,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===g?this.insertBefore(t,null):function(t,e){var n=e.parentNode;if(n){var i=t.lastChild;n.removeChild(e),i=t.lastChild}return i=t.lastChild,e.parentNode=t,e.previousSibling=i,e.nextSibling=null,i?i.nextSibling=e:t.firstChild=e,t.lastChild=e,D(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var i=this.ownerDocument.createAttributeNS(t,e);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new T(this,function(e){var n=[];return Q(e,function(i){i===e||i.nodeType!=a||"*"!==t&&i.tagName!=t||n.push(i)}),n})},getElementsByTagNameNS:function(t,e){return new T(this,function(n){var i=[];return Q(n,function(r){r===n||r.nodeType!==a||"*"!==t&&r.namespaceURI!==t||"*"!==e&&r.localName!=e||i.push(r)}),i})}},N.prototype.getElementsByTagName=H.prototype.getElementsByTagName,N.prototype.getElementsByTagNameNS=H.prototype.getElementsByTagNameNS,i(H,F),M.prototype.nodeType=o,i(M,F),K.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(y[b])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){n=this.data.substring(0,t)+n+this.data.substring(t+e),this.nodeValue=this.data=n,this.length=n.length}},i(K,F),j.prototype={nodeName:"#text",nodeType:u,splitText:function(t){var e=this.data,n=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},i(j,K),V.prototype={nodeName:"#comment",nodeType:d},i(V,K),z.prototype={nodeName:"#cdata-section",nodeType:l},i(z,K),$.prototype.nodeType=p,i($,F),W.prototype.nodeType=m,i(W,F),G.prototype.nodeType=A,i(G,F),X.prototype.nodeType=c,i(X,F),q.prototype.nodeName="#document-fragment",q.prototype.nodeType=g,i(q,F),Y.prototype.nodeType=h,i(Y,F),J.prototype.serializeToString=function(t,e,n){return Z.call(t,e,n)},F.prototype.toString=Z;try{if(Object.defineProperty){Object.defineProperty(T.prototype,"length",{get:function(){return E(this),this.$$length}}),Object.defineProperty(F.prototype,"textContent",{get:function(){return function t(e){switch(e.nodeType){case a:case g:var n=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&n.push(t(e)),e=e.nextSibling;return n.join("");default:return e.nodeValue}}(this)},set:function(t){switch(this.nodeType){case a:case g:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),nt=function(t,e,n){t["$$"+e]=n}}}catch(t){}e.Node=F,e.DOMException=B,e.DOMImplementation=I,e.XMLSerializer=J},cGG2:function(t,e,n){"use strict";var i=n("JP+z"),r=Object.prototype.toString;function s(t){return"[object Array]"===r.call(t)}function a(t){return void 0===t}function o(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==r.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function l(t){return"[object Function]"===r.call(t)}function c(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),s(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}t.exports={isArray:s,isArrayBuffer:function(t){return"[object ArrayBuffer]"===r.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:o,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===r.call(t)},isFile:function(t){return"[object File]"===r.call(t)},isBlob:function(t){return"[object Blob]"===r.call(t)},isFunction:l,isStream:function(t){return o(t)&&l(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function t(){var e={};function n(n,i){u(e[i])&&u(n)?e[i]=t(e[i],n):u(n)?e[i]=t({},n):s(n)?e[i]=n.slice():e[i]=n}for(var i=0,r=arguments.length;i<r;i++)c(arguments[i],n);return e},extend:function(t,e,n){return c(e,function(e,r){t[r]=n&&"function"==typeof e?i(e,n):e}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},cTzj:function(t,e,n){var i;i=function(){"use strict";function t(t){t=t||{};var i=arguments.length,r=0;if(1===i)return t;for(;++r<i;){var s=arguments[r];A(t)&&(t=s),n(s)&&e(t,s)}return t}function e(e,r){for(var s in h(e,r),r)if("__proto__"!==s&&i(r,s)){var a=r[s];n(a)?("undefined"===f(e[s])&&"function"===f(a)&&(e[s]=a),e[s]=t(e[s]||{},a)):e[s]=a}return e}function n(t){return"object"===f(t)||"function"===f(t)}function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function r(t,e){if(t.length){var n=t.indexOf(e);return n>-1?t.splice(n,1):void 0}}function s(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var n=t.getAttribute("data-srcset"),i=[],r=t.parentNode.offsetWidth*e,s=void 0,a=void 0,o=void 0;(n=n.trim().split(",")).map(function(t){t=t.trim(),-1===(s=t.lastIndexOf(" "))?(a=t,o=999998):(a=t.substr(0,s),o=parseInt(t.substr(s+1,t.length-s-2),10)),i.push([o,a])}),i.sort(function(t,e){if(t[0]<e[0])return-1;if(t[0]>e[0])return 1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0});for(var u="",l=void 0,c=i.length,A=0;A<c;A++)if((l=i[A])[0]>=r){u=l[1];break}return u}}function a(t,e){for(var n=void 0,i=0,r=t.length;i<r;i++)if(e(t[i])){n=t[i];break}return n}function o(){}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},c=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),A=function(t){return null==t||"function"!=typeof t&&"object"!==(void 0===t?"undefined":u(t))},h=function(t,e){if(null===t||void 0===t)throw new TypeError("expected first argument to be an object.");if(void 0===e||"undefined"==typeof Symbol)return t;if("function"!=typeof Object.getOwnPropertySymbols)return t;for(var n=Object.prototype.propertyIsEnumerable,i=Object(t),r=arguments.length,s=0;++s<r;)for(var a=Object(arguments[s]),o=Object.getOwnPropertySymbols(a),u=0;u<o.length;u++){var l=o[u];n.call(a,l)&&(i[l]=a[l])}return i},d=Object.prototype.toString,f=function(t){var e=void 0===t?"undefined":u(t);return"undefined"===e?"undefined":null===t?"null":!0===t||!1===t||t instanceof Boolean?"boolean":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?void 0!==t.constructor.name&&"Generator"===t.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(t)?"array":t instanceof RegExp?"regexp":t instanceof Date?"date":"[object RegExp]"===(e=d.call(t))?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":"[object Promise]"===e?"promise":function(t){return t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Map Iterator]"===e?"mapiterator":"[object Set Iterator]"===e?"setiterator":"[object String Iterator]"===e?"stringiterator":"[object Array Iterator]"===e?"arrayiterator":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"},p=t,g="undefined"!=typeof window,m=g&&"IntersectionObserver"in window,v={event:"event",observer:"observer"},y=function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}if(g)return"function"==typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t)}(),b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return g&&window.devicePixelRatio||t},_=function(){if(g){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}(),w={on:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_?t.addEventListener(e,n,{capture:i,passive:!0}):t.addEventListener(e,n,i)},off:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,n,i)}},B=function(t,e,n){var i=new Image;i.src=t.src,i.onload=function(){e({naturalHeight:i.naturalHeight,naturalWidth:i.naturalWidth,src:i.src})},i.onerror=function(t){n(t)}},C=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},T=function(t){return C(t,"overflow")+C(t,"overflow-y")+C(t,"overflow-x")},E={},S=function(){function t(e){var n=e.el,i=e.src,r=e.error,s=e.loading,a=e.bindType,o=e.$parent,u=e.options,c=e.elRenderer;l(this,t),this.el=n,this.src=i,this.error=r,this.loading=s,this.bindType=a,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=u,this.rect=null,this.$parent=o,this.elRenderer=c,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return c(t,[{key:"initState",value:function(){this.el.dataset.src=this.src,this.state={error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,n=t.loading,i=t.error,r=this.src;this.src=e,this.loading=n,this.error=i,this.filter(),r!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var t=this;(function(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e})(this.options.filter).map(function(e){t.options.filter[e](t,t.options)})}},{key:"renderLoading",value:function(t){var e=this;B({src:this.loading},function(n){e.render("loading",!1),t()},function(){t(),e.options.silent||console.warn("VueLazyload log: load failed with loading image("+e.loading+")")})}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void e()):this.state.loaded||E[this.src]?(this.state.loaded=!0,e(),this.render("loaded",!0)):void this.renderLoading(function(){t.attempt++,t.record("loadStart"),B({src:t.src},function(n){t.naturalHeight=n.naturalHeight,t.naturalWidth=n.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),E[t.src]=1,e()},function(e){!t.options.silent&&console.error(e),t.state.error=!0,t.state.loaded=!1,t.render("error",!1)})})}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),k="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",x=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],U={rootMargin:"0px",threshold:0},I=function(t){return function(){function e(t){var n=t.preLoad,i=t.error,r=t.throttleWait,s=t.preLoadTop,a=t.dispatchEvent,o=t.loading,u=t.attempt,c=t.silent,A=void 0===c||c,h=t.scale,d=t.listenEvents,f=(t.hasbind,t.filter),p=t.adapter,m=t.observer,y=t.observerOptions;l(this,e),this.version="1.2.3",this.mode=v.event,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:A,dispatchEvent:!!a,throttleWait:r||200,preLoad:n||1.3,preLoadTop:s||0,error:i||k,loading:o||k,attempt:u||3,scale:h||b(h),ListenEvents:d||x,hasbind:!1,supportWebp:function(){if(!g)return!1;var t=!0,e=document;try{var n=e.createElement("object");n.type="image/webp",n.style.visibility="hidden",n.innerHTML="!",e.body.appendChild(n),t=!n.offsetWidth,e.body.removeChild(n)}catch(e){t=!1}return t}(),filter:f||{},adapter:p||{},observer:!!m,observerOptions:y||U},this._initEvent(),this.lazyLoadHandler=function(t,e){var n=null,i=0;return function(){if(!n){var r=this,s=arguments,a=function(){i=Date.now(),n=!1,t.apply(r,s)};Date.now()-i>=e?a():n=setTimeout(a,e)}}}(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?v.observer:v.event)}return c(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(this.options,t)}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map(function(e){t.push(e.performance())}),t}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),g&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}},{key:"add",value:function(e,n,i){var r=this;if(function(t,e){for(var n=!1,i=0,r=t.length;i<r;i++)if(e(t[i])){n=!0;break}return n}(this.ListenerQueue,function(t){return t.el===e}))return this.update(e,n),t.nextTick(this.lazyLoadHandler);var a=this._valueFormatter(n.value),o=a.src,u=a.loading,l=a.error;t.nextTick(function(){o=s(e,r.options.scale)||o,r._observer&&r._observer.observe(e);var a=Object.keys(n.modifiers)[0],c=void 0;a&&(c=(c=i.context.$refs[a])?c.$el||c:document.getElementById(a)),c||(c=function(t){if(g){if(!(t instanceof HTMLElement))return window;for(var e=t;e&&e!==document.body&&e!==document.documentElement&&e.parentNode;){if(/(scroll|auto)/.test(T(e)))return e;e=e.parentNode}return window}}(e));var A=new S({bindType:n.arg,$parent:c,el:e,loading:u,error:l,src:o,elRenderer:r._elRenderer.bind(r),options:r.options});r.ListenerQueue.push(A),g&&(r._addListenerTarget(window),r._addListenerTarget(c)),r.lazyLoadHandler(),t.nextTick(function(){return r.lazyLoadHandler()})})}},{key:"update",value:function(e,n){var i=this,r=this._valueFormatter(n.value),o=r.src,u=r.loading,l=r.error;o=s(e,this.options.scale)||o;var c=a(this.ListenerQueue,function(t){return t.el===e});c&&c.update({src:o,loading:u,error:l}),this._observer&&(this._observer.unobserve(e),this._observer.observe(e)),this.lazyLoadHandler(),t.nextTick(function(){return i.lazyLoadHandler()})}},{key:"remove",value:function(t){if(t){this._observer&&this._observer.unobserve(t);var e=a(this.ListenerQueue,function(e){return e.el===t});e&&(this._removeListenerTarget(e.$parent),this._removeListenerTarget(window),r(this.ListenerQueue,e)&&e.destroy())}}},{key:"removeComponent",value:function(t){t&&(r(this.ListenerQueue,t),this._observer&&this._observer.unobserve(t.el),t.$parent&&t.$el.parentNode&&this._removeListenerTarget(t.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(t){var e=this;m||t!==v.observer||(t=v.event),this.mode=t,t===v.event?(this._observer&&(this.ListenerQueue.forEach(function(t){e._observer.unobserve(t.el)}),this._observer=null),this.TargetQueue.forEach(function(t){e._initListen(t.el,!0)})):(this.TargetQueue.forEach(function(t){e._initListen(t.el,!1)}),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(t){if(t){var e=a(this.TargetQueue,function(e){return e.el===t});return e?e.childrenCount++:(e={el:t,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===v.event&&this._initListen(e.el,!0),this.TargetQueue.push(e)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(t){var e=this;this.TargetQueue.forEach(function(n,i){n.el===t&&(--n.childrenCount||(e._initListen(n.el,!1),e.TargetQueue.splice(i,1),n=null))})}},{key:"_initListen",value:function(t,e){var n=this;this.options.ListenEvents.forEach(function(i){return w[e?"on":"off"](t,i,n.lazyLoadHandler)})}},{key:"_initEvent",value:function(){var t=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(e,n){t.Event.listeners[e].push(n)},this.$once=function(e,n){var i=t;t.$on(e,function t(){i.$off(e,t),n.apply(i,arguments)})},this.$off=function(e,n){n?r(t.Event.listeners[e],n):t.Event.listeners[e]=[]},this.$emit=function(e,n,i){t.Event.listeners[e].forEach(function(t){return t(n,i)})}}},{key:"_lazyLoadHandler",value:function(){var t=this;this.ListenerQueue.forEach(function(e,n){e.state.loaded||e.checkInView()&&e.load(function(){!e.error&&e.loaded&&t.ListenerQueue.splice(n,1)})})}},{key:"_initIntersectionObserver",value:function(){var t=this;m&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach(function(e){t._observer.observe(e.el)}))}},{key:"_observerHandler",value:function(t,e){var n=this;t.forEach(function(t){t.isIntersecting&&n.ListenerQueue.forEach(function(e){if(e.el===t.target){if(e.state.loaded)return n._observer.unobserve(e.el);e.load()}})})}},{key:"_elRenderer",value:function(t,e,n){if(t.el){var i=t.el,r=t.bindType,s=void 0;switch(e){case"loading":s=t.loading;break;case"error":s=t.error;break;default:s=t.src}if(r?i.style[r]='url("'+s+'")':i.getAttribute("src")!==s&&i.setAttribute("src",s),i.setAttribute("lazy",e),this.$emit(e,t,n),this.options.adapter[e]&&this.options.adapter[e](t,this.options),this.options.dispatchEvent){var a=new y(e,{detail:t});i.dispatchEvent(a)}}}},{key:"_valueFormatter",value:function(t){var e=t,n=this.options.loading,i=this.options.error;return function(t){return null!==t&&"object"===(void 0===t?"undefined":u(t))}(t)&&(t.src||this.options.silent||console.error("Vue Lazyload warning: miss src with "+t),e=t.src,n=t.loading||this.options.loading,i=t.error||this.options.error),{src:e,loading:n,error:i}}}]),e}()},F=function(){function t(e){var n=e.lazy;l(this,t),this.lazy=n,n.lazyContainerMananger=this,this._queue=[]}return c(t,[{key:"bind",value:function(t,e,n){var i=new Q({el:t,binding:e,vnode:n,lazy:this.lazy});this._queue.push(i)}},{key:"update",value:function(t,e,n){var i=a(this._queue,function(e){return e.el===t});i&&i.update({el:t,binding:e,vnode:n})}},{key:"unbind",value:function(t,e,n){var i=a(this._queue,function(e){return e.el===t});i&&(i.clear(),r(this._queue,i))}}]),t}(),O={selector:"img"},Q=function(){function t(e){var n=e.el,i=e.binding,r=e.vnode,s=e.lazy;l(this,t),this.el=null,this.vnode=r,this.binding=i,this.options={},this.lazy=s,this._queue=[],this.update({el:n,binding:i})}return c(t,[{key:"update",value:function(t){var e=this,n=t.el,i=t.binding;this.el=n,this.options=p({},O,i.value),this.getImgs().forEach(function(t){e.lazy.add(t,p({},e.binding,{value:{src:t.dataset.src,error:t.dataset.error,loading:t.dataset.loading}}),e.vnode)})}},{key:"getImgs",value:function(){return function(t){for(var e=t.length,n=[],i=0;i<e;i++)n.push(t[i]);return n}(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var t=this;this.getImgs().forEach(function(e){return t.lazy.remove(e)}),this.vnode=null,this.binding=null,this.lazy=null}}]),t}();return{install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new(I(t))(e),i=new F({lazy:n}),r="2"===t.version.split(".")[0];t.prototype.$Lazyload=n,e.lazyComponent&&t.component("lazy-component",function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return!1===this.show?t(this.tag):t(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),g&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)}}}}(n)),r?(t.directive("lazy",{bind:n.add.bind(n),update:n.update.bind(n),componentUpdated:n.lazyLoadHandler.bind(n),unbind:n.remove.bind(n)}),t.directive("lazy-container",{bind:i.bind.bind(i),update:i.update.bind(i),unbind:i.unbind.bind(i)})):(t.directive("lazy",{bind:n.lazyLoadHandler.bind(n),update:function(t,e){p(this.vm.$refs,this.vm.$els),n.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){n.remove(this.el)}}),t.directive("lazy-container",{update:function(t,e){i.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){i.unbind(this.el)}}))}}},t.exports=i()},cWxy:function(t,e,n){"use strict";var i=n("dVOP");function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new i(t),e(n.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t;return{token:new r(function(e){t=e}),cancel:t}},t.exports=r},ciWi:function(t,e,n){var i=n("awF4"),r=t.exports={WebVTT:n("dlST"),VTTCue:n("aj7g"),VTTRegion:n("DvOw")};i.vttjs=r,i.WebVTT=r.WebVTT;var s=r.VTTCue,a=r.VTTRegion,o=i.VTTCue,u=i.VTTRegion;r.shim=function(){i.VTTCue=s,i.VTTRegion=a},r.restore=function(){i.VTTCue=o,i.VTTRegion=u},i.VTTCue||r.shim()},dIwP:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},dNDb:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},dSzd:function(t,e,n){var i=n("e8AB")("wks"),r=n("3Eo+"),s=n("7KvD").Symbol,a="function"==typeof s;(t.exports=function(t){return i[t]||(i[t]=a&&s[t]||(a?s:r)("Symbol."+t))}).store=i},dVOP:function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},dY0y:function(t,e,n){var i=n("dSzd")("iterator"),r=!1;try{var s=[7][i]();s.return=function(){r=!0},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var s=[7],a=s[i]();a.next=function(){return{done:n=!0}},s[i]=function(){return a},t(s)}catch(t){}return n}},dkdY:function(t,e){function n(e,i){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,n(e,i)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},dlST:function(t,e,n){var i=n("dwO+"),r=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function s(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function a(t){function e(t,e,n,i){return 3600*(0|t)+60*(0|e)+(0|n)+(0|i)/1e3}var n=t.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function o(){this.values=r(null)}function u(t,e,n,i){var r=i?t.split(i):[t];for(var s in r)if("string"==typeof r[s]){var a=r[s].split(n);if(2===a.length)e(a[0],a[1])}}function l(t,e,n){var i=t;function r(){var e=a(t);if(null===e)throw new s(s.Errors.BadTimeStamp,"Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function l(){t=t.replace(/^\s+/,"")}if(l(),e.startTime=r(),l(),"--\x3e"!==t.substr(0,3))throw new s(s.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.substr(3),l(),e.endTime=r(),l(),function(t,e){var i=new o;u(t,function(t,e){switch(t){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===e){i.set(t,n[r].region);break}break;case"vertical":i.alt(t,e,["rl","lr"]);break;case"line":var s=e.split(","),a=s[0];i.integer(t,a),i.percent(t,a)&&i.set("snapToLines",!1),i.alt(t,a,["auto"]),2===s.length&&i.alt("lineAlign",s[1],["start","center","end"]);break;case"position":s=e.split(","),i.percent(t,s[0]),2===s.length&&i.alt("positionAlign",s[1],["start","center","end"]);break;case"size":i.percent(t,e);break;case"align":i.alt(t,e,["start","center","end","left","right"])}},/:/,/\s/),e.region=i.get("region",null),e.vertical=i.get("vertical","");try{e.line=i.get("line","auto")}catch(t){}e.lineAlign=i.get("lineAlign","start"),e.snapToLines=i.get("snapToLines",!0),e.size=i.get("size",100);try{e.align=i.get("align","center")}catch(t){e.align=i.get("align","middle")}try{e.position=i.get("position","auto")}catch(t){e.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}s.prototype=r(Error.prototype),s.prototype.constructor=s,s.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var i=0;i<n.length;++i)if(e===n[i]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>=0&&e<=100)&&(this.set(t,e),!0)}};var c=i.createElement&&i.createElement("textarea"),A={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)"},d={v:"title",lang:"lang"},f={rt:"ruby"};function p(t,e){function n(){if(!e)return null;var t,n=e.match(/^([^<]*)(<[^>]*>?)?/);return t=n[1]?n[1]:n[2],e=e.substr(t.length),t}function i(t,e){return!f[e.localName]||f[e.localName]===t.localName}function r(e,n){var i=A[e];if(!i)return null;var r=t.document.createElement(i),s=d[e];return s&&n&&(r[s]=n.trim()),r}for(var s,o,u=t.document.createElement("div"),l=u,p=[];null!==(s=n());)if("<"!==s[0])l.appendChild(t.document.createTextNode((o=s,c.innerHTML=o,o=c.textContent,c.textContent="",o)));else{if("/"===s[1]){p.length&&p[p.length-1]===s.substr(2).replace(">","")&&(p.pop(),l=l.parentNode);continue}var g,m=a(s.substr(1,s.length-2));if(m){g=t.document.createProcessingInstruction("timestamp",m),l.appendChild(g);continue}var v=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(!(g=r(v[1],v[3])))continue;if(!i(l,g))continue;if(v[2]){var y=v[2].split(".");y.forEach(function(t){var e=/^bg_/.test(t),n=e?t.slice(3):t;if(h.hasOwnProperty(n)){var i=e?"background-color":"color",r=h[n];g.style[i]=r}}),g.className=y.join(" ")}p.push(v[1]),l.appendChild(g),l=g}return u}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function m(t){for(var e=0;e<g.length;e++){var n=g[e];if(t>=n[0]&&t<=n[1])return!0}return!1}function v(){}function y(t,e,n){v.call(this),this.cue=e,this.cueDiv=p(t,e.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:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=t.document.createElement("div"),i={direction:function(t){var e=[],n="";if(!t||!t.childNodes)return"ltr";function i(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}function r(t){if(!t||!t.length)return null;var e=t.pop(),n=e.textContent||e.innerText;if(n){var s=n.match(/^.*(\n|\r)/);return s?(t.length=0,s[0]):n}return"ruby"===e.tagName?r(t):e.childNodes?(i(t,e),r(t)):void 0}for(i(e,t);n=r(e);)for(var s=0;s<n.length;s++)if(m(n.charCodeAt(s)))return"rtl";return"ltr"}(this.cueDiv),writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===e.align?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var r=0;switch(e.positionAlign){case"start":r=e.position;break;case"center":r=e.position-e.size/2;break;case"end":r=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function b(t){var e,n,i,r;if(t.div){n=t.div.offsetHeight,i=t.div.offsetWidth,r=t.div.offsetTop;var s=(s=t.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();t=t.div.getBoundingClientRect(),e=s?Math.max(s[0]&&s[0].height||0,t.height/s.length):0}this.left=t.left,this.right=t.right,this.top=t.top||r,this.height=t.height||n,this.bottom=t.bottom||r+(t.height||n),this.width=t.width||i,this.lineHeight=void 0!==e?e:t.lineHeight}function _(t,e,n,i){var r=new b(e),s=e.cue,a=function(t){if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,i=0,r=0;r<n.length&&n[r]!==e;r++)"showing"===n[r].mode&&i++;return-1*++i}(s),o=[];if(s.snapToLines){var u;switch(s.vertical){case"":o=["+y","-y"],u="height";break;case"rl":o=["+x","-x"],u="width";break;case"lr":o=["-x","+x"],u="width"}var l=r.lineHeight,c=l*Math.round(a),A=n[u]+l,h=o[0];Math.abs(c)>A&&(c=c<0?-1:1,c*=Math.ceil(A/l)*l),a<0&&(c+=""===s.vertical?n.height:n.width,o=o.reverse()),r.move(h,c)}else{var d=r.lineHeight/n.height*100;switch(s.lineAlign){case"center":a-=d/2;break;case"end":a-=d}switch(s.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}o=["+y","-x","+x","-y"],r=new b(e)}var f=function(t,e){for(var r,s=new b(t),a=1,o=0;o<e.length;o++){for(;t.overlapsOppositeAxis(n,e[o])||t.within(n)&&t.overlapsAny(i);)t.move(e[o]);if(t.within(n))return t;var u=t.intersectPercentage(n);a>u&&(r=new b(t),a=u),t=new b(s)}return r||s}(r,o);e.move(f.toCSSCompatValues(n))}function w(){}v.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},v.prototype.formatStyle=function(t,e){return 0===t?0:t+e},y.prototype=r(v.prototype),y.prototype.constructor=y,b.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},b.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},b.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},b.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},b.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},b.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},b.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},b.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,i=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||i,height:t.height||e,bottom:t.bottom||i+(t.height||e),width:t.width||n}},w.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},w.convertCueToDOMTree=function(t,e){return t&&e?p(t,e):null};w.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=t.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",n.appendChild(i),function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){var r=[],s=b.getSimpleBoxPosition(i),a={font:Math.round(.05*s.height*100)/100+"px sans-serif"};!function(){for(var n,o,u=0;u<e.length;u++)o=e[u],n=new y(t,o,a),i.appendChild(n.div),_(0,n,s,r),o.displayState=n.div,r.push(b.getSimpleBoxPosition(n))}()}else for(var o=0;o<e.length;o++)i.appendChild(e[o].displayState)},w.Parser=function(t,e,n){n||(n=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},w.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof s))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){var e=this;function n(){for(var t=e.buffer,n=0;n<t.length&&"\r"!==t[n]&&"\n"!==t[n];)++n;var i=t.substr(0,n);return"\r"===t[n]&&++n,"\n"===t[n]&&++n,e.buffer=t.substr(n),i}function i(t){t.match(/X-TIMESTAMP-MAP/)?u(t,function(t,n){switch(t){case"X-TIMESTAMP-MAP":i=n,r=new o,u(i,function(t,e){switch(t){case"MPEGT":r.integer(t+"S",e);break;case"LOCA":r.set(t+"L",a(e))}},/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:r.get("MPEGTS"),LOCAL:r.get("LOCAL")})}var i,r},/=/):u(t,function(t,n){switch(t){case"Region":!function(t){var n=new o;if(u(t,function(t,e){switch(t){case"id":n.set(t,e);break;case"width":n.percent(t,e);break;case"lines":n.integer(t,e);break;case"regionanchor":case"viewportanchor":var i=e.split(",");if(2!==i.length)break;var r=new o;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(t+"X",r.get("x")),n.set(t+"Y",r.get("y"));break;case"scroll":n.alt(t,e,["up"])}},/=/,/\s/),n.has("id")){var i=new(e.vttjs.VTTRegion||e.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",""),e.onregion&&e.onregion(i),e.regionList.push({id:n.get("id"),region:i})}}(n)}},/:/)}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var r;if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var c=(r=n()).match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new s(s.Errors.BadSignature);e.state="HEADER"}for(var A=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(A?A=!1:r=n(),e.state){case"HEADER":/:/.test(r)?i(r):r||(e.state="ID");continue;case"NOTE":r||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){e.state="NOTE";break}if(!r)continue;e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,"");try{e.cue.align="center"}catch(t){e.cue.align="middle"}if(e.state="CUE",-1===r.indexOf("--\x3e")){e.cue.id=r;continue}case"CUE":try{l(r,e.cue,e.regionList)}catch(t){e.reportOrThrowError(t),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var h=-1!==r.indexOf("--\x3e");if(!r||h&&(A=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+="\n"),e.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(e.state="ID");continue}}}catch(t){e.reportOrThrowError(t),"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new s(s.Errors.BadSignature)}catch(t){this.reportOrThrowError(t)}return this.onflush&&this.onflush(),this}},t.exports=w},"dwO+":function(t,e,n){(function(e){var i,r=void 0!==e?e:"undefined"!=typeof window?window:{},s=n(0);"undefined"!=typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"])||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=s),t.exports=i}).call(e,n("DuR2"))},e6n0:function(t,e,n){var i=n("evD5").f,r=n("D2L2"),s=n("dSzd")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,s)&&i(t,s,{configurable:!0,value:e})}},e8AB:function(t,e,n){var i=n("FeBl"),r=n("7KvD"),s=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("O4g8")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},eMjc:function(t,e,n){
- /*!
- * html2canvas 1.0.0-rc.4 <https://html2canvas.hertzen.com>
- * Copyright (c) 2019 Niklas von Hertzen <https://hertzen.com>
- * Released under MIT License
- */var i;i=function(){"use strict";
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};function e(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var n=function(){return(n=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function i(t,e,n,i){return new(n||(n=Promise))(function(r,s){function a(t){try{u(i.next(t))}catch(t){s(t)}}function o(t){try{u(i.throw(t))}catch(t){s(t)}}function u(t){t.done?r(t.value):new n(function(e){e(t.value)}).then(a,o)}u((i=i.apply(t,e||[])).next())})}function r(t,e){var n,i,r,s,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}}for(var s=function(){function t(t,e,n,i){this.left=t,this.top=e,this.width=n,this.height=i}return t.prototype.add=function(e,n,i,r){return new t(this.left+e,this.top+n,this.width+i,this.height+r)},t.fromClientRect=function(e){return new t(e.left,e.top,e.width,e.height)},t}(),a=function(t){return s.fromClientRect(t.getBoundingClientRect())},o=function(t){for(var e=[],n=0,i=t.length;n<i;){var r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var s=t.charCodeAt(n++);56320==(64512&s)?e.push(((1023&r)<<10)+(1023&s)+65536):(e.push(r),n--)}else e.push(r)}return e},u=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var i=[],r=-1,s="";++r<n;){var a=t[r];a<=65535?i.push(a):(a-=65536,i.push(55296+(a>>10),a%1024+56320)),(r+1===n||i.length>16384)&&(s+=String.fromCharCode.apply(String,i),i.length=0)}return s},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c="undefined"==typeof Uint8Array?[]:new Uint8Array(256),A=0;A<l.length;A++)c[l.charCodeAt(A)]=A;var h,d=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},f=function(){function t(t,e,n,i,r,s){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=i,this.index=r,this.data=s}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),p=10,g=13,m=15,v=17,y=18,b=19,_=20,w=21,B=22,C=24,T=25,E=26,S=27,k=28,x=30,U=32,I=33,F=34,O=35,Q=37,N=38,L=39,D=40,P=42,R="!",H=function(t){var e,n,i,r=function(t){var e,n,i,r,s,a=.75*t.length,o=t.length,u=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),A=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<o;e+=4)n=c[t.charCodeAt(e)],i=c[t.charCodeAt(e+1)],r=c[t.charCodeAt(e+2)],s=c[t.charCodeAt(e+3)],A[u++]=n<<2|i>>4,A[u++]=(15&i)<<4|r>>2,A[u++]=(3&r)<<6|63&s;return l}(t),s=Array.isArray(r)?function(t){for(var e=t.length,n=[],i=0;i<e;i+=4)n.push(t[i+3]<<24|t[i+2]<<16|t[i+1]<<8|t[i]);return n}(r):new Uint32Array(r),a=Array.isArray(r)?function(t){for(var e=t.length,n=[],i=0;i<e;i+=2)n.push(t[i+1]<<8|t[i]);return n}(r):new Uint16Array(r),o=d(a,12,s[4]/2),u=2===s[5]?d(a,(24+s[4])/2):(e=s,n=Math.ceil((24+s[4])/4),e.slice?e.slice(n,i):new Uint32Array(Array.prototype.slice.call(e,n,i)));return new f(s[0],s[1],s[2],s[3],o,u)}("KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"),M=[x,36],K=[1,2,3,5],j=[p,8],V=[S,E],z=K.concat(j),$=[N,L,D,F,O],W=[m,g],G=function(t,e,n,i){var r=i[n];if(Array.isArray(t)?-1!==t.indexOf(r):t===r)for(var s=n;s<=i.length;){if((u=i[++s])===e)return!0;if(u!==p)break}if(r===p)for(s=n;s>0;){var a=i[--s];if(Array.isArray(t)?-1!==t.indexOf(a):t===a)for(var o=n;o<=i.length;){var u;if((u=i[++o])===e)return!0;if(u!==p)break}if(a!==p)break}return!1},X=function(t,e){for(var n=t;n>=0;){var i=e[n];if(i!==p)return i;n--}return 0},q=function(t,e,n,i,r){if(0===n[i])return"×";var s=i-1;if(Array.isArray(r)&&!0===r[s])return"×";var a=s-1,o=s+1,u=e[s],l=a>=0?e[a]:0,c=e[o];if(2===u&&3===c)return"×";if(-1!==K.indexOf(u))return R;if(-1!==K.indexOf(c))return"×";if(-1!==j.indexOf(c))return"×";if(8===X(s,e))return"÷";if(11===H.get(t[s])&&(c===Q||c===U||c===I))return"×";if(7===u||7===c)return"×";if(9===u)return"×";if(-1===[p,g,m].indexOf(u)&&9===c)return"×";if(-1!==[v,y,b,C,k].indexOf(c))return"×";if(X(s,e)===B)return"×";if(G(23,B,s,e))return"×";if(G([v,y],w,s,e))return"×";if(G(12,12,s,e))return"×";if(u===p)return"÷";if(23===u||23===c)return"×";if(16===c||16===u)return"÷";if(-1!==[g,m,w].indexOf(c)||14===u)return"×";if(36===l&&-1!==W.indexOf(u))return"×";if(u===k&&36===c)return"×";if(c===_&&-1!==M.concat(_,b,T,Q,U,I).indexOf(u))return"×";if(-1!==M.indexOf(c)&&u===T||-1!==M.indexOf(u)&&c===T)return"×";if(u===S&&-1!==[Q,U,I].indexOf(c)||-1!==[Q,U,I].indexOf(u)&&c===E)return"×";if(-1!==M.indexOf(u)&&-1!==V.indexOf(c)||-1!==V.indexOf(u)&&-1!==M.indexOf(c))return"×";if(-1!==[S,E].indexOf(u)&&(c===T||-1!==[B,m].indexOf(c)&&e[o+1]===T)||-1!==[B,m].indexOf(u)&&c===T||u===T&&-1!==[T,k,C].indexOf(c))return"×";if(-1!==[T,k,C,v,y].indexOf(c))for(var A=s;A>=0;){if((h=e[A])===T)return"×";if(-1===[k,C].indexOf(h))break;A--}if(-1!==[S,E].indexOf(c))for(A=-1!==[v,y].indexOf(u)?a:s;A>=0;){var h;if((h=e[A])===T)return"×";if(-1===[k,C].indexOf(h))break;A--}if(N===u&&-1!==[N,L,F,O].indexOf(c)||-1!==[L,F].indexOf(u)&&-1!==[L,D].indexOf(c)||-1!==[D,O].indexOf(u)&&c===D)return"×";if(-1!==$.indexOf(u)&&-1!==[_,E].indexOf(c)||-1!==$.indexOf(c)&&u===S)return"×";if(-1!==M.indexOf(u)&&-1!==M.indexOf(c))return"×";if(u===C&&-1!==M.indexOf(c))return"×";if(-1!==M.concat(T).indexOf(u)&&c===B||-1!==M.concat(T).indexOf(c)&&u===y)return"×";if(41===u&&41===c){for(var d=n[s],f=1;d>0&&41===e[--d];)f++;if(f%2!=0)return"×"}return u===U&&c===I?"×":"÷"},Y=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=function(t,e){void 0===e&&(e="strict");var n=[],i=[],r=[];return t.forEach(function(t,s){var a=H.get(t);if(a>50?(r.push(!0),a-=50):r.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return i.push(s),n.push(16);if(4===a||11===a){if(0===s)return i.push(s),n.push(x);var o=n[s-1];return-1===z.indexOf(o)?(i.push(i[s-1]),n.push(o)):(i.push(s),n.push(x))}return i.push(s),31===a?n.push("strict"===e?w:Q):a===P?n.push(x):29===a?n.push(x):43===a?t>=131072&&t<=196605||t>=196608&&t<=262141?n.push(Q):n.push(x):void n.push(a)}),[i,n,r]}(t,e.lineBreak),i=n[0],r=n[1],s=n[2];return"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(r=r.map(function(t){return-1!==[T,x,P].indexOf(t)?Q:t})),[i,r,"keep-all"===e.wordBreak?s.map(function(e,n){return e&&t[n]>=19968&&t[n]<=40959}):void 0]},J=function(){function t(t,e,n,i){this.codePoints=t,this.required=e===R,this.start=n,this.end=i}return t.prototype.slice=function(){return u.apply(void 0,this.codePoints.slice(this.start,this.end))},t}();!function(t){t[t.STRING_TOKEN=0]="STRING_TOKEN",t[t.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",t[t.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",t[t.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",t[t.COMMA_TOKEN=4]="COMMA_TOKEN",t[t.HASH_TOKEN=5]="HASH_TOKEN",t[t.DELIM_TOKEN=6]="DELIM_TOKEN",t[t.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",t[t.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",t[t.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",t[t.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",t[t.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",t[t.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",t[t.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",t[t.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",t[t.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",t[t.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",t[t.NUMBER_TOKEN=17]="NUMBER_TOKEN",t[t.FUNCTION=18]="FUNCTION",t[t.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",t[t.IDENT_TOKEN=20]="IDENT_TOKEN",t[t.COLUMN_TOKEN=21]="COLUMN_TOKEN",t[t.URL_TOKEN=22]="URL_TOKEN",t[t.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",t[t.CDC_TOKEN=24]="CDC_TOKEN",t[t.CDO_TOKEN=25]="CDO_TOKEN",t[t.COLON_TOKEN=26]="COLON_TOKEN",t[t.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",t[t.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",t[t.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",t[t.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",t[t.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",t[t.EOF_TOKEN=32]="EOF_TOKEN"}(h||(h={}));var Z=function(t){return t>=48&&t<=57},tt=function(t){return Z(t)||t>=65&&t<=70||t>=97&&t<=102},et=function(t){return 10===t||9===t||32===t},nt=function(t){return function(t){return function(t){return t>=97&&t<=122}(t)||function(t){return t>=65&&t<=90}(t)}(t)||function(t){return t>=128}(t)||95===t},it=function(t){return nt(t)||Z(t)||45===t},rt=function(t){return t>=0&&t<=8||11===t||t>=14&&t<=31||127===t},st=function(t,e){return 92===t&&10!==e},at=function(t,e,n){return 45===t?nt(e)||st(e,n):!!nt(t)||!(92!==t||!st(t,e))},ot=function(t,e,n){return 43===t||45===t?!!Z(e)||46===e&&Z(n):Z(46===t?e:t)},ut={type:h.LEFT_PARENTHESIS_TOKEN},lt={type:h.RIGHT_PARENTHESIS_TOKEN},ct={type:h.COMMA_TOKEN},At={type:h.SUFFIX_MATCH_TOKEN},ht={type:h.PREFIX_MATCH_TOKEN},dt={type:h.COLUMN_TOKEN},ft={type:h.DASH_MATCH_TOKEN},pt={type:h.INCLUDE_MATCH_TOKEN},gt={type:h.LEFT_CURLY_BRACKET_TOKEN},mt={type:h.RIGHT_CURLY_BRACKET_TOKEN},vt={type:h.SUBSTRING_MATCH_TOKEN},yt={type:h.BAD_URL_TOKEN},bt={type:h.BAD_STRING_TOKEN},_t={type:h.CDO_TOKEN},wt={type:h.CDC_TOKEN},Bt={type:h.COLON_TOKEN},Ct={type:h.SEMICOLON_TOKEN},Tt={type:h.LEFT_SQUARE_BRACKET_TOKEN},Et={type:h.RIGHT_SQUARE_BRACKET_TOKEN},St={type:h.WHITESPACE_TOKEN},kt={type:h.EOF_TOKEN},xt=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(o(t))},t.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==kt;)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(it(e)||st(n,i)){var r=at(e,n,i)?2:1,s=this.consumeName();return{type:h.HASH_TOKEN,value:s,flags:r}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),At;break;case 39:return this.consumeStringToken(39);case 40:return ut;case 41:return lt;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),vt;break;case 43:if(ot(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 44:return ct;case 45:var a=t,o=this.peekCodePoint(0),l=this.peekCodePoint(1);if(ot(a,o,l))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(at(a,o,l))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(45===o&&62===l)return this.consumeCodePoint(),this.consumeCodePoint(),wt;break;case 46:if(ot(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(42===c&&47===(c=this.consumeCodePoint()))return this.consumeToken();if(-1===c)return this.consumeToken()}break;case 58:return Bt;case 59:return Ct;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),_t;break;case 64:var A=this.peekCodePoint(0),d=this.peekCodePoint(1),f=this.peekCodePoint(2);if(at(A,d,f)){s=this.consumeName();return{type:h.AT_KEYWORD_TOKEN,value:s}}break;case 91:return Tt;case 92:if(st(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case 93:return Et;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ht;break;case 123:return gt;case 125:return mt;case 117:case 85:var p=this.peekCodePoint(0),g=this.peekCodePoint(1);return 43!==p||!tt(g)&&63!==g||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ft;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),dt;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),pt;break;case-1:return kt}return et(t)?(this.consumeWhiteSpace(),St):Z(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):nt(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:h.DELIM_TOKEN,value:u(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return void 0===t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();tt(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;63===e&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n){var i=parseInt(u.apply(void 0,t.map(function(t){return 63===t?48:t})),16),r=parseInt(u.apply(void 0,t.map(function(t){return 63===t?70:t})),16);return{type:h.UNICODE_RANGE_TOKEN,start:i,end:r}}var s=parseInt(u.apply(void 0,t),16);if(45===this.peekCodePoint(0)&&tt(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var a=[];tt(e)&&a.length<6;)a.push(e),e=this.consumeCodePoint();r=parseInt(u.apply(void 0,a),16);return{type:h.UNICODE_RANGE_TOKEN,start:s,end:r}}return{type:h.UNICODE_RANGE_TOKEN,start:s,end:s}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:h.FUNCTION_TOKEN,value:t}):{type:h.IDENT_TOKEN,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:h.URL_TOKEN,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===h.STRING_TOKEN&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:h.URL_TOKEN,value:n.value}):(this.consumeBadUrlRemnants(),yt)}for(;;){var i=this.consumeCodePoint();if(-1===i||41===i)return{type:h.URL_TOKEN,value:u.apply(void 0,t)};if(et(i))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:h.URL_TOKEN,value:u.apply(void 0,t)}):(this.consumeBadUrlRemnants(),yt);if(34===i||39===i||40===i||rt(i))return this.consumeBadUrlRemnants(),yt;if(92===i){if(!st(i,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),yt;t.push(this.consumeEscapedCodePoint())}else t.push(i)}},t.prototype.consumeWhiteSpace=function(){for(;et(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(41===t||-1===t)return;st(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){for(var e="";t>0;){var n=Math.min(6e4,t);e+=u.apply(void 0,this._value.splice(0,n)),t-=n}return this._value.shift(),e},t.prototype.consumeStringToken=function(t){for(var e="",n=0;;){var i=this._value[n];if(-1===i||void 0===i||i===t)return e+=this.consumeStringSlice(n),{type:h.STRING_TOKEN,value:e};if(10===i)return this._value.splice(0,n),bt;if(92===i){var r=this._value[n+1];-1!==r&&void 0!==r&&(10===r?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):st(i,r)&&(e+=this.consumeStringSlice(n),e+=u(this.consumeEscapedCodePoint()),n=-1))}n++}},t.prototype.consumeNumber=function(){var t=[],e=4,n=this.peekCodePoint(0);for(43!==n&&45!==n||t.push(this.consumeCodePoint());Z(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(46===n&&Z(i))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;Z(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),i=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((69===n||101===n)&&((43===i||45===i)&&Z(r)||Z(i)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;Z(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[function(t){var e=0,n=1;43!==t[e]&&45!==t[e]||(45===t[e]&&(n=-1),e++);for(var i=[];Z(t[e]);)i.push(t[e++]);var r=i.length?parseInt(u.apply(void 0,i),10):0;46===t[e]&&e++;for(var s=[];Z(t[e]);)s.push(t[e++]);var a=s.length,o=a?parseInt(u.apply(void 0,s),10):0;69!==t[e]&&101!==t[e]||e++;var l=1;43!==t[e]&&45!==t[e]||(45===t[e]&&(l=-1),e++);for(var c=[];Z(t[e]);)c.push(t[e++]);var A=c.length?parseInt(u.apply(void 0,c),10):0;return n*(r+o*Math.pow(10,-a))*Math.pow(10,l*A)}(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],i=this.peekCodePoint(0),r=this.peekCodePoint(1),s=this.peekCodePoint(2);if(at(i,r,s)){var a=this.consumeName();return{type:h.DIMENSION_TOKEN,number:e,flags:n,unit:a}}return 37===i?(this.consumeCodePoint(),{type:h.PERCENTAGE_TOKEN,number:e,flags:n}):{type:h.NUMBER_TOKEN,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(tt(t)){for(var e=u(t);tt(this.peekCodePoint(0))&&e.length<6;)e+=u(this.consumeCodePoint());et(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return 0===n||function(t){return t>=55296&&t<=57343}(n)||n>1114111?65533:n}return-1===t?65533:t},t.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(it(e))t+=u(e);else{if(!st(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=u(this.consumeEscapedCodePoint())}}},t}(),Ut=function(){function t(t){this._tokens=t}return t.create=function(e){var n=new xt;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===h.WHITESPACE_TOKEN;)t=this.consumeToken();if(t.type===h.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(t.type===h.WHITESPACE_TOKEN);if(t.type===h.EOF_TOKEN)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(e.type===h.EOF_TOKEN)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case h.LEFT_CURLY_BRACKET_TOKEN:case h.LEFT_SQUARE_BRACKET_TOKEN:case h.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(t.type);case h.FUNCTION_TOKEN:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(n.type===h.EOF_TOKEN||Rt(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:h.FUNCTION};;){var n=this.consumeToken();if(n.type===h.EOF_TOKEN||n.type===h.RIGHT_PARENTHESIS_TOKEN)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return void 0===t?kt:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),It=function(t){return t.type===h.DIMENSION_TOKEN},Ft=function(t){return t.type===h.NUMBER_TOKEN},Ot=function(t){return t.type===h.IDENT_TOKEN},Qt=function(t){return t.type===h.STRING_TOKEN},Nt=function(t,e){return Ot(t)&&t.value===e},Lt=function(t){return t.type!==h.WHITESPACE_TOKEN},Dt=function(t){return t.type!==h.WHITESPACE_TOKEN&&t.type!==h.COMMA_TOKEN},Pt=function(t){var e=[],n=[];return t.forEach(function(t){if(t.type===h.COMMA_TOKEN){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(n),void(n=[])}t.type!==h.WHITESPACE_TOKEN&&n.push(t)}),n.length&&e.push(n),e},Rt=function(t,e){return e===h.LEFT_CURLY_BRACKET_TOKEN&&t.type===h.RIGHT_CURLY_BRACKET_TOKEN||(e===h.LEFT_SQUARE_BRACKET_TOKEN&&t.type===h.RIGHT_SQUARE_BRACKET_TOKEN||e===h.LEFT_PARENTHESIS_TOKEN&&t.type===h.RIGHT_PARENTHESIS_TOKEN)},Ht=function(t){return t.type===h.NUMBER_TOKEN||t.type===h.DIMENSION_TOKEN},Mt=function(t){return t.type===h.PERCENTAGE_TOKEN||Ht(t)},Kt=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},jt={type:h.NUMBER_TOKEN,number:0,flags:4},Vt={type:h.PERCENTAGE_TOKEN,number:50,flags:4},zt={type:h.PERCENTAGE_TOKEN,number:100,flags:4},$t=function(t,e,n){var i=t[0],r=t[1];return[Wt(i,e),Wt(void 0!==r?r:i,n)]},Wt=function(t,e){if(t.type===h.PERCENTAGE_TOKEN)return t.number/100*e;if(It(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},Gt=function(t){if(t.type===h.DIMENSION_TOKEN)switch(t.unit){case"deg":return Math.PI*t.number/180;case"grad":return Math.PI/200*t.number;case"rad":return t.number;case"turn":return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},Xt=function(t){return t.type===h.DIMENSION_TOKEN&&("deg"===t.unit||"grad"===t.unit||"rad"===t.unit||"turn"===t.unit)},qt=function(t){switch(t.filter(Ot).map(function(t){return t.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[jt,jt];case"to top":case"bottom":return Yt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[jt,zt];case"to right":case"left":return Yt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[zt,zt];case"to bottom":case"top":return Yt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[zt,jt];case"to left":case"right":return Yt(270)}return 0},Yt=function(t){return Math.PI*t/180},Jt=function(t){if(t.type===h.FUNCTION){var e=ue[t.name];if(void 0===e)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(t.values)}if(t.type===h.HASH_TOKEN){if(3===t.value.length){var n=t.value.substring(0,1),i=t.value.substring(1,2),r=t.value.substring(2,3);return ee(parseInt(n+n,16),parseInt(i+i,16),parseInt(r+r,16),1)}if(4===t.value.length){n=t.value.substring(0,1),i=t.value.substring(1,2),r=t.value.substring(2,3);var s=t.value.substring(3,4);return ee(parseInt(n+n,16),parseInt(i+i,16),parseInt(r+r,16),parseInt(s+s,16)/255)}if(6===t.value.length){n=t.value.substring(0,2),i=t.value.substring(2,4),r=t.value.substring(4,6);return ee(parseInt(n,16),parseInt(i,16),parseInt(r,16),1)}if(8===t.value.length){n=t.value.substring(0,2),i=t.value.substring(2,4),r=t.value.substring(4,6),s=t.value.substring(6,8);return ee(parseInt(n,16),parseInt(i,16),parseInt(r,16),parseInt(s,16)/255)}}if(t.type===h.IDENT_TOKEN){var a=le[t.value.toUpperCase()];if(void 0!==a)return a}return le.TRANSPARENT},Zt=function(t){return 0==(255&t)},te=function(t){var e=255&t,n=255&t>>8,i=255&t>>16,r=255&t>>24;return e<255?"rgba("+r+","+i+","+n+","+e/255+")":"rgb("+r+","+i+","+n+")"},ee=function(t,e,n,i){return(t<<24|e<<16|n<<8|Math.round(255*i)<<0)>>>0},ne=function(t,e){if(t.type===h.NUMBER_TOKEN)return t.number;if(t.type===h.PERCENTAGE_TOKEN){var n=3===e?1:255;return 3===e?t.number/100*n:Math.round(t.number/100*n)}return 0},ie=function(t){var e=t.filter(Dt);if(3===e.length){var n=e.map(ne),i=n[0],r=n[1],s=n[2];return ee(i,r,s,1)}if(4===e.length){var a=e.map(ne),o=(i=a[0],r=a[1],s=a[2],a[3]);return ee(i,r,s,o)}return 0};function re(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<.5?e:n<2/3?6*(e-t)*(2/3-n)+t:t}var se,ae,oe=function(t){var e=t.filter(Dt),n=e[0],i=e[1],r=e[2],s=e[3],a=(n.type===h.NUMBER_TOKEN?Yt(n.number):Gt(n))/(2*Math.PI),o=Mt(i)?i.number/100:0,u=Mt(r)?r.number/100:0,l=void 0!==s&&Mt(s)?Wt(s,1):1;if(0===o)return ee(255*u,255*u,255*u,1);var c=u<=.5?u*(o+1):u+o-u*o,A=2*u-c,d=re(A,c,a+1/3),f=re(A,c,a),p=re(A,c,a-1/3);return ee(255*d,255*f,255*p,l)},ue={hsl:oe,hsla:oe,rgb:ie,rgba:ie},le={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};!function(t){t[t.VALUE=0]="VALUE",t[t.LIST=1]="LIST",t[t.IDENT_VALUE=2]="IDENT_VALUE",t[t.TYPE_VALUE=3]="TYPE_VALUE",t[t.TOKEN_VALUE=4]="TOKEN_VALUE"}(se||(se={})),function(t){t[t.BORDER_BOX=0]="BORDER_BOX",t[t.PADDING_BOX=1]="PADDING_BOX",t[t.CONTENT_BOX=2]="CONTENT_BOX"}(ae||(ae={}));var ce,Ae={name:"background-clip",initialValue:"border-box",prefix:!1,type:se.LIST,parse:function(t){return t.map(function(t){if(Ot(t))switch(t.value){case"padding-box":return ae.PADDING_BOX;case"content-box":return ae.CONTENT_BOX}return ae.BORDER_BOX})}},he={name:"background-color",initialValue:"transparent",prefix:!1,type:se.TYPE_VALUE,format:"color"},de=function(t){var e=Jt(t[0]),n=t[1];return n&&Mt(n)?{color:e,stop:n}:{color:e,stop:null}},fe=function(t,e){var n=t[0],i=t[t.length-1];null===n.stop&&(n.stop=jt),null===i.stop&&(i.stop=zt);for(var r=[],s=0,a=0;a<t.length;a++){var o=t[a].stop;if(null!==o){var u=Wt(o,e);u>s?r.push(u):r.push(s),s=u}else r.push(null)}var l=null;for(a=0;a<r.length;a++){var c=r[a];if(null===c)null===l&&(l=a);else if(null!==l){for(var A=a-l,h=(c-r[l-1])/(A+1),d=1;d<=A;d++)r[l+d-1]=h*d;l=null}}return t.map(function(t,n){return{color:t.color,stop:Math.max(Math.min(1,r[n]/e),0)}})},pe=function(t,e,n){var i="number"==typeof t?t:function(t,e,n){var i=e/2,r=n/2,s=Wt(t[0],e)-i,a=r-Wt(t[1],n);return(Math.atan2(a,s)+2*Math.PI)%(2*Math.PI)}(t,e,n),r=Math.abs(e*Math.sin(i))+Math.abs(n*Math.cos(i)),s=e/2,a=n/2,o=r/2,u=Math.sin(i-Math.PI/2)*o,l=Math.cos(i-Math.PI/2)*o;return[r,s-l,s+l,a-u,a+u]},ge=function(t,e){return Math.sqrt(t*t+e*e)},me=function(t,e,n,i,r){return[[0,0],[0,e],[t,0],[t,e]].reduce(function(t,e){var s=e[0],a=e[1],o=ge(n-s,i-a);return(r?o<t.optimumDistance:o>t.optimumDistance)?{optimumCorner:e,optimumDistance:o}:t},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},ve=function(t){var e=Yt(180),n=[];return Pt(t).forEach(function(t,i){if(0===i){var r=t[0];if(r.type===h.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(r.value))return void(e=qt(t));if(Xt(r))return void(e=(Gt(r)+Yt(270))%Yt(360))}var s=de(t);n.push(s)}),{angle:e,stops:n,type:ce.LINEAR_GRADIENT}},ye=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},be=function(t,e,n,i,r){var s="http://www.w3.org/2000/svg",a=document.createElementNS(s,"svg"),o=document.createElementNS(s,"foreignObject");return a.setAttributeNS(null,"width",t.toString()),a.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",n.toString()),o.setAttributeNS(null,"y",i.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(o),o.appendChild(r),a},_e=function(t){return new Promise(function(e,n){var i=new Image;i.onload=function(){return e(i)},i.onerror=n,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))})},we={get SUPPORT_RANGE_BOUNDS(){var t=function(t){if(t.createRange){var e=t.createRange();if(e.getBoundingClientRect){var n=t.createElement("boundtest");n.style.height="123px",n.style.display="block",t.body.appendChild(n),e.selectNode(n);var i=e.getBoundingClientRect(),r=Math.round(i.height);if(t.body.removeChild(n),123===r)return!0}}return!1}(document);return Object.defineProperty(we,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=function(t){var e=new Image,n=t.createElement("canvas"),i=n.getContext("2d");if(!i)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(e,0,0),n.toDataURL()}catch(t){return!1}return!0}(document);return Object.defineProperty(we,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"==typeof Array.from&&"function"==typeof window.fetch?function(t){var e=t.createElement("canvas");e.width=100,e.height=100;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,100,100);var i=new Image,r=e.toDataURL();i.src=r;var s=be(100,100,0,0,i);return n.fillStyle="red",n.fillRect(0,0,100,100),_e(s).then(function(e){n.drawImage(e,0,0);var i=n.getImageData(0,0,100,100).data;n.fillStyle="red",n.fillRect(0,0,100,100);var s=t.createElement("div");return s.style.backgroundImage="url("+r+")",s.style.height="100px",ye(i)?_e(be(100,100,0,0,s)):Promise.reject(!1)}).then(function(t){return n.drawImage(t,0,0),ye(n.getImageData(0,0,100,100).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(we,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=void 0!==(new Image).crossOrigin;return Object.defineProperty(we,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(we,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(we,"SUPPORT_CORS_XHR",{value:t}),t}},Be=function(){function t(t){this.id=t,this.start=Date.now()}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(t)):this.info.apply(this,t)},t.prototype.getTime=function(){return Date.now()-this.start},t.create=function(e){t.instances[e]=new t(e)},t.destroy=function(e){delete t.instances[e]},t.getInstance=function(e){var n=t.instances[e];if(void 0===n)throw new Error("No logger instance found with id "+e);return n},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(t)):this.info.apply(this,t)},t.instances={},t}(),Ce=function(){function t(){}return t.create=function(e,n){return t._caches[e]=new Te(e,n)},t.destroy=function(e){delete t._caches[e]},t.open=function(e){var n=t._caches[e];if(void 0!==n)return n;throw new Error('Cache with key "'+e+'" not found')},t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t.getInstance=function(){var e=t._current;if(null===e)throw new Error("No cache instance attached");return e},t.attachInstance=function(e){t._current=e},t.detachInstance=function(){t._current=null},t._caches={},t._origin="about:blank",t._current=null,t}(),Te=function(){function t(t,e){this.id=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:Fe(t)||xe(t)?(this._cache[t]=this.loadImage(t),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return i(this,void 0,void 0,function(){var e,n,i,s,a=this;return r(this,function(r){switch(r.label){case 0:return e=Ce.isSameOrigin(t),n=!Ue(t)&&!0===this._options.useCORS&&we.SUPPORT_CORS_IMAGES&&!e,i=!Ue(t)&&!e&&"string"==typeof this._options.proxy&&we.SUPPORT_CORS_XHR&&!n,e||!1!==this._options.allowTaint||Ue(t)||i||n?(s=t,i?[4,this.proxy(s)]:[3,2]):[2];case 1:s=r.sent(),r.label=2;case 2:return Be.getInstance(this.id).debug("Added image "+t.substring(0,256)),[4,new Promise(function(t,e){var i=new Image;i.onload=function(){return t(i)},i.onerror=e,(Ie(s)||n)&&(i.crossOrigin="anonymous"),i.src=s,!0===i.complete&&setTimeout(function(){return t(i)},500),a._options.imageTimeout>0&&setTimeout(function(){return e("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,r.sent()]}})})},t.prototype.has=function(t){return void 0!==this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var i=t.substring(0,256);return new Promise(function(r,s){var a=we.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;if(o.onload=function(){if(200===o.status)if("text"===a)r(o.response);else{var t=new FileReader;t.addEventListener("load",function(){return r(t.result)},!1),t.addEventListener("error",function(t){return s(t)},!1),t.readAsDataURL(o.response)}else s("Failed to proxy resource "+i+" with status code "+o.status)},o.onerror=s,o.open("GET",n+"?url="+encodeURIComponent(t)+"&responseType="+a),"text"!==a&&o instanceof XMLHttpRequest&&(o.responseType=a),e._options.imageTimeout){var u=e._options.imageTimeout;o.timeout=u,o.ontimeout=function(){return s("Timed out ("+u+"ms) proxying "+i)}}o.send()})},t}(),Ee=/^data:image\/svg\+xml/i,Se=/^data:image\/.*;base64,/i,ke=/^data:image\/.*/i,xe=function(t){return we.SUPPORT_SVG_DRAWING||!Oe(t)},Ue=function(t){return ke.test(t)},Ie=function(t){return Se.test(t)},Fe=function(t){return"blob"===t.substr(0,4)},Oe=function(t){return"svg"===t.substr(-3).toLowerCase()||Ee.test(t)},Qe=function(t){var e=Ne.CIRCLE,n=Le.FARTHEST_CORNER,i=[],r=[];return Pt(t).forEach(function(t,s){var a=!0;if(0===s?a=t.reduce(function(t,e){if(Ot(e))switch(e.value){case"center":return r.push(Vt),!1;case"top":case"left":return r.push(jt),!1;case"right":case"bottom":return r.push(zt),!1}else if(Mt(e)||Ht(e))return r.push(e),!1;return t},a):1===s&&(a=t.reduce(function(t,i){if(Ot(i))switch(i.value){case"circle":return e=Ne.CIRCLE,!1;case"ellipse":return e=Ne.ELLIPSE,!1;case"contain":case"closest-side":return n=Le.CLOSEST_SIDE,!1;case"farthest-side":return n=Le.FARTHEST_SIDE,!1;case"closest-corner":return n=Le.CLOSEST_CORNER,!1;case"cover":case"farthest-corner":return n=Le.FARTHEST_CORNER,!1}else if(Ht(i)||Mt(i))return Array.isArray(n)||(n=[]),n.push(i),!1;return t},a)),a){var o=de(t);i.push(o)}}),{size:n,shape:e,stops:i,position:r,type:ce.RADIAL_GRADIENT}};!function(t){t[t.URL=0]="URL",t[t.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",t[t.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(ce||(ce={}));var Ne,Le;!function(t){t[t.CIRCLE=0]="CIRCLE",t[t.ELLIPSE=1]="ELLIPSE"}(Ne||(Ne={})),function(t){t[t.CLOSEST_SIDE=0]="CLOSEST_SIDE",t[t.FARTHEST_SIDE=1]="FARTHEST_SIDE",t[t.CLOSEST_CORNER=2]="CLOSEST_CORNER",t[t.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(Le||(Le={}));var De=function(t){if(t.type===h.URL_TOKEN){var e={url:t.value,type:ce.URL};return Ce.getInstance().addImage(t.value),e}if(t.type===h.FUNCTION){var n=Re[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(t.values)}throw new Error("Unsupported image type")};var Pe,Re={"linear-gradient":function(t){var e=Yt(180),n=[];return Pt(t).forEach(function(t,i){if(0===i){var r=t[0];if(r.type===h.IDENT_TOKEN&&"to"===r.value)return void(e=qt(t));if(Xt(r))return void(e=Gt(r))}var s=de(t);n.push(s)}),{angle:e,stops:n,type:ce.LINEAR_GRADIENT}},"-moz-linear-gradient":ve,"-ms-linear-gradient":ve,"-o-linear-gradient":ve,"-webkit-linear-gradient":ve,"radial-gradient":function(t){var e=Ne.CIRCLE,n=Le.FARTHEST_CORNER,i=[],r=[];return Pt(t).forEach(function(t,s){var a=!0;if(0===s){var o=!1;a=t.reduce(function(t,i){if(o)if(Ot(i))switch(i.value){case"center":return r.push(Vt),t;case"top":case"left":return r.push(jt),t;case"right":case"bottom":return r.push(zt),t}else(Mt(i)||Ht(i))&&r.push(i);else if(Ot(i))switch(i.value){case"circle":return e=Ne.CIRCLE,!1;case"ellipse":return e=Ne.ELLIPSE,!1;case"at":return o=!0,!1;case"closest-side":return n=Le.CLOSEST_SIDE,!1;case"cover":case"farthest-side":return n=Le.FARTHEST_SIDE,!1;case"contain":case"closest-corner":return n=Le.CLOSEST_CORNER,!1;case"farthest-corner":return n=Le.FARTHEST_CORNER,!1}else if(Ht(i)||Mt(i))return Array.isArray(n)||(n=[]),n.push(i),!1;return t},a)}if(a){var u=de(t);i.push(u)}}),{size:n,shape:e,stops:i,position:r,type:ce.RADIAL_GRADIENT}},"-moz-radial-gradient":Qe,"-ms-radial-gradient":Qe,"-o-radial-gradient":Qe,"-webkit-radial-gradient":Qe,"-webkit-gradient":function(t){var e=Yt(180),n=[],i=ce.LINEAR_GRADIENT,r=Ne.CIRCLE,s=Le.FARTHEST_CORNER;return Pt(t).forEach(function(t,e){var r=t[0];if(0===e){if(Ot(r)&&"linear"===r.value)return void(i=ce.LINEAR_GRADIENT);if(Ot(r)&&"radial"===r.value)return void(i=ce.RADIAL_GRADIENT)}if(r.type===h.FUNCTION)if("from"===r.name){var s=Jt(r.values[0]);n.push({stop:jt,color:s})}else if("to"===r.name)s=Jt(r.values[0]),n.push({stop:zt,color:s});else if("color-stop"===r.name){var a=r.values.filter(Dt);if(2===a.length){s=Jt(a[1]);var o=a[0];Ft(o)&&n.push({stop:{type:h.PERCENTAGE_TOKEN,number:100*o.number,flags:o.flags},color:s})}}}),i===ce.LINEAR_GRADIENT?{angle:(e+Yt(180))%Yt(360),stops:n,type:i}:{size:s,shape:r,stops:n,position:[],type:i}}},He={name:"background-image",initialValue:"none",type:se.LIST,prefix:!1,parse:function(t){if(0===t.length)return[];var e=t[0];return e.type===h.IDENT_TOKEN&&"none"===e.value?[]:t.filter(function(t){return Dt(t)&&function(t){return t.type!==h.FUNCTION||Re[t.name]}(t)}).map(De)}},Me={name:"background-origin",initialValue:"border-box",prefix:!1,type:se.LIST,parse:function(t){return t.map(function(t){if(Ot(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ke={name:"background-position",initialValue:"0% 0%",type:se.LIST,prefix:!1,parse:function(t){return Pt(t).map(function(t){return t.filter(Mt)}).map(Kt)}};!function(t){t[t.REPEAT=0]="REPEAT",t[t.NO_REPEAT=1]="NO_REPEAT",t[t.REPEAT_X=2]="REPEAT_X",t[t.REPEAT_Y=3]="REPEAT_Y"}(Pe||(Pe={}));var je,Ve={name:"background-repeat",initialValue:"repeat",prefix:!1,type:se.LIST,parse:function(t){return Pt(t).map(function(t){return t.filter(Ot).map(function(t){return t.value}).join(" ")}).map(ze)}},ze=function(t){switch(t){case"no-repeat":return Pe.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Pe.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Pe.REPEAT_Y;case"repeat":default:return Pe.REPEAT}};!function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"}(je||(je={}));var $e,We={name:"background-size",initialValue:"0",prefix:!1,type:se.LIST,parse:function(t){return Pt(t).map(function(t){return t.filter(Ge)})}},Ge=function(t){return Ot(t)||Mt(t)},Xe=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:se.TYPE_VALUE,format:"color"}},qe=Xe("top"),Ye=Xe("right"),Je=Xe("bottom"),Ze=Xe("left"),tn=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:se.LIST,parse:function(t){return Kt(t.filter(Mt))}}},en=tn("top-left"),nn=tn("top-right"),rn=tn("bottom-right"),sn=tn("bottom-left");!function(t){t[t.NONE=0]="NONE",t[t.SOLID=1]="SOLID"}($e||($e={}));var an,on=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:se.IDENT_VALUE,parse:function(t){switch(t){case"none":return $e.NONE}return $e.SOLID}}},un=on("top"),ln=on("right"),cn=on("bottom"),An=on("left"),hn=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:se.VALUE,prefix:!1,parse:function(t){return It(t)?t.number:0}}},dn=hn("top"),fn=hn("right"),pn=hn("bottom"),gn=hn("left"),mn={name:"color",initialValue:"transparent",prefix:!1,type:se.TYPE_VALUE,format:"color"},vn={name:"display",initialValue:"inline-block",prefix:!1,type:se.LIST,parse:function(t){return t.filter(Ot).reduce(function(t,e){return t|yn(e.value)},0)}},yn=function(t){switch(t){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};!function(t){t[t.NONE=0]="NONE",t[t.LEFT=1]="LEFT",t[t.RIGHT=2]="RIGHT",t[t.INLINE_START=3]="INLINE_START",t[t.INLINE_END=4]="INLINE_END"}(an||(an={}));var bn,_n={name:"float",initialValue:"none",prefix:!1,type:se.IDENT_VALUE,parse:function(t){switch(t){case"left":return an.LEFT;case"right":return an.RIGHT;case"inline-start":return an.INLINE_START;case"inline-end":return an.INLINE_END}return an.NONE}},wn={name:"letter-spacing",initialValue:"0",prefix:!1,type:se.VALUE,parse:function(t){return t.type===h.IDENT_TOKEN&&"normal"===t.value?0:t.type===h.NUMBER_TOKEN?t.number:t.type===h.DIMENSION_TOKEN?t.number:0}};!function(t){t.NORMAL="normal",t.STRICT="strict"}(bn||(bn={}));var Bn,Cn={name:"line-break",initialValue:"normal",prefix:!1,type:se.IDENT_VALUE,parse:function(t){switch(t){case"strict":return bn.STRICT;case"normal":default:return bn.NORMAL}}},Tn={name:"line-height",initialValue:"normal",prefix:!1,type:se.TOKEN_VALUE},En={name:"list-style-image",initialValue:"none",type:se.VALUE,prefix:!1,parse:function(t){return t.type===h.IDENT_TOKEN&&"none"===t.value?null:De(t)}};!function(t){t[t.INSIDE=0]="INSIDE",t[t.OUTSIDE=1]="OUTSIDE"}(Bn||(Bn={}));var Sn,kn={name:"list-style-position",initialValue:"outside",prefix:!1,type:se.IDENT_VALUE,parse:function(t){switch(t){case"inside":return Bn.INSIDE;case"outside":default:return Bn.OUTSIDE}}};!function(t){t[t.NONE=-1]="NONE",t[t.DISC=0]="DISC",t[t.CIRCLE=1]="CIRCLE",t[t.SQUARE=2]="SQUARE",t[t.DECIMAL=3]="DECIMAL",t[t.CJK_DECIMAL=4]="CJK_DECIMAL",t[t.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",t[t.LOWER_ROMAN=6]="LOWER_ROMAN",t[t.UPPER_ROMAN=7]="UPPER_ROMAN",t[t.LOWER_GREEK=8]="LOWER_GREEK",t[t.LOWER_ALPHA=9]="LOWER_ALPHA",t[t.UPPER_ALPHA=10]="UPPER_ALPHA",t[t.ARABIC_INDIC=11]="ARABIC_INDIC",t[t.ARMENIAN=12]="ARMENIAN",t[t.BENGALI=13]="BENGALI",t[t.CAMBODIAN=14]="CAMBODIAN",t[t.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",t[t.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",t[t.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",t[t.DEVANAGARI=18]="DEVANAGARI",t[t.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",t[t.GEORGIAN=20]="GEORGIAN",t[t.GUJARATI=21]="GUJARATI",t[t.GURMUKHI=22]="GURMUKHI",t[t.HEBREW=22]="HEBREW",t[t.HIRAGANA=23]="HIRAGANA",t[t.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",t[t.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",t[t.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",t[t.KANNADA=27]="KANNADA",t[t.KATAKANA=28]="KATAKANA",t[t.KATAKANA_IROHA=29]="KATAKANA_IROHA",t[t.KHMER=30]="KHMER",t[t.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",t[t.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",t[t.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",t[t.LAO=34]="LAO",t[t.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",t[t.MALAYALAM=36]="MALAYALAM",t[t.MONGOLIAN=37]="MONGOLIAN",t[t.MYANMAR=38]="MYANMAR",t[t.ORIYA=39]="ORIYA",t[t.PERSIAN=40]="PERSIAN",t[t.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",t[t.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",t[t.TAMIL=43]="TAMIL",t[t.TELUGU=44]="TELUGU",t[t.THAI=45]="THAI",t[t.TIBETAN=46]="TIBETAN",t[t.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",t[t.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",t[t.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",t[t.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",t[t.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(Sn||(Sn={}));var xn,Un={name:"list-style-type",initialValue:"none",prefix:!1,type:se.IDENT_VALUE,parse:function(t){switch(t){case"disc":return Sn.DISC;case"circle":return Sn.CIRCLE;case"square":return Sn.SQUARE;case"decimal":return Sn.DECIMAL;case"cjk-decimal":return Sn.CJK_DECIMAL;case"decimal-leading-zero":return Sn.DECIMAL_LEADING_ZERO;case"lower-roman":return Sn.LOWER_ROMAN;case"upper-roman":return Sn.UPPER_ROMAN;case"lower-greek":return Sn.LOWER_GREEK;case"lower-alpha":return Sn.LOWER_ALPHA;case"upper-alpha":return Sn.UPPER_ALPHA;case"arabic-indic":return Sn.ARABIC_INDIC;case"armenian":return Sn.ARMENIAN;case"bengali":return Sn.BENGALI;case"cambodian":return Sn.CAMBODIAN;case"cjk-earthly-branch":return Sn.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Sn.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Sn.CJK_IDEOGRAPHIC;case"devanagari":return Sn.DEVANAGARI;case"ethiopic-numeric":return Sn.ETHIOPIC_NUMERIC;case"georgian":return Sn.GEORGIAN;case"gujarati":return Sn.GUJARATI;case"gurmukhi":return Sn.GURMUKHI;case"hebrew":return Sn.HEBREW;case"hiragana":return Sn.HIRAGANA;case"hiragana-iroha":return Sn.HIRAGANA_IROHA;case"japanese-formal":return Sn.JAPANESE_FORMAL;case"japanese-informal":return Sn.JAPANESE_INFORMAL;case"kannada":return Sn.KANNADA;case"katakana":return Sn.KATAKANA;case"katakana-iroha":return Sn.KATAKANA_IROHA;case"khmer":return Sn.KHMER;case"korean-hangul-formal":return Sn.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Sn.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Sn.KOREAN_HANJA_INFORMAL;case"lao":return Sn.LAO;case"lower-armenian":return Sn.LOWER_ARMENIAN;case"malayalam":return Sn.MALAYALAM;case"mongolian":return Sn.MONGOLIAN;case"myanmar":return Sn.MYANMAR;case"oriya":return Sn.ORIYA;case"persian":return Sn.PERSIAN;case"simp-chinese-formal":return Sn.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Sn.SIMP_CHINESE_INFORMAL;case"tamil":return Sn.TAMIL;case"telugu":return Sn.TELUGU;case"thai":return Sn.THAI;case"tibetan":return Sn.TIBETAN;case"trad-chinese-formal":return Sn.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Sn.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Sn.UPPER_ARMENIAN;case"disclosure-open":return Sn.DISCLOSURE_OPEN;case"disclosure-closed":return Sn.DISCLOSURE_CLOSED;case"none":default:return Sn.NONE}}},In=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:se.TOKEN_VALUE}},Fn=In("top"),On=In("right"),Qn=In("bottom"),Nn=In("left");!function(t){t[t.VISIBLE=0]="VISIBLE",t[t.HIDDEN=1]="HIDDEN",t[t.SCROLL=2]="SCROLL",t[t.AUTO=3]="AUTO"}(xn||(xn={}));var Ln,Dn={name:"overflow",initialValue:"visible",prefix:!1,type:se.LIST,parse:function(t){return t.filter(Ot).map(function(t){switch(t.value){case"hidden":return xn.HIDDEN;case"scroll":return xn.SCROLL;case"auto":return xn.AUTO;case"visible":default:return xn.VISIBLE}})}};!function(t){t.NORMAL="normal",t.BREAK_WORD="break-word"}(Ln||(Ln={}));var Pn,Rn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:se.IDENT_VALUE,parse:function(t){switch(t){case"break-word":return Ln.BREAK_WORD;case"normal":default:return Ln.NORMAL}}},Hn=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:se.TYPE_VALUE,format:"length-percentage"}},Mn=Hn("top"),Kn=Hn("right"),jn=Hn("bottom"),Vn=Hn("left");!function(t){t[t.LEFT=0]="LEFT",t[t.CENTER=1]="CENTER",t[t.RIGHT=2]="RIGHT"}(Pn||(Pn={}));var zn,$n={name:"text-align",initialValue:"left",prefix:!1,type:se.IDENT_VALUE,parse:function(t){switch(t){case"right":return Pn.RIGHT;case"center":case"justify":return Pn.CENTER;case"left":default:return Pn.LEFT}}};!function(t){t[t.STATIC=0]="STATIC",t[t.RELATIVE=1]="RELATIVE",t[t.ABSOLUTE=2]="ABSOLUTE",t[t.FIXED=3]="FIXED",t[t.STICKY=4]="STICKY"}(zn||(zn={}));var Wn,Gn={name:"position",initialValue:"static",prefix:!1,type:se.IDENT_VALUE,parse:function(t){switch(t){case"relative":return zn.RELATIVE;case"absolute":return zn.ABSOLUTE;case"fixed":return zn.FIXED;case"sticky":return zn.STICKY}return zn.STATIC}},Xn={name:"text-shadow",initialValue:"none",type:se.LIST,prefix:!1,parse:function(t){return 1===t.length&&Nt(t[0],"none")?[]:Pt(t).map(function(t){for(var e={color:le.TRANSPARENT,offsetX:jt,offsetY:jt,blur:jt},n=0,i=0;i<t.length;i++){var r=t[i];Ht(r)?(0===n?e.offsetX=r:1===n?e.offsetY=r:e.blur=r,n++):e.color=Jt(r)}return e})}};!function(t){t[t.NONE=0]="NONE",t[t.LOWERCASE=1]="LOWERCASE",t[t.UPPERCASE=2]="UPPERCASE",t[t.CAPITALIZE=3]="CAPITALIZE"}(Wn||(Wn={}));var qn,Yn={name:"text-transform",initialValue:"none",prefix:!1,type:se.IDENT_VALUE,parse:function(t){switch(t){case"uppercase":return Wn.UPPERCASE;case"lowercase":return Wn.LOWERCASE;case"capitalize":return Wn.CAPITALIZE}return Wn.NONE}},Jn={name:"transform",initialValue:"none",prefix:!0,type:se.VALUE,parse:function(t){if(t.type===h.IDENT_TOKEN&&"none"===t.value)return null;if(t.type===h.FUNCTION){var e=Zn[t.name];if(void 0===e)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return e(t.values)}return null}},Zn={matrix:function(t){var e=t.filter(function(t){return t.type===h.NUMBER_TOKEN}).map(function(t){return t.number});return 6===e.length?e:null},matrix3d:function(t){var e=t.filter(function(t){return t.type===h.NUMBER_TOKEN}).map(function(t){return t.number}),n=e[0],i=e[1],r=(e[2],e[3],e[4]),s=e[5],a=(e[6],e[7],e[8],e[9],e[10],e[11],e[12]),o=e[13];e[14],e[15];return 16===e.length?[n,i,r,s,a,o]:null}},ti={type:h.PERCENTAGE_TOKEN,number:50,flags:4},ei=[ti,ti],ni={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:se.LIST,parse:function(t){var e=t.filter(Mt);return 2!==e.length?ei:[e[0],e[1]]}};!function(t){t[t.VISIBLE=0]="VISIBLE",t[t.HIDDEN=1]="HIDDEN",t[t.COLLAPSE=2]="COLLAPSE"}(qn||(qn={}));var ii,ri={name:"visible",initialValue:"none",prefix:!1,type:se.IDENT_VALUE,parse:function(t){switch(t){case"hidden":return qn.HIDDEN;case"collapse":return qn.COLLAPSE;case"visible":default:return qn.VISIBLE}}};!function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"}(ii||(ii={}));var si,ai={name:"word-break",initialValue:"normal",prefix:!1,type:se.IDENT_VALUE,parse:function(t){switch(t){case"break-all":return ii.BREAK_ALL;case"keep-all":return ii.KEEP_ALL;case"normal":default:return ii.NORMAL}}},oi={name:"z-index",initialValue:"auto",prefix:!1,type:se.VALUE,parse:function(t){if(t.type===h.IDENT_TOKEN)return{auto:!0,order:0};if(Ft(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},ui={name:"opacity",initialValue:"1",type:se.VALUE,prefix:!1,parse:function(t){return Ft(t)?t.number:1}},li={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:se.TYPE_VALUE,format:"color"},ci={name:"text-decoration-line",initialValue:"none",prefix:!1,type:se.LIST,parse:function(t){return t.filter(Ot).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return 0!==t})}},Ai={name:"font-family",initialValue:"",prefix:!1,type:se.LIST,parse:function(t){return t.filter(hi).map(function(t){return t.value})}},hi=function(t){return t.type===h.STRING_TOKEN||t.type===h.IDENT_TOKEN},di={name:"font-size",initialValue:"0",prefix:!1,type:se.TYPE_VALUE,format:"length"},fi={name:"font-weight",initialValue:"normal",type:se.VALUE,prefix:!1,parse:function(t){if(Ft(t))return t.number;if(Ot(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},pi={name:"font-variant",initialValue:"none",type:se.LIST,prefix:!1,parse:function(t){return t.filter(Ot).map(function(t){return t.value})}};!function(t){t.NORMAL="normal",t.ITALIC="italic",t.OBLIQUE="oblique"}(si||(si={}));var gi,mi={name:"font-style",initialValue:"normal",prefix:!1,type:se.IDENT_VALUE,parse:function(t){switch(t){case"oblique":return si.OBLIQUE;case"italic":return si.ITALIC;case"normal":default:return si.NORMAL}}},vi=function(t,e){return 0!=(t&e)},yi={name:"content",initialValue:"none",type:se.LIST,prefix:!1,parse:function(t){if(0===t.length)return[];var e=t[0];return e.type===h.IDENT_TOKEN&&"none"===e.value?[]:t}},bi={name:"counter-increment",initialValue:"none",prefix:!0,type:se.LIST,parse:function(t){if(0===t.length)return null;var e=t[0];if(e.type===h.IDENT_TOKEN&&"none"===e.value)return null;for(var n=[],i=t.filter(Lt),r=0;r<i.length;r++){var s=i[r],a=i[r+1];if(s.type===h.IDENT_TOKEN){var o=a&&Ft(a)?a.number:1;n.push({counter:s.value,increment:o})}}return n}},_i={name:"counter-reset",initialValue:"none",prefix:!0,type:se.LIST,parse:function(t){if(0===t.length)return[];for(var e=[],n=t.filter(Lt),i=0;i<n.length;i++){var r=n[i],s=n[i+1];if(Ot(r)&&"none"!==r.value){var a=s&&Ft(s)?s.number:0;e.push({counter:r.value,reset:a})}}return e}},wi={name:"quotes",initialValue:"none",prefix:!0,type:se.LIST,parse:function(t){if(0===t.length)return null;var e=t[0];if(e.type===h.IDENT_TOKEN&&"none"===e.value)return null;var n=[],i=t.filter(Qt);if(i.length%2!=0)return null;for(var r=0;r<i.length;r+=2){var s=i[r].value,a=i[r+1].value;n.push({open:s,close:a})}return n}},Bi=function(t,e,n){if(!t)return"";var i=t[Math.min(e,t.length-1)];return i?n?i.open:i.close:""},Ci={name:"box-shadow",initialValue:"none",type:se.LIST,prefix:!1,parse:function(t){return 1===t.length&&Nt(t[0],"none")?[]:Pt(t).map(function(t){for(var e={color:255,offsetX:jt,offsetY:jt,blur:jt,spread:jt,inset:!1},n=0,i=0;i<t.length;i++){var r=t[i];Nt(r,"inset")?e.inset=!0:Ht(r)?(0===n?e.offsetX=r:1===n?e.offsetY=r:2===n?e.blur=r:e.spread=r,n++):e.color=Jt(r)}return e})}},Ti=function(){function t(t){this.backgroundClip=ki(Ae,t.backgroundClip),this.backgroundColor=ki(he,t.backgroundColor),this.backgroundImage=ki(He,t.backgroundImage),this.backgroundOrigin=ki(Me,t.backgroundOrigin),this.backgroundPosition=ki(Ke,t.backgroundPosition),this.backgroundRepeat=ki(Ve,t.backgroundRepeat),this.backgroundSize=ki(We,t.backgroundSize),this.borderTopColor=ki(qe,t.borderTopColor),this.borderRightColor=ki(Ye,t.borderRightColor),this.borderBottomColor=ki(Je,t.borderBottomColor),this.borderLeftColor=ki(Ze,t.borderLeftColor),this.borderTopLeftRadius=ki(en,t.borderTopLeftRadius),this.borderTopRightRadius=ki(nn,t.borderTopRightRadius),this.borderBottomRightRadius=ki(rn,t.borderBottomRightRadius),this.borderBottomLeftRadius=ki(sn,t.borderBottomLeftRadius),this.borderTopStyle=ki(un,t.borderTopStyle),this.borderRightStyle=ki(ln,t.borderRightStyle),this.borderBottomStyle=ki(cn,t.borderBottomStyle),this.borderLeftStyle=ki(An,t.borderLeftStyle),this.borderTopWidth=ki(dn,t.borderTopWidth),this.borderRightWidth=ki(fn,t.borderRightWidth),this.borderBottomWidth=ki(pn,t.borderBottomWidth),this.borderLeftWidth=ki(gn,t.borderLeftWidth),this.boxShadow=ki(Ci,t.boxShadow),this.color=ki(mn,t.color),this.display=ki(vn,t.display),this.float=ki(_n,t.cssFloat),this.fontFamily=ki(Ai,t.fontFamily),this.fontSize=ki(di,t.fontSize),this.fontStyle=ki(mi,t.fontStyle),this.fontVariant=ki(pi,t.fontVariant),this.fontWeight=ki(fi,t.fontWeight),this.letterSpacing=ki(wn,t.letterSpacing),this.lineBreak=ki(Cn,t.lineBreak),this.lineHeight=ki(Tn,t.lineHeight),this.listStyleImage=ki(En,t.listStyleImage),this.listStylePosition=ki(kn,t.listStylePosition),this.listStyleType=ki(Un,t.listStyleType),this.marginTop=ki(Fn,t.marginTop),this.marginRight=ki(On,t.marginRight),this.marginBottom=ki(Qn,t.marginBottom),this.marginLeft=ki(Nn,t.marginLeft),this.opacity=ki(ui,t.opacity);var e=ki(Dn,t.overflow);this.overflowX=e[0],this.overflowY=e[e.length>1?1:0],this.overflowWrap=ki(Rn,t.overflowWrap),this.paddingTop=ki(Mn,t.paddingTop),this.paddingRight=ki(Kn,t.paddingRight),this.paddingBottom=ki(jn,t.paddingBottom),this.paddingLeft=ki(Vn,t.paddingLeft),this.position=ki(Gn,t.position),this.textAlign=ki($n,t.textAlign),this.textDecorationColor=ki(li,t.textDecorationColor||t.color),this.textDecorationLine=ki(ci,t.textDecorationLine),this.textShadow=ki(Xn,t.textShadow),this.textTransform=ki(Yn,t.textTransform),this.transform=ki(Jn,t.transform),this.transformOrigin=ki(ni,t.transformOrigin),this.visibility=ki(ri,t.visibility),this.wordBreak=ki(ai,t.wordBreak),this.zIndex=ki(oi,t.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===qn.VISIBLE},t.prototype.isTransparent=function(){return Zt(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return this.position!==zn.STATIC},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==an.NONE},t.prototype.isInlineLevel=function(){return vi(this.display,4)||vi(this.display,33554432)||vi(this.display,268435456)||vi(this.display,536870912)||vi(this.display,67108864)||vi(this.display,134217728)},t}(),Ei=function(){return function(t){this.content=ki(yi,t.content),this.quotes=ki(wi,t.quotes)}}(),Si=function(){return function(t){this.counterIncrement=ki(bi,t.counterIncrement),this.counterReset=ki(_i,t.counterReset)}}(),ki=function(t,e){var n=new xt,i=null!==e&&void 0!==e?e.toString():t.initialValue;n.write(i);var r=new Ut(n.read());switch(t.type){case se.IDENT_VALUE:var s=r.parseComponentValue();return t.parse(Ot(s)?s.value:t.initialValue);case se.VALUE:return t.parse(r.parseComponentValue());case se.LIST:return t.parse(r.parseComponentValues());case se.TOKEN_VALUE:return r.parseComponentValue();case se.TYPE_VALUE:switch(t.format){case"angle":return Gt(r.parseComponentValue());case"color":return Jt(r.parseComponentValue());case"image":return De(r.parseComponentValue());case"length":var a=r.parseComponentValue();return Ht(a)?a:jt;case"length-percentage":var o=r.parseComponentValue();return Mt(o)?o:jt}}throw new Error("Attempting to parse unsupported css format type "+t.format)},xi=function(){return function(t){this.styles=new Ti(window.getComputedStyle(t,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&Ar(t)&&(t.style.transform="none"),this.bounds=a(t),this.flags=0}}(),Ui=function(){return function(t,e){this.text=t,this.bounds=e}}(),Ii=function(t,e,n){var i=[],r=0;return Qi(t,e).forEach(function(t){if(e.textDecorationLine.length||t.trim().length>0)if(we.SUPPORT_RANGE_BOUNDS)i.push(new Ui(t,Oi(n,r,t.length)));else{var s=n.splitText(t.length);i.push(new Ui(t,Fi(n))),n=s}else we.SUPPORT_RANGE_BOUNDS||(n=n.splitText(t.length));r+=t.length}),i},Fi=function(t){var e=t.ownerDocument;if(e){var n=e.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(n,t);var r=a(n);return n.firstChild&&i.replaceChild(n.firstChild,n),r}}return new s(0,0,0,0)},Oi=function(t,e,n){var i=t.ownerDocument;if(!i)throw new Error("Node has no owner document");var r=i.createRange();return r.setStart(t,e),r.setEnd(t,e+n),s.fromClientRect(r.getBoundingClientRect())},Qi=function(t,e){return 0!==e.letterSpacing?o(t).map(function(t){return u(t)}):Ni(t,e)},Ni=function(t,e){for(var n,i=function(t,e){var n=o(t),i=Y(n,e),r=i[0],s=i[1],a=i[2],u=n.length,l=0,c=0;return{next:function(){if(c>=u)return{done:!0,value:null};for(var t="×";c<u&&"×"===(t=q(n,s,r,++c,a)););if("×"!==t||c===u){var e=new J(n,t,l,c);return l=c,{value:e,done:!1}}return{done:!0,value:null}}}}(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap===Ln.BREAK_WORD?"break-word":e.wordBreak}),r=[];!(n=i.next()).done;)n.value&&r.push(n.value.slice());return r},Li=function(){return function(t,e){this.text=Di(t.data,e.textTransform),this.textBounds=Ii(this.text,e,t)}}(),Di=function(t,e){switch(e){case Wn.LOWERCASE:return t.toLowerCase();case Wn.CAPITALIZE:return t.replace(Pi,Ri);case Wn.UPPERCASE:return t.toUpperCase();default:return t}},Pi=/(^|\s|:|-|\(|\))([a-z])/g,Ri=function(t,e,n){return t.length>0?e+n.toUpperCase():t},Hi=function(t){function n(e){var n=t.call(this,e)||this;return n.src=e.currentSrc||e.src,n.intrinsicWidth=e.naturalWidth,n.intrinsicHeight=e.naturalHeight,Ce.getInstance().addImage(n.src),n}return e(n,t),n}(xi),Mi=function(t){function n(e){var n=t.call(this,e)||this;return n.canvas=e,n.intrinsicWidth=e.width,n.intrinsicHeight=e.height,n}return e(n,t),n}(xi),Ki=function(t){function n(e){var n=t.call(this,e)||this,i=new XMLSerializer;return n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(e)),n.intrinsicWidth=e.width.baseVal.value,n.intrinsicHeight=e.height.baseVal.value,Ce.getInstance().addImage(n.svg),n}return e(n,t),n}(xi),ji=function(t){function n(e){var n=t.call(this,e)||this;return n.value=e.value,n}return e(n,t),n}(xi),Vi=function(t){function n(e){var n=t.call(this,e)||this;return n.start=e.start,n.reversed="boolean"==typeof e.reversed&&!0===e.reversed,n}return e(n,t),n}(xi),zi=[{type:h.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],$i=[{type:h.PERCENTAGE_TOKEN,flags:0,number:50}],Wi=function(t){return t.width>t.height?new s(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new s(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},Gi=function(t){var e=t.type===Yi?new Array(t.value.length+1).join("•"):t.value;return 0===e.length?t.placeholder||"":e},Xi="checkbox",qi="radio",Yi="password",Ji=function(t){function n(e){var n=t.call(this,e)||this;switch(n.type=e.type.toLowerCase(),n.checked=e.checked,n.value=Gi(e),n.type!==Xi&&n.type!==qi||(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=$e.SOLID,n.styles.backgroundClip=[ae.BORDER_BOX],n.styles.backgroundOrigin=[0],n.bounds=Wi(n.bounds)),n.type){case Xi:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=zi;break;case qi:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=$i}return n}return e(n,t),n}(xi),Zi=function(t){function n(e){var n=t.call(this,e)||this,i=e.options[e.selectedIndex||0];return n.value=i&&i.text||"",n}return e(n,t),n}(xi),tr=function(t){function n(e){var n=t.call(this,e)||this;return n.value=e.value,n}return e(n,t),n}(xi),er=function(t){return Jt(Ut.create(t).parseComponentValue())},nr=function(t){function n(e){var n=t.call(this,e)||this;n.src=e.src,n.width=parseInt(e.width,10)||0,n.height=parseInt(e.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement){n.tree=ar(e.contentWindow.document.documentElement);var i=e.contentWindow.document.documentElement?er(getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):le.TRANSPARENT,r=e.contentWindow.document.body?er(getComputedStyle(e.contentWindow.document.body).backgroundColor):le.TRANSPARENT;n.backgroundColor=Zt(i)?Zt(r)?n.styles.backgroundColor:r:i}}catch(t){}return n}return e(n,t),n}(xi),ir=["OL","UL","MENU"],rr=function(t,e,n){for(var i=t.firstChild,r=void 0;i;i=r)if(r=i.nextSibling,lr(i)&&i.data.trim().length>0)e.textNodes.push(new Li(i,e.styles));else if(cr(i)){var s=sr(i);s.styles.isVisible()&&(or(i,s,n)?s.flags|=4:ur(s.styles)&&(s.flags|=2),-1!==ir.indexOf(i.tagName)&&(s.flags|=8),e.elements.push(s),wr(i)||pr(i)||Br(i)||rr(i,s,n))}},sr=function(t){return vr(t)?new Hi(t):mr(t)?new Mi(t):pr(t)?new Ki(t):hr(t)?new ji(t):dr(t)?new Vi(t):fr(t)?new Ji(t):Br(t)?new Zi(t):wr(t)?new tr(t):yr(t)?new nr(t):new xi(t)},ar=function(t){var e=sr(t);return e.flags|=4,rr(t,e,e),e},or=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||gr(t)&&n.styles.isTransparent()},ur=function(t){return t.isPositioned()||t.isFloating()},lr=function(t){return t.nodeType===Node.TEXT_NODE},cr=function(t){return t.nodeType===Node.ELEMENT_NODE},Ar=function(t){return void 0!==t.style},hr=function(t){return"LI"===t.tagName},dr=function(t){return"OL"===t.tagName},fr=function(t){return"INPUT"===t.tagName},pr=function(t){return"svg"===t.tagName},gr=function(t){return"BODY"===t.tagName},mr=function(t){return"CANVAS"===t.tagName},vr=function(t){return"IMG"===t.tagName},yr=function(t){return"IFRAME"===t.tagName},br=function(t){return"STYLE"===t.tagName},_r=function(t){return"SCRIPT"===t.tagName},wr=function(t){return"TEXTAREA"===t.tagName},Br=function(t){return"SELECT"===t.tagName},Cr=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},t.prototype.pop=function(t){var e=this;t.forEach(function(t){return e.counters[t].pop()})},t.prototype.parse=function(t){var e=this,n=t.counterIncrement,i=t.counterReset;null!==n&&n.forEach(function(t){var n=e.counters[t.counter];n&&(n[Math.max(0,n.length-1)]+=t.increment)});var r=[];return i.forEach(function(t){var n=e.counters[t.counter];r.push(t.counter),n||(n=e.counters[t.counter]=[]),n.push(t.reset)}),r},t}(),Tr={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Er={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Sr={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},kr={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},xr=function(t,e,n,i,r,s){return t<e||t>n?Qr(t,r,s.length>0):i.integers.reduce(function(e,n,r){for(;t>=n;)t-=n,e+=i.values[r];return e},"")+s},Ur=function(t,e,n,i){var r="";do{n||t--,r=i(t)+r,t/=e}while(t*e>=e);return r},Ir=function(t,e,n,i,r){var s=n-e+1;return(t<0?"-":"")+(Ur(Math.abs(t),s,i,function(t){return u(Math.floor(t%s)+e)})+r)},Fr=function(t,e,n){void 0===n&&(n=". ");var i=e.length;return Ur(Math.abs(t),i,!1,function(t){return e[Math.floor(t%i)]})+n},Or=function(t,e,n,i,r,s){if(t<-9999||t>9999)return Qr(t,Sn.CJK_DECIMAL,r.length>0);var a=Math.abs(t),o=r;if(0===a)return e[0]+o;for(var u=0;a>0&&u<=4;u++){var l=a%10;0===l&&vi(s,1)&&""!==o?o=e[l]+o:l>1||1===l&&0===u||1===l&&1===u&&vi(s,2)||1===l&&1===u&&vi(s,4)&&t>100||1===l&&u>1&&vi(s,8)?o=e[l]+(u>0?n[u-1]:"")+o:1===l&&u>0&&(o=n[u-1]+o),a=Math.floor(a/10)}return(t<0?i:"")+o},Qr=function(t,e,n){var i=n?". ":"",r=n?"、":"",s=n?", ":"",a=n?" ":"";switch(e){case Sn.DISC:return"•"+a;case Sn.CIRCLE:return"◦"+a;case Sn.SQUARE:return"◾"+a;case Sn.DECIMAL_LEADING_ZERO:var o=Ir(t,48,57,!0,i);return o.length<4?"0"+o:o;case Sn.CJK_DECIMAL:return Fr(t,"〇一二三四五六七八九",r);case Sn.LOWER_ROMAN:return xr(t,1,3999,Tr,Sn.DECIMAL,i).toLowerCase();case Sn.UPPER_ROMAN:return xr(t,1,3999,Tr,Sn.DECIMAL,i);case Sn.LOWER_GREEK:return Ir(t,945,969,!1,i);case Sn.LOWER_ALPHA:return Ir(t,97,122,!1,i);case Sn.UPPER_ALPHA:return Ir(t,65,90,!1,i);case Sn.ARABIC_INDIC:return Ir(t,1632,1641,!0,i);case Sn.ARMENIAN:case Sn.UPPER_ARMENIAN:return xr(t,1,9999,Er,Sn.DECIMAL,i);case Sn.LOWER_ARMENIAN:return xr(t,1,9999,Er,Sn.DECIMAL,i).toLowerCase();case Sn.BENGALI:return Ir(t,2534,2543,!0,i);case Sn.CAMBODIAN:case Sn.KHMER:return Ir(t,6112,6121,!0,i);case Sn.CJK_EARTHLY_BRANCH:return Fr(t,"子丑寅卯辰巳午未申酉戌亥",r);case Sn.CJK_HEAVENLY_STEM:return Fr(t,"甲乙丙丁戊己庚辛壬癸",r);case Sn.CJK_IDEOGRAPHIC:case Sn.TRAD_CHINESE_INFORMAL:return Or(t,"零一二三四五六七八九","十百千萬","負",r,14);case Sn.TRAD_CHINESE_FORMAL:return Or(t,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",r,15);case Sn.SIMP_CHINESE_INFORMAL:return Or(t,"零一二三四五六七八九","十百千萬","负",r,14);case Sn.SIMP_CHINESE_FORMAL:return Or(t,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",r,15);case Sn.JAPANESE_INFORMAL:return Or(t,"〇一二三四五六七八九","十百千万","マイナス",r,0);case Sn.JAPANESE_FORMAL:return Or(t,"零壱弐参四伍六七八九","拾百千万","マイナス",r,7);case Sn.KOREAN_HANGUL_FORMAL:return Or(t,"영일이삼사오육칠팔구","십백천만","마이너스",s,7);case Sn.KOREAN_HANJA_INFORMAL:return Or(t,"零一二三四五六七八九","十百千萬","마이너스",s,0);case Sn.KOREAN_HANJA_FORMAL:return Or(t,"零壹貳參四五六七八九","拾百千","마이너스",s,7);case Sn.DEVANAGARI:return Ir(t,2406,2415,!0,i);case Sn.GEORGIAN:return xr(t,1,19999,kr,Sn.DECIMAL,i);case Sn.GUJARATI:return Ir(t,2790,2799,!0,i);case Sn.GURMUKHI:return Ir(t,2662,2671,!0,i);case Sn.HEBREW:return xr(t,1,10999,Sr,Sn.DECIMAL,i);case Sn.HIRAGANA:return Fr(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case Sn.HIRAGANA_IROHA:return Fr(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case Sn.KANNADA:return Ir(t,3302,3311,!0,i);case Sn.KATAKANA:return Fr(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case Sn.KATAKANA_IROHA:return Fr(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case Sn.LAO:return Ir(t,3792,3801,!0,i);case Sn.MONGOLIAN:return Ir(t,6160,6169,!0,i);case Sn.MYANMAR:return Ir(t,4160,4169,!0,i);case Sn.ORIYA:return Ir(t,2918,2927,!0,i);case Sn.PERSIAN:return Ir(t,1776,1785,!0,i);case Sn.TAMIL:return Ir(t,3046,3055,!0,i);case Sn.TELUGU:return Ir(t,3174,3183,!0,i);case Sn.THAI:return Ir(t,3664,3673,!0,i);case Sn.TIBETAN:return Ir(t,3872,3881,!0,i);case Sn.DECIMAL:default:return Ir(t,48,57,!0,i)}},Nr=function(){function t(t,e){if(this.options=e,this.scrolledElements=[],this.referenceElement=t,this.counters=new Cr,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement)}return t.prototype.toIFrame=function(t,e){var n=this,i=Dr(t,e);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var r=t.defaultView.pageXOffset,s=t.defaultView.pageYOffset,a=i.contentWindow,o=a.document,u=Pr(i).then(function(){n.scrolledElements.forEach(Kr),a&&(a.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===e.top&&a.scrollX===e.left||(o.documentElement.style.top=-e.top+"px",o.documentElement.style.left=-e.left+"px",o.documentElement.style.position="absolute"));var t=n.options.onclone;return void 0===n.clonedReferenceElement?Promise.reject("Error finding the "+n.referenceElement.nodeName+" in the cloned document"):"function"==typeof t?Promise.resolve().then(function(){return t(o)}).then(function(){return i}):i});return o.open(),o.write(Hr(document.doctype)+"<html></html>"),Mr(this.referenceElement.ownerDocument,r,s),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),u},t.prototype.createElementClone=function(t){return mr(t)?this.createCanvasClone(t):br(t)?this.createStyleClone(t):t.cloneNode(!1)},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce(function(t,e){return e&&"string"==typeof e.cssText?t+e.cssText:t},""),i=t.cloneNode(!1);return i.textContent=n,i}}catch(t){if(Be.getInstance(this.options.id).error("Unable to access cssRules property",t),"SecurityError"!==t.name)throw t}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){if(this.options.inlineImages&&t.ownerDocument){var e=t.ownerDocument.createElement("img");try{return e.src=t.toDataURL(),e}catch(t){Be.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var n=t.cloneNode(!1);try{n.width=t.width,n.height=t.height;var i=t.getContext("2d"),r=n.getContext("2d");return r&&(i?r.putImageData(i.getImageData(0,0,t.width,t.height),0,0):r.drawImage(t,0,0)),n}catch(t){}return n},t.prototype.cloneNode=function(t){if(lr(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var e=t.ownerDocument.defaultView;if(Ar(t)&&e){var n=this.createElementClone(t),i=e.getComputedStyle(t),r=e.getComputedStyle(t,":before"),s=e.getComputedStyle(t,":after");this.referenceElement===t&&(this.clonedReferenceElement=n),gr(n)&&zr(n);for(var a=this.counters.parse(new Si(i)),o=this.resolvePseudoContent(t,n,r,gi.BEFORE),u=t.firstChild;u;u=u.nextSibling)cr(u)&&(_r(u)||u.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(u))||this.options.copyStyles&&cr(u)&&br(u)||n.appendChild(this.cloneNode(u));o&&n.insertBefore(o,n.firstChild);var l=this.resolvePseudoContent(t,n,s,gi.AFTER);return l&&n.appendChild(l),this.counters.pop(a),i&&this.options.copyStyles&&!yr(t)&&Rr(i,n),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([n,t.scrollLeft,t.scrollTop]),(wr(t)||Br(t))&&(wr(n)||Br(n))&&(n.value=t.value),n}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,n,i){var r=this;if(n){var s=n.content,a=e.ownerDocument;if(a&&s&&"none"!==s&&"-moz-alt-content"!==s&&"none"!==n.display){this.counters.parse(new Si(n));var o=new Ei(n),u=a.createElement("html2canvaspseudoelement");return Rr(n,u),o.content.forEach(function(e){if(e.type===h.STRING_TOKEN)u.appendChild(a.createTextNode(e.value));else if(e.type===h.URL_TOKEN){var n=a.createElement("img");n.src=e.value,n.style.opacity="1",u.appendChild(n)}else if(e.type===h.FUNCTION){if("attr"===e.name){var i=e.values.filter(Ot);i.length&&u.appendChild(a.createTextNode(t.getAttribute(i[0].value)||""))}else if("counter"===e.name){var s=e.values.filter(Dt),l=s[0],c=s[1];if(l&&Ot(l)){var A=r.counters.getCounterValue(l.value),d=c&&Ot(c)?Un.parse(c.value):Sn.DECIMAL;u.appendChild(a.createTextNode(Qr(A,d,!1)))}}else if("counters"===e.name){var f=e.values.filter(Dt),p=(l=f[0],f[1]);c=f[2];if(l&&Ot(l)){var g=r.counters.getCounterValues(l.value),m=c&&Ot(c)?Un.parse(c.value):Sn.DECIMAL,v=p&&p.type===h.STRING_TOKEN?p.value:"",y=g.map(function(t){return Qr(t,m,!1)}).join(v);u.appendChild(a.createTextNode(y))}}}else if(e.type===h.IDENT_TOKEN)switch(e.value){case"open-quote":u.appendChild(a.createTextNode(Bi(o.quotes,r.quoteDepth++,!0)));break;case"close-quote":u.appendChild(a.createTextNode(Bi(o.quotes,--r.quoteDepth,!1)))}}),u.className=jr+" "+Vr,e.className+=i===gi.BEFORE?" "+jr:" "+Vr,u}}},t}();!function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"}(gi||(gi={}));var Lr,Dr=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute("data-html2canvas-ignore","true"),t.body.appendChild(n),n},Pr=function(t){return new Promise(function(e,n){var i=t.contentWindow;if(!i)return n("No window assigned for iframe");var r=i.document;i.onload=t.onload=r.onreadystatechange=function(){i.onload=t.onload=r.onreadystatechange=null;var n=setInterval(function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(n),e(t))},50)}})},Rr=function(t,e){for(var n=t.length-1;n>=0;n--){var i=t.item(n);"content"!==i&&e.style.setProperty(i,t.getPropertyValue(i))}return e},Hr=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},Mr=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},Kr=function(t){var e=t[0],n=t[1],i=t[2];e.scrollLeft=n,e.scrollTop=i},jr="___html2canvas___pseudoelement_before",Vr="___html2canvas___pseudoelement_after",zr=function(t){$r(t,"."+jr+':before{\n content: "" !important;\n display: none !important;\n}\n .'+Vr+':after{\n content: "" !important;\n display: none !important;\n}')},$r=function(t,e){var n=t.ownerDocument;if(n){var i=n.createElement("style");i.textContent=e,t.appendChild(i)}};!function(t){t[t.VECTOR=0]="VECTOR",t[t.BEZIER_CURVE=1]="BEZIER_CURVE"}(Lr||(Lr={}));var Wr,Gr=function(t,e){return t.length===e.length&&t.some(function(t,n){return t===e[n]})},Xr=function(){function t(t,e){this.type=Lr.VECTOR,this.x=t,this.y=e}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t}(),qr=function(t,e,n){return new Xr(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},Yr=function(){function t(t,e,n,i){this.type=Lr.BEZIER_CURVE,this.start=t,this.startControl=e,this.endControl=n,this.end=i}return t.prototype.subdivide=function(e,n){var i=qr(this.start,this.startControl,e),r=qr(this.startControl,this.endControl,e),s=qr(this.endControl,this.end,e),a=qr(i,r,e),o=qr(r,s,e),u=qr(a,o,e);return n?new t(this.start,i,a,u):new t(u,o,s,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Jr=function(t){return t.type===Lr.BEZIER_CURVE},Zr=function(){return function(t){var e=t.styles,n=t.bounds,i=$t(e.borderTopLeftRadius,n.width,n.height),r=i[0],s=i[1],a=$t(e.borderTopRightRadius,n.width,n.height),o=a[0],u=a[1],l=$t(e.borderBottomRightRadius,n.width,n.height),c=l[0],A=l[1],h=$t(e.borderBottomLeftRadius,n.width,n.height),d=h[0],f=h[1],p=[];p.push((r+o)/n.width),p.push((d+c)/n.width),p.push((s+f)/n.height),p.push((u+A)/n.height);var g=Math.max.apply(Math,p);g>1&&(r/=g,s/=g,o/=g,u/=g,c/=g,A/=g,d/=g,f/=g);var m=n.width-o,v=n.height-A,y=n.width-c,b=n.height-f,_=e.borderTopWidth,w=e.borderRightWidth,B=e.borderBottomWidth,C=e.borderLeftWidth,T=Wt(e.paddingTop,t.bounds.width),E=Wt(e.paddingRight,t.bounds.width),S=Wt(e.paddingBottom,t.bounds.width),k=Wt(e.paddingLeft,t.bounds.width);this.topLeftBorderBox=r>0||s>0?ts(n.left,n.top,r,s,Wr.TOP_LEFT):new Xr(n.left,n.top),this.topRightBorderBox=o>0||u>0?ts(n.left+m,n.top,o,u,Wr.TOP_RIGHT):new Xr(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||A>0?ts(n.left+y,n.top+v,c,A,Wr.BOTTOM_RIGHT):new Xr(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=d>0||f>0?ts(n.left,n.top+b,d,f,Wr.BOTTOM_LEFT):new Xr(n.left,n.top+n.height),this.topLeftPaddingBox=r>0||s>0?ts(n.left+C,n.top+_,Math.max(0,r-C),Math.max(0,s-_),Wr.TOP_LEFT):new Xr(n.left+C,n.top+_),this.topRightPaddingBox=o>0||u>0?ts(n.left+Math.min(m,n.width+C),n.top+_,m>n.width+C?0:o-C,u-_,Wr.TOP_RIGHT):new Xr(n.left+n.width-w,n.top+_),this.bottomRightPaddingBox=c>0||A>0?ts(n.left+Math.min(y,n.width-C),n.top+Math.min(v,n.height+_),Math.max(0,c-w),A-B,Wr.BOTTOM_RIGHT):new Xr(n.left+n.width-w,n.top+n.height-B),this.bottomLeftPaddingBox=d>0||f>0?ts(n.left+C,n.top+b,Math.max(0,d-C),f-B,Wr.BOTTOM_LEFT):new Xr(n.left+C,n.top+n.height-B),this.topLeftContentBox=r>0||s>0?ts(n.left+C+k,n.top+_+T,Math.max(0,r-(C+k)),Math.max(0,s-(_+T)),Wr.TOP_LEFT):new Xr(n.left+C+k,n.top+_+T),this.topRightContentBox=o>0||u>0?ts(n.left+Math.min(m,n.width+C+k),n.top+_+T,m>n.width+C+k?0:o-C+k,u-(_+T),Wr.TOP_RIGHT):new Xr(n.left+n.width-(w+E),n.top+_+T),this.bottomRightContentBox=c>0||A>0?ts(n.left+Math.min(y,n.width-(C+k)),n.top+Math.min(v,n.height+_+T),Math.max(0,c-(w+E)),A-(B+S),Wr.BOTTOM_RIGHT):new Xr(n.left+n.width-(w+E),n.top+n.height-(B+S)),this.bottomLeftContentBox=d>0||f>0?ts(n.left+C+k,n.top+b,Math.max(0,d-(C+k)),f-(B+S),Wr.BOTTOM_LEFT):new Xr(n.left+C+k,n.top+n.height-(B+S))}}();!function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Wr||(Wr={}));var ts=function(t,e,n,i,r){var s=(Math.sqrt(2)-1)/3*4,a=n*s,o=i*s,u=t+n,l=e+i;switch(r){case Wr.TOP_LEFT:return new Yr(new Xr(t,l),new Xr(t,l-o),new Xr(u-a,e),new Xr(u,e));case Wr.TOP_RIGHT:return new Yr(new Xr(t,e),new Xr(t+a,e),new Xr(u,l-o),new Xr(u,l));case Wr.BOTTOM_RIGHT:return new Yr(new Xr(u,e),new Xr(u,e+o),new Xr(t+a,l),new Xr(t,l));case Wr.BOTTOM_LEFT:default:return new Yr(new Xr(u,l),new Xr(u-a,l),new Xr(t,e+o),new Xr(t,e))}},es=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},ns=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},is=function(){return function(t,e,n){this.type=0,this.offsetX=t,this.offsetY=e,this.matrix=n,this.target=6}}(),rs=function(){return function(t,e){this.type=1,this.target=e,this.path=t}}(),ss=function(){return function(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}(),as=function(){function t(t,e){if(this.container=t,this.effects=e.slice(0),this.curves=new Zr(t),null!==t.styles.transform){var n=t.bounds.left+t.styles.transformOrigin[0].number,i=t.bounds.top+t.styles.transformOrigin[1].number,r=t.styles.transform;this.effects.push(new is(n,i,r))}if(t.styles.overflowX!==xn.VISIBLE){var s=es(this.curves),a=ns(this.curves);Gr(s,a)?this.effects.push(new rs(s,6)):(this.effects.push(new rs(s,2)),this.effects.push(new rs(a,4)))}}return t.prototype.getParentEffects=function(){var t=this.effects.slice(0);if(this.container.styles.overflowX!==xn.VISIBLE){var e=es(this.curves),n=ns(this.curves);Gr(e,n)||t.push(new rs(n,6))}return t},t}(),os=function(t,e,n,i){t.container.elements.forEach(function(r){var s=vi(r.flags,4),a=vi(r.flags,2),o=new as(r,t.getParentEffects());vi(r.styles.display,2048)&&i.push(o);var u=vi(r.flags,8)?[]:i;if(s||a){var l=s||r.styles.isPositioned()?n:e,c=new ss(o);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var A=r.styles.zIndex.order;if(A<0){var h=0;l.negativeZIndex.some(function(t,e){return A>t.element.container.styles.zIndex.order?(h=e,!1):h>0}),l.negativeZIndex.splice(h,0,c)}else if(A>0){var d=0;l.positiveZIndex.some(function(t,e){return A>t.element.container.styles.zIndex.order?(d=e+1,!1):d>0}),l.positiveZIndex.splice(d,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else r.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);os(o,c,s?c:n,u)}else r.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),os(o,e,n,u);vi(r.flags,8)&&us(r,u)})},us=function(t,e){for(var n=t instanceof Vi?t.start:1,i=t instanceof Vi&&t.reversed,r=0;r<e.length;r++){var s=e[r];s.container instanceof ji&&"number"==typeof s.container.value&&0!==s.container.value&&(n=s.container.value),s.listValue=Qr(n,s.container.styles.listStyleType,!0),n+=i?-1:1}},ls=function(t,e,n,i){var r=[];return Jr(t)?r.push(t.subdivide(.5,!1)):r.push(t),Jr(n)?r.push(n.subdivide(.5,!0)):r.push(n),Jr(i)?r.push(i.subdivide(.5,!0).reverse()):r.push(i),Jr(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},cs=function(t){var e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},As=function(t){var e=t.styles,n=t.bounds,i=Wt(e.paddingLeft,n.width),r=Wt(e.paddingRight,n.width),s=Wt(e.paddingTop,n.width),a=Wt(e.paddingBottom,n.width);return n.add(i+e.borderLeftWidth,s+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+i+r),-(e.borderTopWidth+e.borderBottomWidth+s+a))},hs=function(t,e,n){var i,r,s=(i=gs(t.styles.backgroundOrigin,e),r=t,0===i?r.bounds:2===i?As(r):cs(r)),a=function(t,e){return t===ae.BORDER_BOX?e.bounds:t===ae.CONTENT_BOX?As(e):cs(e)}(gs(t.styles.backgroundClip,e),t),o=ps(gs(t.styles.backgroundSize,e),n,s),u=o[0],l=o[1],c=$t(gs(t.styles.backgroundPosition,e),s.width-u,s.height-l);return[ms(gs(t.styles.backgroundRepeat,e),c,o,s,a),Math.round(s.left+c[0]),Math.round(s.top+c[1]),u,l]},ds=function(t){return Ot(t)&&t.value===je.AUTO},fs=function(t){return"number"==typeof t},ps=function(t,e,n){var i=e[0],r=e[1],s=e[2],a=t[0],o=t[1];if(Mt(a)&&o&&Mt(o))return[Wt(a,n.width),Wt(o,n.height)];var u=fs(s);if(Ot(a)&&(a.value===je.CONTAIN||a.value===je.COVER))return fs(s)?n.width/n.height<s!=(a.value===je.COVER)?[n.width,n.width/s]:[n.height*s,n.height]:[n.width,n.height];var l=fs(i),c=fs(r),A=l||c;if(ds(a)&&(!o||ds(o)))return l&&c?[i,r]:u||A?A&&u?[l?i:r*s,c?r:i/s]:[l?i:n.width,c?r:n.height]:[n.width,n.height];if(u){var h=0,d=0;return Mt(a)?h=Wt(a,n.width):Mt(o)&&(d=Wt(o,n.height)),ds(a)?h=d*s:o&&!ds(o)||(d=h/s),[h,d]}var f=null,p=null;if(Mt(a)?f=Wt(a,n.width):o&&Mt(o)&&(p=Wt(o,n.height)),null===f||o&&!ds(o)||(p=l&&c?f/i*r:n.height),null!==p&&ds(a)&&(f=l&&c?p/r*i:n.width),null!==f&&null!==p)return[f,p];throw new Error("Unable to calculate background-size for element")},gs=function(t,e){var n=t[e];return void 0===n?t[0]:n},ms=function(t,e,n,i,r){var s=e[0],a=e[1],o=n[0],u=n[1];switch(t){case Pe.REPEAT_X:return[new Xr(Math.round(i.left),Math.round(i.top+a)),new Xr(Math.round(i.left+i.width),Math.round(i.top+a)),new Xr(Math.round(i.left+i.width),Math.round(u+i.top+a)),new Xr(Math.round(i.left),Math.round(u+i.top+a))];case Pe.REPEAT_Y:return[new Xr(Math.round(i.left+s),Math.round(i.top)),new Xr(Math.round(i.left+s+o),Math.round(i.top)),new Xr(Math.round(i.left+s+o),Math.round(i.height+i.top)),new Xr(Math.round(i.left+s),Math.round(i.height+i.top))];case Pe.NO_REPEAT:return[new Xr(Math.round(i.left+s),Math.round(i.top+a)),new Xr(Math.round(i.left+s+o),Math.round(i.top+a)),new Xr(Math.round(i.left+s+o),Math.round(i.top+a+u)),new Xr(Math.round(i.left+s),Math.round(i.top+a+u))];default:return[new Xr(Math.round(r.left),Math.round(r.top)),new Xr(Math.round(r.left+r.width),Math.round(r.top)),new Xr(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Xr(Math.round(r.left),Math.round(r.height+r.top))]}},vs=function(){function t(t){this._data={},this._document=t}return t.prototype.parseMetrics=function(t,e){var n=this._document.createElement("div"),i=this._document.createElement("img"),r=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",s.appendChild(n),i.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",r.style.fontFamily=t,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode("Hidden Text")),n.appendChild(r),n.appendChild(i);var a=i.offsetTop-r.offsetTop+2;n.removeChild(r),n.appendChild(this._document.createTextNode("Hidden Text")),n.style.lineHeight="normal",i.style.verticalAlign="super";var o=i.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:a,middle:o}},t.prototype.getMetrics=function(t,e){var n=t+" "+e;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]},t}(),ys=function(){function t(t){this._activeEffects=[],this.canvas=t.canvas?t.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=t,this.canvas.width=Math.floor(t.width*t.scale),this.canvas.height=Math.floor(t.height*t.scale),this.canvas.style.width=t.width+"px",this.canvas.style.height=t.height+"px",this.fontMetrics=new vs(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-t.x+t.scrollX,-t.y+t.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],Be.getInstance(t.id).debug("Canvas renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale)}return t.prototype.applyEffects=function(t,e){for(var n=this;this._activeEffects.length;)this.popEffect();t.filter(function(t){return vi(t.target,e)}).forEach(function(t){return n.applyEffect(t)})},t.prototype.applyEffect=function(t){this.ctx.save(),function(t){return 0===t.type}(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),function(t){return 1===t.type}(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(t){return i(this,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return(e=t.element.container.styles).isVisible()?(this.ctx.globalAlpha=e.opacity,[4,this.renderStackContent(t)]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(t){return i(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(t)];case 2:e.sent(),e.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(t,e){var n=this;0===e?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+t.bounds.height):o(t.text).map(function(t){return u(t)}).reduce(function(e,i){return n.ctx.fillText(i,e,t.bounds.top+t.bounds.height),e+n.ctx.measureText(i).width},t.bounds.left)},t.prototype.createFontStyle=function(t){var e=t.fontVariant.filter(function(t){return"normal"===t||"small-caps"===t}).join(""),n=t.fontFamily.join(", "),i=It(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,e,t.fontWeight,i,n].join(" "),n,i]},t.prototype.renderTextNode=function(t,e){return i(this,void 0,void 0,function(){var n,i,s,a,o=this;return r(this,function(r){return n=this.createFontStyle(e),i=n[0],s=n[1],a=n[2],this.ctx.font=i,t.textBounds.forEach(function(t){o.ctx.fillStyle=te(e.color),o.renderTextWithLetterSpacing(t,e.letterSpacing);var n=e.textShadow;n.length&&t.text.trim().length&&(n.slice(0).reverse().forEach(function(e){o.ctx.shadowColor=te(e.color),o.ctx.shadowOffsetX=e.offsetX.number*o.options.scale,o.ctx.shadowOffsetY=e.offsetY.number*o.options.scale,o.ctx.shadowBlur=e.blur.number,o.ctx.fillText(t.text,t.bounds.left,t.bounds.top+t.bounds.height)}),o.ctx.shadowColor="",o.ctx.shadowOffsetX=0,o.ctx.shadowOffsetY=0,o.ctx.shadowBlur=0),e.textDecorationLine.length&&(o.ctx.fillStyle=te(e.textDecorationColor||e.color),e.textDecorationLine.forEach(function(e){switch(e){case 1:var n=o.fontMetrics.getMetrics(s,a).baseline;o.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+n),t.bounds.width,1);break;case 2:o.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:var i=o.fontMetrics.getMetrics(s,a).middle;o.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+i),t.bounds.width,1)}}))}),[2]})})},t.prototype.renderReplacedElement=function(t,e,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var i=As(t),r=ns(e);this.path(r),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return i(this,void 0,void 0,function(){var n,i,a,o,u,l,c,A,d,f,p,g,m,v;return r(this,function(r){switch(r.label){case 0:this.applyEffects(e.effects,4),n=e.container,i=e.curves,a=n.styles,o=0,u=n.textNodes,r.label=1;case 1:return o<u.length?(l=u[o],[4,this.renderTextNode(l,a)]):[3,4];case 2:r.sent(),r.label=3;case 3:return o++,[3,1];case 4:if(!(n instanceof Hi))return[3,8];r.label=5;case 5:return r.trys.push([5,7,,8]),[4,this.options.cache.match(n.src)];case 6:return g=r.sent(),this.renderReplacedElement(n,i,g),[3,8];case 7:return r.sent(),Be.getInstance(this.options.id).error("Error loading image "+n.src),[3,8];case 8:if(n instanceof Mi&&this.renderReplacedElement(n,i,n.canvas),!(n instanceof Ki))return[3,12];r.label=9;case 9:return r.trys.push([9,11,,12]),[4,this.options.cache.match(n.svg)];case 10:return g=r.sent(),this.renderReplacedElement(n,i,g),[3,12];case 11:return r.sent(),Be.getInstance(this.options.id).error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof nr&&n.tree?[4,new t({id:this.options.id,scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:n.width,height:n.height,cache:this.options.cache,windowWidth:n.width,windowHeight:n.height}).render(n.tree)]:[3,14];case 13:c=r.sent(),n.width&&n.height&&this.ctx.drawImage(c,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),r.label=14;case 14:if(n instanceof Ji&&(A=Math.min(n.bounds.width,n.bounds.height),n.type===Xi?n.checked&&(this.ctx.save(),this.path([new Xr(n.bounds.left+.39363*A,n.bounds.top+.79*A),new Xr(n.bounds.left+.16*A,n.bounds.top+.5549*A),new Xr(n.bounds.left+.27347*A,n.bounds.top+.44071*A),new Xr(n.bounds.left+.39694*A,n.bounds.top+.5649*A),new Xr(n.bounds.left+.72983*A,n.bounds.top+.23*A),new Xr(n.bounds.left+.84*A,n.bounds.top+.34085*A),new Xr(n.bounds.left+.39363*A,n.bounds.top+.79*A)]),this.ctx.fillStyle=te(707406591),this.ctx.fill(),this.ctx.restore()):n.type===qi&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+A/2,n.bounds.top+A/2,A/4,0,2*Math.PI,!0),this.ctx.fillStyle=te(707406591),this.ctx.fill(),this.ctx.restore())),bs(n)&&n.value.length){switch(this.ctx.font=this.createFontStyle(a)[0],this.ctx.fillStyle=te(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign=ws(n.styles.textAlign),v=As(n),d=0,n.styles.textAlign){case Pn.CENTER:d+=v.width/2;break;case Pn.RIGHT:d+=v.width}f=v.add(d,0,0,-v.height/2+1),this.ctx.save(),this.path([new Xr(v.left,v.top),new Xr(v.left+v.width,v.top),new Xr(v.left+v.width,v.top+v.height),new Xr(v.left,v.top+v.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ui(n.value,f),a.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!vi(n.styles.display,2048))return[3,20];if(null===n.styles.listStyleImage)return[3,19];if((p=n.styles.listStyleImage).type!==ce.URL)return[3,18];g=void 0,m=p.url,r.label=15;case 15:return r.trys.push([15,17,,18]),[4,this.options.cache.match(m)];case 16:return g=r.sent(),this.ctx.drawImage(g,n.bounds.left-(g.width+10),n.bounds.top),[3,18];case 17:return r.sent(),Be.getInstance(this.options.id).error("Error loading list-style-image "+m),[3,18];case 18:return[3,20];case 19:e.listValue&&n.styles.listStyleType!==Sn.NONE&&(this.ctx.font=this.createFontStyle(a)[0],this.ctx.fillStyle=te(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",v=new s(n.bounds.left,n.bounds.top+Wt(n.styles.paddingTop,n.bounds.width),n.bounds.width,(y=a.lineHeight,b=a.fontSize.number,(Ot(y)&&"normal"===y.value?1.2*b:y.type===h.NUMBER_TOKEN?b*y.number:Mt(y)?Wt(y,b):b)/2+1)),this.renderTextWithLetterSpacing(new Ui(e.listValue,v),a.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),r.label=20;case 20:return[2]}var y,b})})},t.prototype.renderStackContent=function(t){return i(this,void 0,void 0,function(){var e,n,i,s,a,o,u,l,c,A,h,d,f,p,g;return r(this,function(r){switch(r.label){case 0:return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:r.sent(),e=0,n=t.negativeZIndex,r.label=2;case 2:return e<n.length?(g=n[e],[4,this.renderStack(g)]):[3,5];case 3:r.sent(),r.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:r.sent(),i=0,s=t.nonInlineLevel,r.label=7;case 7:return i<s.length?(g=s[i],[4,this.renderNode(g)]):[3,10];case 8:r.sent(),r.label=9;case 9:return i++,[3,7];case 10:a=0,o=t.nonPositionedFloats,r.label=11;case 11:return a<o.length?(g=o[a],[4,this.renderStack(g)]):[3,14];case 12:r.sent(),r.label=13;case 13:return a++,[3,11];case 14:u=0,l=t.nonPositionedInlineLevel,r.label=15;case 15:return u<l.length?(g=l[u],[4,this.renderStack(g)]):[3,18];case 16:r.sent(),r.label=17;case 17:return u++,[3,15];case 18:c=0,A=t.inlineLevel,r.label=19;case 19:return c<A.length?(g=A[c],[4,this.renderNode(g)]):[3,22];case 20:r.sent(),r.label=21;case 21:return c++,[3,19];case 22:h=0,d=t.zeroOrAutoZIndexOrTransformedOrOpacity,r.label=23;case 23:return h<d.length?(g=d[h],[4,this.renderStack(g)]):[3,26];case 24:r.sent(),r.label=25;case 25:return h++,[3,23];case 26:f=0,p=t.positiveZIndex,r.label=27;case 27:return f<p.length?(g=p[f],[4,this.renderStack(g)]):[3,30];case 28:r.sent(),r.label=29;case 29:return f++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},t.prototype.formatPath=function(t){var e=this;t.forEach(function(t,n){var i=Jr(t)?t.start:t;0===n?e.ctx.moveTo(i.x,i.y):e.ctx.lineTo(i.x,i.y),Jr(t)&&e.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)})},t.prototype.renderRepeat=function(t,e,n,i){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},t.prototype.resizeImage=function(t,e,n){if(t.width===e&&t.height===n)return t;var i=this.canvas.ownerDocument.createElement("canvas");return i.width=e,i.height=n,i.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,e,n),i},t.prototype.renderBackgroundImage=function(t){return i(this,void 0,void 0,function(){var e,n,i,s,a,o;return r(this,function(u){switch(u.label){case 0:e=t.styles.backgroundImage.length-1,n=function(n){var s,a,o,u,l,c,A,h,d,f,p,g,m,v,y,b,_,w,B,C,T,E,S,k,x,U,I,F,O,Q,N;return r(this,function(r){switch(r.label){case 0:if(n.type!==ce.URL)return[3,5];s=void 0,a=n.url,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i.options.cache.match(a)];case 2:return s=r.sent(),[3,4];case 3:return r.sent(),Be.getInstance(i.options.id).error("Error loading background-image "+a),[3,4];case 4:return s&&(o=hs(t,e,[s.width,s.height,s.width/s.height]),b=o[0],E=o[1],S=o[2],B=o[3],C=o[4],v=i.ctx.createPattern(i.resizeImage(s,B,C),"repeat"),i.renderRepeat(b,v,E,S)),[3,6];case 5:n.type===ce.LINEAR_GRADIENT?(u=hs(t,e,[null,null,null]),b=u[0],E=u[1],S=u[2],B=u[3],C=u[4],l=pe(n.angle,B,C),c=l[0],A=l[1],h=l[2],d=l[3],f=l[4],(p=document.createElement("canvas")).width=B,p.height=C,g=p.getContext("2d"),m=g.createLinearGradient(A,d,h,f),fe(n.stops,c).forEach(function(t){return m.addColorStop(t.stop,te(t.color))}),g.fillStyle=m,g.fillRect(0,0,B,C),B>0&&C>0&&(v=i.ctx.createPattern(p,"repeat"),i.renderRepeat(b,v,E,S))):function(t){return t.type===ce.RADIAL_GRADIENT}(n)&&(y=hs(t,e,[null,null,null]),b=y[0],_=y[1],w=y[2],B=y[3],C=y[4],T=0===n.position.length?[Vt]:n.position,E=Wt(T[0],B),S=Wt(T[T.length-1],C),k=function(t,e,n,i,r){var s=0,a=0;switch(t.size){case Le.CLOSEST_SIDE:t.shape===Ne.CIRCLE?s=a=Math.min(Math.abs(e),Math.abs(e-i),Math.abs(n),Math.abs(n-r)):t.shape===Ne.ELLIPSE&&(s=Math.min(Math.abs(e),Math.abs(e-i)),a=Math.min(Math.abs(n),Math.abs(n-r)));break;case Le.CLOSEST_CORNER:if(t.shape===Ne.CIRCLE)s=a=Math.min(ge(e,n),ge(e,n-r),ge(e-i,n),ge(e-i,n-r));else if(t.shape===Ne.ELLIPSE){var o=Math.min(Math.abs(n),Math.abs(n-r))/Math.min(Math.abs(e),Math.abs(e-i)),u=me(i,r,e,n,!0),l=u[0],c=u[1];a=o*(s=ge(l-e,(c-n)/o))}break;case Le.FARTHEST_SIDE:t.shape===Ne.CIRCLE?s=a=Math.max(Math.abs(e),Math.abs(e-i),Math.abs(n),Math.abs(n-r)):t.shape===Ne.ELLIPSE&&(s=Math.max(Math.abs(e),Math.abs(e-i)),a=Math.max(Math.abs(n),Math.abs(n-r)));break;case Le.FARTHEST_CORNER:if(t.shape===Ne.CIRCLE)s=a=Math.max(ge(e,n),ge(e,n-r),ge(e-i,n),ge(e-i,n-r));else if(t.shape===Ne.ELLIPSE){o=Math.max(Math.abs(n),Math.abs(n-r))/Math.max(Math.abs(e),Math.abs(e-i));var A=me(i,r,e,n,!1);l=A[0],c=A[1],a=o*(s=ge(l-e,(c-n)/o))}}return Array.isArray(t.size)&&(s=Wt(t.size[0],i),a=2===t.size.length?Wt(t.size[1],r):s),[s,a]}(n,E,S,B,C),x=k[0],U=k[1],x>0&&x>0&&(I=i.ctx.createRadialGradient(_+E,w+S,0,_+E,w+S,x),fe(n.stops,2*x).forEach(function(t){return I.addColorStop(t.stop,te(t.color))}),i.path(b),i.ctx.fillStyle=I,x!==U?(F=t.bounds.left+.5*t.bounds.width,O=t.bounds.top+.5*t.bounds.height,N=1/(Q=U/x),i.ctx.save(),i.ctx.translate(F,O),i.ctx.transform(1,0,0,Q,0,0),i.ctx.translate(-F,-O),i.ctx.fillRect(_,N*(w-O)+O,B,C*N),i.ctx.restore()):i.ctx.fill())),r.label=6;case 6:return e--,[2]}})},i=this,s=0,a=t.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return s<a.length?(o=a[s],[5,n(o)]):[3,4];case 2:u.sent(),u.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},t.prototype.renderBorder=function(t,e,n){return i(this,void 0,void 0,function(){return r(this,function(i){return this.path(function(t,e){switch(e){case 0:return ls(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return ls(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return ls(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return ls(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}}(n,e)),this.ctx.fillStyle=te(t),this.ctx.fill(),[2]})})},t.prototype.renderNodeBackgroundAndBorders=function(t){return i(this,void 0,void 0,function(){var e,n,i,s,a,o,u,l,c=this;return r(this,function(r){switch(r.label){case 0:return this.applyEffects(t.effects,2),e=t.container.styles,n=!Zt(e.backgroundColor)||e.backgroundImage.length,i=[{style:e.borderTopStyle,color:e.borderTopColor},{style:e.borderRightStyle,color:e.borderRightColor},{style:e.borderBottomStyle,color:e.borderBottomColor},{style:e.borderLeftStyle,color:e.borderLeftColor}],s=_s(gs(e.backgroundClip,0),t.curves),n||e.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Zt(e.backgroundColor)||(this.ctx.fillStyle=te(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:r.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(function(e){c.ctx.save();var n,i,r,s,a,o=es(t.curves),u=e.inset?0:1e4,l=(n=o,i=-u+(e.inset?1:-1)*e.spread.number,r=(e.inset?1:-1)*e.spread.number,s=e.spread.number*(e.inset?-2:2),a=e.spread.number*(e.inset?-2:2),n.map(function(t,e){switch(e){case 0:return t.add(i,r);case 1:return t.add(i+s,r);case 2:return t.add(i+s,r+a);case 3:return t.add(i,r+a)}return t}));e.inset?(c.path(o),c.ctx.clip(),c.mask(l)):(c.mask(o),c.ctx.clip(),c.path(l)),c.ctx.shadowOffsetX=e.offsetX.number+u,c.ctx.shadowOffsetY=e.offsetY.number,c.ctx.shadowColor=te(e.color),c.ctx.shadowBlur=e.blur.number,c.ctx.fillStyle=e.inset?te(e.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()}),r.label=2;case 2:a=0,o=0,u=i,r.label=3;case 3:return o<u.length?(l=u[o]).style===$e.NONE||Zt(l.color)?[3,5]:[4,this.renderBorder(l.color,a,t.curves)]:[3,7];case 4:r.sent(),r.label=5;case 5:a++,r.label=6;case 6:return o++,[3,3];case 7:return[2]}})})},t.prototype.render=function(t){return i(this,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=te(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),i=new as(t,[]),r=new ss(i),os(i,r,r,s=[]),us(i.container,s),e=r,[4,this.renderStack(e)];case 1:return n.sent(),this.applyEffects([],2),[2,this.canvas]}var i,r,s})})},t}(),bs=function(t){return t instanceof tr||(t instanceof Zi||t instanceof Ji&&t.type!==qi&&t.type!==Xi)},_s=function(t,e){switch(t){case ae.BORDER_BOX:return es(e);case ae.CONTENT_BOX:return function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]}(e);case ae.PADDING_BOX:default:return ns(e)}},ws=function(t){switch(t){case Pn.CENTER:return"center";case Pn.RIGHT:return"right";case Pn.LEFT:default:return"left"}},Bs=function(){function t(t){this.canvas=t.canvas?t.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=t,this.canvas.width=Math.floor(t.width*t.scale),this.canvas.height=Math.floor(t.height*t.scale),this.canvas.style.width=t.width+"px",this.canvas.style.height=t.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-t.x+t.scrollX,-t.y+t.scrollY),Be.getInstance(t.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale)}return t.prototype.render=function(t){return i(this,void 0,void 0,function(){var e,n;return r(this,function(i){switch(i.label){case 0:return e=be(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,t),[4,Cs(e)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=te(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(),Cs=function(t){return new Promise(function(e,n){var i=new Image;i.onload=function(){e(i)},i.onerror=n,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))})},Ts=function(t){return Jt(Ut.create(t).parseComponentValue())};Ce.setContext(window);var Es=function(t,e){return i(void 0,void 0,void 0,function(){var i,o,u,l,c,A,h,d,f,p,g,m,v,y,b,_,w,B,C,T,E,S,k;return r(this,function(r){switch(r.label){case 0:if(!(i=t.ownerDocument))throw new Error("Element is not attached to a Document");if(!(o=i.defaultView))throw new Error("Document is not attached to a Window");return u=(Math.round(1e3*Math.random())+Date.now()).toString(16),l=gr(t)||"HTML"===t.tagName?function(t){var e=t.body,n=t.documentElement;if(!e||!n)throw new Error("Unable to get document size");var i=Math.max(Math.max(e.scrollWidth,n.scrollWidth),Math.max(e.offsetWidth,n.offsetWidth),Math.max(e.clientWidth,n.clientWidth)),r=Math.max(Math.max(e.scrollHeight,n.scrollHeight),Math.max(e.offsetHeight,n.offsetHeight),Math.max(e.clientHeight,n.clientHeight));return new s(0,0,i,r)}(i):a(t),c=l.width,A=l.height,h=l.left,d=l.top,f=n({},{allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},e),p={backgroundColor:"#ffffff",cache:e.cache?e.cache:Ce.create(u,f),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:o.devicePixelRatio||1,windowWidth:o.innerWidth,windowHeight:o.innerHeight,scrollX:o.pageXOffset,scrollY:o.pageYOffset,x:h,y:d,width:Math.ceil(c),height:Math.ceil(A),id:u},g=n({},p,f,e),m=new s(g.scrollX,g.scrollY,g.windowWidth,g.windowHeight),Be.create(u),Be.getInstance(u).debug("Starting document clone"),v=new Nr(t,{id:u,onclone:g.onclone,ignoreElements:g.ignoreElements,inlineImages:g.foreignObjectRendering,copyStyles:g.foreignObjectRendering}),(y=v.clonedReferenceElement)?[4,v.toIFrame(i,m)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return b=r.sent(),_=i.documentElement?Ts(getComputedStyle(i.documentElement).backgroundColor):le.TRANSPARENT,w=i.body?Ts(getComputedStyle(i.body).backgroundColor):le.TRANSPARENT,B=e.backgroundColor,C="string"==typeof B?Ts(B):null===B?le.TRANSPARENT:4294967295,T=t===i.documentElement?Zt(_)?Zt(w)?C:w:_:C,E={id:u,cache:g.cache,backgroundColor:T,scale:g.scale,x:g.x,y:g.y,scrollX:g.scrollX,scrollY:g.scrollY,width:g.width,height:g.height,windowWidth:g.windowWidth,windowHeight:g.windowHeight},g.foreignObjectRendering?(Be.getInstance(u).debug("Document cloned, using foreign object rendering"),[4,new Bs(E).render(y)]):[3,3];case 2:return S=r.sent(),[3,5];case 3:return Be.getInstance(u).debug("Document cloned, using computed rendering"),Ce.attachInstance(g.cache),Be.getInstance(u).debug("Starting DOM parsing"),k=ar(y),Ce.detachInstance(),T===k.styles.backgroundColor&&(k.styles.backgroundColor=le.TRANSPARENT),Be.getInstance(u).debug("Starting renderer"),[4,new ys(E).render(k)];case 4:S=r.sent(),r.label=5;case 5:return!0===g.removeContainer&&(Ss(b)||Be.getInstance(u).error("Cannot detach cloned iframe as it is not in the DOM anymore")),Be.getInstance(u).debug("Finished rendering"),Be.destroy(u),Ce.destroy(u),[2,S]}})})},Ss=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)};return function(t,e){return void 0===e&&(e={}),Es(t,e)}},t.exports=i()},evD5:function(t,e,n){var i=n("77Pl"),r=n("SfB7"),s=n("MmMw"),a=Object.defineProperty;e.f=n("+E39")?Object.defineProperty:function(t,e,n){if(i(t),e=s(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},fJUb:function(t,e,n){var i=n("77Pl"),r=n("EqjI"),s=n("qARP");t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=s.f(t);return(0,n.resolve)(e),n.promise}},fkB2:function(t,e,n){var i=n("UuGF"),r=Math.max,s=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):s(t,e)}},fuGk:function(t,e,n){"use strict";var i=n("cGG2");function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=r},fx5k:function(t,e,n){var i,r,s,a,o;i=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,r=/^([^\/?#]*)([^]*)$/,s=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(t,e,n){if(n=n||{},t=t.trim(),!(e=e.trim())){if(!n.alwaysNormalize)return t;var i=o.parseURL(t);if(!i)throw new Error("Error trying to parse base URL.");return i.path=o.normalizePath(i.path),o.buildURLFromParts(i)}var s=o.parseURL(e);if(!s)throw new Error("Error trying to parse relative URL.");if(s.scheme)return n.alwaysNormalize?(s.path=o.normalizePath(s.path),o.buildURLFromParts(s)):e;var a=o.parseURL(t);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var u=r.exec(a.path);a.netLoc=u[1],a.path=u[2]}a.netLoc&&!a.path&&(a.path="/");var l={scheme:a.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(l.netLoc=a.netLoc,"/"!==s.path[0]))if(s.path){var c=a.path,A=c.substring(0,c.lastIndexOf("/")+1)+s.path;l.path=o.normalizePath(A)}else l.path=a.path,s.params||(l.params=a.params,s.query||(l.query=a.query));return null===l.path&&(l.path=n.alwaysNormalize?o.normalizePath(s.path):s.path),o.buildURLFromParts(l)},parseURL:function(t){var e=i.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(s,"");t.length!==(t=t.replace(a,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=o},h65t:function(t,e,n){var i=n("UuGF"),r=n("52gC");t.exports=function(t){return function(e,n){var s,a,o=String(r(e)),u=i(n),l=o.length;return u<0||u>=l?t?"":void 0:(s=o.charCodeAt(u))<55296||s>56319||u+1===l||(a=o.charCodeAt(u+1))<56320||a>57343?t?o.charAt(u):s:t?o.slice(u,u+2):a-56320+(s-55296<<10)+65536}}},hJx8:function(t,e,n){var i=n("evD5"),r=n("X8DO");t.exports=n("+E39")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},iUbK:function(t,e,n){var i=n("7KvD").navigator;t.exports=i&&i.userAgent||""},"j/rp":function(t,e,n){var i=n("dkdY");t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0},"jKW+":function(t,e,n){"use strict";var i=n("kM2E"),r=n("qARP"),s=n("dNDb");i(i.S,"Promise",{try:function(t){var e=r.f(this),n=s(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},kM2E:function(t,e,n){var i=n("7KvD"),r=n("FeBl"),s=n("+ZMJ"),a=n("hJx8"),o=n("D2L2"),u=function(t,e,n){var l,c,A,h=t&u.F,d=t&u.G,f=t&u.S,p=t&u.P,g=t&u.B,m=t&u.W,v=d?r:r[e]||(r[e]={}),y=v.prototype,b=d?i:f?i[e]:(i[e]||{}).prototype;for(l in d&&(n=e),n)(c=!h&&b&&void 0!==b[l])&&o(v,l)||(A=c?b[l]:n[l],v[l]=d&&"function"!=typeof b[l]?n[l]:g&&c?s(A,i):m&&b[l]==A?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(A):p&&"function"==typeof A?s(Function.call,A):A,p&&((v.virtual||(v.virtual={}))[l]=A,t&u.R&&y&&!y[l]&&a(y,l,A)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},knuC:function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},kx0S:function(t,e,n){var i=n("dkdY"),r=n("ARpH");function s(e,n,a){return r()?(t.exports=s=Reflect.construct,t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=s=function(t,e,n){var r=[null];r.push.apply(r,e);var s=new(Function.bind.apply(t,r));return n&&i(s,n.prototype),s},t.exports.default=t.exports,t.exports.__esModule=!0),s.apply(null,arguments)}t.exports=s,t.exports.default=t.exports,t.exports.__esModule=!0},lOnJ:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},lamJ:function(t,e){var n,i,r,s,a,o,u;n=function(t){return 9e4*t},i=function(t,e){return t*e},r=function(t){return t/9e4},s=function(t,e){return t/e},a=function(t,e){return n(s(t,e))},o=function(t,e){return i(r(t),e)},u=function(t,e,n){return r(n?t:t-e)},t.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:n,secondsToAudioTs:i,videoTsToSeconds:r,audioTsToSeconds:s,audioTsToVideoTs:a,videoTsToAudioTs:o,metadataTsToSeconds:u}},ljAp:function(t,e){function n(t){if(t&&"object"==typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"==typeof t)return a[t];var n,s=String(t);return(n=i[s.toLowerCase()])?n:(n=r[s.toLowerCase()])||(1===s.length?s.charCodeAt(0):void 0)}n.isEventKey=function(t,e){if(t&&"object"==typeof t){var n=t.which||t.keyCode||t.charCode;if(null===n||void 0===n)return!1;if("string"==typeof e){var s;if(s=i[e.toLowerCase()])return s===n;if(s=r[e.toLowerCase()])return s===n}else if("number"==typeof e)return e===n;return!1}};var i=(e=t.exports=n).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=e.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};
- /*!
- * Programatically add the following
- */
- for(s=97;s<123;s++)i[String.fromCharCode(s)]=s-32;for(var s=48;s<58;s++)i[s-48]=s;for(s=1;s<13;s++)i["f"+s]=s+111;for(s=0;s<10;s++)i["numpad "+s]=s+96;var a=e.names=e.title={};for(s in i)a[i[s]]=s;for(var o in r)i[o]=r[o]},lktj:function(t,e,n){var i=n("Ibhu"),r=n("xnc9");t.exports=Object.keys||function(t){return i(t,r)}},lt8z:function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},t.exports.default=t.exports,t.exports.__esModule=!0,n.apply(this,arguments)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},mRXp:function(t,e,n){"use strict";e.b=function(t){return/^\d+(\.\d+)?$/.test(t)},e.a=function(t){if(Number.isNaN)return Number.isNaN(t);return t!=t}},msXi:function(t,e,n){var i=n("77Pl");t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var s=t.return;throw void 0!==s&&i(s.call(t)),e}}},mtWM:function(t,e,n){t.exports=n("tIFN")},mvHQ:function(t,e,n){t.exports={default:n("qkKv"),__esModule:!0}},o69Z:function(t,e,n){"use strict";var i=n("7+uW");function r(t){return function(e,n){return e&&"string"!=typeof e&&(n=e,e=""),""+(e=e?t+"__"+e:t)+function t(e,n){return n?"string"==typeof n?" "+e+"--"+n:Array.isArray(n)?n.reduce(function(n,i){return n+t(e,i)},""):Object.keys(n).reduce(function(i,r){return i+(n[r]?t(e,r):"")},""):""}(e,n)}}var s=n("S06l"),a=n("YNA3"),o={methods:{slots:function(t,e){void 0===t&&(t="default");var n=this.$slots,i=this.$scopedSlots[t];return i?i(e):n[t]}}};function u(t){var e=this.name;t.component(e,this),t.component(Object(a.a)("-"+e),this)}function l(t){return{functional:!0,props:t.props,model:t.model,render:function(e,n){return t(e,n.props,function(t){var e=t.scopedSlots||t.data.scopedSlots||{},n=t.slots();return Object.keys(n).forEach(function(t){e[t]||(e[t]=function(){return n[t]})}),e}(n),n)}}}function c(t){return[function(t){return function(e){return f(e)&&(e=l(e)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(o)),e.name=t,e.install=u,e}}(t="van-"+t),r(t),function(t){var e=Object(a.a)(t)+".";return function(t){for(var n=s.a.messages(),i=g(n,e+t)||g(n,t),r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];return f(i)?i.apply(void 0,a):i}}(t)]}var A=n("4PMK");n.d(e,"d",function(){return h}),n.d(e,"j",function(){return d}),e.k=function(){},e.e=function(t){return void 0!==t&&null!==t},e.g=f,e.h=p,e.i=function(t){return p(t)&&f(t.then)&&f(t.catch)},e.c=g,e.f=function(t){if(null==t)return!0;if("object"!=typeof t)return!0;return 0===Object.keys(t).length},n.d(e,"b",function(){return c}),n.d(e,"a",function(){return A.a});var h="undefined"!=typeof window,d=i.a.prototype.$isServer;function f(t){return"function"==typeof t}function p(t){return null!==t&&"object"==typeof t}function g(t,e){var n=t;return e.split(".").forEach(function(t){var e;n=null!=(e=n[t])?e:""}),n}},oJlt:function(t,e,n){"use strict";var i=n("cGG2"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,s,a={};return t?(i.forEach(t.split("\n"),function(t){if(s=t.indexOf(":"),e=i.trim(t.substr(0,s)).toLowerCase(),n=i.trim(t.substr(s+1)),e){if(a[e]&&r.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}}),a):a}},p1b6:function(t,e,n){"use strict";var i=n("cGG2");t.exports=i.isStandardBrowserEnv()?{write:function(t,e,n,r,s,a){var o=[];o.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),i.isString(r)&&o.push("path="+r),i.isString(s)&&o.push("domain="+s),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},pBtG:function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},pxG4:function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},qARP:function(t,e,n){"use strict";var i=n("lOnJ");t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)}(t)}},qRfI:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},qio6:function(t,e,n){var i=n("evD5"),r=n("77Pl"),s=n("lktj");t.exports=n("+E39")?Object.defineProperties:function(t,e){r(t);for(var n,a=s(e),o=a.length,u=0;o>u;)i.f(t,n=a[u++],e[n]);return t}},qkKv:function(t,e,n){var i=n("FeBl"),r=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},sB3e:function(t,e,n){var i=n("52gC");t.exports=function(t){return Object(i(t))}},sOR5:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},t8qj:function(t,e,n){"use strict";t.exports=function(t,e,n,i,r){return t.config=e,n&&(t.code=n),t.request=i,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},t8x9:function(t,e,n){var i=n("77Pl"),r=n("lOnJ"),s=n("dSzd")("species");t.exports=function(t,e){var n,a=i(t).constructor;return void 0===a||void 0==(n=i(a)[s])?e:r(n)}},tIFN:function(t,e,n){"use strict";var i=n("cGG2"),r=n("JP+z"),s=n("XmWM"),a=n("DUeU");function o(t){var e=new s(t),n=r(s.prototype.request,e);return i.extend(n,s.prototype,e),i.extend(n,e),n}var u=o(n("KCLY"));u.Axios=s,u.create=function(t){return o(a(u.defaults,t))},u.Cancel=n("dVOP"),u.CancelToken=n("cWxy"),u.isCancel=n("pBtG"),u.all=function(t){return Promise.all(t)},u.spread=n("pxG4"),u.isAxiosError=n("SLDG"),t.exports=u,t.exports.default=u},ujcs:function(t,e){
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
- e.read=function(t,e,n,i,r){var s,a,o=8*r-i-1,u=(1<<o)-1,l=u>>1,c=-7,A=n?r-1:0,h=n?-1:1,d=t[e+A];for(A+=h,s=d&(1<<-c)-1,d>>=-c,c+=o;c>0;s=256*s+t[e+A],A+=h,c-=8);for(a=s&(1<<-c)-1,s>>=-c,c+=i;c>0;a=256*a+t[e+A],A+=h,c-=8);if(0===s)s=1-l;else{if(s===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),s-=l}return(d?-1:1)*a*Math.pow(2,s-i)},e.write=function(t,e,n,i,r,s){var a,o,u,l=8*s-r-1,c=(1<<l)-1,A=c>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:s-1,f=i?1:-1,p=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+A>=1?h/u:h*Math.pow(2,1-A))*u>=2&&(a++,u/=2),a+A>=c?(o=0,a=c):a+A>=1?(o=(e*u-1)*Math.pow(2,r),a+=A):(o=e*Math.pow(2,A-1)*Math.pow(2,r),a=0));r>=8;t[n+d]=255&o,d+=f,o/=256,r-=8);for(a=a<<r|o,l+=r;l>0;t[n+d]=255&a,d+=f,a/=256,l-=8);t[n+d-f]|=128*p}},"vFc/":function(t,e,n){var i=n("TcQ7"),r=n("QRG4"),s=n("fkB2");t.exports=function(t){return function(e,n,a){var o,u=i(e),l=r(u.length),c=s(a,l);if(t&&n!=n){for(;l>c;)if((o=u[c++])!=o)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},"vIB/":function(t,e,n){"use strict";var i=n("O4g8"),r=n("kM2E"),s=n("880/"),a=n("hJx8"),o=n("/bQp"),u=n("94VQ"),l=n("e6n0"),c=n("PzxK"),A=n("dSzd")("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,f,p,g,m){u(n,e,f);var v,y,b,_=function(t){if(!h&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",B="values"==p,C=!1,T=t.prototype,E=T[A]||T["@@iterator"]||p&&T[p],S=E||_(p),k=p?B?_("entries"):S:void 0,x="Array"==e&&T.entries||E;if(x&&(b=c(x.call(new t)))!==Object.prototype&&b.next&&(l(b,w,!0),i||"function"==typeof b[A]||a(b,A,d)),B&&E&&"values"!==E.name&&(C=!0,S=function(){return E.call(this)}),i&&!m||!h&&!C&&T[A]||a(T,A,S),o[e]=S,o[w]=d,p)if(v={values:B?S:_("values"),keys:g?S:_("keys"),entries:k},m)for(y in v)y in T||s(T,y,v[y]);else r(r.P+r.F*(h||C),e,v);return v}},wvfG:function(t,e,n){var i=n("W1rN"),r={autoSetContainer:!1,appendToBody:!0},s={install:function(t){t.prototype.$clipboardConfig=r,t.prototype.$copyText=function(t,e){return new Promise(function(n,s){var a=document.createElement("button"),o=new i(a,{text:function(){return t},action:function(){return"copy"},container:"object"==typeof e?e:document.body});o.on("success",function(t){o.destroy(),n(t)}),o.on("error",function(t){o.destroy(),s(t)}),r.appendToBody&&document.body.appendChild(a),a.click(),r.appendToBody&&document.body.removeChild(a)})},t.directive("clipboard",{bind:function(t,e,n){if("success"===e.arg)t._vClipboard_success=e.value;else if("error"===e.arg)t._vClipboard_error=e.value;else{var s=new i(t,{text:function(){return e.value},action:function(){return"cut"===e.arg?"cut":"copy"},container:r.autoSetContainer?t:void 0});s.on("success",function(e){var n=t._vClipboard_success;n&&n(e)}),s.on("error",function(e){var n=t._vClipboard_error;n&&n(e)}),t._vClipboard=s}},update:function(t,e){"success"===e.arg?t._vClipboard_success=e.value:"error"===e.arg?t._vClipboard_error=e.value:(t._vClipboard.text=function(){return e.value},t._vClipboard.action=function(){return"cut"===e.arg?"cut":"copy"})},unbind:function(t,e){"success"===e.arg?delete t._vClipboard_success:"error"===e.arg?delete t._vClipboard_error:(t._vClipboard.destroy(),delete t._vClipboard)}})},config:r};t.exports=s},xGkn:function(t,e,n){"use strict";var i=n("4mcu"),r=n("EGZi"),s=n("/bQp"),a=n("TcQ7");t.exports=n("vIB/")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),s.Arguments=s.Array,i("keys"),i("values"),i("entries")},"xH/j":function(t,e,n){var i=n("hJx8");t.exports=function(t,e,n){for(var r in e)n&&t[r]?t[r]=e[r]:i(t,r,e[r]);return t}},xLtR:function(t,e,n){"use strict";var i=n("cGG2"),r=n("TNV1"),s=n("pBtG"),a=n("KCLY");function o(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return o(t),t.headers=t.headers||{},t.data=r(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||a.adapter)(t).then(function(e){return o(t),e.data=r(e.data,e.headers,t.transformResponse),e},function(e){return s(e)||(o(t),e&&e.response&&(e.response.data=r(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},xnc9:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},zQR9:function(t,e,n){"use strict";var i=n("h65t")(!0);n("vIB/")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})}});
- //# sourceMappingURL=vendor.12a1cb90f3879ebfeeb6.js.map
|