mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
25 lines
527 KiB
JavaScript
25 lines
527 KiB
JavaScript
(window["webpackJsonp_security-control"]=window["webpackJsonp_security-control"]||[]).push([["chunk-2d237e67"],{fca5:function(t,e,n){!function(e,i){t.exports=i(n("2b0e"),n("c1df"))}(window,(function(t,e){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=43)}([,,function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,i,r,o=t[1]||"",a=t[3];if(!a)return o;if(e&&"function"==typeof btoa){var s=(n=a,i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(r," */")),l=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[o].concat(l).concat([s]).join("\n")}return[o].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},function(t,e,n){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},i=[],r=0;r<t.length;r++){var o=t[r],l=e.base?o[0]+e.base:o[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var h=s(u),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==h?(a[h].references++,a[h].updater(d)):a.push({identifier:u,updater:y(d,e),references:1}),i.push(u)}return i}function c(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var u,h=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function d(t,e,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=h(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function f(t,e,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var p=null,v=0;function y(t,e){var n,i,r;if(e.singleton){var o=v++;n=p||(p=c(e)),i=d.bind(null,n,o,!1),r=d.bind(null,n,o,!0)}else n=c(e),i=f.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var r=s(n[i]);a[r].references--}for(var o=l(t,e),c=0;c<n.length;c++){var u=s(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},function(e,n){e.exports=t},,,,function(t,e,n){var i=n(3),r=n(34);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(36);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(38);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(40);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),t.exports=r.locals||{}},function(t,e,n){var i=n(3),r=n(42);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),t.exports=r.locals||{}},function(t,e,n){(function(t){var i,r,o,a;function s(t){return(s="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)}"undefined"!=typeof self&&self,a=function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===s(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var i=n("2d00"),r=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),h=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),f="keys",p="values",v=function(){return this};t.exports=function(t,e,n,y,m,g,w){l(n,e,y);var b,_,x,S=function(t){if(!d&&t in A)return A[t];switch(t){case f:case p:return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",k=m==p,C=!1,A=t.prototype,T=A[h]||A["@@iterator"]||m&&A[m],R=T||S(m),D=m?k?S("entries"):R:void 0,O="Array"==e&&A.entries||T;if(O&&(x=u(O.call(new t)))!==Object.prototype&&x.next&&(c(x,E,!0),i||"function"==typeof x[h]||a(x,h,v)),k&&T&&T.name!==p&&(C=!0,R=function(){return T.call(this)}),i&&!w||!d&&!C&&A[h]||a(A,h,R),s[e]=R,s[E]=v,m)if(b={values:k?R:S(p),keys:g?R:S(f),entries:D},w)for(_ in b)_ in A||o(A,_,b[_]);else r(r.P+r.F*(d||C),e,b);return b}},"02f4":function(t,e,n){var i=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),l=i(n),c=s.length;return l<0||l>=c?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"09fa":function(t,e,n){var i=n("4588"),r=n("9def");t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw RangeError("Wrong length!");return n}},"0a49":function(t,e,n){var i=n("9b43"),r=n("626a"),o=n("4bf8"),a=n("9def"),s=n("cd1c");t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,h=6==t,d=5==t||h,f=e||s;return function(e,s,p){for(var v,y,m=o(e),g=r(m),w=i(s,p,3),b=a(g.length),_=0,x=n?f(e,b):l?f(e,0):void 0;b>_;_++)if((d||_ in g)&&(y=w(v=g[_],_,m),t))if(n)x[_]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return _;case 2:x.push(v)}else if(u)return!1;return h?-1:c||u?u:x}}},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var i=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return i(t,r)}},"0f0d":function(t,e,n){var i=n("3e2e");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("13fdd262",i,!0,{sourceMap:!1,shadowMode:!1})},"0f88":function(t,e,n){for(var i,r=n("7726"),o=n("32e9"),a=n("ca5a"),s=a("typed_array"),l=a("view"),c=!(!r.ArrayBuffer||!r.DataView),u=c,h=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(i=r[d[h++]])?(o(i.prototype,s,!0),o(i.prototype,l,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},1169:function(t,e,n){var i=n("2d95");t.exports=Array.isArray||function(t){return"Array"==i(t)}},"11e9":function(t,e,n){var i=n("52a7"),r=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),l=n("c69a"),c=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?c:function(t,e){if(t=o(t),e=a(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},1495:function(t,e,n){var i=n("86cc"),r=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),s=a.length,l=0;s>l;)i.f(t,n=a[l++],e[n]);return t}},"14e8":function(t,e,n){var i=n("aa8a");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("4708d7cf",i,!0,{sourceMap:!1,shadowMode:!1})},1820:function(t,e,n){"use strict";var i=n("2cd7");n.n(i).a},"18d2":function(t,e,n){"use strict";var i=n("18e9");t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,r=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function o(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function a(t){return r(t).object}return{makeDetectable:function(t,a,s){s||(s=a,a=t,t=null),(t=t||{}).debug,i.isIE(8)?s(a):function(a,s){var l=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),c=!1,u=window.getComputedStyle(a),h=a.offsetWidth,d=a.offsetHeight;function f(){function n(){if("static"===u.position){a.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,i,r){var o=i[r];"auto"!==o&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",n),n.style.setProperty(r,"0",t.important?"important":""))};n(e,a,u,"top"),n(e,a,u,"right"),n(e,a,u,"bottom"),n(e,a,u,"left")}}""!==u.position&&(n(),c=!0);var o=document.createElement("object");o.style.cssText=l,o.tabIndex=-1,o.type="text/html",o.setAttribute("aria-hidden","true"),o.onload=function(){c||n(),function t(e,n){if(!e.contentDocument){var i=r(e);return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout((function(){i.checkForObjectDocumentTimeoutId=0,t(e,n)}),100))}n(e.contentDocument)}(this,(function(t){s(a)}))},i.isIE()||(o.data="about:blank"),r(a)&&(a.appendChild(o),r(a).object=o,i.isIE()&&(o.data="about:blank"))}r(a).startSize={width:h,height:d},n?n.add(f):f()}(a,s)},addListener:function(t,e){function n(){e(t)}if(i.isIE(8))r(t).object={proxy:n},t.attachEvent("onresize",n);else{var o=a(t);if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(t){if(r(t)){var e=a(t);e&&(i.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),r(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(r(t).checkForObjectDocumentTimeoutId),delete r(t).object)}}}}},"18e9":function(t,e,n){"use strict";var i=t.exports={};i.isIE=function(t){return!(!function(){var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}()||t&&t!==function(){var t=3,e=document.createElement("div"),n=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(n[0]);return t>4?t:void 0}())},i.isLegacyOpera=function(){return!!window.opera}},1991:function(t,e,n){var i,r,o,a=n("9b43"),s=n("31f4"),l=n("fab2"),c=n("230e"),u=n("7726"),h=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,v=u.Dispatch,y=0,m={},g="onreadystatechange",w=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},b=function(t){w.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++y]=function(){s("function"==typeof t?t:Function(t),e)},i(y),y},f=function(t){delete m[t]},"process"==n("2d95")(h)?i=function(t){h.nextTick(a(w,t,1))}:v&&v.now?i=function(t){v.now(a(w,t,1))}:p?(o=(r=new p).port2,r.port1.onmessage=b,i=a(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):i=g in c("script")?function(t){l.appendChild(c("script"))[g]=function(){l.removeChild(this),w.call(t)}}:function(t){setTimeout(a(w,t,1),0)}),t.exports={set:d,clear:f}},"1c4c":function(t,e,n){"use strict";var i=n("9b43"),r=n("5ca1"),o=n("4bf8"),a=n("1fa8"),s=n("33a4"),l=n("9def"),c=n("f1ae"),u=n("27ee");r(r.S+r.F*!n("5cc5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,r,h,d=o(t),f="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,y=void 0!==v,m=0,g=u(d);if(y&&(v=i(v,p>2?arguments[2]:void 0,2)),null==g||f==Array&&s(g))for(n=new f(e=l(d.length));e>m;m++)c(n,m,y?v(d[m],m):d[m]);else for(h=g.call(d),n=new f;!(r=h.next()).done;m++)c(n,m,y?a(h,v,[r.value,m],!0):r.value);return n.length=m,n}})},"1d01":function(t,e,n){"use strict";var i=n("899a");n.n(i).a},"1d3b":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,'.vue-slider-disabled .vue-slider-process{background-color:#a7a7a7}.vue-slider-disabled .vue-slider-dot-handle{border-color:#a7a7a7}.vue-slider-disabled .vue-slider-mark-step-active{-webkit-box-shadow:0 0 0 2px #a7a7a7;box-shadow:0 0 0 2px #a7a7a7}.vue-slider-rail{background-color:#f5f5f5;border-radius:15px;-webkit-transition:background-color .3s;transition:background-color .3s}.vue-slider:hover .vue-slider-rail{background-color:#e1e1e1}.vue-slider-process{background-color:#9cd5ff;border-radius:15px;-webkit-transition:background-color .3s;transition:background-color .3s}.vue-slider:hover .vue-slider-process{background-color:#69c0ff}.vue-slider-mark-step{width:100%;height:100%;border-radius:50%;-webkit-box-shadow:0 0 0 2px #e8e8e8;box-shadow:0 0 0 2px #e8e8e8;background-color:#fff}.vue-slider-mark-step-active{-webkit-box-shadow:0 0 0 2px #9cd5ff;box-shadow:0 0 0 2px #9cd5ff}.vue-slider:hover .vue-slider-mark-step-active{-webkit-box-shadow:0 0 0 2px #69c0ff;box-shadow:0 0 0 2px #69c0ff}.vue-slider-mark-label{font-size:12px;white-space:nowrap}.vue-slider-dot-handle{cursor:pointer;width:100%;height:100%;border-radius:50%;background-color:#fff;border:2px solid #9cd5ff;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:border-color .3s,-webkit-box-shadow .3s;transition:border-color .3s,-webkit-box-shadow .3s;transition:box-shadow .3s,border-color .3s;transition:box-shadow .3s,border-color .3s,-webkit-box-shadow .3s}.vue-slider:hover .vue-slider-dot-handle{border-color:#69c0ff}.vue-slider-dot-handle-focus{border-color:#36abff;-webkit-box-shadow:0 0 0 5px rgba(54,171,255,.2);box-shadow:0 0 0 5px rgba(54,171,255,.2)}.vue-slider-dot-handle:hover,.vue-slider:hover .vue-slider-dot-handle-focus,.vue-slider:hover .vue-slider-dot-handle:hover{border-color:#36abff}.vue-slider-dot-handle-disabled{cursor:not-allowed;border-color:#ddd!important}.vue-slider-dot-tooltip{opacity:0;visibility:hidden;-webkit-transition:all .3s;transition:all .3s}.vue-slider-dot-tooltip-inner{font-size:14px;white-space:nowrap;padding:6px 8px;color:#fff;border-radius:5px;border-color:rgba(0,0,0,.75);background-color:rgba(0,0,0,.75);-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);-webkit-transform:scale(.9);transform:scale(.9);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.vue-slider-dot-tooltip-inner:after{content:"";position:absolute}.vue-slider-dot-tooltip-inner-top:after{top:100%;border-color:transparent;border-style:solid;border-width:5px;border-top-color:inherit}.vue-slider-dot-tooltip-inner-bottom:after,.vue-slider-dot-tooltip-inner-top:after{left:50%;-webkit-transform:translate(-50%);transform:translate(-50%);height:0;width:0}.vue-slider-dot-tooltip-inner-bottom:after{bottom:100%;border-color:transparent;border-style:solid;border-width:5px;border-bottom-color:inherit}.vue-slider-dot-tooltip-inner-left:after{left:100%;border-color:transparent;border-style:solid;border-width:5px;border-left-color:inherit}.vue-slider-dot-tooltip-inner-left:after,.vue-slider-dot-tooltip-inner-right:after{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:0;width:0}.vue-slider-dot-tooltip-inner-right:after{right:100%;border-color:transparent;border-style:solid;border-width:5px;border-right-color:inherit}.vue-slider-dot-tooltip-inner-top{-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.vue-slider-dot-tooltip-inner-bottom{-webkit-transform-origin:50% 0;transform-origin:50% 0}.vue-slider-dot-tooltip-inner-left{-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.vue-slider-dot-tooltip-inner-right{-webkit-transform-origin:0 50%;transform-origin:0 50%}.vue-slider-dot-tooltip-show,.vue-slider-dot:hover .vue-slider-dot-tooltip{opacity:1;visibility:visible}.vue-slider-dot-tooltip-show .vue-slider-dot-tooltip-inner,.vue-slider-dot:hover .vue-slider-dot-tooltip .vue-slider-dot-tooltip-inner{-webkit-transform:scale(1);transform:scale(1)}',""])},"1e97":function(t,e,n){var i=n("b188");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("119712a6",i,!0,{sourceMap:!1,shadowMode:!1})},"1fa8":function(t,e,n){var i=n("cb7c");t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),l=n("520a"),c=s("species"),u=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=s(t),f=!o((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),p=f?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[d](""),!e})):void 0;if(!f||!p||"replace"===t&&!u||"split"===t&&!h){var v=/./[d],y=n(a,d,""[t],(function(t,e,n,i,r){return e.exec===l?f&&!r?{done:!0,value:v.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),m=y[0],g=y[1];i(String.prototype,t,m),r(RegExp.prototype,d,2==e?function(t,e){return g.call(t,this,e)}:function(t){return g.call(t,this)})}}},"215a":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".no-border,.no-border.selected,.no-border:hover{border:none}@-webkit-keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.vatlive{width:100%;height:100%;background-color:#081b2a;border-color:#000;border-width:2px;padding:0;overflow:hidden}.vatlive,.vatlive *,.vatlive>table{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.vatlive>table{width:100%;height:100%;border:1px solid #364a63;background-color:#081b2a;table-layout:fixed;word-break:break-all;padding:0;border-collapse:separate}.vatlive>table>tr,.vatlive>table>tr>td{padding:0;vertical-align:top}.vatlive>table>tr>td{border:1px solid #364a63;background-color:#1b1b1b;overflow-x:hidden;overflow-y:hidden;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.vatlive>table>tr>td[max=true]{border:none}.vatlive>table>tr>td:hover{border:1px solid #4e408f}.vatlive>table>tr>td.selected{border:1px solid #bd1c1c}.vatlive>table>tr>td .vatwin{width:100%;height:100%;border:none;position:relative;vertical-align:middle;text-align:center;padding:0}.vatlive>table>tr>td .vatwin .drag-layer{z-index:100;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0;background-color:rgba(0,0,0,.001)}.vatlive>table>tr>td .vatwin .drag-hover{border:1px solid #137c1c}.vatlive>table>tr>td .vatwin .vatrender{position:absolute;border:none;z-index:50;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-record{z-index:51;border:none;position:absolute;background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M704 434.496l131.795-131.789a38.4 38.4 0 0165.549 27.155v388.48a38.4 38.4 0 01-65.549 27.15L704 613.701V729.6a38.4 38.4 0 01-38.4 38.4H166.4a38.4 38.4 0 01-38.4-38.4v-384a38.4 38.4 0 0138.4-38.4h499.2a38.4 38.4 0 0138.4 38.4v88.896zM281.6 524.8c42.413 0 76.8-34.387 76.8-76.8s-34.387-76.8-76.8-76.8-76.8 34.387-76.8 76.8 34.387 76.8 76.8 76.8z' fill='%23d81e06'/%3E%3C/svg%3E\");opacity:.8;width:32px;height:32px;top:12px;right:10px;animation:vatblink 2.2s infinite;-moz-animation:vatblink 2.2s infinite;-webkit-animation:vatblink 2.2s infinite;-o-animation:vatblink 2.2s infinite}.vatlive>table>tr>td .vatwin .vat-tool{position:absolute;display:block;border:1px solid rgba(3,88,109,.1);border-radius:3px;bottom:0;width:100%;height:auto;visibility:hidden;background:rgba(54,74,99,.4);opacity:0;z-index:110;text-align:center;-webkit-transition:visibility 0s linear .33s,opacity .33s linear;transition:visibility 0s linear .33s,opacity .33s linear;overflow:hidden}.vatlive>table>tr>td .vatwin .vat-tool a{width:28px;height:28px;margin-left:5px;margin-right:5px;margin-top:5px;background-size:cover;background-repeat:no-repeat;-webkit-transition:all .3s;transition:all .3s;display:inline-block}.vatlive>table>tr>td .vatwin .vat-tool a:hover{-webkit-transform:scale(1.2);transform:scale(1.2)}.vatlive>table>tr>td .vatwin .vat-tool a:active{-webkit-transform:scale(1);transform:scale(1)}.vatlive>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive>table>tr>td .vatwin .vat-tool svg:hover path{fill:#42b7f7}.vatlive>table>tr>td .vatwin:hover .vat-tool{visibility:visible;opacity:.8;-webkit-transition-delay:0s;transition-delay:0s}.vatlive>table>tr>td .vatwin .vat-title{position:absolute;display:block;top:0;width:100%;height:16px;z-index:55;background:#0a1522;border:1px solid #050524}.vatlive>table>tr>td .vatwin .vat-title .state{position:absolute;left:0;display:inline-block;width:16px;height:16px;background-size:cover;-webkit-background-size:cover;-moz-background-size:cover}.vatlive>table>tr>td .vatwin .vat-title .vat-name{position:absolute;top:-1px;left:32px;height:100%;display:inline-block;color:#39aea6;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vatlive>table>tr>td .vatwin .vat-title .vat-speed{position:absolute;top:-1px;right:5px;height:100%;display:inline-block;color:#28312e;font-size:12px;margin-top:1px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-error{z-index:51;display:block;position:absolute;border:none;background:rgba(0,0,0,.4);font-size:18px;width:100%;height:100%}.vatlive>table>tr>td .vatwin .vat-error>table{width:100%;height:100%;background:transparent}.vatlive>table>tr>td .vatwin .vat-error>table td{opacity:.8;color:red;text-align:center}.vatlive>table>tr>td .vatwin .vat-error>table tr{vertical-align:middle;display:contents}.vatlive>table>tr>td .vatwin .vat-roi-draw{z-index:102;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0;border:none}.vatlive>table>tr>td .vatwin .vat-roi-view{z-index:99;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-roi-menu{z-index:120;position:absolute;background-color:#f0f;border:2px solid #1c4480;cursor:pointer;padding:0}.vatlive>table>tr>td .vatwin .vat-roi-menu li{height:25px;border:1px solid rgba(12,74,110,.877);color:#cccbcb;text-align:center;background:rgba(10,54,95,.877);list-style-type:none;padding:2px 5px 2px 5px;font-size:14px;overflow:hidden;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatlive>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(22,105,153,.877);background:rgba(21,101,177,.877)}.vatlive>table>tr>td .vatwin .vat-face{z-index:51;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0}.vatlive>table>tr>td .vatwin .vat-exrender{z-index:52;position:absolute;margin:0;padding:0;left:0;top:0;right:0;bottom:0}.vatlive>table>tr>td .vatwin .vat-ptz-panel{margin-top:20px;margin-left:5px;height:50%;padding-left:25%;z-index:109;background-color:#10313a;position:absolute;opacity:.5}.vatlive>table>tr>td .vat-down{padding-left:32px;height:32px;display:inline-block;cursor:pointer;background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M128 806.4h768V896H128v-89.6zM732.288 528l-176.5 186.138c-10.95 11.206-26.412 18.49-43.788 18.49s-32.832-7.284-43.603-18.606l-176.87-185.888c-9.23-10.022-15.111-22.97-15.111-37.324 0-30.816 26.38-55.802 58.9-55.802.454 0 .895.058 1.343.07v-.352h116.435V297.94c0-30.835 26.388-55.82 58.9-55.82 32.53 0 58.905 24.979 58.905 55.82v136.787h114.285v.448c1.165-.064 2.31-.179 3.5-.179 32.526 0 58.9 24.992 58.9 55.815.006 14.355-5.882 27.296-15.296 37.19zM416 128h192v324.8H416V128z' fill='%231bb90a'/%3E%3C/svg%3E\") no-repeat}.vatlive>table>tr>td .vat-down span{display:table-cell;vertical-align:middle;height:32px}.vatlive .check_error{width:100%;height:100%;text-align:center;vertical-align:middle;font-size:20px;color:red}.vatlive .check_error a:link,.vatlive .check_error a:visited{color:red}.vatlive .check_error a:hover{color:#f0f}.vatlive .check_error a:active{color:#00f}.vatlive-dark>table{border:1px solid #364a63;background-color:#081b2a}.vatlive-dark>table>tr>td{border:1px solid #364a63;background-color:#1b1b1b}.vatlive-dark>table>tr>td:hover{border:1px solid #4e408f}.vatlive-dark>table>tr>td.selected{border:1px solid #bd1c1c}.vatlive-dark>table>tr>td .vatwin .drag-hover{border:1px solid #137c1c}.vatlive-dark>table>tr>td .vatwin .vat-tool{border:1px solid rgba(3,88,109,.1);background:rgba(20,20,20,.5)}.vatlive-dark>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive-dark>table>tr>td .vatwin .vat-tool svg:hover path{fill:#3387ff}.vatlive-dark>table>tr>td .vatwin .vat-title{background:#0a1522;border:1px solid #050524}.vatlive-dark>table>tr>td .vatwin .vat-title .vat-name{color:#39aea6}.vatlive-dark>table>tr>td .vatwin .vat-title .vat-speed{color:#b9bcbb}.vatlive-dark>table>tr>td .vatwin .vat-error{background:rgba(0,0,0,.4)}.vatlive-dark>table>tr>td .vatwin .vat-error>table td{color:red}.vatlive-dark>table>tr>td .vatwin .vat-roi-menu{background-color:#f0f;border:2px solid #1c4480}.vatlive-dark>table>tr>td .vatwin .vat-roi-menu li{border:1px solid rgba(12,74,110,.877);color:#cccbcb;background:rgba(10,54,95,.877)}.vatlive-dark>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(22,105,153,.877);background:rgba(21,101,177,.877)}.vatlive-dark .check_error,.vatlive-dark .check_error a:link,.vatlive-dark .check_error a:visited{color:red}.vatlive-dark .check_error a:hover{color:#f0f}.vatlive-dark .check_error a:active{color:#00f}.vatlive-red>table{border:1px solid #220f0f;background-color:#421602}.vatlive-red>table>tr>td{border:1px solid #ac0358;background-color:#241313}.vatlive-red>table>tr>td:hover{border:1px solid #4e408f}.vatlive-red>table>tr>td.selected{border:1px solid #6003ac}.vatlive-red>table>tr>td .vatwin .drag-hover{border:1px solid #7801bd}.vatlive-red>table>tr>td .vatwin .vat-tool{border:1px solid rgba(241,111,111,.1);background:rgba(20,20,20,.5)}.vatlive-red>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive-red>table>tr>td .vatwin .vat-tool svg:hover path{fill:#f75bd0}.vatlive-red>table>tr>td .vatwin .vat-title{background:#410808;border:1px solid #520606}.vatlive-red>table>tr>td .vatwin .vat-title .vat-name{color:#d4af09}.vatlive-red>table>tr>td .vatwin .vat-title .vat-speed{color:#b9bcbb}.vatlive-red>table>tr>td .vatwin .vat-error{background:rgba(0,0,0,.4)}.vatlive-red>table>tr>td .vatwin .vat-error>table td{color:red}.vatlive-red>table>tr>td .vatwin .vat-roi-menu{background-color:#f0f;border:2px solid #5a041e}.vatlive-red>table>tr>td .vatwin .vat-roi-menu li{border:1px solid rgba(141,15,88,.877);color:#cccbcb;background:rgba(66,4,56,.877)}.vatlive-red>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(153,22,114,.877);background:rgba(141,16,110,.877)}.vatlive-red .check_error,.vatlive-red .check_error a:link,.vatlive-red .check_error a:visited{color:red}.vatlive-red .check_error a:hover{color:#f0f}.vatlive-red .check_error a:active{color:#00f}.vatlive-blue>table{border:1px solid #0f1322;background-color:#34495c}.vatlive-blue>table>tr>td{border:1px solid #141f38;background-color:#081b2a}.vatlive-blue>table>tr>td:hover{border:1px solid #2a1588}.vatlive-blue>table>tr>td.selected{border:1px solid #810707}.vatlive-blue>table>tr>td .vatwin .drag-hover{border:1px solid #01851e}.vatlive-blue>table>tr>td .vatwin .vat-tool{border:1px solid rgba(50,53,235,.1);background:rgba(20,20,20,.5)}.vatlive-blue>table>tr>td .vatwin .vat-tool svg path{fill:#fefefe}.vatlive-blue>table>tr>td .vatwin .vat-tool svg:hover path{fill:#6c86f8}.vatlive-blue>table>tr>td .vatwin .vat-title{background:#02134b;border:1px solid #05133a}.vatlive-blue>table>tr>td .vatwin .vat-title .vat-name{color:#a7a7a7}.vatlive-blue>table>tr>td .vatwin .vat-title .vat-speed{color:#b9bcbb}.vatlive-blue>table>tr>td .vatwin .vat-error{background:#081b2a}.vatlive-blue>table>tr>td .vatwin .vat-error>table td{color:red}.vatlive-blue>table>tr>td .vatwin .vat-roi-menu{background-color:#0f378d;border:2px solid #160479}.vatlive-blue>table>tr>td .vatwin .vat-roi-menu li{border:1px solid rgba(14,25,75,.877);color:#cccbcb;background:rgba(3,39,94,.877)}.vatlive-blue>table>tr>td .vatwin .vat-roi-menu li:hover{border:1px solid rgba(2,105,25,.877);background:rgba(39,133,30,.877)}.vatlive-blue .check_error,.vatlive-blue .check_error a:link,.vatlive-blue .check_error a:visited{color:red}.vatlive-blue .check_error a:hover{color:#f0f}.vatlive-blue .check_error a:active{color:#00f}",""])},"227c":function(t,e,n){"use strict";var i=n("0f0d");n.n(i).a},"230e":function(t,e,n){var i=n("d3f4"),r=n("7726").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},2350:function(t,e){function n(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(i),o=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[n].concat(o).concat([r]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},2397:function(t,e,n){var i=n("5ca1"),r=n("2aeb"),o=n("d8e8"),a=n("cb7c"),s=n("d3f4"),l=n("79e5"),c=n("f0c1"),u=(n("7726").Reflect||{}).construct,h=l((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),d=!l((function(){u((function(){}))}));i(i.S+i.F*(h||d),"Reflect",{construct:function(t,e){o(t),a(e);var n=arguments.length<3?t:o(arguments[2]);if(d&&!h)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return i.push.apply(i,e),new(c.apply(t,i))}var l=n.prototype,f=r(s(l)?l:Object.prototype),p=Function.apply.call(t,f,e);return s(p)?p:f}})},"23c6":function(t,e,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),o="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:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"272c":function(t,e,n){"use strict";var i=n("1e97");n.n(i).a},"27ee":function(t,e,n){var i=n("23c6"),r=n("2b4c")("iterator"),o=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(null!=t)return t[r]||t["@@iterator"]||o[i(t)]}},"28a5":function(t,e,n){"use strict";var i=n("aae3"),r=n("cb7c"),o=n("ebd6"),a=n("0390"),s=n("9def"),l=n("5f1b"),c=n("520a"),u=n("79e5"),h=Math.min,d=[].push,f="split",p="length",v="lastIndex",y=4294967295,m=!u((function(){RegExp(y,"y")}));n("214f")("split",2,(function(t,e,n,u){var g;return g="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[p]||2!="ab"[f](/(?:ab)*/)[p]||4!="."[f](/(.?)(.?)/)[p]||"."[f](/()()/)[p]>1||""[f](/.?/)[p]?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!i(t))return n.call(r,t,e);for(var o,a,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,f=void 0===e?y:e>>>0,m=new RegExp(t.source,u+"g");(o=c.call(m,r))&&!((a=m[v])>h&&(l.push(r.slice(h,o.index)),o[p]>1&&o.index<r[p]&&d.apply(l,o.slice(1)),s=o[0][p],h=a,l[p]>=f));)m[v]===o.index&&m[v]++;return h===r[p]?!s&&m.test("")||l.push(""):l.push(r.slice(h)),l[p]>f?l.slice(0,f):l}:"0"[f](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,i){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r,i):g.call(String(r),n,i)},function(t,e){var i=u(g,t,this,e,g!==n);if(i.done)return i.value;var c=r(t),d=String(this),f=o(c,RegExp),p=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(m?"y":"g"),w=new f(m?c:"^(?:"+c.source+")",v),b=void 0===e?y:e>>>0;if(0===b)return[];if(0===d.length)return null===l(w,d)?[d]:[];for(var _=0,x=0,S=[];x<d.length;){w.lastIndex=m?x:0;var E,k=l(w,m?d:d.slice(x));if(null===k||(E=h(s(w.lastIndex+(m?0:x)),d.length))===_)x=a(d,x,p);else{if(S.push(d.slice(_,x)),S.length===b)return S;for(var C=1;C<=k.length-1;C++)if(S.push(k[C]),S.length===b)return S;x=_=E}}return S.push(d.slice(_)),S}]}))},"2aba":function(t,e,n){var i=n("7726"),r=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",c=(""+s).split(l);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||r(n,a,t[e]?""+t[e]:c.join(String(e)))),t===i?t[e]=n:s?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(t,e,n){var i=n("cb7c"),r=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l="prototype",c=function(){var t,e=n("230e")("iframe"),i=o.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;i--;)delete c[l][o[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=i(t),n=new s,s[l]=null,n[a]=t):n=c(),void 0===e?n:r(n,e)}},"2b4c":function(t,e,n){var i=n("5537")("wks"),r=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},"2cd7":function(t,e,n){var i=n("86cb");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("65465726",i,!0,{sourceMap:!1,shadowMode:!1})},"2cef":function(t,e,n){"use strict";t.exports=function(){var t=1;return{generate:function(){return t++}}}},"2d00":function(t,e){t.exports=!1},"2d64":function(t,e,n){var i=n("9ba3");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("5713d8e2",i,!0,{sourceMap:!1,shadowMode:!1})},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2ed9":function(t,e,n){"use strict";var i=n("2d64");n.n(i).a},"31f4":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)}},"32e9":function(t,e,n){var i=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"33a4":function(t,e,n){var i=n("84f2"),r=n("2b4c")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},"34ef":function(t,e,n){n("ec30")("Uint8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"36bd":function(t,e,n){"use strict";var i=n("4bf8"),r=n("77f1"),o=n("9def");t.exports=function(t){for(var e=i(this),n=o(e.length),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>s;)e[s++]=t;return e}},"37c8":function(t,e,n){e.f=n("2b4c")},3846:function(t,e,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"38fd":function(t,e,n){var i=n("69a8"),r=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"3a72":function(t,e,n){var i=n("7726"),r=n("8378"),o=n("2d00"),a=n("37c8"),s=n("86cc").f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},"3e2e":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,"@-webkit-keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}div[vat=vod-player]{width:100%;height:100%;border:0;padding:0;margin:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}div[vat=win-root]{width:100%;height:100%;overflow:hidden}table[vat=win-tab]{width:100%;height:100%;background-color:#2b2b2b;border:1px solid #364a63;border-collapse:separate}table[vat=win-tab],table[vat=win-tab]>tr>td{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}table[vat=win-tab]>tr>td{border:1px solid #2b2b2b;background-color:#101010;overflow-x:hidden;overflow-y:hidden;padding:0;vertical-align:top}table[vat=win-tab]>tr>td[max=true]{border:none}table[vat=win-tab]>tr>td:hover{border:1px solid #4e4067}table[vat=win-tab]>tr>td.selected{border:1px solid #811c1c}table[vat=vod-layout]{width:100%;height:100%;border:none;overflow:hidden;padding:0;margin:0;border-collapse:collapse;border-spacing:0;display:table;table-layout:fixed}table[vat=vod-layout]>tr{border:none}table[vat=vod-layout]>tr>td{border:none;overflow:hidden;position:relative}table[vat=vod-layout]>tr>td #vod-tool{width:100%;height:50px;background-color:#1c4480;display:block}div[vat=timeline]{height:50px;background-color:#0f1322}div[vat=vod-player]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-line-pack:stretch;align-content:stretch;background-color:#000;position:relative;outline:none}div[vat=vod-player] .vod-wins{-ms-flex-item-align:initial;align-self:auto}.vatrender{position:absolute;border:none;z-index:49;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatwin{width:100%;height:100%;border:none;position:relative;vertical-align:middle;text-align:center;padding:0;background-color:#000}",""])},"3e39":function(t,e,n){var i=n("1d3b");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("f8f69916",i,!0,{sourceMap:!1,shadowMode:!1})},"41a0":function(t,e,n){"use strict";var i=n("2aeb"),r=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},"456d":function(t,e,n){var i=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(t){return r(i(t))}}))},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4971:function(t,e,n){"undefined"!=typeof self&&self,t.exports=function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===s(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"091b":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""]),t.exports=e},"24fb":function(t,e,n){"use strict";function i(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=function(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}(i),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([r]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},2638: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"],o=["class","style","directives"],a=["on","nativeOn"],s=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!==o.indexOf(n)){var l=t[n]instanceof Array?t[n]:[t[n]],c=e[n]instanceof Array?e[n]:[e[n]];t[n]=l.concat(c)}else if(-1!==a.indexOf(n))for(var u in e[n])if(t[n][u]){var h=t[n][u]instanceof Array?t[n][u]:[t[n][u]],d=e[n][u]instanceof Array?e[n][u]:[e[n][u]];t[n][u]=h.concat(d)}else t[n][u]=e[n][u];else if("hook"==n)for(var f in e[n])t[n][f]=t[n][f]?s(t[n][f],e[n][f]):e[n][f];else t[n]=e[n];else t[n]=e[n];return t}),{})}},"499e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=o[0],s={id:t+":"+r,css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}n.r(e),n.d(e,"default",(function(){return p}));var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},h=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,r){c=n,h=r||{};var a=i(t,e);return v(a),function(e){for(var n=[],r=0;r<a.length;r++){var s=a[r],l=o[s.id];l.refs--,n.push(l)}for(e?v(a=i(t,e)):a=[],r=0;r<n.length;r++)if(0===(l=n[r]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}function v(t){for(var e=0;e<t.length;e++){var n=t[e],i=o[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(m(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(m(n.parts[r]));o[n.id]={id:n.id,refs:1,parts:a}}}}function y(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function m(t){var e,n,i=document.querySelector("style["+d+'~="'+t.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(f){var r=l++;i=s||(s=y()),e=w.bind(null,i,r,!1),n=w.bind(null,i,r,!0)}else i=y(),e=b.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}var g=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function w(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=g(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function b(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),h.ssrId&&t.setAttribute(d,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"4abb":function(t,e,n){var i=n("7a57");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("b2af7572",i,!0,{sourceMap:!1,shadowMode:!1})},"4ed8":function(t,e,n){var i=n("091b");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("2f6bee1a",i,!0,{sourceMap:!1,shadowMode:!1})},"556c":function(t,e,n){var i=n("eef2");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("1209fd47",i,!0,{sourceMap:!1,shadowMode:!1})},"65d9":function(t,e,n){"use strict";
|
||
/**
|
||
* vue-class-component v7.0.1
|
||
* (c) 2015-present Evan You
|
||
* @license MIT
|
||
*/Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return t&&"object"===s(t)&&"default"in t?t.default:t}(n("8bbf")),r="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function o(t,e){a(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){a(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){a(t,e,n)}))}function a(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(i){var r=n?Reflect.getOwnMetadata(i,e,n):Reflect.getOwnMetadata(i,e);n?Reflect.defineMetadata(i,r,t,n):Reflect.defineMetadata(i,r,t)}))}var l={__proto__:[]}instanceof Array,c=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function u(t,e){void 0===e&&(e={}),e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(c.indexOf(t)>-1)e[t]=n[t];else{var i=Object.getOwnPropertyDescriptor(n,t);void 0!==i.value?"function"==typeof i.value?(e.methods||(e.methods={}))[t]=i.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return(e={})[t]=i.value,e}}):(i.get||i.set)&&((e.computed||(e.computed={}))[t]={get:i.get,set:i.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return function(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var i in t.$options.props)t.hasOwnProperty(i)||n.push(i);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var i=new e;e.prototype._init=n;var r={};return Object.keys(i).forEach((function(t){void 0!==i[t]&&(r[t]=i[t])})),r}(this,t)}});var a=t.__decorators__;a&&(a.forEach((function(t){return t(e)})),delete t.__decorators__);var s=Object.getPrototypeOf(t.prototype),l=s instanceof i?s.constructor:i,u=l.extend(e);return h(u,t,l),r&&o(u,t),u}function h(t,e,n){Object.getOwnPropertyNames(e).forEach((function(i){if("prototype"!==i){var r=Object.getOwnPropertyDescriptor(t,i);if(!r||r.configurable){var o=Object.getOwnPropertyDescriptor(e,i);if(!l){if("cid"===i)return;var a=Object.getOwnPropertyDescriptor(n,i);if(!function(t){var e=s(t);return null==t||"object"!==e&&"function"!==e}(o.value)&&a&&a.value===o.value)return}Object.defineProperty(t,i,o)}}}))}function d(t){return"function"==typeof t?u(t):function(e){return u(e,t)}}d.registerHooks=function(t){c.push.apply(c,t)},e.default=d,e.createDecorator=function(t){return function(e,n,i){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof i&&(i=void 0),r.__decorators__.push((function(e){return t(e,n,i)}))}},e.mixins=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.extend({mixins:t})}},"7a57":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}",""]),t.exports=e},8875:function(t,e,n){var i,r,o;"undefined"!=typeof self&&self,r=[],void 0===(o="function"==typeof(i=function(){return function(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(c){var t,e,n,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(c.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(c.stack),r=i&&i[1]||!1,o=i&&i[2]||!1,a=document.location.href.replace(document.location.hash,""),s=document.getElementsByTagName("script");r===a&&(t=document.documentElement.outerHTML,e=new RegExp("(?:[^\\n]+?\\n){0,"+(o-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=t.replace(e,"$1").trim());for(var l=0;l<s.length;l++){if("interactive"===s[l].readyState)return s[l];if(s[l].src===r)return s[l];if(r===a&&s[l].innerHTML&&s[l].innerHTML.trim()===n)return s[l]}return null}}})?i.apply(e,r):i)||(t.exports=o)},"8bbf":function(e,n){e.exports=t},eef2:function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""]),t.exports=e},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"ERROR_TYPE",(function(){return W})),n.d(e,"VueSliderMark",(function(){return I})),n.d(e,"VueSliderDot",(function(){return E})),"undefined"!=typeof window){var i=window.document.currentScript,r=n("8875");i=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var o=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a=n("2638"),l=n.n(a);function c(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":s(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}var u=n("8bbf"),h=n.n(u),d=n("65d9"),f=n.n(d);function p(t,e){return void 0===e&&(e={}),Object(d.createDecorator)((function(n,i){(n.props||(n.props={}))[i]=e,n.model={prop:i,event:t||i}}))}function v(t){return void 0===t&&(t={}),Object(d.createDecorator)((function(e,n){(e.props||(e.props={}))[n]=t}))}function y(t,e){void 0===e&&(e={});var n=e.deep,i=void 0!==n&&n,r=e.immediate,o=void 0!==r&&r;return Object(d.createDecorator)((function(e,n){"object"!==s(e.watch)&&(e.watch=Object.create(null));var r=e.watch;"object"!==s(r[t])||Array.isArray(r[t])?void 0===r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:i,immediate:o})}))}function m(t){return(m="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(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 b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}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=S(t);if(e){var r=S(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return x(this,n)}}function x(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n("4ed8");var E=function(){var t=function(t){!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&&b(t,e)}(n,t);var e=_(n);function n(){return g(this,n),e.apply(this,arguments)}return function(t,e,n){e&&w(t.prototype,e),n&&w(t,n)}(n,[{key:"dragStart",value:function(t){if(this.disabled)return!1;this.$emit("drag-start")}},{key:"render",value:function(){var t=arguments[0];return t("div",{ref:"dot",class:this.dotClasses,on:{mousedown:this.dragStart,touchstart:this.dragStart}},[this.$slots.dot||t("div",{class:this.handleClasses,style:this.dotStyle}),"none"!==this.tooltip?t("div",{class:this.tooltipClasses},[this.$slots.tooltip||t("div",{class:this.tooltipInnerClasses,style:this.tooltipStyle},[t("span",{class:"vue-slider-dot-tooltip-text"},[this.tooltipValue])])]):null])}},{key:"dotClasses",get:function(){return["vue-slider-dot",{"vue-slider-dot-hover":"hover"===this.tooltip||"active"===this.tooltip,"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]}},{key:"handleClasses",get:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]}},{key:"tooltipClasses",get:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]}},{key:"tooltipInnerClasses",get:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]}},{key:"showTooltip",get:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":case"active":return!!this.focus;default:return!1}}},{key:"tooltipValue",get:function(){return this.tooltipFormatter?"string"==typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}}]),n}(h.a);return c([v({default:0})],t.prototype,"value",void 0),c([v()],t.prototype,"tooltip",void 0),c([v()],t.prototype,"dotStyle",void 0),c([v()],t.prototype,"tooltipStyle",void 0),c([v({type:String,validator:function(t){return["top","right","bottom","left"].indexOf(t)>-1},required:!0})],t.prototype,"tooltipPlacement",void 0),c([v({type:[String,Function]})],t.prototype,"tooltipFormatter",void 0),c([v({type:Boolean,default:!1})],t.prototype,"focus",void 0),c([v({default:!1})],t.prototype,"disabled",void 0),c([f.a],t)}();function k(t){return(k="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function C(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A(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 T(t,e){return(T=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function R(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=O(t);if(e){var r=O(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return D(this,n)}}function D(t,e){return!e||"object"!==k(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n("556c");var L,I=function(){var t=function(t){!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&&T(t,e)}(n,t);var e=R(n);function n(){return C(this,n),e.apply(this,arguments)}return function(t,e,n){e&&A(t.prototype,e),n&&A(t,n)}(n,[{key:"labelClickHandle",value:function(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var t=arguments[0],e=this.mark;return t("div",{class:this.marksClasses},[this.$slots.step||t("div",{class:this.stepClasses,style:[this.stepStyle,e.style,e.active?this.stepActiveStyle:null,e.active?e.activeStyle:null]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle,e.labelStyle,e.active?this.labelActiveStyle:null,e.active?e.labelActiveStyle:null],on:{click:this.labelClickHandle}},[e.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}]),n}(h.a);return c([v({required:!0})],t.prototype,"mark",void 0),c([v(Boolean)],t.prototype,"hideLabel",void 0),c([v()],t.prototype,"stepStyle",void 0),c([v()],t.prototype,"stepActiveStyle",void 0),c([v()],t.prototype,"labelStyle",void 0),c([v()],t.prototype,"labelActiveStyle",void 0),c([f.a],t)}(),P=function(t){return"number"==typeof t?"".concat(t,"px"):t},M=function(t,e,n){var i="targetTouches"in t?t.targetTouches[0]:t,r=function(t){var e=document.documentElement,n=document.body,i=t.getBoundingClientRect();return{y:i.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||n.clientTop||0),x:i.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||n.clientLeft||0)}}(e),o={x:i.pageX-r.x,y:i.pageY-r.y};return{x:n?e.offsetWidth-o.x:o.x,y:n?e.offsetHeight-o.y:o.y}};function N(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(t){t[t.PAGE_UP=33]="PAGE_UP",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"}(L||(L={}));var U,W,F=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.num=e}return function(t,e,n){e&&N(t.prototype,e),n&&N(t,n)}(t,[{key:"decimal",value:function(t,e){var n=this.num,i=this.getDecimalLen(n),r=this.getDecimalLen(t),o=0;switch(e){case"+":o=this.getExponent(i,r),this.num=(this.safeRoundUp(n,o)+this.safeRoundUp(t,o))/o;break;case"-":o=this.getExponent(i,r),this.num=(this.safeRoundUp(n,o)-this.safeRoundUp(t,o))/o;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(i)),this.safeRoundUp(t,this.getExponent(r)))/this.getExponent(i+r);break;case"/":o=this.getExponent(i,r),this.num=this.safeRoundUp(n,o)/this.safeRoundUp(t,o);break;case"%":o=this.getExponent(i,r),this.num=this.safeRoundUp(n,o)%this.safeRoundUp(t,o)/o}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){var e="".concat(t).split("e");return("".concat(e[0]).split(".")[1]||"").length-(e[1]?+e[1]:0)}},{key:"getExponent",value:function(t,e){return Math.pow(10,void 0!==e?Math.max(t,e):t)}},{key:"safeRoundUp",value:function(t,e){return Math.round(t*e)}}]),t}();function B(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function z(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(t,e)||V(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t){return function(t){if(Array.isArray(t))return H(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||V(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(t,e){if(t){if("string"==typeof t)return H(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(t,e):void 0}}function H(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Y(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 K(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}!function(t){t[t.VALUE=1]="VALUE",t[t.INTERVAL=2]="INTERVAL",t[t.MIN=3]="MIN",t[t.MAX=4]="MAX",t[t.ORDER=5]="ORDER"}(W||(W={}));var q=(K(U={},W.VALUE,'The type of the "value" is illegal'),K(U,W.INTERVAL,'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'),K(U,W.MIN,'The "value" must be greater than or equal to the "min".'),K(U,W.MAX,'The "value" must be less than or equal to the "max".'),K(U,W.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),U),G=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.dotsPos=[],this.dotsValue=[],this.cacheRangeDir={},this.data=e.data,this.max=e.max,this.min=e.min,this.interval=e.interval,this.order=e.order,this.marks=e.marks,this.included=e.included,this.process=e.process,this.adsorb=e.adsorb,this.dotOptions=e.dotOptions,this.onError=e.onError,this.order?(this.minRange=e.minRange||0,this.maxRange=e.maxRange||0,this.enableCross=e.enableCross,this.fixed=e.fixed):((e.minRange||e.maxRange||!e.enableCross||e.fixed)&&this.emitError(W.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(e.value)}return function(t,e,n){e&&Y(t.prototype,e),n&&Y(t,n)}(t,[{key:"setValue",value:function(t){this.setDotsValue(Array.isArray(t)?j(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this,n=this.order?j(t).sort((function(t,e){return t-e})):t;this.dotsPos=n,this.setDotsValue(n.map((function(t){return e.getValueByPos(t)})),this.adsorb)}},{key:"getValueByPos",value:function(t){var e=this.parsePos(t);if(this.included){var n=100;this.markList.forEach((function(i){var r=Math.abs(i.pos-t);r<n&&(n=r,e=i.value)}))}return e}},{key:"syncDotsPos",value:function(){var t=this;this.dotsPos=this.dotsValue.map((function(e){return t.parseValue(e)}))}},{key:"getRecentDot",value:function(t){var e=this.dotsPos.map((function(e){return Math.abs(e-t)}));return e.indexOf(Math.min.apply(Math,j(e)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new F(+t).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new F(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){var n=(t=this.getValidPos(t,e).pos)-this.dotsPos[e];if(n){var i=new Array(this.dotsPos.length);this.fixed?i=this.getFixedChangePosArr(n,e):this.minRange||this.maxRange?i=this.getLimitRangeChangePosArr(t,n,e):i[e]=n,this.setDotsPos(this.dotsPos.map((function(t,e){return t+(i[e]||0)})))}}},{key:"getFixedChangePosArr",value:function(t,e){var n=this;return this.dotsPos.forEach((function(i,r){if(r!==e){var o=n.getValidPos(i+t,r),a=o.pos;o.inRange||(t=Math.min(Math.abs(a-i),Math.abs(t))*(t<0?-1:1))}})),this.dotsPos.map((function(e){return t}))}},{key:"getLimitRangeChangePosArr",value:function(t,e,n){var i=this,r=[{index:n,changePos:e}],o=e;return[this.minRange,this.maxRange].forEach((function(a,s){if(!a)return!1;for(var l,c=0===s,u=e>0,h=function(t,e){var n=Math.abs(t-e);return c?n<i.minRangeDir:n>i.maxRangeDir},d=n+(l=c?u?1:-1:u?-1:1),f=i.dotsPos[d],p=t;i.isPos(f)&&h(f,p);){var v=i.getValidPos(f+o,d).pos;r.push({index:d,changePos:v-f}),d+=l,p=v,f=i.dotsPos[d]}})),this.dotsPos.map((function(t,e){var n=r.filter((function(t){return t.index===e}));return n.length?n[0].changePos:0}))}},{key:"isPos",value:function(t){return"number"==typeof t}},{key:"getValidPos",value:function(t,e){var n=this.valuePosRange[e],i=!0;return t<n[0]?(t=n[0],i=!1):t>n[1]&&(t=n[1],i=!1),{pos:t,inRange:i}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"==typeof t||"string"==typeof t){if((t=+t)<this.min)return this.emitError(W.MIN),0;if(t>this.max)return this.emitError(W.MAX),0;if("number"!=typeof t||t!=t)return this.emitError(W.VALUE),0;t=new F(t).minus(this.min).divide(this.interval).toNumber()}var e=new F(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some((function(e){var n=z(e,2),i=n[0],r=n[1];return t>=i&&t<=r}))}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new F(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"getRangeDir",value:function(t){return t?new F(t).divide(new F(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(t){this.onError&&this.onError(t,q[t])}},{key:"getDotRange",value:function(t,e,n){if(!this.dotOptions)return n;var i=Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions;return i&&void 0!==i[e]?this.parseValue(i[e]):n}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,n){var i=t.parseValue(e);return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?B(Object(n),!0).forEach((function(e){K(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({pos:i,value:e,label:e,active:t.isActiveByPos(i)},n)};return!0===this.marks?this.getValues().map((function(t){return e(t)})):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort((function(t,e){return+t-+e})).map((function(n){var i=t.marks[n];return e(n,"string"!=typeof i?i:{label:i})})):Array.isArray(this.marks)?this.marks.map((function(t){return e(t)})):"function"==typeof this.marks?this.getValues().map((function(e){return{value:e,result:t.marks(e)}})).filter((function(t){return!!t.result})).map((function(t){var n=t.value,i=t.result;return e(n,i)})):[]}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,j(this.dotsPos)),Math.max.apply(Math,j(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t;return(t=this.data?this.data.length-1:new F(this.max).minus(this.min).divide(this.interval).toNumber())-Math.floor(t)!=0?(this.emitError(W.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,n=[];return e.forEach((function(i,r){n.push([Math.max(t.minRange?t.minRangeDir*r:0,t.enableCross?0:e[r-1]||0,t.getDotRange(r,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-r):100,t.enableCross?100:e[r+1]||100,t.getDotRange(r,"max",100))])})),n}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map((function(e){return t.getIndexByValue(e)}))}}]),t}();function $(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 X=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.states=0,this.map=e}return function(t,e,n){e&&$(t.prototype,e),n&&$(t,n)}(t,[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}]),t}();function J(t){return(J="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(n),!0).forEach((function(e){et(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(t,e)||it(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nt(t){return function(t){if(Array.isArray(t))return rt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||it(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(t,e){if(t){if("string"==typeof t)return rt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rt(t,e):void 0}}function rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function at(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 st(t,e){return(st=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function lt(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=ut(t);if(e){var r=ut(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return ct(this,n)}}function ct(t,e){return!e||"object"!==J(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ut(t){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n("4abb");var ht={None:0,Drag:2,Focus:4},dt=function(){var t=function(t){!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&&st(t,e)}(n,t);var e=lt(n);function n(){var t;return ot(this,n),(t=e.apply(this,arguments)).states=new X(ht),t.scale=1,t.focusDotIndex=0,t}return function(t,e,n){e&&at(t.prototype,e),n&&at(t,n)}(n,[{key:"onValueChanged",value:function(){this.control&&!this.states.has(ht.Drag)&&this.isNotSync&&this.control.setValue(this.value)}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){this.scale=new F(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).divide(100).toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new G({value:this.value,data:this.data,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.marks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach((function(e){t.$watch(e,(function(n){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(n)&&t.control.data.length===n.length&&n.every((function(e,n){return e===t.control.data[n]})))return!1;t.control[e]=n,["data","max","min","interval"].indexOf(e)>-1&&t.control.syncDotsPos()}))}))}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:nt(t),this.focusDotIndex)}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some((function(t,n){return t!==e[n]}))}},{key:"emitError",value:function(t,e){this.silent,this.$emit("error",t,e)}},{key:"dragStartOnProcess",value:function(t){if(this.dragOnClick){this.setScale();var e=this.getPosByEvent(t),n=this.control.getRecentDot(e);if(this.dots[n].disabled)return;this.dragStart(n),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos()}}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add(ht.Drag),this.states.add(ht.Focus),this.$emit("drag-start",this.focusDotIndex)}},{key:"dragMove",value:function(t){if(!this.states.has(ht.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var n=this.control.dotsValue;this.$emit("dragging",1===n.length?n[0]:nt(n),this.focusDotIndex)}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,n=t;n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n<this.dragRange[0]&&(n=this.dragRange[0],this.focusDotIndex--),e!==this.focusDotIndex&&this.control.setDotPos(n,e)}}},{key:"dragEnd",value:function(){var t=this;if(!this.states.has(ht.Drag))return!1;setTimeout((function(){t.lazy&&t.syncValueByPos(),t.included&&t.isNotSync?t.control.setValue(t.value):t.control.syncDotsPos(),t.states.delete(ht.Drag),t.useKeyboard||t.states.delete(ht.Focus),t.$emit("drag-end",t.focusDotIndex)}))}},{key:"blurHandle",value:function(t){if(!this.states.has(ht.Focus)||!this.$refs.container||this.$refs.container.contains(t.target))return!1;this.states.delete(ht.Focus)}},{key:"clickHandle",value:function(t){if(!this.clickable||this.disabled)return!1;if(!this.states.has(ht.Drag)){this.setScale();var e=this.getPosByEvent(t);this.setValueByPos(e)}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.states.add(ht.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete(ht.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?nt(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,n=Array.isArray(t)?t.map((function(t){return e.control.getValueByIndex(t)})):this.control.getValueByIndex(t);this.setValue(n)}},{key:"setValueByPos",value:function(t){var e=this,n=this.control.getRecentDot(t);if(this.disabled||this.dots[n].disabled)return!1;this.focusDotIndex=n,this.control.setDotPos(t,n),this.syncValueByPos(),this.useKeyboard&&this.states.add(ht.Focus),setTimeout((function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()}))}},{key:"keydownHandle",value:function(t){var e=this;if(!this.useKeyboard||!this.states.has(ht.Focus))return!1;var n=this.included&&this.marks,i=function(t,e){if(e.hook){var n=e.hook(t);if("function"==typeof n)return n;if(!n)return null}switch(t.keyCode){case L.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case L.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case L.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case L.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case L.END:return function(){return e.max};case L.HOME:return function(){return e.min};case L.PAGE_UP:return function(t){return t+10};case L.PAGE_DOWN:return function(t){return t-10};default:return null}}(t,{direction:this.direction,max:n?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(i){t.preventDefault();var r=-1,o=0;n?(this.control.markList.some((function(t,n){return t.value===e.control.dotsValue[e.focusDotIndex]&&(r=i(n),!0)})),r<0?r=0:r>this.control.markList.length-1&&(r=this.control.markList.length-1),o=this.control.markList[r].pos):(r=i(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),o=this.control.parseValue(this.control.getValueByIndex(r))),this.isCrossDot(o),this.control.setDotPos(o,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return M(t,this.$el,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,n,i){var r=this.$createElement,o=this.$scopedSlots[t];return o?i?o(e):r("template",{slot:t},[o(e)]):n}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",l()([{ref:"container",class:this.containerClasses,style:this.containerStyles,on:{click:this.clickHandle,touchstart:this.dragStartOnProcess,mousedown:this.dragStartOnProcess}},this.$attrs]),[e("div",{class:"vue-slider-rail",style:this.railStyle},[this.processArray.map((function(n,i){return t.renderSlot("process",n,e("div",{class:"vue-slider-process",key:"process-".concat(i),style:n.style}),!0)})),this.marks?e("div",{class:"vue-slider-marks"},[this.control.markList.map((function(n,i){var r;return t.renderSlot("mark",n,e("vue-slider-mark",{key:"mark-".concat(i),attrs:{mark:n,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(r={},et(r,t.isHorizontal?"height":"width","100%"),et(r,t.isHorizontal?"width":"height",t.tailSize),et(r,t.mainDirection,"".concat(n.pos,"%")),r),on:{pressLabel:function(e){return t.clickable&&t.setValueByPos(e)}}},[t.renderSlot("step",n,null),t.renderSlot("label",n,null)]),!0)}))]):null,this.dots.map((function(n,i){var r;return e("vue-slider-dot",{ref:"dot-".concat(i),key:"dot-".concat(i),attrs:{value:n.value,disabled:n.disabled,focus:n.focus,"dot-style":[n.style,n.disabled?n.disabledStyle:null,n.focus?n.focusStyle:null],tooltip:n.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,n.tooltipStyle,n.disabled?n.tooltipDisabledStyle:null,n.focus?n.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.tooltipFormatter)?t.tooltipFormatter[i]:t.tooltipFormatter,"tooltip-placement":t.tooltipDirections[i]},style:[t.dotBaseStyle,(r={},et(r,t.mainDirection,"".concat(n.pos,"%")),et(r,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),r)],on:{"drag-start":function(){return t.dragStart(i)}}},[t.renderSlot("dot",n,null),t.renderSlot("tooltip",n,null)])})),this.renderSlot("default",{value:this.getValue()},null,!0)])])}},{key:"tailSize",get:function(){return P((this.isHorizontal?this.height:this.width)||4)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var t=tt(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),e=t[0],n=t[1],i=this.width?P(this.width):this.isHorizontal?"auto":P(4),r=this.height?P(this.height):this.isHorizontal?P(4):"auto";return{padding:this.contained?"".concat(n/2,"px ").concat(e/2,"px"):this.isHorizontal?"".concat(n/2,"px 0"):"0 ".concat(e/2,"px"),width:i,height:r}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map((function(e,n){var i,r=tt(e,3),o=r[0],a=r[1],s=r[2];if(o>a){var l=[a,o];o=l[0],a=l[1]}var c=t.isHorizontal?"width":"height";return{start:o,end:a,index:n,style:Z(Z((i={},et(i,t.isHorizontal?"height":"width","100%"),et(i,t.isHorizontal?"top":"left",0),et(i,t.mainDirection,"".concat(o,"%")),et(i,c,"".concat(a-o,"%")),et(i,"transitionProperty","".concat(c,",").concat(t.mainDirection)),et(i,"transitionDuration","".concat(t.animateTime,"s")),i),t.processStyle),s)}}))}},{key:"dotBaseStyle",get:function(){var t,e=tt(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),n=e[0],i=e[1];return t=this.isHorizontal?et({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):et({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),Z({width:"".concat(n,"px"),height:"".concat(i,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map((function(){return t}))}},{key:"dots",get:function(){var t=this;return this.control.dotsPos.map((function(e,n){return Z({pos:e,index:n,value:t.control.dotsValue[n],focus:t.states.has(ht.Focus)&&t.focusDotIndex===n,disabled:t.disabled,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[n]:t.dotOptions)||{})}))}},{key:"animateTime",get:function(){return this.states.has(ht.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some((function(e,n){return e!==t[n]})):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];return[t?t.pos:-1/0,e?e.pos:1/0]}}]),n}(h.a);return c([p("change",{default:0})],t.prototype,"value",void 0),c([v({type:Boolean,default:!1})],t.prototype,"silent",void 0),c([v({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],t.prototype,"direction",void 0),c([v({type:[Number,String]})],t.prototype,"width",void 0),c([v({type:[Number,String]})],t.prototype,"height",void 0),c([v({default:14})],t.prototype,"dotSize",void 0),c([v({default:!1})],t.prototype,"contained",void 0),c([v({type:Number,default:0})],t.prototype,"min",void 0),c([v({type:Number,default:100})],t.prototype,"max",void 0),c([v({type:Number,default:1})],t.prototype,"interval",void 0),c([v({type:Boolean,default:!1})],t.prototype,"disabled",void 0),c([v({type:Boolean,default:!0})],t.prototype,"clickable",void 0),c([v({type:Boolean,default:!1})],t.prototype,"dragOnClick",void 0),c([v({type:Number,default:.5})],t.prototype,"duration",void 0),c([v(Array)],t.prototype,"data",void 0),c([v({type:Boolean,default:!1})],t.prototype,"lazy",void 0),c([v({type:String,validator:function(t){return["none","always","focus","hover","active"].indexOf(t)>-1},default:"active"})],t.prototype,"tooltip",void 0),c([v({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every((function(t){return["top","right","bottom","left"].indexOf(t)>-1}))}})],t.prototype,"tooltipPlacement",void 0),c([v({type:[String,Array,Function]})],t.prototype,"tooltipFormatter",void 0),c([v({type:Boolean,default:!1})],t.prototype,"useKeyboard",void 0),c([v(Function)],t.prototype,"keydownHook",void 0),c([v({type:Boolean,default:!0})],t.prototype,"enableCross",void 0),c([v({type:Boolean,default:!1})],t.prototype,"fixed",void 0),c([v({type:Boolean,default:!0})],t.prototype,"order",void 0),c([v(Number)],t.prototype,"minRange",void 0),c([v(Number)],t.prototype,"maxRange",void 0),c([v({type:[Boolean,Object,Array,Function],default:!1})],t.prototype,"marks",void 0),c([v({type:[Boolean,Function],default:!0})],t.prototype,"process",void 0),c([v(Boolean)],t.prototype,"included",void 0),c([v(Boolean)],t.prototype,"adsorb",void 0),c([v(Boolean)],t.prototype,"hideLabel",void 0),c([v()],t.prototype,"dotOptions",void 0),c([v()],t.prototype,"railStyle",void 0),c([v()],t.prototype,"processStyle",void 0),c([v()],t.prototype,"dotStyle",void 0),c([v()],t.prototype,"tooltipStyle",void 0),c([v()],t.prototype,"stepStyle",void 0),c([v()],t.prototype,"stepActiveStyle",void 0),c([v()],t.prototype,"labelStyle",void 0),c([v()],t.prototype,"labelActiveStyle",void 0),c([y("value")],t.prototype,"onValueChanged",null),c([f()({data:function(){return{control:null}},components:{VueSliderDot:E,VueSliderMark:I}})],t)}();dt.VueSliderMark=I,dt.VueSliderDot=E;var ft=dt;e.default=ft}}).default}(n("8bbf"))},"499e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=o[0],s={id:t+":"+r,css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}n.r(e),n.d(e,"default",(function(){return p}));var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},h=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,r){c=n,h=r||{};var a=i(t,e);return v(a),function(e){for(var n=[],r=0;r<a.length;r++){var s=a[r],l=o[s.id];l.refs--,n.push(l)}for(e?v(a=i(t,e)):a=[],r=0;r<n.length;r++)if(0===(l=n[r]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}function v(t){for(var e=0;e<t.length;e++){var n=t[e],i=o[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(m(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(m(n.parts[r]));o[n.id]={id:n.id,refs:1,parts:a}}}}function y(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function m(t){var e,n,i=document.querySelector("style["+d+'~="'+t.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(f){var r=l++;i=s||(s=y()),e=w.bind(null,i,r,!1),n=w.bind(null,i,r,!0)}else i=y(),e=b.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}var g=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function w(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=g(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function b(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),h.ssrId&&t.setAttribute(d,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"49ad":function(t,e,n){"use strict";t.exports=function(t){var e={};function n(n){var i=t.get(n);return void 0===i?[]:e[i]||[]}return{get:n,add:function(n,i){var r=t.get(n);e[r]||(e[r]=[]),e[r].push(i)},removeListener:function(t,e){for(var i=n(t),r=0,o=i.length;r<o;++r)if(i[r]===e){i.splice(r,1);break}},removeAllListeners:function(t){var e=n(t);e&&(e.length=0)}}}},"4a59":function(t,e,n){var i=n("9b43"),r=n("1fa8"),o=n("33a4"),a=n("cb7c"),s=n("9def"),l=n("27ee"),c={},u={};(e=t.exports=function(t,e,n,h,d){var f,p,v,y,m=d?function(){return t}:l(t),g=i(n,h,e?2:1),w=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(f=s(t.length);f>w;w++)if((y=e?g(a(p=t[w])[0],p[1]):g(t[w]))===c||y===u)return y}else for(v=m.call(t);!(p=v.next()).done;)if((y=r(v,g,p.value,e))===c||y===u)return y}).BREAK=c,e.RETURN=u},"4b0b":function(t,e,n){"use strict";var i=n("9bfc");n.n(i).a},"4bf8":function(t,e,n){var i=n("be13");t.exports=function(t){return Object(i(t))}},5058:function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var i=n(t);if(!i)throw new Error("setId required the element to have a resize detection state.");var r=e.generate();return i.id=r,r}}}},"50bf":function(t,e,n){"use strict";(t.exports={}).getOption=function(t,e,n){var i=t[e];return null!=i||void 0===n?i:n}},"520a":function(t,e,n){"use strict";var i=n("0bfb"),r=RegExp.prototype.exec,o=String.prototype.replace,a=r,s="lastIndex",l=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t[s]||0!==e[s]}(),c=void 0!==/()??/.exec("")[1];(l||c)&&(a=function(t){var e,n,a,u,h=this;return c&&(n=new RegExp("^"+h.source+"$(?!\\s)",i.call(h))),l&&(e=h[s]),a=r.call(h,t),l&&a&&(h[s]=h.global?a.index+a[0].length:e),c&&a&&a.length>1&&o.call(a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a}),t.exports=a},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"551c":function(t,e,n){"use strict";var i,r,o,a,s=n("2d00"),l=n("7726"),c=n("9b43"),u=n("23c6"),h=n("5ca1"),d=n("d3f4"),f=n("d8e8"),p=n("f605"),v=n("4a59"),y=n("ebd6"),m=n("1991").set,g=n("8079")(),w=n("a5b8"),b=n("9c80"),_=n("a25f"),x=n("bcaa"),S="Promise",E=l.TypeError,k=l.process,C=k&&k.versions,A=C&&C.v8||"",T=l[S],R="process"==u(k),D=function(){},O=r=w.f,L=!!function(){try{var t=T.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(D,D)};return(R||"function"==typeof PromiseRejectionEvent)&&t.then(D)instanceof e&&0!==A.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;g((function(){for(var i=t._v,r=1==t._s,o=0,a=function(e){var n,o,a,s=r?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(r||(2==t._h&&U(t),t._h=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),a=!0)),n===e.promise?c(E("Promise-chain cycle")):(o=I(n))?o.call(n,l,c):l(n)):c(i)}catch(t){u&&!a&&u.exit(),c(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&M(t)}))}},M=function(t){m.call(l,(function(){var e,n,i,r=t._v,o=N(t);if(o&&(e=b((function(){R?k.emit("unhandledRejection",r,t):(n=l.onunhandledrejection)?n({promise:t,reason:r}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",r)})),t._h=R||N(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},U=function(t){m.call(l,(function(){var e;R?k.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},W=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()),P(e,!0))},F=function t(e){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw E("Promise can't be resolved itself");(n=I(e))?g((function(){var r={_w:i,_d:!1};try{n.call(e,c(t,r,1),c(W,r,1))}catch(t){W.call(r,t)}})):(i._v=e,i._s=1,P(i,!1))}catch(t){W.call({_w:i,_d:!1},t)}}};L||(T=function(t){p(this,T,S,"_h"),f(t),i.call(this);try{t(c(F,this,1),c(W,this,1))}catch(t){W.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("dcbc")(T.prototype,{then:function(t,e){var n=O(y(this,T));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=R?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new i;this.promise=t,this.resolve=c(F,t,1),this.reject=c(W,t,1)},w.f=O=function(t){return t===T||t===a?new o(t):r(t)}),h(h.G+h.W+h.F*!L,{Promise:T}),n("7f20")(T,S),n("7a56")(S),a=n("8378")[S],h(h.S+h.F*!L,S,{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!L),S,{resolve:function(t){return x(s&&this===a?T:this,t)}}),h(h.S+h.F*!(L&&n("5cc5")((function(t){T.all(t).catch(D)}))),S,{all:function(t){var e=this,n=O(e),i=n.resolve,r=n.reject,o=b((function(){var n=[],o=0,a=1;v(t,!1,(function(t){var s=o++,l=!1;n.push(void 0),a++,e.resolve(t).then((function(t){l||(l=!0,n[s]=t,--a||i(n))}),r)})),--a||i(n)}));return o.e&&r(o.v),n.promise},race:function(t){var e=this,n=O(e),i=n.reject,r=b((function(){v(t,!1,(function(t){e.resolve(t).then(n.resolve,i)}))}));return r.e&&i(r.v),n.promise}})},5537:function(t,e,n){var i=n("8378"),r=n("7726"),o="__core-js_shared__",a=r[o]||(r[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5577:function(t,e,n){var i=n("716f");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("e84da2fe",i,!0,{sourceMap:!1,shadowMode:!1})},5661:function(t,e,n){var i=n("e6a8");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("d9a8fa16",i,!0,{sourceMap:!1,shadowMode:!1})},"5be5":function(t,e,n){"use strict";t.exports=function(t){var e=t.stateHandler.getState;return{isDetectable:function(t){var n=e(t);return n&&!!n.isDetectable},markAsDetectable:function(t){e(t).isDetectable=!0},isBusy:function(t){return!!e(t).busy},markBusy:function(t,n){e(t).busy=!!n}}}},"5ca1":function(t,e,n){var i=n("7726"),r=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",c=function t(e,n,c){var u,h,d,f,p=e&t.F,v=e&t.G,y=e&t.P,m=e&t.B,g=v?i:e&t.S?i[n]||(i[n]={}):(i[n]||{})[l],w=v?r:r[n]||(r[n]={}),b=w[l]||(w[l]={});for(u in v&&(c=n),c)d=((h=!p&&g&&void 0!==g[u])?g:c)[u],f=m&&h?s(d,i):y&&"function"==typeof d?s(Function.call,d):d,g&&a(g,u,d,e&t.U),w[u]!=d&&o(w,u,f),y&&b[u]!=d&&(b[u]=d)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5cc5":function(t,e,n){var i=n("2b4c")("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(t){}return n}},"5df3":function(t,e,n){"use strict";var i=n("02f4")(!0);n("01f9")(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})}))},"5eda":function(t,e,n){var i=n("5ca1"),r=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(t,e,n){"use strict";var i=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!==s(o))throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"613b":function(t,e,n){var i=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return i[t]||(i[t]=r(t))}},"626a":function(t,e,n){var i=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"63d9":function(t,e,n){n("ec30")("Float32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"67ab":function(t,e,n){var i=n("ca5a")("meta"),r=n("d3f4"),o=n("69a8"),a=n("86cc").f,l=0,c=Object.isExtensible||function(){return!0},u=!n("79e5")((function(){return c(Object.preventExtensions({}))})),h=function(t){a(t,i,{value:{i:"O"+ ++l,w:{}}})},d=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==s(t)?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!c(t))return"F";if(!e)return"E";h(t)}return t[i].i},getWeak:function(t,e){if(!o(t,i)){if(!c(t))return!0;if(!e)return!1;h(t)}return t[i].w},onFreeze:function(t){return u&&d.NEED&&c(t)&&!o(t,i)&&h(t),t}}},6821:function(t,e,n){var i=n("626a"),r=n("be13");t.exports=function(t){return i(r(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var i=n("d3f4");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")}},"6b54":function(t,e,n){"use strict";n("3846");var i=n("cb7c"),r=n("0bfb"),o=n("9e1e"),a="toString",s=/./[a],l=function(t){n("2aba")(RegExp.prototype,a,t,!0)};n("79e5")((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?l((function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?r.call(t):void 0)})):s.name!=a&&l((function(){return s.call(this)}))},"6c7b":function(t,e,n){var i=n("5ca1");i(i.P,"Array",{fill:n("36bd")}),n("9c6c")("fill")},"716f":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".vod-wins[data-v-7eb6e3ed]{-webkit-box-flex:100;-ms-flex-positive:100;flex-grow:100;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.vod-times[data-v-7eb6e3ed]{display:block;overflow-y:hidden;position:relative}.times-panel[data-v-7eb6e3ed]{position:absolute;width:100%;border:none;margin:0 0;padding:0 0}.vod-time-row[data-v-7eb6e3ed]{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;background-color:#121212}.vod-time-left[data-v-7eb6e3ed],.vod-time-row[data-v-7eb6e3ed]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.vod-time-left[data-v-7eb6e3ed]{width:60px;padding:0 5px;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.calendar-container[data-v-7eb6e3ed]{right:10px;bottom:100px;z-index:20;position:absolute}.err-msg[data-v-7eb6e3ed]{color:red;font:18px Arial;font-weight:bolder}",""])},7514:function(t,e,n){"use strict";var i=n("5ca1"),r=n("0a49")(5),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),i(i.P+i.F*a,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},7726: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)},"77f1":function(t,e,n){var i=n("4588"),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7a56":function(t,e,n){"use strict";var i=n("7726"),r=n("86cc"),o=n("9e1e"),a=n("2b4c")("species");t.exports=function(t){var e=i[t];o&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},"7aa1":function(t,e,n){"use strict";var i=n("14e8");n.n(i).a},"7bbc":function(t,e,n){var i=n("6821"),r=n("9093").f,o={}.toString,a="object"==("undefined"==typeof window?"undefined":s(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return r(t)}catch(t){return a.slice()}}(t):r(i(t))}},"7da8":function(t,e,n){var i=n("852f");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("043b7139",i,!0,{sourceMap:!1,shadowMode:!1})},"7f20":function(t,e,n){var i=n("86cc").f,r=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var i=n("86cc").f,r=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in r||n("9e1e")&&i(r,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8079:function(t,e,n){var i=n("7726"),r=n("1991").set,o=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,l="process"==n("2d95")(a);t.exports=function(){var t,e,n,c=function(){var i,r;for(l&&(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(l)n=function(){a.nextTick(c)};else if(!o||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){r.call(i,c)};else{var h=!0,d=document.createTextNode("");new o(c).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},8378:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"852f":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{height:15px;bottom:0}.ps__rail-x,.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;position:absolute}.ps__rail-y{width:15px;right:0}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}",""])},"86cb":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".play-pb[data-v-44448bc0]{height:20px;position:relative;z-index:100;opacity:.7;margin:0 5px 0 5px}",""])},"86cc":function(t,e,n){var i=n("cb7c"),r=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=o(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}},"899a":function(t,e,n){var i=n("a107");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("66a109b7",i,!0,{sourceMap:!1,shadowMode:!1})},"8a81":function(t,e,n){"use strict";var i=n("7726"),r=n("69a8"),o=n("9e1e"),a=n("5ca1"),l=n("2aba"),c=n("67ab").KEY,u=n("79e5"),h=n("5537"),d=n("7f20"),f=n("ca5a"),p=n("2b4c"),v=n("37c8"),y=n("3a72"),m=n("d4c0"),g=n("1169"),w=n("cb7c"),b=n("d3f4"),_=n("4bf8"),x=n("6821"),S=n("6a99"),E=n("4630"),k=n("2aeb"),C=n("7bbc"),A=n("11e9"),T=n("2621"),R=n("86cc"),D=n("0d58"),O=A.f,L=R.f,I=C.f,P=i.Symbol,M=i.JSON,N=M&&M.stringify,U="prototype",W=p("_hidden"),F=p("toPrimitive"),B={}.propertyIsEnumerable,z=h("symbol-registry"),j=h("symbols"),V=h("op-symbols"),H=Object[U],Y="function"==typeof P&&!!T.f,K=i.QObject,q=!K||!K[U]||!K[U].findChild,G=o&&u((function(){return 7!=k(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=O(H,e);i&&delete H[e],L(t,e,n),i&&t!==H&&L(H,e,i)}:L,$=function(t){var e=j[t]=k(P[U]);return e._k=t,e},X=Y&&"symbol"==s(P.iterator)?function(t){return"symbol"==s(t)}:function(t){return t instanceof P},J=function t(e,n,i){return e===H&&t(V,n,i),w(e),n=S(n,!0),w(i),r(j,n)?(i.enumerable?(r(e,W)&&e[W][n]&&(e[W][n]=!1),i=k(i,{enumerable:E(0,!1)})):(r(e,W)||L(e,W,E(1,{})),e[W][n]=!0),G(e,n,i)):L(e,n,i)},Q=function(t,e){w(t);for(var n,i=m(e=x(e)),r=0,o=i.length;o>r;)J(t,n=i[r++],e[n]);return t},Z=function(t){var e=B.call(this,t=S(t,!0));return!(this===H&&r(j,t)&&!r(V,t))&&(!(e||!r(this,t)||!r(j,t)||r(this,W)&&this[W][t])||e)},tt=function(t,e){if(t=x(t),e=S(e,!0),t!==H||!r(j,e)||r(V,e)){var n=O(t,e);return!n||!r(j,e)||r(t,W)&&t[W][e]||(n.enumerable=!0),n}},et=function(t){for(var e,n=I(x(t)),i=[],o=0;n.length>o;)r(j,e=n[o++])||e==W||e==c||i.push(e);return i},nt=function(t){for(var e,n=t===H,i=I(n?V:x(t)),o=[],a=0;i.length>a;)!r(j,e=i[a++])||n&&!r(H,e)||o.push(j[e]);return o};Y||(l((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function e(n){this===H&&e.call(V,n),r(this,W)&&r(this[W],t)&&(this[W][t]=!1),G(this,t,E(1,n))};return o&&q&&G(H,t,{configurable:!0,set:e}),$(t)})[U],"toString",(function(){return this._k})),A.f=tt,R.f=J,n("9093").f=C.f=et,n("52a7").f=Z,T.f=nt,o&&!n("2d00")&&l(H,"propertyIsEnumerable",Z,!0),v.f=function(t){return $(p(t))}),a(a.G+a.W+a.F*!Y,{Symbol:P});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;it.length>rt;)p(it[rt++]);for(var ot=D(p.store),at=0;ot.length>at;)y(ot[at++]);a(a.S+a.F*!Y,"Symbol",{for:function(t){return r(z,t+="")?z[t]:z[t]=P(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in z)if(z[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!Y,"Object",{create:function(t,e){return void 0===e?k(t):Q(k(t),e)},defineProperty:J,defineProperties:Q,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var st=u((function(){T.f(1)}));a(a.S+a.F*st,"Object",{getOwnPropertySymbols:function(t){return T.f(_(t))}}),M&&a(a.S+a.F*(!Y||u((function(){var t=P();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(b(e)||void 0!==t)&&!X(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),i[1]=e,N.apply(M,i)}}),P[U][F]||n("32e9")(P[U],F,P[U].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},"8bbf":function(e,n){e.exports=t},"8e6e":function(t,e,n){var i=n("5ca1"),r=n("990b"),o=n("6821"),a=n("11e9"),s=n("f1ae");i(i.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,i=o(t),l=a.f,c=r(i),u={},h=0;c.length>h;)void 0!==(n=l(i,e=c[h++]))&&s(u,e,n);return u}})},9093:function(t,e,n){var i=n("ce10"),r=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},9224:function(t){t.exports=JSON.parse('{"name":"dcs-plugin","version":"1.2.0","vatversion":"1.0.0","description":"DCS H5视频控件","author":"zhouqianlong@cloudwalk.com","homepage":"http://10.135.112.181","private":false,"publishConfig":{"registry":"https://artifact.cloudwalk.work/artifactory/api/npm/all-dept_npm-local/"},"main":"lib/dcs-plugin.umd.min.js","typings":"types/index.d.ts","scripts":{"serve":"vue-cli-service serve","build:demo":"vue-cli-service build","build-player":"vue-cli-service build --target lib --formats umd-min --dest lib ./src/index.ts","build-render":"vue-cli-service build --target lib --formats umd-min --dest lib/renders --name renders ./src/renders.ts","build":"npm run build-player","lint":"vue-cli-service lint","test:unit":"vue-cli-service test:unit","inspect":"vue-cli-service inspect"},"files":["lib","installer","docs","types","README.md"],"dependencies":{"axios":"^0.19.2","compare-versions":"^3.4.0","core-js":"^2.6.5","element-resize-detector":"^1.2.1","perfect-scrollbar":"^1.4.0","vue":"^2.6.6","vue-class-component":"^6.0.0","vue-property-decorator":"^8.0.0","vue-slider-component":"^3.0.43","vuex":"^3.0.1"},"devDependencies":{"@types/jest":"^23.1.4","@vue/cli-plugin-babel":"^3.5.0","@vue/cli-plugin-typescript":"^3.5.0","@vue/cli-plugin-unit-jest":"^3.5.0","@vue/cli-service":"^3.5.0","@vue/test-utils":"1.0.0-beta.29","babel-core":"7.0.0-bridge.0","node-sass":"^4.12.0","sass-loader":"^8.0.0","ts-jest":"^23.0.0","typescript":"^3.2.1","vue-template-compiler":"^2.5.21","zip-webpack-plugin":"^3.0.0"}}')},"990b":function(t,e,n){var i=n("9093"),r=n("2621"),o=n("cb7c"),a=n("7726").Reflect;t.exports=a&&a.ownKeys||function(t){var e=i.f(o(t)),n=r.f;return n?e.concat(n(t)):e}},"9b43":function(t,e,n){var i=n("d8e8");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)}}},"9ba3":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,"@-webkit-keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes vatblink{0%{opacity:1}50%{opacity:.4}to{opacity:1}}div[vat=vod-player]{width:100%;height:100%;border:0;padding:0;margin:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}div[vat=win-root]{width:100%;height:100%;overflow:hidden}table[vat=win-tab]{width:100%;height:100%;background-color:#2b2b2b;border:1px solid #364a63;border-collapse:separate}table[vat=win-tab],table[vat=win-tab]>tr>td{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}table[vat=win-tab]>tr>td{border:1px solid #2b2b2b;background-color:#101010;overflow-x:hidden;overflow-y:hidden;padding:0;vertical-align:top}table[vat=win-tab]>tr>td[max=true]{border:none}table[vat=win-tab]>tr>td:hover{border:1px solid #4e4067}table[vat=win-tab]>tr>td.selected{border:1px solid #811c1c}table[vat=vod-layout]{width:100%;height:100%;border:none;overflow:hidden;padding:0;margin:0;border-collapse:collapse;border-spacing:0;display:table;table-layout:fixed}table[vat=vod-layout]>tr{border:none}table[vat=vod-layout]>tr>td{border:none;overflow:hidden;position:relative}table[vat=vod-layout]>tr>td #vod-tool{width:100%;height:50px;background-color:#1c4480;display:block}div[vat=timeline]{height:50px;background-color:#0f1322}div[vat=vod-player]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-line-pack:stretch;align-content:stretch;background-color:#000;position:relative;outline:none}div[vat=vod-player] label{color:#b0d0d0;border-left:#d0d0d0;white-space:nowrap;display:inline-block;font:14px Arial;max-width:35px}div[vat=vod-player] .vod-wins{-ms-flex-item-align:initial;align-self:auto}.vatrender{position:absolute;border:none;z-index:49;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vatwin{width:100%;height:100%;border:none;position:relative;vertical-align:middle;text-align:center;padding:0;background-color:#000}.vatwin .vatwin-extrender-canvas{position:absolute;left:0;top:0;z-index:1000}",""])},"9bfc":function(t,e,n){var i=n("215a");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("a79280b6",i,!0,{sourceMap:!1,shadowMode:!1})},"9c29":function(t,e,n){n("ec30")("Uint32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"9c6c":function(t,e,n){var i=n("2b4c")("unscopables"),r=Array.prototype;null==r[i]&&n("32e9")(r,i,{}),t.exports=function(t){r[i][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},"9def":function(t,e,n){var i=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a107:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,"@-webkit-keyframes vatblink-data-v-85562768{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes vatblink-data-v-85562768{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.timeline[data-v-85562768]{display:-webkit-box;display:-ms-flexbox;display:flex;height:60px;background-color:#121212;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-line-pack:stretch;align-content:stretch;position:relative;overflow:hidden;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:100;-ms-flex-positive:100;flex-grow:100;border:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ruler[data-v-85562768]{z-index:10}.records[data-v-85562768],.ruler[data-v-85562768]{-webkit-box-flex:100;-ms-flex-positive:100;flex-grow:100;position:absolute}.records[data-v-85562768]{z-index:11;pointer-events:none}.time[data-v-85562768]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;font:12px Arial;color:#fefefe;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.time[data-v-85562768],.time-p[data-v-85562768]{position:relative;z-index:12;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;pointer-events:none}.time-p[data-v-85562768]{width:1px;height:45px;background-color:#e00}.scale[data-v-85562768]{position:absolute;left:10px;top:0;font:12px Arial;z-index:12;line-height:15px;color:#d0d0d0;pointer-events:none}",""])},a25f:function(t,e,n){var i=n("7726").navigator;t.exports=i&&i.userAgent||""},a481:function(t,e,n){"use strict";var i=n("cb7c"),r=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,(function(t,e,n,v){return[function(i,r){var o=t(this),a=null==i?void 0:i[e];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},function(t,e){var r=v(n,t,this,e);if(r.done)return r.value;var h=i(t),d=String(this),f="function"==typeof e;f||(e=String(e));var m=h.global;if(m){var g=h.unicode;h.lastIndex=0}for(var w=[];;){var b=l(h,d);if(null===b)break;if(w.push(b),!m)break;""===String(b[0])&&(h.lastIndex=s(d,o(h.lastIndex),g))}for(var _="",x=0,S=0;S<w.length;S++){b=w[S];for(var E=String(b[0]),k=c(u(a(b.index),d.length),0),C=[],A=1;A<b.length;A++)C.push(p(b[A]));var T=b.groups;if(f){var R=[E].concat(C,k,d);void 0!==T&&R.push(T);var D=String(e.apply(void 0,R))}else D=y(E,d,k,C,T,e);k>=x&&(_+=d.slice(x,k)+D,x=k+E.length)}return _+d.slice(x)}];function y(t,e,i,o,a,s){var l=i+t.length,c=o.length,u=f;return void 0!==a&&(a=r(a),u=d),n.call(s,u,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":s=a[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var d=h(u/10);return 0===d?n:d<=c?void 0===o[d-1]?r.charAt(1):o[d-1]+r.charAt(1):n}s=o[u-1]}return void 0===s?"":s}))}}))},a5b8:function(t,e,n){"use strict";var i=n("d8e8");function r(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.exports.f=function(t){return new r(t)}},aa8a:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".vod-wins[data-v-9bb76214]{-webkit-box-flex:100;-ms-flex-positive:100;flex-grow:100;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.err-msg[data-v-9bb76214]{color:red;font:18px Arial;font-weight:bolder}",""])},aae3:function(t,e,n){var i=n("d3f4"),r=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},abb4:function(t,e,n){"use strict";t.exports=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var i=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};i(n,"log"),i(n,"warn"),i(n,"error")}return n}},ac4d:function(t,e,n){n("3a72")("asyncIterator")},ac6a:function(t,e,n){for(var i=n("cadf"),r=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),h=c("toStringTag"),d=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(f),v=0;v<p.length;v++){var y,m=p[v],g=f[m],w=a[m],b=w&&w.prototype;if(b&&(b[u]||s(b,u,d),b[h]||s(b,h,m),l[m]=d,g))for(y in i)b[y]||o(b,y,i[y],!0)}},af56:function(t,e,n){n("ec30")("Uint16",2,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},b0c5:function(t,e,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},b188:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,"#vat-tool[data-v-4bb55d15]{padding:0;width:100%;height:32px;background-color:#111;display:-webkit-box;display:-ms-flexbox;display:flex}svg[data-v-4bb55d15]:hover{cursor:pointer}svg>path[data-v-4bb55d15]:hover{fill:#bbb}svg.icon[data-v-4bb55d15]{margin-left:8px;margin-right:8px}svg.disabled[data-v-4bb55d15]{cursor:default;pointer-events:none}svg.disabled>path[data-v-4bb55d15]{fill:#666}svg.hide[data-v-4bb55d15]{display:none}table[data-v-4bb55d15]{width:100%;height:100%;border-spacing:0}.speed[data-v-4bb55d15]{color:#f0f0f0;line-height:32px;font:700 14px Microsoft YaHei;margin-left:10px;margin-right:30px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:40px}.btns[data-v-4bb55d15],.speed[data-v-4bb55d15]{display:-webkit-box;display:-ms-flexbox;display:flex}.btns[data-v-4bb55d15]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0 auto;width:368px}.btn-menu[data-v-4bb55d15]{position:absolute;left:0;top:-100px;z-index:1001;opacity:0;-webkit-transition:visibility 0s linear .33s,opacity .33s linear;transition:visibility 0s linear .33s,opacity .33s linear}.btn-menu-icon:hover~.btn-menu[data-v-4bb55d15],.btn-menu[data-v-4bb55d15]:hover{visibility:visible;opacity:.9;-webkit-transition-delay:0s;transition-delay:0s}.scale-btns[data-v-4bb55d15]{width:78px}.scale-btns[data-v-4bb55d15],.speed-menu[data-v-4bb55d15]{display:-webkit-box;display:-ms-flexbox;display:flex}.speed-menu[data-v-4bb55d15]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background:rgba(29,29,29,.67)}.speed-menu span[data-v-4bb55d15]{list-style:none;height:20px;width:60px;color:#f0f0f0;margin:0;padding:1px;font:14px Microsoft YaHei;cursor:pointer;border:1px solid #2a2a2a}.speed-menu span.active[data-v-4bb55d15]{color:#0f1322;background-color:#f0f0f0}.speed-menu span[data-v-4bb55d15]:hover{background-color:#00adee}",""])},b5f0:function(t,e,n){"use strict";var i=n("5661");n.n(i).a},b697:function(t,e,n){var i,r,o;r=[],i=function(){var t=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function e(t){var e=t.replace(/^v/,"").replace(/\+.*$/,""),n=function(t,e){return-1===t.indexOf(e)?t.length:t.indexOf(e)}(e,"-"),i=e.substring(0,n).split(".");return i.push(e.substring(n+1)),i}function n(t){return isNaN(Number(t))?t:Number(t)}function i(e){if("string"!=typeof e)throw new TypeError("Invalid argument expected string");if(!t.test(e))throw new Error("Invalid argument not valid semver ('"+e+"' received)")}function r(t,r){[t,r].forEach(i);for(var o=e(t),a=e(r),s=0;s<Math.max(o.length-1,a.length-1);s++){var l=parseInt(o[s]||0,10),c=parseInt(a[s]||0,10);if(l>c)return 1;if(c>l)return-1}var u=o[o.length-1],h=a[a.length-1];if(u&&h){var d=u.split(".").map(n),f=h.split(".").map(n);for(s=0;s<Math.max(d.length,f.length);s++){if(void 0===d[s]||"string"==typeof f[s]&&"number"==typeof d[s])return-1;if(void 0===f[s]||"string"==typeof d[s]&&"number"==typeof f[s])return 1;if(d[s]>f[s])return 1;if(f[s]>d[s])return-1}}else if(u||h)return u?-1:1;return 0}var o=[">",">=","=","<","<="],a={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return r.validate=function(e){return"string"==typeof e&&t.test(e)},r.compare=function(t,e,n){!function(t){if("string"!=typeof t)throw new TypeError("Invalid operator type, expected string but got "+s(t));if(-1===o.indexOf(t))throw new TypeError("Invalid operator, expected one of "+o.join("|"))}(n);var i=r(t,e);return a[n].indexOf(i)>-1},r},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)},b770:function(t,e,n){"use strict";(t.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var i=e(t[n]);if(i)return i}}},ba92:function(t,e,n){"use strict";var i=n("4bf8"),r=n("77f1"),o=n("9def");t.exports=[].copyWithin||function(t,e){var n=i(this),a=o(n.length),s=r(t,a),l=r(e,a),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?a:r(c,a))-l,a-s),h=1;for(l<s&&s<l+u&&(h=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=h,l+=h;return n}},bcaa:function(t,e,n){var i=n("cb7c"),r=n("d3f4"),o=n("a5b8");t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c0e8:function(t,e){},c274:function(t,e,n){"use strict";var i=n("50bf");function r(){var t={},e=0,n=0,i=0;return{add:function(r,o){o||(o=r,r=0),r>n?n=r:r<i&&(i=r),t[r]||(t[r]=[]),t[r].push(o),e++},process:function(){for(var e=i;e<=n;e++)for(var r=t[e],o=0;o<r.length;o++)(0,r[o])()},size:function(){return e}}}t.exports=function(t){var e=(t=t||{}).reporter,n=i.getOption(t,"async",!0),o=i.getOption(t,"auto",!0);o&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var a,s=r(),l=!1;function c(){for(l=!0;s.size();){var t=s;s=r(),t.process()}l=!1}function u(){a=function(t){return function(t){return setTimeout(t,0)}(t)}(c)}return{add:function(t,e){!l&&o&&n&&0===s.size()&&u(),s.add(t,e)},force:function(t){l||(void 0===t&&(t=n),a&&(function(t){clearTimeout(t)}(a),a=null),t?u():c())}}}},c366:function(t,e,n){var i=n("6821"),r=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,l=i(e),c=r(l.length),u=o(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c946:function(t,e,n){"use strict";var i=n("b770").forEach;t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,r=t.stateHandler.getState,o=(t.stateHandler.hasState,t.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var a=function(){var t=500,e=500,n=document.createElement("div");n.style.cssText=c(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var i=document.createElement("div");i.style.cssText=c(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),i.appendChild(n),document.body.insertBefore(i,document.body.firstChild);var r=t-i.clientWidth,o=e-i.clientHeight;return document.body.removeChild(i),{width:r,height:o}}(),s="erd_scroll_detection_container";function l(t){!function(t,e,n){if(!t.getElementById(e)){var i=n+"_animation",r=n+"_animation_active",o="/* Created by the element-resize-detector library. */\n";o+="."+n+" > div::-webkit-scrollbar { "+c(["display: none"])+" }\n\n",o+="."+r+" { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+i,"animation-name: "+i])+" }\n",o+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,i){i=i||function(e){t.head.appendChild(e)};var r=t.createElement("style");r.innerHTML=n,r.id=e,i(r)}(o+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(t,"erd_scroll_detection_scrollbar_style",s)}function c(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function u(t,n,i){if(t.addEventListener)t.addEventListener(n,i);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,i)}}function h(t,n,i){if(t.removeEventListener)t.removeEventListener(n,i);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,i)}}function d(t){return r(t).container.childNodes[0].childNodes[0].childNodes[0]}function f(t){return r(t).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(t,l,h){function p(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(o.get(l),"Scroll: "),e.log.apply)e.log.apply(null,n);else for(var i=0;i<n.length;i++)e.log(n[i])}}function v(t){var e=r(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function y(){var t=window.getComputedStyle(l),e={};return e.position=t.position,e.width=l.offsetWidth,e.height=l.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function m(){if(p("storeStyle invoked."),r(l)){var t=y();r(l).style=t}else p("Aborting because element has been uninstalled")}function g(t,e,n){r(t).lastWidth=e,r(t).lastHeight=n}function w(){return 2*a.width+1}function b(){return 2*a.height+1}function _(t){return t+10+w()}function x(t){return t+10+b()}function S(t,e,n){var i=d(t),r=f(t),o=_(e),a=x(n),s=function(t){return 2*t+w()}(e),l=function(t){return 2*t+b()}(n);i.scrollLeft=o,i.scrollTop=a,r.scrollLeft=s,r.scrollTop=l}function E(){var t=r(l).container;if(!t){(t=document.createElement("div")).className=s,t.style.cssText=c(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),r(l).container=t,function(t){t.className+=" "+s+"_animation_active"}(t),l.appendChild(t);var e=function(){r(l).onRendered&&r(l).onRendered()};u(t,"animationstart",e),r(l).onAnimationStart=e}return t}function k(){if(p("Injecting elements"),r(l)){!function(){var n=r(l).style;if("static"===n.position){l.style.setProperty("position","relative",t.important?"important":"");var i=function(t,e,n,i){var r=n[i];"auto"!==r&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(r)&&(t.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",e),e.style[i]=0)};i(e,l,n,"top"),i(e,l,n,"right"),i(e,l,n,"bottom"),i(e,l,n,"left")}}();var n=r(l).container;n||(n=E());var i=a.width,o=a.height,h=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),d=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(function(t,e,n,i){return["left: "+(t=t?t+"px":"0"),"top: "+(e=e?e+"px":"0"),"right: "+(i=i?i+"px":"0"),"bottom: "+(n=n?n+"px":"0")]}(-(1+i),-(1+o),-o,-i))),f=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),v=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=c(["position: absolute","left: 0","top: 0"]),m=c(["position: absolute","width: 200%","height: 200%"]),g=document.createElement("div"),w=document.createElement("div"),b=document.createElement("div"),_=document.createElement("div"),x=document.createElement("div"),S=document.createElement("div");g.dir="ltr",g.style.cssText=h,g.className=s,w.className=s,w.style.cssText=d,b.style.cssText=f,_.style.cssText=y,x.style.cssText=v,S.style.cssText=m,b.appendChild(_),x.appendChild(S),w.appendChild(b),w.appendChild(x),g.appendChild(w),n.appendChild(g),u(b,"scroll",k),u(x,"scroll",C),r(l).onExpandScroll=k,r(l).onShrinkScroll=C}else p("Aborting because element has been uninstalled");function k(){r(l).onExpand&&r(l).onExpand()}function C(){r(l).onShrink&&r(l).onShrink()}}function C(){function a(e,n,i){var r=function(t){return d(t).childNodes[0]}(e),o=_(n),a=x(i);r.style.setProperty("width",o+"px",t.important?"important":""),r.style.setProperty("height",a+"px",t.important?"important":"")}function s(i){var s=l.offsetWidth,u=l.offsetHeight,h=s!==r(l).lastWidth||u!==r(l).lastHeight;p("Storing current size",s,u),g(l,s,u),n.add(0,(function(){if(h)if(r(l))if(c()){if(t.debug){var n=l.offsetWidth,i=l.offsetHeight;n===s&&i===u||e.warn(o.get(l),"Scroll: Size changed before updating detector elements.")}a(l,s,u)}else p("Aborting because element container has not been initialized");else p("Aborting because element has been uninstalled")})),n.add(1,(function(){r(l)?c()?S(l,s,u):p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")})),h&&i&&n.add(2,(function(){r(l)?c()?i():p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")}))}function c(){return!!r(l).container}function u(){p("notifyListenersIfNeeded invoked");var t=r(l);return void 0===r(l).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?p("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?p("Not notifying: Size already notified"):(p("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void i(r(l).listeners,(function(t){t(l)})))}function h(){p("Scroll detected."),v(l)?p("Scroll event fired while unrendered. Ignoring..."):s(u)}if(p("registerListenersAndPositionElements invoked."),r(l)){r(l).onRendered=function(){if(p("startanimation triggered."),v(l))p("Ignoring since element is still unrendered...");else{p("Element rendered.");var t=d(l),e=f(l);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(p("Scrollbars out of sync. Updating detector elements..."),s(u))}},r(l).onExpand=h,r(l).onShrink=h;var y=r(l).style;a(l,y.width,y.height)}else p("Aborting because element has been uninstalled")}function A(){if(p("finalizeDomMutation invoked."),r(l)){var t=r(l).style;g(l,t.width,t.height),S(l,t.width,t.height)}else p("Aborting because element has been uninstalled")}function T(){h(l)}function R(){p("Installing..."),r(l).listeners=[],function(){var t=y();r(l).startSize={width:t.width,height:t.height},p("Element start size",r(l).startSize)}(),n.add(0,m),n.add(1,k),n.add(2,C),n.add(3,A),n.add(4,T)}h||(h=l,l=t,t=null),t=t||{},p("Making detectable..."),function(t){return!function(t){return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)}(t)||null===window.getComputedStyle(t)}(l)?(p("Element is detached"),E(),p("Waiting until element is attached..."),r(l).onRendered=function(){p("Element is now attached"),R()}):R()},addListener:function(t,e){if(!r(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");r(t).listeners.push(e)},uninstall:function(t){var e=r(t);e&&(e.onExpandScroll&&h(d(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&h(f(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&h(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))},initDocument:l}}},ca5a:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},cadf:function(t,e,n){"use strict";var i=n("9c6c"),r=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(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"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},cb7c:function(t,e,n){var i=n("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},cd1c:function(t,e,n){var i=n("e853");t.exports=function(t,e){return new(i(t))(e)}},ce10:function(t,e,n){var i=n("69a8"),r=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~o(c,n)||c.push(n));return c}},d3b2:function(t,e,n){"use strict";var i=n("5577");n.n(i).a},d3f4:function(t,e){t.exports=function(t){return"object"===s(t)?null!==t:"function"==typeof t}},d4c0:function(t,e,n){var i=n("0d58"),r=n("2621"),o=n("52a7");t.exports=function(t){var e=i(t),n=r.f;if(n)for(var a,s=n(t),l=o.f,c=0;s.length>c;)l.call(t,a=s[c++])&&e.push(a);return e}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d6eb:function(t,e,n){"use strict";var i="_erd";function r(t){return t[i]}t.exports={initState:function(t){return t[i]={},r(t)},getState:r,cleanState:function(t){delete t[i]}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},dcbc:function(t,e,n){var i=n("2aba");t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e6a8:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,'ul[data-v-48879689]{padding:0;margin:0;padding-inline:0}.calendarPanel[data-v-48879689]{width:300px;height:240px;border:3px solid #1f2332;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.calendarPanel[data-v-48879689],.calendarPanel .calendar-header[data-v-48879689]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.calendarPanel .calendar-header[data-v-48879689]{line-height:30px;color:#d3dfe9;background-color:#1e1b1a;-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.calendarPanel .calendar-header .currentDate[data-v-48879689]{margin:0 10px;font-size:16px;font-family:PingFangSC-Medium,serif}.calendarPanel .calendar-header .icon[data-v-48879689]{width:12px;height:12px;margin:0 5px;cursor:pointer;font-weight:lighter;color:#b0b0b0}.calendarPanel .calendar-header .icon[data-v-48879689]:hover{color:#dedede}.calendarPanel .calendar-main[data-v-48879689]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background-color:#161311;color:#d0dbd2}.calendarPanel .calendar-main .main-header[data-v-48879689]{display:-webkit-box;display:-ms-flexbox;display:flex;line-height:30px;color:#9ba2af}.calendarPanel .calendar-main .main-header li[data-v-48879689]{-webkit-box-flex:1;-ms-flex:1;flex:1;list-style:none}.calendarPanel .calendar-main ul.main[data-v-48879689]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-bottom:5px;font-size:14px}.calendarPanel .calendar-main ul.main li[data-v-48879689]{position:relative;width:42px;line-height:25px;cursor:pointer;list-style:none}.calendarPanel .calendar-main ul.main .disabled[data-v-48879689]{color:#7b827f;cursor:default}.calendarPanel .calendar-main ul.main .currentDay[data-v-48879689]:before{content:"";position:absolute;display:inline-block;left:8px;width:24px;height:24px;border-radius:50%;border:1px solid #ffe100}',""])},e853:function(t,e,n){var i=n("d3f4"),r=n("1169"),o=n("2b4c")("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},ebd6:function(t,e,n){var i=n("cb7c"),r=n("d8e8"),o=n("2b4c")("species");t.exports=function(t,e){var n,a=i(t).constructor;return void 0===a||null==(n=i(a)[o])?e:r(n)}},ec30:function(t,e,n){"use strict";if(n("9e1e")){var i=n("2d00"),r=n("7726"),o=n("79e5"),a=n("5ca1"),l=n("0f88"),c=n("ed0b"),u=n("9b43"),h=n("f605"),d=n("4630"),f=n("32e9"),p=n("dcbc"),v=n("4588"),y=n("9def"),m=n("09fa"),g=n("77f1"),w=n("6a99"),b=n("69a8"),_=n("23c6"),x=n("d3f4"),S=n("4bf8"),E=n("33a4"),k=n("2aeb"),C=n("38fd"),A=n("9093").f,T=n("27ee"),R=n("ca5a"),D=n("2b4c"),O=n("0a49"),L=n("c366"),I=n("ebd6"),P=n("cadf"),M=n("84f2"),N=n("5cc5"),U=n("7a56"),W=n("36bd"),F=n("ba92"),B=n("86cc"),z=n("11e9"),j=B.f,V=z.f,H=r.RangeError,Y=r.TypeError,K=r.Uint8Array,q="ArrayBuffer",G="Shared"+q,$="BYTES_PER_ELEMENT",X="prototype",J=Array[X],Q=c.ArrayBuffer,Z=c.DataView,tt=O(0),et=O(2),nt=O(3),it=O(4),rt=O(5),ot=O(6),at=L(!0),st=L(!1),lt=P.values,ct=P.keys,ut=P.entries,ht=J.lastIndexOf,dt=J.reduce,ft=J.reduceRight,pt=J.join,vt=J.sort,yt=J.slice,mt=J.toString,gt=J.toLocaleString,wt=D("iterator"),bt=D("toStringTag"),_t=R("typed_constructor"),xt=R("def_constructor"),St=l.CONSTR,Et=l.TYPED,kt=l.VIEW,Ct="Wrong length!",At=O(1,(function(t,e){return Lt(I(t,t[xt]),e)})),Tt=o((function(){return 1===new K(new Uint16Array([1]).buffer)[0]})),Rt=!!K&&!!K[X].set&&o((function(){new K(1).set({})})),Dt=function(t,e){var n=v(t);if(n<0||n%e)throw H("Wrong offset!");return n},Ot=function(t){if(x(t)&&Et in t)return t;throw Y(t+" is not a typed array!")},Lt=function(t,e){if(!x(t)||!(_t in t))throw Y("It is not a typed array constructor!");return new t(e)},It=function(t,e){return Pt(I(t,t[xt]),e)},Pt=function(t,e){for(var n=0,i=e.length,r=Lt(t,i);i>n;)r[n]=e[n++];return r},Mt=function(t,e,n){j(t,e,{get:function(){return this._d[n]}})},Nt=function(t){var e,n,i,r,o,a,s=S(t),l=arguments.length,c=l>1?arguments[1]:void 0,h=void 0!==c,d=T(s);if(null!=d&&!E(d)){for(a=d.call(s),i=[],e=0;!(o=a.next()).done;e++)i.push(o.value);s=i}for(h&&l>2&&(c=u(c,arguments[2],2)),e=0,n=y(s.length),r=Lt(this,n);n>e;e++)r[e]=h?c(s[e],e):s[e];return r},Ut=function(){for(var t=0,e=arguments.length,n=Lt(this,e);e>t;)n[t]=arguments[t++];return n},Wt=!!K&&o((function(){gt.call(new K(1))})),Ft=function(){return gt.apply(Wt?yt.call(Ot(this)):Ot(this),arguments)},Bt={copyWithin:function(t,e){return F.call(Ot(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return it(Ot(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return W.apply(Ot(this),arguments)},filter:function(t){return It(this,et(Ot(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return rt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return ot(Ot(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){tt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return st(Ot(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return at(Ot(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return pt.apply(Ot(this),arguments)},lastIndexOf:function(t){return ht.apply(Ot(this),arguments)},map:function(t){return At(Ot(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return dt.apply(Ot(this),arguments)},reduceRight:function(t){return ft.apply(Ot(this),arguments)},reverse:function(){for(var t,e=this,n=Ot(e).length,i=Math.floor(n/2),r=0;r<i;)t=e[r],e[r++]=e[--n],e[n]=t;return e},some:function(t){return nt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return vt.call(Ot(this),t)},subarray:function(t,e){var n=Ot(this),i=n.length,r=g(t,i);return new(I(n,n[xt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,y((void 0===e?i:g(e,i))-r))}},zt=function(t,e){return It(this,yt.call(Ot(this),t,e))},jt=function(t){Ot(this);var e=Dt(arguments[1],1),n=this.length,i=S(t),r=y(i.length),o=0;if(r+e>n)throw H(Ct);for(;o<r;)this[e+o]=i[o++]},Vt={entries:function(){return ut.call(Ot(this))},keys:function(){return ct.call(Ot(this))},values:function(){return lt.call(Ot(this))}},Ht=function(t,e){return x(t)&&t[Et]&&"symbol"!=s(e)&&e in t&&String(+e)==String(e)},Yt=function(t,e){return Ht(t,e=w(e,!0))?d(2,t[e]):V(t,e)},Kt=function(t,e,n){return!(Ht(t,e=w(e,!0))&&x(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?j(t,e,n):(t[e]=n.value,t)};St||(z.f=Yt,B.f=Kt),a(a.S+a.F*!St,"Object",{getOwnPropertyDescriptor:Yt,defineProperty:Kt}),o((function(){mt.call({})}))&&(mt=gt=function(){return pt.call(this)});var qt=p({},Bt);p(qt,Vt),f(qt,wt,Vt.values),p(qt,{slice:zt,set:jt,constructor:function(){},toString:mt,toLocaleString:Ft}),Mt(qt,"buffer","b"),Mt(qt,"byteOffset","o"),Mt(qt,"byteLength","l"),Mt(qt,"length","e"),j(qt,bt,{get:function(){return this[Et]}}),t.exports=function(t,e,n,s){var c=t+((s=!!s)?"Clamped":"")+"Array",u="get"+t,d="set"+t,p=r[c],v=p||{},g=p&&C(p),w=!p||!l.ABV,b={},S=p&&p[X],E=function(t,n){var i=t._d;return i.v[u](n*e+i.o,Tt)},T=function(t,n,i){var r=t._d;s&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),r.v[d](n*e+r.o,i,Tt)},R=function(t,e){j(t,e,{get:function(){return E(this,e)},set:function(t){return T(this,e,t)},enumerable:!0})};w?(p=n((function(t,n,i,r){h(t,p,c,"_d");var o,a,s,l,u=0,d=0;if(x(n)){if(!(n instanceof Q||(l=_(n))==q||l==G))return Et in n?Pt(p,n):Nt.call(p,n);o=n,d=Dt(i,e);var v=n.byteLength;if(void 0===r){if(v%e)throw H(Ct);if((a=v-d)<0)throw H(Ct)}else if((a=y(r)*e)+d>v)throw H(Ct);s=a/e}else s=m(n),o=new Q(a=s*e);for(f(t,"_d",{b:o,o:d,l:a,e:s,v:new Z(o)});u<s;)R(t,u++)})),S=p[X]=k(qt),f(S,"constructor",p)):o((function(){p(1)}))&&o((function(){new p(-1)}))&&N((function(t){new p,new p(null),new p(1.5),new p(t)}),!0)||(p=n((function(t,n,i,r){var o;return h(t,p,c),x(n)?n instanceof Q||(o=_(n))==q||o==G?void 0!==r?new v(n,Dt(i,e),r):void 0!==i?new v(n,Dt(i,e)):new v(n):Et in n?Pt(p,n):Nt.call(p,n):new v(m(n))})),tt(g!==Function.prototype?A(v).concat(A(g)):A(v),(function(t){t in p||f(p,t,v[t])})),p[X]=S,i||(S.constructor=p));var D=S[wt],O=!!D&&("values"==D.name||null==D.name),L=Vt.values;f(p,_t,!0),f(S,Et,c),f(S,kt,!0),f(S,xt,p),(s?new p(1)[bt]==c:bt in S)||j(S,bt,{get:function(){return c}}),b[c]=p,a(a.G+a.W+a.F*(p!=v),b),a(a.S,c,{BYTES_PER_ELEMENT:e}),a(a.S+a.F*o((function(){v.of.call(p,1)})),c,{from:Nt,of:Ut}),$ in S||f(S,$,e),a(a.P,c,Bt),U(c),a(a.P+a.F*Rt,c,{set:jt}),a(a.P+a.F*!O,c,Vt),i||S.toString==mt||(S.toString=mt),a(a.P+a.F*o((function(){new p(1).slice()})),c,{slice:zt}),a(a.P+a.F*(o((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!o((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:Ft}),M[c]=O?D:L,i||O||f(S,wt,L)}}else t.exports=function(){}},ed0b:function(t,e,n){"use strict";var i=n("7726"),r=n("9e1e"),o=n("2d00"),a=n("0f88"),s=n("32e9"),l=n("dcbc"),c=n("79e5"),u=n("f605"),h=n("4588"),d=n("9def"),f=n("09fa"),p=n("9093").f,v=n("86cc").f,y=n("36bd"),m=n("7f20"),g="ArrayBuffer",w="DataView",b="prototype",_="Wrong index!",x=i[g],S=i[w],E=i.Math,k=i.RangeError,C=i.Infinity,A=x,T=E.abs,R=E.pow,D=E.floor,O=E.log,L=E.LN2,I="buffer",P="byteLength",M="byteOffset",N=r?"_b":I,U=r?"_l":P,W=r?"_o":M;function F(t,e,n){var i,r,o,a=new Array(n),s=8*n-e-1,l=(1<<s)-1,c=l>>1,u=23===e?R(2,-24)-R(2,-77):0,h=0,d=t<0||0===t&&1/t<0?1:0;for((t=T(t))!=t||t===C?(r=t!=t?1:0,i=l):(i=D(O(t)/L),t*(o=R(2,-i))<1&&(i--,o*=2),(t+=i+c>=1?u/o:u*R(2,1-c))*o>=2&&(i++,o/=2),i+c>=l?(r=0,i=l):i+c>=1?(r=(t*o-1)*R(2,e),i+=c):(r=t*R(2,c-1)*R(2,e),i=0));e>=8;a[h++]=255&r,r/=256,e-=8);for(i=i<<e|r,s+=e;s>0;a[h++]=255&i,i/=256,s-=8);return a[--h]|=128*d,a}function B(t,e,n){var i,r=8*n-e-1,o=(1<<r)-1,a=o>>1,s=r-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;s>0;u=256*u+t[l],l--,s-=8);for(i=u&(1<<-s)-1,u>>=-s,s+=e;s>0;i=256*i+t[l],l--,s-=8);if(0===u)u=1-a;else{if(u===o)return i?NaN:c?-C:C;i+=R(2,e),u-=a}return(c?-1:1)*i*R(2,u-e)}function z(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function j(t){return[255&t]}function V(t){return[255&t,t>>8&255]}function H(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function Y(t){return F(t,52,8)}function K(t){return F(t,23,4)}function q(t,e,n){v(t[b],e,{get:function(){return this[n]}})}function G(t,e,n,i){var r=f(+n);if(r+e>t[U])throw k(_);var o=t[N]._b,a=r+t[W],s=o.slice(a,a+e);return i?s:s.reverse()}function $(t,e,n,i,r,o){var a=f(+n);if(a+e>t[U])throw k(_);for(var s=t[N]._b,l=a+t[W],c=i(+r),u=0;u<e;u++)s[l+u]=c[o?u:e-u-1]}if(a.ABV){if(!c((function(){x(1)}))||!c((function(){new x(-1)}))||c((function(){return new x,new x(1.5),new x(NaN),x.name!=g}))){for(var X,J=(x=function(t){return u(this,x),new A(f(t))})[b]=A[b],Q=p(A),Z=0;Q.length>Z;)(X=Q[Z++])in x||s(x,X,A[X]);o||(J.constructor=x)}var tt=new S(new x(2)),et=S[b].setInt8;tt.setInt8(0,2147483648),tt.setInt8(1,2147483649),!tt.getInt8(0)&&tt.getInt8(1)||l(S[b],{setInt8:function(t,e){et.call(this,t,e<<24>>24)},setUint8:function(t,e){et.call(this,t,e<<24>>24)}},!0)}else x=function(t){u(this,x,g);var e=f(t);this._b=y.call(new Array(e),0),this[U]=e},S=function(t,e,n){u(this,S,w),u(t,x,w);var i=t[U],r=h(e);if(r<0||r>i)throw k("Wrong offset!");if(r+(n=void 0===n?i-r:d(n))>i)throw k("Wrong length!");this[N]=t,this[W]=r,this[U]=n},r&&(q(x,P,"_l"),q(S,I,"_b"),q(S,P,"_l"),q(S,M,"_o")),l(S[b],{getInt8:function(t){return G(this,1,t)[0]<<24>>24},getUint8:function(t){return G(this,1,t)[0]},getInt16:function(t){var e=G(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=G(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return z(G(this,4,t,arguments[1]))},getUint32:function(t){return z(G(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return B(G(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return B(G(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){$(this,1,t,j,e)},setUint8:function(t,e){$(this,1,t,j,e)},setInt16:function(t,e){$(this,2,t,V,e,arguments[2])},setUint16:function(t,e){$(this,2,t,V,e,arguments[2])},setInt32:function(t,e){$(this,4,t,H,e,arguments[2])},setUint32:function(t,e){$(this,4,t,H,e,arguments[2])},setFloat32:function(t,e){$(this,4,t,K,e,arguments[2])},setFloat64:function(t,e){$(this,8,t,Y,e,arguments[2])}});m(x,g),m(S,w),s(S[b],a.VIEW,!0),e[g]=x,e[w]=S},eec4:function(t,e,n){"use strict";var i=n("b770").forEach,r=n("5be5"),o=n("49ad"),a=n("2cef"),s=n("5058"),l=n("abb4"),c=n("18e9"),u=n("c274"),h=n("d6eb"),d=n("18d2"),f=n("c946");function p(t){return Array.isArray(t)||void 0!==t.length}function v(t){if(Array.isArray(t))return t;var e=[];return i(t,(function(t){e.push(t)})),e}function y(t){return t&&1===t.nodeType}function m(t,e,n){var i=t[e];return null!=i||void 0===n?i:n}t.exports=function(t){var e;if((t=t||{}).idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=a(),g=s({idGenerator:n,stateHandler:h});e=g}var w=t.reporter;w||(w=l(!1===w));var b=m(t,"batchProcessor",u({reporter:w})),_={};_.callOnAdd=!!m(t,"callOnAdd",!0),_.debug=!!m(t,"debug",!1);var x,S=o(e),E=r({stateHandler:h}),k=m(t,"strategy","object"),C=m(t,"important",!1),A={reporter:w,batchProcessor:b,stateHandler:h,idHandler:e,important:C};if("scroll"===k&&(c.isLegacyOpera()?(w.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),k="object"):c.isIE(9)&&(w.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),k="object")),"scroll"===k)x=f(A);else{if("object"!==k)throw new Error("Invalid strategy name: "+k);x=d(A)}var T={};return{listenTo:function(t,n,r){function o(t){var e=S.get(t);i(e,(function(e){e(t)}))}function a(t,e,n){S.add(e,n),t&&n(e)}if(r||(r=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!r)throw new Error("Listener required.");if(y(n))n=[n];else{if(!p(n))return w.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=v(n)}var s=0,l=m(t,"callOnAdd",_.callOnAdd),c=m(t,"onReady",(function(){})),u=m(t,"debug",_.debug);i(n,(function(t){h.getState(t)||(h.initState(t),e.set(t));var d=e.get(t);if(u&&w.log("Attaching listener to element",d,t),!E.isDetectable(t))return u&&w.log(d,"Not detectable."),E.isBusy(t)?(u&&w.log(d,"System busy making it detectable"),a(l,t,r),T[d]=T[d]||[],void T[d].push((function(){++s===n.length&&c()}))):(u&&w.log(d,"Making detectable..."),E.markBusy(t,!0),x.makeDetectable({debug:u,important:C},t,(function(t){if(u&&w.log(d,"onElementDetectable"),h.getState(t)){E.markAsDetectable(t),E.markBusy(t,!1),x.addListener(t,o),a(l,t,r);var e=h.getState(t);if(e&&e.startSize){var f=t.offsetWidth,p=t.offsetHeight;e.startSize.width===f&&e.startSize.height===p||o(t)}T[d]&&i(T[d],(function(t){t()}))}else u&&w.log(d,"Element uninstalled before being detectable.");delete T[d],++s===n.length&&c()})));u&&w.log(d,"Already detecable, adding listener."),a(l,t,r),s++})),s===n.length&&c()},removeListener:S.removeListener,removeAllListeners:S.removeAllListeners,uninstall:function(t){if(!t)return w.error("At least one element is required.");if(y(t))t=[t];else{if(!p(t))return w.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=v(t)}i(t,(function(t){S.removeAllListeners(t),x.uninstall(t),h.cleanState(t)}))},initDocument:function(t){x.initDocument&&x.initDocument(t)}}}},f0c1:function(t,e,n){"use strict";var i=n("d8e8"),r=n("d3f4"),o=n("31f4"),a=[].slice,s={},l=function(t,e,n){if(!(e in s)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";s[e]=Function("F,a","return new F("+i.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=i(this),n=a.call(arguments,1),s=function i(){var r=n.concat(a.call(arguments));return this instanceof i?l(e,r.length,r):o(e,r,t)};return r(e.prototype)&&(s.prototype=e.prototype),s}},f1ae:function(t,e,n){"use strict";var i=n("86cc"),r=n("4630");t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},f605: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}},f6fd:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(i){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})}(document)},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var i=n("7726").document;t.exports=i&&i.documentElement},fb15:function(t,e,n){"use strict";var i;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(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 l(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(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&&c(t,e)}function h(t){return(h="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function d(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */function p(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":s(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}n.r(e),n.d(e,"LivePlayer",(function(){return le})),n.d(e,"RenderHandler",(function(){return fn.RenderHandler})),n.d(e,"VodPlayer",(function(){return an})),n.d(e,"VodFilePlayer",(function(){return dn})),"undefined"!=typeof window&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1])),n("ac4d"),n("8a81"),n("5df3"),n("1c4c"),n("7f7f"),n("8e6e"),n("ac6a"),n("cadf"),n("456d"),n("6b54"),n("2397");var v=n("8bbf"),y=n.n(v);
|
||
/**
|
||
* vue-class-component v7.2.5
|
||
* (c) 2015-present Evan You
|
||
* @license MIT
|
||
*/function m(t){return(m="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function b(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function _(t,e){x(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){x(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){x(t,e,n)}))}function x(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(i){var r=n?Reflect.getOwnMetadata(i,e,n):Reflect.getOwnMetadata(i,e);n?Reflect.defineMetadata(i,r,t,n):Reflect.defineMetadata(i,r,t)}))}var S={__proto__:[]}instanceof Array;function E(t){return function(e,n,i){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof i&&(i=void 0),r.__decorators__.push((function(e){return t(e,n,i)}))}}function k(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var i in t.$options.props)t.hasOwnProperty(i)||n.push(i);n.forEach((function(n){Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var i=new e;e.prototype._init=n;var r={};return Object.keys(i).forEach((function(t){void 0!==i[t]&&(r[t]=i[t])})),r}var C=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function A(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(C.indexOf(t)>-1)e[t]=n[t];else{var i=Object.getOwnPropertyDescriptor(n,t);void 0!==i.value?"function"==typeof i.value?(e.methods||(e.methods={}))[t]=i.value:(e.mixins||(e.mixins=[])).push({data:function(){return g({},t,i.value)}}):(i.get||i.set)&&((e.computed||(e.computed={}))[t]={get:i.get,set:i.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return k(this,t)}});var i=t.__decorators__;i&&(i.forEach((function(t){return t(e)})),delete t.__decorators__);var r=Object.getPrototypeOf(t.prototype),o=r instanceof y.a?r.constructor:y.a,a=o.extend(e);return R(a,t,o),b()&&_(a,t),a}var T={prototype:!0,arguments:!0,callee:!0,caller:!0};function R(t,e,n){Object.getOwnPropertyNames(e).forEach((function(i){if(!T[i]){var r=Object.getOwnPropertyDescriptor(t,i);if(!r||r.configurable){var o=Object.getOwnPropertyDescriptor(e,i);if(!S){if("cid"===i)return;var a=Object.getOwnPropertyDescriptor(n,i);if(!function(t){var e=m(t);return null==t||"object"!==e&&"function"!==e}(o.value)&&a&&a.value===o.value)return}Object.defineProperty(t,i,o)}}}))}function D(t){return"function"==typeof t?A(t):function(e){return A(e,t)}}D.registerHooks=function(t){C.push.apply(C,w(t))};var O=D,L="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function I(t){return void 0===t&&(t={}),function(e,n){(function(t,e,n){if(L&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var i=Reflect.getMetadata("design:type",e,n);i!==Object&&(t.type=i)}})(t,e,n),E((function(e,n){(e.props||(e.props={}))[n]=t}))(e,n)}}function P(t,e){void 0===e&&(e={});var n=e.deep,i=void 0!==n&&n,r=e.immediate,o=void 0!==r&&r;return E((function(e,n){"object"!==s(e.watch)&&(e.watch=Object.create(null));var r=e.watch;"object"!==s(r[t])||Array.isArray(r[t])?void 0===r[t]&&(r[t]=[]):r[t]=[r[t]],r[t].push({handler:n,deep:i,immediate:o})}))}function M(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return N(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n("6c7b");var U=function(){function t(){o(this,t)}return l(t,null,[{key:"getSVG",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.DEFAULT_SIZE;if(!t.ALL_SVGS[e])return document.createElement("svg");var r=document.createElement("svg");r.innerHTML=t.ALL_SVGS[e],null!==n&&n.length>0&&t.setColor(r,n);var o=r.querySelector("svg");return null!==o&&(o.setAttribute("width","".concat(i)),o.setAttribute("height","".concat(i))),r}},{key:"setColor",value:function(t,e){if(e&&e.length>0){var n,i=M(t.getElementsByTagName("path"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.getAttribute("fill");null!==o&&o.length>0&&r.setAttribute("fill",e)}}catch(t){i.e(t)}finally{i.f()}}}}]),t}();U.SNAPSHOT='<svg t="1553688811386" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3995" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M901.12 227.328h-96.256c-12.288 0-23.552-7.168-28.672-19.456l-20.48-50.176c-11.264-27.648-36.864-45.056-66.56-45.056H333.824c-29.696 0-55.296 17.408-66.56 45.056l-20.48 50.176c-5.12 11.264-16.384 19.456-28.672 19.456H122.88c-39.936 0-71.68 31.744-71.68 71.68V839.68c0 39.936 31.744 71.68 71.68 71.68h778.24c39.936 0 71.68-31.744 71.68-71.68V299.008c0-38.912-31.744-71.68-71.68-71.68zM199.68 430.08C174.08 430.08 153.6 409.6 153.6 384s20.48-46.08 46.08-46.08 46.08 20.48 46.08 46.08-20.48 46.08-46.08 46.08zM512 788.48c-123.904 0-225.28-101.376-225.28-225.28s101.376-225.28 225.28-225.28 225.28 101.376 225.28 225.28-101.376 225.28-225.28 225.28z m184.32-225.28c0 101.376-82.944 184.32-184.32 184.32s-184.32-82.944-184.32-184.32 82.944-184.32 184.32-184.32 184.32 82.944 184.32 184.32z" p-id="3996" fill="#1296db"></path></svg>',U.MAXIMIZE='<svg t="1553741182915" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6244" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M874.24 604.49792c22.29248-2.14016 42.97728-11.73504 59.2384-27.56608l0 282.50112c0 48.85504-39.76192 88.59648-88.6272 88.59648l-634.9824 0c-48.87552 0-88.63744-39.74144-88.63744-88.59648L121.23136 225.1264c0-48.85504 39.76192-88.60672 88.63744-88.60672l283.26912 0c-15.24736 15.64672-25.38496 36.29056-27.60704 59.22816L209.85856 195.74784c-16.20992 0-29.39904 13.17888-29.39904 29.37856l0 634.29632c0 16.18944 13.18912 29.36832 29.39904 29.36832l634.9824 0c16.20992 0 29.39904-13.17888 29.39904-29.36832L874.24 604.49792zM890.15296 130.44736 589.2608 130.44736c-24.53504 0-44.42112 19.88608-44.42112 44.43136 0 24.53504 19.88608 44.42112 44.42112 44.42112l191.21152 0c-1.8432 1.34144-3.6864 2.70336-5.34528 4.37248L461.6704 537.10848l0-193.6384c0-24.53504-19.88608-44.42112-44.42112-44.42112-12.26752 0-23.37792 4.95616-31.41632 13.0048-8.0384 8.05888-13.01504 19.13856-13.01504 31.41632l0 300.9024c0 24.5248 19.88608 44.42112 44.42112 44.42112L718.1312 688.7936c24.53504 0 44.42112-19.89632 44.42112-44.4416 0-24.5248-19.88608-44.42112-44.42112-44.42112L526.94016 599.93088c1.8432-1.34144 3.67616-2.70336 5.33504-4.36224l313.43616-313.4464 0 193.64864c0 24.53504 19.88608 44.42112 44.42112 44.42112 12.26752 0 23.37792-4.95616 31.41632-13.0048 8.0384-8.05888 13.01504-19.1488 13.01504-31.41632L934.56384 174.86848C934.57408 150.34368 914.67776 130.44736 890.15296 130.44736z" p-id="6245" fill="#1296db"></path></svg>',U.ROI_RECT='<svg t="1553765768064" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31493" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M768 910.222222c-17.066667 0-28.444444-11.377778-28.444444-28.444444s11.377778-28.444444 28.444444-28.444445H910.222222v-85.333333c0-17.066667 11.377778-28.444444 28.444445-28.444444s28.444444 11.377778 28.444444 28.444444v113.777778c0 17.066667-11.377778 28.444444-28.444444 28.444444h-170.666667zM910.222222 483.555556c0-17.066667 11.377778-28.444444 28.444445-28.444445s28.444444 11.377778 28.444444 28.444445v113.777777c0 17.066667-11.377778 28.444444-28.444444 28.444445s-28.444444-11.377778-28.444445-28.444445v-113.777777zM910.222222 227.555556h-142.222222c-17.066667 0-28.444444-11.377778-28.444444-28.444445s11.377778-28.444444 28.444444-28.444444h170.666667c17.066667 0 28.444444 11.377778 28.444444 28.444444v113.777778c0 17.066667-11.377778 28.444444-28.444444 28.444444s-28.444444-11.377778-28.444445-28.444444V227.555556zM398.222222 881.777778c0-17.066667 11.377778-28.444444 28.444445-28.444445h170.666666c17.066667 0 28.444444 11.377778 28.444445 28.444445s-11.377778 28.444444-28.444445 28.444444h-170.666666c-17.066667 0-28.444444-11.377778-28.444445-28.444444z m0-682.666667c0-17.066667 11.377778-28.444444 28.444445-28.444444h170.666666c17.066667 0 28.444444 11.377778 28.444445 28.444444s-11.377778 28.444444-28.444445 28.444445h-170.666666c-17.066667 0-28.444444-11.377778-28.444445-28.444445z m-341.333333 568.888889c0-17.066667 11.377778-28.444444 28.444444-28.444444s28.444444 11.377778 28.444445 28.444444V853.333333h142.222222c17.066667 0 28.444444 11.377778 28.444444 28.444445s-11.377778 28.444444-28.444444 28.444444h-170.666667c-17.066667 0-28.444444-11.377778-28.444444-28.444444v-113.777778z m56.888889-455.111111c0 17.066667-11.377778 28.444444-28.444445 28.444444S56.888889 329.955556 56.888889 312.888889v-113.777778c0-17.066667 11.377778-28.444444 28.444444-28.444444h170.666667c17.066667 0 28.444444 11.377778 28.444444 28.444444s-11.377778 28.444444-28.444444 28.444445H113.777778v85.333333z m0 284.444444c0 17.066667-11.377778 28.444444-28.444445 28.444445s-28.444444-11.377778-28.444444-28.444445v-113.777777c0-17.066667 11.377778-28.444444 28.444444-28.444445s28.444444 11.377778 28.444445 28.444445v113.777777z" p-id="31494" fill="#1296db"></path></svg>',U.ROI_POLYGON='<svg t="1553766890352" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="32066" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M85.333333 85.333333 85.333333 341.333333 182.613333 341.333333 237.653333 682.666667 170.666667 682.666667 170.666667 938.666667 426.666667 938.666667 426.666667 855.893333 640 855.466667 640 938.666667 896 938.666667 896 682.666667 817.92 682.666667 853.333333 384 938.666667 384 938.666667 128 682.666667 128 682.666667 278.613333 631.466667 341.333333 409.173333 341.333333 341.333333 248.32 341.333333 85.333333M170.666667 170.666667 256 170.666667 256 256 170.666667 256M768 213.333333 853.333333 213.333333 853.333333 298.666667 768 298.666667M269.226667 341.333333 303.36 341.333333 384 451.84 384 597.333333 640 597.333333 640 465.493333 706.986667 384 768 384 732.16 682.666667 640 682.666667 640 770.56 426.666667 770.56 426.666667 682.666667 324.266667 682.666667M469.333333 426.666667 554.666667 426.666667 554.666667 512 469.333333 512M256 768 341.333333 768 341.333333 853.333333 256 853.333333M725.333333 768 810.666667 768 810.666667 853.333333 725.333333 853.333333" p-id="32067" fill="#1296db"></path></svg>',U.SCALE_VIEW='<svg t="1553753941568" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11856" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M722.8 774.7c9.4 9.4 21.7 14.1 34 14.1s24.6-4.7 34-14.1c18.8-18.8 18.8-49.2 0-68L642.9 558.9c27.3-45 43.1-97.8 43.1-154.2 0-164.2-133.6-297.8-297.8-297.8S90.4 240.5 90.4 404.7 224 702.5 388.2 702.5c73.1 0 140.1-26.5 192-70.4l142.6 142.6zM388.2 606.4c-111.2 0-201.7-90.5-201.7-201.7C186.5 293.5 277 203 388.2 203c111.2 0 201.7 90.5 201.7 201.7 0 111.2-90.5 201.7-201.7 201.7z" p-id="11857" fill="#1296db"></path><path d="M490.8 345.9H447v-43.8c0-32.5-26.3-58.8-58.8-58.8s-58.8 26.3-58.8 58.8v43.8h-43.8c-32.5 0-58.8 26.3-58.8 58.8s26.3 58.8 58.8 58.8h43.8v43.8c0 32.5 26.3 58.8 58.8 58.8s58.8-26.3 58.8-58.8v-43.8h43.8c32.5 0 58.8-26.3 58.8-58.8 0-32.4-26.3-58.8-58.8-58.8zM791.5 133.6H689.8v96.2h101.6c27.6 0 50 22.4 50 50V356h96.2v-76.3c0-80.5-65.5-146.1-146.1-146.1zM841.5 773.3c0 27.6-22.4 50-50 50H689.8v96.2h101.6c80.6 0 146.2-65.6 146.2-146.2V697h-96.2v76.3zM197.2 773.3V697H101v76.3c0 80.6 65.6 146.2 146.2 146.2h101.6v-96.2H247.2c-27.6 0-50-22.4-50-50z" p-id="11858" fill="#1296db"></path></svg>',U.STOP='<svg t="1553752022557" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8879" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M511.968 73.152q119.424 0 220.288 58.848t159.712 159.712 58.848 220.288-58.848 220.288-159.712 159.712-220.288 58.848-220.288-58.848-159.712-159.712-58.848-220.288 58.848-220.288 159.712-159.712 220.288-58.848zM511.968 822.848q84.576 0 156-41.728t113.152-113.152 41.728-156-41.728-156-113.152-113.152-156-41.728-156 41.728-113.152 113.152-41.728 156 41.728 156 113.152 113.152 156 41.728zM347.392 694.848q-8 0-13.152-5.152t-5.152-13.152l0-329.152q0-8 5.152-13.152t13.152-5.152l329.152 0q8 0 13.152 5.152t5.152 13.152l0 329.152q0 8-5.152 13.152t-13.152 5.152l-329.152 0z" p-id="8880" fill="#1296db"></path></svg>',U.STATE_GREEN='<svg t="1553826704425" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="40346" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M512 320a192.064 192.064 0 0 1 0 384 192 192 0 0 1 0-384z" fill="#1bb90a" p-id="40347"></path></svg>',U.STATE_RED='<svg t="1553826704425" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="40346" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M512 320a192.064 192.064 0 0 1 0 384 192 192 0 0 1 0-384z" fill="#d81e06" p-id="40347"></path></svg>',U.STATE_YELLOW='<svg t="1553826937405" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="40561" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M512 320a192.064 192.064 0 0 1 0 384 192 192 0 0 1 0-384z" fill="#dfc801" p-id="40562"></path></svg>',U.VOLUME_ON='<svg t="1555494805635" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7740" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M779.946667 357.12a42.666667 42.666667 0 1 0-66.56 53.76 170.666667 170.666667 0 0 1 0 202.24A42.666667 42.666667 0 0 0 746.666667 682.666667a42.666667 42.666667 0 0 0 33.28-15.786667 256 256 0 0 0 0-309.76z" p-id="7741" fill="#1296db"></path><path d="M837.973333 223.146667a42.666667 42.666667 0 1 0-54.613333 65.706666A290.133333 290.133333 0 0 1 896 512a290.133333 290.133333 0 0 1-112.64 223.146667 42.666667 42.666667 0 0 0-5.546667 60.16A42.666667 42.666667 0 0 0 810.666667 810.666667a42.666667 42.666667 0 0 0 27.306666-9.813334A373.333333 373.333333 0 0 0 981.333333 512a373.333333 373.333333 0 0 0-143.36-288.853333zM617.386667 133.12a42.666667 42.666667 0 0 0-42.666667 0L298.666667 322.986667H85.333333a42.666667 42.666667 0 0 0-42.666666 42.666666v292.693334a42.666667 42.666667 0 0 0 42.666666 42.666666h213.333334l273.493333 187.733334A45.226667 45.226667 0 0 0 597.333333 896a42.666667 42.666667 0 0 0 42.666667-42.666667V170.666667a42.666667 42.666667 0 0 0-22.613333-37.546667z" p-id="7742" fill="#1296db"></path></svg>',U.VOLUME_OFF='<svg t="1555494833118" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1596" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M721.493333 600.746667l61.44 61.44a256 256 0 0 0-2.986666-305.066667 42.666667 42.666667 0 1 0-66.56 53.76 170.666667 170.666667 0 0 1 8.106666 189.866667z" p-id="1597" fill="#1296db"></path><path d="M896 512a277.76 277.76 0 0 1-75.946667 187.306667l60.586667 60.586666A363.946667 363.946667 0 0 0 981.333333 512a373.333333 373.333333 0 0 0-143.36-288.853333 42.666667 42.666667 0 1 0-54.613333 65.706666A290.133333 290.133333 0 0 1 896 512zM640 519.253333V170.666667a42.666667 42.666667 0 0 0-66.986667-35.413334L384 264.533333zM202.24 322.986667H85.333333a42.666667 42.666667 0 0 0-42.666666 42.666666v292.693334a42.666667 42.666667 0 0 0 42.666666 42.666666h213.333334l273.493333 187.733334A45.226667 45.226667 0 0 0 597.333333 896a42.666667 42.666667 0 0 0 42.666667-42.666667v-92.586666zM200.96 140.373333a42.666667 42.666667 0 0 0-60.586667 60.586667l682.666667 682.666667a42.666667 42.666667 0 0 0 60.586667 0 42.666667 42.666667 0 0 0 0-60.586667z" p-id="1598" fill="#1296db"></path></svg>',U.RECORD='<svg t="1561699691315" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1847" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M704 434.496l131.7952-131.7888a38.4 38.4 0 0 1 65.5488 27.1552v388.48a38.4 38.4 0 0 1-65.5488 27.1488L704 613.7024V729.6a38.4 38.4 0 0 1-38.4 38.4H166.4a38.4 38.4 0 0 1-38.4-38.4V345.6a38.4 38.4 0 0 1 38.4-38.4h499.2a38.4 38.4 0 0 1 38.4 38.4v88.896zM281.6 524.8c42.4128 0 76.8-34.3872 76.8-76.8s-34.3872-76.8-76.8-76.8-76.8 34.3872-76.8 76.8 34.3872 76.8 76.8 76.8z" fill="#d81e06" p-id="1848"></path></svg>',U.TALK_ON='<svg class="icon" width="32px" height="32.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#1296db" d="M512 683.52c130.56 0 235.52-102.4 235.52-232.96V256c0-130.56-104.96-232.96-235.52-232.96s-235.52 102.4-235.52 232.96v194.56c0 130.56 102.4 232.96 235.52 232.96z m368.64-281.6c0-23.04-20.48-43.52-46.08-43.52s-43.52 20.48-43.52 43.52c0 5.12 0 10.24 2.56 12.8v33.28c0 151.04-125.44 276.48-281.6 276.48-153.6 0-281.6-125.44-281.6-276.48V409.6c0-2.56 2.56-5.12 2.56-10.24 0-23.04-20.48-43.52-43.52-43.52-25.6 0-43.52 20.48-43.52 43.52v64c0 186.88 140.8 335.36 320 360.96v87.04h-122.88c-25.6 0-46.08 20.48-46.08 46.08s20.48 43.52 46.08 43.52h332.8c28.16 0 43.52-17.92 43.52-43.52 0-23.04-17.92-46.08-43.52-46.08h-122.88v-87.04c184.32-20.48 327.68-174.08 327.68-360.96v-61.44z m0 0" /></svg>',U.TALK_OFF='<svg class="icon" width="32px" height="32.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#1296db" d="M840.533333 34.133333c17.066667 17.066667 17.066667 42.666667 0 59.733334l-682.666666 682.666666c-8.533333 8.533333-19.2 12.8-29.866667 12.8s-21.333333-4.266667-29.866667-12.8c-17.066667-17.066667-17.066667-42.666667 0-59.733333L196.266667 618.666667C179.2 578.133333 170.666667 535.466667 170.666667 490.666667c0-23.466667 19.2-42.666667 42.666666-42.666667s42.666667 19.2 42.666667 42.666667c0 21.333333 2.133333 40.533333 6.4 59.733333l36.266667-36.266667c0-8.533333-2.133333-14.933333-2.133334-23.466666V234.666667c0-117.333333 96-213.333333 213.333334-213.333334 57.6 0 110.933333 21.333333 151.466666 61.866667 10.666667 10.666667 21.333333 23.466667 29.866667 38.4l87.466667-87.466667c19.2-17.066667 44.8-17.066667 61.866666 0zM384 430.933333L629.333333 185.6c-6.4-14.933333-14.933333-27.733333-27.733333-40.533333C578.133333 119.466667 546.133333 106.666667 512 106.666667c-70.4 0-128 57.6-128 128v196.266666zM512 704c117.333333 0 213.333333-96 213.333333-213.333333v-128c0-23.466667-19.2-42.666667-42.666666-42.666667s-42.666667 19.2-42.666667 42.666667v128c0 70.4-57.6 128-128 128-25.6 0-51.2-8.533333-72.533333-23.466667-19.2-12.8-46.933333-8.533333-59.733334 10.666667-12.8 19.2-8.533333 46.933333 10.666667 59.733333C426.666667 691.2 467.2 704 512 704" /><path fill="#1296db" d="M853.333333 490.666667c0-23.466667-19.2-42.666667-42.666666-42.666667s-42.666667 19.2-42.666667 42.666667c0 140.8-115.2 256-256 256-57.6 0-115.2-21.333333-162.133333-57.6-19.2-14.933333-44.8-12.8-59.733334 6.4-14.933333 19.2-12.8 44.8 6.4 59.733333 49.066667 40.533333 108.8 66.133333 172.8 74.666667V896h-128c-23.466667 0-42.666667 19.2-42.666666 42.666667s19.2 42.666667 42.666666 42.666666h341.333334c23.466667 0 42.666667-19.2 42.666666-42.666666s-19.2-42.666667-42.666666-42.666667h-128v-66.133333c168.533333-21.333333 298.666667-166.4 298.666666-339.2" /></svg>',U.PTZ_CTL='<svg t="1591624538177" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4797" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M1013.474793 529.83766c-15.388062 9.085203-266.877827 154.732357-285.105015 164.669297a20.384923 20.384923 0 0 1-30.832906-17.659363v-329.338594a20.498488 20.498488 0 0 1 31.457514-17.772928l284.480407 164.669297a20.498488 20.498488 0 0 1 0 35.432291zM676.697689 326.499469H347.018399a20.384923 20.384923 0 0 1-17.659363-30.832907c10.107288-18.227188 155.811225-269.603387 164.669298-284.991449a20.498488 20.498488 0 0 1 35.716202 0c12.378589 21.350226 157.28757 271.817906 164.669298 284.366842a20.498488 20.498488 0 0 1-17.716145 31.400731z m-381.010685 368.177836c-18.227188-10.107288-269.603387-155.754442-284.991449-164.669298a20.498488 20.498488 0 0 1 0-35.716203l284.366841-164.669297a20.498488 20.498488 0 0 1 31.457514 17.772928v329.338594a20.384923 20.384923 0 0 1-30.832906 17.772928z m51.104265 2.839125h329.679289a20.498488 20.498488 0 0 1 17.772928 31.457514c-7.21138 12.548936-152.120361 263.073398-164.669297 284.480407a20.498488 20.498488 0 0 1-35.716203 0c-9.085203-15.388062-154.789139-266.877827-164.669297-285.105014a20.384923 20.384923 0 0 1 17.82971-30.889689z" p-id="4798" fill="#1296db"></path></svg>',U.ALL_SVGS={snapshot:U.SNAPSHOT,maximize:U.MAXIMIZE,"roi-rect":U.ROI_RECT,"roi-polygon":U.ROI_POLYGON,"scale-view":U.SCALE_VIEW,stop:U.STOP,"state-green":U.STATE_GREEN,"state-red":U.STATE_RED,"state-yellow":U.STATE_YELLOW,"volume-on":U.VOLUME_ON,"volume-off":U.VOLUME_OFF,"talk-on":U.TALK_ON,"talk-off":U.TALK_OFF,record:U.RECORD,ptz:U.PTZ_CTL},U.DEFAULT_SIZE=28;var W=function t(){o(this,t)};W.STATE=1,W.NAME=2,W.SPEED=4,W.ALL=65535;var F=function(){function t(e,n){o(this,t),this.box=e,this.stateSpan=null,this.nameSpan=null,this.speedSpan=null,this.isShow=!0,this.titleBar=document.createElement("div"),this.titleBar.classList.add("vat-title"),this.stateSpan=document.createElement("span"),this.stateSpan.classList.add("state"),this.titleBar.appendChild(this.stateSpan),this.nameSpan=document.createElement("span"),this.nameSpan.classList.add("vat-name"),this.nameSpan.innerText="未知设备",this.titleBar.appendChild(this.nameSpan),this.speedSpan=document.createElement("span"),this.speedSpan.classList.add("vat-speed"),this.speedSpan.innerText="20.5KB/s",this.titleBar.appendChild(this.speedSpan),this.box.appendChild(this.titleBar),this.hasTitleBar=0!==n,this.autoShow(),0==(n&W.STATE)&&(this.stateSpan.style.display="none"),0==(n&W.NAME)&&(this.nameSpan.style.display="none"),0==(n&W.SPEED)&&(this.speedSpan.style.display="none")}return l(t,[{key:"adjustWidth",value:function(t){this.nameSpan&&(this.nameSpan.style.maxWidth="".concat(t-120,"px"))}},{key:"show",value:function(){this.isShow=!0,this.titleBar.style.display="block"}},{key:"hide",value:function(){this.isShow=!1,this.titleBar.style.display="none"}},{key:"height",value:function(){return this.isShow?this.titleBar.offsetHeight:0}},{key:"autoShow",value:function(){this.hasTitleBar?this.show():this.hide()}},{key:"clear",value:function(){this.speedSpan&&(this.speedSpan.innerText=""),this.nameSpan&&(this.nameSpan.innerText=""),this.stateSpan&&(this.stateSpan.innerHTML=""),this.titleBar.style.display="none"}},{key:"setState",value:function(t){this.stateSpan&&(this.stateSpan.innerHTML="","red"===t?this.stateSpan.appendChild(U.getSVG("state-red",null,16)):"green"===t?this.stateSpan.appendChild(U.getSVG("state-green",null,16)):"yellow"===t&&this.stateSpan.appendChild(U.getSVG("state-yellow",null,16)))}},{key:"setName",value:function(t){this.nameSpan&&(this.nameSpan.innerText=t,this.nameSpan.title=t)}},{key:"setSpeed",value:function(t){var e;e=t<1024?"".concat(t," B/s"):t<1048576?"".concat(Math.round(t/10.24)/100," KB/s"):"".concat(Math.round(t/10485.76)/100," MB/s"),this.speedSpan&&(this.speedSpan.innerText=e)}}]),t}();function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function z(t){return function(t){if(Array.isArray(t))return B(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return B(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return V(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function V(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}F.STATE_CLOSE="red",F.STATE_WAITTING="yellow",F.STATE_RUNNING="green";var H=function(){function t(e,n,i){var r=this;o(this,t),this.onEscape=null,this.onSave=null,this._width=0,this._height=0,this._left=0,this._top=0,this.box=e,this.drawType=t.DRAW_NONE,this.oldDiagrams=[],this.diagrams=[],this.drawingDiagram=null,this._isDrawing=!1,this.maxRoi=n,this.storeCanvas=document.createElement("canvas"),this.storeCanvas.classList.add("vat-roi-view"),this.box.appendChild(this.storeCanvas),this.canvas=document.createElement("canvas"),this.canvas.classList.add("vat-roi-draw"),this.canvas.tabIndex=0,this.box.appendChild(this.canvas),this.ctx=this.canvas.getContext("2d"),this.menu=null,this.isShowMenu=i,this.lineColor="red";var a=this;this.canvas.onmousedown=function(e){var n=r.transPoint(e);if(2!==e.buttons)if(1!==e.buttons);else if(a.drawType===t.DRAW_RECT){if(a._isDrawing)return void(a._isDrawing=!1);a.drawingDiagram={points:[{x:n.x,y:n.y},{x:n.x,y:n.y}],type:a.drawType,width:r._width,height:r._height,color:r.lineColor},a._isDrawing=!0}else a.drawType===t.DRAW_POLYGON&&(null===a.drawingDiagram?a.drawingDiagram={points:[{x:n.x,y:n.y}],type:a.drawType,width:r._width,height:r._height,color:r.lineColor}:a.drawingDiagram.points.push({x:n.x,y:n.y}),a._isDrawing=!0)},this.canvas.onmouseup=function(e){if(a._isDrawing){var n=r.transPoint(e);if(a.drawType===t.DRAW_RECT)a.drawingDiagram&&(a.drawingDiagram.points[1].x=n.x,a.drawingDiagram.points[1].y=n.y),a._isDrawing=!1;else if(a.drawType===t.DRAW_POLYGON&&null!==a.drawingDiagram&&null!==a.ctx){a.ctx.beginPath();var i=a.drawingDiagram.points[a.drawingDiagram.points.length-1];a.ctx.moveTo(i.x,i.y),a.ctx.lineTo(n.x,n.y),a.ctx.stroke(),a.ctx.closePath()}}},this.canvas.onmousemove=function(e){if(a._isDrawing&&null!==a.drawingDiagram&&null!==a.ctx){var n=r.transPoint(e);if(a.ctx.strokeStyle=r.lineColor,a.ctx.lineWidth=2,a.drawType===t.DRAW_RECT){a.ctx.clearRect(0,0,a._width,a._height);var i=a.drawingDiagram.points[0].x,o=a.drawingDiagram.points[0].y,s=n.x-i,l=n.y-o;a.ctx.strokeRect(i,o,s,l),a.drawingDiagram.points[1].x=n.x,a.drawingDiagram.points[1].y=n.y}else if(a.drawType===t.DRAW_POLYGON){var c=a.drawingDiagram.points;a.ctx.clearRect(0,0,a._width,a._height),a.ctx.beginPath(),a.ctx.moveTo(c[0].x,c[0].y);for(var u=1;u<c.length;u++)a.ctx.lineTo(c[u].x,c[u].y);a.ctx.stroke(),a.ctx.closePath(),a.ctx.beginPath(),a.ctx.strokeStyle="yellow",a.ctx.moveTo(c[0].x,c[0].y),a.ctx.lineTo(n.x,n.y),a.ctx.lineTo(c[c.length-1].x,c[c.length-1].y),a.ctx.stroke(),a.ctx.closePath()}}},this.canvas.oncontextmenu=function(t){t.preventDefault(),r.isShowMenu&&r.showMenu(t)},this.canvas.style.display="none"}return l(t,[{key:"resize",value:function(t,e,n,i){this._left=t,this._top=e,this._width=n,this._height=i,this.canvas.width=n,this.canvas.height=i,this.canvas.style.top="".concat(e,"px"),this.canvas.style.left="".concat(t,"px"),this.storeCanvas.width=n,this.storeCanvas.height=i,this.storeCanvas.style.top="".concat(e,"px"),this.storeCanvas.style.left="".concat(t,"px"),this._width>0&&this._height>0&&(this.dumpDiagrams(),this.updateDrawing())}},{key:"destroy",value:function(){this.box.removeChild(this.storeCanvas),this.box.removeChild(this.canvas)}},{key:"start",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.drawType=e,null!==n&&(this.lineColor=n),this.canvas.style.display="",this.ctx&&(this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.strokeStyle="red",this.ctx.fillStyle="red",this.ctx.font="16px Arial",this.drawType===t.DRAW_RECT?this.ctx.fillText("开始绘制矩形...",this.canvas.width/2,this.canvas.height/2-20):this.ctx.fillText("开始绘制多边形...",this.canvas.width/2,this.canvas.height/2-20),this.ctx.font="14px Arial",this.ctx.fillStyle="#ee0000",this.isShowMenu&&this.ctx.fillText("鼠标右键更多操作",this.canvas.width/2,this.canvas.height/2+20)),this.storeCanvas.style.background="#00000088",this.oldDiagrams=z(this.diagrams),this.canvas.focus()}},{key:"stop",value:function(){this.drawingDiagram=null,this._isDrawing=!1,this.drawType=t.DRAW_NONE,this.canvas.style.display="none",this.ctx&&this.ctx.clearRect(0,0,this._width,this._height),this.storeCanvas.style.background=""}},{key:"setROI",value:function(t){this.diagrams=t,this.oldDiagrams=z(this.diagrams),this.dumpDiagrams()}},{key:"saveQuit",value:function(){return!!this.checkDrawing()&&(this.diagrams.length+this.drawingCount()>this.maxRoi?(this.showMsg("已达到绘图数量限制!!"),!1):(this.saveDrawing(),this.onSave&&this.onSave(this.diagrams),!0))}},{key:"isUserDrawing",value:function(){return this.drawType!==t.DRAW_NONE}},{key:"showMsg",value:function(t){this.ctx&&(this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.strokeStyle="red",this.ctx.fillStyle="red",this.ctx.font="16px Arial",this.ctx.fillText(t,this.canvas.width/2,this.canvas.height/2))}},{key:"dumpDiagrams",value:function(){var e=this.diagrams,n=this.storeCanvas.getContext("2d");if(n&&(n.clearRect(0,0,this.storeCanvas.width,this.storeCanvas.height),null!==e&&0!==e.length)){var i=this.storeCanvas.width,r=this.storeCanvas.height;n.strokeStyle=this.lineColor,n.lineWidth=2;var o,a=j(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.color?n.strokeStyle=s.color:n.strokeStyle=this.lineColor;var l=i/s.width,c=r/s.height;if(s.type===t.DRAW_RECT){var u=this.scalePoint(s.points[0].x,l,i),h=this.scalePoint(s.points[0].y,c,r),d=this.scalePoint(s.points[1].x,l,i)-u,f=this.scalePoint(s.points[1].y,c,r)-h;n.strokeRect(u,h,d,f)}else if(s.type===t.DRAW_POLYGON){var p=this.scalePoint(s.points[0].x,l,i),v=this.scalePoint(s.points[0].y,c,r);n.beginPath(),n.moveTo(p,v);for(var y=1;y<s.points.length;y++){var m=this.scalePoint(s.points[y].x,l,i),g=this.scalePoint(s.points[y].y,c,r);n.lineTo(m,g)}n.lineTo(p,v),n.stroke(),n.closePath()}}}catch(t){a.e(t)}finally{a.f()}}}},{key:"checkDrawing",value:function(){if(null===this.drawingDiagram)return!0;var e,n=j(this.drawingDiagram.points);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.x<0&&(i.x=0),i.y<0&&(i.y=0),i.x>this.drawingDiagram.width&&(i.x=this.drawingDiagram.width),i.y>this.drawingDiagram.height&&(i.y=this.drawingDiagram.height)}}catch(t){n.e(t)}finally{n.f()}if(this.drawingDiagram.type===t.DRAW_RECT){var r=this.drawingDiagram.points;2===r.length&&r[0].x===r[1].x&&r[0].y===r[1].y&&(this.drawingDiagram=null)}else if(this.drawingDiagram.type===t.DRAW_POLYGON&&this.drawingDiagram.points.length<3)return this.showMsg("至少需要画3个点!!"),!1;return!0}},{key:"saveDrawing",value:function(){null!=this.drawingDiagram&&((this.drawingDiagram.type===t.DRAW_RECT&&2===this.drawingDiagram.points.length||this.drawingDiagram.type===t.DRAW_POLYGON&&this.drawingDiagram.points.length>2)&&this.diagrams.push(this.drawingDiagram),this.drawingDiagram=null,this.dumpDiagrams())}},{key:"updateDrawing",value:function(){if(this.ctx&&(this.ctx.clearRect(0,0,this._width,this._height),null!=this.drawingDiagram)){if(this._width!==this.drawingDiagram.width||this._height!==this.drawingDiagram.height){var e,n=this._width/this.drawingDiagram.width,i=this._height/this.drawingDiagram.height,r=j(this.drawingDiagram.points);try{for(r.s();!(e=r.n()).done;){var o=e.value;o.x=o.x*n,o.y=o.y*i}}catch(t){r.e(t)}finally{r.f()}this.drawingDiagram.width=this._width,this.drawingDiagram.height=this._height}if(this.ctx.strokeStyle=this.lineColor,this.drawType===t.DRAW_RECT&&2===this.drawingDiagram.points.length){var a=this.drawingDiagram.points[0].x,s=this.drawingDiagram.points[0].y,l=this.drawingDiagram.points[1].x-a,c=this.drawingDiagram.points[1].y-s;this.ctx.strokeRect(a,s,l,c)}else if(this.drawType===t.DRAW_POLYGON&&this.drawingDiagram.points.length>=2){var u=this.drawingDiagram.points;this.ctx.beginPath(),this.ctx.moveTo(u[0].x,u[0].y);for(var h=1;h<u.length;h++)this.ctx.lineTo(u[h].x,u[h].y);this.ctx.lineTo(u[0].x,u[0].y),this.ctx.stroke(),this.ctx.closePath()}}}},{key:"showMenu",value:function(t){var e=this,n=this.transPoint(t);if(null===this.menu){this.menu=document.createElement("ul"),this.menu.classList.add("vat-roi-menu"),this.box.appendChild(this.menu);var i=this;this.menu.onmouseleave=function(t){i.menu&&(i.menu.style.display="none")},this.createMenuItem("保存&退出",(function(){i.checkDrawing()&&(i.diagrams.length+i.drawingCount()>i.maxRoi?i.showMsg("已达到绘图数量限制!!"):(i.saveDrawing(),i.onSave&&i.onSave(e.diagrams)))})),this.createMenuItem("取消&退出",(function(){i.diagrams=i.oldDiagrams,i.dumpDiagrams(),i.onEscape&&i.onEscape()})),this.createMenuItem("保存&继续",(function(){i.checkDrawing()&&(e.diagrams.length+i.drawingCount()>e.maxRoi?i.showMsg("已达到绘图数量限制!!"):(e.saveDrawing(),e.updateDrawing()),i._isDrawing=!1)})),this.createMenuItem("擦除一个",(function(){i._isDrawing=!1,null!=i.drawingDiagram?(i.drawingDiagram=null,i.ctx&&i.ctx.clearRect(0,0,i._width,i._height)):i.diagrams.length>0&&(i.diagrams.pop(),i.dumpDiagrams())})),this.createMenuItem("擦除所有",(function(){i._isDrawing=!1,null!=i.drawingDiagram&&(i.drawingDiagram=null,i.ctx&&i.ctx.clearRect(0,0,i._width,i._height)),i.diagrams.length>0&&(i.diagrams=[],i.dumpDiagrams())}))}this.menu.style.display="block",this.menu.style.left="".concat(n.x,"px"),this.menu.style.top="".concat(n.y,"px")}},{key:"createMenuItem",value:function(t,e){if(null!==this.menu){var n=document.createElement("li");n.innerText=t;var i=this;n.onclick=function(t){e(),i.menu&&(i.menu.style.display="none")},this.menu.appendChild(n)}}},{key:"drawingCount",value:function(){return null==this.drawingDiagram?0:this.drawingDiagram.points.length>0?1:0}},{key:"transPoint",value:function(t){var e={x:t.offsetX,y:t.offsetY};return 0===e.x&&0===e.y&&(e.x=t.layerX,e.y=t.layerY),e}},{key:"scalePoint",value:function(t,e,n){return(t*=e)<0?t=0:t>n&&(t=n),t}}]),t}();function Y(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return K(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}H.DRAW_NONE=0,H.DRAW_RECT=1,H.DRAW_POLYGON=2,n("28a5");var q=function(){function t(){o(this,t)}return l(t,null,[{key:"parseUrl",value:function(e){return void 0===e||0===e.length?e||"":0!==e.indexOf("plive://")&&0!==e.indexOf("psub://")&&0!==e.indexOf("vms://")||e.indexOf("token=")>0||void 0===t.token||0===t.token.length?e:e.indexOf("?")>0?e+"&token="+t.token:e+"?token="+t.token}},{key:"parseVodUrl",value:function(t){var e={id:"",ip:"",port:0,start:"",end:"",type:0};if(0===t.indexOf("vms://")){var n=t.indexOf("/",6);if(n<0)return e;var i=t.indexOf("@",6);i<0&&(i=6);var r=t.substring(i,n).split(":");e.ip=r[0],e.port=parseInt(r[1],10),i=t.indexOf("/",n+1),n=t.indexOf("/",i+1),e.id=t.substring(i+1,n);var o,a={},s=Y(t.substring(t.indexOf("?",i)+1).split("&"));try{for(s.s();!(o=s.n()).done;){var l=o.value.split("=",2);a[l[0]]=l[1]}}catch(t){s.e(t)}finally{s.f()}e.start=a.beginTime,e.end=a.endTime,e.type=parseInt(a.type?a.type:1,10)}return e}}]),t}(),G=function(){function t(){o(this,t),this.websocket=null,this.faceRectUrl=void 0,this.faceSnapUrl=void 0,this.extUrl=void 0,this.maxCacheTime=3e4,this.maxCacheCount=750}return l(t,[{key:"setUrl",value:function(t,e,n){this.faceRectUrl=t,this.faceSnapUrl=e,this.extUrl=n,this.websocket&&this.websocket.readyState===WebSocket.OPEN&&this.start(this.websocket)}},{key:"start",value:function(e){this.websocket=e;var n=JSON.stringify({cmd:t.CMD_OPEN_FACE,faceRectUrl:q.parseUrl(this.faceRectUrl),faceSnapUrl:q.parseUrl(this.faceSnapUrl),extUrl:q.parseUrl(this.extUrl)});this.websocket.send(n)}},{key:"stop",value:function(){if(null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN){var e=JSON.stringify({cmd:t.CMD_CLOSE_FACE});this.websocket.send(e)}}}]),t}();G.CMD_OPEN_FACE="open_face",G.CMD_CLOSE_FACE="close_face",n("a481");var $=function(){function t(){o(this,t)}return l(t,null,[{key:"get",value:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=t.replace("{".concat(n,"}"),e[n]));return t}},{key:"set",value:function(e,n){"plugin-service-disconnected"===e?t.PLUGIN_SERVICE_DISCONNECTED=n:"plugin-service-mismatch"===e?t.PLUGIN_SERVICE_MISMATCH=n:"plugin-service-notfound"===e?t.PLUGIN_SERVICE_NOTFOUND=n:"plugin-service-version-require"===e?t.PLUGIN_SERVICE_VERSION_REQUIRE=n:"plugin-service-error"===e?t.PLUGIN_SERVICE_ERROR=n:"plugin-download"===e?t.PLUGIN_DOWNLOAD=n:"plugin-vod-error"===e?t.PLUGIN_VOD_ERROR=n:"stream-no-data"===e?t.STREAM_NO_DATA=n:"stream-concurrency-limit"===e?t.STREAM_CONCURRENCY_LIMIT=n:"user-concurrency-limit"===e?t.USER_CONCURRENCY_LIMIT=n:"stream-connect-failed"===e?t.STREAM_CONNECT_FAILED=n:"stream-notfound"===e?t.STREAM_NOTFOUND=n:"stream-auth-failed"===e?t.STREAM_AUTH_FAILED=n:"stream-unknown-error"===e?t.STREAM_UNKNOWN_ERROR=n:"stream-protocol-error"===e?t.STREAM_PROTOCOL_ERROR=n:"stream-disconnected"===e?t.STREAM_DISCONNECTED=n:"stream-unsupported"===e?t.STREAM_UNSUPPORTED=n:"stream-open-failed"===e?t.STREAM_OPEN_FAILED=n:"stream-authorize-limit"===e&&(t.STREAM_AUTHORIZE_LIMIT=n)}}]),t}();function X(t,e,n){return(X="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}$.PLUGIN_SERVICE_NOTFOUND="插件服务未安装或未启动",$.PLUGIN_SERVICE_DISCONNECTED="插件服务连接断开,请检查服务是否启动并刷新浏览器",$.PLUGIN_SERVICE_MISMATCH="插件版本不兼容",$.PLUGIN_SERVICE_VERSION_REQUIRE="插件服务版本不匹配,当前版本:{installed_version} 要求:{require_version}",$.PLUGIN_SERVICE_ERROR="连接插件服务错误",$.PLUGIN_DOWNLOAD="下载",$.PLUGIN_VOD_ERROR="启动回放进程失败",$.STREAM_NO_DATA="无视频数据",$.STREAM_CONCURRENCY_LIMIT="相机播放路数达到上限",$.USER_CONCURRENCY_LIMIT="用户播放路数达到上限",$.STREAM_CONNECT_FAILED="连接失败",$.STREAM_NOTFOUND="找不到流",$.STREAM_AUTH_FAILED="用户名或密码错误",$.STREAM_UNKNOWN_ERROR="未知异常",$.STREAM_PROTOCOL_ERROR="对方协议错误",$.STREAM_DISCONNECTED="连接断开",$.STREAM_UNSUPPORTED="不支持流类型",$.STREAM_OPEN_FAILED="打开流失败",$.STREAM_AUTHORIZE_LIMIT="授权播放路数达到上限",n("9c29");var J=function(){function t(){o(this,t),this.ctx=null,this.canvas=null,this.x1080pFactor=1,this.y1080pFactor=1,this.filter=null}return l(t,[{key:"setup",value:function(t){return this.canvas=t,this.ctx=t.getContext("2d"),null!==this.ctx}},{key:"clear",value:function(){this.ctx&&this.canvas&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"destroy",value:function(){this.ctx=null,this.canvas=null}},{key:"resize",value:function(t,e){this.x1080pFactor=t/1920,this.y1080pFactor=e/1080}},{key:"setFilter",value:function(t){this.filter=t}}]),t}();function Q(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=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var Z=function(t){u(n,t);var e=Q(n);function n(){var t;return o(this,n),(t=e.call(this)).imagePool=[],t.imageCount=0,t.onDraw=null,t.timerId=0,t.imageList=[],t.isShow=!1,t}return l(n,[{key:"setAsync",value:function(t,e){var n=this;this.onDraw=e,0!==t&&(0!==this.timerId&&clearInterval(this.timerId),this.timerId=setInterval((function(){n.onPlayTimer()}),1e3/t))}},{key:"render",value:function(t,e,n){this.isShow=!0;var i=this,r=new Blob([e]);if(i.imagePool.length>0){var o=i.imagePool.shift();o.image.src=URL.createObjectURL(r),o.time=n}else{var a={image:new Image,time:n};a.time=n,a.image.onload=function(t){i.onLoad(a)},a.image.onerror=function(t){a.image.src.length>0&&URL.revokeObjectURL(a.image.src),i.imagePool.push(a)},i.imageCount++,a.image.src=URL.createObjectURL(r)}}},{key:"clear",value:function(){X(f(n.prototype),"clear",this).call(this),this.imageList=[],this.isShow=!1}},{key:"destroy",value:function(){0!==this.timerId&&(clearInterval(this.timerId),this.timerId=0),X(f(n.prototype),"destroy",this).call(this)}},{key:"onLoad",value:function(t){if(!this.isShow)return URL.revokeObjectURL(t.image.src),void this.imagePool.push(t);0!==this.timerId?this.imageList.push(t):(this.ctx&&this.canvas&&this.ctx.drawImage(t.image,0,0,this.canvas.width,this.canvas.height),this.onDraw&&this.onDraw(t.time,t.image.naturalWidth,t.image.naturalHeight),URL.revokeObjectURL(t.image.src),this.imagePool.push(t))}},{key:"onPlayTimer",value:function(){if(this.isShow&&null!==this.ctx&&null!==this.canvas&&0!==this.imageList.length&&!(this.imageList.length<8)){for(;this.imageList.length>11;){var t=this.imageList.shift();void 0!==t&&(URL.revokeObjectURL(t.image.src),this.imagePool.push(t))}var e=this.imageList.shift();void 0!==e&&(this.ctx.drawImage(e.image,0,0,this.canvas.width,this.canvas.height),this.onDraw&&this.onDraw(e.time,e.image.naturalWidth,e.image.naturalHeight),URL.revokeObjectURL(e.image.src),this.imagePool.push(e))}}}]),n}(J);Z.MAX_CACHE_IMAGE_COUNT=10,n("34ef"),n("af56"),n("63d9");var tt=function(){function t(e){o(this,t),this.gl=e,this.texture=e.createTexture(),null!==this.texture&&(e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE))}return l(t,[{key:"bind",value:function(t,e,n){this.gl.activeTexture([this.gl.TEXTURE0,this.gl.TEXTURE1,this.gl.TEXTURE2][t]),this.gl.bindTexture(this.gl.TEXTURE_2D,this.texture),this.gl.uniform1i(this.gl.getUniformLocation(e,n),t)}},{key:"fill",value:function(t,e,n){this.gl.bindTexture(this.gl.TEXTURE_2D,this.texture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,t,e,0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,n)}}]),t}(),et=function(){function t(e,n){o(this,t),this.gl=e,this.y=new tt(this.gl),this.u=new tt(this.gl),this.v=new tt(this.gl),this.y.bind(0,n,"YTexture"),this.u.bind(1,n,"UTexture"),this.v.bind(2,n,"VTexture")}return l(t,[{key:"render",value:function(t,e,n){var i=e*n,r=i+i/4,o=e>>1,a=n>>1;this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.y.fill(e,n,t.subarray(0,i)),this.u.fill(o,a,t.subarray(i,r)),this.v.fill(o,a,t.subarray(r,t.length)),this.gl.drawArrays(this.gl.TRIANGLE_STRIP,0,4)}},{key:"clear",value:function(){this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height),this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT)}},{key:"getGl",value:function(){return this.gl}}]),t}(),nt=function(){function t(){o(this,t),this.isSetup=!1,this.canvas=null,this.webgl=null,this.onDraw=null,this.timerId=0,this.cacheList=[]}return l(t,[{key:"setAsync",value:function(t,e){var n=this;this.onDraw=e,0!==t&&(0!==this.timerId&&clearInterval(this.timerId),this.timerId=setInterval((function(){if(!(n.cacheList.length<8)){for(;n.cacheList.length>11;)n.cacheList.shift();var t=n.cacheList.shift();void 0!==t&&n.webgl&&n.renderInternal(n.webgl,t.type,t.data,t.time)}}),1e3/t))}},{key:"resize",value:function(t,e){if(null!==this.webgl){var n=this.webgl.getGl();n.viewport(0,0,n.canvas.width,n.canvas.height)}}},{key:"clear",value:function(){this.webgl&&this.webgl.clear(),this.cacheList=[]}},{key:"destroy",value:function(){if(0!==this.timerId&&(clearInterval(this.timerId),this.timerId=0),null!==this.webgl){var t=this.webgl.getGl().getExtension("WEBGL_lose_context");null!==t&&t.loseContext()}this.webgl=null,this.canvas=null,this.isSetup=!1}},{key:"render",value:function(t,e,n){this.isSetup||(this.setupInternal(),this.isSetup=!0),0!==this.timerId?this.cacheList.push({type:t,data:e,time:n}):this.webgl&&this.renderInternal(this.webgl,t,e,n)}},{key:"setup",value:function(t){return this.canvas=t,!0}},{key:"setupInternal",value:function(){if(null===this.canvas)return!1;var t=this.canvas.getContext("webgl")||this.canvas.getContext("experimental-webgl");if(null===t)return!1;var e=t.createProgram();if(null===e)return!1;var n=["attribute lowp vec4 aVertexPosition;","attribute vec2 aTextureCoord;","varying lowp vec2 vTextureCoord;","void main(void) {"," gl_Position = aVertexPosition;"," vTextureCoord = aTextureCoord;","}"].join("\n"),i=t.createShader(t.VERTEX_SHADER);if(null===i)return!1;t.shaderSource(i,n),t.compileShader(i);var r=["precision lowp float;","varying lowp vec2 vTextureCoord;","uniform sampler2D YTexture;","uniform sampler2D UTexture;","uniform sampler2D VTexture;","const mat4 YUV2RGB = mat4","("," 1.1643828125, 0, 1.59602734375, -.87078515625,"," 1.1643828125, -.39176171875, -.81296875, .52959375,"," 1.1643828125, 2.017234375, 0, -1.081390625,"," 0, 0, 0, 1",");","void main(void) {"," gl_FragColor = vec4( texture2D(YTexture, vTextureCoord).x, texture2D(UTexture, vTextureCoord).x, ","texture2D(VTexture, vTextureCoord).x, 1) * YUV2RGB;","}"].join("\n"),o=t.createShader(t.FRAGMENT_SHADER);if(null===o)return!1;t.shaderSource(o,r),t.compileShader(o),t.attachShader(e,i),t.attachShader(e,o),t.linkProgram(e),t.useProgram(e),t.getProgramParameter(e,t.LINK_STATUS);var a=t.getAttribLocation(e,"aVertexPosition");t.enableVertexAttribArray(a);var s=t.getAttribLocation(e,"aTextureCoord");t.enableVertexAttribArray(s);var l=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,l),t.bufferData(t.ARRAY_BUFFER,new Float32Array([1,1,0,-1,1,0,1,-1,0,-1,-1,0]),t.STATIC_DRAW),t.vertexAttribPointer(a,3,t.FLOAT,!1,0,0);var c=t.createBuffer();return t.bindBuffer(t.ARRAY_BUFFER,c),t.bufferData(t.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),t.STATIC_DRAW),t.vertexAttribPointer(s,2,t.FLOAT,!1,0,0),this.webgl=new et(t,e),!0}},{key:"setFilter",value:function(t){}},{key:"renderInternal",value:function(t,e,n,i){if(2===e){new DataView(n,0,12);var r=new Uint16Array(n,12,4),o=new Uint8Array(n,20);t.render(o,r[2],r[3]),this.onDraw&&this.onDraw(i,r[0],r[1])}else{var a=new Uint16Array(n,4,2);t.render(new Uint8Array(n,16),a[0],a[1]),this.onDraw&&this.onDraw(i,a[0],a[1])}}}]),t}();ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(t,e){var n=this.byteLength;if(e=void 0===e?n:0|e,(t=0|t||0)<0&&(t=Math.max(t+n,0)),e<0&&(e=Math.max(e+n,0)),0===n||t>=n||t>=e)return new ArrayBuffer(0);var i=Math.min(n-t,e-t),r=new ArrayBuffer(i);return new Uint8Array(r).set(new Uint8Array(this,t,i)),r});var it=function(){function t(){o(this,t),this.queue=[],this.timerId=0}return l(t,[{key:"getUrl",value:function(t){var e=new Blob([t]),n=URL.createObjectURL(e);if(this.queue.push({url:n,time:performance.now()}),0===this.timerId){var i=this;this.timerId=setInterval((function(){i.check()}),1e3)}return n}},{key:"check",value:function(){if(void 0!==this.queue){for(;this.queue.length>0&&performance.now()-this.queue[0].time>t.DEFAULT_CACHE_TIME;)URL.revokeObjectURL(this.queue[0].url),this.queue.shift();0===this.queue.length&&(clearInterval(this.timerId),this.timerId=0)}else clearInterval(this.timerId)}}]),t}();it.DEFAULT_CACHE_TIME=15e3;var rt=function(){function t(e,n){o(this,t),this.box=e,this.canvas=document.createElement("canvas"),this.canvas.classList.add(n),this.box.appendChild(this.canvas),this.render=null,this.isShow=!0,this.lastRenderTime=0}return l(t,[{key:"setupRender",value:function(t){return this.render=t,this.canvas.width>0&&this.canvas.height>0&&this.render.resize(this.canvas.width,this.canvas.height),this.render.setup(this.canvas)}},{key:"stopView",value:function(){this.isShow=!1,this.render&&this.render.clear()}},{key:"destroy",value:function(){this.stopView(),this.render&&(this.render.destroy(),this.render=null),this.box&&this.canvas&&(this.box.removeChild(this.canvas),this.box=null)}},{key:"move",value:function(t,e,n,i){this.canvas.width=n,this.canvas.height=i,this.canvas.style.left="".concat(t,"px"),this.canvas.style.top="".concat(e,"px"),this.render&&this.render.resize(n,i)}},{key:"putData",value:function(t,e,n){this.isShow&&this.render&&(this.render.render(t,e,n),this.lastRenderTime=performance.now())}},{key:"restoreView",value:function(){this.isShow=!0}},{key:"getImage",value:function(t,e){e&&(t.width=this.canvas.width,t.height=this.canvas.height);var n=t.getContext("2d");return n&&n.drawImage(this.canvas,0,0,t.width,t.height),!0}},{key:"getRender",value:function(){return this.render}}]),t}();function ot(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=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var at=function(t){u(n,t);var e=ot(n);function n(t,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.DEFAULT_DURATION;return o(this,n),(r=e.call(this,t,i)).tmpCanvas=document.createElement("canvas"),r.syncTime=0,r.isSync=!0,r.queue=[],r.showDuration=a,r.ctx=null,r}return l(n,[{key:"setupRender",value:function(t){return null!==this.canvas&&(this.ctx=this.canvas.getContext("2d"),this.render=t,this.canvas.width>0&&this.canvas.height>0&&this.render.resize(this.canvas.width,this.canvas.height),this.render.setup(this.canvas))}},{key:"stopView",value:function(){X(f(n.prototype),"stopView",this).call(this),this.queue=[],this.syncTime=0,null!==this.ctx&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"move",value:function(t,e,i,r){this.tmpCanvas.width=i,this.tmpCanvas.height=r,X(f(n.prototype),"move",this).call(this,t,e,i,r)}},{key:"putData",value:function(t,e,n){0!==this.syncTime&&this.isShow&&this.render&&this.ctx&&(this.isSync&&this.syncTime>0&&n>this.syncTime?this.queue.push({type:t,data:e,time:n}):this.renderData({type:t,data:e,time:n}))}},{key:"setSync",value:function(t){this.isSync=t,this.queue=[]}},{key:"sync",value:function(t){this.syncTime=t,0===t&&this.queue.length>0&&(this.renderData(this.queue[this.queue.length-1]),this.queue=[]);for(var e=-1,n=0;n<this.queue.length&&this.queue[n].time<=this.syncTime+10;n++)e=n;if(e>=0){if(this.syncTime-this.queue[e].time>this.showDuration){for(;e>=0;)this.queue.shift(),e--;return}for(this.renderData(this.queue[e]);e>0;)this.queue.shift(),e-=1}else this.lastRenderTime>0&&this.render&&performance.now()-this.lastRenderTime>this.showDuration&&(this.ctx&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.lastRenderTime=0)}},{key:"getCtx",value:function(){return this.ctx}},{key:"renderData",value:function(t){this.render&&this.ctx&&(this.render.render(t.type,t.data,t.time),this.lastRenderTime=performance.now())}}]),n}(rt);at.DEFAULT_DURATION=42;var st=function(){function t(){o(this,t)}return l(t,null,[{key:"hollow",value:function(t,e,n,i,r){var o=Math.min(i,r)/3,a=e+i,s=n+r;t.moveTo(e,n+o),t.lineTo(e,n),t.lineTo(e+o,n),t.moveTo(a-o,n),t.lineTo(a,n),t.lineTo(a,n+o),t.moveTo(a,s-o),t.lineTo(a,s),t.lineTo(a-o,s),t.moveTo(e+o,s),t.lineTo(e,s),t.lineTo(e,s-o)}}]),t}();st.LINE_STYLE_SOLID=0,st.LINE_STYLE_HOWLLOW=16;var lt=function(){function t(){o(this,t)}return l(t,null,[{key:"render",value:function(e,n,i,r,o){var a=new DataView(n),s=a.getFloat32(0,!0),l=a.getUint32(16,!0),c=(n.byteLength-20)/l,u=0,h="";e.beginPath();for(var d=20;d<n.byteLength;d+=c)if(!(s>=.2&&null!==o)||o.filter(a.getUint32(d+20,!0))){var f=a.getFloat32(d,!0)*i,p=a.getFloat32(d+4,!0)*r,v=a.getFloat32(d+8,!0)*i,y=a.getFloat32(d+12,!0)*r,m="rgba(65,255,244,0.8)",g=2,w=a.getUint32(d+16,!0),b=t.LINE_STYLE_HOWLLOW;if(w>0){var _=a.getUint8(d+16),x=a.getUint8(d+17),S=a.getUint8(d+18);b=(g=a.getUint8(d+19))&t.LINE_STYLE_BYTES,g&=t.WEIGHT_BYTES,u===w?m=h:(h=m="rgba(".concat(_,", ").concat(x,", ").concat(S,", 0.8)"),u=w,e.stroke(),e.closePath(),e.strokeStyle=m,e.lineWidth=g,e.beginPath())}else 20===d&&(e.strokeStyle=m,e.lineWidth=g);t.LINE_STYLE_HOWLLOW===b?st.hollow(e,f,p,v,y):t.LINE_STYLE_SOLID===b&&e.strokeRect(f,p,v,y)}e.stroke(),e.closePath()}}]),t}();lt.LINE_STYLE_SOLID=0,lt.LINE_STYLE_HOWLLOW=16,lt.LINE_STYLE_BYTES=240,lt.WEIGHT_BYTES=15;var ct=function(){function t(){o(this,t)}return l(t,null,[{key:"render",value:function(e,n,i,r,o){for(var a=new DataView(n),s=a.getFloat32(0,!0),l=a.getUint32(16,!0),c=(n.byteLength-20)/l,u=20;u<n.byteLength;u+=c)if(!(s>=.2&&null!==o)||o.filter(a.getUint32(u+220,!0))){var h=t.parsePoints(a,u,i,r);t.renderBody(e,h)}}},{key:"parsePoints",value:function(t,e,n,i){for(var r=[],o=0;o<18;o++){var a=e+10*o,s=1===t.getUint8(a),l=t.getFloat32(a+2,!0)*n,c=t.getFloat32(a+6,!0)*i;r.push({valid:s,x:l,y:c})}return r}},{key:"drawPoint",value:function(t,e,n){t.beginPath(),t.arc(e,n,4,0,2*Math.PI),t.fill(),t.stroke()}},{key:"drawLine",value:function(t,e,n){e.valid&&n.valid&&(t.moveTo(e.x,e.y),t.lineTo(n.x,n.y))}},{key:"renderBody",value:function(e,n){e.strokeStyle="green",e.lineWidth=2,e.beginPath(),t.drawLine(e,n[16],n[14]),t.drawLine(e,n[17],n[15]),t.drawLine(e,n[14],n[0]),t.drawLine(e,n[15],n[0]),t.drawLine(e,n[0],n[1]),t.drawLine(e,n[1],n[2]),t.drawLine(e,n[2],n[3]),t.drawLine(e,n[3],n[4]),t.drawLine(e,n[1],n[5]),t.drawLine(e,n[5],n[6]),t.drawLine(e,n[6],n[7]),t.drawLine(e,n[1],n[8]),t.drawLine(e,n[8],n[9]),t.drawLine(e,n[9],n[10]),t.drawLine(e,n[1],n[11]),t.drawLine(e,n[11],n[12]),t.drawLine(e,n[12],n[13]),e.stroke(),e.closePath(),e.fillStyle="red";for(var i=0;i<18;i++)n[i].valid&&t.drawPoint(e,n[i].x,n[i].y)}}]),t}(),ut=function(){function t(){o(this,t)}return l(t,null,[{key:"render",value:function(t,e,n,i){var r=new DataView(e),o=r.getFloat32(0,!0),a=r.getUint32(12,!0),s=16;o>=.3&&(s=20);var l=(e.byteLength-s)/a;for(t.strokeStyle="rgba(65,255,244,0.8)",t.lineWidth=2,t.beginPath();s<e.byteLength;s+=l){var c=r.getFloat32(s,!0)*n,u=r.getFloat32(s+4,!0)*i,h=r.getFloat32(s+8,!0)*n,d=r.getFloat32(s+12,!0)*i;st.hollow(t,c,u,h,d)}t.stroke(),t.closePath()}}]),t}(),ht=function(){function t(){o(this,t)}return l(t,null,[{key:"render",value:function(t,e,n,i){var r=new DataView(e),o=r.getUint32(16,!0),a=(e.byteLength-20)/o;t.save(),t.scale(n,i),t.font="bold 24px Microsoft YaHei",t.textAlign="center",t.strokeStyle="#32CD3288";for(var s=20;s<e.byteLength;s+=a){var l=r.getFloat32(s,!0),c=r.getFloat32(s+4,!0),u=r.getFloat32(s+8,!0),h=r.getFloat32(s+12,!0),d=r.getUint8(s+16),f=r.getUint8(s+17),p=r.getUint8(s+18),v=r.getUint8(s+19);t.strokeRect(l,c,u,h),l+=u+5;var y=c;d>0&&(y+=33,this.drawText(t,this.BAG_TEXTS[d],l,y)),f>0&&(y+=33,this.drawText(t,this.SLEEVE_TEXTS[f],l,y)),p>0&&(y+=33,this.drawText(t,this.RIDE_TEXTS[p],l,y)),v>0&&(y+=33,this.drawText(t,this.HELMET_TEXTS[v],l,y))}t.restore()}},{key:"drawText",value:function(t,e,n,i){t.fillStyle="rgba(50, 205, 50, 0.75)",t.fillRect(n,i,140,30),t.fillStyle="rgb(0, 0, 0)",t.fillText(e,n+70,i+25)}}]),t}();ht.BAG_TEXTS=["未 知","未背单肩包","背单肩包"],ht.SLEEVE_TEXTS=["未 知","长 袖","短 袖","无 袖"],ht.RIDE_TEXTS=["未 知","未 骑 车","骑 车"],ht.HELMET_TEXTS=["未 知","未戴头盔","戴 头 盔"];var dt=function(){function t(){o(this,t)}return l(t,null,[{key:"render",value:function(e,n,i,r){var o=new DataView(n),a=o.getUint32(16,!0),s=(n.byteLength-20)/a;e.save(),e.scale(i,r),e.font="bold 24px Microsoft YaHei",e.textAlign="center",e.strokeStyle="#00CED188";for(var l=20;l<n.byteLength;l+=s){var c=o.getFloat32(l,!0),u=o.getFloat32(l+4,!0),h=o.getFloat32(l+8,!0),d=o.getFloat32(l+12,!0),f=o.getUint8(l+16),p=o.getUint8(l+17),v=o.getUint8(l+18);e.strokeRect(c,u,h,d);var y=u;f>0&&(y-=33,t.drawText(e,this.MASK_TEXTS[f],c,y)),p>0&&(y-=33,t.drawText(e,this.GENDER_TEXTS[p],c,y)),v>0&&(y-=33,t.drawText(e,this.NATION_TEXTS[v],c,y))}e.restore()}},{key:"drawText",value:function(t,e,n,i){t.fillStyle="rgba(0, 206, 209, 0.75)",t.fillRect(n,i,140,30),t.fillStyle="rgb(0, 0, 0)",t.fillText(e,n+70,i+25)}}]),t}();dt.GENDER_TEXTS=["未 知","男","女"],dt.MASK_TEXTS=["未 知","不戴口罩","戴 口 罩"],dt.NATION_TEXTS=["未 知","汉 族","维 族","少数民族"];var ft=function(){function t(){o(this,t)}return l(t,null,[{key:"render",value:function(t,e,n,i){var r=new DataView(e),o=r.getUint32(16,!0),a=(e.byteLength-20)/o;t.save(),t.scale(n,i),t.font="bold 24px Microsoft YaHei",t.textAlign="center",t.strokeStyle="#F0E68C88";for(var s=20;s<e.byteLength;s+=a){var l=r.getFloat32(s,!0),c=r.getFloat32(s+4,!0),u=r.getFloat32(s+8,!0),h=r.getFloat32(s+12,!0),d=r.getUint8(s+16),f=r.getUint8(s+17),p=r.getUint8(s+18);t.strokeRect(l,c,u,h),l+=u+5;var v=c;d>0&&(v+=33,this.drawText(t,this.COLOR_TEXTS[d],l,v)),f>0&&(v+=33,this.drawText(t,this.DIRECT_TEXTS[f],l,v)),p>0&&(v+=33,this.drawText(t,this.TYPE_TEXTS[p],l,v))}t.restore()}},{key:"drawText",value:function(t,e,n,i){t.fillStyle="rgba(240, 230, 140, 0.75)",t.fillRect(n,i,140,30),t.fillStyle="rgb(0, 0, 0)",t.fillText(e,n+70,i+25)}}]),t}();function pt(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=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}ft.COLOR_TEXTS=["黑 色","蓝 色","棕 色","灰 色","绿 色","橘 色","粉 色","紫 色","红 色","白 色","黄 色","银 色"],ft.DIRECT_TEXTS=["后","右 后","右","右 前","前","左 前","左","左 后","未 知"],ft.TYPE_TEXTS=["轿 车","校 车","越 野 车","商 务 车","货 车","皮 卡","大 卡 车","小 卡 车","大 巴 士","小 巴 士","摩 托 车","三 轮 车","电 动 车","其它类型"];var vt=function(){function t(){o(this,t)}return l(t,[{key:"filter",value:function(t,e,n){return!0}},{key:"getDuration",value:function(t){return null}},{key:"render",value:function(t,e,n,i,r){return!1}}]),t}(),yt=function(t){u(n,t);var e=pt(n);function n(){var t;return o(this,n),(t=e.call(this)).handler=n.DEFAULT_HANDLER,t}return l(n,[{key:"render",value:function(t,e,i){null!=this.canvas&&null!==this.ctx&&(this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.handler.render(t,this.ctx,e,this.x1080pFactor,this.y1080pFactor)||(t===n.FACE_TRACK?ut.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor):t===n.FACE_RECT||t===n.BODY_RECT?lt.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor,this.filter):t===n.BODY_POINTS?ct.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor,this.filter):t===n.POC_BODY_ATTR?ht.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor):t===n.POC_FACE_ATTR?dt.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor):t===n.POC_VEHICLE_ATTR&&ft.render(this.ctx,e,this.x1080pFactor,this.y1080pFactor)))}},{key:"setHandler",value:function(t){this.handler=null!==t?t:n.DEFAULT_HANDLER}}]),n}(J);yt.FACE_TRACK=200,yt.FACE_RECT=1e4,yt.BODY_RECT=10001,yt.BODY_POINTS=10005,yt.POC_BODY_ATTR=10009,yt.POC_FACE_ATTR=10010,yt.POC_VEHICLE_ATTR=10011,yt.DEFAULT_HANDLER=new vt;var mt,gt,wt,bt,_t=function(){function t(){o(this,t)}return l(t,null,[{key:"closeWebsocket",value:function(t){null!==t&&(t.onopen=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.close())}},{key:"createWebsocket",value:function(e,n){if(n&&n.length>6)return 0===n.indexOf("ws://")||0===n.indexOf("wss://")?new WebSocket(n):new WebSocket("ws://".concat(n,":").concat(e));var i=t.ipSeed%36+1;return t.ipSeed+=1,new WebSocket("ws://127.0.0.".concat(i,":").concat(e))}},{key:"isSupportWebGL",value:function(){if(null===t.hasGL){var e=document.createElement("canvas"),n=e.getContext("webgl")||e.getContext("experimental-webgl");t.hasGL=null!==n}return t.hasGL}},{key:"stringToUnix",value:function(e){return!e||e.length<19?0:Math.floor(new Date(t.stringToDate(e)).getTime()/1e3)}},{key:"stringToDate",value:function(t){return" "===t.charAt(10)&&(t=t.substr(0,10)+"T"+t.substr(11,t.length-10)),new Date(t)}}]),t}();function xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}_t.hasGL=null,_t.ipSeed=0,function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.YUV=1]="YUV",t[t.YUV420=2]="YUV420",t[t.JPEG=3]="JPEG",t[t.PCM=4]="PCM"}(mt||(mt={})),function(t){t[t.YUV=0]="YUV",t[t.JPEG=1]="JPEG"}(gt||(gt={})),function(t){t[t.AUTO=0]="AUTO",t[t.REALTIME=1]="REALTIME",t[t.SMOOTH=2]="SMOOTH"}(wt||(wt={})),function(t){t[t.DEFAULT_CHANNEL=0]="DEFAULT_CHANNEL",t[t.LIVE_CHANNEL=1]="LIVE_CHANNEL",t[t.VOD_CHANNEL=2]="VOD_CHANNEL",t[t.FILE_CHANNEL=3]="FILE_CHANNEL"}(bt||(bt={}));var St,Et,kt,Ct=function(){function t(){o(this,t),this.pingBuf=new ArrayBuffer(0),this.onCommand=function(){return 1},this.onFrame=function(){return 1},this.onConnected=function(){return 1},this.onDisconnected=function(){return 1},this.format=null,this.viewport=null,this.enableFilterLoss=null,this.websocket=null,this.proxyIp=null}return l(t,[{key:"getWebsocket",value:function(){return this.websocket}},{key:"init",value:function(t,e,n){this.proxyIp=n,this.close(),this.initChannel(t,e)}},{key:"close",value:function(){_t.closeWebsocket(this.websocket),this.websocket=null}},{key:"hasChannel",value:function(){return null!==this.websocket}},{key:"setFormat",value:function(e){this.format=e,this.sendCommand(t.CMD_SET_FORMAT,{format:this.formatString(e)})}},{key:"setViewport",value:function(e,n){this.viewport={width:e,height:n},this.sendCommand(t.CMD_SET_VIEWPORT,{width:e,height:n})}},{key:"setFilterLoss",value:function(e){this.enableFilterLoss=e,this.sendCommand(t.CMD_SET_FILTER_LOSS,{enable:e})}},{key:"snapshot",value:function(e){return this.sendCommand(t.CMD_REQ_SNAPSHOT,{time:e})}},{key:"setVolume",value:function(e){return this.sendCommand(t.CMD_SET_VOLUME,{volume:e})}},{key:"ping",value:function(){null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN&&this.websocket.send(this.pingBuf)}},{key:"startRecord",value:function(e,n){return this.sendCommand(t.CMD_START_RECORD,{duration:e,path:n})}},{key:"stopRecord",value:function(){return this.sendCommand(t.CMD_STOP_RECORD,{})}},{key:"switchAudio",value:function(e){return this.sendCommand(t.CMD_SWITCH_AUDIO,{on:e,background:!0})}},{key:"switchTalk",value:function(e){return this.sendCommand(t.CMD_SWITCH_TALK,{on:e})}},{key:"setMode",value:function(e){return this.sendCommand(t.CMD_SET_STREAM_MODE,{mode:e})}},{key:"setDelay",value:function(e){return this.sendCommand(t.CMD_SET_STREAM_DELAY,{delay:e})}},{key:"switchUrl",value:function(e,n,i){return void 0===i&&(i=!1),this.sendCommand(t.CMD_SWITCH_URL,{url1:e,url2:n,soft:i})}},{key:"switchIndex",value:function(e){return this.sendCommand(t.CMD_SWITCH_INDEX,{index:e})}},{key:"ptzControl",value:function(e,n){return this.sendCommand(t.CMD_PTZ_CONTROL,{ctl:e,value:n})}},{key:"ptzControl3D",value:function(e,n,i,r,o){return this.sendCommand(t.CMD_PTZ_CONTROL_3D,{direct:e,x:n,y:i,w:r,h:o})}},{key:"playRecord",value:function(e,n,i,r){return this.sendCommand(t.CMD_PLAY_RECORD,{startTime:e,endTime:n,type:i,direction:r})}},{key:"pause",value:function(){return this.sendCommand(t.CMD_PAUSE_STREAM,{})}},{key:"resume",value:function(e){return this.sendCommand(t.CMD_RESUME_STREAM,{direction:e})}},{key:"stop",value:function(){return this.sendCommand(t.CMD_STOP_STREAM,{})}},{key:"setSpeed",value:function(e){return this.sendCommand(t.CMD_SET_SPEED,{speed:e})}},{key:"changeDirection",value:function(e){return this.sendCommand(t.CMD_CHANGE_DIRECTION,{direction:e})}},{key:"queryRecords",value:function(e,n){return this.sendCommand(t.CMD_QUERY_RECORD,{startTime:e,endTime:n})}},{key:"sendCommand",value:function(t,e){if(null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN){var n=JSON.stringify(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({cmd:t},e));return this.websocket.send(n),!0}return!1}},{key:"sendRaw",value:function(t){return null!==this.websocket&&this.websocket.readyState===WebSocket.OPEN&&(this.websocket.send(t),!0)}},{key:"formatString",value:function(t){var e="";return t===gt.YUV?e="yuv420":t===gt.JPEG&&(e="jpeg"),e}},{key:"initChannel",value:function(e,n){var i=this;this.websocket=_t.createWebsocket(e,this.proxyIp),this.websocket.binaryType="arraybuffer",this.websocket.onopen=function(){var e="";bt.DEFAULT_CHANNEL===n?e="default":bt.LIVE_CHANNEL===n?e="live":bt.VOD_CHANNEL===n?e="vod":bt.FILE_CHANNEL===n&&(e="file"),i.sendCommand(t.CMD_INIT_CHANNEL,{type:e}),null!==i.format&&i.sendCommand(t.CMD_SET_FORMAT,{format:i.formatString(i.format)}),null!==i.viewport&&i.sendCommand(t.CMD_SET_VIEWPORT,i.viewport),null!==i.enableFilterLoss&&i.sendCommand(t.CMD_SET_FILTER_LOSS,{enable:i.enableFilterLoss}),i.onConnected()},this.websocket.onerror=function(){i.onDisconnected()},this.websocket.onclose=function(){i.onDisconnected()},this.websocket.onmessage=function(e){if("string"==typeof e.data){if("{"===e.data[0]){var n=JSON.parse(e.data);i.onCommand(n.cmd,n)}else if(e.data.length>6&&e.data.substr(0,5)===t.SB_CMD_SPEED){var r=parseInt(e.data.substr(t.SB_CMD_SPEED.length+1),10);i.onCommand(t.SB_CMD_SPEED,{speed:r})}}else i.handleBinary(e.data)}}},{key:"handleBinary",value:function(t){var e=new Uint32Array(t,0,2);if(1129731417===e[0]){var n=new DataView(t,8,8).getFloat64(0,!0);this.onFrame(mt.YUV,t,n)}else if(3774863615===e[0]&&1179258880===e[1]){var i=new DataView(t,t.byteLength-8,8).getFloat64(0,!0);this.onFrame(mt.JPEG,t,i)}else if(1112954201===e[0]){var r=this.getUint64(new DataView(t,8,8),0);this.onFrame(mt.YUV,t,r)}else if(512==(65535&e[0])){var o=new DataView(t,4,8).getFloat64(0,!0);this.onFrame(mt.YUV420,t,o)}else if(1112359760===e[0]||827147088===e[0]){var a=this.getUint64(new DataView(t,4,8),0);this.onFrame(mt.PCM,t,a)}else 827611205===e[0]||e[0]}},{key:"getUint64",value:function(t,e){return t.getUint32(e,!0)+4294967296*(16777215&t.getUint32(e+4,!0))}}]),t}();Ct.CMD_INIT_CHANNEL="init_channel",Ct.CMD_SET_FORMAT="set_format",Ct.CMD_SET_VOLUME="set_volume",Ct.CMD_SET_FILTER_LOSS="set_filter_loss",Ct.CMD_REQ_SNAPSHOT="req_snapshot",Ct.CMD_SET_VIEWPORT="set_viewport",Ct.CMD_SWITCH_URL="switch_url",Ct.CMD_SWITCH_INDEX="switch_index",Ct.CMD_START_RECORD="start_record",Ct.CMD_STOP_RECORD="stop_record",Ct.CMD_SWITCH_AUDIO="switch_audio",Ct.CMD_SWITCH_TALK="switch_talk",Ct.CMD_SET_STREAM_MODE="set_mode",Ct.CMD_SET_STREAM_DELAY="set_delay",Ct.CMD_PTZ_CONTROL="req_ptz_ctl",Ct.CMD_PTZ_CONTROL_3D="req_ptz_ctl3D",Ct.CMD_OPEN_DEVICE="open_device",Ct.CMD_QUERY_RECORD="query_record",Ct.CMD_PLAY_RECORD="play_record",Ct.CMD_STOP_STREAM="stop_stream",Ct.CMD_PAUSE_STREAM="pause_stream",Ct.CMD_RESUME_STREAM="resume_stream",Ct.CMD_SET_SPEED="set_speed",Ct.CMD_PLAY_STATE="play_state",Ct.CMD_STREAM_STATE="stream_state",Ct.CMD_CHANGE_DIRECTION="change_direction",Ct.SB_CMD_SPEED="speed",Ct.SB_CMD_STREAM_STATUS="stream_status",Ct.SB_CMD_INFO="info",Ct.SB_CMD_STREAM_SIZE="stream_size",Ct.SB_CMD_RECORD_STATE="record_state",Ct.SB_CMD_AUDIO_STATE="audio_state",Ct.SB_CMD_RES_SNAPSHOT="res_snapshot",Ct.SB_CMD_PLAY_STATE="play_state",function(t){t[t.NONE=0]="NONE",t[t.JPEG_VIDEO_LAYER=1]="JPEG_VIDEO_LAYER",t[t.YUV_VIDEO_LAYER=2]="YUV_VIDEO_LAYER",t[t.FACE_TRACK_LAYER=3]="FACE_TRACK_LAYER",t[t.BODY_POINT_LAYER=4]="BODY_POINT_LAYER",t[t.ACTION_IDENT_LAYER=5]="ACTION_IDENT_LAYER",t[t.FACE_ATTR_LAYER=6]="FACE_ATTR_LAYER",t[t.FACE_RECT_LAYER=7]="FACE_RECT_LAYER",t[t.BODY_RECT_LAYER=8]="BODY_RECT_LAYER",t[t.EXT_LAYER=9]="EXT_LAYER"}(St||(St={})),function(t){t[t.FACE_SNAP=0]="FACE_SNAP",t[t.FACE_RECOGNITION=1]="FACE_RECOGNITION",t[t.BODY_RECOGNITION=2]="BODY_RECOGNITION",t[t.ACTION_RECOGNITION=3]="ACTION_RECOGNITION",t[t.FACE_COMPARE=4]="FACE_COMPARE"}(Et||(Et={})),function(t){t[t.FACE_RECT=1e4]="FACE_RECT",t[t.BODY_RECT=10001]="BODY_RECT",t[t.FACE_RECT_ATTR=10002]="FACE_RECT_ATTR",t[t.BODY_RECT_ATTR=10003]="BODY_RECT_ATTR",t[t.ACTION_RECOGNIZE=10004]="ACTION_RECOGNIZE",t[t.BODY_POINTS=10005]="BODY_POINTS",t[t.FACE_SNAP_ATTR=10006]="FACE_SNAP_ATTR",t[t.BODY_SNAP_ATTR=10007]="BODY_SNAP_ATTR",t[t.MOVE_RECOGNIZE=10008]="MOVE_RECOGNIZE",t[t.FACE_COMPARE=10012]="FACE_COMPARE"}(kt||(kt={}));var At,Tt=function(){function t(e,n){o(this,t),this.exRenderCallback=null,this.box=e,this.jpegLayer=null,this.yuvLayer=null,this.layers={},this.errorElement=null,this.errorTD=null,this.left=0,this.top=0,this.width=0,this.height=0,this.subscribeCallback=n,this.faceSnapQueue=[],this.faceRecognitionQueue=[],this.bodyRecognitionQueue=[],this.actionRecognitionQueue=[],this.imageCache=new it,this.syncs=[],this.trackIdFilters={},this.renderHandler=null,this.isShow=!0}return l(t,[{key:"initLayer",value:function(t){var e=this,n=null,i=null;return St.JPEG_VIDEO_LAYER===t?((n=new Z).setAsync(25,(function(t,n,i){e.sync(t,n,i)})),i=new rt(this.box,"vatrender"),this.jpegLayer=i):St.YUV_VIDEO_LAYER===t&&((n=new nt).setAsync(25,(function(t,n,i){e.sync(t,n,i)})),i=new rt(this.box,"vatrender"),this.yuvLayer=i),!(null===n||null===i||!i.setupRender(n)||(this.layers[t]=i,i.move(this.left,this.top,this.width,this.height),this.trackIdFilters[t]?n.setFilter(this.trackIdFilters[t]):this.trackIdFilters[St.NONE]?n.setFilter(this.trackIdFilters[St.NONE]):n.setFilter(null),0))}},{key:"isYuv",value:function(){return null!==this.yuvLayer}},{key:"putExtData2",value:function(t,e,n){var i=this.renderHandler;if(null!==i&&!i.filter(t,n,e))return!1;var r=this.layers[t];if(r)r.putData(t,e,n);else if(this.isShow){var o=new yt,a=at.DEFAULT_DURATION;if(null!==this.renderHandler){var s=this.renderHandler.getDuration(t);null!=s&&(a=s)}if(!(r=this.createExtLayer(a)).setupRender(o))return!1;this.layers[t]=r,r.move(this.left,this.top,this.width,this.height),this.trackIdFilters[t]?o.setFilter(this.trackIdFilters[t]):this.trackIdFilters[0]?o.setFilter(this.trackIdFilters[0]):o.setFilter(null),null!==this.renderHandler&&o.setHandler(this.renderHandler),r.putData(t,e,n)}return!0}},{key:"removeLayer",value:function(t){var e=this.layers[t];if(e){this.layers[t]=null,e.destroy();for(var n=0;n<this.syncs.length;n++)if(this.syncs[n]===e){this.syncs[n]=this.syncs[0],this.syncs.shift();break}}}},{key:"putFrame",value:function(t,e,n){mt.YUV420===t?null!==this.yuvLayer&&this.yuvLayer.putData(2,e,n):mt.YUV===t?null!==this.yuvLayer&&this.yuvLayer.putData(1,e,n):mt.JPEG===t&&null!==this.jpegLayer&&this.jpegLayer.putData(0,e,n)}},{key:"putData",value:function(t){var e=new Uint32Array(t,0,2);if(3774863615===e[0]&&1179258880===e[1]){var n=new DataView(t,t.byteLength-8,8).getFloat64(0,!0);null!==this.jpegLayer&&this.jpegLayer.putData(0,t,n)}else if(512==(65535&e[0]))null!==this.yuvLayer&&this.yuvLayer.putData(2,t,0);else if(1112954201===e[0]){var i=this.getUint64(new DataView(t,8,8),0);null!==this.yuvLayer&&this.yuvLayer.putData(1,t.slice(4),i)}else if(827611205===e[0]){var r=this.getUint64(new DataView(t,12,8),0);if(200===e[1])this.putExtData2(e[1],t.slice(8),r);else if(201===e[1]){var o=this.parseSnap(t.slice(8));o&&this.subscribeCallback(Et.FACE_SNAP,o)}}else if(844388421===e[0]){var a=this.getUint64(new DataView(t,8,8),0),s=t.slice(16);if(kt.FACE_SNAP_ATTR===e[1])this.subscribeCallback(Et.FACE_RECOGNITION,this.parseFaceRecognition(s));else if(kt.BODY_SNAP_ATTR===e[1])this.subscribeCallback(Et.BODY_RECOGNITION,this.parseBodyRecognition(s));else if(kt.FACE_COMPARE===e[1])this.subscribeCallback(Et.FACE_COMPARE,this.parseFaceComparison(s));else if(!this.putExtData2(e[1],s,a))return;if(kt.ACTION_RECOGNIZE===e[1]){var l=this.parseActions(s);l.length>0&&this.putNotifyData(this.actionRecognitionQueue,Et.ACTION_RECOGNITION,l,a)}}}},{key:"stopView",value:function(){for(var t in this.isShow=!1,this.layers)if(this.layers.hasOwnProperty(t)){var e=this.layers[t];null!==e&&e.stopView()}}},{key:"restoreView",value:function(){for(var t in this.isShow=!0,this.layers)if(this.layers.hasOwnProperty(t)){var e=this.layers[t];null!==e&&e.restoreView()}}},{key:"move",value:function(t,e,n,i){for(var r in this.left=t,this.top=e,this.width=n,this.height=i,this.layers)if(this.layers.hasOwnProperty(r)){var o=this.layers[r];o&&o.move(t,e,n,i)}}},{key:"getImage",value:function(t,e){return null!==this.yuvLayer?this.yuvLayer.getImage(t,e):null!==this.jpegLayer&&this.jpegLayer.getImage(t,e)}},{key:"showError",value:function(t){null!==t&&""!==t?(this.stopView(),null==this.errorElement&&this.createErrorElement(),this.errorTD&&(this.errorTD.innerText=t)):null!=this.errorElement?(this.box.removeChild(this.errorElement),this.errorElement=null,this.errorTD=null,this.restoreView(),this.reload()):this.restoreView()}},{key:"setTrackIdFilter",value:function(t,e){if(this.trackIdFilters[t]=e,St.NONE===t){for(var n in this.layers)if(this.layers.hasOwnProperty(n)){var i=this.layers[n],r=null===i?null:i.getRender();null!==r&&r.setFilter(e)}for(var o in this.trackIdFilters)this.trackIdFilters.hasOwnProperty(o)&&(this.trackIdFilters[o]=e)}else if(this.layers[t]&&this.layers.hasOwnProperty(t)){var a=this.layers[t].getRender();null!==a&&a.setFilter(e)}}},{key:"setExtRenderHandler",value:function(e){for(var n in this.renderHandler=e,this.layers)if(parseInt(n,10)>=t.EXT_COMMAND_BEGIN&&this.layers.hasOwnProperty(n)){var i=this.layers[n],r=null===i?null:i.getRender();null!==r&&r.setHandler(e)}}},{key:"setExtRenderCallback",value:function(t){this.exRenderCallback=t;var e=this.layers[3];if(!e){var n=new yt;if(!(e=this.createExtLayer(40)).setupRender(n))return;this.layers[3]=e,e.move(this.left,this.top,this.width,this.height)}}},{key:"createExtLayer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:at.DEFAULT_DURATION,e=new at(this.box,"vat-exrender",t);return this.syncs.push(e),e.setSync(!0),e}},{key:"createErrorElement",value:function(){this.errorElement=document.createElement("div"),this.errorElement.classList.add("vat-error");var t=document.createElement("table"),e=document.createElement("tr"),n=document.createElement("td");e.appendChild(n),t.appendChild(e),this.errorElement.appendChild(t),this.errorTD=n,this.box.appendChild(this.errorElement)}},{key:"reload",value:function(){this.move(this.left,this.top,this.width,this.height)}},{key:"getUint64",value:function(t,e){return t.getUint32(e,!0)+4294967296*(16777215&t.getUint32(e+4,!0))}},{key:"parseSnap",value:function(t){var e=new DataView(t,0,56),n=e.getFloat32(0,!0),i=this.getUint64(e,4),r=this.getUint64(e,12),o=e.getFloat32(28,!0),a=e.getUint32(32,!0),s=e.getUint32(36,!0),l=e.getUint32(40,!0),c=e.getUint32(44,!0),u=0,h=48;n>=.2&&(u=e.getUint32(48,!0),h+=4);var d=0;n>=.3&&(d=e.getUint32(h,!0),h+=4);var f={id:r,time:i,score:o,x:a,y:s,w:l,h:c,trackId:u,image:this.imageCache.getUrl(t.slice(h)),channel:d,alive:!0};return setTimeout((function(){URL.revokeObjectURL(f.image),f.alive=!1}),6e3),f}},{key:"sync",value:function(t,e,n){if(this.exRenderCallback){var i=this.layers[3];if(i){var r=i.getCtx();r&&this.exRenderCallback(t,r,e,n)}}}},{key:"putNotifyData",value:function(t,e,n,i){t.push({type:e,data:n,time:i}),t.length>15&&(this.subscribeCallback(t[0].type,t[0].data),t.shift())}},{key:"syncNotifyData",value:function(t,e){for(;t.length>0&&(t.length>50||t[0].time<e||0===e);)this.subscribeCallback(t[0].type,t[0].data),t.shift()}},{key:"parseActions",value:function(t){var e=[],n=new DataView(t),i=n.getUint32(16,!0),r=(t.byteLength-20)/i;if(0===r)return[];for(var o=20;o<t.byteLength;o+=r){var a=n.getUint32(o+16,!0);e.push(a)}return e}},{key:"parseBodyRecognition",value:function(t){var e=new DataView(t),n=this.getUint64(e,4),i=e.getUint32(12,!0),r=e.getUint32(16,!0),o={sex:e.getUint8(24),age:e.getUint8(25),hairStyle:e.getUint8(26),mask:e.getUint8(27),glass:e.getUint8(28),hat:e.getUint8(29),scarf:e.getUint8(30),direct:e.getUint8(31),upperColor:e.getUint8(32),bottomColor:e.getUint8(33),upperStyle:e.getUint8(34),bottomStyle:e.getUint8(35),phone:e.getUint8(36),umbrella:e.getUint8(37),handbag:e.getUint8(38),backpack:e.getUint8(39)};return{time:n,image:this.imageCache.getUrl(t.slice(t.byteLength-r)),fullImage:"",channel:i,attr:o}}},{key:"parseFaceRecognition",value:function(t){var e=new DataView(t),n=e.getFloat32(0,!0),i=this.getUint64(e,4),r=e.getUint32(12,!0),o=e.getUint32(16,!0),a=e.getUint32(20,!0),s=e.getUint8(24),l=e.getUint8(25),c=e.getUint8(26),u=e.getUint8(27),h=0,d=0;return n>=.3&&(h=e.getUint32(32,!0),d=e.getFloat32(52,!0)),{time:i,image:this.imageCache.getUrl(t.slice(t.byteLength-o-a)),fullImage:"",channel:r,attr:{age:s,sex:l,mask:c,glass:u},imageId:h,score:d}}},{key:"parseFaceComparison",value:function(t){var e=new DataView(t),n=e.getUint32(4,!0),i=this.getUint64(e,8),r=e.getUint32(16,!0);return{channel:n,snapTime:i,attr:{age:e.getUint8(20),sex:e.getUint8(21),mask:e.getUint8(22),glass:e.getUint8(23)},snapScore:e.getFloat32(24,!0),compareScore:e.getFloat32(28,!0),faceGroupId:e.getUint32(32,!0),faceGroupType:e.getUint32(36,!0),faceId:this.getUint64(e,40),compareTime:this.getUint64(e,48),faceSnapId:this.getUint64(e,56),snapImage:this.imageCache.getUrl(t.slice(68,68+r)),faceImage:this.imageCache.getUrl(t.slice(68+r))}}}],[{key:"chooseLayerType",value:function(t){if(!_t.isSupportWebGL())return St.JPEG_VIDEO_LAYER;var e=St.YUV_VIDEO_LAYER;return navigator.userAgent.indexOf("MSIE")>-1&&navigator.userAgent.indexOf("compatible")>-1&&(e=St.JPEG_VIDEO_LAYER),(window.ActiveXObject||"ActiveXObject"in window)&&(e=St.JPEG_VIDEO_LAYER),t>=16&&(e=St.JPEG_VIDEO_LAYER),e}}]),t}();Tt.EXT_COMMAND_BEGIN=1e4,function(t){t[t.OK=0]="OK",t[t.UNKNOWN_ERROR=-1]="UNKNOWN_ERROR",t[t.INVALID_STATE=-2]="INVALID_STATE",t[t.NOT_LOGIN=-3]="NOT_LOGIN",t[t.INVALID_PARAM=-4]="INVALID_PARAM",t[t.NETWORK_ERROR=-5]="NETWORK_ERROR",t[t.WINDOW_ID_CONFLICT=-6]="WINDOW_ID_CONFLICT",t[t.NO_MORE_FREE_WINDOW=-7]="NO_MORE_FREE_WINDOW",t[t.NO_TASK=-8]="NO_TASK",t[t.UNSUPPORT_OPERATION=-9]="UNSUPPORT_OPERATION",t[t.CWALKSDK_ERR_NOT_SUPPORT=-20001]="CWALKSDK_ERR_NOT_SUPPORT",t[t.CWALKSDK_ERR_NOT_IMPL=-20002]="CWALKSDK_ERR_NOT_IMPL",t[t.CWALKSDK_ERR_NOT_INIT=-20003]="CWALKSDK_ERR_NOT_INIT",t[t.CWALKSDK_ERR_NOT_ENOUGH_MEM=-20005]="CWALKSDK_ERR_NOT_ENOUGH_MEM",t[t.CWALKSDK_ERR_NOT_ENOUGH_ID=-20004]="CWALKSDK_ERR_NOT_ENOUGH_ID",t[t.CWALKSDK_ERR_INVALID_ID=-20006]="CWALKSDK_ERR_INVALID_ID",t[t.CWALKSDK_ERR_INVALID_NAME=-20007]="CWALKSDK_ERR_INVALID_NAME",t[t.CWALKSDK_ERR_INVALID_PARARM=-20008]="CWALKSDK_ERR_INVALID_PARARM",t[t.CWALKSDK_FILE_NOFIND=-20009]="CWALKSDK_FILE_NOFIND",t[t.CWALKSDK_ISFINDING=-20010]="CWALKSDK_ISFINDING",t[t.CWALKSDK_NOMOREFILE=-20011]="CWALKSDK_NOMOREFILE",t[t.CWALKSDK_FILE_EXCEPTION=-20012]="CWALKSDK_FILE_EXCEPTION",t[t.CWALKSDK_ERR_URLPATH=-20013]="CWALKSDK_ERR_URLPATH",t[t.CWALKSDK_ERR_EXISTKEY=-20014]="CWALKSDK_ERR_EXISTKEY",t[t.CWALKSDK_ERR_NO_OBJECT=-20015]="CWALKSDK_ERR_NO_OBJECT",t[t.CWALKSDK_ERR_OSD_SETTEXT=-20016]="CWALKSDK_ERR_OSD_SETTEXT",t[t.CWALKSDK_ERR_OSD_TYPE=-20017]="CWALKSDK_ERR_OSD_TYPE",t[t.CWALKSDK_ERR_OSD_SHOW=-20018]="CWALKSDK_ERR_OSD_SHOW",t[t.CWALKSDK_ERR_DEFAULTPORT=-20019]="CWALKSDK_ERR_DEFAULTPORT",t[t.CWALKSDK_ERROR_LOGIN=-20020]="CWALKSDK_ERROR_LOGIN",t[t.CWALKSDK_NOMOREDATA=-20021]="CWALKSDK_NOMOREDATA",t[t.CWALKSDK_ERR_SET_PASSWORD=-20022]="CWALKSDK_ERR_SET_PASSWORD",t[t.CWALKSDK_ERR_NO_KEY=-20023]="CWALKSDK_ERR_NO_KEY",t[t.CWALKSDK_ERR_NO_VALUE=-20024]="CWALKSDK_ERR_NO_VALUE",t[t.CWALKSDK_ERR_FUNCTION_NOT_IMPLEMENTED=-20025]="CWALKSDK_ERR_FUNCTION_NOT_IMPLEMENTED",t[t.CWALKSDK_ERR_CREATE_HANDLE=-20026]="CWALKSDK_ERR_CREATE_HANDLE",t[t.CWALKSDK_ERR_EVENT_RESUBSCRIBE=-20027]="CWALKSDK_ERR_EVENT_RESUBSCRIBE",t[t.CWALKSDK_ERR_END_OF_FILE=-20028]="CWALKSDK_ERR_END_OF_FILE",t[t.CWALKSDK_ERR_NO_HANDLE=-20029]="CWALKSDK_ERR_NO_HANDLE",t[t.CWALKSDK_ERR_NULL_OBJECT=-20030]="CWALKSDK_ERR_NULL_OBJECT",t[t.CWALKSDK_ERR_FIRST_NOT_IFRAME=-20031]="CWALKSDK_ERR_FIRST_NOT_IFRAME",t[t.CWALKSDK_ERR_UNSUPPORTED_PLATFORM=-20032]="CWALKSDK_ERR_UNSUPPORTED_PLATFORM",t[t.CWALKSDK_ERR_BUFFER_TOO_SMALL=-20033]="CWALKSDK_ERR_BUFFER_TOO_SMALL",t[t.CWALKSDK_ERR_UNKNOWN_SERVICE=-20034]="CWALKSDK_ERR_UNKNOWN_SERVICE",t[t.CWALKSDK_ERR_NO_PRIVILEGE=-20035]="CWALKSDK_ERR_NO_PRIVILEGE",t[t.CWALKSDK_ERR_VIEW_NUM=-20036]="CWALKSDK_ERR_VIEW_NUM",t[t.CWALKSDK_ERR_DISK_FULL=-20037]="CWALKSDK_ERR_DISK_FULL",t[t.CWALKSDK_ERR_INVALID_MEM=-20038]="CWALKSDK_ERR_INVALID_MEM",t[t.CWALKSDK_ERR_ENCODER_OPEN=-20039]="CWALKSDK_ERR_ENCODER_OPEN",t[t.CWALKSDK_ERR_SP_QUERY_SEGMENT=-20040]="CWALKSDK_ERR_SP_QUERY_SEGMENT",t[t.CWALKSDK_ERR_NO_PVM_ADD=-20041]="CWALKSDK_ERR_NO_PVM_ADD",t[t.CWALKSDK_ERR_ES_UNAVAILABLE=-20042]="CWALKSDK_ERR_ES_UNAVAILABLE",t[t.CWALKSDK_ERR_AVCF_ERROR=-20043]="CWALKSDK_ERR_AVCF_ERROR",t[t.CWALKSDK_ERR_PLAY_HD=-201001]="CWALKSDK_ERR_PLAY_HD",t[t.CWALKSDK_ERR_PLAY_NEED_SLICES=-201002]="CWALKSDK_ERR_PLAY_NEED_SLICES",t[t.CWALKSDK_ERR_PLAY_FULL_SILCES=-201003]="CWALKSDK_ERR_PLAY_FULL_SILCES",t[t.CWALKSDK_ERR_PLAY_INPUT_SLICES_CB=-20004]="CWALKSDK_ERR_PLAY_INPUT_SLICES_CB",t[t.CWALKSDK_ERR_PLAY_INVALID_CMD=-201005]="CWALKSDK_ERR_PLAY_INVALID_CMD",t[t.CWALKSDK_ERR_PLAY_INVALID_CMD_MATCH=-20007]="CWALKSDK_ERR_PLAY_INVALID_CMD_MATCH",t[t.CWALKSDK_ERR_PLAY_INVALID_SPEED=-20006]="CWALKSDK_ERR_PLAY_INVALID_SPEED",t[t.CWALKSDK_ERR_PLAY_INVALID_CB_MODE=-20007]="CWALKSDK_ERR_PLAY_INVALID_CB_MODE",t[t.CWALKSDK_ERR_PLAY_IS_RELEASED=-201008]="CWALKSDK_ERR_PLAY_IS_RELEASED",t[t.CWALKSDK_ERR_PLAY_THREAD_STOP=-201009]="CWALKSDK_ERR_PLAY_THREAD_STOP",t[t.CWALKSDK_ERR_PLAY_REOPEN=-201010]="CWALKSDK_ERR_PLAY_REOPEN",t[t.CWALKSDK_ERR_PLAY_OPEN_AUDIO=-201011]="CWALKSDK_ERR_PLAY_OPEN_AUDIO",t[t.CWALKSDK_ERR_PLAY_START_AUDIO=-201012]="CWALKSDK_ERR_PLAY_START_AUDIO",t[t.CWALKSDK_ERR_PLAY_STOP_AUDIO=-201013]="CWALKSDK_ERR_PLAY_STOP_AUDIO",t[t.CWALKSDK_ERR_PLAY_VIDEO_INFO=-201014]="CWALKSDK_ERR_PLAY_VIDEO_INFO",t[t.CWALKSDK_WARNING_PLAY_MAX_LOCALCACH=-20015]="CWALKSDK_WARNING_PLAY_MAX_LOCALCACH",t[t.CWALKSDK_WARNING_PLAY_MIN_LOCALCACH=-20016]="CWALKSDK_WARNING_PLAY_MIN_LOCALCACH",t[t.CWALKSDK_ERR_PLAY_PAUSE_CANNOT_SPEED=-20017]="CWALKSDK_ERR_PLAY_PAUSE_CANNOT_SPEED",t[t.CWALKSDK_ERR_LOG_UNKNOWTYPE=-202001]="CWALKSDK_ERR_LOG_UNKNOWTYPE",t[t.CWALKSDK_ERR_LOG_DATA=-202002]="CWALKSDK_ERR_LOG_DATA",t[t.DCS_ERR_SS_NOT_AVAILABLE=-101001]="DCS_ERR_SS_NOT_AVAILABLE",t[t.DCS_ERR_FS_NOT_AVAILABLE=-101002]="DCS_ERR_FS_NOT_AVAILABLE",t[t.DCS_ERR_PAU_NOT_AVAILABLE=-101003]="DCS_ERR_PAU_NOT_AVAILABLE",t[t.DCS_ERR_DEVICE_NOT_ATTACHE_PAU=-101004]="DCS_ERR_DEVICE_NOT_ATTACHE_PAU",t[t.DCS_ERR_USER_STREAM_OVERRAGE=-101005]="DCS_ERR_USER_STREAM_OVERRAGE",t[t.DCS_ERR_PLAT_STREAM_OVERRAGE=-101006]="DCS_ERR_PLAT_STREAM_OVERRAGE",t[t.DCS_ERR_INVALID_JOSN=-101007]="DCS_ERR_INVALID_JOSN",t[t.DCS_ERR_PAU_SEND_FAILED=-101008]="DCS_ERR_PAU_SEND_FAILED",t[t.DCS_ERR_MONITOR_LOCKED=-101030]="DCS_ERR_MONITOR_LOCKED",t[t.DCS_ERR_MONITOR_CANNOT_CONTROL=-101031]="DCS_ERR_MONITOR_CANNOT_CONTROL",t[t.DCS_ERR_SESSION_NOT_FOUND=-102001]="DCS_ERR_SESSION_NOT_FOUND",t[t.DCS_ERR_FS_STREAM_BROKEN=-102002]="DCS_ERR_FS_STREAM_BROKEN",t[t.DCS_ERR_NOT_LOCAL_MONITOR=-102003]="DCS_ERR_NOT_LOCAL_MONITOR",t[t.DCS_INF_MONITOR_LOCKED=-102004]="DCS_INF_MONITOR_LOCKED",t[t.DCS_ERR_CHANNLE_DISABLED=-103001]="DCS_ERR_CHANNLE_DISABLED",t[t.DCS_ERR_PAU_DISABLED=-103002]="DCS_ERR_PAU_DISABLED",t[t.DCS_ERR_LOG_NOT_AVAILABLE=-103003]="DCS_ERR_LOG_NOT_AVAILABLE",t[t.DCS_ERR_PAU_NOT_OPEN=-103004]="DCS_ERR_PAU_NOT_OPEN",t[t.DCS_ERR_DCS_NOT_OPEN=-103005]="DCS_ERR_DCS_NOT_OPEN",t[t.DCS_ERR_LOCALDB_UNINIT=-103006]="DCS_ERR_LOCALDB_UNINIT",t[t.DCS_ERR_LOCALDB_EXCEPTION=-103007]="DCS_ERR_LOCALDB_EXCEPTION",t[t.DCS_ERR_CHANNEL_RECORD_EXITS=-103008]="DCS_ERR_CHANNEL_RECORD_EXITS",t[t.DCS_ERR_DCS_NOT_AVAILABLE=-103009]="DCS_ERR_DCS_NOT_AVAILABLE",t[t.DCS_ERR_AUDIOTALK_IN_USE=-103010]="DCS_ERR_AUDIOTALK_IN_USE",t[t.DCS_ERR_DEVICE_NOT_EXIST=-103011]="DCS_ERR_DEVICE_NOT_EXIST",t[t.DCS_ERR_REQUEST_PATH_EXISTED=-103012]="DCS_ERR_REQUEST_PATH_EXISTED",t[t.DCS_ERR_ROFS3S_NOT_AVAILABLE=-103013]="DCS_ERR_ROFS3S_NOT_AVAILABLE",t[t.DCS_ERR_PAU_DISCONNECT=-103014]="DCS_ERR_PAU_DISCONNECT",t[t.DCS_ERR_RESOURCESHIELD=-103015]="DCS_ERR_RESOURCESHIELD",t[t.DCS_ERR_SCAN_EXIST=-103016]="DCS_ERR_SCAN_EXIST",t[t.DCS_ERR_MACRO_EXIST=-103017]="DCS_ERR_MACRO_EXIST",t[t.DCS_ERR_ORDER_CALL=-103018]="DCS_ERR_ORDER_CALL",t[t.DCS_ERR_USER_DISABLED=-103019]="DCS_ERR_USER_DISABLED",t[t.DCS_ERR_RECORD_REUSE=-103020]="DCS_ERR_RECORD_REUSE"}(At||(At={}));var Rt=function(){function t(e){o(this,t),this.box=e,this.isShow=!1,this.websocket=null,this.panel=null,this.hide()}return l(t,[{key:"setWebsocket",value:function(t){this.websocket=t}},{key:"ptzControl",value:function(t,e){if(null===this.websocket)return At.INVALID_STATE;var n=JSON.stringify({cmd:"req_ptz_ctl",ctl:t,value:e});return this.websocket&&this.websocket.send(n),At.OK}},{key:"ptzControl3D",value:function(t,e,n,i,r){if(null===this.websocket)return At.INVALID_STATE;if(t<0||e<0||n<0||i<0||r<0)return At.INVALID_PARAM;if(e>1||n>1||i>1||r>1)return At.INVALID_PARAM;var o=JSON.stringify({cmd:"req_ptz_ctl3D",direct:t,x:e,y:n,w:i,h:r});return this.websocket&&this.websocket.send(o),At.OK}},{key:"toggle",value:function(){this.isShow?this.hide():this.show()}},{key:"show",value:function(){this.isShow=!0,this.panel||this.initElement(),this.panel&&(this.panel.style.display="block")}},{key:"hide",value:function(){this.isShow=!1,this.panel&&(this.panel.style.display="none")}},{key:"initElement",value:function(){this.panel=document.createElement("div"),this.panel.classList.add("vat-ptz-panel"),this.box.appendChild(this.panel)}}]),t}(),Dt=function(){function t(){o(this,t),this.audioCtx=null,this.gainNode=null,this.timerId=0,this.startTime=0}return l(t,[{key:"open",value:function(){this.close();var t=window,e=t.AudioContext||t.webkitAudioContext;return!!e&&(this.audioCtx=new e,!!this.audioCtx&&(this.gainNode=this.audioCtx.createGain(),this.gainNode.gain.value=1,this.gainNode.connect(this.audioCtx.destination),this.startTime=this.audioCtx.currentTime,this.audioCtx.resume(),!0))}},{key:"close",value:function(){0!==this.timerId&&(clearInterval(this.timerId),this.timerId=0),null!==this.audioCtx&&this.audioCtx.close(),this.audioCtx=null,this.gainNode=null,this.startTime=0}},{key:"play",value:function(t){if(null!==this.audioCtx&&null!==this.gainNode){for(var e=new DataView(t,12),n=(t.byteLength-12)/2,i=this.audioCtx.createBufferSource(),r=this.audioCtx.createBuffer(1,n,8e3),o=r.getChannelData(0),a=0;a<n;a++)o[a]=e.getInt16(2*a,!0)/32768;i.buffer=r,i.connect(this.gainNode),i.start(0),this.startTime+=r.duration}}},{key:"flush",value:function(){}}]),t}();function Ot(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Lt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Lt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var It,Pt=function t(){o(this,t)};Pt.SNAPSHOT=1,Pt.ROI_RECT=2,Pt.ROI_POLYGON=4,Pt.MAXIMIZE=8,Pt.ZOOM=16,Pt.VOLUME=32,Pt.STOP=64,Pt.TALK=128,Pt.RECORD=256,Pt.ALL=65535,Pt.DEFAULT=Pt.SNAPSHOT|Pt.ROI_RECT|Pt.ROI_POLYGON|Pt.MAXIMIZE|Pt.STOP,function(t){t[t.CANVAS=0]="CANVAS",t[t.IMAGE=1]="IMAGE",t[t.YUV=2]="YUV"}(It||(It={}));var Mt=function(){function t(e,n,i){o(this,t),this.wsChannel=new Ct,this.pcmPlayer=new Dt,this.id="",this.originIndex=e,this.index=e,this.span=1,this.config=i,this.httpPort=0,this.wsPort=0,this.dragLayer=null,this.status=0,this.width=0,this.height=0,this.urls=[],this.name="",this.isShowMain=!1,this.mainUrlIndex=0,this.toolBar=null,this.isDrawingROI=!1,this.drivingClosed=!0,this.roiLayer=null,this.streamWidth=0,this.streamHeight=0,this.recordIcon=null,this.isAudio=!1,this.isTalk=!1,this.toolButtons={},this.hasAudioInput=!1,this.hasAudioOutput=!1,this.delay=0,this.volume=100,this.heartTimer=0,this.streamMode=wt.AUTO,this.extStream=new G,this.element=document.createElement("div"),this.element.setAttribute("class","vatwin"),this.element.setAttribute("windex",""+e),n.appendChild(this.element),this.ptzPanel=new Rt(this.element);var r=Tt.chooseLayerType(e);r===St.YUV_VIDEO_LAYER?this.renderType=It.YUV:this.renderType=It.CANVAS,this.config.proxy&&this.config.proxy.length>6&&(r=St.JPEG_VIDEO_LAYER,this.renderType=It.CANVAS),this.wsChannel.setFormat(It.YUV===this.renderType?gt.YUV:gt.JPEG);var a=this;this.layerManager=new Tt(this.element,(function(t,e){a.config.onExtData(a.id,t,e)})),this.layerManager.initLayer(r),this.titleBar=new F(this.element,this.config.titleBar),this.titleBar.clear(),this.initToolbar(),this.config.dragWindow&&this.createDragLayer(),this.caculateLayerShow()}return l(t,[{key:"handleChannelOpened",value:function(t,e){this.closeChannel(!1),this.initChannel(t,e)}},{key:"openExtStream",value:function(t,e,n){this.extStream.setUrl(t,e,n)}},{key:"closeExtStream",value:function(){this.extStream.setUrl("","","")}},{key:"ptzControl",value:function(t,e){return this.ptzPanel.ptzControl(t,e)}},{key:"ptzControl3D",value:function(t,e,n,i,r){return this.ptzPanel.ptzControl3D(t,e,n,i,r)}},{key:"openLiveStream",value:function(t){return null!==t.subUrl&&""!==t.subUrl&&void 0!==t.subUrl||(t.subUrl=t.url),this.id=t.id||"",this.name=t.name||"",this.titleBar.setName(this.name),(t.extUrl||t.faceSnapUrl||t.faceRectUrl)&&this.extStream.setUrl(t.faceRectUrl,t.faceSnapUrl,t.extUrl),2===this.urls.length&&this.urls[this.mainUrlIndex]===t.url&&this.urls[0===this.mainUrlIndex?1:0]===t.subUrl&&this.hasChannel()||(this.stopROI(),this.setROI([]),2===this.urls.length&&(this.urls[0]===t.url&&this.urls[1]===t.subUrl||this.urls[1]===t.url&&this.urls[0]===t.subUrl)||!0!==t.soft&&this.layerManager.stopView(),this.isShowMain?(this.mainUrlIndex=0,this.urls=[t.url,t.subUrl||""]):(this.mainUrlIndex=1,this.urls=[t.subUrl||"",t.url]),this.hasChannel()?this.wsChannel.switchUrl(this.urls[0],this.urls[1],t.soft):this.initChannel(this.wsPort,this.httpPort)),At.OK}},{key:"restoreStream",value:function(){2===this.urls.length&&(this.isShowMain&&1===this.mainUrlIndex?(this.urls.reverse(),this.mainUrlIndex=0):this.isShowMain||0!==this.mainUrlIndex||(this.urls.reverse(),this.mainUrlIndex=1),this.initChannel(this.wsPort,this.httpPort))}},{key:"closeStream",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!1,n=this.id;this.hasChannel()&&(e=!0,this.drivingClosed=t),t&&(this.delay=0,this.streamMode=wt.AUTO,this.id=""),this.closeChannel(this.drivingClosed),this.extStream.stop(),e&&this.config.onClose(this.index,n)}},{key:"showMain",value:function(t){if(this.hasChannel()&&this.isShowMain!==t&&this.urls.length>1){var e=t?this.mainUrlIndex:0===this.mainUrlIndex?1:0;this.wsChannel.switchIndex(e)}this.isShowMain=t}},{key:"fillWindow",value:function(t){}},{key:"hasChannel",value:function(){return this.wsChannel.hasChannel()}},{key:"isDrivingClosed",value:function(){return this.drivingClosed}},{key:"adjustSize",value:function(t,e,n,i,r){r<=0&&(r=this.span),this.width=t*r,this.height=e*r,r>1&&(this.width+=(r-1)*i,this.height+=(r-1)*n),this.element.style.width="".concat(this.width,"px"),this.element.style.height="".concat(this.height,"px"),this.updateChildSize(),this.changeViewport()}},{key:"setSpan",value:function(t){this.span=t}},{key:"setIndex",value:function(t){this.index=t}},{key:"setROI",value:function(t){null===this.roiLayer&&(this.roiLayer=this.createROILayer()),null!==this.roiLayer&&this.roiLayer.setROI(t)}},{key:"getImage",value:function(){var t=document.createElement("canvas");return this.layerManager.getImage(t,!0),t.toDataURL("image/jpeg")}},{key:"snapshot",value:function(){this.reqSnapshot()}},{key:"startROI",value:function(t,e){return(t===H.DRAW_RECT||t===H.DRAW_POLYGON)&&(null==this.roiLayer?this.createROILayer():this.roiLayer.stop(),this.roiLayer&&this.roiLayer.start(t,e),this.caculateLayerShow(),!0)}},{key:"stopROI",value:function(){null!=this.roiLayer&&this.roiLayer.stop(),this.caculateLayerShow()}},{key:"saveROI",value:function(){return null!=this.roiLayer&&this.roiLayer.saveQuit()}},{key:"getStreamWidth",value:function(){return this.streamWidth}},{key:"getStreamHeight",value:function(){return this.streamHeight}},{key:"startRecord",value:function(t,e){return this.wsChannel.startRecord(t,e)}},{key:"stopRecord",value:function(){return this.wsChannel.stopRecord()}},{key:"switchAudio",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isAudio=t,this.isAudio?this.pcmPlayer.open():this.pcmPlayer.close(),this.toggleToolButton("volume",t),e&&this.wsChannel.switchAudio(t)}},{key:"switchTalk",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isTalk=t,this.toggleToolButton("talk",t),e&&this.wsChannel.switchTalk(t)}},{key:"setStreamMode",value:function(t){this.streamMode=t,this.wsChannel.setMode(t)}},{key:"setDelay",value:function(t){this.delay=t,this.wsChannel.setDelay(t)}},{key:"setVolume",value:function(t){this.volume=t,this.wsChannel.setVolume(t)}},{key:"setFormat",value:function(t){var e=gt.JPEG;if("jpeg"===t&&this.renderType!==It.CANVAS)this.layerManager.removeLayer(St.YUV_VIDEO_LAYER),this.layerManager.initLayer(St.JPEG_VIDEO_LAYER),this.renderType=It.CANVAS,e=gt.JPEG;else{if("yuv"!==t&&"yuv420"!==t||this.renderType===It.YUV)return!0;this.layerManager.removeLayer(St.JPEG_VIDEO_LAYER),this.layerManager.initLayer(St.YUV_VIDEO_LAYER),this.renderType=It.YUV,e=gt.YUV}return this.layerManager.move(0,this.titleBar.height(),this.width,this.height-this.titleBar.height()),this.wsChannel.setFormat(e),!0}},{key:"setFilterLoss",value:function(t){this.wsChannel.setFilterLoss(t)}},{key:"setTrackIdFilter",value:function(t,e){this.layerManager.setTrackIdFilter(t,e)}},{key:"setExtRenderHandler",value:function(t){this.layerManager.setExtRenderHandler(t)}},{key:"setExtRenderCallback",value:function(t){this.layerManager.setExtRenderCallback(t)}},{key:"closeChannel",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.wsChannel.close(),this.status=-1,this.titleBar.clear(),this.layerManager.showError(""),this.layerManager.stopView(),this.ptzPanel.hide(),this.showRecordIcon(!1),t&&(this.stopROI(),null!=this.roiLayer&&(this.roiLayer.destroy(),this.roiLayer=null)),this.updateChildSize(),this.caculateLayerShow(),this.streamWidth=0,this.streamHeight=0,0!==this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=0),this.switchAudio(!1,!1),this.switchTalk(!1,!1)}},{key:"initChannel",value:function(t,e){var n=this,i=this;this.wsPort=t,this.httpPort=e,i.status=0,i.titleBar.setState(F.STATE_CLOSE),i.titleBar.setName(this.name),i.titleBar.autoShow(),i.layerManager.showError(""),this.wsChannel.init(t,bt.LIVE_CHANNEL,this.config.proxy),this.wsChannel.onConnected=function(){i.titleBar.setState(F.STATE_WAITTING),i.isAudio&&i.switchAudio(!0),i.isTalk&&i.switchTalk(!0),i.setDelay(n.delay),i.setStreamMode(i.streamMode),n.changeViewport(),n.wsChannel.switchUrl(n.urls[0],n.urls[1]),n.ptzPanel.setWebsocket(n.wsChannel.getWebsocket())},this.wsChannel.onDisconnected=function(){i.titleBar.setState(F.STATE_CLOSE)},this.wsChannel.onFrame=function(t,e,i){t!==mt.PCM?n.layerManager.putFrame(t,e,i):n.pcmPlayer.play(e)},this.wsChannel.onCommand=function(t,e){Ct.SB_CMD_SPEED===t?n.titleBar.setSpeed(e.speed):Ct.SB_CMD_STREAM_STATUS===t?n.onStreamStatus(e.status,e.errorCode,e.secondErrorCode):Ct.SB_CMD_RES_SNAPSHOT===t?null!==i.config.onSnapshot&&i.config.onSnapshot(i.id,e.data):Ct.SB_CMD_STREAM_SIZE===t?(i.streamWidth=e.width,i.streamHeight=e.height):Ct.SB_CMD_RECORD_STATE===t?-1===e.state?(i.showRecordIcon(!1),i.config.onRecord&&i.config.onRecord(i.id,"failed",""+e.param)):0===e.state?(i.showRecordIcon(!0),i.config.onRecord&&i.config.onRecord(i.id,"start",""+e.param)):1===e.state&&(i.showRecordIcon(!1),i.config.onRecord&&i.config.onRecord(i.id,"stop",""+e.param)):Ct.SB_CMD_AUDIO_STATE===t?(i.hasAudioInput=e.ainput,i.hasAudioOutput=e.aoutput,!e.ainputOpen&&i.isTalk&&i.switchTalk(!1,!1),!e.aoutputOpen&&i.isAudio&&i.switchAudio(!1,!1),i.config.onAudioState(i.id,e.ainput,e.aoutput,e.ainputOpen,e.aoutputOpen)):Ct.SB_CMD_INFO===t&&(i.hasAudioInput=e.ainput,i.hasAudioOutput=e.aoutput,i.isAudio&&i.switchAudio(!1),i.isTalk&&i.switchTalk(!1),i.config.onAudioState(i.id,e.ainput,e.aoutput,!1,!1))},this.updateChildSize(),this.caculateLayerShow()}},{key:"onStreamStatus",value:function(t,e,n){2===t?(this.titleBar.setState(F.STATE_RUNNING),this.layerManager.showError(""),null!==this.config.onRunning&&this.config.onRunning()):4===t?this.layerManager.showError($.STREAM_NO_DATA):5===t?8===e&&this.layerManager.showError($.STREAM_CONCURRENCY_LIMIT):(1===t?this.titleBar.setState(F.STATE_WAITTING):this.titleBar.setState(F.STATE_CLOSE),-1===e?this.layerManager.showError($.STREAM_CONNECT_FAILED):-2===e?this.layerManager.showError($.STREAM_NOTFOUND):-3===e?this.layerManager.showError($.STREAM_AUTH_FAILED):-4===e?this.layerManager.showError($.STREAM_UNKNOWN_ERROR):-5===e?this.layerManager.showError($.STREAM_PROTOCOL_ERROR):-6===e?this.layerManager.showError($.STREAM_DISCONNECTED):8===e?this.layerManager.showError($.USER_CONCURRENCY_LIMIT):-100===e?this.layerManager.showError($.STREAM_UNSUPPORTED):-101===e&&(-101005===n?this.layerManager.showError($.USER_CONCURRENCY_LIMIT):-351===n||-352===n||-353===n?this.layerManager.showError($.STREAM_AUTHORIZE_LIMIT):this.layerManager.showError($.STREAM_OPEN_FAILED))),this.config.onStreamStatus(this.id,t,e,n)}},{key:"initToolbar",value:function(){var t=this;if(null!=this.toolBar&&this.element.removeChild(this.toolBar),this.config.toolBar){this.toolBar=document.createElement("div"),this.toolBar.classList.add("vat-tool"),this.element.appendChild(this.toolBar);var e,n=Ot(this.config.toolButtons);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("volume"===i){var r=this.createToolButton("volume-off","打开声音"),o=this.createToolButton("volume-on","关闭声音");o.style.display="none",r.onclick=function(){t.switchAudio(!0)},o.onclick=function(){t.switchAudio(!1)}}else"snap"===i?this.createToolButton("snapshot","抓图").onclick=function(){t.reqSnapshot()}:"roi-rect"===i?this.createToolButton("roi-rect","ROI矩形绘图").onclick=function(){t.startROI(H.DRAW_RECT,null)}:"roi-polygon"===i?this.createToolButton("roi-polygon","ROI多点绘图").onclick=function(){t.startROI(H.DRAW_POLYGON,null)}:"maximize"===i?this.createToolButton("maximize","显示/取消最大化").onclick=function(){t.config.onZoom()}:"stop"===i?this.createToolButton("stop","停止").onclick=function(){t.closeStream()}:"ptz"===i&&(this.createToolButton("ptz","云台控制").onclick=function(){t.ptzPanel.toggle()})}}catch(t){n.e(t)}finally{n.f()}}}},{key:"showToolBar",value:function(t){null!=this.toolBar&&(this.toolBar.style.display=t?"":"none")}},{key:"showDragLayer",value:function(t){null!=this.dragLayer&&(this.dragLayer.style.display=t?"":"none")}},{key:"createDragLayer",value:function(){var e=this;null==e.dragLayer&&(this.dragLayer=document.createElement("div"),this.dragLayer.setAttribute("draggable","true"),this.dragLayer.classList.add("drag-layer"),this.dragLayer.addEventListener("dragstart",(function(n){if(e.hasChannel()&&!e.isDrawingROI){var i=document.createElement("canvas");if(i.width=e.width/e.span*.8,i.height=e.height/e.span*.8,i.style.opacity="1",i.width>300||i.height>300){var r=Math.min(300/i.width,300/i.height);i.width=i.width*r,i.height=i.height*r}e.layerManager.getImage(i,!1);var o=i.width/2,a=i.height/2;"function"!=typeof DataTransfer.prototype.setDragImage&&e.dragLayer?(e.dragLayer.style.left="".concat(n.layerX-o,"px"),e.dragLayer.style.top="".concat(n.layerY-a,"px"),e.dragLayer.style.width="".concat(i.width,"px"),e.dragLayer.style.height="".concat(i.height,"px"),e.dragLayer.appendChild(i),setTimeout((function(){e.dragLayer&&(e.dragLayer.style.left="",e.dragLayer.style.top="",e.dragLayer.style.width="",e.dragLayer.style.height="",e.dragLayer.removeChild(i))}),0)):(i.style.position="absolute",i.style.left="-999px",n.dataTransfer&&n.dataTransfer.setDragImage(i,o,a),document.body.appendChild(i),setTimeout((function(){document.body.removeChild(i)}),100)),n.dataTransfer&&n.dataTransfer.setData(t.DRAG_MIME,"vat:"+e.index)}else n.preventDefault()})),this.dragLayer.addEventListener("dragenter",(function(t){t.target.classList.add("drag-hover")})),this.dragLayer.addEventListener("dragleave",(function(t){t.target.classList.remove("drag-hover")})),this.dragLayer.addEventListener("drop",(function(n){n.preventDefault(),n.stopPropagation();var i=n.dataTransfer&&n.dataTransfer.getData(t.DRAG_MIME);return n.target.classList.remove("drag-hover"),i&&i.length>0&&e.config.onDrop&&e.config.onDrop(i,e.index),!1})),this.dragLayer.addEventListener("dragover",(function(t){t.preventDefault()})),e.element.appendChild(this.dragLayer))}},{key:"createToolButton",value:function(t,e){var n=document.createElement("a");n.title=e;var i=U.getSVG(t);return n.appendChild(i),this.toolBar&&(this.toolBar.appendChild(n),this.element.appendChild(this.toolBar),this.toolButtons[t]=n),n}},{key:"createROILayer",value:function(){var t=this;return null!=this.roiLayer?this.roiLayer:(this.roiLayer=new H(this.element,this.config.maxRoi,this.config.roiMenu),null===this.roiLayer?null:(this.roiLayer.onEscape=function(){t.stopROI()},this.roiLayer.onSave=function(e){t.stopROI(),t.config.onRoi&&t.config.onRoi(t.id,e)},this.updateChildSize(),this.roiLayer))}},{key:"updateChildSize",value:function(){this.layerManager.move(0,this.titleBar.height(),this.width,this.height-this.titleBar.height()),null!==this.roiLayer&&this.roiLayer.resize(0,this.titleBar.height(),this.width,this.height-this.titleBar.height()),this.titleBar.adjustWidth(this.width)}},{key:"caculateLayerShow",value:function(){!this.hasChannel()||null!==this.roiLayer&&this.roiLayer.isUserDrawing()?(this.showToolBar(!1),null!==this.roiLayer&&this.roiLayer.isUserDrawing()?this.showDragLayer(!1):this.showDragLayer(!0)):(this.showToolBar(!0),this.showDragLayer(!0))}},{key:"changeViewport",value:function(){this.wsChannel.setViewport(this.width,this.height-this.titleBar.height())}},{key:"reqSnapshot",value:function(){this.wsChannel.snapshot(0)}},{key:"showRecordIcon",value:function(t){t&&null==this.recordIcon&&(this.recordIcon=document.createElement("span"),this.recordIcon.setAttribute("class","vat-record"),this.recordIcon.style.visibility="hidden",this.element.appendChild(this.recordIcon)),null!=this.recordIcon&&(this.recordIcon.style.visibility=t?"visible":"hidden")}},{key:"toggleToolButton",value:function(t,e){var n=t+"-on",i=t+"-off";e?(this.toolButtons[n]&&(this.toolButtons[n].style.display="inline-block"),this.toolButtons[i]&&(this.toolButtons[i].style.display="none")):(this.toolButtons[n]&&(this.toolButtons[n].style.display="none"),this.toolButtons[i]&&(this.toolButtons[i].style.display="inline-block"))}}]),t}();Mt.DRAG_MIME="text",Mt.TITLE_BAR_HEIGHT=16,Mt.SB_CMD_SPEED="speed",Mt.SB_CMD_STREAM_STATUS="stream_status",Mt.SB_CMD_INFO="info",Mt.SB_CMD_STREAM_SIZE="stream_size",Mt.SB_CMD_RECORD_STATE="record_state",Mt.SB_CMD_AUDIO_STATE="audio_state",Mt.CMD_OPEN_CHANNEL="openchannel",Mt.CMD_CLOSE_CHANNEL="closechannel",Mt.CMD_SET_VIEWPORT="set_viewport",Mt.CMD_REQ_SNAPSHOT="req_snapshot",Mt.CMD_START_RECORD="start_record",Mt.CMD_STOP_RECORD="stop_record",Mt.CMD_SWITCH_AUDIO="switch_audio",Mt.CMD_SWITCH_TALK="switch_talk",Mt.CMD_SET_STREAM_MODE="set_mode",Mt.CMD_SET_STREAM_DELAY="set_delay",Mt.CMD_SET_STREAM_FORMAT="set_format",Mt.CMD_SET_VOLUME="set_volume";var Nt=n("eec4"),Ut=function(){function t(){o(this,t),this.oldWidth=0,this.oldHeight=0,this.element=null,this.erd=null,this.callback=function(){return 1}}return l(t,[{key:"watch",value:function(t,e){var n=this;return null===this.element&&(this.callback=e,this.erd=Nt(),this.erd.listenTo(t,(function(t){t.clientWidth===n.oldWidth&&t.clientHeight===n.oldHeight||(n.oldWidth=t.clientWidth,n.oldHeight=t.clientHeight,n.callback(n.oldWidth,n.oldHeight))})),!0)}},{key:"destroy",value:function(){null!==this.erd&&null!==this.element&&this.erd.uninstall(this.element),this.element=null}}]),t}();function Wt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Ft(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ft(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function zt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var jt={fill:!0,dbClick:!0,dragWindow:!0,toolBar:!0,titleBar:0,onSnapshot:null,onRoi:null,maxRoi:10,border:!0,toolButtons:[],filterLoss:!0,onExtData:function(t,e,n){},onStreamStatus:function(t,e,n){},onAudioState:function(t,e,n,i,r){}},Vt={rows:2,cols:2,combines:[],streams:[]},Ht=function(){function t(e,n){var i=this;if(o(this,t),this.resizeWatcher=new Ut,this.proxy=null,this.swapWindow=function(e,n){if(e!==n){var r=i.windows[e],o=i.windows[n];r.setSpan(o.span),o.setSpan(r.span),r.setIndex(n),o.setIndex(e),i.windows[e]=o,i.windows[n]=r;var a=o.element.style.width,s=o.element.style.height;o.element.style.width=r.element.style.width,o.element.style.height=r.element.style.height,r.element.style.width=a,r.element.style.height=s,i.updateLayout(i.layout.rows,i.layout.cols,i.layout.combines),i.config.onWinOp&&i.config.onWinOp(e,r.id,t.WIN_OP_SWAP)}},this.showMaxWindow=function(t){var e=i.findTDElement(t);if(null!=e){for(var n=i.getTDIndex(e);i.tableLayout.firstChild;)i.tableLayout.firstChild.nodeName,i.tableLayout.removeChild(i.tableLayout.firstChild);i.maxWindow=i.windows[n],e.removeChild(i.maxWindow.element);var r=document.createElement("td");r.setAttribute("rowSpan","1"),r.setAttribute("colSpan","1"),r.setAttribute("windex",""+n),r.setAttribute("max","true"),r.classList.add("no-border"),r.style.borderWidth="0px",r.appendChild(i.maxWindow.element),i.config.dbClick&&(r.ondblclick=function(t){t.stopPropagation(),t.preventDefault(),i.showNormalWindow()});var o=document.createElement("tr");o.appendChild(r),i.tableLayout.appendChild(o),i.adjustSize(),i.onMaximize(i.maxWindow.id,n)}},this.onTDClick=function(t){null==i.maxWindow&&i.selectWindow(t.target)},this.selectWindow=function(e){var n=i.findTDElement(e);if(null!=n){if(i.selectedIndex>=0&&i.selectedIndex<i.windowCount){var r=i.findTDElement(i.windows[i.selectedIndex].element);null!=r&&r.classList.remove("selected")}i.windowCount>1&&n.classList.add("selected");var o=i.selectedIndex;i.selectedIndex=i.getTDIndex(n),i.config.onWinOp&&o!==i.selectedIndex&&i.config.onWinOp(i.selectedIndex,i.windows[i.selectedIndex].id,t.WIN_OP_SELECT)}},this.dropWindow=function(e,n){if(0===e.indexOf("vat:")){if(i.config.dragWindow){var r=parseInt(e.substr(4),10);i.swapWindow(r,n)}}else{if(0===e.indexOf("rtsp:")){var o={url:e};i.openLiveStream(n,o)}else if(0===e.indexOf("vat-live:")){var a=t.parseLiveStreamParam(e.substr(9));i.openLiveStream(n,a)}i.selectWindow(i.windows[n].element),i.config.onWinOp&&i.config.onWinOp(n,i.windows[n].id,t.WIN_OP_DROP)}},this.windows=[],this.layout=zt({},Vt),this.config=zt(zt({},jt),n),this.windowCount=0,this.maxWindow=null,this.selectedIndex=0,this.wsPort=0,null==this.config.fill&&(this.config.fill=!0),this.onChannelStatus=function(t,e){},this.onMaximize=function(t,e){return 0},!e)throw new Error("bad parentElement argument: "+e);var r=e;this.tableLayout=document.createElement("table"),this.tableLayout.setAttribute("cellspacing","1"),this.config.border||(this.tableLayout.style.borderWidth="0"),r.appendChild(this.tableLayout);var a=this;this.tableLayout.oncontextmenu=function(t){return!1},this.resizeWatcher.watch(r,(function(t,e){a.adjustSize(t,e)}))}return l(t,[{key:"getWsPort",value:function(){return this.wsPort}},{key:"setWsPort",value:function(t,e){this.wsPort=t,this.proxy=e;var n,i=Wt(this.windows);try{for(i.s();!(n=i.n()).done;)n.value.wsPort=this.wsPort}catch(t){i.e(t)}finally{i.f()}}},{key:"setLayout",value:function(t){if(0===this.wsPort)return At.INVALID_STATE;if("number"!=typeof t.rows||"number"!=typeof t.cols||"object"!==h(t.combines))return At.INVALID_PARAM;if(this.layout=zt(zt({},Vt),t),this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines),void 0===this.layout.streams||null===this.layout.streams)this.layout.streams={};else for(var e=0;e<this.windowCount;e++)this.layout.streams[e]&&this.openLiveStream(e,this.layout.streams[e]);return At.OK}},{key:"getLayout",value:function(){for(var t={},e=0;e<this.windowCount;e++){var n=this.windows[e];n.hasChannel()&&(t[e]={id:n.id,name:n.name,url:n.urls.length>0?n.urls[0]:"",subUrl:n.urls.length>1?n.urls[1]:"",hasChannel:n.hasChannel()})}var i=zt({},this.layout);return i.streams=t,i}},{key:"toggleWindow",value:function(){if(null==this.maxWindow){var t=this._check_index(-1,!0);this.showMaxWindow(this.windows[t].element)}else this.showNormalWindow()}},{key:"openExtStream",value:function(t,e,n,i){this._check_state(),t=this._check_index(t,!0),this.windows[t].openExtStream(e,n,i)}},{key:"closeExtStream",value:function(t){this._check_state(),t=this._check_index(t,!0),this.windows[t].closeExtStream()}},{key:"openLiveStream",value:function(t,e){if(null===e.url||""===e.url)return At.INVALID_PARAM;if(this._check_state(),-2===t)for(var n=0;n<this.windowCount;n++){var i=(this.selectedIndex+n)%this.windowCount;if(!this.windows[i].hasChannel()){t=i,this.selectWindow(this.windows[i].element);break}}if(-2===t)return At.NO_MORE_FREE_WINDOW;if(e.id&&""!==e.id)for(var r=0;r<this.windowCount;r++)if(this.windows[r].id===e.id)return At.WINDOW_ID_CONFLICT;return t=this._check_index(t,!0),this.windows[t].openLiveStream(e),!0===e.realtime&&this.windows[t].setStreamMode(wt.REALTIME),"number"==typeof e.delay&&e.delay>0&&this.windows[t].setDelay(e.delay),t}},{key:"ptzControl",value:function(t,e,n){return this._check_state(),t=this._check_index(t,!1),this.windows[t].ptzControl(e,n)}},{key:"ptzControl3D",value:function(t,e,n,i,r,o){return this._check_state(),t=this._check_index(t,!1),this.windows[t].ptzControl3D(e,n,i,r,o)}},{key:"select",value:function(t){this._check_state(),t=this._check_index(t,!1),this.selectWindow(this.windows[t].element)}},{key:"setROI",value:function(t,e){this._check_state(),t=this._check_index(t,!0),null==e&&(e=[]);var n,i=Wt(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.width<=0||r.height<=0)throw new Error("diagrams width and height must be grater that 0");if(r.type===H.DRAW_RECT){if(null===r.points||2!==r.points.length)throw new Error("diagram rect need two points")}else{if(r.type!==H.DRAW_POLYGON)throw new Error("diagram bad type");if(null===r.points||r.points.length<2)throw new Error("diagram polygon least 3 points")}}}catch(t){i.e(t)}finally{i.f()}this.windows[t].setROI(e)}},{key:"startROI",value:function(t,e,n){return this._check_state(),t=this._check_index(t,!0),this.windows[t].startROI(e,n)}},{key:"stopROI",value:function(t){this._check_state(),t=this._check_index(t,!0),this.windows[t].stopROI()}},{key:"saveROI",value:function(t){return this._check_state(),t=this._check_index(t,!0),this.windows[t].saveROI()}},{key:"closeStream",value:function(t){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].closeStream()}},{key:"closeStreams",value:function(t){if(void 0===t){var e,n=Wt(this.windows);try{for(n.s();!(e=n.n()).done;)e.value.closeStream()}catch(t){n.e(t)}finally{n.f()}}else if(t instanceof Array){var i,r=Wt(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;o>=0&&o<this.windowCount&&this.windows[o].closeStream()}}catch(t){r.e(t)}finally{r.f()}}}},{key:"getStreamInfo",value:function(t){var e={width:0,height:0};return t=this._check_index(t,!0),null!==this.windows[t]&&(e.width=this.windows[t].getStreamWidth(),e.height=this.windows[t].getStreamHeight()),e}},{key:"fillWindow",value:function(t,e){this._check_index(t,!0);for(var n=0;n<this.windowCount;n+=1)-1!==t&&t!==n||!this.windows[n]||this.windows[n].fillWindow(e)}},{key:"showFullscreen",value:function(){var t=this.tableLayout.parentElement;if(t.requestFullscreen)t.requestFullscreen().catch((function(){}));else if(t.mozRequestFullScreen)t.mozRequestFullScreen();else if(t.webkitRequestFullscreen)t.webkitRequestFullscreen();else{if(!t.msRequestFullscreen)return!1;t.msRequestFullscreen()}return!0}},{key:"exitFullscreen",value:function(){var t=document;if(t.exitFullscreen)t.exitFullscreen();else if(t.mozCancelFullScreen)t.mozCancelFullScreen();else if(t.webkitExitFullscreen)t.webkitExitFullscreen();else{if(!t.msExitFullscreen)return!1;t.msExitFullscreen()}}},{key:"snapshot",value:function(t){t=this._check_index(t,!0),this.windows[t].snapshot()}},{key:"getImage",value:function(t){return t=this._check_index(t,!0),this.windows[t].getImage()}},{key:"stop",value:function(){this.resizeWatcher.destroy();var t,e=Wt(this.windows);try{for(e.s();!(t=e.n()).done;)t.value.closeStream()}catch(t){e.e(t)}finally{e.f()}}},{key:"resize",value:function(){this.adjustSize()}},{key:"indexOf",value:function(t){if(null==t)return-1;for(var e=0;e<this.windowCount;e++)if(this.windows[e].id===t)return e;return-1}},{key:"startRecord",value:function(t,e,n){return t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].startRecord(e,n)}},{key:"stopRecord",value:function(t){return t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].stopRecord()}},{key:"switchAudio",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].switchAudio(e)}},{key:"switchTalk",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].switchTalk(e)}},{key:"setStreamMode",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setStreamMode(e)}},{key:"setDelay",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setDelay(e)}},{key:"setFormat",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setFormat(e)}},{key:"showBorder",value:function(t){this.tableLayout.style.borderWidth=t?"null":"0"}},{key:"setTrackIdFilter",value:function(t,e,n){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setTrackIdFilter(e,n)}},{key:"setExtRenderHandler",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setExtRenderHandler(e)}},{key:"setExtRenderCallback",value:function(t,e){t=this._check_index(t,!0),null!==this.windows[t]&&this.windows[t].setExtRenderCallback(e)}},{key:"showCheckError",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateLayout(0,0,{});var n=document.createElement("tr"),i=document.createElement("td");i.className="check_error";var r=document.createElement("div");if(r.innerText=t,i.appendChild(r),e){var o=document.createElement("a");o.className="vat-down",o.innerHTML="<span>".concat($.PLUGIN_DOWNLOAD,"</span>"),o.href=this.config.pluginUrl?this.config.pluginUrl:"#",i.appendChild(o)}n.appendChild(i),this.tableLayout.appendChild(n)}},{key:"_check_state",value:function(){if(0===this.wsPort)throw new Error("invalid state, plugin not initialized")}},{key:"_check_index",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0===t)throw new Error("bad parameter index");if(e&&-1===t)return this.selectedIndex;if(t<0||t>=this.windowCount)throw new Error("index out of range");return t}},{key:"adjustSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(this.tableLayout.parentElement){var i=this.layout.rows,r=this.layout.cols;null!=this.maxWindow&&(i=1,r=1),-1===e&&(e=this.tableLayout.parentElement.clientWidth),-1===n&&(n=this.tableLayout.parentElement.clientHeight),e<t.MIN_WIDTH&&(e=t.MIN_WIDTH),n<t.MIN_HEIGHT&&(n=t.MIN_HEIGHT);var o=parseInt(this.tableLayout.cellSpacing,10),a=this.tableLayout.querySelector("td");if(a){var s=2;e=(e-s-o*(r+1)-t.getBDWx2(a)*r)/r,n=(n-s-o*(i+1)-t.getBDHx2(a)*i)/i,e=Math.max(Math.floor(e),0),n=Math.max(Math.floor(n),0);var l=o+t.getBDHx2(a),c=o+t.getBDWx2(a);if(null!=this.maxWindow)this.maxWindow.adjustSize(e,n,l,c,1),this.maxWindow.showMain(!0);else for(var u=i*r,h=u/4,d=0;d<this.windowCount;d+=1)if(this.windows[d]){this.windows[d].adjustSize(e,n,l,c,-1),Math.pow(this.windows[d].span,2)>=h?this.windows[d].showMain(!0):this.windows[d].showMain(!1);var f=this.findTDElement(this.windows[d].element);f&&(f.style.height="0px")}}}}},{key:"updateLayout",value:function(t,e,n){for(var i=this,r={},o=0,a=0;a<this.windowCount;a++)this.windows[a].element.parentElement&&this.windows[a].element.parentElement.removeChild(this.windows[a].element);for(this.maxWindow=null;this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);for(var s=0;s<t;s++){for(var l=document.createElement("tr"),c=0;c<e;c++){var u=s*e+c;if(null==r[u]){var h=n[u];if(null==h)h=1;else if(h>1)for(var d=0;d<h;d++)for(var f=0;f<h;f++)r[(s+d)*e+c+f]=1;var p=document.createElement("td");if(p.setAttribute("rowSpan",""+h),p.setAttribute("colSpan",""+h),p.setAttribute("windex",""+o),0===o&&t*e==1&&(p.classList.add("no-border"),p.style.borderWidth="0px"),l.appendChild(p),this.config.dbClick&&(p.ondblclick=function(t){t.stopPropagation(),t.preventDefault(),i.showMaxWindow(t.target)}),p.onclick=this.onTDClick,o<this.windows.length){var v=this.windows[o];v.element.style.width="1px",v.element.style.height="1px",p.appendChild(v.element),this.windows[o]=v,v.setIndex(o),v.setSpan(h)}else this.createWindow(o,p,h);o++}}this.tableLayout.appendChild(l)}for(var y=o;y<this.windowCount;y++)this.windows[y].closeStream(!1);this.windowCount=o,this.adjustSize();for(var m=0;m<o;m++)this.windows[m].isDrivingClosed()||this.windows[m].hasChannel()||this.windows[m].restoreStream();this.windowCount>0&&(this.selectedIndex>=this.windowCount&&(this.selectedIndex=0),this.selectWindow(this.windows[this.selectedIndex].element))}},{key:"createWindow",value:function(e,n,i){var r=this,o={dragWindow:this.config.dragWindow,toolBar:this.config.toolBar,toolButtons:this.config.toolButtons,titleBar:this.config.titleBar,onSnapshot:void 0===this.config.onSnapshot?null:this.config.onSnapshot,onDrop:this.dropWindow,onRoi:void 0===this.config.onRoi?null:this.config.onRoi,maxRoi:this.config.maxRoi,onZoom:function(){null==r.maxWindow?r.showMaxWindow(a.element):r.showNormalWindow()},onRunning:function(){},onClose:function(e,n){r.config.onWinOp&&r.config.onWinOp(e,n,t.WIN_OP_CLOSE)},onExtData:this.config.onExtData,roiMenu:!0===this.config.roiMenu,onRecord:void 0===this.config.onRecord?null:this.config.onRecord,onStreamStatus:this.config.onStreamStatus,onAudioState:this.config.onAudioState,proxy:this.proxy},a=new Mt(e,n,o);a.fillWindow(!0===this.config.fill),a.setSpan(i),void 0!==this.config.filterLoss&&a.setFilterLoss(this.config.filterLoss),a.wsPort=this.wsPort,this.windows.push(a)}},{key:"showNormalWindow",value:function(){if(null!=this.maxWindow&&null!=this.maxWindow.element.parentElement){for(this.maxWindow.element.parentElement.removeChild(this.maxWindow.element);this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines),this.maxWindow=null,this.adjustSize(),this.onMaximize(null,-1)}}},{key:"findTDElement",value:function(t){var e=null;do{if("TD"===t.nodeName&&null!=t.getAttribute("windex")){e=t;break}if(!t.parentElement)return null;t=t.parentElement}while("BODY"!==t.nodeName);return e}},{key:"getTDIndex",value:function(t){return null==t?-1:parseInt(t.getAttribute("windex")||"-1",10)}}],[{key:"getBDWx2",value:function(t){return t?t.offsetWidth-t.clientWidth:0}},{key:"getBDHx2",value:function(t){return t?t.offsetHeight-t.clientHeight:0}},{key:"parseLiveStreamParam",value:function(t){var e={};try{e=JSON.parse(t)}catch(e){throw Error("cannot parse param:"+t)}if(!e.url)throw Error("require param 'url'");return e}}]),t}();Ht.MAX_CHANNEL_COUNT=9,Ht.MIN_WIDTH=10,Ht.MIN_HEIGHT=10,Ht.WIN_OP_CLOSE="close",Ht.WIN_OP_SELECT="select",Ht.WIN_OP_SWAP="swap",Ht.WIN_OP_DROP="drop";var Yt=function(){function t(e,n){var i=this;o(this,t),this.ip="",this.port=0,this.username="",this.password="",this.isLogin=!1,this.loginCB=function(){return 0},this.listCameraCB=function(){return 0},this.wsPort=e,this.websocket=_t.createWebsocket(e,n);var r=this;this.websocket.onerror=function(){i.isLogin=!1,r.loginCB(!1,At.NETWORK_ERROR)},this.websocket.onmessage=function(t){r.onMessage(t)},this.websocket.onopen=function(){r.onOpen()}}return l(t,[{key:"loginByUrl",value:function(t){var e=t.indexOf(":");if(e<0)throw new Error("bad server info");var n=t.lastIndexOf("@");if(n<0)throw new Error("bad server info");var i=t.indexOf(":",n+1);if(i<0)throw new Error("bad server info");var r=t.substring(0,e),o=t.substring(e+1,n),a=t.substring(n+1,i),s=parseInt(t.substring(i+1),10);return this.login(a,s,r,o)}},{key:"login",value:function(t,e,n,i){return this.ip=t,this.port=e,this.username=n,this.password=i,this.websocket.readyState!==WebSocket.OPEN?At.INVALID_STATE:(this.sendLoginCmd(),At.OK)}},{key:"destroy",value:function(){null!==this.websocket&&(this.websocket.onclose=null,this.websocket.onerror=null,this.websocket.close())}},{key:"listCameras",value:function(){return this.websocket.readyState!==WebSocket.OPEN?At.INVALID_STATE:(this.websocket.send(JSON.stringify({cmd:"req_list_camera"})),At.OK)}},{key:"onMessage",value:function(t){var e=JSON.parse(t.data);"res_login"===e.cmd?(this.loginCB(e.success,e.code),!0===e.success&&(this.isLogin=!0)):"res_list_camera"===e.cmd&&this.listCameraCB(e.data)}},{key:"onOpen",value:function(){this.ip.length>0&&this.port>0&&this.sendLoginCmd()}},{key:"sendLoginCmd",value:function(){var t={cmd:"req_login",ip:this.ip,port:this.port,username:this.username,password:this.password};this.websocket.send(JSON.stringify(t))}}]),t}(),Kt=function t(){o(this,t)};Kt.WS_PORT=3457,Kt.CMD_INIT="init",Kt.CMD_OPEN_CHANNEL="openchannel",Kt.CMD_CLOSE_CHANNEL="closechannel",Kt.CMD_CHANNEL_STATUS="channel.status",Kt.CMD_ERROR="error",Kt.CMD_OPEN_FOLDER="open_folder";var qt=n("b697"),Gt=n.n(qt),$t=n("9224"),Xt=$t.version,Jt=$t.vatversion,Qt=function(){function t(e){if(o(this,t),this.serverVersion="",this.timerId=0,this.currentIp="",this.initTime=performance.now(),this.proxy=e,this.onConnectFailed=function(){return 0},this.onDisconnected=function(){return 0},this.onInitError=function(){return 0},this.onInitOk=function(){return 0},this.socketOpened=!1,this.initOk=!1,this.proxyIp=null,this.proxy){var n=this.proxy.indexOf("://"),i=this.proxy.lastIndexOf(":");this.proxyIp=n<0&&i<0?this.proxy:n<0?this.proxy.substring(0,i):i<0||n===i?this.proxy.substring(n+3):this.proxy.substring(n+3,i)}this.websocket=this.initWebSocket("127.0.0.1")}return l(t,[{key:"isProxy",value:function(){return null!==this.proxy&&this.currentIp===this.proxy}},{key:"getConnectedProxyIp",value:function(){return this.isProxy()?this.proxyIp:null}},{key:"close",value:function(){this.clearTimer(),_t.closeWebsocket(this.websocket)}},{key:"openFolder",value:function(t){if(!this.isProxy()){var e=JSON.stringify({cmd:Kt.CMD_OPEN_FOLDER,folder:t});this.websocket.send(e)}}},{key:"onError",value:function(){var t=this;performance.now()-this.initTime<200?window.setTimeout((function(){t.websocket=t.initWebSocket("127.0.0.1")}),200):this.handleDisconnect()}},{key:"initWebSocket",value:function(t){var e=this;this.currentIp=t,this.socketOpened=!1;var n=0===t.indexOf("ws://")||0===t.indexOf("wss://")?t:"ws://".concat(t,":").concat(Kt.WS_PORT),i=new WebSocket(n);return i.onerror=i.onclose=function(){e.onError()},i.onopen=function(){e.clearTimer(),e.socketOpened=!0;var t=JSON.stringify({cmd:Kt.CMD_INIT,version:Xt});e.websocket.send(t)},i.onmessage=function(t){var n=JSON.parse(t.data);if(n.cmd===Kt.CMD_INIT){e.serverVersion=n.version;var i=Jt;if(0!==n.code)_t.closeWebsocket(e.websocket),e.onInitError(e.serverVersion,$.PLUGIN_SERVICE_MISMATCH);else if(0===i.indexOf("="))if(0===Gt()(n.version,i.substring(1)))e.initOk=!0,e.onInitOk(e.serverVersion,n.port);else{var r=$.get($.PLUGIN_SERVICE_VERSION_REQUIRE,{installed_version:n.version,require_version:i.substring(1)});e.onInitError(e.serverVersion,r)}else if(Gt()(n.version,i)>=0)e.initOk=!0,e.onInitOk(e.serverVersion,n.port);else{var o=$.get($.PLUGIN_SERVICE_VERSION_REQUIRE,{installed_version:n.version,require_version:i});e.onInitError(e.serverVersion,o)}}else n.cmd===Kt.CMD_CHANNEL_STATUS?e.onInitOk(e.serverVersion,n.ws_port):(n.cmd,Kt.CMD_ERROR)},this.initTimer(),i}},{key:"initTimer",value:function(){var t=this;this.clearTimer(),this.timerId=window.setTimeout((function(){t.handleDisconnect()}),1e3)}},{key:"clearTimer",value:function(){0!==this.timerId&&(clearTimeout(this.timerId),this.timerId=0)}},{key:"handleDisconnect",value:function(){if(!this.socketOpened&&this.proxy&&this.currentIp!==this.proxy&&this.proxy.length>6)return _t.closeWebsocket(this.websocket),void(this.websocket=this.initWebSocket(this.proxy));this.socketOpened?this.onDisconnected():this.onConnectFailed(),this.socketOpened=!1}}]),t}();function Zt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return te(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function te(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ne(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ee(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ie(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=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var re={},oe=function(t){u(n,t);var e=ie(n);function n(){var t;return o(this,n),(t=e.apply(this,arguments)).api=null,t.dcs=null,t.loaded=!1,t.wsInitChannel=null,t}return l(n,[{key:"login",value:function(t,e,n,i){return null===this.api?At.INVALID_STATE:this.getDcs().login(t,e,n,i)}},{key:"setLayout",value:function(t){this.api&&this.api.setLayout(t)}},{key:"getLayout",value:function(){return this.api?this.api.getLayout():null}},{key:"toggleWindow",value:function(){this.api&&this.api.toggleWindow()}},{key:"openStream",value:function(t,e,n,i){return this.api?this.api.openLiveStream(t,{url:e,subUrl:n,name:i}):At.INVALID_STATE}},{key:"openStreamEx",value:function(t,e){return this.api?this.api.openLiveStream(t,e):At.INVALID_STATE}},{key:"ptzControl",value:function(t,e,n){return null===this.api?At.INVALID_STATE:this.api.ptzControl(t,e,n)}},{key:"ptzControl3D",value:function(t,e,n,i,r,o){return null===this.api?At.INVALID_STATE:this.api.ptzControl3D(t,e,n,i,r,o)}},{key:"selectWindow",value:function(t){this.api&&this.api.select(t)}},{key:"setROI",value:function(t,e){this.api&&this.api.setROI(t,e)}},{key:"startROI",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return null!==this.api&&this.api.startROI(t,e,n)}},{key:"stopROI",value:function(t){this.api&&this.api.stopROI(t)}},{key:"saveROI",value:function(t){return null!==this.api&&this.api.saveROI(t)}},{key:"closeStream",value:function(t){this.api&&this.api.closeStream(t)}},{key:"closeStreams",value:function(t){this.api&&this.api.closeStreams(t)}},{key:"fillWindow",value:function(t,e){this.api&&this.api.fillWindow(t,e)}},{key:"showFullscreen",value:function(){return this.api&&this.api.showFullscreen()}},{key:"exitFullscreen",value:function(){this.api&&this.api.exitFullscreen()}},{key:"getImage",value:function(t){return this.api?this.api.getImage(t):null}},{key:"snapshot",value:function(t){this.api&&this.api.snapshot(t)}},{key:"indexOf",value:function(t){return this.api?this.api.indexOf(t):At.INVALID_STATE}},{key:"getStreamInfo",value:function(t){if(this.api)return this.api.getStreamInfo(t)}},{key:"startRecord",value:function(t,e,n){return!!this.api&&(!this.wsInitChannel||!this.wsInitChannel.isProxy())&&(void 0===n&&(n=""),this.api.startRecord(t,e,n))}},{key:"stopRecord",value:function(t){return!!this.api&&this.api.stopRecord(t)}},{key:"closeExtStream",value:function(t){if(!this.api)return!1;this.api.closeExtStream(t)}},{key:"openExtStream",value:function(t,e){if(!this.api)return!1;this.api.openExtStream(t,"","",e)}},{key:"switchAudio",value:function(t,e){this.api&&this.api.switchAudio(t,e)}},{key:"switchTalk",value:function(t,e){this.api&&this.api.switchTalk(t,e)}},{key:"setStreamMode",value:function(t,e){this.api&&this.api.setStreamMode(t,e)}},{key:"setDelay",value:function(t,e){this.api&&this.api.setDelay(t,e)}},{key:"setTrackIdFilter",value:function(t,e,n){this.api&&this.api.setTrackIdFilter(t,e,n)}},{key:"setExtRenderHandler",value:function(t,e){this.api&&this.api.setExtRenderHandler(t,e)}},{key:"setExtRenderCallback",value:function(t,e){this.api&&this.api.setExtRenderCallback(t,e)}},{key:"setMessage",value:function(t,e){$.set(t,e)}},{key:"swapWindow",value:function(t,e){return null===this.api?At.INVALID_STATE:t===e||t<0||e<0||t>=this.api.windowCount||e>=this.api.windowCount?At.INVALID_PARAM:(this.api.swapWindow(t,e),At.OK)}},{key:"openFolder",value:function(t){null!=this.wsInitChannel&&this.wsInitChannel.openFolder(t)}},{key:"onServerChange",value:function(t,e){void 0!==this.server&&""!==this.server&&this.loaded&&this.tryLogin()}},{key:"onBorderChange",value:function(t,e){if(!this.api)return!1;this.api.showBorder(t)}},{key:"mounted",value:function(){var t=this;q.token=this.$attrs.token;var e={rows:1,cols:1,combines:[],streams:{}};this.config.layout&&(e=ne({},this.config.layout));var n,i={pluginUrl:"#",onSnapshot:this.onSnapshot,onRoi:this.onROI,dbClick:!1!==this.config.dbClick,dragWindow:!1!==this.config.dragWindow,toolBar:!1!==this.config.toolBar,toolButtons:this.config.boolButtons||["volume","roi-rect","roi-polygon","snap","stop"],titleBar:!1===this.config.titleBar?0:W.ALL,maxRoi:this.config.maxRoi?this.config.maxRoi:10,onExtData:this.onExtData,onWinOp:this.onWinOp,roiMenu:!1!==this.config.roiMenu,onRecord:this.onRecord,onStreamStatus:this.onStreamStatus,onAudioState:this.onAudioState,border:!1!==this.config.border,filterLoss:this.config.filterLoss},r=Zt(void 0===this.$slots.default?[]:this.$slots.default);try{for(r.s();!(n=r.n()).done;){var o=n.value;if("download-url"===o.tag){if(void 0!==o.text)i.pluginUrl=o.text;else if(void 0!==o.children&&o.children.length>0){var a,s=Zt(o.children);try{for(s.s();!(a=s.n()).done;)void 0===a.value.tag&&(i.pluginUrl=o.children[0].text)}catch(t){s.e(t)}finally{s.f()}}}else if("msg"===o.tag){if(void 0===o.data||void 0===o.data.key)continue;var l="";if(void 0!==o.text)l=o.text;else if(void 0!==o.children&&o.children.length>0){var c,u=Zt(o.children);try{for(u.s();!(c=u.n()).done;)void 0===c.value.tag&&void 0!==o.children[0].text&&(l=o.children[0].text)}catch(t){u.e(t)}finally{u.f()}}$.set(""+o.data.key,l)}}}catch(t){r.e(t)}finally{r.f()}this.api=new Ht(this.$el,i),this.api.onMaximize=function(e,n){t.$emit("onMaximize",e,n)},this.wsInitChannel=new Qt(this.proxy),this.wsInitChannel.onInitOk=function(n,i){t.loaded=!0,null!==t.api&&(t.api.setWsPort(i,null===t.wsInitChannel?null:t.wsInitChannel.getConnectedProxyIp()),t.api.setLayout(e)),t.$emit("onLoad",t,n,t.wsInitChannel&&t.wsInitChannel.isProxy()),t.tryLogin()},this.wsInitChannel.onInitError=function(e,n){null!==t.api&&(t.api.showCheckError(n,void 0!==e&&e.length>0),t.$emit("onLoadFailed",n))},this.wsInitChannel.onConnectFailed=function(){null!==t.api&&(t.api.showCheckError($.PLUGIN_SERVICE_NOTFOUND,!0),t.$emit("onLoadFailed",$.PLUGIN_SERVICE_NOTFOUND))},this.wsInitChannel.onDisconnected=function(){null!==t.api&&(t.api.showCheckError($.PLUGIN_SERVICE_DISCONNECTED,!0),t.$emit("onDisconnected",$.PLUGIN_SERVICE_NOTFOUND))}}},{key:"beforeDestroy",value:function(){this.api&&this.api.stop(),null!==this.wsInitChannel&&this.wsInitChannel.close()}},{key:"tryLogin",value:function(){null!==this.api&&this.server.length>0&&this.getDcs().loginByUrl(this.server)}},{key:"getDcs",value:function(){var t=this;if(null===this.dcs){if(null==this.api)throw new Error("api is null");this.dcs=new Yt(this.api.getWsPort(),null==this.wsInitChannel?null:this.wsInitChannel.getConnectedProxyIp()),this.dcs.loginCB=function(e,n){t.$emit("onLogin",e,n)}}return this.dcs}},{key:"onSnapshot",value:function(t,e){this.$emit("onSnapshot",t,e)}},{key:"onROI",value:function(t,e){this.$emit("onRoi",t,e)}},{key:"onExtData",value:function(t,e,n){this.$emit("onExtData",t,e,n),e===Et.FACE_SNAP&&this.$emit("onRecg",t,n)}},{key:"onWinOp",value:function(t,e,n){this.$emit("onWinOp",t,e,n)}},{key:"onRecord",value:function(t,e,n){this.$emit("onRecord",t,e,n)}},{key:"onStreamStatus",value:function(t,e,n,i){this.$emit("onStreamStatus",t,e,n,i)}},{key:"onAudioState",value:function(t,e,n,i,r){this.$emit("onAudioState",t,e,n,i,r)}}]),n}(y.a);p([I({default:function(){return re}})],oe.prototype,"config",void 0),p([I({default:"dark"})],oe.prototype,"theme",void 0),p([I({default:""})],oe.prototype,"server",void 0),p([I({default:""})],oe.prototype,"proxy",void 0),p([P("$attrs.server",{immediate:!0})],oe.prototype,"onServerChange",null),p([P("$attrs.border",{immediate:!0})],oe.prototype,"onBorderChange",null);var ae=oe=p([O({components:{}})],oe);function se(t,e,n,i,r,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}n("4b0b");var le=se(ae,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:["vatlive","vatlive-"+t.theme]})}),[],!1,null,null,null).exports;function ce(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ue(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return he(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function he(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n("551c");var de=function(){function t(e,n){o(this,t),this.windowCount=0,this.windows=[],this.selectedIndex=0,this.maxWindow=null,this.layout={rows:0,cols:0,combines:{}},this.enableDBClick=!1,this.resizeWatcher=new Ut,this.getBDWx2=function(t){return t?t.offsetWidth-t.clientWidth:0},this.getBDHx2=function(t){return t?t.offsetHeight-t.clientHeight:0},this.tableLayout=e,this.cbCreateWindow=n,this.fastFrameUpdateId=0,this.fastFrameUpdateCount=0}return l(t,[{key:"setup",value:function(){var t=this,e=this.tableLayout.parentElement;return null!==e&&(this.resizeWatcher.watch(e,(function(){t.update()})),!0)}},{key:"destroy",value:function(){this.resizeWatcher.destroy(),this.updateLayout(0,0,{});var t,e=ue(this.windows);try{for(e.s();!(t=e.n()).done;)t.value.close()}catch(t){e.e(t)}finally{e.f()}this.windows=[]}},{key:"setLayout",value:function(t){this.layout=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ce(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines)}},{key:"getWindowCount",value:function(){return this.windowCount}},{key:"getSelectedIndex",value:function(){return this.selectedIndex}},{key:"getSelectedWindow",value:function(){return this.windows.length<=this.selectedIndex?null:this.windows[this.selectedIndex]}},{key:"update",value:function(){this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines)}},{key:"getWindow",value:function(t){return-1===t&&(t=this.selectedIndex),t<0||t>=this.windowCount?null:this.windows[t]}},{key:"showMaxWindow",value:function(t){var e=this;if(-1===t&&(t=this.selectedIndex),t<0||t>=this.windowCount)return!1;for(;this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);this.maxWindow=this.windows[t],this.maxWindow.element.parentElement&&this.maxWindow.element.parentElement.removeChild(this.maxWindow.element);var n=document.createElement("td");n.setAttribute("rowSpan","1"),n.setAttribute("colSpan","1"),n.setAttribute("windex",""+t),n.setAttribute("max","true"),n.classList.add("no-border"),n.style.borderWidth="0px",n.appendChild(this.maxWindow.element),this.enableDBClick&&(n.ondblclick=function(t){e.showNormalWindow()});var i=document.createElement("tr");return i.appendChild(n),this.tableLayout.appendChild(i),this.adjustSize(),!0}},{key:"showNormalWindow",value:function(){if(null!=this.maxWindow&&null!=this.maxWindow.element.parentElement){for(this.maxWindow.element.parentElement.removeChild(this.maxWindow.element);this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);this.updateLayout(this.layout.rows,this.layout.cols,this.layout.combines),this.maxWindow=null,this.adjustSize()}}},{key:"selectWindow",value:function(t){if(this.selectedIndex>=0&&this.selectedIndex<this.windowCount){var e=this.windows[this.selectedIndex].element.parentElement;null!=e&&e.classList.remove("selected")}if(this.windowCount>1){var n=this.windows[t].element.parentElement;null!==n&&n.classList.add("selected")}this.selectedIndex,this.selectedIndex=t,this.selectedIndex}},{key:"adjustSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(this.tableLayout.parentElement){var i=this.layout.rows,r=this.layout.cols;null!=this.maxWindow&&(i=1,r=1),-1===e&&(e=this.tableLayout.parentElement.clientWidth),-1===n&&(n=this.tableLayout.parentElement.clientHeight),e<t.MIN_WIDTH&&(e=t.MIN_WIDTH),n<t.MIN_HEIGHT&&(n=t.MIN_HEIGHT);var o=this.tableLayout.cellSpacing;""===o&&null!==this.tableLayout.style.borderSpacing&&(o=this.tableLayout.style.borderSpacing),""===o&&(o="0");var a=parseInt(o,10),s=this.tableLayout.querySelector("td");if(s){var l=2;e=(e-l-a*(r+1)-this.getBDWx2(s)*r)/r,n=(n-l-a*(i+1)-this.getBDHx2(s)*i)/i,e=Math.max(Math.floor(e),0),n=Math.max(Math.floor(n),0);var c=a+this.getBDHx2(s),u=a+this.getBDWx2(s);if(null!=this.maxWindow)this.maxWindow.adjustSize(e,n,c,u,1),this.maxWindow.showMain(!0);else for(var h=i*r,d=h/4,f=0;f<this.windowCount;f+=1)if(this.windows[f]){this.windows[f].adjustSize(e,n,c,u,-1),Math.pow(this.windows[f].span,2)>=d?this.windows[f].showMain(!0):this.windows[f].showMain(!1);var p=this.findTDElement(this.windows[f].element);p&&(p.style.height="0px")}}}}},{key:"findTDElement",value:function(t){var e=null;do{if("TD"===t.nodeName&&null!=t.getAttribute("windex")){e=t;break}if(!t.parentElement)return null;t=t.parentElement}while("BODY"!==t.nodeName);return e}},{key:"updateLayout",value:function(t,e,n){for(var i=this,r={},o=0,a=0;a<this.windowCount;a++)this.windows[a].element.parentElement&&this.windows[a].element.parentElement.removeChild(this.windows[a].element);for(this.maxWindow=null;this.tableLayout.firstChild;)this.tableLayout.removeChild(this.tableLayout.firstChild);for(var s=0;s<t;s++){for(var l=document.createElement("tr"),c=0;c<e;c++){var u=s*e+c;if(null==r[u]){var h=n[u];if(null==h)h=1;else if(h>1)for(var d=0;d<h;d++)for(var f=0;f<h;f++)r[(s+d)*e+c+f]=1;var p=document.createElement("td");if(p.setAttribute("rowSpan",""+h),p.setAttribute("colSpan",""+h),p.setAttribute("windex",""+o),0===o&&t*e==1&&(p.classList.add("no-border"),p.style.borderWidth="0px"),l.appendChild(p),this.enableDBClick&&(p.ondblclick=function(t){i.showMaxWindow(i.findWinIndex(t.target))}),p.onclick=function(t){null==i.maxWindow&&i.selectWindow(i.findWinIndex(t.target))},o<this.windows.length){var v=this.windows[o];v.element.style.width="1px",v.element.style.height="1px",p.appendChild(v.element),this.windows[o]=v,v.index=o,v.span=h}else{var y=this.cbCreateWindow(o,p);y.span=h,this.windows.push(y)}o++}}this.tableLayout.appendChild(l)}for(var m=o;m<this.windowCount;m++)this.windows[m].pause();this.windowCount=o,this.adjustSize();for(var g=0;g<o;g++)this.windows[g].resume();this.windowCount>0&&(this.selectedIndex>=this.windowCount&&(this.selectedIndex=0),this.selectWindow(this.selectedIndex))}},{key:"findWinIndex",value:function(t){var e=null;do{if("TD"===t.nodeName&&null!=t.getAttribute("windex")){e=t;break}if(!t.parentElement)break;t=t.parentElement}while("BODY"!==t.nodeName);if(null!==e){var n=e.getAttribute("windex");if(null!==n)return parseInt(n,10)}return-1}}]),t}();de.MAX_CHANNEL_COUNT=9,de.MIN_WIDTH=10,de.MIN_HEIGHT=10,de.WIN_OP_CLOSE="close",de.WIN_OP_SELECT="select";var fe,pe,ve=function(){function t(e,n){o(this,t),this.id="",this.originIndex=e,this.index=e,this.span=1,this.width=0,this.height=0,this.name="",this.element=document.createElement("div"),this.element.setAttribute("class","vatwin"),this.element.setAttribute("windex",""+e),this.extRenderDom=document.createElement("canvas"),this.extRenderDom.setAttribute("class","vatwin-extrender-canvas"),this.extRender2d=this.extRenderDom.getContext("2d"),this.element.appendChild(this.extRenderDom),n.appendChild(this.element)}return l(t,[{key:"setExtCanvasSize",value:function(t,e,n,i){this.extRenderDom.width=n,this.extRenderDom.height=i,this.extRenderDom.style.left="".concat(t,"px"),this.extRenderDom.style.top="".concat(e,"px")}},{key:"adjustSize",value:function(t,e,n,i,r){r<=0&&(r=this.span),this.width=t*r,this.height=e*r,r>1&&(this.width+=(r-1)*i,this.height+=(r-1)*n),this.element.style.width="".concat(this.width,"px"),this.element.style.height="".concat(this.height,"px"),this.onResize(this.width,this.height)}}]),t}();function ye(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}ve.DRAG_MIME="text",ve.TITLE_BAR_HEIGHT=16,ve.SB_CMD_SPEED="speed",ve.SB_CMD_STREAM_STATUS="stream_status",ve.SB_CMD_INFO="info",ve.SB_CMD_STREAM_SIZE="stream_size",ve.SB_CMD_RECORD_STATE="record_state",ve.SB_CMD_AUDIO_STATE="audio_state",ve.CMD_OPEN_CHANNEL="openchannel",ve.CMD_CLOSE_CHANNEL="closechannel",ve.CMD_SET_VIEWPORT="set_viewport",ve.CMD_REQ_SNAPSHOT="req_snapshot",ve.CMD_START_RECORD="start_record",ve.CMD_STOP_RECORD="stop_record",ve.CMD_SWITCH_AUDIO="switch_audio",ve.CMD_SWITCH_TALK="switch_talk",ve.CMD_SET_STREAM_MODE="set_mode",ve.CMD_SET_STREAM_DELAY="set_delay",ve.CMD_SET_STREAM_FORMAT="set_format",function(t){t[t.STOPPED=0]="STOPPED",t[t.WAIT_RESULT=1]="WAIT_RESULT",t[t.RUNNING=2]="RUNNING",t[t.FINISHED=3]="FINISHED"}(fe||(fe={})),function(t){t[t.UNKOWN=0]="UNKOWN",t[t.DONE=1]="DONE",t[t.CONNECT_FAILED=2]="CONNECT_FAILED",t[t.NOT_FOUND=3]="NOT_FOUND"}(pe||(pe={}));var me,ge,we=function(){function t(e,n,i){var r=this;o(this,t),this.cmdCaches=[],this.streamIndex=0,this.streamStatus=fe.STOPPED,this.direction=1,this.backwardCaches=[],this.wsChannel=new Ct,this.onRecords=function(t,e,n){return 0},this.onStream=function(t){return 0},this.onLoad=function(){return 0},this.onPlayState=function(t){return 0},this.onOpenFileState=function(t){return 0},this.onStreamFinish=function(t,e){return 0},this.onSnapshot=function(t,e,n){return 0},this.wsChannel.init(e,i,n),this.wsChannel.onConnected=function(){for(;r.cmdCaches.length>0;){var t=r.cmdCaches.shift();r.wsChannel.sendRaw(t)}null!==r.onLoad&&r.onLoad()},this.wsChannel.onCommand=function(e,n){"records"===e?null!==r.onRecords&&r.onRecords(n.startTime,n.endTime,n.records):e===t.CMD_PLAY_STATE?n.index===r.streamIndex&&(n.success?r.streamStatus=fe.RUNNING:r.streamStatus=fe.STOPPED,r.onPlayState(n.success,n.code)):e===t.CMD_STREAM_STATE?(r.dispatchAllCaches(),r.onStreamFinish(n.state,n.time)):e===t.CMD_RES_SNAPSHOT?r.onSnapshot(n.data,n.path,n.time):e===t.CMD_OPEN_FILE_RES&&r.onOpenFileState(n.code,n.duration)},this.wsChannel.onFrame=function(t,e,n){r.handleFrame({type:t,data:e,time:n})},this.deviceInfo=null}return l(t,[{key:"setFormat",value:function(t){this.wsChannel.setFormat(t)}},{key:"open",value:function(t){this.deviceInfo=t,this.sendOpenDevice()}},{key:"openFile",value:function(e){var n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ye(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({cmd:t.CMD_OPEN_FILE_REQ},e);this.queueOrSend(n)}},{key:"channel",value:function(){return this.wsChannel}},{key:"play",value:function(e,n,i){var r=++this.streamIndex;this.streamStatus=fe.WAIT_RESULT,this.direction=n,this.backwardCaches=[],this.queueOrSend({cmd:t.CMD_PLAY,pos:e,direction:n,index:r}),this.setSpeed(i)}},{key:"stop",value:function(){this.streamStatus=fe.STOPPED,this.wsChannel.stop()}},{key:"pause",value:function(){this.wsChannel.pause()}},{key:"resume",value:function(t){this.wsChannel.resume(t)}},{key:"changeDirection",value:function(t){this.wsChannel.changeDirection(t)}},{key:"setSpeed",value:function(e){this.queueOrSend({cmd:t.CMD_SET_SPEED,speed:e})}},{key:"query",value:function(e,n){this.queueOrSend({cmd:t.CMD_QUERY_RECORD,startTime:e,endTime:n})}},{key:"snapshot",value:function(t){return this.wsChannel.snapshot(t)}},{key:"close",value:function(){this.wsChannel.close(),this.cmdCaches=[]}},{key:"queueOrSend",value:function(t){this.wsChannel.sendRaw(JSON.stringify(t))||this.cmdCaches.push(JSON.stringify(t))}},{key:"sendOpenDevice",value:function(){if(null===this.deviceInfo)return!1;var e={cmd:t.CMD_OPEN_DEVICE,id:this.deviceInfo.id,startTime:this.deviceInfo.minTime,endTime:this.deviceInfo.maxTime};return this.queueOrSend(e),!0}},{key:"handleFrame",value:function(t){if(this.direction>0)this.onStream(t);else if(0===this.backwardCaches.length)this.backwardCaches.push(t);else if(t.time<this.backwardCaches[0].time||this.backwardCaches.length>100){for(;this.backwardCaches.length>0;){var e=this.backwardCaches.pop();e&&this.onStream(e)}this.backwardCaches.push(t)}else this.backwardCaches.push(t)}},{key:"dispatchAllCaches",value:function(){for(;this.backwardCaches.length>0;){var t=this.backwardCaches.pop();t&&this.onStream(t)}}}]),t}();function be(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function _e(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?be(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xe(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=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}we.CMD_INIT_CHANNEL="init_channel",we.CMD_OPEN_DEVICE="open_device",we.CMD_OPEN_FILE_REQ="req_open_file",we.CMD_OPEN_FILE_RES="res_open_file",we.CMD_QUERY_RECORD="query_record",we.CMD_PLAY="play",we.CMD_SET_FORMAT="set_format",we.CMD_STOP_STREAM="stop_stream",we.CMD_PAUSE_STREAM="pause_stream",we.CMD_RESUME_STREAM="resume_stream",we.CMD_SET_SPEED="set_speed",we.CMD_PLAY_STATE="play_state",we.CMD_STREAM_STATE="stream_state",we.CMD_REQ_SNAPSHOT="req_snapshot",we.CMD_RES_SNAPSHOT="res_snapshot",we.CMD_CHANGE_DIRECTION="change_direction",function(t){t[t.STOPPED=0]="STOPPED",t[t.FORWARD_PLAYING=1]="FORWARD_PLAYING",t[t.BACKWARD_PLAYING=2]="BACKWARD_PLAYING",t[t.STEP_PLAYING=3]="STEP_PLAYING",t[t.PAUSED=4]="PAUSED"}(me||(me={})),function(t){t[t.BACKWARD=-1]="BACKWARD",t[t.FORWARD=1]="FORWARD"}(ge||(ge={}));var Se=function(t){u(n,t);var e=xe(n);function n(t,i,r,a,s){var l;o(this,n),(l=e.call(this,t,i)).direction=ge.FORWARD,l.frames=[],l.framePos=0,l.playTimer=0,l.firstPlayTick=0,l.firstPlayTime=0,l.finishTime=-1,l.onPlayState=function(t){return 0},l.speed=1,l.posSec=0,l.playTime=0,l.record={startTime:0,endTime:0,type:0},l.onStatus=function(t){return 1},l.onPosChange=function(t){return 1},l.onSnapshot=function(t,e){return 1},l.onPlayFinished=function(t){return 1},l.onOpenFileState=function(t,e){return 1},l.extHandler=function(){return 1},l.status=me.STOPPED,l.deviceInfo=null,a&&a.length>6?l.format=gt.JPEG:l.format=Tt.chooseLayerType(t)===St.YUV_VIDEO_LAYER?gt.YUV:gt.JPEG;var c=new Z;l.jpegRender=c,c.setAsync(0,(function(t,e,n){l.extRenderHandel(t,e,n)})),l.jpegLayer=new rt(l.element,"vatrender"),l.jpegLayer.setupRender(c);var u=new nt;return l.yuvRender=u,u.setAsync(0,(function(t,e,n){l.extRenderHandel(t,e,n)})),l.yuvLayer=new rt(l.element,"vatrender"),l.yuvLayer.setupRender(u),l.streamProxy=new we(r,a,s),l.streamProxy.onLoad=function(){null!==l.deviceInfo&&l.streamProxy.open(l.deviceInfo),l.streamProxy.setFormat(l.format),l.streamProxy.setSpeed(l.speed)},l.streamProxy.onStream=function(t){l.status!==me.STOPPED&&(l.frames.length>0&&t.time<l.frames[0].time?(l.framePos+=1,l.frames.unshift(t)):l.frames.push(t),(l.frames.length===n.CACHE_SIZE||l.frames.length>n.CACHE_SIZE+50)&&(0===l.playTimer&&l.streamProxy.pause(),l.frames.length>n.CACHE_SIZE+1&&(ge.FORWARD===l.direction?l.frames.shift():l.frames.pop(),l.firstPlayTick=0)))},l.streamProxy.onStreamFinish=function(t,e){l.finishTime=e,l.status===me.FORWARD_PLAYING&&l.framePos>=l.frames.length?(l.stop(),l.onPlayFinished(l.record,ge.FORWARD)):l.status===me.BACKWARD_PLAYING&&0===l.framePos&&(l.stop(),l.onPlayFinished(l.record,ge.BACKWARD))},l.streamProxy.onPlayState=function(t,e){t||l.stop(),l.onPlayState(t,e)},l.streamProxy.onSnapshot=function(t,e,n){l.onSnapshot(t,e,n)},l.streamProxy.onOpenFileState=function(t,e){l.onOpenFileState(t,e)},l}return l(n,[{key:"setDevice",value:function(t){this.deviceInfo=_e({},t),this.record={startTime:t.minTime,endTime:t.maxTime,type:0},this.streamProxy.open(this.deviceInfo)}},{key:"setFile",value:function(t){this.streamProxy.openFile(t)}},{key:"playOne",value:function(t,e,n,i){this.record.startTime=Math.floor(new Date(t).getTime()/1e3),this.record.endTime=Math.floor(new Date(e).getTime()/1e3),this.record.type=n,this.posSec=i>0?i:this.record.startTime,this.play(ge.FORWARD)}},{key:"playPos",value:function(t,e){this.posSec=t>0?t:this.record.startTime,this.play(e)}},{key:"play",value:function(t){this.direction=t,ge.FORWARD===t?this.forward_play():ge.BACKWARD===t&&this.backward_play()}},{key:"syncPlay",value:function(t){me.STOPPED!==this.status&&this.stop(),this.moveTo(t),this.status=me.FORWARD_PLAYING,this.forward_play(!1)}},{key:"syncStep",value:function(){this.framePos>=0&&this.drawFrame(!0)}},{key:"minFrameTime",value:function(){return this.framePos>=this.frames.length?0:this.frames[0].time}},{key:"forward_play",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(me.STOPPED!==this.status)return this.status=me.FORWARD_PLAYING,this.checkStream(ge.FORWARD),void this.startPlayTimer(ge.FORWARD);(0===this.posSec||this.record.endTime>0&&this.posSec>=this.record.endTime)&&(this.posSec=this.record.startTime),this.finishTime=-1,this.streamProxy.play(this.posSec,1,this.speed),this.changeStatus(me.FORWARD_PLAYING),this.jpegLayer.restoreView(),this.yuvLayer.restoreView(),t&&this.startPlayTimer(ge.FORWARD)}},{key:"backward_play",value:function(){if(me.STOPPED!==this.status)return this.status=me.BACKWARD_PLAYING,this.checkStream(ge.BACKWARD),void this.startPlayTimer(ge.BACKWARD);this.posSec!==this.record.startTime&&(this.finishTime=-1,this.streamProxy.play(this.posSec,-1,this.speed),this.changeStatus(me.BACKWARD_PLAYING),this.jpegLayer.restoreView(),this.yuvLayer.restoreView(),this.startPlayTimer(ge.BACKWARD))}},{key:"stop",value:function(){this.streamProxy.stop(),this.changeStatus(me.STOPPED),this.jpegLayer.stopView(),this.yuvLayer.stopView(),this.speed=1,this.stopPlayTimer(),this.framePos=0,this.frames=[]}},{key:"moveTo",value:function(t){t===this.posSec||t<this.record.startTime||(me.STOPPED===this.status?(this.posSec=t,this.playTime=1e3*t):(this.streamProxy.stop(),this.jpegLayer.stopView(),this.yuvLayer.stopView(),this.stopPlayTimer(),this.framePos=0,this.frames=[],this.posSec=t,me.FORWARD_PLAYING===this.status?(this.status=me.STOPPED,this.forward_play()):me.BACKWARD_PLAYING===this.status?(this.status=me.STOPPED,this.backward_play()):me.PAUSED===this.status&&(this.status=me.STOPPED,ge.FORWARD===this.direction?this.forward_play():this.backward_play())))}},{key:"getPos",value:function(){return this.posSec}},{key:"stepPrev",value:function(){me.STEP_PLAYING!==this.status&&(this.stopPlayTimer(),this.status=me.STEP_PLAYING,this.checkStream(ge.BACKWARD)),this.framePos>=0&&this.drawFrame(!1)}},{key:"stepNext",value:function(){me.STEP_PLAYING!==this.status&&(this.stopPlayTimer(),this.status=me.STEP_PLAYING,this.checkStream(ge.FORWARD)),this.framePos<this.frames.length&&this.drawFrame(!0)}},{key:"close",value:function(){this.stop(),this.streamProxy.close()}},{key:"pause",value:function(){this.changeStatus(me.PAUSED),this.streamProxy.pause(),this.stopPlayTimer()}},{key:"addSpeed",value:function(){this.speed>=8||this.setSpeed(2*this.speed)}},{key:"subSpeed",value:function(){this.speed<=.25||this.setSpeed(this.speed/2)}},{key:"setSpeed",value:function(t){this.speed=Math.floor(100*t)/100,this.streamProxy.setSpeed(t),this.firstPlayTick=0,this.firstPlayTime=0}},{key:"setRecord",value:function(t){null===t?me.STOPPED!==this.status&&(this.stop(),this.record.startTime=this.record.endTime=0):t.startTime===this.record.startTime&&t.endTime===this.record.endTime||(this.record=_e({},t))}},{key:"snapshot",value:function(){return this.framePos>=0&&this.framePos<this.frames.length&&this.streamProxy.snapshot(this.frames[this.framePos].time)?0:At.INVALID_STATE}},{key:"resume",value:function(){}},{key:"showMain",value:function(t){}},{key:"setExtRenderCallback",value:function(t){this.extHandler=t}},{key:"getTitleBarHeight",value:function(){return 0}},{key:"onResize",value:function(t,e){this.jpegLayer.move(0,0,t,e),this.yuvLayer.move(0,0,t,e),this.setExtCanvasSize(0,0,t,e),t>=8&&e>=8&&this.streamProxy.channel().setViewport(t,e-this.getTitleBarHeight())}},{key:"extRenderHandel",value:function(t,e,n){this.extRender2d&&this.extHandler(t,this.extRender2d,e,n)}},{key:"changeStatus",value:function(t){var e=t!==this.status;this.status=t,e&&this.onStatus(t)}},{key:"onPlayTimer",value:function(){var t=this;if(this.framePos<this.frames.length){var e=performance.now();if(0===this.firstPlayTick)this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos].time,this.drawFrame(!0);else if(this.frames.length>n.MAX_WATER_LINE)this.frames.shift(),this.frames.shift(),this.framePos-=2,this.framePos<0&&(this.framePos=0),this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos].time,this.drawFrame(!0);else{var i=(e-this.firstPlayTick)*this.speed-(this.frames[this.framePos].time-this.firstPlayTime);i>1e3?this.frames.length>=n.MAX_WATER_LINE&&(this.frames.shift(),this.framePos-=1,i=(e-this.firstPlayTick)*this.speed-(this.frames[this.framePos].time-this.firstPlayTime)):i<-1e3&&(this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos].time),i>=0&&this.drawFrame(!0)}if(this.framePos===this.frames.length&&this.finishTime>=0&&this.frames[this.frames.length-1].time>=this.finishTime)return this.stop(),void this.onPlayFinished(this.record,ge.FORWARD)}this.playTimer=requestAnimationFrame((function(){return t.onPlayTimer()}))}},{key:"onPlayBackwardTimer",value:function(){var t=this;if(this.framePos>0){var e=performance.now();if(0===this.firstPlayTick)this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos-1].time,this.drawFrame(!1);else{var n=(e-this.firstPlayTick)*this.speed-(this.firstPlayTime-this.frames[this.framePos-1].time);(n>1e3||n<-1e3)&&(this.firstPlayTick=e,this.firstPlayTime=this.frames[this.framePos-1].time),n>0&&this.drawFrame(!1)}if(0===this.framePos&&this.finishTime>0)return this.stop(),void this.onPlayFinished(this.record,ge.BACKWARD)}this.playTimer=requestAnimationFrame((function(){return t.onPlayBackwardTimer()}))}},{key:"drawFrame",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=null;if(t){if(this.framePos<this.frames.length){e=this.frames[this.framePos],this.framePos>=n.LOW_WATER_LINE?this.frames.shift():this.framePos++;var i=this.frames.length-this.framePos;i!==n.LOW_WATER_LINE&&5!==i||this.streamProxy.resume(1)}}else if(this.framePos>0){e=this.frames[--this.framePos],(this.framePos===n.LOW_WATER_LINE||0===this.framePos&&this.posSec>this.record.startTime)&&this.streamProxy.resume(-1);var r=this.frames.length-this.framePos;if(r>n.LOW_WATER_LINE)for(this.frames.pop(),r--;r>=n.MAX_WATER_LINE;)this.frames.pop(),r--}if(null!==e){e.type===mt.YUV420?this.yuvLayer.putData(2,e.data,e.time):e.type===mt.YUV?this.yuvLayer.putData(1,e.data,e.time):this.jpegLayer.putData(0,e.data,e.time),this.playTime=e.time;var o=Math.floor(this.playTime/1e3);o!==this.posSec&&(this.onPosChange(this.posSec),this.posSec=o)}}},{key:"startPlayTimer",value:function(t){var e=this;this.stopPlayTimer(),this.firstPlayTick=0,this.firstPlayTime=0,ge.BACKWARD===t?this.playTimer=requestAnimationFrame((function(){return e.onPlayBackwardTimer()})):this.playTimer=requestAnimationFrame((function(){return e.onPlayTimer()}))}},{key:"stopPlayTimer",value:function(){0!==this.playTimer&&(cancelAnimationFrame(this.playTimer),this.playTimer=0)}},{key:"checkStream",value:function(t){ge.FORWARD===t?this.frames.length-this.framePos<=n.LOW_WATER_LINE&&(this.streamProxy.changeDirection(1),this.streamProxy.resume(1)):ge.BACKWARD===t&&this.frames.length<=n.LOW_WATER_LINE&&this.posSec>this.record.startTime&&(this.streamProxy.changeDirection(-1),this.streamProxy.resume(-1))}}]),n}(ve);Se.CACHE_SIZE=200,Se.MAX_WATER_LINE=70,Se.LOW_WATER_LINE=25;var Ee=n("4971"),ke=n.n(Ee);function Ce(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=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}n("3e39");var Ae=function(t){u(n,t);var e=Ce(n);function n(){var t;return o(this,n),(t=e.apply(this,arguments)).volume=50,t.options={dotSize:14,width:4,height:100,contained:!1,direction:"btt",min:0,max:100,interval:1,disabled:!1,clickable:!0,duration:.5,adsorb:!1,lazy:!1,tooltip:"focus",tooltipPlacement:"top"},t}return l(n,[{key:"onBtnClick",value:function(t,e){this.$emit("onBtnClick",t,e)}},{key:"speedStr",get:function(){return.25===this.speed?"0.25":this.speed>0?"".concat(this.speed.toFixed(1)):"1.0"}},{key:"disablePrevStep",get:function(){return this.syncMode||ge.BACKWARD!==this.playDirection||this.playStatus!==me.STEP_PLAYING&&this.playStatus!==me.BACKWARD_PLAYING}},{key:"disableNextStep",get:function(){return this.syncMode||ge.FORWARD!==this.playDirection||this.playStatus!==me.STEP_PLAYING&&this.playStatus!==me.FORWARD_PLAYING}},{key:"disableSpeed",get:function(){return this.syncMode||this.playStatus!==me.FORWARD_PLAYING&&this.playStatus!==me.BACKWARD_PLAYING}},{key:"showForwardPlay",get:function(){return me.STOPPED===this.playStatus||ge.FORWARD===this.playDirection&&this.playStatus!==me.FORWARD_PLAYING}},{key:"showBackwardPlay",get:function(){return me.STOPPED===this.playStatus||ge.BACKWARD===this.playDirection&&this.playStatus!==me.BACKWARD_PLAYING}},{key:"showPause",get:function(){return me.FORWARD_PLAYING===this.playStatus||me.BACKWARD_PLAYING===this.playStatus}},{key:"showPauseTemp",get:function(){return me.STEP_PLAYING===this.playStatus&&ge.BACKWARD===this.playDirection}},{key:"disableStop",get:function(){return this.playStatus===me.STOPPED}}]),n}(y.a);p([I({default:me.STOPPED})],Ae.prototype,"playStatus",void 0),p([I({default:ge.FORWARD})],Ae.prototype,"playDirection",void 0),p([I({default:!1})],Ae.prototype,"isFullscreen",void 0),p([I({default:!1})],Ae.prototype,"isExpand",void 0),p([I({default:!1})],Ae.prototype,"isSingle",void 0),p([I({default:1})],Ae.prototype,"speed",void 0),p([I({default:!1})],Ae.prototype,"syncMode",void 0),p([I({default:!1})],Ae.prototype,"noBack",void 0);var Te,Re=Ae=p([O({components:{VueSlider:ke.a}})],Ae),De=(n("272c"),se(Re,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"vat-tool"}},[t.isSingle?t._e():n("div",{staticClass:"scale-btns"},[n("svg",{staticClass:"icon",attrs:{width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("scale-up")}}},[n("title",[t._v("放大时间轴")]),n("path",{attrs:{fill:"#ffffff",d:"M911.9 839.2l-161-160.9C871 517.7 838.2 290.1 677.5 170s-388.2-87.3-508.3 73.4C122.3 306.1 97 382.4 97 460.8 97 661.4 259.6 824 460.1 824c78.4 0 154.7-25.4 217.5-72.3l160.8 160.8c20.2 20.3 53.1 20.3 73.4 0.1 20.3-20.3 20.3-53.1 0.1-73.4zM408.2 408.9h-51.9c-28.7 0-51.9 23.2-51.9 51.9s23.2 51.9 51.9 51.9h51.9v51.9c0 28.7 23.2 51.9 51.9 51.9s51.9-23.2 51.9-51.9v-51.9h51.9c28.7 0 51.9-23.2 51.9-51.9s-23.2-51.9-51.9-51.9H512V357c0-28.7-23.2-51.9-51.9-51.9s-51.9 23.2-51.9 51.9v51.9z m51.9 311.3c-143.3 0-259.4-116.1-259.4-259.4s116.1-259.4 259.4-259.4 259.4 116.1 259.4 259.4-116.1 259.4-259.4 259.4z"}})]),n("svg",{staticClass:"icon",attrs:{width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("scale-down")}}},[n("title",[t._v("缩小时间轴")]),n("path",{attrs:{fill:"#ffffff",d:"M911.8 839.7L750.9 678.8c120.1-160.6 87.3-388.2-73.4-508.3s-388.2-87.3-508.3 73.4C122.4 306.7 97 383 97 461.4c0 200.5 162.6 363.1 363.1 363.1 78.4 0 154.7-25.4 217.5-72.3L838.4 913c20.2 20.3 53.1 20.3 73.4 0.1s20.3-53.1 0-73.4z m-451.7-119c-143.2 2-261-112.4-263-255.7s112.4-261 255.7-263h7.3c143.2 0 259.4 116.1 259.4 259.4S603.4 720.7 460.1 720.7zM304.5 461.4c0 28.6 23.2 51.9 51.9 51.9h207.5c28.6 0 51.9-23.2 51.9-51.9 0-28.6-23.2-51.9-51.9-51.9H356.4c-28.7 0-51.9 23.2-51.9 51.9z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false && !isExpand"}],staticClass:"icon",attrs:{width:"32px",height:"31.97px",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("expand")}}},[n("path",{attrs:{fill:"#ffffff",d:"M421.167248 520.869741 431.487222 531.189716C434.239215 533.941709 436.991208 536.521702 439.743201 538.929696 442.495194 541.33769 445.247187 543.917684 447.99918 546.669677L460.383149 559.053645C474.143115 572.813611 479.647101 584.853581 476.895108 595.173555 474.143115 605.493529 465.543136 617.533499 451.095172 631.293465 444.903188 638.173448 434.755213 648.665421 420.651248 662.769387 406.547283 676.873351 391.411321 692.181313 375.243362 708.693272 359.075403 725.20523 343.423442 741.02919 328.287479 756.165154 313.151516 771.301117 301.455544 783.341087 293.199566 792.285066 280.815596 804.66903 272.215618 815.505006 267.39963 824.792986 262.583643 834.080957 264.647637 843.196936 273.591614 852.140914 279.783599 858.3329 287.695579 866.588877 297.327555 876.908851 306.959532 887.228826 315.215511 895.828803 322.095494 902.708791 333.791465 914.404762 338.091455 924.724736 334.995462 933.668714 331.899468 942.612693 321.751494 947.772676 304.551537 949.148672 286.663582 951.21267 266.711632 953.620661 244.695687 956.372653 222.679742 959.124645 199.975798 961.704637 176.583856 964.112636 153.191915 966.520627 130.315972 969.100619 107.956028 971.852619 85.596084 974.604611 65.128135 977.012602 46.552181 979.0766 28.664225 981.14059 16.280256 978.9046 9.400274 972.368612 2.520291 965.832633-0.231702 954.308655 1.144295 937.796703 2.520291 920.59674 4.412286 901.332787 6.82028 880.004844 9.228274 858.676894 11.808268 836.832949 14.560261 814.473011 17.312254 792.113065 19.892247 769.925118 22.300241 747.909174 24.708235 725.893229 26.944229 705.597279 29.008224 687.021325 31.072219 667.069375 36.748205 654.341407 46.036182 648.837421 55.324159 643.333434 65.816133 646.429427 77.512104 658.125397 84.392086 665.00538 93.336064 673.433359 104.344037 683.409334 115.35201 693.38531 124.639987 702.157288 132.207967 709.725269 139.775949 717.29325 146.999931 719.701243 153.879914 716.94925 160.759897 714.197257 168.671877 708.693271 177.615855 700.437291 186.559832 691.493314 198.771802 679.109344 214.251763 663.285384 229.731725 647.461423 245.899685 631.121464 262.755643 614.265506 279.611601 597.409548 295.95156 580.897589 311.775521 564.729629 327.599482 548.56167 340.32745 535.661701 349.959426 526.029726 354.087415 521.901736 358.731403 517.945746 363.891391 514.161755 369.051378 510.377765 374.727363 507.797772 380.919349 506.421775 387.111333 505.045779 393.475318 505.389778 400.011301 507.453772 406.547285 509.517767 413.599267 513.989756 421.167249 520.869738L421.167248 520.869741ZM943.357944 0.743038C961.245901-1.320957 973.629873 0.915038 980.509854 7.451021 987.389834 13.987005 990.141826 25.510976 988.76583 42.022935 987.389834 59.222892 985.497844 78.486844 983.089845 99.814791 980.681854 121.142738 978.101862 142.986683 975.34987 165.346628 972.59787 187.706572 970.017879 210.066516 967.609888 232.42646 965.201888 254.786404 962.965898 275.254353 960.9019 293.830307 958.83791 313.782257 953.161925 326.338226 943.873946 331.498213 934.585966 336.6582 924.093991 333.390208 912.398021 321.694238 905.518041 314.814255 896.058061 305.870277 884.018097 294.862304 871.978126 283.854331 862.174145 274.566354 854.606171 266.998374 847.038188 259.430393 840.502201 256.162401 834.998217 257.194398 829.494233 258.226396 822.614244 262.870384 814.358268 271.126363 804.726288 280.758339 792.170323 293.486307 776.690361 309.310268 761.2104 325.134229 744.87044 341.818187 727.670483 359.362143 710.470526 376.9061 693.614568 393.934058 677.102609 410.446016L638.918704 448.629921C634.790714 452.75791 630.318726 456.8859 625.502738 461.01389 620.68675 465.14188 615.354763 468.237871 609.506777 470.301866 603.658791 472.365861 597.466807 472.70986 590.930823 471.333864 584.394839 469.957868 577.686856 465.485878 570.806873 457.917898L531.590971 418.701996C517.831005 404.94203 511.81102 392.386061 513.531015 381.03409 515.251011 369.682118 522.990992 357.12615 536.750958 343.366184 542.942942 337.1742 553.262917 326.682225 567.710881 311.890263 582.158845 297.098299 597.638806 281.446338 614.150765 264.934379 630.662723 248.42242 646.658683 232.25446 662.138645 216.4305 677.618608 200.606539 689.830577 188.566569 698.774554 180.310589 711.158523 167.92662 718.898504 157.778645 721.994496 149.866665 725.090488 141.954685 722.166496 133.526707 713.222518 124.582728 707.030534 118.390744 699.634553 110.822763 691.034574 101.878785 682.434595 92.934806 674.694613 85.022826 667.814631 78.142844 656.11866 66.446872 651.818671 56.126898 654.914664 47.182921 658.010656 38.238943 668.158631 32.734957 685.358588 30.670962 702.558544 28.606966 722.338495 26.198972 744.69844 23.44698 767.058385 20.694987 789.934324 18.114994 813.326265 15.706999 836.718206 13.299005 859.594153 10.719011 881.954099 7.967019 904.314045 5.215026 924.781993 2.807033 943.357944 0.743037L943.357944 0.743038Z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false && isExpand"}],staticClass:"icon",attrs:{width:"32px",height:"29.87px",viewBox:"0 0 1097 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("shrink")}}},[n("path",{attrs:{fill:"#ffffff",d:"M440.555466 539.129028C457.859892 537.206314 470.037082 539.769933 477.087033 546.819885 484.136985 553.869837 487.021056 565.726573 485.739246 582.390095 484.457437 599.694521 482.534723 619.242114 479.971104 641.032874 477.407485 662.823633 474.68364 685.09507 471.79957 707.847187 468.915499 730.599304 466.191653 753.191191 463.628035 775.622858 461.064416 798.054524 458.82125 818.883924 456.898536 838.111064 454.975822 858.620016 449.20768 871.598332 439.594109 877.046027 429.980539 882.493714 419.405611 879.128968 407.869326 866.951774 400.819375 859.901828 391.84671 851.249615 380.95133 840.995135 370.055951 830.740663 360.762832 822.088449 353.071976 815.038495 344.740215 806.706737 337.049358 803.822666 329.999407 806.386282 322.949455 808.949906 314.938147 814.718048 305.965481 823.690709 296.351911 833.304279 283.694043 846.122375 267.991878 862.144989 252.289714 878.167611 235.946644 894.831128 218.962669 912.135562 201.978694 929.439988 185.475399 946.263732 169.452782 962.606802 153.430166 978.949871 140.29162 991.928194 130.037144 1001.541764 126.191715 1006.028095 121.545156 1010.193978 116.097467 1014.039406 110.649777 1017.884834 104.881635 1020.608677 98.79304 1022.210937 92.704446 1023.813203 86.295398 1023.652976 79.565899 1021.730262 72.8364 1019.807548 65.626222 1015.000763 57.935366 1007.309907 53.449033 1002.823569 49.763831 999.298596 46.879759 996.734979 43.995688 994.171356 41.271843 991.607739 38.708225 989.044123L30.056012 980.39191 17.55837 967.894269C3.458467 953.794361-2.149449 941.617174 0.734622 931.362695 3.618693 921.108222 12.110681 908.610581 26.210583 893.869771 32.61963 887.460727 43.194557 877.046027 57.935366 862.625672 72.676174 848.205316 88.218112 832.663377 104.561182 815.999852 120.904251 799.336336 136.766642 783.153486 152.148356 767.451327 167.530069 751.74916 179.707258 739.411746 188.679923 730.439078 201.498017 717.620984 210.15023 706.565377 214.636563 697.27226 219.122896 687.979142 216.879729 678.84625 207.907063 669.873584 201.498017 663.464538 193.486709 654.97255 183.873138 644.397623 174.259568 633.822696 165.927807 625.010256 158.877855 617.960304 147.341571 606.42402 143.015463 596.009319 145.899534 586.7162 148.783605 577.423083 159.198306 571.815167 177.143638 569.892453 195.08897 567.969739 215.277467 565.566346 237.709131 562.682275 260.140795 559.798203 283.213364 557.074359 306.926838 554.51074 330.640312 551.947122 354.033333 549.223277 377.105902 546.339206 400.17847 543.455135 421.328325 541.051742 440.555466 539.129028L440.555466 539.129028ZM1013.52426 53.643725C1027.624161 67.743628 1033.872985 80.401496 1032.270718 91.617328 1030.668459 102.833159 1022.496928 115.81148 1007.756118 130.552288 1000.706164 137.602239 989.97101 148.497619 975.550654 163.238427 961.130299 177.979235 945.428139 193.841626 928.44416 210.825601 911.460189 227.809575 895.117119 244.312871 879.414952 260.335487 863.712785 276.358104 851.375371 288.855745 842.402703 297.828412 829.584615 310.646506 821.733531 320.90098 818.84946 328.591836 815.965389 336.282693 819.009687 344.614454 827.982348 353.58712 834.3914 359.996166 841.922029 367.847249 850.574242 377.140367 859.226455 386.433485 867.077538 394.60502 874.127492 401.654971 885.663777 413.191256 889.829652 423.605957 886.625134 432.899075 883.420608 442.192194 873.166135 447.800109 855.861709 449.722823 837.916373 451.645537 817.727876 454.04893 795.296209 456.933001 772.864551 459.817072 749.631755 462.540917 725.597827 465.104535 701.563902 467.668154 678.010654 470.391998 654.938085 473.27607 631.865516 476.160141 611.036114 478.563534 592.449878 480.486248 559.122834 484.331676 543.741122 470.231773 546.304741 438.186538 548.227455 420.882111 550.310395 401.334518 552.553561 379.543759 554.796727 357.753 557.360347 335.321336 560.244418 312.248766 563.128489 289.176198 565.852334 266.424081 568.415952 243.992417 570.979571 221.560753 573.222737 200.73135 575.145451 181.50421 577.068165 160.99526 582.836308 148.016939 592.449878 142.569249 602.063449 137.121559 612.958828 140.486308 625.136017 152.663498 628.340541 156.508926 632.506421 160.835033 637.633659 165.641818 642.760897 170.448603 648.04836 175.415614 653.49605 180.542852 658.943739 185.670089 664.231204 190.6371 669.358441 195.443886 674.485679 200.250671 678.972012 204.576777 682.81744 208.422206 691.1492 216.753967 697.878699 220.439169 703.005937 219.477812 708.133174 218.516455 715.183126 213.549444 724.155792 204.576779 733.76936 194.963208 746.587456 181.984887 762.610071 165.641818 778.632693 149.298748 795.456437 132.314774 813.081318 114.689895 830.706199 97.065016 847.690171 79.920815 864.03324 63.257294 880.376309 46.593772 893.67508 33.134773 903.92956 22.880298 907.774988 19.034869 912.261318 15.029215 917.388558 10.863335 922.515791 6.697455 927.963485 3.653157 933.731628 1.730443 939.49977-0.192272 945.588367-0.512724 951.997411 0.769086 958.406455 2.050896 965.456409 6.537229 973.147265 14.228084 977.633596 18.714417 981.318796 22.239393 984.202875 24.803012 987.086946 27.366631 989.810789 29.93025 992.374406 32.493869L1001.026619 41.146082 1013.52426 53.643725Z"}})])]),n("div",{staticClass:"btns"},[n("svg",{class:{icon:!0,disabled:!t.showBackwardPlay||t.syncMode||t.noBack},attrs:{id:"play-back",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("play",-1)}}},[n("title",[t._v("倒放")]),n("path",{attrs:{fill:"#ffffff",d:"M160.250617 511.747125L863.749383 0v1024l-703.498766-512.252875z"}})]),n("svg",{class:{icon:!0,disabled:t.disableStop},attrs:{id:"stop",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("stop")}}},[n("title",[t._v("停止")]),n("path",{attrs:{fill:"#ffffff",d:"M157.538462 157.538462h708.923076v708.923076H157.538462V157.538462z"}})]),n("svg",{class:{icon:!0,disabled:t.disablePrevStep},attrs:{id:"prev",width:"36px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("prev")}}},[n("title",[t._v("上一帧")]),n("path",{attrs:{fill:"#ffffff",d:"M635.74 805.62V218.38c0-59.56-67.95-93.96-115.77-57.89L126.94 454.12c-38.59 28.94-38.59 87.24 0 116.19l393.03 293.62c47.82 35.23 115.77 1.25 115.77-58.31z m226.5-679.52c-35.23 0-63.76 28.52-63.76 63.76v644.28c0 35.23 28.53 63.76 63.76 63.76S926 869.37 926 834.14V189.86c0-35.23-28.52-63.76-63.76-63.76z m0 0"}})]),n("svg",{class:{icon:!0,disabled:t.disableSpeed},attrs:{id:"back",width:"32px",height:"32.01px",viewBox:"0 0 1260 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("back")}}},[n("title",[t._v("慢放")]),n("path",{attrs:{fill:"#ffffff",d:"M1181.831855 12.560526l-536.645044 462.060479a50.329422 50.329422 0 0 0 0 72.76543l536.645044 463.879615a46.084772 46.084772 0 0 0 77.616459-36.382715V48.943241a46.084772 46.084772 0 0 0-77.616459-36.382715zM552.410888 12.560526L15.765843 474.621005A49.723044 49.723044 0 0 0 15.765843 546.173678l536.038666 465.092372a46.084772 46.084772 0 0 0 77.616459-36.382715V48.943241A46.084772 46.084772 0 0 0 552.410888 12.560526z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.showForwardPlay,expression:"showForwardPlay"}],staticClass:"icon",attrs:{id:"play",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("play",1)}}},[n("title",[t._v("播放")]),n("path",{attrs:{fill:"#ffffff",d:"M73.142857 0 910.957714 512 73.142857 1024Z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.showPause,expression:"showPause"}],staticClass:"icon",attrs:{id:"pause",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("pause")}}},[n("title",[t._v("暂停")]),n("path",{attrs:{fill:"#ffffff",d:"M379.337561 118.348432 145.347343 118.348432c-8.113795 0-16.247033 3.097548-22.444175 9.295714-6.197142 6.1777-9.295714 14.309914-9.295714 22.424732l0 729.759559c0 8.094352 3.098571 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.276271 22.444175 9.276271l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.276271 6.1777-6.197142 9.275247-14.33038 9.275247-22.424732l0-729.760582c0-8.112772-3.098571-16.247033-9.275247-22.424732C395.584594 121.447003 387.451356 118.348432 379.337561 118.348432L379.337561 118.348432zM897.531634 127.643122c-6.197142-6.197142-14.33038-9.295714-22.444175-9.295714L641.09724 118.347408c-8.113795 0-16.247033 3.098571-22.444175 9.295714-6.196119 6.1777-9.295714 14.31196-9.295714 22.424732l0 729.759559c0 8.094352 3.099594 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.275247 22.444175 9.275247l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.275247 6.197142-6.197142 9.275247-14.33038 9.275247-22.424732L906.806881 150.067854C906.806881 141.954059 903.727753 133.821845 897.531634 127.643122L897.531634 127.643122z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.showPauseTemp,expression:"showPauseTemp"}],staticClass:"icon disabled",attrs:{id:"pause2",width:"32px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("title",[t._v("暂停")]),n("path",{attrs:{fill:"#ffffff",d:"M379.337561 118.348432 145.347343 118.348432c-8.113795 0-16.247033 3.097548-22.444175 9.295714-6.197142 6.1777-9.295714 14.309914-9.295714 22.424732l0 729.759559c0 8.094352 3.098571 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.276271 22.444175 9.276271l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.276271 6.1777-6.197142 9.275247-14.33038 9.275247-22.424732l0-729.760582c0-8.112772-3.098571-16.247033-9.275247-22.424732C395.584594 121.447003 387.451356 118.348432 379.337561 118.348432L379.337561 118.348432zM897.531634 127.643122c-6.197142-6.197142-14.33038-9.295714-22.444175-9.295714L641.09724 118.347408c-8.113795 0-16.247033 3.098571-22.444175 9.295714-6.196119 6.1777-9.295714 14.31196-9.295714 22.424732l0 729.759559c0 8.094352 3.099594 16.22759 9.295714 22.424732 6.197142 6.176676 14.33038 9.275247 22.444175 9.275247l233.990219 0c8.113795 0 16.247033-3.098571 22.444175-9.275247 6.197142-6.197142 9.275247-14.33038 9.275247-22.424732L906.806881 150.067854C906.806881 141.954059 903.727753 133.821845 897.531634 127.643122L897.531634 127.643122z"}})]),n("svg",{class:{icon:!0,disabled:t.disableSpeed},attrs:{id:"forward",width:"32px",height:"32.01px",viewBox:"0 0 1260 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("forward")}}},[n("title",[t._v("快放")]),n("path",{attrs:{fill:"#ffffff",d:"M77.738464 1011.260664l536.872038-462.255925a50.350711 50.350711 0 0 0 0-72.796208L77.738464 12.739336A46.104265 46.104265 0 0 0 0.089175 48.530806v926.331753a46.104265 46.104265 0 0 0 77.649289 36.398105z m629.687204 0l536.872038-462.255925a49.744076 49.744076 0 0 0 0-72.796208L707.425668 12.739336a46.104265 46.104265 0 0 0-77.649289 36.398105v925.725118a46.104265 46.104265 0 0 0 77.649289 36.398105z"}})]),n("svg",{class:{icon:!0,disabled:t.disableNextStep},attrs:{id:"next",width:"36px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("next")}}},[n("title",[t._v("下一帧")]),n("path",{attrs:{fill:"#ffffff",d:"M388.26 218.38v587.23c0 59.56 67.95 93.96 115.77 57.89l393.03-293.62c38.59-28.94 38.59-87.24 0-116.19L504.03 160.08c-47.82-35.24-115.77-1.26-115.77 58.3zM161.76 897.9c35.23 0 63.76-28.52 63.76-63.76V189.86c0-35.23-28.53-63.76-63.76-63.76S98 154.63 98 189.86v644.28c0 35.23 28.52 63.76 63.76 63.76z m0 0"}})]),n("div",{staticStyle:{position:"relative",display:"flex"},attrs:{title:"倍速"}},[n("span",{staticClass:"speed btn-menu-icon2"},[t._v("x"+t._s(t.speedStr))]),t._e()]),n("div",{staticStyle:{position:"relative",display:"flex"},attrs:{title:"声音"}},[n("svg",{staticClass:"icon btn-menu-icon2 disabled",attrs:{id:"volume",width:"20px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("volume")}}},[n("path",{attrs:{fill:"#ffffff",d:"M475.428571 201.142857v621.714286c0 20.004571-16.566857 36.571429-36.571428 36.571428a36.205714 36.205714 0 0 1-25.709714-10.861714L222.866286 658.285714H73.142857c-20.004571 0-36.571429-16.566857-36.571428-36.571428v-219.428572c0-20.004571 16.566857-36.571429 36.571428-36.571428h149.723429l190.281143-190.281143A36.425143 36.425143 0 0 1 438.857143 164.571429c20.004571 0 36.571429 16.566857 36.571428 36.571428z m219.428572 310.857143c0 57.161143-34.852571 112.566857-88.576 134.290286a31.780571 31.780571 0 0 1-14.299429 2.852571c-20.004571 0-36.571429-16.018286-36.571428-36.571428 0-43.446857 66.304-31.414857 66.304-100.571429s-66.304-57.161143-66.304-100.571429c0-20.553143 16.566857-36.571429 36.571428-36.571428 4.571429 0 9.728 0.585143 14.299429 2.852571C660.004571 398.848 694.857143 454.838857 694.857143 512z m146.285714 0c0 116.004571-69.705143 224-177.152 269.129143a42.349714 42.349714 0 0 1-14.299428 2.852571 36.937143 36.937143 0 0 1-37.156572-36.571428c0-16.018286 9.142857-26.843429 22.272-33.718857 15.433143-8.009143 29.696-14.848 43.446857-25.161143 56.576-41.142857 89.709714-106.861714 89.709715-176.566857s-33.133714-135.424-89.709715-176.566858c-13.714286-10.276571-28.013714-17.152-43.446857-25.161142-13.129143-6.838857-22.272-17.700571-22.272-33.718858 0-20.004571 16.566857-36.571429 36.571429-36.571428 5.156571 0 10.276571 1.133714 14.848 2.852571 107.446857 45.129143 177.152 153.161143 177.152 269.129143z m146.285714 0c0 175.433143-104.557714 334.299429-265.728 403.419429a42.861714 42.861714 0 0 1-14.848 2.852571c-20.004571 0-36.571429-16.566857-36.571428-36.571429 0-16.566857 8.557714-25.709714 22.272-33.718857 8.009143-4.571429 17.152-7.424 25.709714-11.995428 16.018286-8.557714 32-18.285714 46.848-29.147429 93.696-69.156571 149.138286-178.285714 149.138286-294.838857s-55.442286-225.718857-149.138286-294.838857a402.505143 402.505143 0 0 0-46.848-29.147429c-8.557714-4.571429-17.700571-7.424-25.709714-11.995428-13.714286-8.009143-22.272-17.152-22.272-33.718857 0-20.004571 16.566857-36.571429 36.571428-36.571429 5.156571 0 10.276571 1.133714 14.848 2.852571A439.186286 439.186286 0 0 1 987.428571 512z"}})]),t._e()])]),n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("svg",{staticClass:"icon",staticStyle:{visibility:"hidden"},attrs:{width:"24px",height:"25.34px",viewBox:"0 0 1293 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("snap")}}},[n("path",{attrs:{fill:"#ffffff",d:"M646.682947 336.949895a235.304421 235.304421 0 0 0-235.034947 235.627789 235.304421 235.304421 0 0 0 234.981053 235.681684 235.304421 235.304421 0 0 0 235.088842-235.681684A235.304421 235.304421 0 0 0 646.736842 336.949895zM1209.936842 160.282947h-245.65221C951.242105 120.185263 906.725053 0 841.566316 0H451.799579C391.437474 0 342.554947 120.185263 327.68 160.282947H83.536842C37.402947 160.282947 0 199.949474 0 248.993684v686.403369C0 984.225684 37.402947 1024 83.536842 1024h1126.4c46.133895 0 83.536842-39.612632 83.536842-88.656842V248.832c-0.107789-48.882526-37.402947-88.549053-83.536842-88.549053z m-563.469474 707.098948c-162.169263 0-293.726316-131.934316-293.726315-294.534737a294.103579 294.103579 0 0 1 293.726315-294.534737c162.223158 0 293.834105 131.934316 293.834106 294.534737 0 162.708211-131.610947 294.534737-293.834106 294.534737z m421.241264-530.324211a49.044211 49.044211 0 0 1-48.882527-49.098105 48.936421 48.936421 0 1 1 97.765053 0 49.044211 49.044211 0 0 1-48.882526 49.098105zM286.72 83.806316c0 17.623579-14.174316 31.797895-31.690105 31.797895H107.466105a31.690105 31.690105 0 0 1-31.690105-31.797895c0-17.569684 14.174316-31.797895 31.690105-31.797895h147.56379c17.515789 0 31.690105 14.228211 31.690105 31.797895z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:!t.isFullscreen,expression:"!isFullscreen"}],staticClass:"icon",attrs:{id:"fullscreen",width:"20px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("fullscreen")}}},[n("title",[t._v("全屏显示")]),n("path",{attrs:{fill:"#ffffff",d:"M919.920093 725.414549q3.014188 26.122962 7.033105 58.776664t7.53547 66.814498 7.53547 67.819227 7.033105 60.786122q6.028376 47.222277-41.193901 44.208089-25.118232-2.009459-56.767205-5.526011t-64.805039-7.53547-65.809769-8.037834-59.781393-7.033105q-29.137149-3.014188-37.174984-16.578033t9.042564-30.644243q11.052022-10.047293 27.127691-27.630056t27.127691-28.634785q11.052022-12.056752 7.033105-22.104044t-16.075669-23.108774q-28.13242-27.127691-51.241194-49.231735t-51.241194-51.241194q-6.028376-6.028376-12.056752-13.061481t-9.042564-15.573304-1.004729-18.085127 13.061481-20.59695q6.028376-6.028376 10.047293-10.549658t8.037834-8.037834 8.540199-8.037834 11.554387-12.559116q20.094586-20.094586 37.174984-17.080398t37.174984 23.108774 41.193901 40.691536 47.222277 46.719912q19.089857 18.085127 32.653702 25.118232t26.625326-6.028376q9.042564-9.042564 22.606409-21.60168t23.611138-22.606409q17.080398-17.080398 30.644243-13.061481t16.578033 30.141879zM43.79615 383.80659q-3.014188-26.122962-7.033105-58.776664t-7.53547-66.814498-7.53547-67.819227-7.033105-60.786122q-3.014188-26.122962 6.53074-36.170255t33.658431-8.037834q25.118232 2.009459 56.767205 5.526011t64.805039 7.53547 65.809769 8.037834 59.781393 7.033105q30.141879 3.014188 37.677348 16.578033t-9.544928 30.644243q-10.047293 10.047293-24.615868 26.122962t-25.620597 27.127691q-12.056752 12.056752-8.037834 22.104044t17.080398 23.108774q13.061481 14.06621 24.615868 24.615868t22.606409 21.099315 23.108774 22.606409l25.118232 25.118232q6.028376 6.028376 11.554387 14.06621t8.037834 17.080398-0.502365 19.089857-13.061481 20.094586l-11.052022 11.052022q-4.018917 4.018917-7.53547 8.037834t-8.540199 8.037834l-11.052022 12.056752q-20.094586 20.094586-34.663161 15.070939t-34.663161-25.118232-38.179713-37.677348-44.208089-43.705724q-18.085127-18.085127-32.151337-25.118232t-27.127691 6.028376q-9.042564 10.047293-25.118232 24.615868t-26.122962 24.615868q-17.080398 17.080398-30.141879 13.061481t-16.075669-30.141879zM905.853883 84.397261q26.122962-3.014188 36.170255 6.53074t8.037834 34.663161-5.526011 56.767205-7.53547 64.805039-8.037834 65.809769-7.033105 59.781393q-3.014188 29.137149-16.578033 37.174984t-30.644243-10.047293q-10.047293-10.047293-26.122962-24.615868t-27.127691-25.620597q-12.056752-11.052022-22.104044-7.53547t-23.108774 16.578033q-27.127691 27.127691-47.724641 49.231735t-48.729371 50.236465q-6.028376 6.028376-14.06621 11.554387t-17.080398 8.037834-19.089857-0.502365-20.094586-14.06621q-6.028376-6.028376-10.549658-10.047293t-8.540199-8.037834-8.540199-8.037834-11.554387-12.056752q-20.094586-20.094586-16.075669-35.165525t25.118232-35.165525l38.179713-40.189172q19.089857-20.094586 45.212818-46.217547 19.089857-18.085127 26.122962-32.151337t-7.033105-26.122962q-9.042564-9.042564-23.108774-24.615868t-24.113503-25.620597q-17.080398-17.080398-13.061481-30.141879t30.141879-16.075669 58.776664-7.033105 67.316863-7.53547 67.819227-7.53547 60.283758-7.033105zM350.238584 640.012559q6.028376 6.028376 10.549658 10.047293t8.540199 8.037834l8.037834 9.042564 12.056752 11.052022q20.094586 20.094586 17.582763 36.672619t-23.611138 37.677348q-19.089857 19.089857-40.189172 40.691536t-47.222277 47.724641q-18.085127 18.085127-22.606409 29.639514t8.540199 24.615868q10.047293 9.042564 22.606409 22.606409t22.606409 23.611138q17.080398 17.080398 12.559116 30.141879t-30.644243 16.075669-58.274299 7.033105-66.814498 8.037834-68.321592 8.037834-60.786122 7.033105q-25.118232 2.009459-35.66789-7.53547t-8.540199-33.658431q2.009459-25.118232 5.526011-56.767205t7.53547-64.805039 8.037834-65.809769 7.033105-59.781393q3.014188-30.141879 16.578033-37.677348t30.644243 9.544928q10.047293 10.047293 27.630056 26.122962t28.634785 27.127691q12.056752 12.056752 20.094586 10.549658t20.094586-14.568575q13.061481-13.061481 25.118232-25.620597t24.113503-24.615868 24.615868-25.118232 26.625326-27.127691q6.028376-6.028376 13.061481-12.056752t15.573304-9.042564 18.085127-0.502365 20.59695 13.563845z"}})]),n("svg",{directives:[{name:"show",rawName:"v-show",value:t.isFullscreen,expression:"isFullscreen"}],staticClass:"icon",attrs:{width:"20px",height:"32.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.onBtnClick("cancel-fullscreen")}}},[n("title",[t._v("取消全屏显示")]),n("path",{attrs:{fill:"#ffffff",d:"M638.272 128.064l82.048 82.112L930.56 0l91.52 91.456-210.176 210.112 81.856 82.048c0 35.328-28.352 63.872-63.808 63.872L638.272 447.488c-35.2 0-63.808-28.544-63.808-63.872L574.464 192C574.464 156.736 603.072 128.064 638.272 128.064L638.272 128.064 638.272 128.064zM128.064 638.336c0-35.136 28.672-63.808 63.872-63.808l191.68 0c35.328 0 63.872 28.672 63.872 63.808l0 191.68c0 35.392-28.544 63.808-63.872 63.808l-82.048-81.792-210.176 210.112L0 930.752l210.176-210.304L128.064 638.336 128.064 638.336 128.064 638.336zM638.272 574.528l191.68 0c35.456 0 63.808 28.672 63.808 63.808l-81.856 82.112 210.176 210.304-91.52 91.392-210.24-210.112-82.048 81.792c-35.2 0-63.808-28.416-63.808-63.808L574.464 638.336C574.464 603.2 603.072 574.528 638.272 574.528L638.272 574.528 638.272 574.528zM91.392 0l210.176 210.24 82.048-82.112c35.328 0 63.872 28.608 63.872 63.872l0 191.68c0 35.328-28.544 63.872-63.872 63.872L191.936 447.552c-35.2 0-63.872-28.544-63.872-63.872l82.112-82.048L0 91.456 91.392 0 91.392 0 91.392 0zM91.392 0"}})])])])}),[],!1,null,"4bb55d15",null)).exports,Oe=(n("7514"),function(){function t(){o(this,t),this.records=[]}return l(t,[{key:"add",value:function(t){if(0===this.records.length)this.records.push(t);else{var e=this.indexRecord(t.startTime);e>=this.records.length?this.records.push(t):this.records[e].startTime>t.startTime?this.records.splice(e,0,t):this.records[e].endTime<=t.startTime?this.records.splice(e+1,0,t):this.records[e].endTime<t.endTime&&(this.records[e].endTime=t.endTime)}}},{key:"merge",value:function(t,e){if(0!==this.records.length){var n=this.indexRecord(t);if(n>=this.records.length)this.records.push({startTime:t,endTime:e,type:0});else if(this.records[n].startTime>e)this.records.splice(n,0,{startTime:t,endTime:e,type:0});else if(this.records[n].startTime=Math.min(this.records[n].startTime,t),this.records[n].endTime<e)for(this.records[n].endTime=e,n+=1;n<this.records.length&&this.records[n].startTime<=e;)this.records[n-1].endTime=Math.max(this.records[n].endTime,e),this.records.splice(n,1)}else this.records.push({startTime:t,endTime:e,type:0})}},{key:"isInclude",value:function(t,e){if(0===this.records.length)return!1;if(e<=this.records[0].startTime)return!1;if(t>=this.records[this.records.length-1].endTime)return!1;for(var n=0,i=this.records.length-1;n<=i;){var r=n+Math.floor((i-n)/2);if(e<this.records[r].startTime)i=r-1;else{if(!(t>this.records[r].endTime))return this.records[r].startTime<=t&&this.records[r].endTime>=e;n=r+1}}return!1}},{key:"clear",value:function(){this.records=[]}},{key:"range",value:function(t,e){if(0===this.records.length)return[];var n=this.indexRecord(t);if(n>=this.records.length)return[];for(var i=n;i<this.records.length;){var r=this.records[i];if(r.endTime<t||r.startTime>e)break;i++}return this.records.slice(n,i)}},{key:"find",value:function(t){var e=this.indexRecord(t);return e>=0&&e<this.records.length&&this.records[e].startTime<=t?this.records[e]:null}},{key:"findNext",value:function(t){if(0===this.records.length)return null;var e=this.indexRecord(t);return e>=this.records.length?null:(this.records[e].endTime===t&&e++,e>=this.records.length?null:this.records[e])}},{key:"indexRecord",value:function(t){if(0===this.records.length)return 0;if(t<=this.records[0].startTime)return 0;if(t>this.records[this.records.length-1].endTime)return this.records.length;for(var e=0,n=this.records.length-1;e<=n;){var i=e+Math.floor((n-e)/2);if(t<this.records[i].startTime)n=i-1;else{if(!(t>this.records[i].endTime))return i;e=i+1}}return e}}]),t}());function Le(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Ie(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ie(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Pe(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=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var Me=Te=function(t){u(n,t);var e=Pe(n);function n(){var t;return o(this,n),(t=e.apply(this,arguments)).timerId=0,t.oldWidth=0,t.oldHeight=0,t.curTime=Math.floor(Date.now()/1e3),t.timeCtx=null,t.timeCanvas=null,t.recordCtx=null,t.recordCanvas=null,t.isDragging=!1,t.startDragTime=0,t.xOffset=0,t.tmpDate=new Date,t.timeScale=2,t.startDrawTime=0,t.startDrawOffset=0,t.normalRecords=new Oe,t.alarmRecords=new Oe,t.eventRecords=new Oe,t.queryCache=new Oe,t.streamProxy=null,t.prevMouseX=0,t}return l(n,[{key:"setTime",value:function(t){this.isDragging||(this.curTime=t,this.updateTimeLine(),this.updateRecordLine(),this.$emit("onRecord",this.winIndex,this.getCurrentRecord(),this.curTime))}},{key:"getTime",value:function(){return this.curTime}},{key:"setScale",value:function(t){this.timeScale=t,this.updateTimeLine(),this.updateRecordLine()}},{key:"findRecord",value:function(t){this.curTime=t;var e=this.normalRecords.findNext(this.curTime);return null!==e||(e=this.alarmRecords.findNext(this.curTime)),e}},{key:"setDevice",value:function(t){this.deviceInfo=t,null!==this.streamProxy&&this.streamProxy.open(this.deviceInfo),this.queryCache.clear(),this.normalRecords.clear(),this.alarmRecords.clear(),this.eventRecords.clear(),this.updateTimeLine(),this.updateRecordLine()}},{key:"setWsPort",value:function(t){var e=this;t===this.wsPort&&null!==this.streamProxy||(null===this.streamProxy&&(this.streamProxy=new we(t,this.proxy,bt.VOD_CHANNEL),this.streamProxy.onRecords=function(t,n,i){e.addRecords(t,n,i)}),void 0!==this.deviceInfo&&this.streamProxy.open(this.deviceInfo))}},{key:"addRecords",value:function(t,e,n){var i,r=Le(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;1===o.type?this.normalRecords.add(o):2===o.type?this.alarmRecords.add(o):3===o.type&&this.eventRecords.add(o)}}catch(t){r.e(t)}finally{r.f()}this.queryCache.merge(t,e),this.updateRecordLine()}},{key:"mounted",value:function(){var t=this;this.timeCanvas=this.$refs.timeCanvas,this.timeCtx=this.timeCanvas.getContext("2d"),this.recordCanvas=this.$refs.recordCanvas,this.recordCtx=this.recordCanvas.getContext("2d"),this.timerId=setInterval((function(){null!==t.timeCanvas&&(t.oldWidth===t.$el.clientWidth&&t.oldHeight===t.$el.clientHeight||(t.oldWidth=t.$el.clientWidth,t.oldHeight=t.$el.clientHeight,t.onReSize()))}),500),void 0!==this.wsPort&&(this.streamProxy=new we(this.wsPort,this.proxy,bt.VOD_CHANNEL),this.streamProxy.onRecords=function(e,n,i){t.addRecords(e,n,i)}),0!==this.initTime&&(this.curTime=this.initTime),this.curTime<this.minTime?this.curTime=this.minTime:this.maxTime>0&&this.curTime>this.maxTime&&(this.curTime=Math.floor((this.minTime+this.maxTime)/2)),this.$emit("onRecord",this.winIndex,this.getCurrentRecord(),this.curTime)}},{key:"onReSize",value:function(){null!==this.timeCanvas&&(this.timeCanvas.style.top="0px",this.timeCanvas.style.height="60px",this.timeCanvas.width=2*this.oldWidth,this.timeCanvas.height=60,this.timeCanvas.style.left="".concat(-this.oldWidth/2,"px"),this.timeCanvas.style.width="".concat(2*this.oldWidth,"px"),this.updateTimeLine()),null!==this.recordCanvas&&(this.recordCanvas.style.top="18px",this.recordCanvas.style.height="15px",this.recordCanvas.width=2*this.oldWidth,this.recordCanvas.height=15,this.recordCanvas.style.left="".concat(-this.oldWidth/2,"px"),this.recordCanvas.style.width="".concat(2*this.oldWidth,"px"),this.updateRecordLine())}},{key:"destroy",value:function(){this.timeCtx=null,this.recordCtx=null,0!==this.timerId&&(clearInterval(this.timerId),this.timerId=0),null!==this.streamProxy&&this.streamProxy.close()}},{key:"mouseDown",value:function(t){this.isDragging=!0,this.startDragTime=this.curTime,this.prevMouseX=t.screenX}},{key:"mouseMove",value:function(t){if(this.isDragging&&null!==this.timeCanvas){var e=this.curTime%Te.TIME_SCALE[this.timeScale];0!==e&&(this.curTime-=e);var n=t.movementX;n||(n=t.screenX-this.prevMouseX),this.prevMouseX=t.screenX;var i=this.curTime-n*Te.TIME_SCALE[this.timeScale];i<this.minTime||this.maxTime>0&&i>this.maxTime||(this.xOffset+=n,this.curTime=i,this.xOffset>-10||this.xOffset<-(this.oldWidth-10)?(this.updateTimeLine(),this.updateRecordLine()):(this.timeCanvas.style.left="".concat(this.xOffset,"px"),null!==this.recordCanvas&&(this.recordCanvas.style.left=this.timeCanvas.style.left)),this.$emit("onMove",this.winIndex,this.curTime))}else this.prevMouseX=t.screenX}},{key:"mouseUp",value:function(){this.isDragging&&this.startDragTime!==this.curTime&&this.$emit("onRecord",this.winIndex,this.getCurrentRecord(),this.curTime),this.isDragging=!1}},{key:"mouseLeave",value:function(){this.isDragging&&this.mouseUp(),this.isDragging=!1}},{key:"getCurrentRecord",value:function(){var t=this.normalRecords.find(this.curTime),e=this.alarmRecords.find(this.curTime);return null!==t&&null!==e?t.endTime>e.endTime?t:e:null!==t?t:null!==e?e:null}},{key:"updateTimeLine",value:function(){if(null!==this.timeCtx&&null!==this.timeCanvas&&0!==this.oldWidth){this.xOffset=-this.oldWidth/2,this.timeCanvas.style.left="".concat(this.xOffset,"px"),this.timeCtx.clearRect(0,0,this.timeCanvas.width,this.oldHeight),this.timeCtx.fillStyle="rgb(180, 180, 180)",this.timeCtx.strokeStyle="rgb(180, 180, 180)",this.timeCtx.font="11px Arial",this.timeCtx.lineWidth=1,this.timeCtx.beginPath(),this.timeCtx.moveTo(0,15.5),this.timeCtx.lineTo(this.timeCanvas.width,15.5);var t=this.curTime-this.curTime%Te.TIME_SCALE[this.timeScale],e=Math.floor(t-Math.floor(this.oldWidth)*Te.TIME_SCALE[this.timeScale]),n=60*Te.TIME_SCALE[this.timeScale],i=10*Te.TIME_SCALE[this.timeScale],r=e%i;e-=r,this.startDrawTime=e,this.startDrawOffset=-r/Te.TIME_SCALE[this.timeScale]+.5;for(var o=new Date,a=this.startDrawOffset;a<=this.timeCanvas.width;a+=10){if(this.timeCtx.moveTo(a,17),e<this.minTime||this.maxTime>0&&e>this.maxTime);else if(e%n==0){this.timeCtx.lineTo(a,40),o.setTime(1e3*e);var s,l=o.getHours(),c=o.getMinutes();s=l>9&&c>9?"".concat(l,":").concat(c):l>9?"".concat(l,":0").concat(c):c>9?"0".concat(l,":").concat(c):"0".concat(l,":0").concat(c),this.timeCtx.fillText(s,a-14,50)}else this.timeCtx.lineTo(a,33);e+=i}this.timeCtx.closePath(),this.timeCtx.stroke();var u=Math.round(this.startDrawTime+Te.TIME_SCALE[this.timeScale]*(this.timeCanvas.width-this.startDrawOffset));this.queryCache.isInclude(this.startDrawTime,u)||null!==this.streamProxy&&this.streamProxy.query(this.startDrawTime,u)}}},{key:"updateRecordLine",value:function(){null!==this.recordCtx&&null!==this.recordCanvas&&0!==this.oldWidth&&(this.recordCanvas.style.left="".concat(this.xOffset,"px"),this.recordCtx.clearRect(0,0,this.recordCanvas.width,this.recordCanvas.height),this.recordCtx.lineWidth=3,this.recordCtx.strokeStyle="rgba(220, 0, 0, 0.8)",this.recordCtx.beginPath(),this.drawRecordLine(this.recordCtx,this.alarmRecords,1,this.recordCanvas.width),this.recordCtx.closePath(),this.recordCtx.stroke(),this.recordCtx.strokeStyle="rgba(3,127,220,0.9)",this.recordCtx.beginPath(),this.drawRecordLine(this.recordCtx,this.normalRecords,12,this.recordCanvas.width),this.recordCtx.closePath(),this.recordCtx.stroke())}},{key:"drawRecordLine",value:function(t,e,n,i){var r,o=Le(e.range(this.startDrawTime,this.startDrawTime+Te.TIME_SCALE[this.timeScale]*i));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=Math.floor((a.startTime-this.startDrawTime)/Te.TIME_SCALE[this.timeScale]),l=Math.round((a.endTime-this.startDrawTime)/Te.TIME_SCALE[this.timeScale]);t.moveTo(s+this.startDrawOffset,n),t.lineTo(l+this.startDrawOffset,n)}}catch(t){o.e(t)}finally{o.f()}}},{key:"curTimeStr",get:function(){return this.tmpDate.setTime(1e3*this.curTime),Te.formatTime(this.tmpDate)}},{key:"scaleStr",get:function(){return Te.TIME_SCALE_TIP[this.timeScale]}}],[{key:"pad",value:function(t){return t<10?"0".concat(t):"".concat(t)}},{key:"formatTime",value:function(t){var e=Te.pad;return"".concat(e(t.getFullYear()),"-").concat(e(t.getMonth()+1),"-").concat(e(t.getDate())," ").concat(e(t.getHours()),":").concat(e(t.getMinutes()),":").concat(e(t.getSeconds()))}}]),n}(y.a);Me.MAX_TIME_SCALE=3,Me.TIME_SCALE=[1,10,30,60],Me.TIME_SCALE_TIP=["缩放比例: 1分钟","缩放比例: 10分钟","缩放比例: 30分钟","缩放比例: 60分钟"],p([I({default:0})],Me.prototype,"initTime",void 0),p([I({default:0})],Me.prototype,"minTime",void 0),p([I({default:0})],Me.prototype,"maxTime",void 0),p([I({default:0})],Me.prototype,"winIndex",void 0),p([I()],Me.prototype,"wsPort",void 0),p([I()],Me.prototype,"proxy",void 0);var Ne=Me=Te=p([O({components:{}})],Me),Ue=(n("1d01"),se(Ne,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timeline"},[n("canvas",{ref:"timeCanvas",staticClass:"ruler",attrs:{width:"400",height:"40"},on:{mousedown:t.mouseDown,mousemove:t.mouseMove,mouseleave:t.mouseLeave,mouseup:t.mouseUp}}),n("canvas",{ref:"recordCanvas",staticClass:"records",attrs:{width:"400",height:"40"}}),n("span",{staticClass:"scale"},[t._v(t._s(t.scaleStr))]),n("span",{staticClass:"time"},[t._v(t._s(t.curTimeStr))]),n("div",{staticClass:"time-p"})])}),[],!1,null,"85562768",null)).exports,We=(n("7da8"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"calendarPanel"},[n("div",{staticClass:"calendar-header"},[n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("preYear")}}},[t._v("<<")]),n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("preMonth")}}},[t._v("<")]),n("span",{staticClass:"currentDate"},[t._v(t._s(t.year+"年"+t.month+"月"))]),n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("nextMonth")}}},[t._v(">")]),n("span",{staticClass:"icon",on:{click:function(e){return t.changeDate("nextYear")}}},[t._v(">>")])]),n("div",{staticClass:"calendar-main"},[n("ul",{staticClass:"main-header"},t._l(t.week,(function(e,i){return n("li",{key:i},[t._v("\n "+t._s(e)+"\n ")])})),0),n("ul",{staticClass:"main"},[t._l(t.weekDay,(function(e){return n("li",{key:e,staticClass:"disabled"},[t._v("\n "+t._s(t.preMonthSize-t.weekDay+e)+"\n ")])})),t._l(t.monthList[t.month-1],(function(e){return n("li",{key:e},[n("span",{class:{currentDay:e===t.day}},[t._v("\n "+t._s(e)+"\n ")])])})),t._l(t.lastWeekDay,(function(e){return n("li",{key:e,staticClass:"disabled"},[t._v(t._s(e))])}))],2)])])});function Fe(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=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var Be,ze=function(t){u(n,t);var e=Fe(n);function n(){var t;return o(this,n),(t=e.apply(this,arguments)).year=0,t.month=0,t.day=0,t.week=["日","一","二","三","四","五","六"],t.monthList=[31,28,31,30,31,30,31,31,30,31,30,31],t.weekDay=1,t.lastWeekDay=1,t}return l(n,[{key:"created",value:function(){this.getCurrentDate(),this.initDate()}},{key:"getCurrentDate",value:function(){var t=new Date;this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate()}},{key:"getWeekDay",value:function(t,e,n){return new Date("".concat(t,"/").concat(e,"/").concat(n)).getDay()}},{key:"initDate",value:function(){this.year%4==0&&this.year%100!=0||this.year%400==0?this.monthList[1]=29:this.monthList[1]=28;var t=this.getWeekDay(this.year,this.month,1);this.weekDay=7===t?0:t;var e=this.getWeekDay(this.year,this.month,this.monthList[this.month-1]);this.lastWeekDay=7===e?6:6-e}},{key:"changeDate",value:function(t){switch(t){case"preYear":this.year-=1;break;case"preMonth":1===this.month?(this.month=12,this.year-=1):this.month-=1;break;case"nextYear":this.year+=1;break;case"nextMonth":12===this.month?(this.month=1,this.year+=1):this.month+=1}this.initDate()}},{key:"preMonthSize",get:function(){return this.month-1==0?31:this.monthList[this.month-2]}}]),n}(y.a),je=ze=p([O],ze),Ve=(n("b5f0"),se(je,We,[],!1,null,"48879689",null)).exports;function He(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=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var Ye=Be=function(t){u(n,t);var e=He(n);function n(){var t;return o(this,n),(t=e.apply(this,arguments)).pos=0,t.date=new Date,t.dragging=!1,t}return l(n,[{key:"formatTime",value:function(t){if(0===t)return"";var e=Be.pad;return this.date.setTime(1e3*t),this.utc?"".concat(e(this.date.getUTCHours()),":").concat(e(this.date.getUTCMinutes()),":").concat(e(this.date.getUTCSeconds())):"".concat(e(this.date.getHours()),":").concat(e(this.date.getMinutes()),":").concat(e(this.date.getSeconds()))}},{key:"onTimeChange",value:function(t,e){this.time>0?!this.dragging&&this.time>=this.record.startTime&&this.time<=this.record.endTime&&(this.pos=this.time):this.pos=this.record.startTime}},{key:"onDragEnd",value:function(){this.dragging=!1;var t=this.$refs.vs;this.$emit("onDrag",t.getValue())}}],[{key:"pad",value:function(t){return t<10?"0".concat(t):"".concat(t)}}]),n}(y.a);p([I({default:{startTime:0,endTime:0,type:0}})],Ye.prototype,"record",void 0),p([I({default:0})],Ye.prototype,"time",void 0),p([I({default:!1})],Ye.prototype,"utc",void 0),p([P("$attrs.time",{immediate:!0,deep:!0})],Ye.prototype,"onTimeChange",null);var Ke,qe=Ye=Be=p([O({components:{VueSlider:ke.a}})],Ye),Ge=(n("1820"),se(qe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"play-pb"},[n("vue-slider",{ref:"vs",attrs:{silent:!0,min:t.record.startTime,max:t.record.endTime,"tooltip-formatter":function(e){return t.formatTime(e)},"rail-style":{backgroundColor:"#3d3d3d"},clickable:!1},on:{dragstart:function(e){t.dragging=!0},"drag-end":t.onDragEnd},model:{value:t.pos,callback:function(e){t.pos=e},expression:"pos"}})],1)}),[],!1,null,"44448bc0",null)).exports;!function(t){t[t.STOPPED=0]="STOPPED",t[t.DOWNLOADING=1]="DOWNLOADING",t[t.DOWNLOAD_FAILED=2]="DOWNLOAD_FAILED",t[t.FINISHED=3]="FINISHED"}(Ke||(Ke={}));var $e=function(){function t(e,n,i,r){o(this,t),this.websocket=null,this.downloading=!1,this.onStatus=function(){return 1},this.onProgress=function(){return 1},this.channelId=e,this.deviceId=n,this.record=i,this.targetPath=r||""}return l(t,[{key:"start",value:function(e){var n=this,i=_t.createWebsocket(e,null);this.websocket=i;var r=_t.stringToUnix(this.record.beginTime),o=_t.stringToUnix(this.record.endTime),a=this.targetPath;return this.websocket.onopen=function(){i.send(JSON.stringify({cmd:we.CMD_INIT_CHANNEL,type:"vod"})),i.send(JSON.stringify({cmd:t.CMD_DOWNLOAD_RECORD,id:n.deviceId,startTime:r,endTime:o,path:a}))},this.websocket.onclose=function(){n.downloading&&n.onStatus(n.channelId,Ke.DOWNLOAD_FAILED,At.NETWORK_ERROR,"")},this.websocket.onerror=function(){n.downloading&&n.onStatus(n.channelId,Ke.DOWNLOAD_FAILED,At.NETWORK_ERROR,"")},this.websocket.onmessage=function(t){if("string"==typeof t.data){var e=JSON.parse(t.data);"download_status"===e.cmd?n.onStatus(n.channelId,e.status,e.code,e.path):"download_progress"===e.cmd&&n.onProgress(n.channelId,Math.min(Math.max(100*e.progress,0),99.99),e.size)}},this.downloading=!0,At.OK}},{key:"stop",value:function(){if(this.downloading=!1,null===this.websocket)return null;this.websocket.close()}}]),t}();$e.CMD_DOWNLOAD_RECORD="download_record";var Xe,Je,Qe=function(){function t(e){o(this,t),this.idSeed=1,this.channels={},this.onStatus=function(){return 1},this.onProgress=function(){return 1},this.wsPort=e}return l(t,[{key:"create",value:function(t,e,n){var i="".concat(this.idSeed),r=new $e(i,t,e,n);return r.onStatus=this.onStatus,r.onProgress=this.onProgress,this.channels[i]=r,this.idSeed+=1,i}},{key:"start",value:function(t){var e=this.channels[t];return e?e.start(this.wsPort):At.NO_TASK}},{key:"stop",value:function(t){var e=this.channels[t];return e?(e.stop(),At.OK):At.NO_TASK}},{key:"delete",value:function(t){var e=this.channels[t];return e?(e.stop(),this.channels[t]=void 0,At.OK):At.NO_TASK}},{key:"destroy",value:function(){for(var t=0,e=Object.keys(this.channels);t<e.length;t++){var n=e[t],i=this.channels[n];i&&i.stop()}this.channels={}}}]),t}();function Ze(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function tn(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return en(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function en(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function nn(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=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}!function(t){t[t.NONE=0]="NONE",t[t.SERVICE_CONNECTING=1]="SERVICE_CONNECTING",t[t.SERVICE_ESTABLISH=2]="SERVICE_ESTABLISH",t[t.CHANNEL_ESTABLISH=3]="CHANNEL_ESTABLISH",t[t.SERVICE_DISCONNECTED=4]="SERVICE_DISCONNECTED",t[t.CHANNEL_DISCONNECTED=5]="CHANNEL_DISCONNECTED",t[t.SERVICE_ERROR=6]="SERVICE_ERROR"}(Je||(Je={}));var rn=Xe=function(t){u(n,t);var e=nn(n);function n(){var t;return o(this,n),(t=e.call(this)).dcs=null,t.timeScaleIndex=2,t.isFullscreen=!1,t.fullScreenCheckTimer=0,t.ps=null,t.expandTimeline=!1,t.errorMsg="",t.wsPort=0,t.heartTimer=0,t.singleMode=!0,t.syncPlayTimer=0,t.syncPlayWindows=[],t.syncFirstTick=0,t.syncFirstTime=0,t.loaded=!1,t.downloader=null,t.lastDeviceId=null,t.wsInitChannel=null,t.windowInfos=[],t.windowLayout=null,new Promise((function(){return 1})),t}return l(n,[{key:"setLayout",value:function(t){void 0===t.combines&&(t.combines={}),null!=this.windowLayout&&this.windowLayout.setLayout(t),this.updateLayoutShow()}},{key:"openDevice",value:function(t,e,n,i){var r=this;if(null===this.windowLayout||0===this.wsPort)return!1;this.lastDeviceId=t,this.windowInfos[0].deviceInfo.id=t,this.windowInfos[0].minTime=this.windowInfos[0].deviceInfo.minTime=_t.stringToUnix(e),this.windowInfos[0].maxTime=this.windowInfos[0].deviceInfo.maxTime=_t.stringToUnix(n);var o={id:t,minTime:this.windowInfos[0].deviceInfo.minTime,maxTime:this.windowInfos[0].deviceInfo.maxTime},a=this.windowLayout.getWindow(0);return a.setDevice(o),this.singleMode=!1,this.$nextTick((function(){r.getTimeLine(0).setDevice(o),e&&n&&r.getTimeLine(0).setTime(o.minTime),i&&a.playPos(o.minTime,ge.FORWARD)})),!0}},{key:"playVodStream",value:function(t,e,n){if(this.singleMode=!0,null!==this.windowLayout){for(var i=this.windowLayout.getWindowCount(),r=0;r<i;r++)this.windowLayout.getWindow(r).stop();0!==this.syncPlayTimer&&(cancelAnimationFrame(this.syncPlayTimer),this.syncPlayTimer=0);var o=this.windowLayout.getWindow(0),a=_t.stringToUnix(e.beginTime),s=_t.stringToUnix(e.endTime),l=_t.stringToUnix(n);o.setDevice({id:t,minTime:a,maxTime:s}),this.lastDeviceId=t,o.playPos(l,ge.FORWARD)}}},{key:"stopPlay",value:function(){this.stop(0)}},{key:"getPos",value:function(){return this.callWinFunc(0,(function(t){return t.getPos()}))}},{key:"snapshot",value:function(){return this.callWinFunc(0,(function(t){return t.snapshot()}))}},{key:"stop",value:function(t){if(null!==this.windowLayout&&!(t<0||t>=this.windowInfos.length)){var e=this.windowLayout.getWindow(t);if(null!==e){if(this.windowInfos[e.index].timeline.sync){cancelAnimationFrame(this.syncPlayTimer);var n,i=tn(this.getSyncIndexes(e.index));try{for(i.s();!(n=i.n()).done;){var r=n.value;this.windowLayout.getWindow(r).stop(),this.syncPlayTimer=0}}catch(t){i.e(t)}finally{i.f()}}else e.stop();this.$emit("onStop",t)}}}},{key:"showFullscreen",value:function(){var t=this,e=this.$el;if(e.requestFullscreen)e.requestFullscreen();else if(e.mozRequestFullScreen)e.mozRequestFullScreen();else if(e.webkitRequestFullscreen)e.webkitRequestFullscreen();else{if(!e.msRequestFullscreen)return!1;e.msRequestFullscreen()}return this.isFullscreen=!0,0===this.fullScreenCheckTimer&&(this.fullScreenCheckTimer=setInterval((function(){null===document.fullscreenElement&&t.exitFullscreen()}),1e3)),!0}},{key:"exitFullscreen",value:function(){var t=document;if(t.exitFullscreen)t.exitFullscreen();else if(t.mozCancelFullScreen)t.mozCancelFullScreen();else if(t.webkitExitFullscreen)t.webkitExitFullscreen();else{if(!t.msExitFullscreen)return!1;t.msExitFullscreen()}this.isFullscreen=!1,0!==this.fullScreenCheckTimer&&(clearInterval(this.fullScreenCheckTimer),this.fullScreenCheckTimer=0)}},{key:"login",value:function(t,e,n,i){return 0===this.wsPort?At.INVALID_STATE:this.getDcs().login(t,e,n,i)}},{key:"createDownloadTask",value:function(t,e,n){return 0===this.wsPort||this.wsInitChannel&&this.wsInitChannel.isProxy()?"":this.getDownloader().create(t,e,n)}},{key:"startDownload",value:function(t){return 0===this.wsPort?At.INVALID_STATE:this.getDownloader().start(t)}},{key:"stopDownload",value:function(t){return 0===this.wsPort?At.INVALID_STATE:this.getDownloader().stop(t)}},{key:"destroyDownloadTask",value:function(t){return 0===this.wsPort?At.INVALID_STATE:this.getDownloader().delete(t)}},{key:"openFolder",value:function(t){null!=this.wsInitChannel&&this.wsInitChannel.openFolder(t)}},{key:"setExtRenderCallback",value:function(t){if(this.windowLayout){var e=this.windowLayout.getWindow(0);e&&e.setExtRenderCallback(t)}}},{key:"onLayoutChange",value:function(t,e){0!==this.wsPort&&this.setLayout(t)}},{key:"onServerChange",value:function(t,e){void 0!==this.server&&"undefined"!==this.server&&this.loaded&&this.tryLogin()}},{key:"onProgressDrag",value:function(t){var e=this.selectedWindow();null!==e&&e.moveTo(t)}},{key:"mounted",value:function(){var t=this,e=this;this.windowLayout=new de(this.$refs.win_table,(function(n,i){var r=new Se(n,i,t.wsPort,null===t.wsInitChannel?null:t.wsInitChannel.getConnectedProxyIp(),bt.VOD_CHANNEL);return r.onStatus=function(t){e.onWindowStatus(n,t)},r.onPosChange=function(t){e.onPlayPos(n,t)},r.onSnapshot=function(t,n,i){e.$emit("onSnapshot",t,n,i)},r.onPlayFinished=function(i,r){if(t.singleMode)e.$emit("onPlayFinished",n,i,r);else if(null!==e.windowLayout){var o=e.windowLayout.getWindow(n);null!==o&&e.playNext(o,r)}},r.onPlayState=function(t,n){e.$emit("onPlayState",t,n)},r})),this.windowLayout.setup(),this.wsInitChannel=new Qt(this.proxy?this.proxy:null),this.wsInitChannel.onInitOk=function(n,i){e.wsPort=i,null!==e.windowLayout&&e.setLayout(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t.layout)),e.onLoad(n)},this.wsInitChannel.onInitError=function(e,n){t.errorMsg=n,t.wsPort=0,t.$emit("onLoadFailed",n)},this.wsInitChannel.onConnectFailed=function(){t.errorMsg=$.PLUGIN_SERVICE_NOTFOUND,t.wsPort=0,t.$emit("onLoadFailed",$.PLUGIN_SERVICE_NOTFOUND)},this.wsInitChannel.onDisconnected=function(){t.errorMsg=$.PLUGIN_SERVICE_DISCONNECTED,t.wsPort=0,t.$emit("onDisconnected",$.PLUGIN_SERVICE_NOTFOUND)}}},{key:"beforeDestroy",value:function(){0!==this.syncPlayTimer&&(cancelAnimationFrame(this.syncPlayTimer),this.syncPlayTimer=0),0!==this.heartTimer&&window.clearInterval(this.heartTimer),null!==this.windowLayout&&this.windowLayout.destroy(),null!==this.ps&&(this.ps.destroy(),this.ps=null),null!==this.wsInitChannel&&this.wsInitChannel.close(),null!==this.dcs&&(this.dcs.destroy(),this.dcs=null),this.getDownloader().destroy()}},{key:"tryLogin",value:function(){this.server.length>0&&this.getDcs().loginByUrl(this.server)}},{key:"getDcs",value:function(){var t=this;return null===this.dcs&&(this.dcs=new Yt(this.wsPort,null===this.wsInitChannel?null:this.wsInitChannel.getConnectedProxyIp()),this.dcs.loginCB=function(e,n){t.$emit("onLogin",e,n)}),this.dcs}},{key:"getDownloader",value:function(){var t=this;return null===this.downloader&&(this.downloader=new Qe(this.wsPort),this.downloader.onStatus=function(e,n,i,r){t.$emit("onDownloadStatus",e,n,i,r)},this.downloader.onProgress=function(e,n,i){t.$emit("onDownloadProgress",e,n,i)}),this.downloader}},{key:"onWindowStatus",value:function(t,e){this.windowInfos[t].status=e}},{key:"onPlayPos",value:function(t,e){this.singleMode||null===this.windowLayout||this.getTimeLine(t).setTime(e)}},{key:"callWinFunc",value:function(t,e){if(null===this.windowLayout)return At.INVALID_STATE;if(t<0||t>=this.windowInfos.length)return At.INVALID_PARAM;var n=this.windowLayout.getWindow(0);return null===n?At.UNKNOWN_ERROR:e(n)}},{key:"updateLayoutShow",value:function(){if(null!==this.windowLayout){for(var t=this.windowInfos.length;t<this.windowLayout.getWindowCount();t++){var e={timeline:{time:0,scale:2,sync:!1},id:t,time:0,minTime:Math.floor(Date.now()/1e3)-172800,maxTime:Math.floor(Date.now()/1e3)+172800,deviceInfo:{id:"",streamIp:"",streamPort:0,queryIp:"",queryPort:0,name:"",minTime:0,maxTime:0},status:me.STOPPED,record:{startTime:0,endTime:0,type:0},syncPlayTimer:0};this.windowInfos.push(e)}for(;this.windowInfos.length>this.windowLayout.getWindowCount();)this.windowInfos.pop()}else this.windowInfos=[]}},{key:"onLoad",value:function(t){this.loaded=!0,this.$emit("onLoad",this,t,this.wsInitChannel&&this.wsInitChannel.isProxy()),this.tryLogin()}},{key:"getTimeLine",value:function(t){return this.$refs.timelines[t]}},{key:"onTimeLineMove",value:function(t,e){if(!this.singleMode&&this.windowInfos[t].timeline.sync)for(var n=0;n<this.windowInfos.length;n++)n!==t&&this.windowInfos[n].timeline.sync&&this.getTimeLine(n).setTime(e)}},{key:"onTimeLineRecord",value:function(t,e,n){this.singleMode||null===this.windowLayout||this.windowLayout.getWindow(t).moveTo(n)}},{key:"onToolButton",value:function(t,e){var n=this;if("scale-up"===t){if(this.timeScaleIndex<Xe.MAX_TIME_SCALE&&this.timeScaleIndex++,!this.singleMode){var i,r=tn(this.$refs.timelines);try{for(r.s();!(i=r.n()).done;)i.value.setScale(this.timeScaleIndex)}catch(t){r.e(t)}finally{r.f()}}}else if("scale-down"===t){if(this.timeScaleIndex>0&&this.timeScaleIndex--,!this.singleMode){var o,a=tn(this.$refs.timelines);try{for(a.s();!(o=a.n()).done;)o.value.setScale(this.timeScaleIndex)}catch(t){a.e(t)}finally{a.f()}}}else if("fullscreen"===t)this.showFullscreen();else if("cancel-fullscreen"===t)this.exitFullscreen();else if("expand"===t)this.expandTimeline=!0;else if("shrink"===t)this.expandTimeline=!1;else if("snap"===t){var s=this.selectedWindow();null!==s&&s.snapshot()}else if("play"===t){var l=this.selectedWindow(),c=-1===e?ge.BACKWARD:ge.FORWARD,u=this.getSyncIndexes(l.index);if(u.length>1){this.syncPlayWindows=[];var h,d=this.getTimeLine(u[0]).getTime(),f=tn(u);try{for(f.s();!(h=f.n()).done;){var p=h.value;if(null!==this.windowLayout){this.getTimeLine(p).setTime(d);var v=this.windowLayout.getWindow(p);v.syncPlay(d),this.syncPlayWindows.push(v)}}}catch(t){f.e(t)}finally{f.f()}this.syncPlayTimer=requestAnimationFrame((function(){return n.syncPlay()})),this.syncFirstTick=0,this.syncFirstTime=0}else l.play(c)}else if("stop"===t){var y=this.selectedWindow();this.stop(y.index)}else if("pause"===t){var m=this.selectedWindow();null!==m&&m.pause()}else if("back"===t){var g=this.selectedWindow();null!==g&&g.subSpeed()}else if("forward"===t){var w=this.selectedWindow();null!==w&&w.addSpeed()}else if("speed"===t){var b=e,_=this.selectedWindow();null!==_&&_.setSpeed(b)}else if("prev"===t){var x=this.selectedWindow();null!==x&&x.stepPrev()}else if("next"===t){var S=this.selectedWindow();null!==S&&S.stepNext()}}},{key:"playNext",value:function(t,e){if(ge.FORWARD===e){var n=t.posSec;t.record.endTime>0&&t.posSec<t.record.endTime&&(n=t.record.endTime);var i=this.getTimeLine(t.index).findRecord(n);null!==i&&i.startTime<=n?t.play(e):null!==i&&(t.moveTo(i.startTime),t.play(e))}}},{key:"selectedWindow",value:function(){if(null===this.windowLayout)return null;var t=this.windowLayout.getSelectedWindow();return null===t?null:t}},{key:"getSyncIndexes",value:function(t){var e=[];if(!this.windowInfos[t].timeline.sync)return e;for(var n=0;n<this.windowInfos.length;n++)this.windowInfos[n].timeline.sync&&e.push(n);return e}},{key:"syncPlay",value:function(){var t,e=this,n=72057594037927940,i=null,r=tn(this.syncPlayWindows);try{for(r.s();!(t=r.n()).done;){var o=t.value,a=o.minFrameTime();a>0&&a<n&&(n=a,i=o)}}catch(t){r.e(t)}finally{r.f()}if(null===i)this.syncFirstTick=0;else if(0===this.syncFirstTick)this.syncFirstTick=performance.now()+10,this.syncFirstTime=n,i.syncStep();else{var s=performance.now(),l=s-this.syncFirstTick-(n-this.syncFirstTime);(l>1e3||l<-1e3)&&(this.syncFirstTick=s,this.syncFirstTime=n),l>0&&i.syncStep()}requestAnimationFrame((function(){return e.syncPlay()}))}},{key:"playStatus",get:function(){var t=this.selectedWindow();return null===t?me.STOPPED:t.status}},{key:"playDirection",get:function(){var t=this.selectedWindow();return null===t?ge.FORWARD:t.direction}},{key:"currentRecord",get:function(){var t=this.selectedWindow();return null===t?{startTime:0,endTime:0,type:0}:t.record}},{key:"currentTime",get:function(){var t=this.selectedWindow();return null===t?0:t.posSec}},{key:"currentSpeed",get:function(){var t=this.selectedWindow();return null===t?1:t.speed}},{key:"syncMode",get:function(){var t=this.selectedWindow();if(null===t)return!1;if(!this.windowInfos[t.index].timeline.sync)return!1;for(var e=0;e<this.windowInfos.length;e++)if(e!==t.index&&this.windowInfos[e].timeline.sync)return!0;return!1}},{key:"showError",get:function(){return 0===this.wsPort}},{key:"timesHeight",get:function(){return this.expandTimeline?"".concat(60*this.windowInfos.length,"px"):"60px"}},{key:"timesTop",get:function(){if(this.expandTimeline||null===this.windowLayout)return"0px";var t=60*this.windowLayout.getSelectedIndex();return"-".concat(t,"px")}},{key:"proxyIp",get:function(){return this.wsInitChannel?this.wsInitChannel.getConnectedProxyIp():null}}]),n}(y.a);rn.MAX_TIME_SCALE=3,p([I({default:function(){return{rows:1,cols:1,combines:{}}}})],rn.prototype,"layout",void 0),p([I({default:"dark"})],rn.prototype,"theme",void 0),p([I({default:!1})],rn.prototype,"dbClick",void 0),p([I({default:!0})],rn.prototype,"timeLine",void 0),p([I({default:""})],rn.prototype,"server",void 0),p([I({default:""})],rn.prototype,"proxy",void 0),p([P("layout",{immediate:!0,deep:!1})],rn.prototype,"onLayoutChange",null),p([P("$attrs.server",{immediate:!0})],rn.prototype,"onServerChange",null);var on=rn=Xe=p([O({components:{ProgressBar:Ge,Calendar:Ve,VodToolBar:De,VodTimeLine:Ue}})],rn),an=(n("d3b2"),n("2ed9"),se(on,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vatvod","vatvod-"+t.theme],attrs:{vat:"vod-player",tabindex:"0"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onToolButton("cancel-fullscreen")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showError,expression:"showError"}],staticStyle:{position:"absolute",left:"0",right:"0",background:"#111111",width:"100%",height:"100%",display:"flex","z-index":"100","align-items":"center","justify-content":"center"}},[n("span",{staticClass:"vat-error err-msg"},[t._v(t._s(t.errorMsg))])]),n("div",{staticClass:"vod-wins"},[n("table",{ref:"win_table",attrs:{vat:"win-tab",cellspacing:"1"}})]),n("progress-bar",{directives:[{name:"show",rawName:"v-show",value:t.singleMode&&t.wsPort>0&&t.lastDeviceId,expression:"singleMode && wsPort > 0 && lastDeviceId"}],ref:"pb",attrs:{record:t.currentRecord,time:t.currentTime},on:{onDrag:t.onProgressDrag}}),n("vod-tool-bar",{directives:[{name:"show",rawName:"v-show",value:t.lastDeviceId,expression:"lastDeviceId"}],attrs:{"is-fullscreen":t.isFullscreen,"is-expand":t.windowInfos.length>1&&t.expandTimeline,"is-single":t.singleMode||!t.timeLine,"play-status":t.playStatus,"play-direction":t.playDirection,speed:t.currentSpeed,"sync-mode":t.syncMode},on:{onBtnClick:t.onToolButton}}),!t.singleMode&&t.timeLine?n("div",{ref:"times",staticClass:"vod-times",style:{height:t.timesHeight,overflow:"hidden"}},[n("div",{staticClass:"times-panel",style:{left:0,top:t.timesTop}},t._l(t.windowInfos,(function(e){return n("div",{key:e.id,staticClass:"vod-time-row"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.windowInfos.length>1&&t.expandTimeline,expression:"windowInfos.length > 1 && expandTimeline"}],staticClass:"vod-time-left"},[n("label",[t._v(t._s(e.deviceInfo.name))]),n("label",[t._v("\n 同步\n "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.timeline.sync,expression:"win.timeline.sync"}],attrs:{type:"checkbox",disabled:t.syncPlayTimer>0||0!==e.status},domProps:{checked:Array.isArray(e.timeline.sync)?t._i(e.timeline.sync,null)>-1:e.timeline.sync},on:{change:function(n){var i=e.timeline.sync,r=n.target,o=!!r.checked;if(Array.isArray(i)){var a=t._i(i,null);r.checked?a<0&&t.$set(e.timeline,"sync",i.concat([null])):a>-1&&t.$set(e.timeline,"sync",i.slice(0,a).concat(i.slice(a+1)))}else t.$set(e.timeline,"sync",o)}}})])]),n("vod-time-line",{key:e.id,ref:"timelines",refInFor:!0,attrs:{"win-index":e.id,"min-time":e.minTime,"max-time":e.maxTime,"ws-port":t.wsPort,proxy:t.proxyIp},on:{onMove:t.onTimeLineMove,onRecord:t.onTimeLineRecord}})],1)})),0)]):t._e()],1)}),[],!1,null,"7eb6e3ed",null)).exports;function sn(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ln(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ln(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ln(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function cn(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=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}var un=function(t){u(n,t);var e=cn(n);function n(){var t;return o(this,n),(t=e.call(this)).isFullscreen=!1,t.fullScreenCheckTimer=0,t.errorMsg="",t.wsPort=0,t.loaded=!1,t.fileOpened=!1,t.wsInitChannel=null,t.initPos=0,t.windowLayout=null,new Promise((function(){return 1})),t}return l(n,[{key:"setLayout",value:function(t){void 0===t.combines&&(t.combines={}),null!=this.windowLayout&&this.windowLayout.setLayout(t)}},{key:"playFile",value:function(t,e){if(null===this.windowLayout)return At.INVALID_STATE;for(var n=this.windowLayout.getWindowCount(),i=0;i<n;i++)this.windowLayout.getWindow(i).stop();var r,o=this.windowLayout.getWindow(0),a=[],s=sn(this.addrs);try{for(s.s();!(r=s.n()).done;){var l=r.value.split(":",2);if(2!==l.length)return At.INVALID_PARAM;a.push({addr:l[0],port:parseInt(l[1],10)})}}catch(t){s.e(t)}finally{s.f()}return o.setFile({addrs:a,pool:this.pool,username:this.username,password:this.password,path:t}),this.initPos=e||0,At.OK}},{key:"stopPlay",value:function(){return this.stop(0),At.OK}},{key:"getPos",value:function(){return this.callWinFunc(0,(function(t){return t.getPos()}))}},{key:"snapshot",value:function(){return this.callWinFunc(0,(function(t){return t.snapshot()}))}},{key:"stop",value:function(t){if(null!==this.windowLayout){var e=this.windowLayout.getWindow(t);null!==e&&(e.stop(),this.$emit("onStop",t))}}},{key:"showFullscreen",value:function(){var t=this,e=this.$el;if(e.requestFullscreen)e.requestFullscreen();else if(e.mozRequestFullScreen)e.mozRequestFullScreen();else if(e.webkitRequestFullscreen)e.webkitRequestFullscreen();else{if(!e.msRequestFullscreen)return!1;e.msRequestFullscreen()}return this.isFullscreen=!0,0===this.fullScreenCheckTimer&&(this.fullScreenCheckTimer=setInterval((function(){null===document.fullscreenElement&&t.exitFullscreen()}),1e3)),!0}},{key:"exitFullscreen",value:function(){var t=document;if(t.exitFullscreen)t.exitFullscreen();else if(t.mozCancelFullScreen)t.mozCancelFullScreen();else if(t.webkitExitFullscreen)t.webkitExitFullscreen();else{if(!t.msExitFullscreen)return!1;t.msExitFullscreen()}this.isFullscreen=!1,0!==this.fullScreenCheckTimer&&(clearInterval(this.fullScreenCheckTimer),this.fullScreenCheckTimer=0)}},{key:"onProgressDrag",value:function(t){var e=this.selectedWindow();null!==e&&e.moveTo(t)}},{key:"mounted",value:function(){var t=this,e=this;this.windowLayout=new de(this.$refs.win_table,(function(n,i){var r=new Se(n,i,t.wsPort,null===t.wsInitChannel?null:t.wsInitChannel.getConnectedProxyIp(),bt.FILE_CHANNEL);return r.onStatus=function(t){},r.onPosChange=function(t){},r.onSnapshot=function(t,n,i){e.$emit("onSnapshot",t,n,i)},r.onPlayFinished=function(t,i){e.$emit("onPlayFinished",n,t,i)},r.onPlayState=function(t,n){e.$emit("onPlayState",t,n)},r.onOpenFileState=function(n,i){0===n?(r.record.startTime=0,r.record.endTime=Math.floor(i/1e3),t.fileOpened=!0,r.playPos(t.initPos,ge.FORWARD)):(t.errorMsg="打开文件失败 ("+n+")",e.$emit("onPlayState",!1,n))},r})),this.windowLayout.setup(),this.wsInitChannel=new Qt(this.proxy?this.proxy:null),this.wsInitChannel.onInitOk=function(t,n){e.wsPort=n,null!==e.windowLayout&&e.setLayout({rows:1,cols:1,combines:{}}),e.onLoad(t)},this.wsInitChannel.onInitError=function(e,n){t.errorMsg=n,t.wsPort=0,t.$emit("onLoadFailed",n)},this.wsInitChannel.onConnectFailed=function(){t.errorMsg=$.PLUGIN_SERVICE_NOTFOUND,t.wsPort=0,t.$emit("onLoadFailed",$.PLUGIN_SERVICE_NOTFOUND)},this.wsInitChannel.onDisconnected=function(){t.errorMsg=$.PLUGIN_SERVICE_DISCONNECTED,t.wsPort=0,t.$emit("onDisconnected",$.PLUGIN_SERVICE_NOTFOUND)}}},{key:"beforeDestroy",value:function(){null!==this.windowLayout&&this.windowLayout.destroy(),null!==this.wsInitChannel&&this.wsInitChannel.close()}},{key:"callWinFunc",value:function(t,e){if(null===this.windowLayout)return At.INVALID_STATE;var n=this.windowLayout.getWindow(0);return null===n?At.UNKNOWN_ERROR:e(n)}},{key:"onLoad",value:function(t){this.loaded=!0,this.$emit("onLoad",this,t,this.wsInitChannel&&this.wsInitChannel.isProxy())}},{key:"onToolButton",value:function(t,e){if("fullscreen"===t)this.showFullscreen();else if("cancel-fullscreen"===t)this.exitFullscreen();else if("snap"===t){var n=this.selectedWindow();null!==n&&n.snapshot()}else if("play"===t){var i=this.selectedWindow(),r=-1===e?ge.BACKWARD:ge.FORWARD;i.play(r)}else if("stop"===t){var o=this.selectedWindow();this.stop(o.index)}else if("pause"===t){var a=this.selectedWindow();null!==a&&a.pause()}else if("back"===t){var s=this.selectedWindow();null!==s&&s.subSpeed()}else if("forward"===t){var l=this.selectedWindow();null!==l&&l.addSpeed()}else if("speed"===t){var c=e,u=this.selectedWindow();null!==u&&u.setSpeed(c)}else if("prev"===t){var h=this.selectedWindow();null!==h&&h.stepPrev()}else if("next"===t){var d=this.selectedWindow();null!==d&&d.stepNext()}}},{key:"selectedWindow",value:function(){if(null===this.windowLayout)return null;var t=this.windowLayout.getSelectedWindow();return null===t?null:t}},{key:"playStatus",get:function(){var t=this.selectedWindow();return null===t?me.STOPPED:t.status}},{key:"playDirection",get:function(){var t=this.selectedWindow();return null===t?ge.FORWARD:t.direction}},{key:"currentRecord",get:function(){var t=this.selectedWindow();return null===t?{startTime:0,endTime:0,type:0}:t.record}},{key:"currentTime",get:function(){var t=this.selectedWindow();return null===t?0:t.posSec}},{key:"currentSpeed",get:function(){var t=this.selectedWindow();return null===t?1:t.speed}},{key:"showError",get:function(){return 0===this.wsPort||this.errorMsg}},{key:"proxyIp",get:function(){return this.wsInitChannel?this.wsInitChannel.getConnectedProxyIp():null}}]),n}(y.a);un.MAX_TIME_SCALE=3,p([I({default:"dark"})],un.prototype,"theme",void 0),p([I({default:""})],un.prototype,"proxy",void 0),p([I({default:[]})],un.prototype,"addrs",void 0),p([I({default:""})],un.prototype,"username",void 0),p([I({default:""})],un.prototype,"password",void 0),p([I({default:""})],un.prototype,"pool",void 0);var hn=un=p([O({components:{ProgressBar:Ge,VodToolBar:De}})],un),dn=(n("7aa1"),n("227c"),se(hn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["vatvod","vatvod-"+t.theme],attrs:{vat:"vod-player",tabindex:"0"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onToolButton("cancel-fullscreen")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showError,expression:"showError"}],staticStyle:{position:"absolute",left:"0",right:"0",background:"#111111",width:"100%",height:"100%",display:"flex","z-index":"100","align-items":"center","justify-content":"center"}},[n("span",{staticClass:"vat-error err-msg"},[t._v(t._s(t.errorMsg))])]),n("div",{staticClass:"vod-wins"},[n("table",{ref:"win_table",attrs:{vat:"win-tab",cellspacing:"1"}})]),n("progress-bar",{directives:[{name:"show",rawName:"v-show",value:t.wsPort>0&&t.fileOpened,expression:" wsPort > 0 && fileOpened"}],ref:"pb",attrs:{utc:!0,record:t.currentRecord,time:t.currentTime},on:{onDrag:t.onProgressDrag}}),n("vod-tool-bar",{directives:[{name:"show",rawName:"v-show",value:t.fileOpened,expression:"fileOpened"}],attrs:{"is-fullscreen":t.isFullscreen,"is-expand":!1,"is-single":!0,"play-status":t.playStatus,"play-direction":t.playDirection,speed:t.currentSpeed,"sync-mode":!1,"no-back":!0},on:{onBtnClick:t.onToolButton}})],1)}),[],!1,null,"9bb76214",null)).exports,fn=n("c0e8"),pn={install:function(t,e){t.component("live-player",le),t.component("vod-player",an),t.component("vod-file-player",dn)}};e.default=pn}})},"object"===s(e)&&"object"===s(t)?t.exports=a(n(4)):(r=[],void 0===(o="function"==typeof(i=a)?i.apply(e,r):i)||(t.exports=o))}).call(this,n(32)(t))},,,,,,function(t,e,n){(e=n(2)(!1)).push([t.i,'@font-face {\n font-family: "qz-player";\n src: url(data:application/x-font-woff;base64,d09GRgABAAAAAASwAAsAAAAAB1QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFYz/UCgY21hcAAAAYQAAABgAAABqOs5EjVnbHlmAAAB5AAAANIAAAEkmlTsGmhlYWQAAAK4AAAALwAAADYXuckiaGhlYQAAAugAAAAXAAAAJACeAFZobXR4AAADAAAAABAAAAAYAU8AAGxvY2EAAAMQAAAADgAAAA4BVgDobWF4cAAAAyAAAAAfAAAAIAETAENuYW1lAAADQAAAAS8AAAIieIN8EHBvc3QAAARwAAAAPgAAAFWUfn3KeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGSwYJzAwMrAwGDEYAYkuaC0KgMzgwgDAxMDKzMDVhCQ5prC4PCK8RUrgx+Qyw4kGYE0CDMAAOeaBg4AAHic7ZGxDcRACAQHHzh4fSUvl+LYkfsProkzC1+GkWYRK0SwAAGM5Egc7MZQXela+YNP+c6vdlz+jLVSTZqzl26567poO299S8//FEqrqfy2BvXR6A/TGyU6oyEeULURXXicbY9La8MwEIR3JFmvNpaT2NalheCUKFc/sMCQ1Kce1f//a1I59NYOLCzMt8MscaLHg74pEac3moni2Jzj1MnGt3WJLkTVO/jYjsMdUxi8iv0ngrp0JWrft8N8w2W6Ayl9MQZuSieZBgSXylb2wyhhASb0cW8KMBTapRSRJSunmRJgVnGzP3ghGfAiC1vVZvP1oTREjDYttOZN5nbKh3MzLiGE3W49nW4L/WVyx/yE/IeZM8NJ/X6Zxzr37tyalV08memZs6W8Xq/5nH4Al/cY5AAAeJxjYGRgYADi8M/XbsTz23xl4GbwA4ow3FE9ehRB///P4A8W52BgAokCAHPFDK4AeJxjYGRgYPBjAAF/KMnIgArYABdkAPUAeJxjYAACfyB2QMUADvUBUAAAAAAAUABiAHQAhgCSAAB4nGNgZGBgYGMwZ2BmAAEmIOYCQgaG/2A+AwAOkAFXAHicbZBLbsIwFEVvIFAVpAq1UqXOrA46qQifAQMWAHMGzAM4fJTEwRgkWEBX0DV0DV1Bh11Dl8KN+8SgxZaezju+fpEDoIUvBChXgFtfy1XBDbtfrpJawiH5SbiGJp6F6/Rt4QZeMRBu4gExJwRhOe0eTriCO7wJV+nfhUPyh3ANj/gUrtN/CzcwxY9wEy/BYHtqF2l81Hail/s0tpf+AlNtd2uTq17UvbixzrWNnV6o2VHtDsu+c4lKrMnUyOROp6lRhTUbPXfRyrli2Okk4qO5ybDFiS8ukPJ9R2hYTFiX2Htjr5z/N1Nfd1jDIIdCDxG6V3Jj1txTzD+osWB2xjPFuwd+s0/rkLBPmDHISCM/s0yn3Iam8Gcbmjl9hJW/VWCIDnfyJx8xxUlnKiFhMgB4nGNgYsAP2BiZGJkZWRhZGdkY2RnYEovyS/NSOJISk7PLE4tS2NPyi0A0a0FiaXEqa3FJYlEJAwMAD5oNUgAA) format(\'woff\');\n}\n\n.qz-player-icon {\n font-family: "qz-player" !important;\n font-size: 16px;\n font-style: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.around::before {\n content: "\\ea01";\n}\n\n.backward::before {\n content: "\\ea02";\n}\n\n.forward::before {\n content: "\\ea03";\n}\n\n.pause::before {\n content: "\\ea04";\n}\n\n.start::before {\n content: "\\ea05";\n}\n',""]),t.exports=e},function(t,n){t.exports=e},,,,,,,,,,,,function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";var i=n(8);n.n(i).a},function(t,e,n){(e=n(2)(!1)).push([t.i,".rtsp-player-component{position:relative}.rtsp-player-component .new-version-tip{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;vertical-align:middle;font-size:20px;color:red;display:flex;flex-flow:column;align-items:center;justify-content:center;background-color:#080808}.rtsp-player-component .new-version-tip .vat-down{color:red;padding-left:32px;height:32px;display:inline-block;cursor:pointer;background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M128 806.4h768V896H128v-89.6zM732.288 528l-176.5 186.138c-10.95 11.206-26.412 18.49-43.788 18.49s-32.832-7.284-43.603-18.606l-176.87-185.888c-9.23-10.022-15.111-22.97-15.111-37.324 0-30.816 26.38-55.802 58.9-55.802.454 0 .895.058 1.343.07v-.352h116.435V297.94c0-30.835 26.388-55.82 58.9-55.82 32.53 0 58.905 24.979 58.905 55.82v136.787h114.285v.448c1.165-.064 2.31-.179 3.5-.179 32.526 0 58.9 24.992 58.9 55.815.006 14.355-5.882 27.296-15.296 37.19zM416 128h192v324.8H416V128z' fill='%231bb90a'/%3E%3C/svg%3E\");background-repeat:no-repeat}.rtsp-player-component .new-version-tip .vat-down span{display:table-cell;vertical-align:middle;height:32px}.rtsp-player-component .img,.rtsp-player-component .player,.rtsp-player-component .error-message{position:absolute;height:100%;width:100%;top:0;left:0}.rtsp-player-component .img{z-index:100;background-repeat:no-repeat;background-size:100% 100%;border:2px solid #fff0;box-sizing:border-box}.rtsp-player-component .error-message{z-index:100;color:#f56c6c;display:flex;justify-content:center;align-items:center}.rtsp-player-component .error-message .reconnect{cursor:pointer;color:#409eff}.fc-player .rtsp-player .el-loading-mask{background-color:#101010}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(9);n.n(i).a},function(t,e,n){var i=n(2),r=n(19);(e=i(!1)).i(r),e.push([t.i,".player-control-bar{position:absolute;z-index:3;display:flex;justify-content:center;width:100%;height:60px;bottom:135px}.player-control-bar .center{display:flex;align-items:center;justify-content:center;width:180px}.player-control-bar .center .qz-player-control-icon{font-size:18px;margin:0 16px;cursor:pointer;transition:all .3s}.player-control-bar .center .qz-player-control-icon.start,.player-control-bar .center .qz-player-control-icon.pause{font-size:30px}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(10);n.n(i).a},function(t,e,n){(e=n(2)(!1)).push([t.i,".player-time-select-bar{position:relative;z-index:2;display:flex;padding:0 10px;height:60px;border-top:1px solid}.player-time-select-bar .calendar{flex:1;display:flex;align-items:center}.player-time-select-bar .calendar .title{margin-left:20px;margin-right:20px;font-size:14px;color:#fff}.player-time-select-bar .calendar .el-date-editor{width:160px}.player-time-select-bar .calendar .el-date-editor .el-input__inner{border-radius:2px}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(11);n.n(i).a},function(t,e,n){(e=n(2)(!1)).push([t.i,".player-progress-bar{position:relative;z-index:2;height:75px}.player-progress-bar .progress-outer{height:100%;background:#505f67}.player-progress-bar .progress-outer .time-title{font-size:14px;font-weight:bold}.player-progress-bar .progress-outer .time-rect{width:160px;height:30px}.player-progress-bar .progress-outer .ticks-container{background-color:#000}.player-progress-bar .progress-outer .ticks-container .enter{font-size:12px;font-weight:normal;user-select:none}.player-progress-bar .progress-outer .ticks-container .update{fill:#333}",""]),t.exports=e},function(t,e,n){"use strict";var i=n(12);n.n(i).a},function(t,e,n){var i=n(2),r=n(19);(e=i(!1)).i(r),e.push([t.i,'.qz-player{position:relative;z-index:1;height:100%;width:100%}.qz-player .el-loading-mask{background-color:#10101080}.qz-player .el-loading-mask .el-loading-spinner{margin-top:0;transform:translateY(-50%)}.qz-player .el-loading-mask .el-loading-spinner .circular{background-color:#2f4c5c;border-radius:100%;padding:9px}.qz-player .el-loading-mask .el-loading-spinner .circular .path{stroke-width:3px}.qz-player .load-fail-mask{background-color:#72849b;width:100%;height:100%;display:flex;flex-flow:column;align-items:center;justify-content:center}.qz-player .load-fail-mask .fail-icon{width:39px;height:39px}.qz-player .load-fail-mask .error-text{margin-top:20px;margin-bottom:20px;font-size:16px;color:#e1e9ee}.qz-player .load-fail-mask .download-button{min-width:80px}.qz-player .rtsp-player{position:relative;z-index:2;height:100%}.qz-player .rtsp-player.playback-player-rtsp{height:calc(100% - 135px)}.qz-player .start-player-icon{position:absolute;z-index:998;width:60px;height:60px;left:50%;top:50%;transform:translate(calc(-50% + 2px), -50%);background-repeat:no-repeat;background-size:100%;background-position:center;cursor:pointer;opacity:.9;border-radius:100%;font-size:20px}.qz-player .start-player-icon::before{position:absolute;left:50%;top:50%;transform:translate(calc(-50% + 2px), -50%)}.qz-player .player-control-bar{opacity:0;transition:all .3s}.qz-player .player-control-bar:hover,.qz-player .playback-player:hover+.player-control-bar{opacity:1}.qz-player.light-theme .start-player-icon{color:#0091ff;background-color:#fff;box-shadow:0px 0px 30px 0px rgba(255,255,255,.5),0px 5px 15px 0px rgba(255,255,255,.3)}.qz-player.light-theme .el-loading-mask .el-loading-spinner .circular{background-color:#fff}.qz-player.light-theme .el-loading-mask .el-loading-spinner .circular .path{stroke:#0091ff}.qz-player.light-theme .player-control-bar{background-color:rgba(255,255,255,.9);color:#7b858f}.qz-player.light-theme .player-control-bar .qz-player-control-icon:hover{color:#0091ff}.qz-player.light-theme .player-progress-bar .progress-outer{background:#fff}.qz-player.light-theme .player-progress-bar .times-tick{fill:#666}.qz-player.light-theme .player-progress-bar .tick-path{stroke:#dde0e7}.qz-player.light-theme .player-progress-bar .time-title{fill:#fff}.qz-player.light-theme .player-progress-bar .time-rect{fill:#0091ff}.qz-player.light-theme .player-progress-bar .available-path,.qz-player.light-theme .player-progress-bar .domain{stroke:#0091ff}.qz-player.light-theme .player-time-select-bar{border-top-color:#f1f2f5;background-color:#fff}.qz-player.light-theme .player-time-select-bar .title{color:#333}.qz-player.light-theme .player-time-select-bar .el-date-editor .el-input__inner{color:#333;border-color:#e3e6ec;background-color:#fff}.qz-player.dark-theme .start-player-icon{color:#ffc124;background-color:#2f4c5c;box-shadow:0px 0px 30px 0px rgba(0,0,0,.5),0px 5px 15px 0px rgba(0,0,0,.3)}.qz-player.dark-theme .el-loading-mask .el-loading-spinner .circular{background-color:#2f4c5c}.qz-player.dark-theme .el-loading-mask .el-loading-spinner .circular .path{stroke:#fff}.qz-player.dark-theme .player-control-bar{background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #18272f 100%)}.qz-player.dark-theme .player-control-bar .qz-player-control-icon:hover{color:#ffc124}.qz-player.dark-theme .player-progress-bar .progress-outer{background:#505f67}.qz-player.dark-theme .player-progress-bar .times-tick{fill:#fff}.qz-player.dark-theme .player-progress-bar .tick-path{stroke:#868f94}.qz-player.dark-theme .player-progress-bar .time-title{fill:#38474f}.qz-player.dark-theme .player-progress-bar .time-rect{fill:#ffc124}.qz-player.dark-theme .player-progress-bar .available-path,.qz-player.dark-theme .player-progress-bar .domain{stroke:#ffc124}.qz-player.dark-theme .player-time-select-bar{border-top-color:#6e7f88;background-color:#6e7f88}.qz-player.dark-theme .player-time-select-bar .title{color:#fff}.qz-player.dark-theme .player-time-select-bar .el-date-editor .el-input__inner{color:#fff;border-color:#586870;background-color:#586870}.el-picker-panel.qz-player-date-picker.dark-theme{border-radius:2px;background-color:#3c4852;border-color:#3c4852}.el-picker-panel.qz-player-date-picker.dark-theme .el-date-picker__header .el-picker-panel__icon-btn{color:#ffc124}.el-picker-panel.qz-player-date-picker.dark-theme .el-date-picker__header .el-date-picker__header-label{color:#e1e9ee}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table th{color:#e1e9ee;border-bottom:1px solid;border-color:#56646e}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.available span{color:#e1e9ee}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.current:not(.disabled) span{background-color:#ffc124;border-radius:2px;color:#38474f}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.prev-month span{color:#8e989e}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.next-month span{color:#8e989e}.el-picker-panel.qz-player-date-picker.dark-theme .el-picker-panel__content .el-date-table td.today span{background-color:#2e3a40;border-radius:2px}.el-picker-panel.qz-player-date-picker.dark-theme td.available.has-video div{position:relative}.el-picker-panel.qz-player-date-picker.dark-theme td.available.has-video div::after{content:"";position:absolute;height:4px;width:4px;border-radius:100%;background-color:#d8d8d8;bottom:-2px;left:50%;transform:translate(-50%, 0px)}.qz-player-date-picker.dark-theme.el-popper[x-placement^=top] .popper__arrow{border-top-color:#3c4852}.qz-player-date-picker.dark-theme.el-popper[x-placement^=top] .popper__arrow::after{border-top-color:#3c4852}',""]),t.exports=e},function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"renderPlayer",class:"qz-player "+(t.basicConfig&&t.basicConfig.theme||"light-theme"),style:{height:t.playerHeight?t.playerHeight+"px":""}},[t.pluginLoadSuccess?[n("rtsp-player",{ref:"player",staticClass:"rtsp-player",class:"playback"===t.type&&""===t.playerServer&&t.showControlBar?"playback-player-rtsp":"",attrs:{type:t.type,urls:t.urls,config:t.basicConfig,pluginUrl:t.pluginUrl,playerServer:t.playerServer,fileServer:t.fileServer,vodTime:t.vodTime,errorCode:t.errorCode},on:{pluginOnload:t.pluginOnload,pluginStatus:t.pluginStatusChange,pluginOnLogin:t.playerOnLogin,onStreamStatus:t.onStreamStatus,onPlayFinished:t.onPlayFinished,reconnect:t.reconnect,onWinSwap:t.onWinSwap,onWinOp:t.onWinOp,onWinDrop:t.onWinDrop,onDownloadStatus:t.onDownloadStatus,onDownloadProgress:t.onDownloadProgress,onAudioState:t.onAudioState,onRecord:t.onRecord}}),t._v(" "),"live"===t.type&&!this.isPlaying&&t.pluginLoadSuccess&&!t.basicConfig.autoPlay&&t.showPlayBtn?n("div",{staticClass:"start-player-icon start qz-player-icon",on:{click:t.controlIconClick}}):t._e(),t._v(" "),"playback"===t.type&&""===t.playerServer&&t.showControlBar?[n("player-control-bar",{attrs:{type:t.type,paused:t.paused,date:t.date},on:{"update:paused":function(e){t.paused=e},play:t.play,pause:t.pause,backward:t.backward,forward:t.forward}}),t._v(" "),n("player-progress-bar",{ref:"playerProgressBar",attrs:{theme:t.basicConfig&&t.basicConfig.theme||"light-theme",currentTimeProp:t.date},on:{"update:currentTimeProp":function(e){t.date=e},"update:current-time-prop":function(e){t.date=e},updateBackwordList:t.onUpdateBackwordList,updateForwardList:t.onUpdateForwardList,updateCurrentPlay:t.onUpdateCurrentPlay,updatePlayState:t.onUpdatePlayState}}),t._v(" "),n("player-time-select-bar",{attrs:{date:t.date,config:t.basicConfig,theme:t.basicConfig&&t.basicConfig.theme||"light-theme",monthRecord:t.monthRecord},on:{"update:date":t.dateChange,focus:t.dateFocus},scopedSlots:t._u([{key:"datePicker",fn:function(e){return[t._t("datePicker",null,{datePicker:e})]}}],null,!0)})]:t._e()]:[n("div",{staticClass:"load-fail-mask"},[n("img",{staticClass:"fail-icon",attrs:{src:t.imgAround,alt:""}}),t._v(" "),n("p",{staticClass:"error-text"},[t._v(t._s(t.loadFailedMsg))]),t._v(" "),n("player-button",{attrs:{type:"primary",size:t.basicConfig.buttonSize},on:{click:t.downloadPlugin}},[t._v("下载")])],1)]],2)};i._withStripped=!0;var r=n(4),o=n.n(r),a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rtsp-player-component"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.img,expression:"img"}],staticClass:"img",style:{backgroundImage:t.img?"url("+t.img+")":""}}),t._v(" "),"file"===t.type?[n("vod-file-player",{ref:"player",attrs:{addrs:t.fileServer.addrs,username:t.fileServer.username,password:t.fileServer.password,pool:t.fileServer.pool,proxy:t.fileServer.proxy},on:{onLoad:t.pluginOnload,onPlayState:t.onPlayState,onPlayFinished:t.onPlayFinished}})]:t.isDcsPlayback?[n("vod-player",{ref:"player",attrs:{theme:"dark",server:t.playerServer},on:{onLoad:t.pluginOnload,onLoadFailed:t.pluginOnloadFailed,onDisconnected:t.pluginOnDisconnected,onLogin:t.onLogin,onPlayState:t.onPlayState,onPlayFinished:t.onPlayFinished,onDownloadStatus:t.onDownloadStatus,onDownloadProgress:t.onDownloadProgress}})]:[t.isNewPlayer?n("live-player",{ref:"player",attrs:{theme:"dark",config:t.playerConfig,server:t.playerServer},on:{onLoad:t.pluginOnload,onLoadFailed:t.pluginOnloadFailed,onDisconnected:t.pluginOnDisconnected,onLogin:t.onLogin,onStreamStatus:t.onStreamStatus,onAudioState:t.onAudioState,onSnapshot:t.onSnapshot,onWinOp:t.onWinOp,onRecord:t.onRecord}}):t._e()],t._v(" "),t.isNewPlayer?t._e():n("div",{staticClass:"new-version-tip vatrender"},[n("div",[t._v("请下载最新的插件")]),t._v(" "),n("a",{staticClass:"vat-down",attrs:{href:t.pluginDownloadUrl}},[n("span",[t._v("下载")])])]),t._v(" "),t.singleScreen&&3===t.statusCode?n("div",{staticClass:"error-message"},[n("span",[t._v("连接失败!")]),t._v(" "),n("span",{staticClass:"reconnect",on:{click:function(e){return t.$emit("reconnect")}}},[t._v("重新连接")]),t._v(" "),-1===t.errorCode?n("div",[t._v("获取失败,请检查设备状态是否正常!")]):t._e()]):t._e(),t._v(" "),t.singleScreen&&-1===t.statusCode?n("div",{staticClass:"error-message"},[t._v("\n 获取失败,请检查设备状态是否正常!\n ")]):t._e()],2)};a._withStripped=!0;var s,l=n(13);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={name:"RtspPlayer",props:{type:{type:String,required:!1},urls:{type:Array,required:!1},errorCode:{type:Number,required:!1},config:{type:Object,required:!1,default:function(){}},playerServer:{type:String,default:""},fileServer:{type:Object,default:function(){}},pluginUrl:{type:String,default:""},vodTime:{type:Object,default:function(){}}},components:{LivePlayer:l.LivePlayer,VodPlayer:l.VodPlayer,VodFilePlayer:l.VodFilePlayer},computed:{pluginDownloadUrl:function(){var t="./player/DCSPlugin-".concat(this.require_version,".exe");return this.pluginUrl||t},isDcsPlayback:function(){return"playback"===this.type&&this.urls.length>0&&this.urls[0].dcs}},data:function(){return{img:"",isPluginLoaded:!1,isLogin:!1,loading:!1,playerConfig:{titleBar:!0,toolBar:!0,roiMenu:!1,dragWindow:!0,dbClick:!0},singleScreen:!0,isNewPlayer:!0,installed_version:"",statusCode:2,require_version:"",dcs:null,currentRenderId:null,dragLayerList:[]}},methods:(s={pluginOnload:function(t,e,n){if(this.installed_version=e,this.require_version===this.installed_version){if(this.isPluginLoaded=!0,!this.isDcsPlayback){var i=this.playerConfig.layout.rows||1,r=this.playerConfig.layout.cols||1,o=this.playerConfig.layout.combines||{};this.$refs.player.setLayout({rows:i,cols:r,combines:o}),this.singleScreen=1===i&&1===r}this.bindDrop(),this.$emit("pluginOnload",this.isPluginLoaded,n),this.urls&&0!==this.urls.length&&this.config.autoPlay&&this.play()}else this.isNewPlayer=!1},pluginOnloadFailed:function(t){this.$emit("pluginStatus","pluginOnloadFailed",t,this.pluginDownloadUrl)},pluginOnDisconnected:function(t){this.$emit("pluginStatus","pluginOnDisconnected",t,this.pluginDownloadUrl)},onLogin:function(t,e){this.isLogin=t,this.dcs=this.$refs.player&&this.$refs.player.dcs,this.$emit("pluginOnLogin",this.isLogin)},onStreamStatus:function(t,e,n){if(this.statusCode=e,2===e&&(this.$parent.loading=!1,this.img=""),3===e)try{var i=this.getLayout().streams,r=-1;for(var o in i)if(t+""==i[o].id+""){r=Number(o);break}this.stop(r)}catch(t){}var a=-1;try{a=Number(this.getStreamItem(t,"id").index)}catch(t){}this.$emit("onStreamStatus",{id:t,status:e,code:n,errorText:this.getErrorText(n),index:a})},onAudioState:function(t,e,n,i,r){this.$emit("onAudioState",t,e,n,i,r)},onPlayState:function(t,e){t?(this.hideLoading(),this.img=""):this.stop,this.$emit("onStreamStatus",{index:0,status:t?2:-1,code:e,errorText:this.getErrorText(e)})},onPlayFinished:function(t,e,n){this.$emit("onPlayFinished",t,e,n)},onSnapshot:function(t,e){this.$emit("snapshot",t,e)},onDownloadStatus:function(t,e,n,i){this.$emit("onDownloadStatus",t,e,n,i)},onDownloadProgress:function(t,e,n){this.$emit("onDownloadProgress",t,e,n)},onRecord:function(t,e,n){this.$emit("onRecord",t,e,n)},onWinOp:function(t,e,n){var i={},r=0,o=this.getLayout().streams;for(var a in o)if(e===o[a].id){r=Number(a),i=o[a];break}"swap"===n?this.$emit("onWinSwap",{index:t,swapTargetIndex:r,streamItem:i,state:n}):this.$emit("onWinOp",{index:t,streamItem:i,state:n})},streamPlay:function(t){1===this.playerConfig.layout.rows&&1===this.playerConfig.layout.cols?this.urls.length>0&&(this.showLoading(),this.openStreamInServer(0,this.urls[0])):void 0!==t?(this.showLoading(),this.openStreamInServer(t,this.urls[t])):(this.showLoading(),this.multiplePlayStream())},streamClose:function(t){this.isPluginLoaded&&(void 0!==t?this.$refs.player.closeStream(t):this.$refs.player.closeStream(-1))},capture:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.isPluginLoaded)return this.$refs.player.snapshot(e),new Promise((function(e){t.$on("snapshot",(function(t,n){e({id:t,data:n})}))}))},play:function(t){this.isPluginLoaded&&(this.playerServer&&!this.isLogin||this.streamPlay(t))},pause:function(){var t=this;if(this.isPluginLoaded)return new Promise((function(e,n){t.capture().then((function(n){var i=n.data;t.img=i,t.streamClose(),e()}))}))},stop:function(t){this.hideLoading(),this.isPluginLoaded&&this.closeStreamInServer(t)},openStreamInServer:function(t,e,n){if(e){var i="".concat(e.dcs?"dcs://":"").concat(e.rtspUrl),r=u({id:+new Date,url:i},n||{});this.currentRenderId=r.id,"live"===this.type?(this.$refs.player.openStreamEx(t,r),this.$emit("onStreamStatus",{id:r.id,status:1,code:0,errorText:this.getErrorText(0),index:t})):"playback"===this.type?e.dcs?(this.hideLoading(),this.vodTime&&Object.keys(this.vodTime).length>0&&this.vodTime.beginTime&&this.vodTime.endTime?this.$refs.player.playVodStream&&this.$refs.player.playVodStream(i,{beginTime:this.vodTime.beginTime,endTime:this.vodTime.endTime}):this.$refs.player.openDevice&&this.$refs.player.openDevice(i)):(this.$refs.player.openStreamEx(t,r),this.$emit("onStreamStatus",{id:r.id,status:1,code:0,errorText:this.getErrorText(0),index:t})):"file"===this.type&&this.$refs.player.playFile(e.rtspUrl,e.pos||0)}},closeStreamInServer:function(t){this.$refs.player&&(this.isDcsPlayback?this.$refs.player.stopPlay():"file"!==this.type?void 0===t||"[object Array]"===Object.prototype.toString.call(t)?this.$refs.player.closeStreams(t):this.$refs.player.closeStream(t):this.$refs.player.stopPlay())},showLoading:function(){this.$parent.loading=!0},hideLoading:function(){this.$parent.loading=!1},multiplePlayStream:function(){var t=this;this.urls.map((function(e,n){t.openStreamInServer(n,e)}))},streamCloses:function(t){this.closeStreamInServer(t)},getStreamInfo:function(t){return 2===this.statusCode&&this.$refs.player&&this.$refs.player.getStreamInfo?this.$refs.player.getStreamInfo(t):null},getLayout:function(){return this.$refs.player&&this.$refs.player.getLayout()},setLayout:function(t){var e=this;this.$refs.player&&this.$refs.player.setLayout(t),this.$nextTick((function(){e.bindDrop()}))},bindDrop:function(){var t=this;this.dragLayerList=this.$refs.player.$el.querySelectorAll("div.drag-layer"),this.dragLayerList.forEach((function(e){e.addEventListener("drop",t.dropEvent)}))},dropEvent:function(t){var e=-1,n=this.$refs.player.getLayout().streams,i={};try{i=JSON.parse(t.dataTransfer.getData("text").split("vat-live:").join(""))}catch(e){}for(var r in n)if(i.id===n[r].id){e=r;break}this.$emit("onWinDrop",e)},getErrorText:function(t){try{t=Number(t)}catch(e){t=99999999999}var e="";switch(t){case 99999999999:e="未知错误,code:".concat(t);break;case 0:e="正常";break;case-1:e="连接失败";break;case-2:e="找不到流";break;case-3:e="用户名或密码错误";break;case-5:e="对方协议错误";break;case-100:e="不支持流类型";break;case-101:e="打开流失败";break;case 8:e="路数达到限制";break;case-20040:e="录像段不存在"}return e},showFullscreen:function(){return this.$refs.player&&this.$refs.player.showFullscreen()},ptzControl:function(t,e,n){return this.$refs.player&&this.$refs.player.ptzControl(t,e,n)},swapWindow:function(t,e){return this.$refs.player&&this.$refs.player.swapWindow(t,e)},selectWindow:function(t){return this.$refs.player&&this.$refs.player.selectWindow(t)},getStreamItem:function(t,e){var n=0,i={},r=this.$refs.player.getLayout().streams;for(var o in r)if(r[o][e]===t){i=r[o],n=o;break}return u(u({},i),{},{index:n})}},h(s,"showFullscreen",(function(){return this.$refs.player&&this.$refs.player.showFullscreen()})),h(s,"toggleWindow",(function(){return this.$refs.player&&this.$refs.player.toggleWindow()})),h(s,"downloadRecord",(function(t,e,n){if(this.isDcsPlayback){var i=this.$refs.player.createDownloadTask(t,e);this.$refs.player.startDownload(i),this.$emit("downloadRecord",i)}})),h(s,"stopDownload",(function(t){t&&this.$refs.player.stopDownload&&this.$refs.player.stopDownload(t)})),h(s,"destroyDownloadTask",(function(t){this.$refs.player.destroyDownloadTask(t)})),h(s,"startRecord",(function(t,e,n){return this.$refs.player.startRecord(t,e,n)})),h(s,"stopRecord",(function(t){return this.$refs.player.stopRecord(t)})),s),created:function(){if(this.pluginUrl?this.require_version=this.pluginUrl.split("DCSPlugin-")[1].split(".exe")[0]:this.require_version="1.1.12",this.config&&this.config.defaultSetting){var t=this.playerConfig;for(var e in t=Object.assign(t,this.config.defaultSetting))this.$set(this.playerConfig,e,t[e])}if(this.config){var n=this.config;void 0===n.rows&&(n.rows=1),void 0===n.cols&&(n.cols=1),void 0===n.combines&&(n.combines={}),this.$set(this.playerConfig,"layout",u({},n))}else this.$set(this.playerConfig,"layout",{rows:1,cols:1,combines:{}})}};function f(t,e,n,i,r,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}n(33);var p=f(d,a,[],!1,null,null,null);p.options.__file="src/components/rtsp-player.vue";var v=p.exports,y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"player-control-bar"},[n("div",{staticClass:"center"},["live"!==t.type?n("div",{staticClass:"qz-player-control-icon qz-player-icon backward",on:{click:t.backward}}):t._e(),t._v(" "),[t.paused?n("div",{staticClass:"qz-player-control-icon qz-player-icon start",on:{click:t.play}}):n("div",{staticClass:"qz-player-control-icon qz-player-icon pause",on:{click:t.pause}})],t._v(" "),"live"!==t.type?n("div",{staticClass:"qz-player-control-icon qz-player-icon forward",on:{click:t.forward}}):t._e()],2)])};y._withStripped=!0;var m={name:"PlayerControlBar",props:{type:{type:String,default:"live"},paused:{type:Boolean,default:!1}},methods:{play:function(){this.$emit("play"),this.updatePaused(!1)},pause:function(){this.$emit("pause"),this.updatePaused(!0)},backward:function(){this.$emit("backward")},forward:function(){this.$emit("forward")},updatePaused:function(t){this.$emit("update:paused",t)}}},g=(n(35),f(m,y,[],!1,null,null,null));g.options.__file="src/components/player-control-bar.vue";var w=g.exports,b=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"player-time-select-bar"},[e("div",{staticClass:"calendar"},[e("span",{staticClass:"title"},[this._v("选择日期")]),this._v(" "),this._t("datePicker",null,null,this.datePickerBind)],2)])};b._withStripped=!0;var _=n(20),x=n.n(_),S={name:"PlayerControlBar",props:{date:{type:Number,required:!0},monthRecord:{type:Array,default:function(){return[]}},config:{type:Object,required:!1,default:function(){}},theme:{type:String,default:"light-theme"}},data:function(){return{datePicker:"",datePickerBind:{defaultValue:x()(),listen:this.handleDateChange}}},computed:{pickerOptions:function(){var t=this;return{cellClassName:function(e){return e.getMonth()===new Date(t.date).getMonth()&&e.getFullYear()===new Date(t.date).getFullYear()&&1===t.monthRecord[e.getDate()-1]?"has-video":""}}}},methods:{handleDateChange:function(t){var e=Object.prototype.toString.call(t);if(t._isAMomentObject)this.$emit("update:date",+new Date(t.format("YYYY-MM-DD 00:00:00")));else if("[object Date]"===e)this.$emit("update:date",+t);else if("[object Number]"===e)this.$emit("update:date",t);else if("[object String]"===e){var n=new Date(t).getTime();isNaN(n)||this.$emit("update:date",n)}},handleFocus:function(){this.$emit("focus")}},created:function(){},mounted:function(){}},E=(n(37),f(S,b,[],!1,null,null,null));E.options.__file="src/components/player-time-select-bar.vue";var k=E.exports,C=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"progressCtnr",staticClass:"player-progress-bar"},[n("svg",{staticClass:"progress-outer",attrs:{width:"100%",viewBox:t.viewBox}},[n("g",{staticClass:"progress-inner",attrs:{fill:"none","font-size":"10","font-family":"sans-serif","text-anchor":"middle",transform:"translate(0,0)"}},[n("g",{staticClass:"ticks-container"}),t._v(" "),n("g",{staticClass:"available-container"})]),t._v(" "),n("g",[n("line",{staticClass:"domain",attrs:{"stroke-width":"2",x1:t.middle,x2:t.middle,y1:"0",y2:"50"}})]),t._v(" "),n("g",[n("rect",{staticClass:"time-rect",attrs:{rx:"light-theme"===t.theme?15:0,ry:"light-theme"===t.theme?15:0,x:t.curTimeX,y:"35"}}),t._v(" "),n("text",{staticClass:"time-title",attrs:{x:t.curTimeX+10,y:"55"}},[t._v("\n "+t._s(t.dateFormat(new Date(t.currentTime)))+"\n ")])])])])};C._withStripped=!0;var A=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},T=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return A(e(t),n)}),{left:function(e,n,i,r){for(null==i&&(i=0),null==r&&(r=e.length);i<r;){var o=i+r>>>1;t(e[o],n)<0?i=o+1:r=o}return i},right:function(e,n,i,r){for(null==i&&(i=0),null==r&&(r=e.length);i<r;){var o=i+r>>>1;t(e[o],n)>0?r=o:i=o+1}return i}}},R=T(A);R.right,R.left;var D=Array.prototype;D.slice,D.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2),Array.prototype.slice;var O={value:function(){}};function L(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new I(i)}function I(t){this._=t}function P(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");if(i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function M(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function N(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=O,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}I.prototype=L.prototype={constructor:I,on:function(t,e){var n,i=this._,r=P(t+"",i),o=-1,a=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<a;)if(n=(t=r[o]).type)i[n]=N(i[n],t.name,e);else if(null==e)for(n in i)i[n]=N(i[n],t.name,null);return this}for(;++o<a;)if((n=(t=r[o]).type)&&(n=M(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new I(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),o=0;o<n;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(i=this._[t]).length;o<n;++o)i[o].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)}};var U=L;function W(){}var F=function(t){return null==t?W:function(){return this.querySelector(t)}};function B(){return[]}var z=function(t){return null==t?B:function(){return this.querySelectorAll(t)}},j=function(t){return function(){return this.matches(t)}},V=function(t){return new Array(t.length)};function H(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Y(t,e,n,i,r,o){for(var a,s=0,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],i[s]=a):n[s]=new H(t,o[s]);for(;s<l;++s)(a=e[s])&&(r[s]=a)}function K(t,e,n,i,r,o,a){var s,l,c,u={},h=e.length,d=o.length,f=new Array(h);for(s=0;s<h;++s)(l=e[s])&&(f[s]=c="$"+a.call(l,l.__data__,s,e),c in u?r[s]=l:u[c]=l);for(s=0;s<d;++s)(l=u[c="$"+a.call(t,o[s],s,o)])?(i[s]=l,l.__data__=o[s],u[c]=null):n[s]=new H(t,o[s]);for(s=0;s<h;++s)(l=e[s])&&u[f[s]]===l&&(r[s]=l)}function q(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}H.prototype={constructor:H,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var G="http://www.w3.org/1999/xhtml",$={svg:"http://www.w3.org/2000/svg",xhtml:G,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},X=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),$.hasOwnProperty(e)?{space:$[e],local:t}:t};function J(t){return function(){this.removeAttribute(t)}}function Q(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Z(t,e){return function(){this.setAttribute(t,e)}}function tt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function et(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function nt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var it=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function rt(t){return function(){this.style.removeProperty(t)}}function ot(t,e,n){return function(){this.style.setProperty(t,e,n)}}function at(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function st(t,e){return t.style.getPropertyValue(e)||it(t).getComputedStyle(t,null).getPropertyValue(e)}function lt(t){return function(){delete this[t]}}function ct(t,e){return function(){this[t]=e}}function ut(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function ht(t){return t.trim().split(/^|\s+/)}function dt(t){return t.classList||new ft(t)}function ft(t){this._node=t,this._names=ht(t.getAttribute("class")||"")}function pt(t,e){for(var n=dt(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function vt(t,e){for(var n=dt(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function yt(t){return function(){pt(this,t)}}function mt(t){return function(){vt(this,t)}}function gt(t,e){return function(){(e.apply(this,arguments)?pt:vt)(this,t)}}function wt(){this.textContent=""}function bt(t){return function(){this.textContent=t}}function _t(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function xt(){this.innerHTML=""}function St(t){return function(){this.innerHTML=t}}function Et(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function kt(){this.nextSibling&&this.parentNode.appendChild(this)}function Ct(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function At(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===G&&e.documentElement.namespaceURI===G?e.createElement(t):e.createElementNS(n,t)}}function Tt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}ft.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Rt=function(t){var e=X(t);return(e.local?Tt:At)(e)};function Dt(){return null}function Ot(){var t=this.parentNode;t&&t.removeChild(this)}function Lt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function It(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var Pt={},Mt=null;function Nt(t,e,n){return t=Ut(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Ut(t,e,n){return function(i){var r=Mt;Mt=i;try{t.call(this,this.__data__,e,n)}finally{Mt=r}}}function Wt(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Ft(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,o=e.length;i<o;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.capture);++r?e.length=r:delete this.__on}}}function Bt(t,e,n){var i=Pt.hasOwnProperty(t.type)?Nt:Ut;return function(r,o,a){var s,l=this.__on,c=i(e,o,a);if(l)for(var u=0,h=l.length;u<h;++u)if((s=l[u]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function zt(t,e,n,i){var r=Mt;t.sourceEvent=Mt,Mt=t;try{return e.apply(n,i)}finally{Mt=r}}function jt(t,e,n){var i=it(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function Vt(t,e){return function(){return jt(this,t,e)}}function Ht(t,e){return function(){return jt(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Pt={mouseenter:"mouseover",mouseleave:"mouseout"}));var Yt=[null];function Kt(t,e){this._groups=t,this._parents=e}function qt(){return new Kt([[document.documentElement]],Yt)}Kt.prototype=qt.prototype={constructor:Kt,select:function(t){"function"!=typeof t&&(t=F(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,a,s=e[r],l=s.length,c=i[r]=new Array(l),u=0;u<l;++u)(o=s[u])&&(a=t.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new Kt(i,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=z(t));for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var a,s=e[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(i.push(t.call(a,a.__data__,c,s)),r.push(a));return new Kt(i,r)},filter:function(t){"function"!=typeof t&&(t=j(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,a=e[r],s=a.length,l=i[r]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&l.push(o);return new Kt(i,this._parents)},data:function(t,e){if(!t)return p=new Array(this.size()),u=-1,this.each((function(t){p[++u]=t})),p;var n,i=e?K:Y,r=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),c=new Array(a),u=0;u<a;++u){var h=r[u],d=o[u],f=d.length,p=t.call(h,h&&h.__data__,u,r),v=p.length,y=l[u]=new Array(v),m=s[u]=new Array(v);i(h,d,y,m,c[u]=new Array(f),p,e);for(var g,w,b=0,_=0;b<v;++b)if(g=y[b]){for(b>=_&&(_=b+1);!(w=m[_])&&++_<v;);g._next=w||null}}return(s=new Kt(s,r))._enter=l,s._exit=c,s},enter:function(){return new Kt(this._enter||this._groups.map(V),this._parents)},exit:function(){return new Kt(this._exit||this._groups.map(V),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,o=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=e&&(r=e(r)),null==n?o.remove():n(o),i&&r?i.merge(r).order():r},merge:function(t){for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),a=new Array(i),s=0;s<o;++s)for(var l,c=e[s],u=n[s],h=c.length,d=a[s]=new Array(h),f=0;f<h;++f)(l=c[f]||u[f])&&(d[f]=l);for(;s<i;++s)a[s]=e[s];return new Kt(a,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],o=r.length-1,a=r[o];--o>=0;)(i=r[o])&&(a&&4^i.compareDocumentPosition(a)&&a.parentNode.insertBefore(i,a),a=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=q);for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var a,s=n[o],l=s.length,c=r[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(e)}return new Kt(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length;r<o;++r){var a=i[r];if(a)return a}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,o=e[n],a=0,s=o.length;a<s;++a)(r=o[a])&&t.call(r,r.__data__,a,o);return this},attr:function(t,e){var n=X(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?Q:J:"function"==typeof e?n.local?nt:et:n.local?tt:Z)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?rt:"function"==typeof e?at:ot)(t,e,null==n?"":n)):st(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?lt:"function"==typeof e?ut:ct)(t,e)):this.node()[t]},classed:function(t,e){var n=ht(t+"");if(arguments.length<2){for(var i=dt(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?gt:e?yt:mt)(n,e))},text:function(t){return arguments.length?this.each(null==t?wt:("function"==typeof t?_t:bt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?xt:("function"==typeof t?Et:St)(t)):this.node().innerHTML},raise:function(){return this.each(kt)},lower:function(){return this.each(Ct)},append:function(t){var e="function"==typeof t?t:Rt(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:Rt(t),i=null==e?Dt:"function"==typeof e?e:F(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(Ot)},clone:function(t){return this.select(t?It:Lt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,o=Wt(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?Bt:Ft,null==n&&(n=!1),i=0;i<a;++i)this.each(s(o[i],e,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(i=0,l=s[c];i<a;++i)if((r=o[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Ht:Vt)(t,e))}};var Gt=qt,$t=function(t){return"string"==typeof t?new Kt([[document.querySelector(t)]],[document.documentElement]):new Kt([[t]],Yt)};function Xt(){Mt.stopImmediatePropagation()}var Jt=function(){Mt.preventDefault(),Mt.stopImmediatePropagation()},Qt=function(t){var e=t.document.documentElement,n=$t(t).on("dragstart.drag",Jt,!0);"onselectstart"in e?n.on("selectstart.drag",Jt,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function Zt(t,e){var n=t.document.documentElement,i=$t(t).on("dragstart.drag",null);e&&(i.on("click.drag",Jt,!0),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var te=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function ee(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function ne(){}var ie="\\s*([+-]?\\d+)\\s*",re="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",oe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ae=/^#([0-9a-f]{3,8})$/,se=new RegExp("^rgb\\("+[ie,ie,ie]+"\\)$"),le=new RegExp("^rgb\\("+[oe,oe,oe]+"\\)$"),ce=new RegExp("^rgba\\("+[ie,ie,ie,re]+"\\)$"),ue=new RegExp("^rgba\\("+[oe,oe,oe,re]+"\\)$"),he=new RegExp("^hsl\\("+[re,oe,oe]+"\\)$"),de=new RegExp("^hsla\\("+[re,oe,oe,re]+"\\)$"),fe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function pe(){return this.rgb().formatHex()}function ve(){return this.rgb().formatRgb()}function ye(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ae.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?me(e):3===n?new _e(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ge(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ge(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=se.exec(t))?new _e(e[1],e[2],e[3],1):(e=le.exec(t))?new _e(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ce.exec(t))?ge(e[1],e[2],e[3],e[4]):(e=ue.exec(t))?ge(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=he.exec(t))?ke(e[1],e[2]/100,e[3]/100,1):(e=de.exec(t))?ke(e[1],e[2]/100,e[3]/100,e[4]):fe.hasOwnProperty(t)?me(fe[t]):"transparent"===t?new _e(NaN,NaN,NaN,0):null}function me(t){return new _e(t>>16&255,t>>8&255,255&t,1)}function ge(t,e,n,i){return i<=0&&(t=e=n=NaN),new _e(t,e,n,i)}function we(t){return t instanceof ne||(t=ye(t)),t?new _e((t=t.rgb()).r,t.g,t.b,t.opacity):new _e}function be(t,e,n,i){return 1===arguments.length?we(t):new _e(t,e,n,null==i?1:i)}function _e(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function xe(){return"#"+Ee(this.r)+Ee(this.g)+Ee(this.b)}function Se(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Ee(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ke(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ae(t,e,n,i)}function Ce(t){if(t instanceof Ae)return new Ae(t.h,t.s,t.l,t.opacity);if(t instanceof ne||(t=ye(t)),!t)return new Ae;if(t instanceof Ae)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),a=NaN,s=o-r,l=(o+r)/2;return s?(a=e===o?(n-i)/s+6*(n<i):n===o?(i-e)/s+2:(e-n)/s+4,s/=l<.5?o+r:2-o-r,a*=60):s=l>0&&l<1?0:a,new Ae(a,s,l,t.opacity)}function Ae(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Te(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Re(t,e,n,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*i+a*r)/6}te(ne,ye,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:pe,formatHex:pe,formatHsl:function(){return Ce(this).formatHsl()},formatRgb:ve,toString:ve}),te(_e,be,ee(ne,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new _e(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new _e(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xe,formatHex:xe,formatRgb:Se,toString:Se})),te(Ae,(function(t,e,n,i){return 1===arguments.length?Ce(t):new Ae(t,e,n,null==i?1:i)}),ee(ne,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Ae(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ae(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new _e(Te(t>=240?t-240:t+120,r,i),Te(t,r,i),Te(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var De=function(t){return function(){return t}};function Oe(t,e){return function(n){return t+n*e}}function Le(t){return 1==(t=+t)?Ie:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):De(isNaN(e)?n:e)}}function Ie(t,e){var n=e-t;return n?Oe(t,n):De(isNaN(t)?e:t)}var Pe=function t(e){var n=Le(e);function i(t,e){var i=n((t=be(t)).r,(e=be(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),a=Ie(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function Me(t){return function(e){var n,i,r=e.length,o=new Array(r),a=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=be(e[n]),o[n]=i.r||0,a[n]=i.g||0,s[n]=i.b||0;return o=t(o),a=t(a),s=t(s),i.opacity=1,function(t){return i.r=o(t),i.g=a(t),i.b=s(t),i+""}}}Me((function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],o=t[i+1],a=i>0?t[i-1]:2*r-o,s=i<e-1?t[i+2]:2*o-r;return Re((n-i/e)*e,a,r,o,s)}})),Me((function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],o=t[i%e],a=t[(i+1)%e],s=t[(i+2)%e];return Re((n-i/e)*e,r,o,a,s)}}));var Ne=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Ue=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,We=new RegExp(Ue.source,"g"),Fe=function(t,e){var n,i,r,o=Ue.lastIndex=We.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=Ue.exec(t))&&(i=We.exec(e));)(r=i.index)>o&&(r=e.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Ne(n,i)})),o=We.lastIndex;return o<e.length&&(r=e.slice(o),s[a]?s[a]+=r:s[++a]=r),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)s[(n=l[i]).i]=n.x(t);return s.join("")})},Be=function(){for(var t,e=Mt;t=e.sourceEvent;)e=t;return e},ze=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}var r=t.getBoundingClientRect();return[e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop]},je=function(t,e,n){arguments.length<3&&(n=e,e=Be().changedTouches);for(var i,r=0,o=e?e.length:0;r<o;++r)if((i=e[r]).identifier===n)return ze(t,i);return null},Ve=function(t){var e=Be();return e.changedTouches&&(e=e.changedTouches[0]),ze(t,e)};function He(t){return(He="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)}var Ye,Ke,qe=0,Ge=0,$e=0,Xe=0,Je=0,Qe=0,Ze="object"===("undefined"==typeof performance?"undefined":He(performance))&&performance.now?performance:Date,tn="object"===("undefined"==typeof window?"undefined":He(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function en(){return Je||(tn(nn),Je=Ze.now()+Qe)}function nn(){Je=0}function rn(){this._call=this._time=this._next=null}function on(t,e,n){var i=new rn;return i.restart(t,e,n),i}function an(){Je=(Xe=Ze.now())+Qe,qe=Ge=0;try{!function(){en(),++qe;for(var t,e=Ye;e;)(t=Je-e._time)>=0&&e._call.call(null,t),e=e._next;--qe}()}finally{qe=0,function(){for(var t,e,n=Ye,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Ye=e);Ke=t,ln(i)}(),Je=0}}function sn(){var t=Ze.now(),e=t-Xe;e>1e3&&(Qe-=e,Xe=t)}function ln(t){qe||(Ge&&(Ge=clearTimeout(Ge)),t-Je>24?(t<1/0&&(Ge=setTimeout(an,t-Ze.now()-Qe)),$e&&($e=clearInterval($e))):($e||(Xe=Ze.now(),$e=setInterval(sn,1e3)),qe=1,tn(an)))}rn.prototype=on.prototype={constructor:rn,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?en():+n)+(null==e?0:+e),this._next||Ke===this||(Ke?Ke._next=this:Ye=this,Ke=this),this._call=t,this._time=n,ln()},stop:function(){this._call&&(this._call=null,this._time=1/0,ln())}};var cn=function(t,e,n){var i=new rn;return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i},un=U("start","end","cancel","interrupt"),hn=[],dn=function(t,e,n,i,r,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function o(l){var c,u,h,d;if(1!==n.state)return s();for(c in r)if((d=r[c]).name===n.name){if(3===d.state)return cn(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[c]):+c<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[c])}if(cn((function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(l))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(h=n.tween.length),c=0,u=-1;c<h;++c)(d=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++u]=d);i.length=u+1}}function a(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=i.length;++o<a;)i[o].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=on((function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}),0,n.time)}(t,n,{name:e,index:i,group:r,on:un,tween:hn,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})};function fn(t,e){var n=vn(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function pn(t,e){var n=vn(t,e);if(n.state>3)throw new Error("too late; already running");return n}function vn(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var yn,mn,gn,wn,bn=function(t,e){var n,i,r,o=t.__transition,a=!0;if(o){for(r in e=null==e?null:e+"",o)(n=o[r]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[r]):a=!1;a&&delete t.__transition}},_n=180/Math.PI,xn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Sn=function(t,e,n,i,r,o){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,l/=s),t*i<e*n&&(t=-t,e=-e,l=-l,a=-a),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*_n,skewX:Math.atan(l)*_n,scaleX:a,scaleY:s}};function En(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(o,a){var s=[],l=[];return o=t(o),a=t(a),function(t,i,r,o,a,s){if(t!==r||i!==o){var l=a.push("translate(",null,e,null,n);s.push({i:l-4,x:Ne(t,r)},{i:l-2,x:Ne(i,o)})}else(r||o)&&a.push("translate("+r+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(r(n)+"rotate(",null,i)-2,x:Ne(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(o.rotate,a.rotate,s,l),function(t,e,n,o){t!==e?o.push({i:n.push(r(n)+"skewX(",null,i)-2,x:Ne(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(o.skewX,a.skewX,s,l),function(t,e,n,i,o,a){if(t!==n||e!==i){var s=o.push(r(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Ne(t,n)},{i:s-2,x:Ne(e,i)})}else 1===n&&1===i||o.push(r(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(t){for(var e,n=-1,i=l.length;++n<i;)s[(e=l[n]).i]=e.x(t);return s.join("")}}}var kn=En((function(t){return"none"===t?xn:(yn||(yn=document.createElement("DIV"),mn=document.documentElement,gn=document.defaultView),yn.style.transform=t,t=gn.getComputedStyle(mn.appendChild(yn),null).getPropertyValue("transform"),mn.removeChild(yn),t=t.slice(7,-1).split(","),Sn(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),Cn=En((function(t){return null==t?xn:(wn||(wn=document.createElementNS("http://www.w3.org/2000/svg","g")),wn.setAttribute("transform",t),(t=wn.transform.baseVal.consolidate())?(t=t.matrix,Sn(t.a,t.b,t.c,t.d,t.e,t.f)):xn)}),", ",")",")");function An(t,e){var n,i;return function(){var r=pn(this,t),o=r.tween;if(o!==n)for(var a=0,s=(i=n=o).length;a<s;++a)if(i[a].name===e){(i=i.slice()).splice(a,1);break}r.tween=i}}function Tn(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var o=pn(this,t),a=o.tween;if(a!==i){r=(i=a).slice();for(var s={name:e,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=s;break}l===c&&r.push(s)}o.tween=r}}function Rn(t,e,n){var i=t._id;return t.each((function(){var t=pn(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return vn(t,i).value[e]}}var Dn=function(t,e){var n;return("number"==typeof e?Ne:e instanceof ye?Pe:(n=ye(e))?(e=n,Pe):Fe)(t,e)};function On(t){return function(){this.removeAttribute(t)}}function Ln(t){return function(){this.removeAttributeNS(t.space,t.local)}}function In(t,e,n){var i,r,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===i?r:r=e(i=a,n)}}function Pn(t,e,n){var i,r,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===i?r:r=e(i=a,n)}}function Mn(t,e,n){var i,r,o;return function(){var a,s,l=n(this);if(null!=l)return(a=this.getAttribute(t))===(s=l+"")?null:a===i&&s===r?o:(r=s,o=e(i=a,l));this.removeAttribute(t)}}function Nn(t,e,n){var i,r,o;return function(){var a,s,l=n(this);if(null!=l)return(a=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:a===i&&s===r?o:(r=s,o=e(i=a,l));this.removeAttributeNS(t.space,t.local)}}function Un(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Wn(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Fn(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&Wn(t,r)),n}return r._value=e,r}function Bn(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&Un(t,r)),n}return r._value=e,r}function zn(t,e){return function(){fn(this,t).delay=+e.apply(this,arguments)}}function jn(t,e){return e=+e,function(){fn(this,t).delay=e}}function Vn(t,e){return function(){pn(this,t).duration=+e.apply(this,arguments)}}function Hn(t,e){return e=+e,function(){pn(this,t).duration=e}}function Yn(t,e){if("function"!=typeof e)throw new Error;return function(){pn(this,t).ease=e}}function Kn(t,e,n){var i,r,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?fn:pn;return function(){var a=o(this,t),s=a.on;s!==i&&(r=(i=s).copy()).on(e,n),a.on=r}}var qn=Gt.prototype.constructor;function Gn(t){return function(){this.style.removeProperty(t)}}function $n(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function Xn(t,e,n){var i,r;function o(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&$n(t,o,n)),i}return o._value=e,o}function Jn(t){return function(e){this.textContent=t.call(this,e)}}function Qn(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Jn(i)),e}return i._value=t,i}var Zn=0;function ti(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function ei(){return++Zn}var ni=Gt.prototype;ti.prototype=function(t){return Gt().transition(t)}.prototype={constructor:ti,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=F(t));for(var i=this._groups,r=i.length,o=new Array(r),a=0;a<r;++a)for(var s,l,c=i[a],u=c.length,h=o[a]=new Array(u),d=0;d<u;++d)(s=c[d])&&(l=t.call(s,s.__data__,d,c))&&("__data__"in s&&(l.__data__=s.__data__),h[d]=l,dn(h[d],e,n,d,h,vn(s,n)));return new ti(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=z(t));for(var i=this._groups,r=i.length,o=[],a=[],s=0;s<r;++s)for(var l,c=i[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var d,f=t.call(l,l.__data__,h,c),p=vn(l,n),v=0,y=f.length;v<y;++v)(d=f[v])&&dn(d,e,n,v,f,p);o.push(f),a.push(l)}return new ti(o,a,e,n)},filter:function(t){"function"!=typeof t&&(t=j(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,a=e[r],s=a.length,l=i[r]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&l.push(o);return new ti(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),a=new Array(i),s=0;s<o;++s)for(var l,c=e[s],u=n[s],h=c.length,d=a[s]=new Array(h),f=0;f<h;++f)(l=c[f]||u[f])&&(d[f]=l);for(;s<i;++s)a[s]=e[s];return new ti(a,this._parents,this._name,this._id)},selection:function(){return new qn(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=ei(),i=this._groups,r=i.length,o=0;o<r;++o)for(var a,s=i[o],l=s.length,c=0;c<l;++c)if(a=s[c]){var u=vn(a,e);dn(a,t,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new ti(i,this._parents,t,n)},call:ni.call,nodes:ni.nodes,node:ni.node,size:ni.size,empty:ni.empty,each:ni.each,on:function(t,e){var n=this._id;return arguments.length<2?vn(this.node(),n).on.on(t):this.each(Kn(n,t,e))},attr:function(t,e){var n=X(t),i="transform"===n?Cn:Dn;return this.attrTween(t,"function"==typeof e?(n.local?Nn:Mn)(n,i,Rn(this,"attr."+t,e)):null==e?(n.local?Ln:On)(n):(n.local?Pn:In)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=X(t);return this.tween(n,(i.local?Fn:Bn)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?kn:Dn;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var o=st(this,t),a=(this.style.removeProperty(t),st(this,t));return o===a?null:o===n&&a===i?r:r=e(n=o,i=a)}}(t,i)).on("end.style."+t,Gn(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,o;return function(){var a=st(this,t),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=st(this,t)),a===l?null:a===i&&l===r?o:(r=l,o=e(i=a,s))}}(t,i,Rn(this,"style."+t,e))).each(function(t,e){var n,i,r,o,a="style."+e,s="end."+a;return function(){var l=pn(this,t),c=l.on,u=null==l.value[a]?o||(o=Gn(e)):void 0;c===n&&r===u||(i=(n=c).copy()).on(s,r=u),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,o=n+"";return function(){var a=st(this,t);return a===o?null:a===i?r:r=e(i=a,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,Xn(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Rn(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Qn(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=vn(this.node(),n).tween,o=0,a=r.length;o<a;++o)if((i=r[o]).name===t)return i.value;return null}return this.each((null==e?An:Tn)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?zn:jn)(e,t)):vn(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Vn:Hn)(e,t)):vn(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Yn(e,t)):vn(this.node(),e).ease},end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise((function(o,a){var s={value:a},l={value:function(){0==--r&&o()}};n.each((function(){var n=pn(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),n.on=e}))}))}};var ii={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function ri(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return ii.time=en(),ii;return n}function oi(t){return{type:t}}Gt.prototype.interrupt=function(t){return this.each((function(){bn(this,t)}))},Gt.prototype.transition=function(t){var e,n;t instanceof ti?(e=t._id,t=t._name):(e=ei(),(n=ii).time=en(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var a,s=i[o],l=s.length,c=0;c<l;++c)(a=s[c])&&dn(a,t,e,c,s,n||ri(a,e));return new ti(i,this._parents,t,e)},["w","e"].map(oi),["n","s"].map(oi),["n","w","e","s","nw","ne","sw","se"].map(oi),Math.cos,Math.sin,Math.PI,Math.max,Array.prototype.slice;var ai=Math.PI,si=2*ai,li=si-1e-6;function ci(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ui(){return new ci}function hi(){}function di(t,e){var n=new hi;if(t instanceof hi)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,r=-1,o=t.length;if(null==e)for(;++r<o;)n.set(r,t[r]);else for(;++r<o;)n.set(e(i=t[r],r,t),i)}else if(t)for(var a in t)n.set(a,t[a]);return n}ci.prototype=ui.prototype={constructor:ci,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var o=this._x1,a=this._y1,s=n-t,l=i-e,c=o-t,u=a-e,h=c*c+u*u;if(r<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>1e-6)if(Math.abs(u*s-l*c)>1e-6&&r){var d=n-o,f=i-a,p=s*s+l*l,v=d*d+f*f,y=Math.sqrt(p),m=Math.sqrt(h),g=r*Math.tan((ai-Math.acos((p+h-v)/(2*y*m)))/2),w=g/m,b=g/y;Math.abs(w-1)>1e-6&&(this._+="L"+(t+w*c)+","+(e+w*u)),this._+="A"+r+","+r+",0,0,"+ +(u*d>c*f)+","+(this._x1=t+b*s)+","+(this._y1=e+b*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(i),s=n*Math.sin(i),l=t+a,c=e+s,u=1^o,h=o?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(h<0&&(h=h%si+si),h>li?this._+="A"+n+","+n+",0,1,"+u+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=ai)+","+u+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},hi.prototype=di.prototype={constructor:hi,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var fi=di;function pi(){}var vi=fi.prototype;function yi(t,e){var n=new pi;if(t instanceof pi)t.each((function(t){n.add(t)}));else if(t){var i=-1,r=t.length;if(null==e)for(;++i<r;)n.add(t[i]);else for(;++i<r;)n.add(e(t[i],i,t))}return n}pi.prototype=yi.prototype={constructor:pi,has:vi.has,add:function(t){return this["$"+(t+="")]=t,this},remove:vi.remove,clear:vi.clear,values:vi.keys,size:vi.size,empty:vi.empty,each:vi.each},Array.prototype.slice;var mi=function(t){return function(){return t}};function gi(t,e,n,i,r,o,a,s,l,c){this.target=t,this.type=e,this.subject=n,this.identifier=i,this.active=r,this.x=o,this.y=a,this.dx=s,this.dy=l,this._=c}function wi(){return!Mt.ctrlKey&&!Mt.button}function bi(){return this.parentNode}function _i(t){return null==t?{x:Mt.x,y:Mt.y}:t}function xi(){return navigator.maxTouchPoints||"ontouchstart"in this}function Si(t,e,n,i){if(isNaN(e)||isNaN(n))return t;var r,o,a,s,l,c,u,h,d,f=t._root,p={data:i},v=t._x0,y=t._y0,m=t._x1,g=t._y1;if(!f)return t._root=p,t;for(;f.length;)if((c=e>=(o=(v+m)/2))?v=o:m=o,(u=n>=(a=(y+g)/2))?y=a:g=a,r=f,!(f=f[h=u<<1|c]))return r[h]=p,t;if(s=+t._x.call(null,f.data),l=+t._y.call(null,f.data),e===s&&n===l)return p.next=f,r?r[h]=p:t._root=p,t;do{r=r?r[h]=new Array(4):t._root=new Array(4),(c=e>=(o=(v+m)/2))?v=o:m=o,(u=n>=(a=(y+g)/2))?y=a:g=a}while((h=u<<1|c)==(d=(l>=a)<<1|s>=o));return r[d]=f,r[h]=p,t}gi.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Ei=function(t,e,n,i,r){this.node=t,this.x0=e,this.y0=n,this.x1=i,this.y1=r};function ki(t){return t[0]}function Ci(t){return t[1]}function Ai(t,e,n){var i=new Ti(null==e?ki:e,null==n?Ci:n,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function Ti(t,e,n,i,r,o){this._x=t,this._y=e,this._x0=n,this._y0=i,this._x1=r,this._y1=o,this._root=void 0}function Ri(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Di=Ai.prototype=Ti.prototype;Di.copy=function(){var t,e,n=new Ti(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return n;if(!i.length)return n._root=Ri(i),n;for(t=[{source:i,target:n._root=new Array(4)}];i=t.pop();)for(var r=0;r<4;++r)(e=i.source[r])&&(e.length?t.push({source:e,target:i.target[r]=new Array(4)}):i.target[r]=Ri(e));return n},Di.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return Si(this.cover(e,n),e,n,t)},Di.addAll=function(t){var e,n,i,r,o=t.length,a=new Array(o),s=new Array(o),l=1/0,c=1/0,u=-1/0,h=-1/0;for(n=0;n<o;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(r=+this._y.call(null,e))||(a[n]=i,s[n]=r,i<l&&(l=i),i>u&&(u=i),r<c&&(c=r),r>h&&(h=r));if(l>u||c>h)return this;for(this.cover(l,c).cover(u,h),n=0;n<o;++n)Si(this,a[n],s[n],t[n]);return this},Di.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,i=this._y0,r=this._x1,o=this._y1;if(isNaN(n))r=(n=Math.floor(t))+1,o=(i=Math.floor(e))+1;else{for(var a,s,l=r-n,c=this._root;n>t||t>=r||i>e||e>=o;)switch(s=(e<i)<<1|t<n,(a=new Array(4))[s]=c,c=a,l*=2,s){case 0:r=n+l,o=i+l;break;case 1:n=r-l,o=i+l;break;case 2:r=n+l,i=o-l;break;case 3:n=r-l,i=o-l}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=i,this._x1=r,this._y1=o,this},Di.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},Di.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Di.find=function(t,e,n){var i,r,o,a,s,l,c,u=this._x0,h=this._y0,d=this._x1,f=this._y1,p=[],v=this._root;for(v&&p.push(new Ei(v,u,h,d,f)),null==n?n=1/0:(u=t-n,h=e-n,d=t+n,f=e+n,n*=n);l=p.pop();)if(!(!(v=l.node)||(r=l.x0)>d||(o=l.y0)>f||(a=l.x1)<u||(s=l.y1)<h))if(v.length){var y=(r+a)/2,m=(o+s)/2;p.push(new Ei(v[3],y,m,a,s),new Ei(v[2],r,m,y,s),new Ei(v[1],y,o,a,m),new Ei(v[0],r,o,y,m)),(c=(e>=m)<<1|t>=y)&&(l=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=l)}else{var g=t-+this._x.call(null,v.data),w=e-+this._y.call(null,v.data),b=g*g+w*w;if(b<n){var _=Math.sqrt(n=b);u=t-_,h=e-_,d=t+_,f=e+_,i=v.data}}return i},Di.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,i,r,o,a,s,l,c,u,h,d,f=this._root,p=this._x0,v=this._y0,y=this._x1,m=this._y1;if(!f)return this;if(f.length)for(;;){if((c=o>=(s=(p+y)/2))?p=s:y=s,(u=a>=(l=(v+m)/2))?v=l:m=l,e=f,!(f=f[h=u<<1|c]))return this;if(!f.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,d=h)}for(;f.data!==t;)if(i=f,!(f=f.next))return this;return(r=f.next)&&delete f.next,i?(r?i.next=r:delete i.next,this):e?(r?e[h]=r:delete e[h],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(n?n[d]=f:this._root=f),this):(this._root=r,this)},Di.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},Di.root=function(){return this._root},Di.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},Di.visit=function(t){var e,n,i,r,o,a,s=[],l=this._root;for(l&&s.push(new Ei(l,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(l=e.node,i=e.x0,r=e.y0,o=e.x1,a=e.y1)&&l.length){var c=(i+o)/2,u=(r+a)/2;(n=l[3])&&s.push(new Ei(n,c,u,o,a)),(n=l[2])&&s.push(new Ei(n,i,u,c,a)),(n=l[1])&&s.push(new Ei(n,c,r,o,u)),(n=l[0])&&s.push(new Ei(n,i,r,c,u))}return this},Di.visitAfter=function(t){var e,n=[],i=[];for(this._root&&n.push(new Ei(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var r=e.node;if(r.length){var o,a=e.x0,s=e.y0,l=e.x1,c=e.y1,u=(a+l)/2,h=(s+c)/2;(o=r[0])&&n.push(new Ei(o,a,s,u,h)),(o=r[1])&&n.push(new Ei(o,u,s,l,h)),(o=r[2])&&n.push(new Ei(o,a,h,u,c)),(o=r[3])&&n.push(new Ei(o,u,h,l,c))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},Di.x=function(t){return arguments.length?(this._x=t,this):this._x},Di.y=function(t){return arguments.length?(this._y=t,this):this._y},Math.PI,Math.sqrt(5);var Oi=function(){return Math.random()},Li=(function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(Oi),function t(e){function n(t,n){var i,r;return t=null==t?0:+t,n=null==n?1:+n,function(){var o;if(null!=i)o=i,i=null;else do{i=2*e()-1,o=2*e()-1,r=i*i+o*o}while(!r||r>1);return t+n*o*Math.sqrt(-2*Math.log(r)/r)}}return n.source=t,n}(Oi)),Ii=(function t(e){function n(){var t=Li.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(Oi),function t(e){function n(t){return function(){for(var n=0,i=0;i<t;++i)n+=e();return n}}return n.source=t,n}(Oi));(function t(e){function n(t){var n=Ii.source(e)(t);return function(){return n()/t}}return n.source=t,n})(Oi),function t(e){function n(t){return function(){return-Math.log(1-e())/t}}return n.source=t,n}(Oi);var Pi=Array.prototype;Pi.map,Pi.slice;var Mi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ni(t){if(!(e=Mi.exec(t)))throw new Error("invalid format: "+t);var e;return new Ui({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Ui(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Wi(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}Ni.prototype=Ui.prototype,Ui.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Fi,Bi,zi=function(t){return(t=Wi(Math.abs(t)))?t[1]:NaN},ji=function(t,e){var n=Wi(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")},Vi={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return ji(100*t,e)},r:ji,s:function(t,e){var n=Wi(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(Fi=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+Wi(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Hi=function(t){return t},Yi=Array.prototype.map,Ki=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Bi=function(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?Hi:(e=Yi.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,o=[],a=0,s=e[0],l=0;r>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),o.push(t.substring(r-=s,r+s)),!((l+=s+1)>i));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Hi:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Yi.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=Ni(t)).fill,n=t.align,h=t.sign,d=t.symbol,f=t.zero,p=t.width,v=t.comma,y=t.precision,m=t.trim,g=t.type;"n"===g?(v=!0,g="g"):Vi[g]||(void 0===y&&(y=12),m=!0,g="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var w="$"===d?r:"#"===d&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",b="$"===d?o:/[%p]/.test(g)?l:"",_=Vi[g],x=/[defgprs%]/.test(g);function S(t){var r,o,l,d=w,S=b;if("c"===g)S=_(t)+S,t="";else{var E=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:_(Math.abs(t),y),m&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i<n;++i)switch(t[i]){case".":r=e=i;break;case"0":0===r&&(r=i),e=i;break;default:if(!+t[i])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),E&&0==+t&&"+"!==h&&(E=!1),d=(E?"("===h?h:c:"-"===h||"("===h?"":h)+d,S=("s"===g?Ki[8+Fi/3]:"")+S+(E&&"("===h?")":""),x)for(r=-1,o=t.length;++r<o;)if(48>(l=t.charCodeAt(r))||l>57){S=(46===l?a+t.slice(r+1):t.slice(r))+S,t=t.slice(0,r);break}}v&&!f&&(t=i(t,1/0));var k=d.length+t.length+S.length,C=k<p?new Array(p-k+1).join(e):"";switch(v&&f&&(t=i(C+t,C.length?p-S.length:1/0),C=""),n){case"<":t=d+t+S+C;break;case"=":t=d+C+t+S;break;case"^":t=C.slice(0,k=C.length>>1)+d+t+S+C.slice(k);break;default:t=C+d+t+S}return s(t)}return y=void 0===y?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),S.toString=function(){return t+""},S}return{format:h,formatPrefix:function(t,e){var n=h(((t=Ni(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(zi(e)/3))),r=Math.pow(10,-i),o=Ki[8+i/3];return function(t){return n(r*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Bi.format,Bi.formatPrefix;var qi=new Date,Gi=new Date;function $i(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=function(e){return t(e=new Date(+e)),e},r.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},r.round=function(t){var e=r(t),n=r.ceil(t);return t-e<n-t?e:n},r.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},r.range=function(n,i,o){var a,s=[];if(n=r.ceil(n),o=null==o?1:Math.floor(o),!(n<i&&o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<i);return s},r.filter=function(n){return $i((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}))},n&&(r.count=function(e,i){return qi.setTime(+e),Gi.setTime(+i),t(qi),t(Gi),Math.floor(n(qi,Gi))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(e){return i(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var Xi=$i((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Xi.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$i((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Ji=Xi,Qi=(Xi.range,$i((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));function Zi(t){return $i((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}Qi.range;var tr=Zi(0),er=Zi(1),nr=Zi(2),ir=Zi(3),rr=Zi(4),or=Zi(5),ar=Zi(6),sr=(tr.range,er.range,nr.range,ir.range,rr.range,or.range,ar.range,$i((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1}))),lr=sr,cr=(sr.range,$i((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()}))),ur=(cr.range,$i((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()}))),hr=(ur.range,$i((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()}))),dr=(hr.range,$i((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));function fr(t){return $i((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}dr.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?$i((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):dr:null},dr.range;var pr=fr(0),vr=fr(1),yr=fr(2),mr=fr(3),gr=fr(4),wr=fr(5),br=fr(6),_r=(pr.range,vr.range,yr.range,mr.range,gr.range,wr.range,br.range,$i((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}))),xr=_r,Sr=(_r.range,$i((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Sr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$i((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Er=Sr;function kr(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Cr(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ar(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}Sr.range;var Tr,Rr={"-":"",_:" ",0:"0"},Dr=/^\s*\d+/,Or=/^%/,Lr=/[\\^$*+?|[\]().{}]/g;function Ir(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o<n?new Array(n-o+1).join(e)+r:r)}function Pr(t){return t.replace(Lr,"\\$&")}function Mr(t){return new RegExp("^(?:"+t.map(Pr).join("|")+")","i")}function Nr(t){for(var e={},n=-1,i=t.length;++n<i;)e[t[n].toLowerCase()]=n;return e}function Ur(t,e,n){var i=Dr.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Wr(t,e,n){var i=Dr.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Fr(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function Br(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function zr(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function jr(t,e,n){var i=Dr.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Vr(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Hr(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Yr(t,e,n){var i=Dr.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function Kr(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function qr(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Gr(t,e,n){var i=Dr.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function $r(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Xr(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Jr(t,e,n){var i=Dr.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Qr(t,e,n){var i=Dr.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Zr(t,e,n){var i=Dr.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function to(t,e,n){var i=Or.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function eo(t,e,n){var i=Dr.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function no(t,e,n){var i=Dr.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function io(t,e){return Ir(t.getDate(),e,2)}function ro(t,e){return Ir(t.getHours(),e,2)}function oo(t,e){return Ir(t.getHours()%12||12,e,2)}function ao(t,e){return Ir(1+lr.count(Ji(t),t),e,3)}function so(t,e){return Ir(t.getMilliseconds(),e,3)}function lo(t,e){return so(t,e)+"000"}function co(t,e){return Ir(t.getMonth()+1,e,2)}function uo(t,e){return Ir(t.getMinutes(),e,2)}function ho(t,e){return Ir(t.getSeconds(),e,2)}function fo(t){var e=t.getDay();return 0===e?7:e}function po(t,e){return Ir(tr.count(Ji(t)-1,t),e,2)}function vo(t){var e=t.getDay();return e>=4||0===e?rr(t):rr.ceil(t)}function yo(t,e){return t=vo(t),Ir(rr.count(Ji(t),t)+(4===Ji(t).getDay()),e,2)}function mo(t){return t.getDay()}function go(t,e){return Ir(er.count(Ji(t)-1,t),e,2)}function wo(t,e){return Ir(t.getFullYear()%100,e,2)}function bo(t,e){return Ir((t=vo(t)).getFullYear()%100,e,2)}function _o(t,e){return Ir(t.getFullYear()%1e4,e,4)}function xo(t,e){var n=t.getDay();return Ir((t=n>=4||0===n?rr(t):rr.ceil(t)).getFullYear()%1e4,e,4)}function So(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ir(e/60|0,"0",2)+Ir(e%60,"0",2)}function Eo(t,e){return Ir(t.getUTCDate(),e,2)}function ko(t,e){return Ir(t.getUTCHours(),e,2)}function Co(t,e){return Ir(t.getUTCHours()%12||12,e,2)}function Ao(t,e){return Ir(1+xr.count(Er(t),t),e,3)}function To(t,e){return Ir(t.getUTCMilliseconds(),e,3)}function Ro(t,e){return To(t,e)+"000"}function Do(t,e){return Ir(t.getUTCMonth()+1,e,2)}function Oo(t,e){return Ir(t.getUTCMinutes(),e,2)}function Lo(t,e){return Ir(t.getUTCSeconds(),e,2)}function Io(t){var e=t.getUTCDay();return 0===e?7:e}function Po(t,e){return Ir(pr.count(Er(t)-1,t),e,2)}function Mo(t){var e=t.getUTCDay();return e>=4||0===e?gr(t):gr.ceil(t)}function No(t,e){return t=Mo(t),Ir(gr.count(Er(t),t)+(4===Er(t).getUTCDay()),e,2)}function Uo(t){return t.getUTCDay()}function Wo(t,e){return Ir(vr.count(Er(t)-1,t),e,2)}function Fo(t,e){return Ir(t.getUTCFullYear()%100,e,2)}function Bo(t,e){return Ir((t=Mo(t)).getUTCFullYear()%100,e,2)}function zo(t,e){return Ir(t.getUTCFullYear()%1e4,e,4)}function jo(t,e){var n=t.getUTCDay();return Ir((t=n>=4||0===n?gr(t):gr.ceil(t)).getUTCFullYear()%1e4,e,4)}function Vo(){return"+0000"}function Ho(){return"%"}function Yo(t){return+t}function Ko(t){return Math.floor(+t/1e3)}!function(t){Tr=function(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=Mr(r),u=Nr(r),h=Mr(o),d=Nr(o),f=Mr(a),p=Nr(a),v=Mr(s),y=Nr(s),m=Mr(l),g=Nr(l),w={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:io,e:io,f:lo,g:bo,G:xo,H:ro,I:oo,j:ao,L:so,m:co,M:uo,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Yo,s:Ko,S:ho,u:fo,U:po,V:yo,w:mo,W:go,x:null,X:null,y:wo,Y:_o,Z:So,"%":Ho},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Eo,e:Eo,f:Ro,g:Bo,G:jo,H:ko,I:Co,j:Ao,L:To,m:Do,M:Oo,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Yo,s:Ko,S:Lo,u:Io,U:Po,V:No,w:Uo,W:Wo,x:null,X:null,y:Fo,Y:zo,Z:Vo,"%":Ho},_={a:function(t,e,n){var i=f.exec(e.slice(n));return i?(t.w=p[i[0].toLowerCase()],n+i[0].length):-1},A:function(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=d[i[0].toLowerCase()],n+i[0].length):-1},b:function(t,e,n){var i=m.exec(e.slice(n));return i?(t.m=g[i[0].toLowerCase()],n+i[0].length):-1},B:function(t,e,n){var i=v.exec(e.slice(n));return i?(t.m=y[i[0].toLowerCase()],n+i[0].length):-1},c:function(t,n,i){return E(t,e,n,i)},d:qr,e:qr,f:Zr,g:Vr,G:jr,H:$r,I:$r,j:Gr,L:Qr,m:Kr,M:Xr,p:function(t,e,n){var i=c.exec(e.slice(n));return i?(t.p=u[i[0].toLowerCase()],n+i[0].length):-1},q:Yr,Q:eo,s:no,S:Jr,u:Wr,U:Fr,V:Br,w:Ur,W:zr,x:function(t,e,i){return E(t,n,e,i)},X:function(t,e,n){return E(t,i,e,n)},y:Vr,Y:jr,Z:Hr,"%":to};function x(t,e){return function(n){var i,r,o,a=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(r=Rr[i=t.charAt(++s)])?i=t.charAt(++s):r="e"===i?" ":"0",(o=e[i])&&(i=o(n,r)),a.push(i),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function S(t,e){return function(n){var i,r,o=Ar(1900,void 0,1);if(E(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=Cr(Ar(o.y,0,1))).getUTCDay(),i=r>4||0===r?vr.ceil(i):vr(i),i=xr.offset(i,7*(o.V-1)),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(r=(i=kr(Ar(o.y,0,1))).getDay(),i=r>4||0===r?er.ceil(i):er(i),i=lr.offset(i,7*(o.V-1)),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?Cr(Ar(o.y,0,1)).getUTCDay():kr(Ar(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Cr(o)):kr(o)}}function E(t,e,n,i){for(var r,o,a=0,s=e.length,l=n.length;a<s;){if(i>=l)return-1;if(37===(r=e.charCodeAt(a++))){if(r=e.charAt(a++),!(o=_[r in Rr?e.charAt(a++):r])||(i=o(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return w.x=x(n,w),w.X=x(i,w),w.c=x(e,w),b.x=x(n,b),b.X=x(i,b),b.c=x(e,b),{format:function(t){var e=x(t+="",w);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}(t),Tr.format,Tr.parse,Tr.utcFormat,Tr.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var qo=$i((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Go=(qo.range,$i((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()}))),$o=(Go.range,$i((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})));function Xo(){this._=null}function Jo(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Qo(t,e){var n=e,i=e.R,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.R=i.L,n.R&&(n.R.U=n),i.L=n}function Zo(t,e){var n=e,i=e.L,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.L=i.R,n.L&&(n.L.U=n),i.R=n}function ta(t){for(;t.L;)t=t.L;return t}$o.range,Xo.prototype={constructor:Xo,insert:function(t,e){var n,i,r;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=ta(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(i=n.U).L?(r=i.R)&&r.C?(n.C=r.C=!1,i.C=!0,t=i):(t===n.R&&(Qo(this,n),n=(t=n).U),n.C=!1,i.C=!0,Zo(this,i)):(r=i.L)&&r.C?(n.C=r.C=!1,i.C=!0,t=i):(t===n.L&&(Zo(this,n),n=(t=n).U),n.C=!1,i.C=!0,Qo(this,i)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,i,r=t.U,o=t.L,a=t.R;if(n=o?a?ta(a):o:a,r?r.L===t?r.L=n:r.R=n:this._=n,o&&a?(i=n.C,n.C=t.C,n.L=o,o.U=n,n!==a?(r=n.U,n.U=t.U,t=n.R,r.L=t,n.R=a,a.U=n):(n.U=r,r=n,t=n.R)):(i=t.C,t=n),t&&(t.U=r),!i)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===r.L){if((e=r.R).C&&(e.C=!1,r.C=!0,Qo(this,r),e=r.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Zo(this,e),e=r.R),e.C=r.C,r.C=e.R.C=!1,Qo(this,r),t=this._;break}}else if((e=r.L).C&&(e.C=!1,r.C=!0,Zo(this,r),e=r.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Qo(this,e),e=r.L),e.C=r.C,r.C=e.L.C=!1,Zo(this,r),t=this._;break}e.C=!0,t=r,r=r.U}while(!t.C);t&&(t.C=!1)}}};var ea=Xo;function na(t,e,n,i){var r=[null,null],o=Ca.push(r)-1;return r.left=t,r.right=e,n&&ra(r,t,e,n),i&&ra(r,e,t,i),Ea[t.index].halfedges.push(o),Ea[e.index].halfedges.push(o),r}function ia(t,e,n){var i=[e,n];return i.left=t,i}function ra(t,e,n,i){t[0]||t[1]?t.left===n?t[1]=i:t[0]=i:(t[0]=i,t.left=e,t.right=n)}function oa(t,e,n,i,r){var o,a=t[0],s=t[1],l=a[0],c=a[1],u=0,h=1,d=s[0]-l,f=s[1]-c;if(o=e-l,d||!(o>0)){if(o/=d,d<0){if(o<u)return;o<h&&(h=o)}else if(d>0){if(o>h)return;o>u&&(u=o)}if(o=i-l,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>u&&(u=o)}else if(d>0){if(o<u)return;o<h&&(h=o)}if(o=n-c,f||!(o>0)){if(o/=f,f<0){if(o<u)return;o<h&&(h=o)}else if(f>0){if(o>h)return;o>u&&(u=o)}if(o=r-c,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>u&&(u=o)}else if(f>0){if(o<u)return;o<h&&(h=o)}return!(u>0||h<1)||(u>0&&(t[0]=[l+u*d,c+u*f]),h<1&&(t[1]=[l+h*d,c+h*f]),!0)}}}}}function aa(t,e,n,i,r){var o=t[1];if(o)return!0;var a,s,l=t[0],c=t.left,u=t.right,h=c[0],d=c[1],f=u[0],p=u[1],v=(h+f)/2,y=(d+p)/2;if(p===d){if(v<e||v>=i)return;if(h>f){if(l){if(l[1]>=r)return}else l=[v,n];o=[v,r]}else{if(l){if(l[1]<n)return}else l=[v,r];o=[v,n]}}else if(s=y-(a=(h-f)/(p-d))*v,a<-1||a>1)if(h>f){if(l){if(l[1]>=r)return}else l=[(n-s)/a,n];o=[(r-s)/a,r]}else{if(l){if(l[1]<n)return}else l=[(r-s)/a,r];o=[(n-s)/a,n]}else if(d<p){if(l){if(l[0]>=i)return}else l=[e,a*e+s];o=[i,a*i+s]}else{if(l){if(l[0]<e)return}else l=[i,a*i+s];o=[e,a*e+s]}return t[0]=l,t[1]=o,!0}function sa(t,e){var n=t.site,i=e.left,r=e.right;return n===r&&(r=i,i=n),r?Math.atan2(r[1]-i[1],r[0]-i[0]):(n===i?(i=e[1],r=e[0]):(i=e[0],r=e[1]),Math.atan2(i[0]-r[0],r[1]-i[1]))}function la(t,e){return e[+(e.left!==t.site)]}function ca(t,e){return e[+(e.left===t.site)]}var ua,ha=[];function da(){Jo(this),this.x=this.y=this.arc=this.site=this.cy=null}function fa(t){var e=t.P,n=t.N;if(e&&n){var i=e.site,r=t.site,o=n.site;if(i!==o){var a=r[0],s=r[1],l=i[0]-a,c=i[1]-s,u=o[0]-a,h=o[1]-s,d=2*(l*h-c*u);if(!(d>=-Ta)){var f=l*l+c*c,p=u*u+h*h,v=(h*f-c*p)/d,y=(l*p-u*f)/d,m=ha.pop()||new da;m.arc=t,m.site=r,m.x=v+a,m.y=(m.cy=y+s)+Math.sqrt(v*v+y*y),t.circle=m;for(var g=null,w=ka._;w;)if(m.y<w.y||m.y===w.y&&m.x<=w.x){if(!w.L){g=w.P;break}w=w.L}else{if(!w.R){g=w;break}w=w.R}ka.insert(g,m),g||(ua=m)}}}}function pa(t){var e=t.circle;e&&(e.P||(ua=e.N),ka.remove(e),ha.push(e),Jo(e),t.circle=null)}var va=[];function ya(){Jo(this),this.edge=this.site=this.circle=null}function ma(t){var e=va.pop()||new ya;return e.site=t,e}function ga(t){pa(t),Sa.remove(t),va.push(t),Jo(t)}function wa(t){var e=t.circle,n=e.x,i=e.cy,r=[n,i],o=t.P,a=t.N,s=[t];ga(t);for(var l=o;l.circle&&Math.abs(n-l.circle.x)<Aa&&Math.abs(i-l.circle.cy)<Aa;)o=l.P,s.unshift(l),ga(l),l=o;s.unshift(l),pa(l);for(var c=a;c.circle&&Math.abs(n-c.circle.x)<Aa&&Math.abs(i-c.circle.cy)<Aa;)a=c.N,s.push(c),ga(c),c=a;s.push(c),pa(c);var u,h=s.length;for(u=1;u<h;++u)c=s[u],l=s[u-1],ra(c.edge,l.site,c.site,r);l=s[0],(c=s[h-1]).edge=na(l.site,c.site,null,r),fa(l),fa(c)}function ba(t){for(var e,n,i,r,o=t[0],a=t[1],s=Sa._;s;)if((i=_a(s,a)-o)>Aa)s=s.L;else{if(!((r=o-xa(s,a))>Aa)){i>-Aa?(e=s.P,n=s):r>-Aa?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){Ea[t.index]={site:t,halfedges:[]}}(t);var l=ma(t);if(Sa.insert(e,l),e||n){if(e===n)return pa(e),n=ma(e.site),Sa.insert(l,n),l.edge=n.edge=na(e.site,l.site),fa(e),void fa(n);if(n){pa(e),pa(n);var c=e.site,u=c[0],h=c[1],d=t[0]-u,f=t[1]-h,p=n.site,v=p[0]-u,y=p[1]-h,m=2*(d*y-f*v),g=d*d+f*f,w=v*v+y*y,b=[(y*g-f*w)/m+u,(d*w-v*g)/m+h];ra(n.edge,c,p,b),l.edge=na(c,t,null,b),n.edge=na(t,p,null,b),fa(e),fa(n)}else l.edge=na(e.site,l.site)}}function _a(t,e){var n=t.site,i=n[0],r=n[1],o=r-e;if(!o)return i;var a=t.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],c=l-e;if(!c)return s;var u=s-i,h=1/o-1/c,d=u/c;return h?(-d+Math.sqrt(d*d-2*h*(u*u/(-2*c)-l+c/2+r-o/2)))/h+i:(i+s)/2}function xa(t,e){var n=t.N;if(n)return _a(n,e);var i=t.site;return i[1]===e?i[0]:1/0}var Sa,Ea,ka,Ca,Aa=1e-6,Ta=1e-12;function Ra(t,e){return e[1]-t[1]||e[0]-t[0]}function Da(t,e){var n,i,r,o=t.sort(Ra).pop();for(Ca=[],Ea=new Array(t.length),Sa=new ea,ka=new ea;;)if(r=ua,o&&(!r||o[1]<r.y||o[1]===r.y&&o[0]<r.x))o[0]===n&&o[1]===i||(ba(o),n=o[0],i=o[1]),o=t.pop();else{if(!r)break;wa(r.arc)}if(function(){for(var t,e,n,i,r=0,o=Ea.length;r<o;++r)if((t=Ea[r])&&(i=(e=t.halfedges).length)){var a=new Array(i),s=new Array(i);for(n=0;n<i;++n)a[n]=n,s[n]=sa(t,Ca[e[n]]);for(a.sort((function(t,e){return s[e]-s[t]})),n=0;n<i;++n)s[n]=e[a[n]];for(n=0;n<i;++n)e[n]=s[n]}}(),e){var a=+e[0][0],s=+e[0][1],l=+e[1][0],c=+e[1][1];!function(t,e,n,i){for(var r,o=Ca.length;o--;)aa(r=Ca[o],t,e,n,i)&&oa(r,t,e,n,i)&&(Math.abs(r[0][0]-r[1][0])>Aa||Math.abs(r[0][1]-r[1][1])>Aa)||delete Ca[o]}(a,s,l,c),function(t,e,n,i){var r,o,a,s,l,c,u,h,d,f,p,v,y=Ea.length,m=!0;for(r=0;r<y;++r)if(o=Ea[r]){for(a=o.site,s=(l=o.halfedges).length;s--;)Ca[l[s]]||l.splice(s,1);for(s=0,c=l.length;s<c;)p=(f=ca(o,Ca[l[s]]))[0],v=f[1],h=(u=la(o,Ca[l[++s%c]]))[0],d=u[1],(Math.abs(p-h)>Aa||Math.abs(v-d)>Aa)&&(l.splice(s,0,Ca.push(ia(a,f,Math.abs(p-t)<Aa&&i-v>Aa?[t,Math.abs(h-t)<Aa?d:i]:Math.abs(v-i)<Aa&&n-p>Aa?[Math.abs(d-i)<Aa?h:n,i]:Math.abs(p-n)<Aa&&v-e>Aa?[n,Math.abs(h-n)<Aa?d:e]:Math.abs(v-e)<Aa&&p-t>Aa?[Math.abs(d-e)<Aa?h:t,e]:null))-1),++c);c&&(m=!1)}if(m){var g,w,b,_=1/0;for(r=0,m=null;r<y;++r)(o=Ea[r])&&(b=(g=(a=o.site)[0]-t)*g+(w=a[1]-e)*w)<_&&(_=b,m=o);if(m){var x=[t,e],S=[t,i],E=[n,i],k=[n,e];m.halfedges.push(Ca.push(ia(a=m.site,x,S))-1,Ca.push(ia(a,S,E))-1,Ca.push(ia(a,E,k))-1,Ca.push(ia(a,k,x))-1)}}for(r=0;r<y;++r)(o=Ea[r])&&(o.halfedges.length||delete Ea[r])}(a,s,l,c)}this.edges=Ca,this.cells=Ea,Sa=ka=Ca=Ea=null}function Oa(t,e,n){this.k=t,this.x=e,this.y=n}function La(t,e){for(var n=t.toString();n.length<e;)n="0"+n;return n}function Ia(t){return La(t,2)}Da.prototype={constructor:Da,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return la(e,t[n])}));return n.data=e.site.data,n}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(n,i){if(o=(r=n.halfedges).length)for(var r,o,a,s,l,c,u=n.site,h=-1,d=e[r[o-1]],f=d.left===u?d.right:d.left;++h<o;)a=f,f=(d=e[r[h]]).left===u?d.right:d.left,a&&f&&i<a.index&&i<f.index&&(l=a,c=f,((s=u)[0]-c[0])*(l[1]-s[1])-(s[0]-l[0])*(c[1]-s[1])<0)&&t.push([u.data,a.data,f.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,e,n){for(var i,r,o=this,a=o._found||0,s=o.cells.length;!(r=o.cells[a]);)if(++a>=s)return null;var l=t-r.site[0],c=e-r.site[1],u=l*l+c*c;do{r=o.cells[i=a],a=null,r.halfedges.forEach((function(n){var i=o.edges[n],s=i.left;if(s!==r.site&&s||(s=i.right)){var l=t-s[0],c=e-s[1],h=l*l+c*c;h<u&&(u=h,a=s.index)}}))}while(null!==a);return o._found=i,null==n||u<=n*n?r.site:null}},Math.SQRT2,Oa.prototype={constructor:Oa,scale:function(t){return 1===t?this:new Oa(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Oa(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new Oa(1,0,0),Oa.prototype;var Pa=function(t,e){void 0===e&&(e="yyyy-MM-dd hh:mm:ss");var n,i,r,o,a=Ia(t.getDate()),s=Ia(t.getMonth()+1),l=Ia(t.getFullYear()),c=Ia(l.substring(2,4)),u=e.indexOf("yyyy")>-1?l:c,h=Ia(t.getHours()),d=Ia(t.getMinutes()),f=Ia(t.getSeconds()),p=La(t.getMilliseconds(),3),v=(n=t.getTimezoneOffset(),i=Math.abs(n),r=String(Math.floor(i/60)),o=String(i%60),1===r.length&&(r="0"+r),1===o.length&&(o="0"+o),n<0?"+"+r+o:"-"+r+o);return e.replace(/dd/g,a).replace(/MM/g,s).replace(/y{1,4}/g,u).replace(/hh/g,h).replace(/mm/g,d).replace(/ss/g,f).replace(/SSS/g,p).replace(/O/g,v)};function Ma(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Na(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Na(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Ua={name:"PlaybackProgressBar",props:{currentTimeProp:{type:Number,required:!0},theme:{type:String}},data:function(){return{width:850,curTimeX:0,dateFormat:Pa,updateMoveLen:null,availableArray:[]}},computed:{middle:function(){return this.width/2},viewBox:function(){return"0 0 ".concat(this.width," 75")},currentTime:function(){return this.checkIfTimeAvailable(this.availableArray,this.currentTimeProp)||this.$emit("updatePlayState",!1),this.updateMoveLen&&this.updateMoveLen(this.currentTimeProp),this.currentTimeProp}},mounted:function(){this.curTimeX=(this.width-150)/2,this.renderBar()},methods:{checkIfTimeAvailable:function(t,e){var n,i=Ma(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.startTime<=e&&r.endTime>e)return!0}}catch(t){i.e(t)}finally{i.f()}return!1},rerenderBar:function(t,e){this.clearBar(),this.renderBar(t,e)},clearBar:function(){var t=$t("g.progress-inner");t.selectAll("g.ticks-container > *").remove(),t.selectAll("g.available-container > *").remove()},formatHourMinute:function(t){return Pa(new Date(t),"hh:mm")},renderBar:function(t,e){var n=this,i=t||n.currentTimeProp,r=36e5,o=[{time:i-5*r,label:n.formatHourMinute(i-5*r)},{time:i-4*r,label:n.formatHourMinute(i-4*r)},{time:i-3*r,label:n.formatHourMinute(i-3*r)},{time:i-2*r,label:n.formatHourMinute(i-2*r)},{time:i-1*r,label:n.formatHourMinute(i-1*r)},{time:i,label:n.formatHourMinute(i)},{time:i+1*r,label:n.formatHourMinute(i+1*r)},{time:i+2*r,label:n.formatHourMinute(i+2*r)},{time:i+3*r,label:n.formatHourMinute(i+3*r)},{time:i+4*r,label:n.formatHourMinute(i+4*r)},{time:i+5*r,label:n.formatHourMinute(i+5*r)}];e||(e=[]),n.availableArray=e;var a=n.width/6,s=i,l=s-3*r;n.updateCurrentTime(s);var c=$t("g.progress-inner"),u=0,h=0;function d(){var t=c.select("g.ticks-container").selectAll("g").data(o,(function(t,e){return t.time})).enter().append("g").attr("class","tick-item"),e=function(t){return(t.time-l)/r*a};t.append("text").attr("x",e).attr("class","enter times-tick").attr("dy",20).text((function(t){return t.label})),t.append("line").attr("x1",(function(t,n){return e(t)})).attr("x2",(function(t,n){return e(t)})).attr("class","tick-path").attr("y1",30).attr("y2",75).attr("stroke-width",1),t.append("line").attr("x1",(function(t,n){return e(t)-a/2})).attr("x2",(function(t,n){return e(t)+a/2})).attr("y1",40).attr("y2",38).attr("stroke","rgba(255,255,255,0)").attr("stroke-width",74),t.append("line").attr("x1",(function(t,n){return e(t)-a/2})).attr("x2",(function(t,n){return e(t)+a/2})).attr("class","tick-path").attr("y1",30).attr("y2",30).attr("stroke-width",3),c.select("g.available-container").selectAll("g").data(n.availableArray,(function(t){return t.startTime})).enter().append("g").attr("class","available-item").append("line").attr("x1",(function(t,e){return(t.startTime-l)/r*a})).attr("x2",(function(t,e){return(t.endTime-l)/r*a})).attr("y1",30).attr("y2",30).attr("stroke-width",3).attr("class","available-path")}n.updateMoveLen=function(t){var e=-(t-s)/r*a;$t(".progress-inner").attr("transform",(function(){return"translate(".concat(e,",0)")}))},d();var f=i+6*r,p=0,v=i-6*r,y=0,m=n.debounceFunc((function(){n.$emit("updateCurrentPlay",n.currentTime)}),1e3),g=function(){var t,e,n,i,r=wi,o=bi,a=_i,s=xi,l={},c=U("start","drag","end"),u=0,h=0;function d(t){t.on("mousedown.drag",f).filter(s).on("touchstart.drag",y).on("touchmove.drag",m).on("touchend.drag touchcancel.drag",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){if(!i&&r.apply(this,arguments)){var a=w("mouse",o.apply(this,arguments),Ve,this,arguments);a&&($t(Mt.view).on("mousemove.drag",p,!0).on("mouseup.drag",v,!0),Qt(Mt.view),Xt(),n=!1,t=Mt.clientX,e=Mt.clientY,a("start"))}}function p(){if(Jt(),!n){var i=Mt.clientX-t,r=Mt.clientY-e;n=i*i+r*r>h}l.mouse("drag")}function v(){$t(Mt.view).on("mousemove.drag mouseup.drag",null),Zt(Mt.view,n),Jt(),l.mouse("end")}function y(){if(r.apply(this,arguments)){var t,e,n=Mt.changedTouches,i=o.apply(this,arguments),a=n.length;for(t=0;t<a;++t)(e=w(n[t].identifier,i,je,this,arguments))&&(Xt(),e("start"))}}function m(){var t,e,n=Mt.changedTouches,i=n.length;for(t=0;t<i;++t)(e=l[n[t].identifier])&&(Jt(),e("drag"))}function g(){var t,e,n=Mt.changedTouches,r=n.length;for(i&&clearTimeout(i),i=setTimeout((function(){i=null}),500),t=0;t<r;++t)(e=l[n[t].identifier])&&(Xt(),e("end"))}function w(t,e,n,i,r){var o,s,h,f=n(e,t),p=c.copy();if(zt(new gi(d,"beforestart",o,t,u,f[0],f[1],0,0,p),(function(){return null!=(Mt.subject=o=a.apply(i,r))&&(s=o.x-f[0]||0,h=o.y-f[1]||0,!0)})))return function a(c){var v,y=f;switch(c){case"start":l[t]=a,v=u++;break;case"end":delete l[t],--u;case"drag":f=n(e,t),v=u}zt(new gi(d,c,o,t,v,f[0]+s,f[1]+h,f[0]-y[0],f[1]-y[1],p),p.apply,p,[c,i,r])}}return d.filter=function(t){return arguments.length?(r="function"==typeof t?t:mi(!!t),d):r},d.container=function(t){return arguments.length?(o="function"==typeof t?t:mi(t),d):o},d.subject=function(t){return arguments.length?(a="function"==typeof t?t:mi(t),d):a},d.touchable=function(t){return arguments.length?(s="function"==typeof t?t:mi(!!t),d):s},d.on=function(){var t=c.on.apply(c,arguments);return t===c?d:t},d.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,d):Math.sqrt(h)},d}().subject((function(){return c})).on("start",(function(){u=Mt.sourceEvent.screenX})).on("drag",(function(t){var e=Mt.sourceEvent.screenX-u+h;n.updateCurrentTime(parseInt(s+-1*e/a*r)),e<=-p*a?(function(){for(var t=0;t<3;t++){var e=new Date(f);o.push({time:f,label:n.dateFormat(e,"hh:mm")}),f+=36e5,p++}var i=f;n.$emit("updateForwardList",(function(t){n.availableArray=n.availableArray.concat(t),d()}),i-4*r,i-r)}(),d()):e>=y*a&&(function(){for(var t=0;t<3;t++){var e=new Date(v);o.unshift({time:v,label:n.dateFormat(e,"hh:mm")}),v-=r,y++}var i=v;n.$emit("updateBackwordList",(function(t){n.availableArray=t.concat(n.availableArray),d()}),i+r,i+4*r)}(),d()),$t(".progress-inner").attr("transform",(function(){return"translate(".concat(e,",0)")}))})).on("end",(function(){h=h+Mt.sourceEvent.screenX-u,m()}));$t(".progress-inner").call(g)},debounceFunc:function(t,e){var n=null;return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];clearTimeout(n),n=setTimeout((function(){t.apply(void 0,r)}),e)}},updateCurrentTime:function(t){this.$emit("update:currentTimeProp",t)}}},Wa=(n(39),f(Ua,C,[],!1,null,null,null));Wa.options.__file="src/components/player-progress-bar.vue";var Fa=Wa.exports,Ba=function(){var t=this.$createElement;return(this._self._c||t)("button",{on:{click:this.onClick}},[this._t("default")],2)};Ba._withStripped=!0;var za=f(o.a.extend({data:function(){return{}},methods:{onClick:function(t){this.$emit("click",t)}}}),Ba,[],!1,null,null,null);za.options.__file="src/components/button.vue";var ja,Va=za.exports;function Ha(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ya={name:"QzPlayer",props:{devices:{type:Array,default:function(){return[]}},type:{type:String,default:"live"},basicConfig:{type:Object,default:function(){return{rows:1,cols:1,combines:{},autoPlay:!0,autoFitView:!0,theme:"light-theme",delay:3e3}}},pluginUrl:{type:String,default:""},playerServer:{type:String,default:""},fileServer:{type:Object,default:function(){}},vodTime:{type:Object,default:function(){}},message:{type:Object,default:function(){}}},components:{RtspPlayer:v,PlayerControlBar:w,PlayerProgressBar:Fa,PlayerTimeSelectBar:k},data:function(){var t=new Date;return{imgAround:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJ4AAACcCAYAAACOTRJwAAAU90lEQVR4Xu1dCdS1VVndu1KMHJhSFAgN+RHBVEQsExBCCUQQA8IUDBAVcgAECSE1VBQUwXCRA6GiGJoMgpCBMouUiANlkpCkpBlhJoVD1m7t3/MvP76+95zzDvfedzjPWnd9a333vGfY775neM4zEEUKAgtAgAtoszRZEEAhXiHBQhAoxFsI7KXRQryJcEDSxiTv7MtwC/H68iZm2A9J2wA4luTvzrCZWlUX4q0AlyTjsgmAzQCsA+CBAB607OP//QTADwH8IHzuBfAdAN8C8M/+S/I/ar2RjgtLuh+Az3kcJB/ZcfWNq5s08ST9PIDHA9gSwBZLPqsA/GJjVO/74D0A/i58/haAPzeT/G5H9UerkXQCgDeEQhuQvHse7abamBTxwkxmou0MYCcAOwB4cAqkGXyvQMRrAaz+kPx21+1IeiyALwC4f6h7V5KXd91Ok/pGTzxJ6wLYF8AzATwdwPpNgJrDMzcDuBDARSQ9K7YSST8H4AYAT1lS0XEk39Kq4o4eHiXxwr5mdwAHAthjyS++I9hmXs1tAD4K4GyStzdpTdJRAE5d9uzHSPpHuHAZFfEkbRfItn+PZ7Y6L91L8tUA/gzA+SR9kEmKJB+Kbllhn/p1kr+arGAOBUZBPEme1byJXrqszAG+uTbhw8g7AZxB8t+qWg772CvDtmKlYuuR/Pe59nyFxgZLvLCH2QfAa8LJdNFYzqt9q2w8A55K8p+WNyrppQD+NNKZXUh+el6drWpncMST9AsAng/guKD+mBWGnlVuBXAHgO8DsFrEn/9c8tfqGKtdHhD++iDziCWfTYPubxZ9/G8A7wZwIsm73IAk6x6turHOsUqsSD5lFh2qU+egiCfJ6o8zAWxVZ5CJslb+fgbATYFoJtutXenZAhm2Dn22Kmd7ACZkV+IfxckATgfwMQC7JSr+aB9uMAZBPEkPBfDWcHBo+8J+DOCvAXgfdBWAz5L0/+YmgYwmoNU7zwawYQeNe9/mGTclt5N8dKrQrL/vNfHCPs57ljeFq6umeHhZugzAOQA+SdL7pF5IOAz4ULQXgN8BsPmMO+aT8rqLvsrrLfEkeTn9AIAntXgRfxPIdl5fropSY5H0NAAHA9gPwC+lyjf8fieSVtMsTHpJPEkG/gwAazdA5kcA3g/gNJLerw1SJNkI4SAAfxgOK12O41Uk395lhXXr6hXxJPkXblXAAXUHAsDL53u8FyRp65BRiCSfmA/tmIDnknzBIgHqDfEkPS5cEz2mJiA+1VmxevoatULN5wdRvGMC/j1JGxAsTHpBPEkvDDNdXVMkHxaOIfmvC0Nwzg0HAr4YwPEAfNpvIv9rqxyS/9Xk4S6eWTjxJPnmwafWOmLrjcNJXlfnobGUlWRTLiuKN24xpieS/GKL51s9ujDiBTWClZ6vqDEC3xq8HsA7SNr6d5IiyTcWnvXayM4krcdciCyEeMFsycukrUhy5UaXX+l+MreCMZSTZANW37W2fXdbkPyHRWHStvO1+x3UBBcAeEbmw1Z4+uhvI0YrgicrkqxesrlTW9Omr5Ds8tqx9juZK/Ek+fDwKQBPzeypTYFeSPITmeVHXUzSaQCO6GCQh5I8q4N6GlcxN+IFq5KLADwrs7e+T92X5Dczy4+6mKTfAHA9AJu0t5EPk7R1z0JlLsQLB4n3efbKHK1nuP1I2nJk8iJpreC0Y2+4puJtir3NTiL5P00r6eq5eRHPZjuvzuy0r7u8FEz21LocJ0lWN1ntVFe+YeubcBi5oE/31TMnXoXTSRWAJ5P03WSRgICkJwKwsYMNYGPi1cE2hT79+2Nzr85dJrt6MTMlniSb+thlL6edo0h681zkZ6Qz2RwF4AkrgPKPYTZbTTIAXxrSKpFDiEZEkGQrWzsT5xgnvobkmxs1NOKHJPla7I0AfLVlAppgq2e0oV8TzoR4QUHs66wcry/fQnShIhgVBYMWwFY6/vHe0ocDQZcAz4p4diS2Q3FK/tyOOyStJC4yIQQ6J54k+xBcnIGhY3jsMfXbiAycRlmkU+I5+J83uQDWS6D1FS/DJH3pX2SCCHRNvPMBPDeBoy2FtyNps54iE0WgM+JJsj+nPblScjBJ32IUmTACnRAvWMXaONPBYmLyQZKO4FRk4gh0RTwbZ74ugeVXAWy7SHPrib/rXg2/NfFCSCzPdvaGqhLb+Psw4SudIgWBrKusKEySLgnBD2PlziT5BwXvYSIgyZ5/jhzvQOJXdmE11GrGk2Qv/9QsZg8wm1l/b5iwT7fXwc/Z/h1L7ff8Pp9H0rFnGktb4tmEfe9E67Ygtn9FkYEhIMnO9Y5ds1ysf926jf9LY+KF2Ca2/4/VcR1JhxYrMjAEgm+Ml9Yqi+d3kTys6bDaEO9Dy6bg5X3w/es2i/TdbApKeW51kMfUNsoWMxs1jTrViHjhJOuAOI6IWSWXkNyzvMRhIhBmPMfcixmgNrahbEo8B8dxIJmY/DpJO+wUGSgCkq4JSWiqRuBUCKtIWl1WS2oTL5x0nK8rFrvtUyRz/WZrdbgUnh8Ckpx077xEi7YwurRur5oQz8aJqVPqwgP/1QWilP//CARjVEeWd0DxKrmc5K518WtCvCsA7BJp6AaSv1m3I6V8PxFYloRvpU76ELll3SCYtYgnaSMAdpmLORUfSPKD/YSx9KouAiHwud+5fXur5BSSx9apuy7x7BtrH9kq8RH7YcUQoM4r6H9ZSY5FHbMq+irJWs7mdYlnY4BYsJdi9tR/HtXuoaRtg5db7NlH10n4l028kPs0ZTX8DJIOylNkZAhIckizWCqEI0i+I3fYdYj3shCJvapup0L/lSY6ndzOlnKLQ0CSQ8UdGelBLRVaHeKlDALeRvKYxUFTWp4lAiEgZMwixUGBnHrewdCTkkW8kGHHSeViUQHKMpuEe7gFgk7PHHhIZBQOK+d8aknJJZ6NAD8fqc25wNbpwkAw2eNSYGEISPpIyDhU1YcPkPz9nA7mEu9VAN4WqfAakk4IV2TECEhyUpaYjvY2klm52HKJ57u43SOYvp7kH48Y8zK0n+bDXR+ALZCrLhCy82fkEs+JeDeIoL/DVHNOTI2Rkr4GIJZ21E5djucXlSTxJDkcxd2RWn7oDee8c76mBla+nw0CklLRIl5E0qnrWxPPQZ9viNTigIArBQ5MtV2+HyACklI+1Flh53JmPJ9SYiEnepFqfIDvcJBdluRkzjGVid0ffys1uBziOVJnLC7xG0i+NtVQ+X4cCEhaBSCWB/guksnkfjnES91YvIDkueOAtYwihUC4TLB7YyzT5oYkbaVeKTnEs2FALLfpk0toitTrGtf3khyP2RYrVfJUko7X3Ip4vnt7UKQO5z29Z1zQltHEEJDkSP7PiZTZm6SzODUjXsjI4ywwVTPjvSRjTj/lDY4QAUlOghPL0vQSkvZEbEy8BwKIzWbfIbnhCLEtQ4ogIMl2d7E8w68l6fRVjYn3cADfijyffTdX3uR4EJBkUp0QGdFpJKNR/6OHi4yj8xdI2nKlyIQQkHQ0gLdGhpwMS5ciXip+xrUkd5wQ5mWoPzUWcBSJ2B7ubJKHtFlqTaqrIxVcSnKP8jamhYCk/QDYNq9KziVpE6rGe7zfBvCXkefPJ7nPtGAvo81IonMeyee1IZ6NO68qM14h21IEJO0PwOnAquQsktGgTqk93nYAYhGfriK5c3kt00IgY4/X+lT7OABfjsDq9JU2myoyIQQykl8nDUdSM54tTW1xWiXFFm9ChFszVEnOaWK7vCp5NcmYuiWebkBSSoF8J8lNJoj9pIcsyY5fdgCrksNIvqvN4cKhZn8UCTnre9y1xpbEd9Ksyhi8JKcgeHGkaNJULscs6k4HWY40sjFJh68oMhEEJH0SQCwY47NJfqLxjOcHJd2YSPFeYh1PhHBL9nhfB/DIyLC3IumcxJWSM+PZvt529lWyH8m/mBj2kx1uyNTpOIhVvrXefq2d8jrMId5pAI6IIH0iyVTmxsm+qLENXFJKxXY7yZjf7WpIcoiXuhD+OMmYNerYsJ/0eCT5ijS2wl1G8lkpkHKIl7q9uIPko1INle/HgUBGMO63k4ypWrJnvLWDFXIs4LYjRTnvVZGRI5Dhb5E0e89aasPJ1tm1t4hguivJy0eO+eSHlxkncUeS16bASi61gXjO7uIsL1VyMsmY03eqH+X7ASAgKRUn0ZcN6+bEScwlXir+8U0knzwA7EoXWyCQYfKeHScxl3jOYRBTCDou2volC3eLtzqARyVdBmC3SFdfR/LEnKFkES8st/Y2s9FAlexD0iGsiowQgRAD2WlE7fJaJduTvD5n+HWIl0qM/BGStkwtMkIEJDkbZ+wAeW+Ig+3o70mpQ7yDAJwdqdHXKA8l6Q4UGRkCkhz7OObAUyuLYx3iOf7tvyQyNpd725ERLmyzvLz63cfClRxN8tTc4WcTL3QgZQ5zAcmYQUFuv0q5HiEgyQn0nEivSny4dFanbPO4usQ7GEAsvq3X901JfrtHuJWutERAkvPTxaJ8XkHymXWaqUs8Z/ZxwL37RRopqQfqvIGel5W0MQBn6Y5dmR5A0ofPbKlFvLDcfhzAnpEWrHbxrPeT7F6Ugr1FQJLzEztPcZU4OqgjgPpwmS1NiJeKLuDG9ycZC3GQ3cFScHEIhFQTnu1iurtzSMZi5a04gCbE8zPOXRoz9rMv7hNIOl99kYEikJFawCPbheSn6w6xNvHCcuvYZ6mjc3Ymv7qdLuVnj4Akhx/2bBfL2Olr1K2bTDBNibcOAB+dbatXJU4j/2tNOjV7WEsLKQQkHQvgLYlySTfGqucbES/MeqlwpGWvl3q7Pf1e0oNDBIlYvorbbaPZ1Ke6DfFsMODGY/kOvgFgy3KN1lOGVXQrI8axnzyU5FlNR9aYeGHWS3mgudgbSf5R0w6W5+aLgCTnpbspEj3CHbKT/2YpF8ZYz9sS72EA7Nwbm/VslWoHX8+ORXqMQEgv8RkAqQhgryT5J22G0op4YdZLKRhd7GKSe7XpaHl29ghIehGA9yZauiNsn5wutrF0QTwfu51ULWYk6g76hHtL456WB2eKgCQfJKwesRVSTPYkeUnbzrQmXpj1ng8gdVd3EElnhCnSMwTCEvtXAGzsGZPOVq5OiBfIdw2AHSK93o2kzaqK9AwBScf7EJjo1g+cTJGkl9rW0iXxHFPDuegfsEKv7gKweXH6bv2+Oq9AkieLKxOnWLd7PMmTuupAZ8QLs54NCJy1b60lHbQpvC2TL+2q06WebhCQ9MsAvgjgEYkavYf3Hv3H3bScEbSnbkOSnA3I0SIdzNG5bt9L8ra69ZTys0VAkm0q7a64S6IlG/faeywW/b92Zzud8Wq3Xh5YCALhMHFOwnlnTd9q+VLkDqgQLxepEZWTZMuiaHbFMFyHk7X6pHPztkK8EREqZyiSbE1spX9KvhlsKr+bKtjk+0K8JqgN9BlJthTO0aXabWEHkp+d1VAnQTxJvkt+GskrZgVk3+uV9BIAZyacdtYM40iSp89yTKMmniRbzx4e0pg7UmXOEjNLvBdStyRbB2UF0wGQFdGz7UBGSTxJzjZ0pG3GgqOKI5FvMjV/3xBI8Yzw48vhiq89D5zFYWJ546MinqStgiuec6Uu9f3NCgid82aGUkbS/cP9+b6ZfXZeYp9g5+KWOgriSdo+EM7Rxlca06QcjyQ5+YndSx04PUesHN55npbigyVeUILasdxOKTHDRasDHt7ldU/Om1xUGUl7h6hedsjKEbuimnR35xTuqszgiBeWEIfLOgbAYzKAeCfJl2eUG3SRgMspAF5ZYyDXheX1ezWe6aToYIgX/DytEvChIXWpvRScJ5G8uRO0elqJJEfk98Fg2xpddCgSR3xoZUlco737FO098cIv+eiwh3tIzYF+meTjaz4zmOKS7NdsWzrj48NErtg77KVNXRNzG4mV6zXxJG0A4Cp7qzcc7MwVoQ371foxSd7f2uFm05qVnUTSZF2o9JZ4kpyk+YYaJ7PlQNqcZyOSNkIdjUhyzBq7le5Rc1C2izycZCzAYs0qmxfvM/F+D8C5zYeGC0k+t8XzvXpU0mMBHAfAOkr/KOuI7SJtjBvNIVunwrZl+0w836umjBRj49+L5MVtAVr08yGbjpdGq0mavK/3AXjZPHV0OZg1GUhOva3LSEqlpE+14Zf1fpIOFDkoCQeq3QH4FG93gibiQImHkXS09t5Jn4lnheZ6LRFzUGjH7/W+5qK+/eqXj03SU3xXGvLGpfxbY9A4Xp33c45j2EvpM/FuBOAX0ZXcA8Bp7m1VezXJmRg41ulsyJZj3ZsDV9s3eVWd51co66DnR5F00sNeS5+J55sJa+JnIZ4J7V1ltz5/riPpWL4zlXDN56A4O/maKvghOxJDW7H1ja1QnEvs+20rm8fzfSaedXg2v17JT7drbGyR4WXJeXntyrfm761NEgMGD67NQo5f3yr44+s9n0xz71Bzx+hrr5eT/FLuA30o11viGRxJ1rAfsmCgPIP446V66cczpP2HPWMt/ThQtfemdVUedYfpmdoh4KxgH5z0nXiOTmDriSI/Q8B71DeR9B54sNJr4oVZzyc074dyxFYWXS9lOe3Ouow9+C8E8OahLalVwAyBeL6TtCVFSlZHqQwkPQDAcxLBwVP19eF7G2ja8dopWedqLzfrwQ+BeE5l5I2/SRWT+1x+BzMqX5lZL/b0TO+qWeOdU79D/NvEyYlLequHyxlIrEzviReW21cAcJT5mKwi+bWVCkhyHBfHfvOSbVWG83P1RRz+y1mtfUjwtuJz83C2WfTgh0I8nxq9lDoM/kpyPUn7XWSJpM2X6NL8XB3D0qw2IoVsJfL5JTrEG6dilr8Uk0EQL8x6sXgfh5CMZQ+PkkWSDUzX6NuW/vXyHksiU1WvFbpOQGOd4JrPGt3gnVOY0VK/ziERz55TDne2XD/my3A781jH1rkEZbB1cyvp6xzRfrl+7x6SXj6LRBAYDPHCrHc+gOU2do2yBxZWLBaBoRHP+7Frl0G2E8mrFwtjab0uAoMiXpj1vDHfJgzUyV2cYabz+G11gSzl6yEwROLZp3aNcaOtMXKD0dRDppSeKQJDJJ7d+BzyfkMAjyJphWuRgSEwOOKF5fYE30aQbOOTMbBXNa7uDpV4ttXbkaRPuUUGiMD/Ac2GRvfg+v/gAAAAAElFTkSuQmCC",urls:[],date:new Date("".concat(Pa(t,"yyyy-MM-dd")," 00:00:00")).getTime(),isPlaying:!1,isCanPlay:!1,pluginLoadSuccess:!0,loadFailedMsg:"",playerHeight:0,loading:!1,vodRecord:{beginTime:"",endTime:""},monthRecord:[],fileList:[],paused:!0,interval:null,request:null,playingId:"",errorCode:0,showControlBar:!0,pluginDownloadUrl:"",dcs:null,showPlayBtn:!0}},created:function(){this.loading=!1;var t=this.isVueOptions(this.basicConfig.button||null);this.isVueOptions(this.basicConfig.button||null),o.a.component("player-button",t?this.basicConfig.button:Va)},watch:{pluginLoadSuccess:{handler:function(t,e){var n=this;if(t&&t!==e)if("playback"===this.type)this.devices.length>0&&void 0!==this.devices[0].id&&!this.playerServer&&setTimeout((function(){n.getPlaybackUrl()}),300);else if(this.urls=[],this.devices&&0!==this.devices.length&&(this.urls=this.devices.map((function(t){return t})),0===this.urls.length))return void this.message.warning("暂无可播放的".concat("file"===this.type?"文件":"流地址","!"))}},devices:{handler:function(t,e){var n=this;if(!(this.isPlaying&&t&&1===t.length&&e&&1===e.length&&t[0].rtspUrl===e[0].rtspUrl)){this.stop(),this.basicConfig.rows,this.basicConfig.cols;var i=t.filter((function(t){return""!==t.rtspUrl}));0!==i.length?(this.urls=i,0!==this.urls.length&&this.$nextTick((function(){n.basicConfig.autoPlay&&n.play()}))):this.urls=[]}},deep:!0,immediate:!0},loading:{handler:function(t){this.$emit("loading")},deep:!0},basicConfig:{handler:function(t){t.rows&&t.cols&&t.rows>1&&t.cols>1?this.showPlayBtn=!1:this.showPlayBtn=!0},immediate:!0,deep:!0}},beforeDestroy:function(){this.$refs.player&&this.$refs.player.streamCloses(),window.onbeforeunload=null},computed:{playerProgressBar:function(){return"playback"===this.type?this.$refs.playerProgressBar:null},deviceTimeOffsetHour:function(){return this.devices&&this.devices.length>0&&this.devices[0].timeOffsetHour||0},isDcsPlayback:function(){return"playback"===this.type&&""!==this.playerServer}},methods:(ja={pluginOnload:function(t,e){this.$emit("onLoad",t,e)},pluginStatusChange:function(t,e,n){this.pluginLoadSuccess=!1,this.loadFailedMsg=e,this.pluginDownloadUrl=n,this.$emit(t,e,n)},playerOnLogin:function(){this.isCanPlay=!0,this.dcs=this.$refs.player&&this.$refs.player.dcs,this.play(),this.$emit("onLogin")},onStreamStatus:function(t){var e=this,n=t.id,i=t.status,r=t.code,o=t.errorText,a=t.index;this.loading=!1,2===i?(this.isPlaying=!this.isPlaying,this.basicConfig.autoFitView&&setTimeout((function(){e.autoFitView()}),this.basicConfig.delay||3e3),"playback"===this.type&&this.updateTime()):this.pauseTime(),this.$emit("onStreamStatus",{id:n,status:i,code:r,errorText:o,index:a})},onPlayFinished:function(t){this.$emit("onPlayFinished",t)},onWinOp:function(t){var e=t.index,n=t.streamItem,i=t.state;this.$emit("onWinOp",{index:e,streamItem:n,state:i})},onWinSwap:function(t){var e=t.index,n=t.swapTargetIndex,i=t.streamItem,r=t.state;this.$emit("onWinSwap",{index:e,swapTargetIndex:n,streamItem:i,state:r})},onWinDrop:function(t){this.$emit("onWinDrop",t)},onDownloadStatus:function(t,e,n,i){this.$emit("onDownloadStatus",t,e,n,i)},onDownloadProgress:function(t,e,n){this.$emit("onDownloadProgress",t,e,n)},onAudioState:function(t,e,n,i,r){this.$emit("onAudioState",t,e,n,i,r)},onRecord:function(t,e,n){this.$emit("onRecord",t,e,n)},play:function(){var t=this;"live"===this.type||"file"===this.type?1===this.urls.length?this.$refs.player&&this.$refs.player.play():this.urls.map((function(e,n){t.$refs.player&&t.$refs.player.play(n)})):"playback"===this.type&&(this.isDcsPlayback?this.$refs.player&&this.$refs.player.play():(this.updateTime(),this.getPlaybackUrl()))},pause:function(){var t=this;this.isPlaying=!this.isPlaying,this.$refs.player&&this.$refs.player.pause().then((function(){"playback"===t.type&&t.stop()}))},stop:function(t){this.isPlaying=!1,this.$refs.player&&this.$refs.player.stop(t),this.pauseTime()},reconnect:function(){var t=this;this.$refs.player&&this.$refs.player.stop(),this.errorCode=0,this.urls=[],this.devices.map((function(e){t.urls.push(e)})),this.$refs.player&&this.$refs.player.play()},getStreamInfo:function(t){return this.$refs.player&&this.$refs.player.getStreamInfo(t||-1)},capture:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(n){t.$refs.player&&t.$refs.player.capture(e).then((function(t){n(t)}))}))},autoFitView:function(){if(!this.getStreamInfo()){var t=this.getStreamInfo();if(!t)return;var e=t.width,n=t.height;if(e&&n){var i=e/n,r=this.$refs.renderPlayer.getBoundingClientRect();this.playerHeight=r.width/i}}},getLayout:function(){return this.$refs.player&&this.$refs.player.getLayout()},setLayout:function(t){return this.$refs.player&&this.$refs.player.setLayout(t)},setControlBar:function(t){this.showControlBar=t},getPlaybackUrl:function(){var t=this;if(this.devices&&this.devices.length>0&&!this.playerServer){this.setControlBar(!0);var e=Pa(new Date(this.date),"yyyyMMddhhmmss"),n=Pa(new Date,"yyyyMMddhhmmss"),i="".concat(this.devices[0].dcs?"dcs://":"").concat(this.devices[0].rtspUrl,"?begin=").concat(e,"&end=").concat(n);this.devices[0].rtspUrl.includes("begin")&&this.devices[0].rtspUrl.includes("end")&&(i=this.devices[0].rtspUrl,this.setControlBar(!1)),this.urls=[{rtspUrl:i}],this.$forceUpdate(),this.$nextTick((function(){t.$refs.player&&t.$refs.player.play()}))}},backward:function(){var t=this;this.date-=15e3,this.pauseTime(),this.stop(),setTimeout((function(){t.getPlaybackUrl()}),300)},forward:function(){var t=this;this.date+=15e3,this.pauseTime(),this.stop(),setTimeout((function(){t.getPlaybackUrl()}),300)},onUpdateBackwordList:function(t,e,n){},onUpdateForwardList:function(t,e,n){},onUpdateCurrentPlay:function(t){var e=this;t>(new Date).getTime()?this.date=(new Date).getTime():this.date=t,this.$refs.player&&this.$refs.player.streamCloses(),setTimeout((function(){e.getPlaybackUrl()}),300)},onUpdatePlayState:function(t){t&&this.getPlaybackUrl()},updateTime:function(t,e){var n=this;if("playback"===this.type){if(this.interval)return;this.paused=!1,this.interval=window.setInterval((function(){n.date+=1e3}),1e3)}},pauseTime:function(){"playback"===this.type&&(clearInterval(this.interval),this.interval=null)},dateChange:function(t){this.judgeSelectData(t),this.getPlaybackUrl(),this.playerProgressBar.rerenderBar(this.date)},dateFocus:function(){},judgeSelectData:function(t){this.date=t},controlIconClick:function(){"playback"!==this.type&&(0!==this.devices.map((function(t){return t.rtspUrl})).length?this.isPlaying?this.pause():this.play():this.message.warning("暂无可播放的".concat("file"===this.type?"文件":"流地址","!")))},downloadPlugin:function(){window.open(this.pluginDownloadUrl)},showFullscreen:function(){return this.$refs.player&&this.$refs.player.showFullscreen()},ptzControl:function(t,e,n){return this.$refs.player&&this.$refs.player.ptzControl(t,e,n)},swapWindow:function(t,e){return this.$refs.player&&this.$refs.player.swapWindow(t,e)},playIndex:function(t,e,n){return this.$refs.player&&this.$refs.player.openStreamInServer(t,e,n||{})},selectWindow:function(t){return this.$refs.player&&this.$refs.player.selectWindow(t)},getStreamItem:function(t,e){return this.$refs.player&&this.$refs.player.getStreamItem(t,e)}},Ha(ja,"showFullscreen",(function(){return this.$refs.player&&this.$refs.player.showFullscreen()})),Ha(ja,"toggleWindow",(function(){return this.$refs.player&&this.$refs.player.toggleWindow()})),Ha(ja,"startRecord",(function(t,e,n){return"live"===this.type&&this.$refs.player&&this.$refs.player.startRecord(t,e,n)})),Ha(ja,"stopRecord",(function(t){return"live"===this.type&&this.$refs.player&&this.$refs.player.stopRecord(t)})),Ha(ja,"isVueOptions",(function(t){return!!t&&("string"==typeof t.template||"function"==typeof t.render)})),ja)},Ka=(n(41),f(Ya,i,[],!1,null,null,null));Ka.options.__file="src/components/player.vue";var qa=Ka.exports;e.default=qa}]).default}))}}]); |