(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=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+"]>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,"$")})),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;r1||""[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=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=[];xdocument.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;on.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r-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([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=t.replace(e,"$1").trim());for(var l=0;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-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;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);nthis.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?ni.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 tn[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.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;e1)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;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n-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++):n0&&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;rn.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;rw;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;uo;)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=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;npath[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;sc)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;sf[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;n2?arguments[2]:void 0,u=Math.min((void 0===c?a:r(c,a))-l,a-s),h=1;for(l0;)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:ru;)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=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;r1?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(;o255?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>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<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<>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;uZ;)(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=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);e1&&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);n1&&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='',U.MAXIMIZE='',U.ROI_RECT='',U.ROI_POLYGON='',U.SCALE_VIEW='',U.STOP='',U.STATE_GREEN='',U.STATE_RED='',U.STATE_YELLOW='',U.VOLUME_ON='',U.VOLUME_OFF='',U.RECORD='',U.TALK_ON='',U.TALK_OFF='',U.PTZ_CTL='',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=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);n0&&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;ythis.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;hi.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);n0||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=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=.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=.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();s0&&(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;l0&&(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;s0&&(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;e6&&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;n0&&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=.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=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);n6&&(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=0&&i.selectedIndex1&&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;e0?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;n0&&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&&o1&&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="".concat($.PLUGIN_DOWNLOAD,""),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=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;a1)for(var d=0;d0&&(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);n2&&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=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.selectedIndex1){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=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;a1)for(var d=0;d0&&(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;e0)this.onStream(t);else if(0===this.backwardCaches.length)this.backwardCaches.push(t);else if(t.time100){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;e6?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.timen.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=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=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=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.framePosn.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=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=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=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(ethis.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;ie)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?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(tthis.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);n0&&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];i0&&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),e0&&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=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=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;e0&&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;tthis.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;n0&&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.posSec0&&a1e3||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;e0&&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);n0&&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;e0&&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 te?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>>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>>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=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;i0)for(var n,i,r=new Array(n),o=0;oe?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=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=_&&(_=b+1);!(w=m[_])&&++_=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;o1?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>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*(n0&&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=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=io&&(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=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]):+c0)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*i180?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=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;a1e-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=(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;nu&&(u=i),rh&&(h=r));if(l>u||c>h)return this;for(this.cover(l,c).cover(u,h),n=0;nt||t>=r||i>e||e>=o;)switch(s=(ed||(o=l.y0)>f||(a=l.x1)=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=(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;e1);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=^]))?([+\-( ])?([$#])?(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;i0&&(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(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>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-e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=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+(o68?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));++s53)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=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(o0){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(o0)){if(o/=f,f<0){if(o0){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(o0||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=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]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]=i)return}else l=[e,a*e+s];o=[i,a*i+s]}else{if(l){if(l[0]=-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.yAa)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]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;rAa||Math.abs(v-d)>Aa)&&(l.splice(s,0,Ca.push(ia(a,f,Math.abs(p-t)Aa?[t,Math.abs(h-t)Aa?[Math.abs(d-i)Aa?[n,Math.abs(h-n)Aa?[Math.abs(d-e)=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-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);ne)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=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;o0&&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}))}}]);