>>1,$2=c[w2];$2!==null&&!Vn($2)&&(T?$2<=p:$2=S){var z3=p?null:UM(c);if(z3)return _s(z3);$2=!1,e2=pa,p3=new w9}else p3=p?[]:i3;e:for(;++D=D?c:f6(c,p,T)}var _m=pC||function(c){return Ct.clearTimeout(c)};function Sm(c,p){if(p)return c.slice();var T=c.length,D=Gp?Gp(T):new c.constructor(T);return c.copy(D),D}function Bu(c){var p=new c.constructor(c.byteLength);return new As(p).set(new As(c)),p}function EM(c,p){var T=p?Bu(c.buffer):c.buffer;return new c.constructor(T,c.byteOffset,c.byteLength)}function PM(c){var p=new c.constructor(c.source,ca.exec(c));return p.lastIndex=c.lastIndex,p}function RM(c){return _a?le(_a.call(c)):{}}function bm(c,p){var T=p?Bu(c.buffer):c.buffer;return new c.constructor(T,c.byteOffset,c.length)}function Tm(c,p){if(c!==p){var T=c!==m,D=c===null,e2=c===c,w2=Vn(c),$2=p!==m,i3=p===null,p3=p===p,z3=Vn(p);if(!i3&&!z3&&!w2&&c>p||w2&&$2&&p3&&!i3&&!z3||D&&$2&&p3||!T&&p3||!e2)return 1;if(!D&&!w2&&!z3&&c=i3)return p3;var z3=T[D];return p3*(z3=="desc"?-1:1)}}return c.index-p.index}function wm(c,p,T,D){for(var e2=-1,w2=c.length,$2=T.length,i3=-1,p3=p.length,z3=ct(w2-$2,0),G3=E3(p3+z3),Y3=!D;++i31?T[e2-1]:m,$2=e2>2?T[2]:m;for(w2=c.length>3&&typeof w2=="function"?(e2--,w2):m,$2&&en(T[0],T[1],$2)&&(w2=e2<3?m:w2,e2=1),p=le(p);++D-1?e2[w2?p[$2]:$2]:m}}function Pm(c){return Ii(function(p){var T=p.length,D=T,e2=d6.prototype.thru;for(c&&p.reverse();D--;){var w2=p[D];if(typeof w2!="function")throw new c6(E);if(e2&&!$2&&Ws(w2)=="wrapper")var $2=new d6([],!0)}for(D=$2?D:T;++D1&&P0.reverse(),G3&&p3i3))return!1;var z3=w2.get(c),G3=w2.get(p);if(z3&&G3)return z3==p&&G3==c;var Y3=-1,y1=!0,I1=T&C?new w9:m;for(w2.set(c,p),w2.set(p,c);++Y31?"& ":"")+p[D],p=p.join(T>2?", ":" "),c.replace(Mi,`{
+*/var Kg,V5,wr,uf,Y9,Xg,cf,AI=function(){return typeof window!="undefined"},n5={},z9=180/Math.PI,xr=Math.PI/180,L8=Math.atan2,Jg=1e8,df=/([A-Z])/g,CI=/(left|right|width|margin|padding|x)/i,MI=/[\s,\(]\S/,vi={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Jd=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},EI=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},PI=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},RI=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},NI=function(e,t){var i=t.s+t.c*e;t.set(t.t,t.p,~~(i+(i<0?-.5:.5))+t.u,t)},nT=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},iT=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},LI=function(e,t,i){return e.style[t]=i},II=function(e,t,i){return e.style.setProperty(t,i)},kI=function(e,t,i){return e._gsap[t]=i},FI=function(e,t,i){return e._gsap.scaleX=e._gsap.scaleY=i},DI=function(e,t,i,r,a){var s=e._gsap;s.scaleX=s.scaleY=i,s.renderTransform(a,s)},UI=function(e,t,i,r,a){var s=e._gsap;s[t]=i,s.renderTransform(a,s)},Fe="transform",Rn=Fe+"Origin",OI=function n(e,t){var i=this,r=this.target,a=r.style,s=r._gsap;if(e in n5&&a){if(this.tfm=this.tfm||{},e!=="transform")e=vi[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return i.tfm[o]=Ki(r,o)}):this.tfm[e]=s.x?s[e]:Ki(r,e),e===Rn&&(this.tfm.zOrigin=s.zOrigin);else return vi.transform.split(",").forEach(function(o){return n.call(i,o,t)});if(this.props.indexOf(Fe)>=0)return;s.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Rn,t,"")),e=Fe}(a||t)&&this.props.push(e,t,a[e])},rT=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},BI=function(){var e=this.props,t=this.target,i=t.style,r=t._gsap,a,s;for(a=0;a=0?Zg[s]:"")+e},Qd=function(){AI()&&window.document&&(Kg=window,V5=Kg.document,wr=V5.documentElement,Y9=Zd("div")||{style:{}},Zd("div"),Fe=Or(Fe),Rn=Fe+"Origin",Y9.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",sT=!!Or("perspective"),cf=Ln.core.reverting,uf=1)},Qg=function(e){var t=e.ownerSVGElement,i=Zd("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=e.cloneNode(!0),a;r.style.display="block",i.appendChild(r),wr.appendChild(i);try{a=r.getBBox()}catch(s){}return i.removeChild(r),wr.removeChild(i),a},ev=function(e,t){for(var i=t.length;i--;)if(e.hasAttribute(t[i]))return e.getAttribute(t[i])},oT=function(e){var t,i;try{t=e.getBBox()}catch(r){t=Qg(e),i=1}return t&&(t.width||t.height)||i||(t=Qg(e)),t&&!t.width&&!t.x&&!t.y?{x:+ev(e,["x","cx","x1"])||0,y:+ev(e,["y","cy","y1"])||0,width:0,height:0}:t},lT=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&oT(e))},i9=function(e,t){if(t){var i=e.style,r;t in n5&&t!==Rn&&(t=Fe),i.removeProperty?(r=t.substr(0,2),(r==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),i.removeProperty(r==="--"?t:t.replace(df,"-$1").toLowerCase())):i.removeAttribute(t)}},H5=function(e,t,i,r,a,s){var o=new Pn(e._pt,t,i,0,1,s?iT:nT);return e._pt=o,o.b=r,o.e=a,e._props.push(i),o},tv={deg:1,rad:1,turn:1},zI={grid:1,flex:1},r9=function n(e,t,i,r){var a=parseFloat(i)||0,s=(i+"").trim().substr((a+"").length)||"px",o=Y9.style,l=CI.test(t),u=e.tagName.toLowerCase()==="svg",d=(u?"client":"offset")+(l?"Width":"Height"),h=100,f=r==="px",v=r==="%",_,b,y,w;if(r===s||!a||tv[r]||tv[s])return a;if(s!=="px"&&!f&&(a=n(e,t,i,"px")),w=e.getCTM&&lT(e),(v||s==="%")&&(n5[t]||~t.indexOf("adius")))return _=w?e.getBBox()[l?"width":"height"]:e[d],qe(v?a/_*h:a/100*_);if(o[l?"width":"height"]=h+(f?s:r),b=r!=="rem"&&~t.indexOf("adius")||r==="em"&&e.appendChild&&!u?e:e.parentNode,w&&(b=(e.ownerSVGElement||{}).parentNode),(!b||b===V5||!b.appendChild)&&(b=V5.body),y=b._gsap,y&&v&&y.width&&l&&y.time===Jn.time&&!y.uncache)return qe(a/y.width*h);if(v&&(t==="height"||t==="width")){var D=e.style[t];e.style[t]=h+r,_=e[d],D?e.style[t]=D:i9(e,t)}else(v||s==="%")&&!zI[e6(b,"display")]&&(o.position=e6(e,"position")),b===e&&(o.position="static"),b.appendChild(Y9),_=Y9[d],b.removeChild(Y9),o.position="absolute";return l&&v&&(y=J9(b),y.time=Jn.time,y.width=b[d]),qe(f?_*a/h:_&&a?h/_*a:0)},Ki=function(e,t,i,r){var a;return uf||Qd(),t in vi&&t!=="transform"&&(t=vi[t],~t.indexOf(",")&&(t=t.split(",")[0])),n5[t]&&t!=="transform"?(a=E4(e,r),a=t!=="transformOrigin"?a[t]:a.svg?a.origin:zo(e6(e,Rn))+" "+a.zOrigin+"px"):(a=e.style[t],(!a||a==="auto"||r||~(a+"").indexOf("calc("))&&(a=Bo[t]&&Bo[t](e,t,i)||e6(e,t)||xb(e,t)||(t==="opacity"?1:0))),i&&!~(a+"").trim().indexOf(" ")?r9(e,t,a,i)+i:a},GI=function(e,t,i,r){if(!i||i==="none"){var a=Or(t,e,1),s=a&&e6(e,a,1);s&&s!==i?(t=a,i=s):t==="borderColor"&&(i=e6(e,"borderTopColor"))}var o=new Pn(this._pt,e.style,t,0,1,Qb),l=0,u=0,d,h,f,v,_,b,y,w,D,R,U,j;if(o.b=i,o.e=r,i+="",r+="",r.substring(0,6)==="var(--"&&(r=e6(e,r.substring(4,r.indexOf(")")))),r==="auto"&&(b=e.style[t],e.style[t]=r,r=e6(e,t)||r,b?e.style[t]=b:i9(e,t)),d=[i,r],Hb(d),i=d[0],r=d[1],f=i.match(cr)||[],j=r.match(cr)||[],j.length){for(;h=cr.exec(r);)y=h[0],D=r.substring(l,h.index),_?_=(_+1)%5:(D.substr(-5)==="rgba("||D.substr(-5)==="hsla(")&&(_=1),y!==(b=f[u++]||"")&&(v=parseFloat(b)||0,U=b.substr((v+"").length),y.charAt(1)==="="&&(y=Tr(v,y)+U),w=parseFloat(y),R=y.substr((w+"").length),l=cr.lastIndex-R.length,R||(R=R||t6.units[t]||U,l===r.length&&(r+=R,o.e+=R)),U!==R&&(v=r9(e,t,b,R)||0),o._pt={_next:o._pt,p:D||u===1?D:",",s:v,c:w-v,m:_&&_<4||t==="zIndex"?Math.round:0});o.c=l-1;)o=a[u],n5[o]&&(l=1,o=o==="transformOrigin"?Rn:Fe),i9(i,o);l&&(i9(i,Fe),s&&(s.svg&&i.removeAttribute("transform"),r.scale=r.rotate=r.translate="none",E4(i,1),s.uncache=1,rT(r)))}},Bo={clearProps:function(e,t,i,r,a){if(a.data!=="isFromStart"){var s=e._pt=new Pn(e._pt,t,i,0,0,HI);return s.u=r,s.pr=-10,s.tween=a,e._props.push(i),1}}},M4=[1,0,0,1,0,0],uT={},cT=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},iv=function(e){var t=e6(e,Fe);return cT(t)?M4:t.substr(7).match(yb).map(qe)},hf=function(e,t){var i=e._gsap||J9(e),r=e.style,a=iv(e),s,o,l,u;return i.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,a=[l.a,l.b,l.c,l.d,l.e,l.f],a.join(",")==="1,0,0,1,0,0"?M4:a):(a===M4&&!e.offsetParent&&e!==wr&&!i.svg&&(l=r.display,r.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,o=e.nextElementSibling,wr.appendChild(e)),a=iv(e),l?r.display=l:i9(e,"display"),u&&(o?s.insertBefore(e,o):s?s.appendChild(e):wr.removeChild(e))),t&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},eh=function(e,t,i,r,a,s){var o=e._gsap,l=a||hf(e,!0),u=o.xOrigin||0,d=o.yOrigin||0,h=o.xOffset||0,f=o.yOffset||0,v=l[0],_=l[1],b=l[2],y=l[3],w=l[4],D=l[5],R=t.split(" "),U=parseFloat(R[0])||0,j=parseFloat(R[1])||0,q,K,c2,S2;i?l!==M4&&(K=v*y-_*b)&&(c2=U*(y/K)+j*(-b/K)+(b*D-y*w)/K,S2=U*(-_/K)+j*(v/K)-(v*D-_*w)/K,U=c2,j=S2):(q=oT(e),U=q.x+(~R[0].indexOf("%")?U/100*q.width:U),j=q.y+(~(R[1]||R[0]).indexOf("%")?j/100*q.height:j)),r||r!==!1&&o.smooth?(w=U-u,D=j-d,o.xOffset=h+(w*v+D*b)-w,o.yOffset=f+(w*_+D*y)-D):o.xOffset=o.yOffset=0,o.xOrigin=U,o.yOrigin=j,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!i,e.style[Rn]="0px 0px",s&&(H5(s,o,"xOrigin",u,U),H5(s,o,"yOrigin",d,j),H5(s,o,"xOffset",h,o.xOffset),H5(s,o,"yOffset",f,o.yOffset)),e.setAttribute("data-svg-origin",U+" "+j)},E4=function(e,t){var i=e._gsap||new Yb(e);if("x"in i&&!t&&!i.uncache)return i;var r=e.style,a=i.scaleX<0,s="px",o="deg",l=getComputedStyle(e),u=e6(e,Rn)||"0",d,h,f,v,_,b,y,w,D,R,U,j,q,K,c2,S2,H,Z,G2,q2,C2,E2,A2,X2,b2,J,p2,N2,e3,h3,I2,n2;return d=h=f=b=y=w=D=R=U=0,v=_=1,i.svg=!!(e.getCTM&&lT(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(r[Fe]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[Fe]!=="none"?l[Fe]:"")),r.scale=r.rotate=r.translate="none"),K=hf(e,i.svg),i.svg&&(i.uncache?(b2=e.getBBox(),u=i.xOrigin-b2.x+"px "+(i.yOrigin-b2.y)+"px",X2=""):X2=!t&&e.getAttribute("data-svg-origin"),eh(e,X2||u,!!X2||i.originIsAbsolute,i.smooth!==!1,K)),j=i.xOrigin||0,q=i.yOrigin||0,K!==M4&&(Z=K[0],G2=K[1],q2=K[2],C2=K[3],d=E2=K[4],h=A2=K[5],K.length===6?(v=Math.sqrt(Z*Z+G2*G2),_=Math.sqrt(C2*C2+q2*q2),b=Z||G2?L8(G2,Z)*z9:0,D=q2||C2?L8(q2,C2)*z9+b:0,D&&(_*=Math.abs(Math.cos(D*xr))),i.svg&&(d-=j-(j*Z+q*q2),h-=q-(j*G2+q*C2))):(n2=K[6],h3=K[7],p2=K[8],N2=K[9],e3=K[10],I2=K[11],d=K[12],h=K[13],f=K[14],c2=L8(n2,e3),y=c2*z9,c2&&(S2=Math.cos(-c2),H=Math.sin(-c2),X2=E2*S2+p2*H,b2=A2*S2+N2*H,J=n2*S2+e3*H,p2=E2*-H+p2*S2,N2=A2*-H+N2*S2,e3=n2*-H+e3*S2,I2=h3*-H+I2*S2,E2=X2,A2=b2,n2=J),c2=L8(-q2,e3),w=c2*z9,c2&&(S2=Math.cos(-c2),H=Math.sin(-c2),X2=Z*S2-p2*H,b2=G2*S2-N2*H,J=q2*S2-e3*H,I2=C2*H+I2*S2,Z=X2,G2=b2,q2=J),c2=L8(G2,Z),b=c2*z9,c2&&(S2=Math.cos(c2),H=Math.sin(c2),X2=Z*S2+G2*H,b2=E2*S2+A2*H,G2=G2*S2-Z*H,A2=A2*S2-E2*H,Z=X2,E2=b2),y&&Math.abs(y)+Math.abs(b)>359.9&&(y=b=0,w=180-w),v=qe(Math.sqrt(Z*Z+G2*G2+q2*q2)),_=qe(Math.sqrt(A2*A2+n2*n2)),c2=L8(E2,A2),D=Math.abs(c2)>2e-4?c2*z9:0,U=I2?1/(I2<0?-I2:I2):0),i.svg&&(X2=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!cT(e6(e,Fe)),X2&&e.setAttribute("transform",X2))),Math.abs(D)>90&&Math.abs(D)<270&&(a?(v*=-1,D+=b<=0?180:-180,b+=b<=0?180:-180):(_*=-1,D+=D<=0?180:-180)),t=t||i.uncache,i.x=d-((i.xPercent=d&&(!t&&i.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-d)?-50:0)))?e.offsetWidth*i.xPercent/100:0)+s,i.y=h-((i.yPercent=h&&(!t&&i.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*i.yPercent/100:0)+s,i.z=f+s,i.scaleX=qe(v),i.scaleY=qe(_),i.rotation=qe(b)+o,i.rotationX=qe(y)+o,i.rotationY=qe(w)+o,i.skewX=D+o,i.skewY=R+o,i.transformPerspective=U+s,(i.zOrigin=parseFloat(u.split(" ")[2])||!t&&i.zOrigin||0)&&(r[Rn]=zo(u)),i.xOffset=i.yOffset=0,i.force3D=t6.force3D,i.renderTransform=i.svg?WI:sT?dT:jI,i.uncache=0,i},zo=function(e){return(e=e.split(" "))[0]+" "+e[1]},Mc=function(e,t,i){var r=$t(t);return qe(parseFloat(t)+parseFloat(r9(e,"x",i+"px",r)))+r},jI=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,dT(e,t)},R9="0deg",La="0px",N9=") ",dT=function(e,t){var i=t||this,r=i.xPercent,a=i.yPercent,s=i.x,o=i.y,l=i.z,u=i.rotation,d=i.rotationY,h=i.rotationX,f=i.skewX,v=i.skewY,_=i.scaleX,b=i.scaleY,y=i.transformPerspective,w=i.force3D,D=i.target,R=i.zOrigin,U="",j=w==="auto"&&e&&e!==1||w===!0;if(R&&(h!==R9||d!==R9)){var q=parseFloat(d)*xr,K=Math.sin(q),c2=Math.cos(q),S2;q=parseFloat(h)*xr,S2=Math.cos(q),s=Mc(D,s,K*S2*-R),o=Mc(D,o,-Math.sin(q)*-R),l=Mc(D,l,c2*S2*-R+R)}y!==La&&(U+="perspective("+y+N9),(r||a)&&(U+="translate("+r+"%, "+a+"%) "),(j||s!==La||o!==La||l!==La)&&(U+=l!==La||j?"translate3d("+s+", "+o+", "+l+") ":"translate("+s+", "+o+N9),u!==R9&&(U+="rotate("+u+N9),d!==R9&&(U+="rotateY("+d+N9),h!==R9&&(U+="rotateX("+h+N9),(f!==R9||v!==R9)&&(U+="skew("+f+", "+v+N9),(_!==1||b!==1)&&(U+="scale("+_+", "+b+N9),D.style[Fe]=U||"translate(0, 0)"},WI=function(e,t){var i=t||this,r=i.xPercent,a=i.yPercent,s=i.x,o=i.y,l=i.rotation,u=i.skewX,d=i.skewY,h=i.scaleX,f=i.scaleY,v=i.target,_=i.xOrigin,b=i.yOrigin,y=i.xOffset,w=i.yOffset,D=i.forceCSS,R=parseFloat(s),U=parseFloat(o),j,q,K,c2,S2;l=parseFloat(l),u=parseFloat(u),d=parseFloat(d),d&&(d=parseFloat(d),u+=d,l+=d),l||u?(l*=xr,u*=xr,j=Math.cos(l)*h,q=Math.sin(l)*h,K=Math.sin(l-u)*-f,c2=Math.cos(l-u)*f,u&&(d*=xr,S2=Math.tan(u-d),S2=Math.sqrt(1+S2*S2),K*=S2,c2*=S2,d&&(S2=Math.tan(d),S2=Math.sqrt(1+S2*S2),j*=S2,q*=S2)),j=qe(j),q=qe(q),K=qe(K),c2=qe(c2)):(j=h,c2=f,q=K=0),(R&&!~(s+"").indexOf("px")||U&&!~(o+"").indexOf("px"))&&(R=r9(v,"x",s,"px"),U=r9(v,"y",o,"px")),(_||b||y||w)&&(R=qe(R+_-(_*j+b*K)+y),U=qe(U+b-(_*q+b*c2)+w)),(r||a)&&(S2=v.getBBox(),R=qe(R+r/100*S2.width),U=qe(U+a/100*S2.height)),S2="matrix("+j+","+q+","+K+","+c2+","+R+","+U+")",v.setAttribute("transform",S2),D&&(v.style[Fe]=S2)},$I=function(e,t,i,r,a){var s=360,o=xt(a),l=parseFloat(a)*(o&&~a.indexOf("rad")?z9:1),u=l-r,d=r+u+"deg",h,f;return o&&(h=a.split("_")[1],h==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),h==="cw"&&u<0?u=(u+s*Jg)%s-~~(u/s)*s:h==="ccw"&&u>0&&(u=(u-s*Jg)%s-~~(u/s)*s)),e._pt=f=new Pn(e._pt,t,i,r,u,EI),f.e=d,f.u="deg",e._props.push(i),f},rv=function(e,t){for(var i in t)e[i]=t[i];return e},YI=function(e,t,i){var r=rv({},i._gsap),a="perspective,force3D,transformOrigin,svgOrigin",s=i.style,o,l,u,d,h,f,v,_;r.svg?(u=i.getAttribute("transform"),i.setAttribute("transform",""),s[Fe]=t,o=E4(i,1),i9(i,Fe),i.setAttribute("transform",u)):(u=getComputedStyle(i)[Fe],s[Fe]=t,o=E4(i,1),s[Fe]=u);for(l in n5)u=r[l],d=o[l],u!==d&&a.indexOf(l)<0&&(v=$t(u),_=$t(d),h=v!==_?r9(i,l,u,_):parseFloat(u),f=parseFloat(d),e._pt=new Pn(e._pt,o,l,h,f-h,Jd),e._pt.u=_||0,e._props.push(l));rv(o,r)};En("padding,margin,Width,Radius",function(n,e){var t="Top",i="Right",r="Bottom",a="Left",s=(e<3?[t,i,r,a]:[t+a,t+i,r+i,r+a]).map(function(o){return e<2?n+o:"border"+o+n});Bo[e>1?"border"+n:n]=function(o,l,u,d,h){var f,v;if(arguments.length<4)return f=s.map(function(_){return Ki(o,_,u)}),v=f.join(" "),v.split(f[0]).length===5?f[0]:v;f=(d+"").split(" "),v={},s.forEach(function(_,b){return v[_]=f[b]=f[b]||f[(b-1)/2|0]}),o.init(l,v,h)}});var hT={name:"css",register:Qd,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,i,r,a){var s=this._props,o=e.style,l=i.vars.startAt,u,d,h,f,v,_,b,y,w,D,R,U,j,q,K,c2,S2;uf||Qd(),this.styles=this.styles||aT(e),c2=this.styles.props,this.tween=i;for(b in t)if(b!=="autoRound"&&(d=t[b],!(qn[b]&&qb(b,t,i,r,e,a)))){if(v=typeof d,_=Bo[b],v==="function"&&(d=d.call(i,r,e,a),v=typeof d),v==="string"&&~d.indexOf("random(")&&(d=x4(d)),_)_(this,e,b,d,i)&&(K=1);else if(b.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(b)+"").trim(),d+="",X5.lastIndex=0,X5.test(u)||(y=$t(u),w=$t(d),w?y!==w&&(u=r9(e,b,u,w)+w):y&&(d+=y)),this.add(o,"setProperty",u,d,r,a,0,0,b),s.push(b),c2.push(b,0,o[b]);else if(v!=="undefined"){if(l&&b in l?(u=typeof l[b]=="function"?l[b].call(i,r,e,a):l[b],xt(u)&&~u.indexOf("random(")&&(u=x4(u)),$t(u+"")||u==="auto"||(u+=t6.units[b]||$t(Ki(e,b))||""),(u+"").charAt(1)==="="&&(u=Ki(e,b))):u=Ki(e,b),f=parseFloat(u),D=v==="string"&&d.charAt(1)==="="&&d.substr(0,2),D&&(d=d.substr(2)),h=parseFloat(d),b in vi&&(b==="autoAlpha"&&(f===1&&Ki(e,"visibility")==="hidden"&&h&&(f=0),c2.push("visibility",0,o.visibility),H5(this,o,"visibility",f?"inherit":"hidden",h?"inherit":"hidden",!h)),b!=="scale"&&b!=="transform"&&(b=vi[b],~b.indexOf(",")&&(b=b.split(",")[0]))),R=b in n5,R){if(this.styles.save(b),S2=d,v==="string"&&d.substring(0,6)==="var(--"){if(d=e6(e,d.substring(4,d.indexOf(")"))),d.substring(0,5)==="calc("){var H=e.style.perspective;e.style.perspective=d,d=e6(e,"perspective"),H?e.style.perspective=H:i9(e,"perspective")}h=parseFloat(d)}if(U||(j=e._gsap,j.renderTransform&&!t.parseTransform||E4(e,t.parseTransform),q=t.smoothOrigin!==!1&&j.smooth,U=this._pt=new Pn(this._pt,o,Fe,0,1,j.renderTransform,j,0,-1),U.dep=1),b==="scale")this._pt=new Pn(this._pt,j,"scaleY",j.scaleY,(D?Tr(j.scaleY,D+h):h)-j.scaleY||0,Jd),this._pt.u=0,s.push("scaleY",b),b+="X";else if(b==="transformOrigin"){c2.push(Rn,0,o[Rn]),d=VI(d),j.svg?eh(e,d,0,q,0,this):(w=parseFloat(d.split(" ")[2])||0,w!==j.zOrigin&&H5(this,j,"zOrigin",j.zOrigin,w),H5(this,o,b,zo(u),zo(d)));continue}else if(b==="svgOrigin"){eh(e,d,1,q,0,this);continue}else if(b in uT){$I(this,j,b,f,D?Tr(f,D+d):d);continue}else if(b==="smoothOrigin"){H5(this,j,"smooth",j.smooth,d);continue}else if(b==="force3D"){j[b]=d;continue}else if(b==="transform"){YI(this,d,e);continue}}else b in o||(b=Or(b)||b);if(R||(h||h===0)&&(f||f===0)&&!MI.test(d)&&b in o)y=(u+"").substr((f+"").length),h||(h=0),w=$t(d)||(b in t6.units?t6.units[b]:y),y!==w&&(f=r9(e,b,u,w)),this._pt=new Pn(this._pt,R?j:o,b,f,(D?Tr(f,D+h):h)-f,!R&&(w==="px"||b==="zIndex")&&t.autoRound!==!1?NI:Jd),this._pt.u=w||0,R&&S2!==d?(this._pt.b=u,this._pt.e=S2,this._pt.r=RI):y!==w&&w!=="%"&&(this._pt.b=u,this._pt.r=PI);else if(b in o)GI.call(this,e,b,u,D?D+d:d);else if(b in e)this.add(e,b,u||e[b],D?D+d:d,r,a);else if(b!=="parseTransform"){Zh(b,d);continue}R||(b in o?c2.push(b,0,o[b]):typeof e[b]=="function"?c2.push(b,2,e[b]()):c2.push(b,1,u||e[b])),s.push(b)}}K&&eT(this)},render:function(e,t){if(t.tween._time||!cf())for(var i=t._pt;i;)i.r(e,i.d),i=i._next;else t.styles.revert()},get:Ki,aliases:vi,getSetter:function(e,t,i){var r=vi[t];return r&&r.indexOf(",")<0&&(t=r),t in n5&&t!==Rn&&(e._gsap.x||Ki(e,"x"))?i&&Xg===i?t==="scale"?FI:kI:(Xg=i||{})&&(t==="scale"?DI:UI):e.style&&!Kh(e.style[t])?LI:~t.indexOf("-")?II:of(e,t)},core:{_removeProperty:i9,_getMatrix:hf}};Ln.utils.checkPrefix=Or;Ln.core.getStyleSaver=aT;(function(n,e,t,i){var r=En(n+","+e+","+t,function(a){n5[a]=1});En(e,function(a){t6.units[a]="deg",uT[a]=1}),vi[r[13]]=n+","+e,En(i,function(a){var s=a.split(":");vi[s[1]]=r[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");En("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){t6.units[n]="px"});Ln.registerPlugin(hT);var Ge=Ln.registerPlugin(hT)||Ln;Ge.core.Tween;const qI={name:"SvglineAnimation",props:{width:{type:Number,default:135},height:{type:Number,default:150},path:{type:String,default:"M0 72.5H682L732 0.5H3082"},color:{type:String,default:"#0091FF"},duration:{type:Number,default:3},length:{type:Number,default:100},begin:{type:Number,default:0},dir:{type:Array,default:()=>[0,1]},strokeWidth:{type:Number,default:4}},data(){let n=1;return{maskId:"svgline-"+n,radialGradientId:"radialGradient-"+n}},mounted(){let n=this._.uid;this.maskId="svgline-"+n,this.radialGradientId="radialGradient-"+n}},KI={class:"svg-line-animation"},XI=["viewBox"],JI=["id"],ZI=["stop-opacity"],QI=["stop-opacity"],ek=["id"],tk=["r","fill"],nk=["begin","dur","path","keyPoints"],ik=["d","stroke","stroke-width","mask"];function rk(n,e,t,i,r,a){return h2(),v2("div",KI,[(h2(),v2("svg",{width:"100%",height:"100%",viewBox:`0 0 ${t.width} ${t.height}`,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[E("defs",null,[E("radialGradient",{id:r.radialGradientId,cx:"50%",cy:"50%",fx:"100%",fy:"50%",r:"50%"},[E("stop",{offset:"0%","stop-color":"#fff","stop-opacity":t.dir[1]},null,8,ZI),E("stop",{offset:"100%","stop-color":"#fff","stop-opacity":t.dir[0]},null,8,QI)],8,JI),E("mask",{id:r.maskId},[E("circle",{r:t.length,cx:"0",cy:"0",fill:`url(#${r.radialGradientId})`},[E("animateMotion",{begin:`${t.begin}s`,dur:`${t.duration}s`,path:t.path,rotate:"auto",keyPoints:`${t.dir[0]};${t.dir[1]}`,keyTimes:"0;1",repeatCount:"indefinite"},null,8,nk)],8,tk)],8,ek)]),E("path",{class:"path-line",d:t.path,stroke:t.color,"stroke-width":t.strokeWidth,mask:`url(#${r.maskId})`},null,8,ik)],8,XI))])}const Go=Ml(qI,[["render",rk]]);const ak={class:"m-header"},sk={class:"m-header-wrap"},ok={class:"m-header-title"},lk={class:"m-header-subtext"},uk={class:"m-header-left",style:{color:"#fff"}},ck={class:"m-header-right"},dk={class:"m-header-line"},hk={__name:"index",props:{title:{type:String,default:"红原县数字畜牧业监管平台"},subText:{type:String,default:"Hongyuan Digital Animal Husbandry Supervision Platform"}},setup(n){return(e,t)=>(h2(),v2("div",ak,[E("div",sk,[E("div",ok,L2(n.title),1),E("div",lk,L2(n.subText),1)]),E("div",uk,[Lr(e.$slots,"left")]),E("div",ck,[Lr(e.$slots,"right")]),E("div",dk,[J3(Go,{class:"m-header-line-left",width:961,height:79,color:"#30DCFF",strokeWidth:2,dir:[0,1],length:100,path:"M1 1.52783L535 25.6808C552.73 26.5835 571.454 31.3851 588.834 39.2194C593.758 41.4385 598.692 43.7289 603.643 46.0273C633.567 59.9182 664.121 74.1016 696.754 74.6262C696.765 74.6264 696.775 74.6265 696.786 74.6267C821.602 76.5993 879.336 78 961 78"}),J3(Go,{class:"m-header-line-right",width:961,height:79,color:"#30DCFF",strokeWidth:2,dir:[0,1],length:100,path:"M1 1.52783L535 25.6808C552.73 26.5835 571.454 31.3851 588.834 39.2194C593.758 41.4385 598.692 43.7289 603.643 46.0273C633.567 59.9182 664.121 74.1016 696.754 74.6262C696.765 74.6264 696.775 74.6265 696.786 74.6267C821.602 76.5993 879.336 78 961 78"})])]))}};const fk={class:"m-menu"},pk={__name:"index",props:{defaultActive:{type:[String,Number],default:""}},emits:["select"],setup(n,{emit:e}){const t=e,i=n,r=x3(i.defaultActive);return Dg("updateActive",s=>{s!==r.value&&(r.value=s,t("select",s))}),Dg("activeIndex",r),Z0(()=>i.defaultActive,s=>{s!==r.value&&(r.value=s)}),(s,o)=>(h2(),v2("div",fk,[Lr(s.$slots,"default")]))}},mk={__name:"index",props:{index:{type:[String,Number],required:!0}},setup(n){const e=n,t=ur("updateActive"),i=ur("activeIndex"),r=()=>{t(e.index)};return(a,s)=>(h2(),v2("div",{class:T1(["m-menu-item",{"is-active":n.index===D0(i)}]),onClick:r},[Lr(a.$slots,"default")],2))}};let av=0;const sv="webkit moz ms o".split(" ");let ci,di;const gk=typeof window=="undefined";if(gk)ci=function(){},di=function(){};else{ci=window.requestAnimationFrame,di=window.cancelAnimationFrame;let n;for(let e=0;e{e(t+i)},i);return av=t+i,r},di=function(e){window.clearTimeout(e)})}const vk={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator(n){return n>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default(n,e,t,i){return t*(-Math.pow(2,-10*n/i)+1)*1024/1023+e}}},data(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown(){return this.startVal>this.endVal}},watch:{startVal(){this.autoplay&&this.start()},endVal(){this.autoplay&&this.start()}},mounted(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=ci(this.count)},pauseResume(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause(){di(this.rAF)},resume(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,ci(this.count)},reset(){this.startTime=null,di(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count(n){this.startTime||(this.startTime=n),this.timestamp=n;const e=n-this.startTime;this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.endVal-this.localStartVal)*(e/this.localDuration),this.countDown?this.printVal=this.printValthis.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e1?this.decimal+e[1]:"",r=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;r.test(t);)t=t.replace(r,"$1"+this.separator+"$2");return this.prefix+t+i+this.suffix}},destroyed(){di(this.rAF)}};function yk(n,e,t,i,r,a){return h2(),v2("span",null,L2(r.displayValue),1)}const fT=Ml(vk,[["render",yk]]);typeof window!="undefined"&&window.Vue&&window.Vue.component("count-to",fT);const _k={class:"count-card-left"},Sk={class:"count-card-title"},bk={class:"title-zh"},Tk={key:0,class:"title-en"},wk={class:"count-card-right"},xk={class:"unit"},Ak={__name:"index",props:{info:{type:Object,default:()=>({icon:"xiaoshoujine",zh:"2023年销售金额",en:"Sales amount in 2023",value:9500,unit:"万元",decimals:0})}},setup(n){const e=n,t=x3(!0),i=x3(!1),r=x3(0);let a=null;const s=z2(()=>e.info.duration||1800);Z0(()=>[e.info.value,e.info.zh],()=>{a&&window.clearTimeout(a),t.value=!0,i.value=!1,r.value+=1},{immediate:!0});function o(d){return d.toUpperCase()}function l(){t.value=!0,i.value=!1}function u(){t.value=!1,i.value=!0,a&&window.clearTimeout(a),a=window.setTimeout(()=>{i.value=!1},900)}return a6(()=>{a&&window.clearTimeout(a)}),(d,h)=>(h2(),v2("div",{class:T1(["count-card",{"is-counting":t.value,"is-settled":i.value}])},[E("div",_k,[E("div",{class:T1(["count-card-icon","icon-"+n.info.icon])},null,2),E("div",Sk,[E("div",bk,L2(n.info.zh),1),n.info.en?(h2(),v2("div",Tk,L2(o(n.info.en)),1)):l1("",!0)])]),E("div",wk,[(h2(),v2("div",{class:"value",key:r.value},[J3(D0(fT),{startVal:0,endVal:n.info.value,decimals:n.info.decimals,duration:s.value,separator:"",autoplay:!0,onMountedCallback:l,onCallback:u},null,8,["endVal","decimals","duration"])])),E("div",xk,L2(n.info.unit),1)])],2))}};var s7=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ck(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function o7(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Vo={exports:{}};Vo.exports;(function(n,e){function t(V){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},t(V)}function i(V,x){if(!(V instanceof x))throw new TypeError("Cannot call a class as a function")}function r(V,x){for(var m=0;m>>1,n1=[["ary",R2],["bind",L],["bindKey",Y],["curry",C],["curryRight",I],["flip",Q2],["partial",G],["partialRight",M2],["rearg",t3]],v1="[object Arguments]",j1="[object Array]",U1="[object AsyncFunction]",D1="[object Boolean]",u0="[object Date]",On="[object DOMException]",Dt="[object Error]",et="[object Function]",At="[object GeneratorFunction]",b0="[object Map]",Te="[object Number]",yt="[object Null]",h0="[object Object]",B0="[object Promise]",k1="[object Proxy]",A1="[object RegExp]",Z1="[object Set]",I0="[object String]",d2="[object Symbol]",O2="[object Undefined]",j2="[object WeakMap]",K2="[object WeakSet]",f2="[object ArrayBuffer]",s3="[object DataView]",i3="[object Float32Array]",m3="[object Float64Array]",_3="[object Int8Array]",V3="[object Int16Array]",A3="[object Int32Array]",Y3="[object Uint8Array]",A0="[object Uint8ClampedArray]",F1="[object Uint16Array]",V1="[object Uint32Array]",a0=/\b__p \+= '';/g,W1=/\b(__p \+=) '' \+/g,k0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ln=/&(?:amp|lt|gt|quot|#39);/g,Zt=/[&<>"']/g,f0=RegExp(ln.source),Q0=RegExp(Zt.source),ei=/<%-([\s\S]+?)%>/g,d5=/<%([\s\S]+?)%>/g,Mi=/<%=([\s\S]+?)%>/g,g8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m9=/^\w*$/,we=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,Ut=RegExp(oe.source),un=/^\s+/,s6=/\s/,Ei=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pi=/\{\n\/\* \[wrapped with (.+)\] \*/,g9=/,? & /,v9=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,h5=/[()=,{}\[\]\/\s]/,cn=/\\(\\)?/g,hs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ha=/\w*$/,ru=/^[-+]0x[0-9a-f]+$/i,fs=/^0b[01]+$/i,v8=/^\[object .+?Constructor\]$/,ps=/^0o[0-7]+$/i,au=/^(?:0|[1-9]\d*)$/,ms=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,y9=/($^)/,su=/['\n\r\u2028\u2029\\]/g,f5="\\ud800-\\udfff",ou="\\u0300-\\u036f",fa="\\ufe20-\\ufe2f",lu="\\u20d0-\\u20ff",gs=ou+fa+lu,je="\\u2700-\\u27bf",vs="a-z\\xdf-\\xf6\\xf8-\\xff",$1="\\xac\\xb1\\xd7\\xf7",ge="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ys="\\u2000-\\u206f",_9=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",y8="A-Z\\xc0-\\xd6\\xd8-\\xde",z="\\ufe0e\\ufe0f",B=$1+ge+ys+_9,a2="['’]",J2="["+f5+"]",w3="["+B+"]",u1="["+gs+"]",t0="\\d+",_0="["+je+"]",O0="["+vs+"]",F0="[^"+f5+B+t0+je+vs+y8+"]",E0="\\ud83c[\\udffb-\\udfff]",dn="(?:"+u1+"|"+E0+")",_t="[^"+f5+"]",ve="(?:\\ud83c[\\udde6-\\uddff]){2}",Oe="[\\ud800-\\udbff][\\udc00-\\udfff]",o6="["+y8+"]",p5="\\u200d",m5="(?:"+O0+"|"+F0+")",S9="(?:"+o6+"|"+F0+")",g5="(?:"+a2+"(?:d|ll|m|re|s|t|ve))?",v5="(?:"+a2+"(?:D|LL|M|RE|S|T|VE))?",pa=dn+"?",ma="["+z+"]?",TA="(?:"+p5+"(?:"+[_t,ve,Oe].join("|")+")"+ma+pa+")*",wA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",xp=ma+pa+TA,AA="(?:"+[_0,ve,Oe].join("|")+")"+xp,CA="(?:"+[_t+u1+"?",u1,ve,Oe,J2].join("|")+")",MA=RegExp(a2,"g"),EA=RegExp(u1,"g"),uu=RegExp(E0+"(?="+E0+")|"+CA+xp,"g"),PA=RegExp([o6+"?"+O0+"+"+g5+"(?="+[w3,o6,"$"].join("|")+")",S9+"+"+v5+"(?="+[w3,o6+m5,"$"].join("|")+")",o6+"?"+m5+"+"+g5,o6+"+"+v5,xA,wA,t0,AA].join("|"),"g"),RA=RegExp("["+p5+f5+gs+z+"]"),NA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,LA=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],IA=-1,xe={};xe[i3]=xe[m3]=xe[_3]=xe[V3]=xe[A3]=xe[Y3]=xe[A0]=xe[F1]=xe[V1]=!0,xe[v1]=xe[j1]=xe[f2]=xe[D1]=xe[s3]=xe[u0]=xe[Dt]=xe[et]=xe[b0]=xe[Te]=xe[h0]=xe[A1]=xe[Z1]=xe[I0]=xe[j2]=!1;var ye={};ye[v1]=ye[j1]=ye[f2]=ye[s3]=ye[D1]=ye[u0]=ye[i3]=ye[m3]=ye[_3]=ye[V3]=ye[A3]=ye[b0]=ye[Te]=ye[h0]=ye[A1]=ye[Z1]=ye[I0]=ye[d2]=ye[Y3]=ye[A0]=ye[F1]=ye[V1]=!0,ye[Dt]=ye[et]=ye[j2]=!1;var kA={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},FA={"&":"&","<":"<",">":">",'"':""","'":"'"},DA={"&":"&","<":"<",">":">",""":'"',"'":"'"},UA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},OA=parseFloat,BA=parseInt,Ap=typeof c2=="object"&&c2&&c2.Object===Object&&c2,zA=typeof self=="object"&&self&&self.Object===Object&&self,Ct=Ap||zA||Function("return this")(),cu=x&&!x.nodeType&&x,b9=cu&&!0&&V&&!V.nodeType&&V,Cp=b9&&b9.exports===cu,du=Cp&&Ap.process,l6=function(){try{var u3=b9&&b9.require&&b9.require("util").types;return u3||du&&du.binding&&du.binding("util")}catch(N3){}}(),Mp=l6&&l6.isArrayBuffer,Ep=l6&&l6.isDate,Pp=l6&&l6.isMap,Rp=l6&&l6.isRegExp,Np=l6&&l6.isSet,Lp=l6&&l6.isTypedArray;function Bn(u3,N3,E3){switch(E3.length){case 0:return u3.call(N3);case 1:return u3.call(N3,E3[0]);case 2:return u3.call(N3,E3[0],E3[1]);case 3:return u3.call(N3,E3[0],E3[1],E3[2])}return u3.apply(N3,E3)}function GA(u3,N3,E3,P1){for(var n0=-1,G0=u3==null?0:u3.length;++n0-1}function hu(u3,N3,E3){for(var P1=-1,n0=u3==null?0:u3.length;++P1-1;);return E3}function zp(u3,N3){for(var E3=u3.length;E3--&&_8(N3,u3[E3],0)>-1;);return E3}function XA(u3,N3){for(var E3=u3.length,P1=0;E3--;)u3[E3]===N3&&++P1;return P1}var JA=gu(kA),ZA=gu(FA);function QA(u3){return"\\"+UA[u3]}function eC(u3,N3){return u3==null?m:u3[N3]}function S8(u3){return RA.test(u3)}function tC(u3){return NA.test(u3)}function nC(u3){for(var N3,E3=[];!(N3=u3.next()).done;)E3.push(N3.value);return E3}function Su(u3){var N3=-1,E3=Array(u3.size);return u3.forEach(function(P1,n0){E3[++N3]=[n0,P1]}),E3}function Gp(u3,N3){return function(E3){return u3(N3(E3))}}function S5(u3,N3){for(var E3=-1,P1=u3.length,n0=0,G0=[];++E3-1}function HC(c,p){var T=this.__data__,F=Ds(T,c);return F<0?(++this.size,T.push([c,p])):T[F][1]=p,this}Ri.prototype.clear=BC,Ri.prototype.delete=zC,Ri.prototype.get=GC,Ri.prototype.has=VC,Ri.prototype.set=HC;function Ni(c){var p=-1,T=c==null?0:c.length;for(this.clear();++p=p?c:p)),c}function h6(c,p,T,F,e2,x2){var $2,r3=p&Q,p3=p&X,z3=p&D2;if(T&&($2=e2?T(c,F,e2,x2):T(c)),$2!==m)return $2;if(!Ne(c))return c;var G3=s0(c);if(G3){if($2=YM(c),!r3)return hn(c,$2)}else{var q3=Bt(c),_1=q3==et||q3==At;if(C5(c))return wm(c,r3);if(q3==h0||q3==v1||_1&&!e2){if($2=p3||_1?{}:Vm(c),!r3)return p3?DM(c,aM($2,c)):FM(c,Qp($2,c))}else{if(!ye[q3])return e2?c:{};$2=qM(c,q3,r3)}}x2||(x2=new B6);var I1=x2.get(c);if(I1)return I1;x2.set(c,$2),vg(c)?c.forEach(function(K1){$2.add(h6(K1,p,T,K1,c,x2))}):mg(c)&&c.forEach(function(K1,x0){$2.set(x0,h6(K1,p,T,x0,c,x2))});var q1=z3?p3?$u:Wu:p3?pn:St,m0=G3?m:q1(c);return u6(m0||c,function(K1,x0){m0&&(x0=K1,K1=c[x0]),Ta($2,x0,h6(K1,p,T,x0,c,x2))}),$2}function sM(c){var p=St(c);return function(T){return em(T,c,p)}}function em(c,p,T){var F=T.length;if(c==null)return!F;for(c=le(c);F--;){var e2=T[F],x2=p[e2],$2=c[e2];if($2===m&&!(e2 in c)||!x2($2))return!1}return!0}function tm(c,p,T){if(typeof c!="function")throw new c6(P);return Pa(function(){c.apply(m,T)},p)}function wa(c,p,T,F){var e2=-1,x2=_s,$2=!0,r3=c.length,p3=[],z3=p.length;if(!r3)return p3;T&&(p=Pe(p,zn(T))),F?(x2=hu,$2=!1):p.length>=S&&(x2=ga,$2=!1,p=new x9(p));e:for(;++e2e2?0:e2+T),F=F===m||F>e2?e2:p0(F),F<0&&(F+=e2),F=T>F?0:_g(F);T0&&T(r3)?p>1?Mt(r3,p-1,T,F,e2):_5(e2,r3):F||(e2[e2.length]=r3)}return e2}var Mu=Pm(),rm=Pm(!0);function ti(c,p){return c&&Mu(c,p,St)}function Eu(c,p){return c&&rm(c,p,St)}function Os(c,p){return y5(p,function(T){return Di(c[T])})}function C9(c,p){p=x5(p,c);for(var T=0,F=p.length;c!=null&&Tp}function uM(c,p){return c!=null&&ee.call(c,p)}function cM(c,p){return c!=null&&p in le(c)}function dM(c,p,T){return c>=Ot(p,T)&&c=120&&G3.length>=120)?new x9($2&&G3):m}G3=c[0];var q3=-1,_1=r3[0];e:for(;++q3-1;)r3!==c&&Ps.call(r3,p3,1),Ps.call(c,p3,1);return c}function mm(c,p){for(var T=c?p.length:0,F=T-1;T--;){var e2=p[T];if(T==F||e2!==x2){var x2=e2;Fi(e2)?Ps.call(c,e2,1):Ou(c,e2)}}return c}function Fu(c,p){return c+Ls(Kp()*(p-c+1))}function xM(c,p,T,F){for(var e2=-1,x2=ct(Ns((p-c)/(T||1)),0),$2=E3(x2);x2--;)$2[F?x2:++e2]=c,c+=T;return $2}function Du(c,p){var T="";if(!c||p<1||p>L1)return T;do p%2&&(T+=c),p=Ls(p/2),p&&(c+=c);while(p);return T}function S0(c,p){return Qu(Wm(c,p,mn),c+"")}function AM(c){return Zp(N8(c))}function CM(c,p){var T=N8(c);return Ks(T,A9(p,0,T.length))}function Ca(c,p,T,F){if(!Ne(c))return c;p=x5(p,c);for(var e2=-1,x2=p.length,$2=x2-1,r3=c;r3!=null&&++e2e2?0:e2+p),T=T>e2?e2:T,T<0&&(T+=e2),e2=p>T?0:T-p>>>0,p>>>=0;for(var x2=E3(e2);++F>>1,$2=c[x2];$2!==null&&!Vn($2)&&(T?$2<=p:$2=S){var z3=p?null:zM(c);if(z3)return bs(z3);$2=!1,e2=ga,p3=new x9}else p3=p?[]:r3;e:for(;++F=F?c:f6(c,p,T)}var Tm=vC||function(c){return Ct.clearTimeout(c)};function wm(c,p){if(p)return c.slice();var T=c.length,F=jp?jp(T):new c.constructor(T);return c.copy(F),F}function Vu(c){var p=new c.constructor(c.byteLength);return new Ms(p).set(new Ms(c)),p}function NM(c,p){var T=p?Vu(c.buffer):c.buffer;return new c.constructor(T,c.byteOffset,c.byteLength)}function LM(c){var p=new c.constructor(c.source,ha.exec(c));return p.lastIndex=c.lastIndex,p}function IM(c){return ba?le(ba.call(c)):{}}function xm(c,p){var T=p?Vu(c.buffer):c.buffer;return new c.constructor(T,c.byteOffset,c.length)}function Am(c,p){if(c!==p){var T=c!==m,F=c===null,e2=c===c,x2=Vn(c),$2=p!==m,r3=p===null,p3=p===p,z3=Vn(p);if(!r3&&!z3&&!x2&&c>p||x2&&$2&&p3&&!r3&&!z3||F&&$2&&p3||!T&&p3||!e2)return 1;if(!F&&!x2&&!z3&&c=r3)return p3;var z3=T[F];return p3*(z3=="desc"?-1:1)}}return c.index-p.index}function Cm(c,p,T,F){for(var e2=-1,x2=c.length,$2=T.length,r3=-1,p3=p.length,z3=ct(x2-$2,0),G3=E3(p3+z3),q3=!F;++r31?T[e2-1]:m,$2=e2>2?T[2]:m;for(x2=c.length>3&&typeof x2=="function"?(e2--,x2):m,$2&&en(T[0],T[1],$2)&&(x2=e2<3?m:x2,e2=1),p=le(p);++F-1?e2[x2?p[$2]:$2]:m}}function Lm(c){return ki(function(p){var T=p.length,F=T,e2=d6.prototype.thru;for(c&&p.reverse();F--;){var x2=p[F];if(typeof x2!="function")throw new c6(P);if(e2&&!$2&&Ys(x2)=="wrapper")var $2=new d6([],!0)}for(F=$2?F:T;++F1&&P0.reverse(),G3&&p3r3))return!1;var z3=x2.get(c),G3=x2.get(p);if(z3&&G3)return z3==p&&G3==c;var q3=-1,_1=!0,I1=T&M?new x9:m;for(x2.set(c,p),x2.set(p,c);++q31?"& ":"")+p[F],p=p.join(T>2?", ":" "),c.replace(Ei,`{
/* [wrapped with `+p+`] */
-`)}function YM(c){return s0(c)||E9(c)||!!(jp&&c&&c[jp])}function ki(c,p){var T=typeof c;return p=p==null?L1:p,!!p&&(T=="number"||T!="symbol"&&nu.test(c))&&c>-1&&c%1==0&&c0){if(++p>=M3)return arguments[0]}else p=0;return c.apply(m,arguments)}}function Ys(c,p){var T=-1,D=c.length,e2=D-1;for(p=p===m?D:p;++T
1?c[p-1]:m;return T=typeof T=="function"?(c.pop(),T):m,eg(c,T)});function tg(c){var p=m2(c);return p.__chain__=!0,p}function rP(c,p){return p(c),c}function qs(c,p){return p(c)}var aP=Ii(function(c){var p=c.length,T=p?c[0]:0,D=this.__wrapped__,e2=function(w2){return wu(w2,c)};return p>1||this.__actions__.length||!(D instanceof C0)||!ki(T)?this.thru(e2):(D=D.slice(T,+T+(p?1:0)),D.__actions__.push({func:qs,args:[e2],thisArg:m}),new d6(D,this.__chain__).thru(function(w2){return p&&!w2.length&&w2.push(m),w2}))});function sP(){return tg(this)}function oP(){return new d6(this.value(),this.__chain__)}function lP(){this.__values__===m&&(this.__values__=mg(this.value()));var c=this.__index__>=this.__values__.length,p=c?m:this.__values__[this.__index__++];return{done:c,value:p}}function uP(){return this}function cP(c){for(var p,T=this;T instanceof Is;){var D=qm(T);D.__index__=0,D.__values__=m,p?e2.__wrapped__=D:p=D;var e2=D;T=T.__wrapped__}return e2.__wrapped__=c,p}function dP(){var c=this.__wrapped__;if(c instanceof C0){var p=c;return this.__actions__.length&&(p=new C0(this)),p=p.reverse(),p.__actions__.push({func:qs,args:[Ju],thisArg:m}),new d6(p,this.__chain__)}return this.thru(Ju)}function hP(){return vm(this.__wrapped__,this.__actions__)}var fP=zs(function(c,p,T){ee.call(c,T)?++c[T]:Ni(c,T,1)});function pP(c,p,T){var D=s0(c)?Rp:rM;return T&&en(c,p,T)&&(p=m),D(c,Y1(p,3))}function mP(c,p){var T=s0(c)?v5:em;return T(c,Y1(p,3))}var gP=Em(Km),vP=Em(Xm);function yP(c,p){return Mt(Ks(c,p),1)}function _P(c,p){return Mt(Ks(c,p),N1)}function SP(c,p,T){return T=T===m?1:f0(T),Mt(Ks(c,p),T)}function ng(c,p){var T=s0(c)?u6:b5;return T(c,Y1(p,3))}function ig(c,p){var T=s0(c)?BA:Qp;return T(c,Y1(p,3))}var bP=zs(function(c,p,T){ee.call(c,T)?c[T].push(p):Ni(c,T,[p])});function TP(c,p,T,D){c=fn(c)?c:R8(c),T=T&&!D?f0(T):0;var e2=c.length;return T<0&&(T=ct(e2+T,0)),e7(c)?T<=e2&&c.indexOf(p,T)>-1:!!e2&&y8(c,p,T)>-1}var wP=S0(function(c,p,T){var D=-1,e2=typeof p=="function",w2=fn(c)?E3(c.length):[];return b5(c,function($2){w2[++D]=e2?Bn(p,$2,T):Ta($2,p,T)}),w2}),xP=zs(function(c,p,T){Ni(c,T,p)});function Ks(c,p){var T=s0(c)?Pe:sm;return T(c,Y1(p,3))}function AP(c,p,T,D){return c==null?[]:(s0(p)||(p=p==null?[]:[p]),T=D?m:T,s0(T)||(T=T==null?[]:[T]),cm(c,p,T))}var CP=zs(function(c,p,T){c[T?0:1].push(p)},function(){return[[],[]]});function MP(c,p,T){var D=s0(c)?cu:kp,e2=arguments.length<3;return D(c,Y1(p,4),T,e2,b5)}function EP(c,p,T){var D=s0(c)?zA:kp,e2=arguments.length<3;return D(c,Y1(p,4),T,e2,Qp)}function PP(c,p){var T=s0(c)?v5:em;return T(c,Zs(Y1(p,3)))}function RP(c){var p=s0(c)?Kp:TM;return p(c)}function NP(c,p,T){(T?en(c,p,T):p===m)?p=1:p=f0(p);var D=s0(c)?QC:wM;return D(c,p)}function LP(c){var p=s0(c)?eM:AM;return p(c)}function IP(c){if(c==null)return 0;if(fn(c))return e7(c)?S8(c):c.length;var p=Bt(c);return p==b0||p==Z1?c.size:Pu(c).length}function kP(c,p,T){var D=s0(c)?du:CM;return T&&en(c,p,T)&&(p=m),D(c,Y1(p,3))}var FP=S0(function(c,p){if(c==null)return[];var T=p.length;return T>1&&en(c,p[0],p[1])?p=[]:T>2&&en(p[0],p[1],p[2])&&(p=[p[0]]),cm(c,Mt(p,1),[])}),Xs=mC||function(){return Ct.Date.now()};function DP(c,p){if(typeof p!="function")throw new c6(E);return c=f0(c),function(){if(--c<1)return p.apply(this,arguments)}}function rg(c,p,T){return p=T?m:p,p=c&&p==null?c.length:p,Li(c,R2,m,m,m,m,p)}function ag(c,p){var T;if(typeof p!="function")throw new c6(E);return c=f0(c),function(){return--c>0&&(T=p.apply(this,arguments)),c<=1&&(p=m),T}}var Qu=S0(function(c,p,T){var D=I;if(T.length){var e2=_5(T,E8(Qu));D|=V}return Li(c,D,p,T,e2)}),sg=S0(function(c,p,T){var D=I|Y;if(T.length){var e2=_5(T,E8(sg));D|=V}return Li(p,D,c,T,e2)});function og(c,p,T){p=T?m:p;var D=Li(c,A,m,m,m,m,m,p);return D.placeholder=og.placeholder,D}function lg(c,p,T){p=T?m:p;var D=Li(c,k,m,m,m,m,m,p);return D.placeholder=lg.placeholder,D}function ug(c,p,T){var D,e2,w2,$2,i3,p3,z3=0,G3=!1,Y3=!1,y1=!0;if(typeof c!="function")throw new c6(E);p=m6(p)||0,Ne(T)&&(G3=!!T.leading,Y3="maxWait"in T,w2=Y3?ct(m6(T.maxWait)||0,p):w2,y1="trailing"in T?!!T.trailing:y1);function I1($e){var G6=D,Ui=e2;return D=e2=m,z3=$e,$2=c.apply(Ui,G6),$2}function q1($e){return z3=$e,i3=Ma(x0,p),G3?I1($e):$2}function m0($e){var G6=$e-p3,Ui=$e-z3,Eg=p-G6;return Y3?Ot(Eg,w2-Ui):Eg}function K1($e){var G6=$e-p3,Ui=$e-z3;return p3===m||G6>=p||G6<0||Y3&&Ui>=w2}function x0(){var $e=Xs();if(K1($e))return P0($e);i3=Ma(x0,m0($e))}function P0($e){return i3=m,y1&&D?I1($e):(D=e2=m,$2)}function Hn(){i3!==m&&_m(i3),z3=0,D=p3=e2=i3=m}function tn(){return i3===m?$2:P0(Xs())}function jn(){var $e=Xs(),G6=K1($e);if(D=arguments,e2=this,p3=$e,G6){if(i3===m)return q1(p3);if(Y3)return _m(i3),i3=Ma(x0,p),I1(p3)}return i3===m&&(i3=Ma(x0,p)),$2}return jn.cancel=Hn,jn.flush=tn,jn}var UP=S0(function(c,p){return Zp(c,1,p)}),OP=S0(function(c,p,T){return Zp(c,m6(p)||0,T)});function BP(c){return Li(c,Q2)}function Js(c,p){if(typeof c!="function"||p!=null&&typeof p!="function")throw new c6(E);var T=function(){var D=arguments,e2=p?p.apply(this,D):D[0],w2=T.cache;if(w2.has(e2))return w2.get(e2);var $2=c.apply(this,D);return T.cache=w2.set(e2,$2)||w2,$2};return T.cache=new(Js.Cache||Ri),T}Js.Cache=Ri;function Zs(c){if(typeof c!="function")throw new c6(E);return function(){var p=arguments;switch(p.length){case 0:return!c.call(this);case 1:return!c.call(this,p[0]);case 2:return!c.call(this,p[0],p[1]);case 3:return!c.call(this,p[0],p[1],p[2])}return!c.apply(this,p)}}function zP(c){return ag(2,c)}var GP=MM(function(c,p){p=p.length==1&&s0(p[0])?Pe(p[0],zn(Y1())):Pe(Mt(p,1),zn(Y1()));var T=p.length;return S0(function(D){for(var e2=-1,w2=Ot(D.length,T);++e2=p}),E9=im(function(){return arguments}())?im:function(c){return Be(c)&&ee.call(c,"callee")&&!Hp.call(c,"callee")},s0=E3.isArray,nR=xp?zn(xp):cM;function fn(c){return c!=null&&Qs(c.length)&&!Fi(c)}function We(c){return Be(c)&&fn(c)}function iR(c){return c===!0||c===!1||Be(c)&&Qt(c)==D1}var A5=vC||dc,rR=Ap?zn(Ap):dM;function aR(c){return Be(c)&&c.nodeType===1&&!Ea(c)}function sR(c){if(c==null)return!0;if(fn(c)&&(s0(c)||typeof c=="string"||typeof c.splice=="function"||A5(c)||P8(c)||E9(c)))return!c.length;var p=Bt(c);if(p==b0||p==Z1)return!c.size;if(Ca(c))return!Pu(c).length;for(var T in c)if(ee.call(c,T))return!1;return!0}function oR(c,p){return wa(c,p)}function lR(c,p,T){T=typeof T=="function"?T:m;var D=T?T(c,p):m;return D===m?wa(c,p,m,T):!!D}function tc(c){if(!Be(c))return!1;var p=Qt(c);return p==Dt||p==On||typeof c.message=="string"&&typeof c.name=="string"&&!Ea(c)}function uR(c){return typeof c=="number"&&Wp(c)}function Fi(c){if(!Ne(c))return!1;var p=Qt(c);return p==et||p==At||p==U1||p==k1}function dg(c){return typeof c=="number"&&c==f0(c)}function Qs(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=L1}function Ne(c){var p=typeof c;return c!=null&&(p=="object"||p=="function")}function Be(c){return c!=null&&typeof c=="object"}var hg=Cp?zn(Cp):fM;function cR(c,p){return c===p||Eu(c,p,Wu(p))}function dR(c,p,T){return T=typeof T=="function"?T:m,Eu(c,p,Wu(p),T)}function hR(c){return fg(c)&&c!=+c}function fR(c){if(XM(c))throw new n0(x);return rm(c)}function pR(c){return c===null}function mR(c){return c==null}function fg(c){return typeof c=="number"||Be(c)&&Qt(c)==Te}function Ea(c){if(!Be(c)||Qt(c)!=d0)return!1;var p=Cs(c);if(p===null)return!0;var T=ee.call(p,"constructor")&&p.constructor;return typeof T=="function"&&T instanceof T&&Ts.call(T)==dC}var nc=Mp?zn(Mp):pM;function gR(c){return dg(c)&&c>=-L1&&c<=L1}var pg=Ep?zn(Ep):mM;function e7(c){return typeof c=="string"||!s0(c)&&Be(c)&&Qt(c)==I0}function Vn(c){return typeof c=="symbol"||Be(c)&&Qt(c)==d2}var P8=Pp?zn(Pp):gM;function vR(c){return c===m}function yR(c){return Be(c)&&Bt(c)==j2}function _R(c){return Be(c)&&Qt(c)==K2}var SR=js(Ru),bR=js(function(c,p){return c<=p});function mg(c){if(!c)return[];if(fn(c))return e7(c)?O6(c):hn(c);if(ma&&c[ma])return QA(c[ma]());var p=Bt(c),T=p==b0?vu:p==Z1?_s:R8;return T(c)}function Di(c){if(!c)return c===0?c:0;if(c=m6(c),c===N1||c===-N1){var p=c<0?-1:1;return p*G1}return c===c?c:0}function f0(c){var p=Di(c),T=p%1;return p===p?T?p-T:p:0}function gg(c){return c?x9(f0(c),0,B2):0}function m6(c){if(typeof c=="number")return c;if(Vn(c))return y0;if(Ne(c)){var p=typeof c.valueOf=="function"?c.valueOf():c;c=Ne(p)?p+"":p}if(typeof c!="string")return c===0?c:+c;c=Fp(c);var T=ds.test(c);return T||hs.test(c)?DA(c.slice(2),T?2:8):tu.test(c)?y0:+c}function vg(c){return ni(c,pn(c))}function TR(c){return c?x9(f0(c),-L1,L1):c===0?c:0}function j0(c){return c==null?"":Gn(c)}var wR=C8(function(c,p){if(Ca(p)||fn(p)){ni(p,St(p),c);return}for(var T in p)ee.call(p,T)&&Sa(c,T,p[T])}),yg=C8(function(c,p){ni(p,pn(p),c)}),t7=C8(function(c,p,T,D){ni(p,pn(p),c,D)}),xR=C8(function(c,p,T,D){ni(p,St(p),c,D)}),AR=Ii(wu);function CR(c,p){var T=A8(c);return p==null?T:Xp(T,p)}var MR=S0(function(c,p){c=le(c);var T=-1,D=p.length,e2=D>2?p[2]:m;for(e2&&en(p[0],p[1],e2)&&(D=1);++T1),w2}),ni(c,Hu(c),T),D&&(T=h6(T,Q|X|D2,OM));for(var e2=p.length;e2--;)Fu(T,p[e2]);return T});function WR(c,p){return Sg(c,Zs(Y1(p)))}var $R=Ii(function(c,p){return c==null?{}:_M(c,p)});function Sg(c,p){if(c==null)return{};var T=Pe(Hu(c),function(D){return[D]});return p=Y1(p),dm(c,T,function(D,e2){return p(D,e2[0])})}function YR(c,p,T){p=w5(p,c);var D=-1,e2=p.length;for(e2||(e2=1,c=m);++Dp){var D=c;c=p,p=D}if(T||c%1||p%1){var e2=$p();return Ot(c+e2*(p-c+FA("1e-"+((e2+"").length-1))),p)}return Lu(c,p)}var rN=M8(function(c,p,T){return p=p.toLowerCase(),c+(T?wg(p):p)});function wg(c){return ac(j0(c).toLowerCase())}function xg(c){return c=j0(c),c&&c.replace(fs,qA).replace(AA,"")}function aN(c,p,T){c=j0(c),p=Gn(p);var D=c.length;T=T===m?D:x9(f0(T),0,D);var e2=T;return T-=p.length,T>=0&&c.slice(T,e2)==p}function sN(c){return c=j0(c),c&&Q0.test(c)?c.replace(Zt,KA):c}function oN(c){return c=j0(c),c&&Ut.test(c)?c.replace(oe,"\\$&"):c}var lN=M8(function(c,p,T){return c+(T?"-":"")+p.toLowerCase()}),uN=M8(function(c,p,T){return c+(T?" ":"")+p.toLowerCase()}),cN=Mm("toLowerCase");function dN(c,p,T){c=j0(c),p=f0(p);var D=p?S8(c):0;if(!p||D>=p)return c;var e2=(p-D)/2;return Hs(Rs(e2),T)+c+Hs(Ps(e2),T)}function hN(c,p,T){c=j0(c),p=f0(p);var D=p?S8(c):0;return p&&D>>0,T?(c=j0(c),c&&(typeof p=="string"||p!=null&&!nc(p))&&(p=Gn(p),!p&&_8(c))?x5(O6(c),0,T):c.split(p,T)):[]}var _N=M8(function(c,p,T){return c+(T?" ":"")+ac(p)});function SN(c,p,T){return c=j0(c),T=T==null?0:x9(f0(T),0,c.length),p=Gn(p),c.slice(T,T+p.length)==p}function bN(c,p,T){var D=m2.templateSettings;T&&en(c,p,T)&&(p=m),c=j0(c),p=t7({},p,D,km);var e2=t7({},p.imports,D.imports,km),w2=St(e2),$2=gu(e2,w2),i3,p3,z3=0,G3=p.interpolate||v9,Y3="__p += '",y1=yu((p.escape||v9).source+"|"+G3.source+"|"+(G3===Ci?cs:v9).source+"|"+(p.evaluate||v9).source+"|$","g"),I1="//# sourceURL="+(ee.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++RA+"]")+`
-`;c.replace(y1,function(K1,x0,P0,Hn,tn,jn){return P0||(P0=Hn),Y3+=c.slice(z3,jn).replace(iu,XA),x0&&(i3=!0,Y3+=`' +
+`)}function XM(c){return s0(c)||P9(c)||!!(Yp&&c&&c[Yp])}function Fi(c,p){var T=typeof c;return p=p==null?L1:p,!!p&&(T=="number"||T!="symbol"&&au.test(c))&&c>-1&&c%1==0&&c
0){if(++p>=M3)return arguments[0]}else p=0;return c.apply(m,arguments)}}function Ks(c,p){var T=-1,F=c.length,e2=F-1;for(p=p===m?F:p;++T
1?c[p-1]:m;return T=typeof T=="function"?(c.pop(),T):m,ig(c,T)});function rg(c){var p=m2(c);return p.__chain__=!0,p}function oP(c,p){return p(c),c}function Xs(c,p){return p(c)}var lP=ki(function(c){var p=c.length,T=p?c[0]:0,F=this.__wrapped__,e2=function(x2){return Cu(x2,c)};return p>1||this.__actions__.length||!(F instanceof C0)||!Fi(T)?this.thru(e2):(F=F.slice(T,+T+(p?1:0)),F.__actions__.push({func:Xs,args:[e2],thisArg:m}),new d6(F,this.__chain__).thru(function(x2){return p&&!x2.length&&x2.push(m),x2}))});function uP(){return rg(this)}function cP(){return new d6(this.value(),this.__chain__)}function dP(){this.__values__===m&&(this.__values__=yg(this.value()));var c=this.__index__>=this.__values__.length,p=c?m:this.__values__[this.__index__++];return{done:c,value:p}}function hP(){return this}function fP(c){for(var p,T=this;T instanceof Fs;){var F=Jm(T);F.__index__=0,F.__values__=m,p?e2.__wrapped__=F:p=F;var e2=F;T=T.__wrapped__}return e2.__wrapped__=c,p}function pP(){var c=this.__wrapped__;if(c instanceof C0){var p=c;return this.__actions__.length&&(p=new C0(this)),p=p.reverse(),p.__actions__.push({func:Xs,args:[ec],thisArg:m}),new d6(p,this.__chain__)}return this.thru(ec)}function mP(){return Sm(this.__wrapped__,this.__actions__)}var gP=Vs(function(c,p,T){ee.call(c,T)?++c[T]:Li(c,T,1)});function vP(c,p,T){var F=s0(c)?Ip:oM;return T&&en(c,p,T)&&(p=m),F(c,Y1(p,3))}function yP(c,p){var T=s0(c)?y5:im;return T(c,Y1(p,3))}var _P=Nm(Zm),SP=Nm(Qm);function bP(c,p){return Mt(Js(c,p),1)}function TP(c,p){return Mt(Js(c,p),N1)}function wP(c,p,T){return T=T===m?1:p0(T),Mt(Js(c,p),T)}function ag(c,p){var T=s0(c)?u6:T5;return T(c,Y1(p,3))}function sg(c,p){var T=s0(c)?VA:nm;return T(c,Y1(p,3))}var xP=Vs(function(c,p,T){ee.call(c,T)?c[T].push(p):Li(c,T,[p])});function AP(c,p,T,F){c=fn(c)?c:N8(c),T=T&&!F?p0(T):0;var e2=c.length;return T<0&&(T=ct(e2+T,0)),n7(c)?T<=e2&&c.indexOf(p,T)>-1:!!e2&&_8(c,p,T)>-1}var CP=S0(function(c,p,T){var F=-1,e2=typeof p=="function",x2=fn(c)?E3(c.length):[];return T5(c,function($2){x2[++F]=e2?Bn(p,$2,T):xa($2,p,T)}),x2}),MP=Vs(function(c,p,T){Li(c,T,p)});function Js(c,p){var T=s0(c)?Pe:um;return T(c,Y1(p,3))}function EP(c,p,T,F){return c==null?[]:(s0(p)||(p=p==null?[]:[p]),T=F?m:T,s0(T)||(T=T==null?[]:[T]),fm(c,p,T))}var PP=Vs(function(c,p,T){c[T?0:1].push(p)},function(){return[[],[]]});function RP(c,p,T){var F=s0(c)?fu:Up,e2=arguments.length<3;return F(c,Y1(p,4),T,e2,T5)}function NP(c,p,T){var F=s0(c)?HA:Up,e2=arguments.length<3;return F(c,Y1(p,4),T,e2,nm)}function LP(c,p){var T=s0(c)?y5:im;return T(c,e7(Y1(p,3)))}function IP(c){var p=s0(c)?Zp:AM;return p(c)}function kP(c,p,T){(T?en(c,p,T):p===m)?p=1:p=p0(p);var F=s0(c)?nM:CM;return F(c,p)}function FP(c){var p=s0(c)?iM:EM;return p(c)}function DP(c){if(c==null)return 0;if(fn(c))return n7(c)?b8(c):c.length;var p=Bt(c);return p==b0||p==Z1?c.size:Lu(c).length}function UP(c,p,T){var F=s0(c)?pu:PM;return T&&en(c,p,T)&&(p=m),F(c,Y1(p,3))}var OP=S0(function(c,p){if(c==null)return[];var T=p.length;return T>1&&en(c,p[0],p[1])?p=[]:T>2&&en(p[0],p[1],p[2])&&(p=[p[0]]),fm(c,Mt(p,1),[])}),Zs=yC||function(){return Ct.Date.now()};function BP(c,p){if(typeof p!="function")throw new c6(P);return c=p0(c),function(){if(--c<1)return p.apply(this,arguments)}}function og(c,p,T){return p=T?m:p,p=c&&p==null?c.length:p,Ii(c,R2,m,m,m,m,p)}function lg(c,p){var T;if(typeof p!="function")throw new c6(P);return c=p0(c),function(){return--c>0&&(T=p.apply(this,arguments)),c<=1&&(p=m),T}}var nc=S0(function(c,p,T){var F=L;if(T.length){var e2=S5(T,P8(nc));F|=G}return Ii(c,F,p,T,e2)}),ug=S0(function(c,p,T){var F=L|Y;if(T.length){var e2=S5(T,P8(ug));F|=G}return Ii(p,F,c,T,e2)});function cg(c,p,T){p=T?m:p;var F=Ii(c,C,m,m,m,m,m,p);return F.placeholder=cg.placeholder,F}function dg(c,p,T){p=T?m:p;var F=Ii(c,I,m,m,m,m,m,p);return F.placeholder=dg.placeholder,F}function hg(c,p,T){var F,e2,x2,$2,r3,p3,z3=0,G3=!1,q3=!1,_1=!0;if(typeof c!="function")throw new c6(P);p=m6(p)||0,Ne(T)&&(G3=!!T.leading,q3="maxWait"in T,x2=q3?ct(m6(T.maxWait)||0,p):x2,_1="trailing"in T?!!T.trailing:_1);function I1($e){var G6=F,Oi=e2;return F=e2=m,z3=$e,$2=c.apply(Oi,G6),$2}function q1($e){return z3=$e,r3=Pa(x0,p),G3?I1($e):$2}function m0($e){var G6=$e-p3,Oi=$e-z3,Ng=p-G6;return q3?Ot(Ng,x2-Oi):Ng}function K1($e){var G6=$e-p3,Oi=$e-z3;return p3===m||G6>=p||G6<0||q3&&Oi>=x2}function x0(){var $e=Zs();if(K1($e))return P0($e);r3=Pa(x0,m0($e))}function P0($e){return r3=m,_1&&F?I1($e):(F=e2=m,$2)}function Hn(){r3!==m&&Tm(r3),z3=0,F=p3=e2=r3=m}function tn(){return r3===m?$2:P0(Zs())}function jn(){var $e=Zs(),G6=K1($e);if(F=arguments,e2=this,p3=$e,G6){if(r3===m)return q1(p3);if(q3)return Tm(r3),r3=Pa(x0,p),I1(p3)}return r3===m&&(r3=Pa(x0,p)),$2}return jn.cancel=Hn,jn.flush=tn,jn}var zP=S0(function(c,p){return tm(c,1,p)}),GP=S0(function(c,p,T){return tm(c,m6(p)||0,T)});function VP(c){return Ii(c,Q2)}function Qs(c,p){if(typeof c!="function"||p!=null&&typeof p!="function")throw new c6(P);var T=function(){var F=arguments,e2=p?p.apply(this,F):F[0],x2=T.cache;if(x2.has(e2))return x2.get(e2);var $2=c.apply(this,F);return T.cache=x2.set(e2,$2)||x2,$2};return T.cache=new(Qs.Cache||Ni),T}Qs.Cache=Ni;function e7(c){if(typeof c!="function")throw new c6(P);return function(){var p=arguments;switch(p.length){case 0:return!c.call(this);case 1:return!c.call(this,p[0]);case 2:return!c.call(this,p[0],p[1]);case 3:return!c.call(this,p[0],p[1],p[2])}return!c.apply(this,p)}}function HP(c){return lg(2,c)}var jP=RM(function(c,p){p=p.length==1&&s0(p[0])?Pe(p[0],zn(Y1())):Pe(Mt(p,1),zn(Y1()));var T=p.length;return S0(function(F){for(var e2=-1,x2=Ot(F.length,T);++e2=p}),P9=sm(function(){return arguments}())?sm:function(c){return Be(c)&&ee.call(c,"callee")&&!$p.call(c,"callee")},s0=E3.isArray,aR=Mp?zn(Mp):fM;function fn(c){return c!=null&&t7(c.length)&&!Di(c)}function We(c){return Be(c)&&fn(c)}function sR(c){return c===!0||c===!1||Be(c)&&Qt(c)==D1}var C5=SC||pc,oR=Ep?zn(Ep):pM;function lR(c){return Be(c)&&c.nodeType===1&&!Ra(c)}function uR(c){if(c==null)return!0;if(fn(c)&&(s0(c)||typeof c=="string"||typeof c.splice=="function"||C5(c)||R8(c)||P9(c)))return!c.length;var p=Bt(c);if(p==b0||p==Z1)return!c.size;if(Ea(c))return!Lu(c).length;for(var T in c)if(ee.call(c,T))return!1;return!0}function cR(c,p){return Aa(c,p)}function dR(c,p,T){T=typeof T=="function"?T:m;var F=T?T(c,p):m;return F===m?Aa(c,p,m,T):!!F}function rc(c){if(!Be(c))return!1;var p=Qt(c);return p==Dt||p==On||typeof c.message=="string"&&typeof c.name=="string"&&!Ra(c)}function hR(c){return typeof c=="number"&&qp(c)}function Di(c){if(!Ne(c))return!1;var p=Qt(c);return p==et||p==At||p==U1||p==k1}function pg(c){return typeof c=="number"&&c==p0(c)}function t7(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=L1}function Ne(c){var p=typeof c;return c!=null&&(p=="object"||p=="function")}function Be(c){return c!=null&&typeof c=="object"}var mg=Pp?zn(Pp):gM;function fR(c,p){return c===p||Nu(c,p,qu(p))}function pR(c,p,T){return T=typeof T=="function"?T:m,Nu(c,p,qu(p),T)}function mR(c){return gg(c)&&c!=+c}function gR(c){if(QM(c))throw new n0(A);return om(c)}function vR(c){return c===null}function yR(c){return c==null}function gg(c){return typeof c=="number"||Be(c)&&Qt(c)==Te}function Ra(c){if(!Be(c)||Qt(c)!=h0)return!1;var p=Es(c);if(p===null)return!0;var T=ee.call(p,"constructor")&&p.constructor;return typeof T=="function"&&T instanceof T&&xs.call(T)==pC}var ac=Rp?zn(Rp):vM;function _R(c){return pg(c)&&c>=-L1&&c<=L1}var vg=Np?zn(Np):yM;function n7(c){return typeof c=="string"||!s0(c)&&Be(c)&&Qt(c)==I0}function Vn(c){return typeof c=="symbol"||Be(c)&&Qt(c)==d2}var R8=Lp?zn(Lp):_M;function SR(c){return c===m}function bR(c){return Be(c)&&Bt(c)==j2}function TR(c){return Be(c)&&Qt(c)==K2}var wR=$s(Iu),xR=$s(function(c,p){return c<=p});function yg(c){if(!c)return[];if(fn(c))return n7(c)?O6(c):hn(c);if(va&&c[va])return nC(c[va]());var p=Bt(c),T=p==b0?Su:p==Z1?bs:N8;return T(c)}function Ui(c){if(!c)return c===0?c:0;if(c=m6(c),c===N1||c===-N1){var p=c<0?-1:1;return p*G1}return c===c?c:0}function p0(c){var p=Ui(c),T=p%1;return p===p?T?p-T:p:0}function _g(c){return c?A9(p0(c),0,B2):0}function m6(c){if(typeof c=="number")return c;if(Vn(c))return y0;if(Ne(c)){var p=typeof c.valueOf=="function"?c.valueOf():c;c=Ne(p)?p+"":p}if(typeof c!="string")return c===0?c:+c;c=Op(c);var T=fs.test(c);return T||ps.test(c)?BA(c.slice(2),T?2:8):ru.test(c)?y0:+c}function Sg(c){return ni(c,pn(c))}function AR(c){return c?A9(p0(c),-L1,L1):c===0?c:0}function j0(c){return c==null?"":Gn(c)}var CR=M8(function(c,p){if(Ea(p)||fn(p)){ni(p,St(p),c);return}for(var T in p)ee.call(p,T)&&Ta(c,T,p[T])}),bg=M8(function(c,p){ni(p,pn(p),c)}),i7=M8(function(c,p,T,F){ni(p,pn(p),c,F)}),MR=M8(function(c,p,T,F){ni(p,St(p),c,F)}),ER=ki(Cu);function PR(c,p){var T=C8(c);return p==null?T:Qp(T,p)}var RR=S0(function(c,p){c=le(c);var T=-1,F=p.length,e2=F>2?p[2]:m;for(e2&&en(p[0],p[1],e2)&&(F=1);++T1),x2}),ni(c,$u(c),T),F&&(T=h6(T,Q|X|D2,GM));for(var e2=p.length;e2--;)Ou(T,p[e2]);return T});function qR(c,p){return wg(c,e7(Y1(p)))}var KR=ki(function(c,p){return c==null?{}:TM(c,p)});function wg(c,p){if(c==null)return{};var T=Pe($u(c),function(F){return[F]});return p=Y1(p),pm(c,T,function(F,e2){return p(F,e2[0])})}function XR(c,p,T){p=x5(p,c);var F=-1,e2=p.length;for(e2||(e2=1,c=m);++Fp){var F=c;c=p,p=F}if(T||c%1||p%1){var e2=Kp();return Ot(c+e2*(p-c+OA("1e-"+((e2+"").length-1))),p)}return Fu(c,p)}var oN=E8(function(c,p,T){return p=p.toLowerCase(),c+(T?Cg(p):p)});function Cg(c){return lc(j0(c).toLowerCase())}function Mg(c){return c=j0(c),c&&c.replace(ms,JA).replace(EA,"")}function lN(c,p,T){c=j0(c),p=Gn(p);var F=c.length;T=T===m?F:A9(p0(T),0,F);var e2=T;return T-=p.length,T>=0&&c.slice(T,e2)==p}function uN(c){return c=j0(c),c&&Q0.test(c)?c.replace(Zt,ZA):c}function cN(c){return c=j0(c),c&&Ut.test(c)?c.replace(oe,"\\$&"):c}var dN=E8(function(c,p,T){return c+(T?"-":"")+p.toLowerCase()}),hN=E8(function(c,p,T){return c+(T?" ":"")+p.toLowerCase()}),fN=Rm("toLowerCase");function pN(c,p,T){c=j0(c),p=p0(p);var F=p?b8(c):0;if(!p||F>=p)return c;var e2=(p-F)/2;return Ws(Ls(e2),T)+c+Ws(Ns(e2),T)}function mN(c,p,T){c=j0(c),p=p0(p);var F=p?b8(c):0;return p&&F>>0,T?(c=j0(c),c&&(typeof p=="string"||p!=null&&!ac(p))&&(p=Gn(p),!p&&S8(c))?A5(O6(c),0,T):c.split(p,T)):[]}var TN=E8(function(c,p,T){return c+(T?" ":"")+lc(p)});function wN(c,p,T){return c=j0(c),T=T==null?0:A9(p0(T),0,c.length),p=Gn(p),c.slice(T,T+p.length)==p}function xN(c,p,T){var F=m2.templateSettings;T&&en(c,p,T)&&(p=m),c=j0(c),p=i7({},p,F,Um);var e2=i7({},p.imports,F.imports,Um),x2=St(e2),$2=_u(e2,x2),r3,p3,z3=0,G3=p.interpolate||y9,q3="__p += '",_1=bu((p.escape||y9).source+"|"+G3.source+"|"+(G3===Mi?hs:y9).source+"|"+(p.evaluate||y9).source+"|$","g"),I1="//# sourceURL="+(ee.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++IA+"]")+`
+`;c.replace(_1,function(K1,x0,P0,Hn,tn,jn){return P0||(P0=Hn),q3+=c.slice(z3,jn).replace(su,QA),x0&&(r3=!0,q3+=`' +
__e(`+x0+`) +
-'`),tn&&(p3=!0,Y3+=`';
+'`),tn&&(p3=!0,q3+=`';
`+tn+`;
-__p += '`),P0&&(Y3+=`' +
+__p += '`),P0&&(q3+=`' +
((__t = (`+P0+`)) == null ? '' : __t) +
-'`),z3=jn+K1.length,K1}),Y3+=`';
-`;var q1=ee.call(p,"variable")&&p.variable;if(!q1)Y3=`with (obj) {
-`+Y3+`
+'`),z3=jn+K1.length,K1}),q3+=`';
+`;var q1=ee.call(p,"variable")&&p.variable;if(!q1)q3=`with (obj) {
+`+q3+`
}
-`;else if(d5.test(q1))throw new n0(L);Y3=(p3?Y3.replace(a0,""):Y3).replace(W1,"$1").replace(k0,"$1;"),Y3="function("+(q1||"obj")+`) {
+`;else if(h5.test(q1))throw new n0(N);q3=(p3?q3.replace(a0,""):q3).replace(W1,"$1").replace(k0,"$1;"),q3="function("+(q1||"obj")+`) {
`+(q1?"":`obj || (obj = {});
-`)+"var __t, __p = ''"+(i3?", __e = _.escape":"")+(p3?`, __j = Array.prototype.join;
+`)+"var __t, __p = ''"+(r3?", __e = _.escape":"")+(p3?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
-`)+Y3+`return __p
-}`;var m0=Cg(function(){return G0(w2,I1+"return "+Y3).apply(m,$2)});if(m0.source=Y3,tc(m0))throw m0;return m0}function TN(c){return j0(c).toLowerCase()}function wN(c){return j0(c).toUpperCase()}function xN(c,p,T){if(c=j0(c),c&&(T||p===m))return Fp(c);if(!c||!(p=Gn(p)))return c;var D=O6(c),e2=O6(p),w2=Dp(D,e2),$2=Up(D,e2)+1;return x5(D,w2,$2).join("")}function AN(c,p,T){if(c=j0(c),c&&(T||p===m))return c.slice(0,Bp(c)+1);if(!c||!(p=Gn(p)))return c;var D=O6(c),e2=Up(D,O6(p))+1;return x5(D,0,e2).join("")}function CN(c,p,T){if(c=j0(c),c&&(T||p===m))return c.replace(un,"");if(!c||!(p=Gn(p)))return c;var D=O6(c),e2=Dp(D,O6(p));return x5(D,e2).join("")}function MN(c,p){var T=c3,D=b3;if(Ne(p)){var e2="separator"in p?p.separator:e2;T="length"in p?f0(p.length):T,D="omission"in p?Gn(p.omission):D}c=j0(c);var w2=c.length;if(_8(c)){var $2=O6(c);w2=$2.length}if(T>=w2)return c;var i3=T-S8(D);if(i3<1)return D;var p3=$2?x5($2,0,i3).join(""):c.slice(0,i3);if(e2===m)return p3+D;if($2&&(i3+=p3.length-i3),nc(e2)){if(c.slice(i3).search(e2)){var z3,G3=p3;for(e2.global||(e2=yu(e2.source,j0(ca.exec(e2))+"g")),e2.lastIndex=0;z3=e2.exec(G3);)var Y3=z3.index;p3=p3.slice(0,Y3===m?i3:Y3)}}else if(c.indexOf(Gn(e2),i3)!=i3){var y1=p3.lastIndexOf(e2);y1>-1&&(p3=p3.slice(0,y1))}return p3+D}function EN(c){return c=j0(c),c&&h0.test(c)?c.replace(ln,iC):c}var PN=M8(function(c,p,T){return c+(T?" ":"")+p.toUpperCase()}),ac=Mm("toUpperCase");function Ag(c,p,T){return c=j0(c),p=T?m:p,p===m?ZA(c)?sC(c):HA(c):c.match(p)||[]}var Cg=S0(function(c,p){try{return Bn(c,m,p)}catch(T){return tc(T)?T:new n0(T)}}),RN=Ii(function(c,p){return u6(p,function(T){T=ii(T),Ni(c,T,Qu(c[T],c))}),c});function NN(c){var p=c==null?0:c.length,T=Y1();return c=p?Pe(c,function(D){if(typeof D[1]!="function")throw new c6(E);return[T(D[0]),D[1]]}):[],S0(function(D){for(var e2=-1;++e2
L1)return[];var T=B2,D=Ot(c,B2);p=Y1(p),c-=B2;for(var e2=mu(D,p);++T0||p<0)?new C0(T):(c<0?T=T.takeRight(-c):c&&(T=T.drop(c)),p!==m&&(p=f0(p),T=p<0?T.dropRight(-p):T.take(p-c)),T)},C0.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},C0.prototype.toArray=function(){return this.take(B2)},ti(C0.prototype,function(c,p){var T=/^(?:filter|find|map|reject)|While$/.test(p),D=/^(?:head|last)$/.test(p),e2=m2[D?"take"+(p=="last"?"Right":""):p],w2=D||/^find/.test(p);e2&&(m2.prototype[p]=function(){var $2=this.__wrapped__,i3=D?[1]:arguments,p3=$2 instanceof C0,z3=i3[0],G3=p3||s0($2),Y3=function(x0){var P0=e2.apply(m2,y5([x0],i3));return D&&y1?P0[0]:P0};G3&&T&&typeof z3=="function"&&z3.length!=1&&(p3=G3=!1);var y1=this.__chain__,I1=!!this.__actions__.length,q1=w2&&!y1,m0=p3&&!I1;if(!w2&&G3){$2=m0?$2:new C0(this);var K1=c.apply($2,i3);return K1.__actions__.push({func:qs,args:[Y3],thisArg:m}),new d6(K1,y1)}return q1&&m0?c.apply(this,i3):(K1=this.thru(Y3),q1?D?K1.value()[0]:K1.value():K1)})}),u6(["pop","push","shift","sort","splice","unshift"],function(c){var p=Ss[c],T=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",D=/^(?:pop|shift)$/.test(c);m2.prototype[c]=function(){var e2=arguments;if(D&&!this.__chain__){var w2=this.value();return p.apply(s0(w2)?w2:[],e2)}return this[T](function($2){return p.apply(s0($2)?$2:[],e2)})}}),ti(C0.prototype,function(c,p){var T=m2[p];if(T){var D=T.name+"";ee.call(x8,D)||(x8[D]=[]),x8[D].push({name:p,func:T})}}),x8[Gs(m,Y).name]=[{name:"wrapper",func:m}],C0.prototype.clone=EC,C0.prototype.reverse=PC,C0.prototype.value=RC,m2.prototype.at=aP,m2.prototype.chain=sP,m2.prototype.commit=oP,m2.prototype.next=lP,m2.prototype.plant=cP,m2.prototype.reverse=dP,m2.prototype.toJSON=m2.prototype.valueOf=m2.prototype.value=hP,m2.prototype.first=m2.prototype.head,ma&&(m2.prototype[ma]=uP),m2},b8=oC();S9?((S9.exports=b8)._=b8,ou._=b8):Ct._=b8}).call(c2)});function Z(R,N){var m=N.parentNode;m.lastChild==N?m.appendChild(R):m.insertBefore(R,N.nextSibling)}var G2=function(){function R(N,m){i(this,R),this.id=m,this.jSPlugin=N,this.state={play:!1,loading:!1,text:""},this.loadingSetText=this.loadingSetText}return a(R,[{key:"toString",value:function(){return"".concat(this.coreX,"-").concat(this.coreY)}},{key:"setPlayStatus",value:function(m){this.state=Object.assign(this.state,m)}},{key:"loadingStart",value:function(m){var g=document.createElement("style");document.getElementsByTagName("head")[0].appendChild(g),g.innerHTML="@keyframes antRotate {to {transform: rotate(400deg);transform-origin:50% 50%;}} .loading {display: inline-block;z-index: 1000;-webkit-animation: antRotate 1s infinite linear;animation: antRotate 1s infinite linear;}";var S=m,x=document.getElementById(S),E=x.offsetWidth,L=x.offsetHeight,r2=0,l2=x.offsetLeft;document.getElementById("".concat(m,"-loading-id-0"))&&document.getElementById("".concat(m,"-loading-id-0")).parentNode.removeChild(document.getElementById("".concat(m,"-loading-id-0")));var s2=document.createElement("div");s2.setAttribute("id","".concat(m,"-loading-id-0"));var g2="position:absolute;outline:none;pointer-events:none;";console.log("this.jSPlugin",this.jSPlugin),g2+="width: 100%;background-size: cover; background-repeat:no-repeat;",g2+="height: 100%;",g2+="top:"+r2+";",g2+="left:"+l2+"px;",s2.setAttribute("style",g2),s2.style.height=L,s2.setAttribute("class","loading-container"),Z(s2,x);var Q=1,X=document.createElement("div"),D2=document.createElement("div");X.setAttribute("class","loading-item"),X.setAttribute("id","".concat(m,"-loading-item-0"));var g2="display:inline-flex;pointer-events:none;flex-direction:column;justify-content:center;align-items: center;width:100%;height:"+L+"px;outline:none;vertical-align: top;position:absolute;";g2+="left:"+C(L,E,Q,0).left+"px;",g2+="top:"+C(L,E,Q,0).top+"px;",X.setAttribute("style",g2);function C(B,A,k,V){var M2=parseInt(V/k,10)*(B/k),R2=V%k*(A/k);return{top:M2,left:R2}}var I=document.createElement("div");D2.innerHTML="",D2.style.color="#fff",I.setAttribute("class","loading"),I.setAttribute("id","loading-icon");var Y='';I.innerHTML=Y,X.appendChild(I),X.appendChild(D2),s2.appendChild(X)}},{key:"loadingStop",value:function(m){var g=document.getElementById("".concat(m,"-loading-item-0"));g&&g.removeChild(document.getElementById("loading-icon"))}},{key:"loadingSetText",value:function(m){var g=this;if(this.loadingClearText(),document.getElementById("".concat(this.id,"-loading-item-0"))){var S=document.getElementById("".concat(this.id,"-loading-item-0")).childNodes[1];if(!S){var x=document.getElementById("".concat(this.id,"-loading-item-0"));x.style.height="100%",S=document.createElement("div"),S.innerHTML=m.text,x.appendChild(S)}S.innerHTML=m.text,S.style.fontSize="14px",S.style.color=m.color||"#FFFFFF",this.state.text=m.text,m.delayClear&&setTimeout(function(){g.loadingClearText()},parseInt(m.delayClear))}}},{key:"loadingClearText",value:function(){if(document.getElementById("".concat(this.id,"-loading-item-0"))){var m=document.getElementById("".concat(this.id,"-loading-item-0")).childNodes;m.length>1?m[1].parentNode.removeChild(m[1]):m[0]&&m[0].parentNode.removeChild(m[0])}}},{key:"loadingClear",value:function(){if(document.getElementById("".concat(this.id,"-loading-item-0"))){for(var m=document.getElementById("".concat(this.id,"-loading-item-0")).childNodes,g=m.length-1;g>=0;g--)m[g].parentNode.removeChild(m[g]);document.getElementById("".concat(this.id,"-loading-id-0"))&&(document.getElementById("".concat(this.id,"-loading-id-0")).style.background="none"),document.getElementById("loading-icon")&&document.getElementById("loading-icon").parentNode.removeChild(document.getElementById("loading-icon"))}}},{key:"loadingEnd",value:function(){var m=document.getElementById("".concat(this.id,"-loading-item-0"));if(m){m.parentNode.removeChild(m);var g=document.getElementById("".concat(this.id,"-loading-id-0"));g&&g.children.length===0&&g.parentNode.removeChild(g)}document.getElementById("".concat(this.id,"-loading-item-0")).style.background="none"}}]),R}(),q2=function(){function R(N,m){i(this,R),this.id=m,this.jSPlugin=N,this.timer=null,this.state={play:!1,loading:!1}}return a(R,[{key:"default",value:function(m){var g=this,S="msgId";document.getElementById("".concat(this.id,"-").concat(S))&&document.getElementById("".concat(this.id,"-wrap")).removeChild(document.getElementById("".concat(this.id,"-").concat(S)));var x=document.createElement("div");x.id="".concat(this.id,"-").concat(S),x.style="position: absolute;top: 50%;left:calc(50% - ".concat(m.length*14/2,"px);padding: 4px 16px;background: #00000080;color: #FFFFFF;font-size: 14px"),x.innerHTML=m,document.getElementById("".concat(this.id,"-wrap")).appendChild(x),this.timer&&clearTimeout(this.timer),this.timer=setTimeout(function(){document.getElementById("".concat(g.id,"-wrap")).removeChild(document.getElementById("".concat(g.id,"-").concat(S)))},2e3)}}]),R}(),C2=[{moduleCode:"",detailCode:"405984",description:"",solution:"",updateTime:1559564188e3},{moduleCode:"",detailCode:"10035",description:"获取子账户AccessToken异常,子账户不存在或子账户不属于该开发者",solution:"",updateTime:1559551958e3},{moduleCode:"",detailCode:"1052674",description:"获取本地录像失败",solution:"",updateTime:1558579653e3},{moduleCode:"",detailCode:"395547",description:"",solution:"",updateTime:1557367296e3},{moduleCode:"",detailCode:"12",description:"",solution:"",updateTime:1557229476e3},{moduleCode:"",detailCode:"10052",description:"余额不足",solution:"",updateTime:1557121463e3},{moduleCode:"",detailCode:"20108",description:"当前用户和所添加用户不是好友关系",solution:"",updateTime:1556541725e3},{moduleCode:"",detailCode:"10009",description:"",solution:"",updateTime:1556422452e3},{moduleCode:"",detailCode:"320001",description:"通道不存在",solution:"请检查录像机的关联状态是否正常,没有摄像头的通道无法播放",updateTime:1556419044e3},{moduleCode:"",detailCode:"120001",description:"通道不存在",solution:"请检查录像机的关联状态是否正常,没有摄像头的通道无法播放",updateTime:155641903e4},{moduleCode:"",detailCode:"320049",description:"",solution:"",updateTime:1556272984e3},{moduleCode:"",detailCode:"380227",description:"",solution:"",updateTime:1556264379e3},{moduleCode:"",detailCode:"10033",description:"policy参数信息异常",solution:"",updateTime:1555922124e3},{moduleCode:"",detailCode:"10065",description:"weakAppKey 不属于accessToken对应的用户",solution:"",updateTime:1555497522e3},{moduleCode:"",detailCode:"100001",description:"",solution:"",updateTime:1555141776e3},{moduleCode:"",detailCode:"395558",description:"",solution:"",updateTime:1554987121e3},{moduleCode:"",detailCode:"70001",description:"智能家居买断用户设备受到限制,建议合理选择pagestart和pageSize",solution:"",updateTime:1554691023e3},{moduleCode:"",detailCode:"170001",description:"",solution:"",updateTime:1554691023e3},{moduleCode:"",detailCode:"1012",description:"重置失败",solution:"",updateTime:1554645841e3},{moduleCode:"",detailCode:"1043",description:"重置失败",solution:"",updateTime:1554645834e3},{moduleCode:"",detailCode:"60060",description:"直播功能未开通",solution:"通道未开通直播功能,请先开通直播",updateTime:1554346018e3},{moduleCode:"",detailCode:"380203",description:"",solution:"",updateTime:1554093666e3},{moduleCode:"",detailCode:"399048",description:"免费版并发数达到上限,请升级企业版使用多并发能力",solution:"升级成为企业版套餐即可取消并发数限制",updateTime:1553839878e3},{moduleCode:"",detailCode:"60007",description:"预置点个数超过最大值",solution:"",updateTime:1553671316e3},{moduleCode:"",detailCode:"1005",description:"",solution:"",updateTime:1553513701e3},{moduleCode:"",detailCode:"20605",description:"其他用户正在认证中",solution:"",updateTime:1552976317e3},{moduleCode:"",detailCode:"90004",description:"当前型号设备暂时不支持AI任务:CS-C3W-3B1WFR-YGL",solution:"",updateTime:1552898525e3},{moduleCode:"",detailCode:"60046",description:"添加的设备的IP和本设备的IP冲突",solution:"",updateTime:1552872372e3},{moduleCode:"",detailCode:"3",description:"修改视频清晰度失败!",solution:"",updateTime:1552440229e3},{moduleCode:"",detailCode:"1013",description:"",solution:"",updateTime:1552035069e3},{moduleCode:"",detailCode:"370007",description:"",solution:"",updateTime:1551852327e3},{moduleCode:"",detailCode:"-1",description:"",solution:"",updateTime:1551752889e3},{moduleCode:"",detailCode:"30005",description:"弱账户不存在",solution:"",updateTime:1551422358e3},{moduleCode:"",detailCode:"90006",description:"用户操作AI任务受限",solution:"",updateTime:155107332e4},{moduleCode:"",detailCode:"60203",description:"未开通相关服务",solution:"",updateTime:155062307e4},{moduleCode:"",detailCode:"10002",description:"accessToken过期或异常",solution:"",updateTime:1550300346e3},{moduleCode:"",detailCode:"380339",description:"",solution:"",updateTime:1549889458e3},{moduleCode:"",detailCode:"90002",description:"AI任务设备配置数达到上限:3",solution:"",updateTime:1549071664e3},{moduleCode:"",detailCode:"380008",description:"",solution:"",updateTime:1549005979e3},{moduleCode:"",detailCode:"320227",description:"",solution:"",updateTime:1548739731e3},{moduleCode:"",detailCode:"60059",description:"ezopen地址均不可用",solution:"",updateTime:154839535e4},{moduleCode:"",detailCode:"10005",description:"appKey异常",solution:"",updateTime:1548317858e3},{moduleCode:"",detailCode:"60045",description:"添加的设备的IP和其他通道的IP冲突",solution:"",updateTime:1548155085e3},{moduleCode:"",detailCode:"60047",description:"码流类型不支持",solution:"",updateTime:1547962108e3},{moduleCode:"",detailCode:"60041",description:"添加的设备被其他设备关联或响应超时",solution:"",updateTime:154796098e4},{moduleCode:"",detailCode:"110029",description:"个人用户接口调用频率超限",solution:"请升级企业版:https://open.ys7.com/price.html",updateTime:1547606859e3},{moduleCode:"",detailCode:"380355",description:"设备直连推流异常结束",solution:"",updateTime:1547106294e3},{moduleCode:"",detailCode:"320081",description:"",solution:"",updateTime:1547106279e3},{moduleCode:"",detailCode:"60035",description:"购买云存储服务失败",solution:"",updateTime:1547026959e3},{moduleCode:"",detailCode:"90005",description:"设备已存在:C75714141",solution:"",updateTime:1546940622e3},{moduleCode:"",detailCode:"1053445",description:"该时间段没有录像片段",solution:"",updateTime:1546935727e3},{moduleCode:"",detailCode:"90007",description:"设备未加入到AI任务",solution:"",updateTime:1546932948e3},{moduleCode:"",detailCode:"326000",description:"",solution:"",updateTime:1546823143e3},{moduleCode:"",detailCode:"1021",description:"重置失败",solution:"",updateTime:1546781152e3},{moduleCode:"",detailCode:"2001",description:"删除设备失败!",solution:"",updateTime:1546422886e3},{moduleCode:"",detailCode:"380425",description:"",solution:"",updateTime:1546407694e3},{moduleCode:"",detailCode:"120097",description:"",solution:"",updateTime:1546085995e3},{moduleCode:"",detailCode:"10059",description:"requestId已存在",solution:"",updateTime:1545824509e3},{moduleCode:"",detailCode:"1154723",description:"",solution:"",updateTime:1545795209e3},{moduleCode:"",detailCode:"60043",description:"添加的设备超出最大数量",solution:"",updateTime:1545493607e3},{moduleCode:"",detailCode:"1152677",description:"",solution:"",updateTime:1545313404e3},{moduleCode:"",detailCode:"20097",description:"设备添加异常,设备验证码为ABCDEF或设备被N1,R1关联",solution:"",updateTime:1545310795e3},{moduleCode:"",detailCode:"10060",description:"设备不支持该云存储类型",solution:"",updateTime:1545309064e3},{moduleCode:"",detailCode:"20102",description:"无相应邀请信息,无法接受邀请",solution:"",updateTime:1545204966e3},{moduleCode:"",detailCode:"10053",description:"云存储开通中",solution:"",updateTime:1545100293e3},{moduleCode:"",detailCode:"20401",description:"用户云空间信息不存在",solution:"",updateTime:154501788e4},{moduleCode:"",detailCode:"20600",description:"临时密码数已达上限",solution:"",updateTime:1544873457e3},{moduleCode:"",detailCode:"901",description:"",solution:"",updateTime:1544693519e3},{moduleCode:"",detailCode:"60210",description:"图片数据错误",solution:"",updateTime:1544604457e3},{moduleCode:"",detailCode:"10013",description:"您的应用没有权限调用",solution:"",updateTime:1544416237e3},{moduleCode:"",detailCode:"70007",description:"授权码不存在",solution:"",updateTime:1544179533e3},{moduleCode:"",detailCode:"10015",description:"授权地址不存在",solution:"",updateTime:154416324e4},{moduleCode:"",detailCode:"320423",description:"",solution:"",updateTime:1544100685e3},{moduleCode:"",detailCode:"370009",description:"",solution:"",updateTime:1544077151e3},{moduleCode:"",detailCode:"10031",description:"子账户或萤石用户没有权限",solution:"",updateTime:1543990462e3},{moduleCode:"",detailCode:"10055",description:"设备不支持试用云存储服务",solution:"",updateTime:1543986292e3},{moduleCode:"",detailCode:"60042",description:"添加的设备密码错误",solution:"",updateTime:1543710913e3},{moduleCode:"",detailCode:"60082",description:"设备正在响应本次声源定位",solution:"",updateTime:1543647426e3},{moduleCode:"",detailCode:"10056",description:"设备不支持云存储服务转出",solution:"",updateTime:1543558342e3},{moduleCode:"",detailCode:"20104",description:"好友不存在",solution:"",updateTime:1543492403e3},{moduleCode:"",detailCode:"20111",description:"好友不是等待验证状态,无法接受邀请",solution:"",updateTime:1543492365e3},{moduleCode:"",detailCode:"20107",description:"不能添加自己为好友",solution:"",updateTime:1543480986e3},{moduleCode:"",detailCode:"1",description:"设备返回其他错误",solution:"",updateTime:1543459921e3},{moduleCode:"",detailCode:"60084",description:"当前正在关闭隐私遮蔽",solution:"",updateTime:1543456515e3},{moduleCode:"",detailCode:"380255",description:"",solution:"",updateTime:1543411652e3},{moduleCode:"",detailCode:"20015",description:"设备不支持",solution:"",updateTime:1543390936e3},{moduleCode:"",detailCode:"30003",description:"手机验证码错误",solution:"",updateTime:1543389137e3},{moduleCode:"",detailCode:"20615",description:"锁用户已存在",solution:"",updateTime:1543388325e3},{moduleCode:"",detailCode:"60061",description:"账户流量已超出或未购买,限制开通",solution:"",updateTime:1543372581e3},{moduleCode:"",detailCode:"60020",description:"设备不支持该信令",solution:"",updateTime:1543321636e3},{moduleCode:"",detailCode:"320146",description:"",solution:"",updateTime:1543318472e3},{moduleCode:"",detailCode:"60018",description:"设备升级失败",solution:"",updateTime:1543304928e3},{moduleCode:"",detailCode:"60044",description:"添加的设备网络不可达超时",solution:"",updateTime:1543304102e3},{moduleCode:"",detailCode:"20619",description:"主用户无法删除",solution:"",updateTime:1543290219e3},{moduleCode:"",detailCode:"20608",description:"锁用户不存在",solution:"",updateTime:154328195e4},{moduleCode:"",detailCode:"20609",description:"设备响应超时,门锁通信故障或者电量不足,请重试.",solution:"",updateTime:1543281601e3},{moduleCode:"",detailCode:"1049954",description:"升级设备失败",solution:"",updateTime:1543279264e3},{moduleCode:"",detailCode:"60009",description:"正在调用预置点",solution:"",updateTime:1543238114e3},{moduleCode:"",detailCode:"1052677",description:"获取本地录像失败",solution:"",updateTime:1543207604e3},{moduleCode:"",detailCode:"327000",description:"",solution:"",updateTime:1543196609e3},{moduleCode:"",detailCode:"20021",description:"设备在线,未被用户添加",solution:"",updateTime:1543193436e3},{moduleCode:"",detailCode:"20202",description:"操作留言信息失败",solution:"",updateTime:1543191562e3},{moduleCode:"",detailCode:"1052678",description:"获取本地录像失败",solution:"",updateTime:1543132218e3},{moduleCode:"",detailCode:"1054723",description:"格式化设备失败",solution:"",updateTime:1543129833e3},{moduleCode:"",detailCode:"20109",description:"对应分享不存在",solution:"",updateTime:1543129111e3},{moduleCode:"",detailCode:"60026",description:"设备处于隐私遮蔽状态",solution:"",updateTime:1543110403e3},{moduleCode:"",detailCode:"60083",description:"当前正在开启隐私遮蔽",solution:"",updateTime:1543071148e3},{moduleCode:"",detailCode:"60001",description:"用户无云台控制权限",solution:"",updateTime:1543059167e3},{moduleCode:"",detailCode:"2003",description:"设备不在线",solution:"",updateTime:1543051046e3},{moduleCode:"",detailCode:"-24",description:"设置设备enable错误",solution:"",updateTime:1543042701e3},{moduleCode:"",detailCode:"10018",description:"",solution:"",updateTime:1543041564e3},{moduleCode:"",detailCode:"20103",description:"好友已存在",solution:"",updateTime:154303843e4},{moduleCode:"",detailCode:"70010",description:"授权异常请重试",solution:"",updateTime:154303559e4},{moduleCode:"",detailCode:"60056",description:"删除设备失败",solution:"",updateTime:1543031275e3},{moduleCode:"",detailCode:"60040",description:"添加的设备不在同一局域网",solution:"",updateTime:154303121e4},{moduleCode:"",detailCode:"60019",description:"加密已开启",solution:"",updateTime:1543029931e3},{moduleCode:"",detailCode:"1054722",description:"格式化设备失败",solution:"",updateTime:1543028537e3},{moduleCode:"",detailCode:"20016",description:"当前设备正在格式化",solution:"",updateTime:1543028537e3},{moduleCode:"",detailCode:"10024",description:"透明通道权限校验不通过",solution:"",updateTime:154302554e4},{moduleCode:"",detailCode:"6002",description:"删除设备失败!",solution:"",updateTime:1543025026e3},{moduleCode:"",detailCode:"1011",description:"验证码错误!",solution:"",updateTime:1543016865e3},{moduleCode:"",detailCode:"60032",description:"卡密已使用",solution:"",updateTime:1543006668e3},{moduleCode:"",detailCode:"10034",description:"子账号已存在",solution:"",updateTime:1542989194e3},{moduleCode:"",detailCode:"20301",description:"根据uuid查询联动信息不存在",solution:"",updateTime:1542988651e3},{moduleCode:"",detailCode:"1041",description:"获取验证码过于频繁",solution:"",updateTime:1542980953e3},{moduleCode:"",detailCode:"10012",description:"该appkey下已绑定重复的phone!",solution:"",updateTime:15429808e5},{moduleCode:"",detailCode:"1008",description:"phone不合法!",solution:"",updateTime:1542979812e3},{moduleCode:"",detailCode:"60023",description:"订阅操作失败",solution:"",updateTime:1542979006e3},{moduleCode:"",detailCode:"5",description:"设备返回其他错误",solution:"",updateTime:1542977828e3},{moduleCode:"",detailCode:"60006",description:"云台当前操作失败",solution:"",updateTime:1542977598e3},{moduleCode:"",detailCode:"131",description:"修改视频清晰度失败!",solution:"",updateTime:1542977246e3},{moduleCode:"",detailCode:"10019",description:"密码错误",solution:"",updateTime:1542976628e3},{moduleCode:"",detailCode:"10004",description:"用户不存在",solution:"",updateTime:1542976268e3},{moduleCode:"",detailCode:"20201",description:"操作报警信息失败",solution:"",updateTime:1542975906e3},{moduleCode:"",detailCode:"20024",description:"设备不在线,已经被别的用户添加",solution:"",updateTime:1542975858e3},{moduleCode:"",detailCode:"60004",description:"设备云台旋转达到左限位",solution:"",updateTime:1542975207e3},{moduleCode:"",detailCode:"1052679",description:"修改视频清晰度失败!",solution:"",updateTime:1542974886e3},{moduleCode:"",detailCode:"20031",description:"请在萤石客户端关闭终端绑定",solution:"",updateTime:1542974756e3},{moduleCode:"",detailCode:"1053825",description:"获取本地录像失败",solution:"",updateTime:1542974692e3},{moduleCode:"",detailCode:"60011",description:"预置点不存在",solution:"",updateTime:1542974414e3},{moduleCode:"",detailCode:"1052936",description:"修改视频清晰度失败!",solution:"",updateTime:154297439e4},{moduleCode:"",detailCode:"1016",description:"",solution:"",updateTime:1542974273e3},{moduleCode:"",detailCode:"10032",description:"子账号不存在",solution:"",updateTime:1542973906e3},{moduleCode:"",detailCode:"20013",description:"设备已被别人添加",solution:"",updateTime:1542973817e3},{moduleCode:"",detailCode:"50000",description:"服务器错误!",solution:"",updateTime:1542973801e3},{moduleCode:"",detailCode:"60010",description:"该预置点已经是当前位置",solution:"",updateTime:15429738e5},{moduleCode:"",detailCode:"60003",description:"设备云台旋转达到下限位",solution:"",updateTime:154297377e4},{moduleCode:"",detailCode:"4",description:"设备返回其他错误",solution:"",updateTime:1542973755e3},{moduleCode:"",detailCode:"60016",description:"加密未开启,无需关闭",solution:"",updateTime:1542973753e3},{moduleCode:"",detailCode:"60002",description:"设备云台旋转达到上限位",solution:"",updateTime:1542973742e3},{moduleCode:"",detailCode:"20023",description:"设备不在线,未被用户添加",solution:"",updateTime:1542973685e3},{moduleCode:"",detailCode:"10008",description:"",solution:"",updateTime:1542973676e3},{moduleCode:"",detailCode:"20010",description:"设备验证码错误",solution:"",updateTime:1542973658e3},{moduleCode:"",detailCode:"60005",description:"设备云台旋转达到右限位",solution:"",updateTime:1542973657e3},{moduleCode:"",detailCode:"20017",description:"设备已经被自己添加",solution:"",updateTime:1542973648e3},{moduleCode:"",detailCode:"20020",description:"设备在线,已经被自己添加",solution:"",updateTime:1542973533e3},{moduleCode:"",detailCode:"20029",description:"设备不在线,已经被自己添加",solution:"",updateTime:154297353e4},{moduleCode:"",detailCode:"10014",description:"APPKEY下对应的第三方userId和phone未绑定!",solution:"",updateTime:1542973499e3},{moduleCode:"",detailCode:"20002",description:"设备不存在",solution:"",updateTime:1542973499e3},{moduleCode:"",detailCode:"10030",description:"appkey和appsecret不匹配",solution:"",updateTime:154297349e4},{moduleCode:"",detailCode:"20022",description:"设备在线,已经被别的用户添加",solution:"",updateTime:1542973486e3},{moduleCode:"",detailCode:"20008",description:"设备响应超时",solution:"",updateTime:1542973484e3},{moduleCode:"",detailCode:"20032",description:"该用户下通道不存在",solution:"",updateTime:1542973481e3},{moduleCode:"",detailCode:"20006",description:"网络异常",solution:"",updateTime:1542973475e3},{moduleCode:"",detailCode:"20014",description:"deviceSerial不合法!",solution:"",updateTime:1542973454e3},{moduleCode:"",detailCode:"20007",description:"设备不在线",solution:"",updateTime:1542973454e3},{moduleCode:"",detailCode:"20018",description:"该用户不拥有该设备",solution:"",updateTime:1542973453e3},{moduleCode:"",detailCode:"10010",description:"",solution:"",updateTime:1542973453e3},{moduleCode:"",detailCode:"10011",description:"未绑定!",solution:"",updateTime:1542973453e3},{moduleCode:"",detailCode:"20001",description:"通道不存在!",solution:"",updateTime:1542973452e3},{moduleCode:"",detailCode:"10017",description:"appKey不存在",solution:"",updateTime:1542973451e3},{moduleCode:"",detailCode:"400259",description:"",solution:"",updateTime:1542875643e3},{moduleCode:"",detailCode:"400004",description:"",solution:"",updateTime:1542873364e3},{moduleCode:"",detailCode:"3840",description:"",solution:"",updateTime:154186e7},{moduleCode:"",detailCode:"-1017",description:"",solution:"",updateTime:1541733663e3},{moduleCode:"",detailCode:"320025",description:"",solution:"",updateTime:1541078281e3},{moduleCode:"",detailCode:"320024",description:"",solution:"",updateTime:1540801374e3},{moduleCode:"",detailCode:"321002",description:"",solution:"",updateTime:1540631734e3},{moduleCode:"",detailCode:"321000",description:"",solution:"",updateTime:1540609178e3},{moduleCode:"",detailCode:"321022",description:"",solution:"",updateTime:1540548345e3},{moduleCode:"",detailCode:"321016",description:"",solution:"",updateTime:1540287187e3},{moduleCode:"",detailCode:"320023",description:"",solution:"",updateTime:1539825993e3},{moduleCode:"",detailCode:"-1016",description:"",solution:"",updateTime:1539584931e3},{moduleCode:"",detailCode:"8",description:"",solution:"",updateTime:1539391812e3},{moduleCode:"",detailCode:"1075127593",description:"",solution:"",updateTime:1538959251e3},{moduleCode:"",detailCode:"380421",description:"",solution:"",updateTime:1537288465e3},{moduleCode:"",detailCode:"322000",description:"麦克风权限未开启",solution:"",updateTime:1536820136e3},{moduleCode:"",detailCode:"1152678",description:"",solution:"",updateTime:1536738348e3},{moduleCode:"",detailCode:"320047",description:"",solution:"",updateTime:1536664472e3},{moduleCode:"",detailCode:"327006",description:"",solution:"",updateTime:153613612e4},{moduleCode:"",detailCode:"1074807593",description:"",solution:"",updateTime:1536135035e3},{moduleCode:"",detailCode:"320291",description:"",solution:"",updateTime:1536110836e3},{moduleCode:"",detailCode:"320045",description:"",solution:"",updateTime:1535963775e3},{moduleCode:"",detailCode:"370004",description:"",solution:"",updateTime:1535883699e3},{moduleCode:"",detailCode:"1149954",description:"",solution:"",updateTime:1535700674e3},{moduleCode:"",detailCode:"320053",description:"",solution:"",updateTime:1535681079e3},{moduleCode:"",detailCode:"400000",description:"",solution:"",updateTime:1535532332e3},{moduleCode:"",detailCode:"110028",description:"个人版抓图接口日调用次数超出限制",solution:"请升级企业版:https://open.ys7.com/price.html",updateTime:1535348756e3},{moduleCode:"",detailCode:"110027",description:"个人版帐号数量超出安全限制,无法调用",solution:"请升级企业版:https://open.ys7.com/price.html",updateTime:1535348734e3},{moduleCode:"",detailCode:"110026",description:"设备数量超出个人版限制,当前设备无法操作",solution:"请升级企业版:https://open.ys7.com/price.html",updateTime:1535348588e3},{moduleCode:"",detailCode:"100000",description:"",solution:"",updateTime:1534980008e3},{moduleCode:"",detailCode:"324004",description:"",solution:"",updateTime:1534927762e3},{moduleCode:"",detailCode:"360104",description:"",solution:"",updateTime:1534761006e3},{moduleCode:"",detailCode:"320204",description:"",solution:"",updateTime:1534584221e3},{moduleCode:"",detailCode:"380001",description:"",solution:"",updateTime:1534404715e3},{moduleCode:"",detailCode:"380204",description:"",solution:"",updateTime:1534401682e3},{moduleCode:"",detailCode:"328006",description:"",solution:"",updateTime:1534144407e3},{moduleCode:"",detailCode:"321703",description:"",solution:"",updateTime:1534127274e3},{moduleCode:"",detailCode:"321510",description:"",solution:"",updateTime:1533428892e3},{moduleCode:"",detailCode:"321006",description:"",solution:"",updateTime:1533036916e3},{moduleCode:"",detailCode:"50009",description:"",solution:"",updateTime:1532078548e3},{moduleCode:"",detailCode:"50007",description:"",solution:"",updateTime:153199172e4},{moduleCode:"",detailCode:"50018",description:"",solution:"",updateTime:1531912829e3},{moduleCode:"",detailCode:"380451",description:"",solution:"",updateTime:15316157e5},{moduleCode:"",detailCode:"380336",description:"",solution:"",updateTime:1531231721e3},{moduleCode:"",detailCode:"360020",description:"",solution:"",updateTime:1531117554e3},{moduleCode:"",detailCode:"380418",description:"",solution:"",updateTime:153110707e4},{moduleCode:"",detailCode:"1153445",description:"设备在该时间段内没有录像",solution:"",updateTime:1530944007e3},{moduleCode:"",detailCode:"110007",description:"调用接口总次数达到上限",solution:"请升级企业版,获取更高能力",updateTime:1530935584e3},{moduleCode:"",detailCode:"360019",description:"",solution:"",updateTime:1530869771e3},{moduleCode:"",detailCode:"360100",description:"",solution:"",updateTime:1530786188e3},{moduleCode:"",detailCode:"380042",description:"",solution:"",updateTime:1530775199e3},{moduleCode:"",detailCode:"320355",description:"",solution:"",updateTime:1530716074e3},{moduleCode:"",detailCode:"100003",description:"",solution:"",updateTime:1530232541e3},{moduleCode:"",detailCode:"371026",description:"",solution:"",updateTime:15301926e5},{moduleCode:"",detailCode:"102",description:"",solution:"",updateTime:1529895641e3},{moduleCode:"",detailCode:"380201",description:"",solution:"",updateTime:1529740929e3},{moduleCode:"",detailCode:"320054",description:"",solution:"",updateTime:1529544875e3},{moduleCode:"",detailCode:"500101",description:"",solution:"",updateTime:1529485953e3},{moduleCode:"",detailCode:"321001",description:"",solution:"",updateTime:1529411048e3},{moduleCode:"",detailCode:"321508",description:"",solution:"",updateTime:1529393279e3},{moduleCode:"",detailCode:"405991",description:"",solution:"",updateTime:1529380238e3},{moduleCode:"",detailCode:"380461",description:"",solution:"",updateTime:1529130941e3},{moduleCode:"",detailCode:"-1019",description:"",solution:"",updateTime:1529057245e3},{moduleCode:"",detailCode:"322009",description:"",solution:"",updateTime:1528965717e3},{moduleCode:"",detailCode:"324005",description:"",solution:"",updateTime:1528950153e3},{moduleCode:"",detailCode:"325000",description:"",solution:"",updateTime:1528947143e3},{moduleCode:"",detailCode:"326032",description:"",solution:"",updateTime:1528872971e3},{moduleCode:"",detailCode:"325032",description:"",solution:"",updateTime:1528863189e3},{moduleCode:"",detailCode:"328000",description:"",solution:"",updateTime:1528794505e3},{moduleCode:"",detailCode:"53",description:"",solution:"",updateTime:1528693249e3},{moduleCode:"",detailCode:"-1020",description:"",solution:"",updateTime:152849944e4},{moduleCode:"",detailCode:"329032",description:"",solution:"",updateTime:1528446301e3},{moduleCode:"",detailCode:"-1202",description:"",solution:"",updateTime:152843982e4},{moduleCode:"",detailCode:"2",description:"",solution:"",updateTime:1528434175e3},{moduleCode:"",detailCode:"1152936",description:"",solution:"",updateTime:1528345986e3},{moduleCode:"",detailCode:"328011",description:"",solution:"",updateTime:15283386e5},{moduleCode:"",detailCode:"28",description:"",solution:"",updateTime:152833753e4},{moduleCode:"",detailCode:"320356",description:"",solution:"",updateTime:1528188693e3},{moduleCode:"",detailCode:"320357",description:"",solution:"",updateTime:1528188517e3},{moduleCode:"",detailCode:"405800",description:"",solution:"",updateTime:1528168732e3},{moduleCode:"",detailCode:"405996",description:"",solution:"",updateTime:1528168686e3},{moduleCode:"",detailCode:"380357",description:"",solution:"",updateTime:1528011565e3},{moduleCode:"",detailCode:"328022",description:"",solution:"",updateTime:1527929065e3},{moduleCode:"",detailCode:"380003",description:"",solution:"",updateTime:1527927819e3},{moduleCode:"",detailCode:"50004",description:"",solution:"",updateTime:1527770643e3},{moduleCode:"",detailCode:"50011",description:"",solution:"",updateTime:1527770635e3},{moduleCode:"",detailCode:"370017",description:"",solution:"",updateTime:1527739514e3},{moduleCode:"",detailCode:"327032",description:"",solution:"",updateTime:1527726704e3},{moduleCode:"",detailCode:"324001",description:"",solution:"",updateTime:1527681892e3},{moduleCode:"",detailCode:"405997",description:"",solution:"",updateTime:1527653408e3},{moduleCode:"",detailCode:"405995",description:"",solution:"",updateTime:1527647283e3},{moduleCode:"",detailCode:"1153825",description:"",solution:"",updateTime:1527601747e3},{moduleCode:"",detailCode:"328002",description:"",solution:"",updateTime:1527495292e3},{moduleCode:"",detailCode:"1152679",description:"",solution:"",updateTime:1527486665e3},{moduleCode:"",detailCode:"380356",description:"",solution:"",updateTime:1527125669e3},{moduleCode:"",detailCode:"328032",description:"",solution:"",updateTime:1527069382e3},{moduleCode:"",detailCode:"22",description:"",solution:"",updateTime:1527049826e3},{moduleCode:"",detailCode:"9",description:"",solution:"",updateTime:1527006778e3},{moduleCode:"",detailCode:"89",description:"",solution:"",updateTime:1526622784e3},{moduleCode:"",detailCode:"328016",description:"",solution:"",updateTime:1526452365e3},{moduleCode:"",detailCode:"368005",description:"",solution:"",updateTime:1525921264e3},{moduleCode:"",detailCode:"0",description:"",solution:"",updateTime:1525920242e3},{moduleCode:"",detailCode:"380006",description:"",solution:"",updateTime:1525918868e3},{moduleCode:"",detailCode:"310",description:"",solution:"",updateTime:1525834436e3},{moduleCode:"",detailCode:"360011",description:"",solution:"",updateTime:1525681552e3},{moduleCode:"",detailCode:"170005",description:"",solution:"",updateTime:15254339e5},{moduleCode:"",detailCode:"50023",description:"",solution:"",updateTime:1525403338e3},{moduleCode:"",detailCode:"100131",description:"",solution:"",updateTime:1525229691e3},{moduleCode:"",detailCode:"-1018",description:"",solution:"",updateTime:1525142341e3},{moduleCode:"",detailCode:"362026",description:"",solution:"",updateTime:1524882677e3},{moduleCode:"",detailCode:"368007",description:"",solution:"",updateTime:1524832269e3},{moduleCode:"",detailCode:"54",description:"",solution:"",updateTime:1524793646e3},{moduleCode:"",detailCode:"1154722",description:"",solution:"",updateTime:1524620807e3},{moduleCode:"",detailCode:"320229",description:"",solution:"",updateTime:1524551682e3},{moduleCode:"",detailCode:"360012",description:"",solution:"",updateTime:1524472094e3},{moduleCode:"",detailCode:"380229",description:"",solution:"",updateTime:1524110755e3},{moduleCode:"",detailCode:"360016",description:"",solution:"",updateTime:1523933518e3},{moduleCode:"",detailCode:"-1003",description:"",solution:"",updateTime:1523584804e3},{moduleCode:"",detailCode:"410026",description:"",solution:"",updateTime:152351743e4},{moduleCode:"",detailCode:"360102",description:"TTS初始化失败",solution:"",updateTime:1523503528e3},{moduleCode:"",detailCode:"360013",description:"设备开启了隐私保护",solution:"",updateTime:1523503507e3},{moduleCode:"",detailCode:"360010",description:"设备正在对讲中",solution:"",updateTime:1523503491e3},{moduleCode:"",detailCode:"360007",description:"TTS关闭了与客户端的连接",solution:"",updateTime:1523503475e3},{moduleCode:"",detailCode:"360006",description:"客户端接收发生错误",solution:"",updateTime:1523503457e3},{moduleCode:"",detailCode:"360005",description:"客户端发送的消息错误",solution:"",updateTime:1523503437e3},{moduleCode:"",detailCode:"360004",description:"TTS内部发生错误",solution:"",updateTime:1523503421e3},{moduleCode:"",detailCode:"360003",description:"TTS的设备端发生错误",solution:"",updateTime:1523503397e3},{moduleCode:"",detailCode:"360002",description:"对讲发起超时",solution:"",updateTime:1523503376e3},{moduleCode:"",detailCode:"360001",description:"客户端请求超时",solution:"",updateTime:1523503357e3},{moduleCode:"",detailCode:"320077",description:"",solution:"",updateTime:1523444274e3},{moduleCode:"",detailCode:"370047",description:"",solution:"",updateTime:152344048e4},{moduleCode:"",detailCode:"100002",description:"",solution:"",updateTime:1523413964e3},{moduleCode:"",detailCode:"-1004",description:"",solution:"",updateTime:1523336653e3},{moduleCode:"",detailCode:"380000",description:"",solution:"",updateTime:1523180856e3},{moduleCode:"",detailCode:"380213",description:"",solution:"",updateTime:1523180623e3},{moduleCode:"",detailCode:"380101",description:"",solution:"",updateTime:1522834231e3},{moduleCode:"",detailCode:"50047",description:"",solution:"",updateTime:1522833243e3},{moduleCode:"",detailCode:"-999",description:"",solution:"",updateTime:1522831034e3},{moduleCode:"",detailCode:"320418",description:"",solution:"",updateTime:1522829072e3},{moduleCode:"",detailCode:"-1009",description:"",solution:"",updateTime:1522746247e3},{moduleCode:"",detailCode:"320209",description:"",solution:"",updateTime:1522744395e3},{moduleCode:"",detailCode:"368006",description:"",solution:"",updateTime:15227443e5},{moduleCode:"",detailCode:"369003",description:"",solution:"",updateTime:1522736355e3},{moduleCode:"",detailCode:"405989",description:"",solution:"",updateTime:1522726571e3},{moduleCode:"",detailCode:"-1012",description:"",solution:"",updateTime:1522726203e3},{moduleCode:"",detailCode:"322016",description:"",solution:"",updateTime:1522722918e3},{moduleCode:"",detailCode:"500103",description:"",solution:"",updateTime:1522655556e3},{moduleCode:"",detailCode:"405999",description:"",solution:"",updateTime:1522654716e3},{moduleCode:"",detailCode:"321032",description:"",solution:"",updateTime:1522647732e3},{moduleCode:"",detailCode:"381101",description:"",solution:"",updateTime:1522392414e3},{moduleCode:"",detailCode:"399999",description:"",solution:"",updateTime:1522379834e3},{moduleCode:"",detailCode:"380103",description:"",solution:"",updateTime:1522312724e3},{moduleCode:"",detailCode:"360014",description:"",solution:"",updateTime:1522304341e3},{moduleCode:"",detailCode:"-1005",description:"",solution:"",updateTime:1522288195e3},{moduleCode:"",detailCode:"100005",description:"",solution:"",updateTime:1522218849e3},{moduleCode:"",detailCode:"100004",description:"",solution:"",updateTime:1522209053e3},{moduleCode:"",detailCode:"106002",description:"",solution:"",updateTime:15222062e5},{moduleCode:"",detailCode:"410030",description:"",solution:"",updateTime:1522162252e3},{moduleCode:"",detailCode:"-1002",description:"",solution:"",updateTime:152215069e4},{moduleCode:"",detailCode:"-1200",description:"",solution:"",updateTime:1522139025e3},{moduleCode:"",detailCode:"-1001",description:"",solution:"",updateTime:1522046436e3},{moduleCode:"",detailCode:"-1011",description:"",solution:"",updateTime:1522045931e3},{moduleCode:"",detailCode:"381102",description:"",solution:"",updateTime:1522044953e3},{moduleCode:"",detailCode:"381103",description:"",solution:"",updateTime:1522044953e3},{moduleCode:"",detailCode:"391205",description:"vtdu解析服务器ip失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"391206",description:"vtdu描述符select失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"391207",description:"vtdu文件描述符不在可读中",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"391208",description:"vtdu网络发生错误getsockopt",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"391209",description:"vtdu描述符select超时",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395000",description:"cas回复信令,发现内存已经释放(和设备之间异常断开)",msg:"播放失败请重试",solution:"检查设备网络;刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395400",description:"私有化协议vtm检测私有化协议中码流类型小于0或者设备序列号为空等非法参数场景返回(app不重试取流)",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395402",description:"回放找不到录像文件",msg:"回放找不到录像文件,本地存储请检查存储卡是否接触良好",solution:"检查是否有存储卡并且接触良好",updateTime:1522034841e3},{moduleCode:"",detailCode:"395403",description:"操作码或信令密钥与设备不匹配",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395404",description:"设备不在线",solution:"检查设备网络;重启设备接入萤石云",msg:"设备不在线,请检查设备网络或重启设备接入萤石云",updateTime:1522034841e3},{moduleCode:"",detailCode:"395405",description:"流媒体向设备发送或接受信令超时/cas响应超时",msg:"播放失败,请检查设备网络或重启设备",solution:"检查设备网络;重启设备",updateTime:1522034841e3},{moduleCode:"",detailCode:"395406",description:"token失效",msg:"播放失败请重试或重启设备",solution:"刷新重试或者重启设备",updateTime:1522034841e3},{moduleCode:"",detailCode:"395407",description:"客户端的URL格式错误",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395409",description:"预览开启隐私保护",msg:"播放失败请关闭隐私遮蔽",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395410",description:"设备达到最大连接数",solution:"请升级设备固件版本",updateTime:1522034841e3},{moduleCode:"",detailCode:"395411",description:"token无权限",msg:"播放失败",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395412",description:"session不存在",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395413",description:"验证token的他异常(不具体) ",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395415",description:"设备通道错",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395416",description:"设备资源受限",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395451",description:"设备不支持的码流类型",msg:"播放失败请重试或切换设备码流",solution:"刷新重试或者切换到高清模式",updateTime:1522034841e3},{moduleCode:"",detailCode:"395452",description:"设备链接流媒体服务器失败",msg:"播放失败,请检查设备网络或重启设备或重新加载",solution:"检查设备网络,重启设备,刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395454",description:"流媒体中关于设备取流会话不存在",msg:"播放失败请重试",solution:"流媒体中关于设备取流会话不存在",updateTime:152222018e4},{moduleCode:"",detailCode:"395455",description:"设备通道未关联",msg:"播放失败,请检查设备通道是否关联",solution:"检查设备通道是否关联",updateTime:152222018e4},{moduleCode:"",detailCode:"395456",description:"设备通道关联设备不在线",msg:"播放失败,请检查设备通道是否上线",solution:"检查设备通道是否上线",updateTime:152222018e4},{moduleCode:"",detailCode:"395457",description:"客户端不支持端到端加密",msg:"播放失败",solution:"客户端不支持端到端加密",updateTime:152222018e4},{moduleCode:"",detailCode:"395458",description:"设备不支持当前并发ECDH密",msg:"客户端不支持端到端加密",solution:"设备不支持当前并发ECDH密",updateTime:152222018e4},{moduleCode:"",detailCode:"395459",description:"VTDU 处理ECDH 加密失败",msg:"播放失败",solution:"VTDU 处理ECDH 加密失败",updateTime:152222018e4},{moduleCode:"",detailCode:"395460",description:"流媒体中关于设备取流会话不存在",msg:"播放失败请重试",solution:"流媒体中关于设备取流会话不存在",updateTime:152222018e4},{moduleCode:"",detailCode:"395492",description:"设备不支持的命令",msg:"操作失败,设备不支持",solution:"",updateTime:152222018e4},{moduleCode:"",detailCode:"395500",description:"服务器处理失败",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395501",description:"流媒体vtdu达到最大负载,请扩容",msg:"播放失败请重试",solution:"服务器负载达到上限,请稍后重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395503",description:"vtm返回分配vtdu失败",msg:"播放失败请重试",solution:"vtdu服务异常,请请稍后重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395504",description:"流媒体vtdu达到最大负载",msg:"播放失败请重试",solution:"服务器负载达到上限,请稍后重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395505",description:"vtm ecdh解密失败",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395506",description:"vtm 返回IPC不支持取流(需要IPC添加NVR后支持)",msg:"播放失败,请绑定NVR使用",solution:"IPC绑定NVR使用",updateTime:1522034841e3},{moduleCode:"",detailCode:"395544",description:"设备返回无视频源",msg:"播放失败,请检查设备接触情况",solution:"设备是否接触良好; 如果一直无法解决,请联系技术支持",updateTime:1522034841e3},{moduleCode:"",detailCode:"395545",description:"视频分享时间已经结束",msg:"视频分享时间已结束",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395546",description:"vtdu返回达到取流并发路数限制",msg:"并发上限,请升级为企业版",solution:"请升级为企业版,放开并发限制",updateTime:1522034841e3},{moduleCode:"",detailCode:"395547",description:"vtdu返回开放平台用户并发限制",msg:"并发上限,请升级为企业版",solution:"请确定开放平台用户预览是否超过用户并发数量限制",updateTime:1522034841e3},{moduleCode:"",detailCode:"395556",description:"ticket校验失败",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395557",description:"回放服务器等待流头超时",msg:"播放失败请重试",solution:"刷新重试,检测设备网络,重启设备",updateTime:1522034841e3},{moduleCode:"",detailCode:"395558",description:"查找录像开始时间错误",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395560",description:"群组分享取流二次验证失败",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395561",description:"分享群组用户被锁住",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395562",description:"群组分享用户权限变更",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395563",description:"认证服务连接失败",msg:"播放失败请重试",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395564",description:"认证超时",msg:"播放失败请重试",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395566",description:"不在分享时间内预览",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395567",description:"分享通道被锁定",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395568",description:"未找到认证类型",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395569",description:"认证返回的参数异常",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395600",description:"分享设备不在分享时间内",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395601",description:"群组分享用户没权限",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395602",description:"群组分享权限变更",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395610",description:"接收流头失败",msg:"播放失败请重试并检查设备网络情况以及设备配置",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395620",description:"心跳超时",msg:"播放失败请重试并检查设备网络情况以及设备配置",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395530",description:"机房故障不可用",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395701",description:"cas信令返回格式错误",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395702",description:"SPGW请求Cas、Status透传超时",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395703",description:"SPGW请求http不通",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396001",description:"客户端参数出错",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396099",description:"客户端默认错误",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396101",description:"不支持的命令",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396102",description:"设备流头发送失败",msg:"播放失败请重试",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396103",description:"cas/设备返回错误1",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396104",description:"cas/设备返回错误-1",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396105",description:"设备返回错误码3",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396106",description:"设备返回错误码4",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396107",description:"设备返回错误码5",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396108",description:"cas信令回应重复",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396109",description:"视频广场取消分享",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396110",description:"设备信令默认错误",msg:"播放失败请重试",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396501",description:"设备数据链路和实际链路不匹配",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396502",description:"设备数据链路重复建立连接",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396503",description:"设备数据链路端口不匹配",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396504",description:"缓存设备数据链路失败(内存块不足)",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396505",description:"设备发送确认头消息重复",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396506",description:"设备数据先于确定头部到达",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396508",description:"设备数据头部长度非法",msg:"播放失败请重试或重启设备",solution:"刷新重试,或者重启设备",updateTime:1522034841e3},{moduleCode:"",detailCode:"396509",description:"索引找不到设备数据管理块",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396510",description:"设备数据链路vtdu内存块协议状态不匹配",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396511",description:"设备数据头部没有streamkey错误",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396512",description:"设备数据头部非法(较笼统)",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396513",description:"设备数据长度过小",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396514",description:"设备老协议推流头部没有streamkey错误",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396515",description:"设备老协议推流数据非法",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396516",description:"设备老协议索引找不到内存管理块",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396517",description:"设备老协议推流数据非法",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396518",description:"设备数据包过大",msg:"播放失败请重试或重启设备",solution:"刷新重试,或者重启设备",updateTime:1522034841e3},{moduleCode:"",detailCode:"396519",description:"设备推流链路网络不稳定",msg:"播放失败,请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396520",description:"设备推流链路网络不稳定(默认)",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396700",description:"异常数据包",msg:"播放失败,设备重启",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396701",description:"回放结束数据包",msg:"回放结束",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"397001",description:"与相应服务连接失败",msg:"播放失败请重试,请检查设备网络情况以及连接情况",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"397002",description:"与相应服务连接失败",msg:"播放失败请重试,请检查设备网络情况以及连接情况",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"397003",description:"与相应服务连接失败",msg:"播放失败请重试,请检查设备网络情况以及连接情况",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"397004",description:"与相应服务连接失败",msg:"播放失败请重试,请检查设备网络情况以及连接情况",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"397005",description:"VTDU连接失败,或VTDU侧断开连接",msg:"播放失败请重试,请检查设备网络情况以及连接情况",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"397006",description:"vtm断开连接(无需 关注)",msg:"播放失败请重试,请检查设备网络情况以及连接情况",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"397007",description:"客户端发送缓冲区满(上行带宽太小)",msg:"播放失败,上行带宽过小请检查设备网络情况",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"399000",description:"无效包,包过大",msg:" 检查设备重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"399001",description:"地址不合法",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"399002",description:"缺少端口",msg:" 播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"170003",description:"refreshToken不存在",solution:"建议用户重新调用logout接口,然后调用openLoginPage接口重新启动登录页面登录",updateTime:1522034841e3},{moduleCode:"",detailCode:"170004",description:"refreshToken已过期",solution:"建议用户重新调用logout接口,然后调用openLoginPage接口重新启动登录页面登录",updateTime:1522034841e3},{moduleCode:"",detailCode:"380011",description:"设备隐私保护中",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380045",description:"设备直连取流连接数量过大",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380047",description:"设备不支持该命令",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380077",description:"设备正在对讲中",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380102",description:"数据接收异常",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380205",description:"设备检测入参异常",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380209",description:"网络连接超时",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380212",description:"设备端网络连接超时",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"101007",description:"手机号未注册",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120503",description:"正在响铃",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390016",description:"vtdu成功响应未携带流头",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101008",description:"手机号码不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120504",description:"室内机正在通话",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390017",description:"无数据流,尚未使用",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101009",description:"用户名与手机不匹配",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120505",description:"设备操作失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390018",description:"信令消息体PB解析失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101010",description:"获取验证码失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120506",description:"非法命令",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390019",description:"信令消息体PB封装失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101011",description:"验证码错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120507",description:"智能锁密码错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390020",description:"申请系统内存资源失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101012",description:"验证码失效",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120508",description:"开关锁失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390021",description:"vtdu地址尚未获取到",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101013",description:"用户不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120509",description:"开关锁超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390022",description:"客户端尚未支持",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101014",description:"密码不正确或者appKey不正确",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120510",description:"智能锁设备繁忙",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390023",description:"获取系统socket资源失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101015",description:"用户被锁住",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120511",description:"远程开锁功能未打开",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390024",description:"上层填充的StreamSsnId不匹配",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101021",description:"验证参数异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120600",description:"临时密码数已达上限",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390025",description:"链接服务器失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101026",description:"邮箱已经被注册",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120601",description:"添加临时密码失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390026",description:"客户端请求未收到服务端应答",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101031",description:"邮箱未注册",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120602",description:"删除临时密码失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390027",description:"链路断开",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101032",description:"邮箱不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120603",description:"该临时密码不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390028",description:"没有取流链接",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101041",description:"获取验证码过于频繁",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120604",description:"指纹锁射频通信失败,请稍后再试",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390029",description:"流成功停止",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101043",description:"手机验证码输入错误超过规定次数",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120605",description:"其他用户正在认证中",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390030",description:"客户端防串流校验失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102000",description:"设备不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120606",description:"验证已启动,请在120s内进行本地验证和调用添加设备接口",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390031",description:"应用层tcp粘包处理缓冲区满",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102001",description:"摄像机不存在",solution:"摄像机未注册到萤石云平台,请仔细检查摄像机的网络配置,确保连接到网络",updateTime:152203484e4},{moduleCode:"",detailCode:"120607",description:"删除用户失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390032",description:"无效状态迁移",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102003",description:"设备不在线",solution:"参考服务中心排查方法",updateTime:152203484e4},{moduleCode:"",detailCode:"120608",description:"用户不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390033",description:"无效客户端状态",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102004",description:"设备异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120609",description:"设备响应超时,门锁通信故障或者电量不足,请重试.",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390034",description:"向vtm取流流媒体信息请求超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102007",description:"设备序列号不正确",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120610",description:"获取临时密码列表失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390035",description:"向代理取流请求超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102009",description:"设备请求响应超时异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"130001",description:"用户不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390036",description:"向代理保活取流请求超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"105000",description:"设备已被自己添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"130002",description:"手机号码已经注册",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390037",description:"向vtdu取流请求超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"105001",description:"设备已被别人添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"130003",description:"手机验证码错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390038",description:"向vtdu保活取流请求超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"105002",description:"设备验证码错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"130004",description:"终端绑定操作失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391001",description:"vtm地址或端口非法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107001",description:"邀请不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"149999",description:"数据异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391002",description:"vtm生成文件描述符失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107002",description:"邀请验证失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"150000",description:"服务器异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391003",description:"vtm设置文件描述符非阻塞失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107003",description:"邀请用户不匹配",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160000",description:"设备不支持云台控制",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391004",description:"vtm设置文件描述符阻塞失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107004",description:"云存储连接失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160001",description:"用户无云台控制权限",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391005",description:"vtm解析服务器ip失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"7005",description:"VTDU主动断开连接",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107005",description:"VTDU主动断开连接",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160002",description:"设备云台旋转达到上限位",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391006",description:"vtm描述符select失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107006",description:"不能邀请自己",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160003",description:"设备云台旋转达到下限位",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391007",description:"vtm文件描述符不在可读中",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107007",description:"重复邀请",solution:"分享和删除分享必须全部由接口形式操作,如果与萤石客户端混用会造成这个问题,解决办法:在萤石客户端清空所有相关分享数据并重新添加设备,再通过接口操作即可",updateTime:152203484e4},{moduleCode:"",detailCode:"160004",description:"设备云台旋转达到左限位",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391008",description:"vtm网络发生错误getsockopt",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110001",description:"参数错误",solution:"参数为空或者格式不对",updateTime:152203484e4},{moduleCode:"",detailCode:"160005",description:"设备云台旋转达到右限位",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391009",description:"vtm描述符select超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110002",description:"accessToken异常或过期",solution:"accessToken有效期为七天,建议在accessToken即将过期或者出现10002错误码的时候重新获取accessToken",updateTime:152203484e4},{moduleCode:"",detailCode:"160006",description:"云台当前操作失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391101",description:"proxy地址或端口非法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110004",description:"用户不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160007",description:"预置点个数超过最大值",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391102",description:"proxy生成文件描述符失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110005",description:"appKey异常",solution:"确认appKey状态,不通过或者冻结状态会返回该错误码",updateTime:152203484e4},{moduleCode:"",detailCode:"160009",description:"正在调用预置点",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391103",description:"proxy设置文件描述符非阻塞失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110006",description:"ip受限",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160010",description:"该预置点已经是当前位置",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391104",description:"proxy设置文件描述符阻塞失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160011",description:"预置点不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391105",description:"proxy解析服务器ip失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110008",description:"签名错误",solution:"①获取签名方式详见apidemo及[旧]API文档 ②注意编码格式为UTF-8",updateTime:152203484e4},{moduleCode:"",detailCode:"160013",description:"设备版本已是最新",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391106",description:"proxy描述符select失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110009",description:"签名参数错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160014",description:"设备正在升级",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391107",description:"proxy文件描述符不在可读中",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110010",description:"签名超时",solution:"请调用同步服务器时间接口进行校时",updateTime:152203484e4},{moduleCode:"",detailCode:"160015",description:"设备正在重启",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391108",description:"proxy网络发生错误getsockopt",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110011",description:"未开通萤石云服务",solution:"参照绑定流程",updateTime:152203484e4},{moduleCode:"",detailCode:"160016",description:"加密未开启,无须关闭",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391109",description:"proxy描述符select超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110012",description:"第三方账户与萤石账号已经绑定",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160017",description:"设备抓图失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391201",description:"vtdu地址或端口非法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110013",description:"应用没有权限调用此接口",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160018",description:"设备升级失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391202",description:"vtdu生成文件描述符失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110014",description:"APPKEY下对应的第三方userId和phone未绑定",solution:"获取AccessToken时所用appKey与SDK所用appKey不一致",updateTime:152203484e4},{moduleCode:"",detailCode:"160019",description:"加密已开启",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391203",description:"vtdu设置文件描述符非阻塞失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110017",description:"appKey不存在",solution:"请填写在官网申请的应用秘钥",updateTime:152203484e4},{moduleCode:"",detailCode:"160020",description:"不支持该命令",solution:"请确认设备是否支持该命令",updateTime:152203484e4},{moduleCode:"",detailCode:"391204",description:"vtdu设置文件描述符阻塞失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110018",description:"AccessToken与Appkey不匹配",solution:"请检查获取accessToken对应的appKey和SDK中设置的appKey是否一致",updateTime:152203484e4},{moduleCode:"",detailCode:"160023",description:"订阅操作失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110019",description:"密码错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160024",description:"取消订阅操作失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110020",description:"请求方法为空",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160025",description:"客流统计配置失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110021",description:"ticket校验失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160026",description:"设备处于隐私遮蔽状态",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110022",description:"透传目的地非法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160027",description:"设备正在镜像操作",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110024",description:"无透传权限",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160028",description:"设备正在键控动作",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110025",description:"appKey被禁止使用通明通道",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160029",description:"设备处于语音对讲状态",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160030",description:"卡密输入错误次数过多,24小时后再输入",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160031",description:"卡密信息不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160032",description:"卡密状态不对或已过期",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160033",description:"卡密非卖品,只能开通对应的绑定设备",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110030",description:"appKey和appSecret不匹配",solution:"请检查appKey和appSecret是否对应",updateTime:152203484e4},{moduleCode:"",detailCode:"160035",description:"购买云存储服务失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110031",description:"子账户或萤石用户没有权限",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160040",description:"添加的设备不在同一局域网",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110032",description:"子账户不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160041",description:"添加的设备被其他设备关联或响应超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110033",description:"子账户未设置授权策略",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160042",description:"添加的设备密码错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110034",description:"子账户已存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160043",description:"添加的设备超出最大数量",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110035",description:"获取子账户AccessToken异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160044",description:"添加的设备网络不可达超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110036",description:"子账户被禁用",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160045",description:"添加的设备的IP和其他通道的IP冲突",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110051",description:"无权限进行抓图",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160046",description:"添加的设备的IP和本设备的IP冲突",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160047",description:"码流类型不支持",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120002",description:"设备不存在",solution:"①设备没有注册到萤石云平台,请检查下设备网络参数,确保能正常连接网络②设备序列号不存在",updateTime:152203484e4},{moduleCode:"",detailCode:"160048",description:"带宽超出系统接入带宽",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120003",description:"参数异常,SDK版本过低",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160049",description:"IP或者端口不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120004",description:"参数异常,SDK版本过低",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160050",description:"添加的设备版本不支持需要升级才能接入",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120005",description:"安全认证失败,需进行SDK安全认证",solution:"已去掉安全验证",updateTime:152203484e4},{moduleCode:"",detailCode:"160051",description:"添加的设备不支持接入",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120006",description:"网络异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160052",description:"添加的设备通道号出错",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120007",description:"设备不在线",solution:"参考服务中心排查方法",updateTime:152203484e4},{moduleCode:"",detailCode:"160053",description:"添加的设备分辨率不支持",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120008",description:"设备响应超时",solution:"设备响应超时,请检测设备网络或重试",updateTime:152203484e4},{moduleCode:"",detailCode:"160054",description:"添加的设备账号被锁定",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120009",description:"子账号不能添加设备",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160055",description:"添加的设备取码流出错",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120010",description:"设备验证码错误",solution:"验证码在设备标签上,六位大写字母,注意大小写",updateTime:152203484e4},{moduleCode:"",detailCode:"160056",description:"删除设备失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120012",description:"设备添加失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160057",description:"删除的设备未关联",solution:"检查IPC与NVR是否有关联关系",updateTime:152203484e4},{moduleCode:"",detailCode:"120013",description:"设备已被别人添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160060",description:"地址未绑定",solution:"请前往官网设置直播",updateTime:152203484e4},{moduleCode:"",detailCode:"120014",description:"设备序列号不正确",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160061",description:"账户流量已超出或未购买,限制开通",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120015",description:"设备不支持该功能",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160062",description:"该通道直播已开通",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120016",description:"当前设备正在格式化",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160063",description:"直播未使用或直播已关闭",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120017",description:"设备已被自己添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160070",description:"设备不能转移给自己",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120018",description:"该用户不拥有该设备",solution:"确认设备是否属于用户",updateTime:152203484e4},{moduleCode:"",detailCode:"160071",description:"设备不能转移,设备与其他设备存在关联关系",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400001",description:"参数为空",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120019",description:"设备不支持云存储服务",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160072",description:"设备不能转移,通道被分享给其他用户或者分享到视频广场",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400002",description:"参数错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120020",description:"设备在线,被自己添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160073",description:"云存储转移失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400025",description:"设备不支持对讲",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120021",description:"设备在线,但是未被用户添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160080",description:"当前正在声源定位",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400029",description:"没有初始化或资源被释放",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120022",description:"设备在线,但是已经被别的用户添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160081",description:"当前正在轨迹巡航",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400030",description:"json解析异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120023",description:"设备不在线,未被用户添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160082",description:"设备正在响应本次声源定位",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400031",description:"网络异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120024",description:"设备不在线,但是已经被别的用户添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160083",description:"当前正在开启隐私遮蔽",solution:"设备正在操作隐私遮蔽,无法进行当前操作",updateTime:152203484e4},{moduleCode:"",detailCode:"400032",description:"设备信息异常为空",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120025",description:"重复申请分享",solution:"确认设备是否由添加过该设备且申请过分享的账户下是否还存在分享记录",updateTime:152203484e4},{moduleCode:"",detailCode:"160084",description:"当前正在关闭隐私遮蔽",solution:"设备正在操作隐私遮蔽,无法进行当前操作",updateTime:152203484e4},{moduleCode:"",detailCode:"400034",description:"取流超时",solution:"一般是由于网络状况不好导致,可以尝试下让用户重新播放",updateTime:152203484e4},{moduleCode:"",detailCode:"120026",description:"视频广场不存在该视频",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"380290",description:" 连接CAS服务器失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400035",description:"设备已加密,需要输入验证码",solution:"收到此错误码,需要让用户输入验证码后,调用EZPlayer.setPlayKey传入验证码,并重新调用播放函数",updateTime:152203484e4},{moduleCode:"",detailCode:"120027",description:"视频转码失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361001",description:"对讲服务端排队超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400036",description:"播放验证码错误",solution:"收到此错误码,需要让用户输入验证码后,调用EZPlayer.setPlayKey传入验证码,并重新调用播放函数",updateTime:152203484e4},{moduleCode:"",detailCode:"120028",description:"设备固件升级包不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361002",description:"对讲服务端处理超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400037",description:"surfacehold错误",solution:"请检查是否是播放之前销毁了surface,收到此错误也可以重新建立surface后播放",updateTime:152203484e4},{moduleCode:"",detailCode:"120029",description:"设备不在线,但是已经被自己添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361003",description:"设备链接对讲服务器超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400100",description:"未知错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120030",description:"该用户不拥有该视频广场视频",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361004",description:"服务器内部错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400200",description:"player sdk出错,这种错误一般开发者也是无法解决,不具体分类传出,传一个统一的inner错误码出去",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120031",description:"开启终端绑定,硬件特征码验证失败",solution:"请在萤石客户端关闭终端绑定,参考此步骤",updateTime:152203484e4},{moduleCode:"",detailCode:"361005",description:"解析消息失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400300",description:"内存溢出",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120032",description:"该用户下通道不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361006",description:"请求重定向--需要向其他服务申请对讲",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400901",description:"设备不在线,可以提示用户",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120033",description:"无法收藏自己分享的视频",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361007",description:"请求url非法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400902",description:"accesstoken异常或失效,需要重新获取accesstoken,并传入到sdk",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120034",description:"该用户下无设备",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361008",description:"token失效",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400903",description:"当前账号开启了终端绑定,只允许指定设备登录操作,提示用户登录i.ys7.com解除终端绑定",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120090",description:"用户反馈失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361009",description:"设备验证码或者通信秘钥不匹配",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400904",description:"设备正在对讲中",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120095",description:"APP包下载失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361010",description:"设备已经在对讲",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400905",description:"设备开启了隐私保护,不允许预览、对讲等",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120096",description:"APP包信息删除失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361011",description:"设备10s响应超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120101",description:"视频不支持分享给本人",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361012",description:"设备不在线",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320002",description:"参数无效",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120102",description:"无相应邀请信息",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361013",description:"设备开启隐私保护拒绝对讲",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320003",description:"暂不支持此操作",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120103",description:"好友已存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361014",description:"token无权限",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320004",description:"内存溢出",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120104",description:"好友不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361015",description:"设备返回session不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320005",description:"创建CAS session失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120105",description:"好友状态错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361016",description:"验证token其他异常错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320006",description:"创建cloud session失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120106",description:"对应群组不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361017",description:"服务端监听设备建立端口超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320007",description:"token失效",solution:"重新设置token后再重试",updateTime:152203484e4},{moduleCode:"",detailCode:"120107",description:"不能添加自己为好友",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361018",description:"设备链路异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320008",description:"token池里面没有token,请传入token",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120108",description:"当前用户和所添加用户不是好友关系",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361019",description:"对讲服务端不支持的信令消息",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320009",description:"传入新的INIT_PARAM并reset(保留,目前未用)",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120109",description:"对应分享不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361020",description:"对讲服务端解析对讲请求未携带会话描述能力集",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320010",description:"请重试",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120110",description:"好友群组不属于当前用户",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361021",description:"对讲服务端优先能力集结果为空",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320011",description:"500毫秒后请重试",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120111",description:"好友不是等待验证状态",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361022",description:"cas链路异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320012",description:"token池已满",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120112",description:"添加应用下的用户为好友失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361023",description:"对讲服务端分配对讲会话资源失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320013",description:"P2P client超过限制",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120201",description:"操作报警信息失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361024",description:"对讲服务端解析信令消息失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320014",description:"sdk未初始化",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120202",description:"操作留言信息失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390001",description:"通用错误返回",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320015",description:"超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120301",description:"根据UUID查询报警消息不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390002",description:"入参为空指针",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320016",description:"正在打洞中",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120302",description:"根据UUID查询图片不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390003",description:"入参值无效",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320017",description:"没有视频文件头(播放器层面产生和处理此错误)",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120303",description:"根据FID查询图片不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390004",description:"信令消息解析非法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320018",description:"解码错误/超时(播放器层面产生和处理此错误)",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120305",description:"设备ip解析错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390005",description:"内存资源不足",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320019",description:"取消(保留,用户不用处理)",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120401",description:"用户云空间信息不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390006",description:"协议格式不对或者消息体长度超过STREAM_MAX_MSGBODY_LEN",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320020",description:"播放过程中预连接被用户清除预操作信息",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120402",description:"云空间操作失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390007",description:"设备序列号长度不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320021",description:"流加密码不对",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120403",description:"用户目录不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390008",description:"取流url长度不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320022",description:"未传入播放窗口",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120404",description:"要操作的目标目录不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390009",description:"解析vtm返回vtdu地址不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"100200",description:"操作成功",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120405",description:"要删除的文件信息不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390010",description:"解析vtm返回级联vtdu地址不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101001",description:"用户名不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120406",description:"已开通云存储",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390011",description:"解析vtm返回会话标识长度不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101002",description:"用户名已被占用",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120407",description:"开通记录失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390012",description:"vtdu返回流头长度不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101003",description:"密码不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120500",description:"获取数据错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390013",description:"vtdu会话长度非法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101004",description:"密码为同一字符",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120501",description:"开锁失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390014",description:"回调函数未注册",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101006",description:"手机号码已经被注册",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120502",description:"室内机未收到呼叫",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390015",description:"vtdu成功响应未携带会话标识",solution:"",updateTime:152203484e4}],E2="200",A2="操作成功!",X2={data:C2,code:E2,msg:A2},b2=function(){function R(N,m){i(this,R),this.coreX=N,this.coreY=m,console.log("ErrorCode",X2)}return a(R,[{key:"toString",value:function(){return"".concat(this.coreX,"-").concat(this.coreY)}},{key:"matchErrorInfo",value:function(m){return X2.data.find(function(g){return g.detailCode.substr(-4)==m})}}]),R}(),J={color:"red",backgroundColor:"red",activeColor:"red",btnList:[{btnKey:"ade5d065a113432e8091a1c5bc819c57-934f270c08b14e928bf0c2ae8e1a937d-header-0",iconId:"deviceID",part:"left",defaultActive:1,isrender:1,themeId:"934f270c08b14e928bf0c2ae8e1a937d"},{btnKey:"ade5d065a113432e8091a1c5bc819c57-934f270c08b14e928bf0c2ae8e1a937d-header-1",iconId:"deviceName",part:"left",defaultActive:1,isrender:1,themeId:"934f270c08b14e928bf0c2ae8e1a937d"}]},p2={color:"blue",backgroundColor:"blue",activeColor:"blue",btnList:[{btnKey:"ade5d065a113432e8091a1c5bc819c57-934f270c08b14e928bf0c2ae8e1a937d-footer-0",iconId:"play",part:"left",defaultActive:0,isrender:0,themeId:"934f270c08b14e928bf0c2ae8e1a937d"}]},N2={header:J,footer:p2},e3=function R(N){this.jsPlugin=N;var m={isMouseDown:!1,isOver:!1,mousePosition:null,oldTime:null,nowTime:null,moved:null,hoverTime:"2018-12-07 12:00:00",hoverLeft:0,timeTipShow:!1,randomNum:123,timeWidthTbls:[60,1800,3600,86400],timeUnits:["范围: 1分钟; 单位: 秒","范围: 30分钟; 单位: 分钟","范围: 1小时; 单位: 分钟","范围: 1天; 单位: 小时","范围: 3天; 单位: 小时"],drawPen:null,timeSection:[],canvasWidth:null,canvasHeight:null,timeTips:null},g=this;Object.keys(m).forEach(function(S){g[S]=m[S]}),this.options={width:this.canvasWidth,height:48,time:new Date().getTime(),timeSection:[],timeWidth:0},R.prototype.subTime=function(S){return S<10?"0"+S:S},R.prototype.tranTime=function(S){var x=S;if(S){var E=new Date(S);x=E.getFullYear()+"/"+(E.getMonth()+1)+"/"+E.getDate()+" "+this.subTime(E.getHours())+":"+this.subTime(E.getMinutes())+":"+this.subTime(E.getSeconds())}return x},R.prototype.init=function(S){S.width&&document.getElementById(S.id).setAttribute("width",parseInt(S.width,10)+"px");var x=this,E=this.options;x.randomNum=(Math.random()+"").split(".").join(""),x.timeWidthTblIndex=E.timeWidth;var L=document.querySelector("#".concat(this.jsPlugin.id,"-canvas"));x.drawPen=L.getContext("2d"),x.nowTime=E.time||Date.now(),x.timeSection=E.timeSection||[],x.canvasWidth=L.offsetWidth,x.canvasHeight=L.offsetHeight,x.updata(),document.getElementById("".concat(this.jsPlugin.id,"-canvas")).addEventListener("mousemove",function(r2){x.options.readOnly||x.mousemove(r2)}),document.getElementById("".concat(this.jsPlugin.id,"-canvas")).addEventListener("mouseover",function(r2){x.options.readOnly||x.mouseover(r2)}),document.getElementById("".concat(this.jsPlugin.id,"-canvas")).addEventListener("mouseleave",function(r2){x.options.readOnly||x.mouseleave(r2)}),document.getElementById("".concat(this.jsPlugin.id,"-canvas")).addEventListener("mousedown",function(r2){x.options.readOnly||x.mousedown(r2)}),document.getElementById("".concat(this.jsPlugin.id,"-canvas")).addEventListener("mouseup",function(r2){if(!x.options.readOnly){var l2=S.onChange;x.mouseUpFn(r2,l2)}})},R.prototype.setWidth=function(S){var x=this,E=this;S.width&&(document.getElementById(this.jsPlugin.id).style.width=S.width,document.getElementById("".concat(this.jsPlugin.id,"-canvas")).style.width=S.width,document.getElementById("".concat(this.jsPlugin.id,"-canvas-container")).style.width=S.width,E.canvasWidth=S.width,setTimeout(function(){x.updata({time:new Date})},500))},R.prototype.mousemove=function(S){if(this.isMouseDown&&this.isOver){var x=this.mousePosition-S.pageX;if(x===0)return;var E=0;switch(this.timeWidth){case 60:E=1/10;break;case 1800:E=1/20*60;break;case 3600:E=1/20*60;break;case 86400:E=1/30*60*60;break}var L=new Date(this.oldTime).getTime()+x*E*1e3;this.updata({time:L}),this.moved=!0}else{var r2=parseInt(document.getElementById("".concat(this.jsPlugin.id,"-canvas-container")).offsetLeft,10);this.mousePosition=S.pageX-r2,this.updata()}},R.prototype.mousedown=function(S){this.isMouseDown=!0,this.mousePosition=S.pageX,this.oldTime=this.nowTime},R.prototype.mouseover=function(S){this.isOver=!0},R.prototype.mouseleave=function(S){this.isOver=!1,this.isMouseDown=!1,this.updata()},R.prototype.changeSize=function(S){console.log("changeSize",S),this.options.timeWidth=S,this.updata({timeWidth:S})},R.prototype.mouseUpFn=function(S,x){if(this.isMouseDown&&(this.isMouseDown=!1,this.moved)){this.moved=!1;var E=this.subTime(new Date(this.nowTime).getHours())+":"+this.subTime(new Date(this.nowTime).getMinutes())+":"+this.subTime(new Date(this.nowTime).getSeconds()),L=new Date(this.oldTime).getFullYear()+"/"+(new Date(this.oldTime).getMonth()+1)+"/"+new Date(this.oldTime).getDate();this.nowTime=new Date("".concat(L," ").concat(E)),this.updata({time:this.nowTime}),this.oldTime=this.nowTime,console.log("nowTime",new Date(this.nowTime),"".concat(L," ").concat(E)),x(this.nowTime)}},R.prototype.readOnly=function(S){console.log("更改为只读"),this.options.readOnly=!0,document.getElementById("".concat(this.jsPlugin.id,"-canvas")).style.cursor="not-allowed"},R.prototype.unReadOnly=function(S){console.log("更改为只读"),this.options.readOnly=!1,document.getElementById("".concat(this.jsPlugin.id,"-canvas")).style.cursor="pointer"},R.prototype.run=function(S){this.isMouseDown||this.updata(S)},R.prototype.getTime=function(S){console.log("this",this),console.log("当前时间",new Date(this.nowTime))},R.prototype.updata=function(S){var x=this;S=S||{},x.nowTime=S.time||x.nowTime,x.timeSection=S.timeSection||x.timeSection,x.timeWidthTblIndex=S.timeWidth||x.timeWidthTblIndex,x.timeWidth=x.timeWidthTbls[S.timeWidth||x.timeWidthTblIndex],x.timeUnit=x.timeUnits[S.timeWidth||x.timeWidthTblIndex],S.timeWidth===0&&(x.timeWidthTblIndex=0,x.timeWidth=x.timeWidthTbls[0],x.timeUnit=x.timeUnits[0]),x.drawPen.fillStyle="#000000",x.drawPen.fillRect(0,0,x.canvasWidth,x.canvasHeight),x.drawScale(),x.drawRecord(),x.drawOtherMsg(),document.getElementById("".concat(this.jsPlugin.id,"-canvas-container")).style.width=x.options.width+"px",document.getElementById("".concat(this.jsPlugin.id,"-canvas")).style.width=x.options.width+"px",document.getElementById("".concat(this.jsPlugin.id,"-canvas-container")).style.height=x.options.height+"px",document.getElementById("".concat(this.jsPlugin.id,"-canvas")).style.height=x.options.height+"px"},R.prototype.drawSolidLine=function(S,x,E,L,r2,l2){this.drawPen.save(),this.drawPen.strokeStyle=l2,this.drawPen.lineWidth=r2,this.drawPen.beginPath(),this.drawPen.moveTo(S,x),this.drawPen.lineTo(E,L),this.drawPen.stroke(),this.drawPen.restore()},R.prototype.drawString=function(S,x,E,L,r2){this.drawPen.font="12px serif",this.drawPen.fillStyle="#ffffff",this.drawPen.textAlign=L||"left",this.drawPen.fillText(S,x,E+10)},R.prototype.drawScale=function(){var S=this,x="rgba(255,255,255)",E=new Date(S.nowTime),L=E.getFullYear(),r2=E.getSeconds(),l2=E.getMinutes(),s2=E.getHours(),Q=E.getDate(),X=0;switch(S.timeWidth){case 60:{var D2=parseInt(S.canvasWidth/10);E.setSeconds(E.getSeconds()-parseInt(D2/2,10)),Q=E.getDate(),s2=E.getHours(),l2=E.getMinutes(),r2=E.getSeconds();for(var g2=0;g2x.canvasWidth&&(g2=x.canvasWidth),g2<=0&&(g2=0),g2}},R.prototype.drawOtherMsg=function(){this.drawSolidLine(this.canvasWidth/2,0,this.canvasWidth/2,this.canvasHeight,2,"#1890FF"),this.drawPen.shadowBlur=0,this.isOver&&!this.isMouseDown?(this.mouseTime=this.mousePosition/this.canvasWidth*this.timeWidth*1e3+this.nowTime-this.timeWidth/2*1e3,this.mouseString=this.tranTime(this.mouseTime),this.hoverTime=this.mouseString,this.hoverLeft=this.mousePosition-60,this.timeTipShow=!0):this.timeTipShow=!1}},h3=function(){function R(N){if(i(this,R),this.jSPlugin=N,!document.getElementById("".concat(this.jSPlugin.id,"-audioControls")))return!1;this.currentTimeWidth=0,this.date=new Date,this.datepickerVisible=!1,this.seekTimer=null,this.disabled=!1,this.seekFrequency=2e3,this.jSPlugin.params&&this.jSPlugin.params.seekFrequency&&(this.seekFrequency=this.jSPlugin.params.seekFrequency),this.recInit()}return a(R,[{key:"recInit",value:function(){var m=this;this.currentTimeWidth=0;var g=parseInt(getComputedStyle(document.getElementById(this.jSPlugin.id)).width,10)-100,S=document.createElement("div");S.style="display:inline-block;height:48px;",S.id=this.jSPlugin.id+"-canvas-container";var x=document.createElement("canvas");x.id=this.jSPlugin.id+"-canvas",x.className="time-line-body",x.height="48",x.width=g,x.style="display:inline-block;",x.innerHTML="该浏览器不支持canvas",S.appendChild(x),f(S,document.getElementById("".concat(this.jSPlugin.id,"-audioControls")));var E=document.createElement("div");E.className="timeline-controls",E.style="display:flex;width:100px;height:48px;text-align:center;line-height: 48px;vertical-align: top;background: #000000;";var L=`
+`)+q3+`return __p
+}`;var m0=Pg(function(){return G0(x2,I1+"return "+q3).apply(m,$2)});if(m0.source=q3,rc(m0))throw m0;return m0}function AN(c){return j0(c).toLowerCase()}function CN(c){return j0(c).toUpperCase()}function MN(c,p,T){if(c=j0(c),c&&(T||p===m))return Op(c);if(!c||!(p=Gn(p)))return c;var F=O6(c),e2=O6(p),x2=Bp(F,e2),$2=zp(F,e2)+1;return A5(F,x2,$2).join("")}function EN(c,p,T){if(c=j0(c),c&&(T||p===m))return c.slice(0,Vp(c)+1);if(!c||!(p=Gn(p)))return c;var F=O6(c),e2=zp(F,O6(p))+1;return A5(F,0,e2).join("")}function PN(c,p,T){if(c=j0(c),c&&(T||p===m))return c.replace(un,"");if(!c||!(p=Gn(p)))return c;var F=O6(c),e2=Bp(F,O6(p));return A5(F,e2).join("")}function RN(c,p){var T=d3,F=b3;if(Ne(p)){var e2="separator"in p?p.separator:e2;T="length"in p?p0(p.length):T,F="omission"in p?Gn(p.omission):F}c=j0(c);var x2=c.length;if(S8(c)){var $2=O6(c);x2=$2.length}if(T>=x2)return c;var r3=T-b8(F);if(r3<1)return F;var p3=$2?A5($2,0,r3).join(""):c.slice(0,r3);if(e2===m)return p3+F;if($2&&(r3+=p3.length-r3),ac(e2)){if(c.slice(r3).search(e2)){var z3,G3=p3;for(e2.global||(e2=bu(e2.source,j0(ha.exec(e2))+"g")),e2.lastIndex=0;z3=e2.exec(G3);)var q3=z3.index;p3=p3.slice(0,q3===m?r3:q3)}}else if(c.indexOf(Gn(e2),r3)!=r3){var _1=p3.lastIndexOf(e2);_1>-1&&(p3=p3.slice(0,_1))}return p3+F}function NN(c){return c=j0(c),c&&f0.test(c)?c.replace(ln,sC):c}var LN=E8(function(c,p,T){return c+(T?" ":"")+p.toUpperCase()}),lc=Rm("toUpperCase");function Eg(c,p,T){return c=j0(c),p=T?m:p,p===m?tC(c)?uC(c):$A(c):c.match(p)||[]}var Pg=S0(function(c,p){try{return Bn(c,m,p)}catch(T){return rc(T)?T:new n0(T)}}),IN=ki(function(c,p){return u6(p,function(T){T=ii(T),Li(c,T,nc(c[T],c))}),c});function kN(c){var p=c==null?0:c.length,T=Y1();return c=p?Pe(c,function(F){if(typeof F[1]!="function")throw new c6(P);return[T(F[0]),F[1]]}):[],S0(function(F){for(var e2=-1;++e2L1)return[];var T=B2,F=Ot(c,B2);p=Y1(p),c-=B2;for(var e2=yu(F,p);++T0||p<0)?new C0(T):(c<0?T=T.takeRight(-c):c&&(T=T.drop(c)),p!==m&&(p=p0(p),T=p<0?T.dropRight(-p):T.take(p-c)),T)},C0.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},C0.prototype.toArray=function(){return this.take(B2)},ti(C0.prototype,function(c,p){var T=/^(?:filter|find|map|reject)|While$/.test(p),F=/^(?:head|last)$/.test(p),e2=m2[F?"take"+(p=="last"?"Right":""):p],x2=F||/^find/.test(p);e2&&(m2.prototype[p]=function(){var $2=this.__wrapped__,r3=F?[1]:arguments,p3=$2 instanceof C0,z3=r3[0],G3=p3||s0($2),q3=function(x0){var P0=e2.apply(m2,_5([x0],r3));return F&&_1?P0[0]:P0};G3&&T&&typeof z3=="function"&&z3.length!=1&&(p3=G3=!1);var _1=this.__chain__,I1=!!this.__actions__.length,q1=x2&&!_1,m0=p3&&!I1;if(!x2&&G3){$2=m0?$2:new C0(this);var K1=c.apply($2,r3);return K1.__actions__.push({func:Xs,args:[q3],thisArg:m}),new d6(K1,_1)}return q1&&m0?c.apply(this,r3):(K1=this.thru(q3),q1?F?K1.value()[0]:K1.value():K1)})}),u6(["pop","push","shift","sort","splice","unshift"],function(c){var p=Ts[c],T=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",F=/^(?:pop|shift)$/.test(c);m2.prototype[c]=function(){var e2=arguments;if(F&&!this.__chain__){var x2=this.value();return p.apply(s0(x2)?x2:[],e2)}return this[T](function($2){return p.apply(s0($2)?$2:[],e2)})}}),ti(C0.prototype,function(c,p){var T=m2[p];if(T){var F=T.name+"";ee.call(A8,F)||(A8[F]=[]),A8[F].push({name:p,func:T})}}),A8[Hs(m,Y).name]=[{name:"wrapper",func:m}],C0.prototype.clone=NC,C0.prototype.reverse=LC,C0.prototype.value=IC,m2.prototype.at=lP,m2.prototype.chain=uP,m2.prototype.commit=cP,m2.prototype.next=dP,m2.prototype.plant=fP,m2.prototype.reverse=pP,m2.prototype.toJSON=m2.prototype.valueOf=m2.prototype.value=mP,m2.prototype.first=m2.prototype.head,va&&(m2.prototype[va]=hP),m2},T8=cC();b9?((b9.exports=T8)._=T8,cu._=T8):Ct._=T8}).call(c2)});function Z(V,x){var m=x.parentNode;m.lastChild==x?m.appendChild(V):m.insertBefore(V,x.nextSibling)}var G2=function(){function V(x,m){i(this,V),this.id=m,this.jSPlugin=x,this.state={play:!1,loading:!1,text:""},this.loadingSetText=this.loadingSetText}return a(V,[{key:"toString",value:function(){return"".concat(this.coreX,"-").concat(this.coreY)}},{key:"setPlayStatus",value:function(m){this.state=Object.assign(this.state,m)}},{key:"loadingStart",value:function(m){var g=document.createElement("style");document.getElementsByTagName("head")[0].appendChild(g),g.innerHTML="@keyframes antRotate {to {transform: rotate(400deg);transform-origin:50% 50%;}} .loading {display: inline-block;z-index: 1000;-webkit-animation: antRotate 1s infinite linear;animation: antRotate 1s infinite linear;}";var S=m,A=document.getElementById(S),P=A.offsetWidth,N=A.offsetHeight,r2=0,l2=A.offsetLeft;document.getElementById("".concat(m,"-loading-id-0"))&&document.getElementById("".concat(m,"-loading-id-0")).parentNode.removeChild(document.getElementById("".concat(m,"-loading-id-0")));var s2=document.createElement("div");s2.setAttribute("id","".concat(m,"-loading-id-0"));var g2="position:absolute;outline:none;pointer-events:none;";console.log("this.jSPlugin",this.jSPlugin),g2+="width: 100%;background-size: cover; background-repeat:no-repeat;",g2+="height: 100%;",g2+="top:"+r2+";",g2+="left:"+l2+"px;",s2.setAttribute("style",g2),s2.style.height=N,s2.setAttribute("class","loading-container"),Z(s2,A);var Q=1,X=document.createElement("div"),D2=document.createElement("div");X.setAttribute("class","loading-item"),X.setAttribute("id","".concat(m,"-loading-item-0"));var g2="display:inline-flex;pointer-events:none;flex-direction:column;justify-content:center;align-items: center;width:100%;height:"+N+"px;outline:none;vertical-align: top;position:absolute;";g2+="left:"+M(N,P,Q,0).left+"px;",g2+="top:"+M(N,P,Q,0).top+"px;",X.setAttribute("style",g2);function M(O,C,I,G){var M2=parseInt(G/I,10)*(O/I),R2=G%I*(C/I);return{top:M2,left:R2}}var L=document.createElement("div");D2.innerHTML="",D2.style.color="#fff",L.setAttribute("class","loading"),L.setAttribute("id","loading-icon");var Y='';L.innerHTML=Y,X.appendChild(L),X.appendChild(D2),s2.appendChild(X)}},{key:"loadingStop",value:function(m){var g=document.getElementById("".concat(m,"-loading-item-0"));g&&g.removeChild(document.getElementById("loading-icon"))}},{key:"loadingSetText",value:function(m){var g=this;if(this.loadingClearText(),document.getElementById("".concat(this.id,"-loading-item-0"))){var S=document.getElementById("".concat(this.id,"-loading-item-0")).childNodes[1];if(!S){var A=document.getElementById("".concat(this.id,"-loading-item-0"));A.style.height="100%",S=document.createElement("div"),S.innerHTML=m.text,A.appendChild(S)}S.innerHTML=m.text,S.style.fontSize="14px",S.style.color=m.color||"#FFFFFF",this.state.text=m.text,m.delayClear&&setTimeout(function(){g.loadingClearText()},parseInt(m.delayClear))}}},{key:"loadingClearText",value:function(){if(document.getElementById("".concat(this.id,"-loading-item-0"))){var m=document.getElementById("".concat(this.id,"-loading-item-0")).childNodes;m.length>1?m[1].parentNode.removeChild(m[1]):m[0]&&m[0].parentNode.removeChild(m[0])}}},{key:"loadingClear",value:function(){if(document.getElementById("".concat(this.id,"-loading-item-0"))){for(var m=document.getElementById("".concat(this.id,"-loading-item-0")).childNodes,g=m.length-1;g>=0;g--)m[g].parentNode.removeChild(m[g]);document.getElementById("".concat(this.id,"-loading-id-0"))&&(document.getElementById("".concat(this.id,"-loading-id-0")).style.background="none"),document.getElementById("loading-icon")&&document.getElementById("loading-icon").parentNode.removeChild(document.getElementById("loading-icon"))}}},{key:"loadingEnd",value:function(){var m=document.getElementById("".concat(this.id,"-loading-item-0"));if(m){m.parentNode.removeChild(m);var g=document.getElementById("".concat(this.id,"-loading-id-0"));g&&g.children.length===0&&g.parentNode.removeChild(g)}document.getElementById("".concat(this.id,"-loading-item-0")).style.background="none"}}]),V}(),q2=function(){function V(x,m){i(this,V),this.id=m,this.jSPlugin=x,this.timer=null,this.state={play:!1,loading:!1}}return a(V,[{key:"default",value:function(m){var g=this,S="msgId";document.getElementById("".concat(this.id,"-").concat(S))&&document.getElementById("".concat(this.id,"-wrap")).removeChild(document.getElementById("".concat(this.id,"-").concat(S)));var A=document.createElement("div");A.id="".concat(this.id,"-").concat(S),A.style="position: absolute;top: 50%;left:calc(50% - ".concat(m.length*14/2,"px);padding: 4px 16px;background: #00000080;color: #FFFFFF;font-size: 14px"),A.innerHTML=m,document.getElementById("".concat(this.id,"-wrap")).appendChild(A),this.timer&&clearTimeout(this.timer),this.timer=setTimeout(function(){document.getElementById("".concat(g.id,"-wrap")).removeChild(document.getElementById("".concat(g.id,"-").concat(S)))},2e3)}}]),V}(),C2=[{moduleCode:"",detailCode:"405984",description:"",solution:"",updateTime:1559564188e3},{moduleCode:"",detailCode:"10035",description:"获取子账户AccessToken异常,子账户不存在或子账户不属于该开发者",solution:"",updateTime:1559551958e3},{moduleCode:"",detailCode:"1052674",description:"获取本地录像失败",solution:"",updateTime:1558579653e3},{moduleCode:"",detailCode:"395547",description:"",solution:"",updateTime:1557367296e3},{moduleCode:"",detailCode:"12",description:"",solution:"",updateTime:1557229476e3},{moduleCode:"",detailCode:"10052",description:"余额不足",solution:"",updateTime:1557121463e3},{moduleCode:"",detailCode:"20108",description:"当前用户和所添加用户不是好友关系",solution:"",updateTime:1556541725e3},{moduleCode:"",detailCode:"10009",description:"",solution:"",updateTime:1556422452e3},{moduleCode:"",detailCode:"320001",description:"通道不存在",solution:"请检查录像机的关联状态是否正常,没有摄像头的通道无法播放",updateTime:1556419044e3},{moduleCode:"",detailCode:"120001",description:"通道不存在",solution:"请检查录像机的关联状态是否正常,没有摄像头的通道无法播放",updateTime:155641903e4},{moduleCode:"",detailCode:"320049",description:"",solution:"",updateTime:1556272984e3},{moduleCode:"",detailCode:"380227",description:"",solution:"",updateTime:1556264379e3},{moduleCode:"",detailCode:"10033",description:"policy参数信息异常",solution:"",updateTime:1555922124e3},{moduleCode:"",detailCode:"10065",description:"weakAppKey 不属于accessToken对应的用户",solution:"",updateTime:1555497522e3},{moduleCode:"",detailCode:"100001",description:"",solution:"",updateTime:1555141776e3},{moduleCode:"",detailCode:"395558",description:"",solution:"",updateTime:1554987121e3},{moduleCode:"",detailCode:"70001",description:"智能家居买断用户设备受到限制,建议合理选择pagestart和pageSize",solution:"",updateTime:1554691023e3},{moduleCode:"",detailCode:"170001",description:"",solution:"",updateTime:1554691023e3},{moduleCode:"",detailCode:"1012",description:"重置失败",solution:"",updateTime:1554645841e3},{moduleCode:"",detailCode:"1043",description:"重置失败",solution:"",updateTime:1554645834e3},{moduleCode:"",detailCode:"60060",description:"直播功能未开通",solution:"通道未开通直播功能,请先开通直播",updateTime:1554346018e3},{moduleCode:"",detailCode:"380203",description:"",solution:"",updateTime:1554093666e3},{moduleCode:"",detailCode:"399048",description:"免费版并发数达到上限,请升级企业版使用多并发能力",solution:"升级成为企业版套餐即可取消并发数限制",updateTime:1553839878e3},{moduleCode:"",detailCode:"60007",description:"预置点个数超过最大值",solution:"",updateTime:1553671316e3},{moduleCode:"",detailCode:"1005",description:"",solution:"",updateTime:1553513701e3},{moduleCode:"",detailCode:"20605",description:"其他用户正在认证中",solution:"",updateTime:1552976317e3},{moduleCode:"",detailCode:"90004",description:"当前型号设备暂时不支持AI任务:CS-C3W-3B1WFR-YGL",solution:"",updateTime:1552898525e3},{moduleCode:"",detailCode:"60046",description:"添加的设备的IP和本设备的IP冲突",solution:"",updateTime:1552872372e3},{moduleCode:"",detailCode:"3",description:"修改视频清晰度失败!",solution:"",updateTime:1552440229e3},{moduleCode:"",detailCode:"1013",description:"",solution:"",updateTime:1552035069e3},{moduleCode:"",detailCode:"370007",description:"",solution:"",updateTime:1551852327e3},{moduleCode:"",detailCode:"-1",description:"",solution:"",updateTime:1551752889e3},{moduleCode:"",detailCode:"30005",description:"弱账户不存在",solution:"",updateTime:1551422358e3},{moduleCode:"",detailCode:"90006",description:"用户操作AI任务受限",solution:"",updateTime:155107332e4},{moduleCode:"",detailCode:"60203",description:"未开通相关服务",solution:"",updateTime:155062307e4},{moduleCode:"",detailCode:"10002",description:"accessToken过期或异常",solution:"",updateTime:1550300346e3},{moduleCode:"",detailCode:"380339",description:"",solution:"",updateTime:1549889458e3},{moduleCode:"",detailCode:"90002",description:"AI任务设备配置数达到上限:3",solution:"",updateTime:1549071664e3},{moduleCode:"",detailCode:"380008",description:"",solution:"",updateTime:1549005979e3},{moduleCode:"",detailCode:"320227",description:"",solution:"",updateTime:1548739731e3},{moduleCode:"",detailCode:"60059",description:"ezopen地址均不可用",solution:"",updateTime:154839535e4},{moduleCode:"",detailCode:"10005",description:"appKey异常",solution:"",updateTime:1548317858e3},{moduleCode:"",detailCode:"60045",description:"添加的设备的IP和其他通道的IP冲突",solution:"",updateTime:1548155085e3},{moduleCode:"",detailCode:"60047",description:"码流类型不支持",solution:"",updateTime:1547962108e3},{moduleCode:"",detailCode:"60041",description:"添加的设备被其他设备关联或响应超时",solution:"",updateTime:154796098e4},{moduleCode:"",detailCode:"110029",description:"个人用户接口调用频率超限",solution:"请升级企业版:https://open.ys7.com/price.html",updateTime:1547606859e3},{moduleCode:"",detailCode:"380355",description:"设备直连推流异常结束",solution:"",updateTime:1547106294e3},{moduleCode:"",detailCode:"320081",description:"",solution:"",updateTime:1547106279e3},{moduleCode:"",detailCode:"60035",description:"购买云存储服务失败",solution:"",updateTime:1547026959e3},{moduleCode:"",detailCode:"90005",description:"设备已存在:C75714141",solution:"",updateTime:1546940622e3},{moduleCode:"",detailCode:"1053445",description:"该时间段没有录像片段",solution:"",updateTime:1546935727e3},{moduleCode:"",detailCode:"90007",description:"设备未加入到AI任务",solution:"",updateTime:1546932948e3},{moduleCode:"",detailCode:"326000",description:"",solution:"",updateTime:1546823143e3},{moduleCode:"",detailCode:"1021",description:"重置失败",solution:"",updateTime:1546781152e3},{moduleCode:"",detailCode:"2001",description:"删除设备失败!",solution:"",updateTime:1546422886e3},{moduleCode:"",detailCode:"380425",description:"",solution:"",updateTime:1546407694e3},{moduleCode:"",detailCode:"120097",description:"",solution:"",updateTime:1546085995e3},{moduleCode:"",detailCode:"10059",description:"requestId已存在",solution:"",updateTime:1545824509e3},{moduleCode:"",detailCode:"1154723",description:"",solution:"",updateTime:1545795209e3},{moduleCode:"",detailCode:"60043",description:"添加的设备超出最大数量",solution:"",updateTime:1545493607e3},{moduleCode:"",detailCode:"1152677",description:"",solution:"",updateTime:1545313404e3},{moduleCode:"",detailCode:"20097",description:"设备添加异常,设备验证码为ABCDEF或设备被N1,R1关联",solution:"",updateTime:1545310795e3},{moduleCode:"",detailCode:"10060",description:"设备不支持该云存储类型",solution:"",updateTime:1545309064e3},{moduleCode:"",detailCode:"20102",description:"无相应邀请信息,无法接受邀请",solution:"",updateTime:1545204966e3},{moduleCode:"",detailCode:"10053",description:"云存储开通中",solution:"",updateTime:1545100293e3},{moduleCode:"",detailCode:"20401",description:"用户云空间信息不存在",solution:"",updateTime:154501788e4},{moduleCode:"",detailCode:"20600",description:"临时密码数已达上限",solution:"",updateTime:1544873457e3},{moduleCode:"",detailCode:"901",description:"",solution:"",updateTime:1544693519e3},{moduleCode:"",detailCode:"60210",description:"图片数据错误",solution:"",updateTime:1544604457e3},{moduleCode:"",detailCode:"10013",description:"您的应用没有权限调用",solution:"",updateTime:1544416237e3},{moduleCode:"",detailCode:"70007",description:"授权码不存在",solution:"",updateTime:1544179533e3},{moduleCode:"",detailCode:"10015",description:"授权地址不存在",solution:"",updateTime:154416324e4},{moduleCode:"",detailCode:"320423",description:"",solution:"",updateTime:1544100685e3},{moduleCode:"",detailCode:"370009",description:"",solution:"",updateTime:1544077151e3},{moduleCode:"",detailCode:"10031",description:"子账户或萤石用户没有权限",solution:"",updateTime:1543990462e3},{moduleCode:"",detailCode:"10055",description:"设备不支持试用云存储服务",solution:"",updateTime:1543986292e3},{moduleCode:"",detailCode:"60042",description:"添加的设备密码错误",solution:"",updateTime:1543710913e3},{moduleCode:"",detailCode:"60082",description:"设备正在响应本次声源定位",solution:"",updateTime:1543647426e3},{moduleCode:"",detailCode:"10056",description:"设备不支持云存储服务转出",solution:"",updateTime:1543558342e3},{moduleCode:"",detailCode:"20104",description:"好友不存在",solution:"",updateTime:1543492403e3},{moduleCode:"",detailCode:"20111",description:"好友不是等待验证状态,无法接受邀请",solution:"",updateTime:1543492365e3},{moduleCode:"",detailCode:"20107",description:"不能添加自己为好友",solution:"",updateTime:1543480986e3},{moduleCode:"",detailCode:"1",description:"设备返回其他错误",solution:"",updateTime:1543459921e3},{moduleCode:"",detailCode:"60084",description:"当前正在关闭隐私遮蔽",solution:"",updateTime:1543456515e3},{moduleCode:"",detailCode:"380255",description:"",solution:"",updateTime:1543411652e3},{moduleCode:"",detailCode:"20015",description:"设备不支持",solution:"",updateTime:1543390936e3},{moduleCode:"",detailCode:"30003",description:"手机验证码错误",solution:"",updateTime:1543389137e3},{moduleCode:"",detailCode:"20615",description:"锁用户已存在",solution:"",updateTime:1543388325e3},{moduleCode:"",detailCode:"60061",description:"账户流量已超出或未购买,限制开通",solution:"",updateTime:1543372581e3},{moduleCode:"",detailCode:"60020",description:"设备不支持该信令",solution:"",updateTime:1543321636e3},{moduleCode:"",detailCode:"320146",description:"",solution:"",updateTime:1543318472e3},{moduleCode:"",detailCode:"60018",description:"设备升级失败",solution:"",updateTime:1543304928e3},{moduleCode:"",detailCode:"60044",description:"添加的设备网络不可达超时",solution:"",updateTime:1543304102e3},{moduleCode:"",detailCode:"20619",description:"主用户无法删除",solution:"",updateTime:1543290219e3},{moduleCode:"",detailCode:"20608",description:"锁用户不存在",solution:"",updateTime:154328195e4},{moduleCode:"",detailCode:"20609",description:"设备响应超时,门锁通信故障或者电量不足,请重试.",solution:"",updateTime:1543281601e3},{moduleCode:"",detailCode:"1049954",description:"升级设备失败",solution:"",updateTime:1543279264e3},{moduleCode:"",detailCode:"60009",description:"正在调用预置点",solution:"",updateTime:1543238114e3},{moduleCode:"",detailCode:"1052677",description:"获取本地录像失败",solution:"",updateTime:1543207604e3},{moduleCode:"",detailCode:"327000",description:"",solution:"",updateTime:1543196609e3},{moduleCode:"",detailCode:"20021",description:"设备在线,未被用户添加",solution:"",updateTime:1543193436e3},{moduleCode:"",detailCode:"20202",description:"操作留言信息失败",solution:"",updateTime:1543191562e3},{moduleCode:"",detailCode:"1052678",description:"获取本地录像失败",solution:"",updateTime:1543132218e3},{moduleCode:"",detailCode:"1054723",description:"格式化设备失败",solution:"",updateTime:1543129833e3},{moduleCode:"",detailCode:"20109",description:"对应分享不存在",solution:"",updateTime:1543129111e3},{moduleCode:"",detailCode:"60026",description:"设备处于隐私遮蔽状态",solution:"",updateTime:1543110403e3},{moduleCode:"",detailCode:"60083",description:"当前正在开启隐私遮蔽",solution:"",updateTime:1543071148e3},{moduleCode:"",detailCode:"60001",description:"用户无云台控制权限",solution:"",updateTime:1543059167e3},{moduleCode:"",detailCode:"2003",description:"设备不在线",solution:"",updateTime:1543051046e3},{moduleCode:"",detailCode:"-24",description:"设置设备enable错误",solution:"",updateTime:1543042701e3},{moduleCode:"",detailCode:"10018",description:"",solution:"",updateTime:1543041564e3},{moduleCode:"",detailCode:"20103",description:"好友已存在",solution:"",updateTime:154303843e4},{moduleCode:"",detailCode:"70010",description:"授权异常请重试",solution:"",updateTime:154303559e4},{moduleCode:"",detailCode:"60056",description:"删除设备失败",solution:"",updateTime:1543031275e3},{moduleCode:"",detailCode:"60040",description:"添加的设备不在同一局域网",solution:"",updateTime:154303121e4},{moduleCode:"",detailCode:"60019",description:"加密已开启",solution:"",updateTime:1543029931e3},{moduleCode:"",detailCode:"1054722",description:"格式化设备失败",solution:"",updateTime:1543028537e3},{moduleCode:"",detailCode:"20016",description:"当前设备正在格式化",solution:"",updateTime:1543028537e3},{moduleCode:"",detailCode:"10024",description:"透明通道权限校验不通过",solution:"",updateTime:154302554e4},{moduleCode:"",detailCode:"6002",description:"删除设备失败!",solution:"",updateTime:1543025026e3},{moduleCode:"",detailCode:"1011",description:"验证码错误!",solution:"",updateTime:1543016865e3},{moduleCode:"",detailCode:"60032",description:"卡密已使用",solution:"",updateTime:1543006668e3},{moduleCode:"",detailCode:"10034",description:"子账号已存在",solution:"",updateTime:1542989194e3},{moduleCode:"",detailCode:"20301",description:"根据uuid查询联动信息不存在",solution:"",updateTime:1542988651e3},{moduleCode:"",detailCode:"1041",description:"获取验证码过于频繁",solution:"",updateTime:1542980953e3},{moduleCode:"",detailCode:"10012",description:"该appkey下已绑定重复的phone!",solution:"",updateTime:15429808e5},{moduleCode:"",detailCode:"1008",description:"phone不合法!",solution:"",updateTime:1542979812e3},{moduleCode:"",detailCode:"60023",description:"订阅操作失败",solution:"",updateTime:1542979006e3},{moduleCode:"",detailCode:"5",description:"设备返回其他错误",solution:"",updateTime:1542977828e3},{moduleCode:"",detailCode:"60006",description:"云台当前操作失败",solution:"",updateTime:1542977598e3},{moduleCode:"",detailCode:"131",description:"修改视频清晰度失败!",solution:"",updateTime:1542977246e3},{moduleCode:"",detailCode:"10019",description:"密码错误",solution:"",updateTime:1542976628e3},{moduleCode:"",detailCode:"10004",description:"用户不存在",solution:"",updateTime:1542976268e3},{moduleCode:"",detailCode:"20201",description:"操作报警信息失败",solution:"",updateTime:1542975906e3},{moduleCode:"",detailCode:"20024",description:"设备不在线,已经被别的用户添加",solution:"",updateTime:1542975858e3},{moduleCode:"",detailCode:"60004",description:"设备云台旋转达到左限位",solution:"",updateTime:1542975207e3},{moduleCode:"",detailCode:"1052679",description:"修改视频清晰度失败!",solution:"",updateTime:1542974886e3},{moduleCode:"",detailCode:"20031",description:"请在萤石客户端关闭终端绑定",solution:"",updateTime:1542974756e3},{moduleCode:"",detailCode:"1053825",description:"获取本地录像失败",solution:"",updateTime:1542974692e3},{moduleCode:"",detailCode:"60011",description:"预置点不存在",solution:"",updateTime:1542974414e3},{moduleCode:"",detailCode:"1052936",description:"修改视频清晰度失败!",solution:"",updateTime:154297439e4},{moduleCode:"",detailCode:"1016",description:"",solution:"",updateTime:1542974273e3},{moduleCode:"",detailCode:"10032",description:"子账号不存在",solution:"",updateTime:1542973906e3},{moduleCode:"",detailCode:"20013",description:"设备已被别人添加",solution:"",updateTime:1542973817e3},{moduleCode:"",detailCode:"50000",description:"服务器错误!",solution:"",updateTime:1542973801e3},{moduleCode:"",detailCode:"60010",description:"该预置点已经是当前位置",solution:"",updateTime:15429738e5},{moduleCode:"",detailCode:"60003",description:"设备云台旋转达到下限位",solution:"",updateTime:154297377e4},{moduleCode:"",detailCode:"4",description:"设备返回其他错误",solution:"",updateTime:1542973755e3},{moduleCode:"",detailCode:"60016",description:"加密未开启,无需关闭",solution:"",updateTime:1542973753e3},{moduleCode:"",detailCode:"60002",description:"设备云台旋转达到上限位",solution:"",updateTime:1542973742e3},{moduleCode:"",detailCode:"20023",description:"设备不在线,未被用户添加",solution:"",updateTime:1542973685e3},{moduleCode:"",detailCode:"10008",description:"",solution:"",updateTime:1542973676e3},{moduleCode:"",detailCode:"20010",description:"设备验证码错误",solution:"",updateTime:1542973658e3},{moduleCode:"",detailCode:"60005",description:"设备云台旋转达到右限位",solution:"",updateTime:1542973657e3},{moduleCode:"",detailCode:"20017",description:"设备已经被自己添加",solution:"",updateTime:1542973648e3},{moduleCode:"",detailCode:"20020",description:"设备在线,已经被自己添加",solution:"",updateTime:1542973533e3},{moduleCode:"",detailCode:"20029",description:"设备不在线,已经被自己添加",solution:"",updateTime:154297353e4},{moduleCode:"",detailCode:"10014",description:"APPKEY下对应的第三方userId和phone未绑定!",solution:"",updateTime:1542973499e3},{moduleCode:"",detailCode:"20002",description:"设备不存在",solution:"",updateTime:1542973499e3},{moduleCode:"",detailCode:"10030",description:"appkey和appsecret不匹配",solution:"",updateTime:154297349e4},{moduleCode:"",detailCode:"20022",description:"设备在线,已经被别的用户添加",solution:"",updateTime:1542973486e3},{moduleCode:"",detailCode:"20008",description:"设备响应超时",solution:"",updateTime:1542973484e3},{moduleCode:"",detailCode:"20032",description:"该用户下通道不存在",solution:"",updateTime:1542973481e3},{moduleCode:"",detailCode:"20006",description:"网络异常",solution:"",updateTime:1542973475e3},{moduleCode:"",detailCode:"20014",description:"deviceSerial不合法!",solution:"",updateTime:1542973454e3},{moduleCode:"",detailCode:"20007",description:"设备不在线",solution:"",updateTime:1542973454e3},{moduleCode:"",detailCode:"20018",description:"该用户不拥有该设备",solution:"",updateTime:1542973453e3},{moduleCode:"",detailCode:"10010",description:"",solution:"",updateTime:1542973453e3},{moduleCode:"",detailCode:"10011",description:"未绑定!",solution:"",updateTime:1542973453e3},{moduleCode:"",detailCode:"20001",description:"通道不存在!",solution:"",updateTime:1542973452e3},{moduleCode:"",detailCode:"10017",description:"appKey不存在",solution:"",updateTime:1542973451e3},{moduleCode:"",detailCode:"400259",description:"",solution:"",updateTime:1542875643e3},{moduleCode:"",detailCode:"400004",description:"",solution:"",updateTime:1542873364e3},{moduleCode:"",detailCode:"3840",description:"",solution:"",updateTime:154186e7},{moduleCode:"",detailCode:"-1017",description:"",solution:"",updateTime:1541733663e3},{moduleCode:"",detailCode:"320025",description:"",solution:"",updateTime:1541078281e3},{moduleCode:"",detailCode:"320024",description:"",solution:"",updateTime:1540801374e3},{moduleCode:"",detailCode:"321002",description:"",solution:"",updateTime:1540631734e3},{moduleCode:"",detailCode:"321000",description:"",solution:"",updateTime:1540609178e3},{moduleCode:"",detailCode:"321022",description:"",solution:"",updateTime:1540548345e3},{moduleCode:"",detailCode:"321016",description:"",solution:"",updateTime:1540287187e3},{moduleCode:"",detailCode:"320023",description:"",solution:"",updateTime:1539825993e3},{moduleCode:"",detailCode:"-1016",description:"",solution:"",updateTime:1539584931e3},{moduleCode:"",detailCode:"8",description:"",solution:"",updateTime:1539391812e3},{moduleCode:"",detailCode:"1075127593",description:"",solution:"",updateTime:1538959251e3},{moduleCode:"",detailCode:"380421",description:"",solution:"",updateTime:1537288465e3},{moduleCode:"",detailCode:"322000",description:"麦克风权限未开启",solution:"",updateTime:1536820136e3},{moduleCode:"",detailCode:"1152678",description:"",solution:"",updateTime:1536738348e3},{moduleCode:"",detailCode:"320047",description:"",solution:"",updateTime:1536664472e3},{moduleCode:"",detailCode:"327006",description:"",solution:"",updateTime:153613612e4},{moduleCode:"",detailCode:"1074807593",description:"",solution:"",updateTime:1536135035e3},{moduleCode:"",detailCode:"320291",description:"",solution:"",updateTime:1536110836e3},{moduleCode:"",detailCode:"320045",description:"",solution:"",updateTime:1535963775e3},{moduleCode:"",detailCode:"370004",description:"",solution:"",updateTime:1535883699e3},{moduleCode:"",detailCode:"1149954",description:"",solution:"",updateTime:1535700674e3},{moduleCode:"",detailCode:"320053",description:"",solution:"",updateTime:1535681079e3},{moduleCode:"",detailCode:"400000",description:"",solution:"",updateTime:1535532332e3},{moduleCode:"",detailCode:"110028",description:"个人版抓图接口日调用次数超出限制",solution:"请升级企业版:https://open.ys7.com/price.html",updateTime:1535348756e3},{moduleCode:"",detailCode:"110027",description:"个人版帐号数量超出安全限制,无法调用",solution:"请升级企业版:https://open.ys7.com/price.html",updateTime:1535348734e3},{moduleCode:"",detailCode:"110026",description:"设备数量超出个人版限制,当前设备无法操作",solution:"请升级企业版:https://open.ys7.com/price.html",updateTime:1535348588e3},{moduleCode:"",detailCode:"100000",description:"",solution:"",updateTime:1534980008e3},{moduleCode:"",detailCode:"324004",description:"",solution:"",updateTime:1534927762e3},{moduleCode:"",detailCode:"360104",description:"",solution:"",updateTime:1534761006e3},{moduleCode:"",detailCode:"320204",description:"",solution:"",updateTime:1534584221e3},{moduleCode:"",detailCode:"380001",description:"",solution:"",updateTime:1534404715e3},{moduleCode:"",detailCode:"380204",description:"",solution:"",updateTime:1534401682e3},{moduleCode:"",detailCode:"328006",description:"",solution:"",updateTime:1534144407e3},{moduleCode:"",detailCode:"321703",description:"",solution:"",updateTime:1534127274e3},{moduleCode:"",detailCode:"321510",description:"",solution:"",updateTime:1533428892e3},{moduleCode:"",detailCode:"321006",description:"",solution:"",updateTime:1533036916e3},{moduleCode:"",detailCode:"50009",description:"",solution:"",updateTime:1532078548e3},{moduleCode:"",detailCode:"50007",description:"",solution:"",updateTime:153199172e4},{moduleCode:"",detailCode:"50018",description:"",solution:"",updateTime:1531912829e3},{moduleCode:"",detailCode:"380451",description:"",solution:"",updateTime:15316157e5},{moduleCode:"",detailCode:"380336",description:"",solution:"",updateTime:1531231721e3},{moduleCode:"",detailCode:"360020",description:"",solution:"",updateTime:1531117554e3},{moduleCode:"",detailCode:"380418",description:"",solution:"",updateTime:153110707e4},{moduleCode:"",detailCode:"1153445",description:"设备在该时间段内没有录像",solution:"",updateTime:1530944007e3},{moduleCode:"",detailCode:"110007",description:"调用接口总次数达到上限",solution:"请升级企业版,获取更高能力",updateTime:1530935584e3},{moduleCode:"",detailCode:"360019",description:"",solution:"",updateTime:1530869771e3},{moduleCode:"",detailCode:"360100",description:"",solution:"",updateTime:1530786188e3},{moduleCode:"",detailCode:"380042",description:"",solution:"",updateTime:1530775199e3},{moduleCode:"",detailCode:"320355",description:"",solution:"",updateTime:1530716074e3},{moduleCode:"",detailCode:"100003",description:"",solution:"",updateTime:1530232541e3},{moduleCode:"",detailCode:"371026",description:"",solution:"",updateTime:15301926e5},{moduleCode:"",detailCode:"102",description:"",solution:"",updateTime:1529895641e3},{moduleCode:"",detailCode:"380201",description:"",solution:"",updateTime:1529740929e3},{moduleCode:"",detailCode:"320054",description:"",solution:"",updateTime:1529544875e3},{moduleCode:"",detailCode:"500101",description:"",solution:"",updateTime:1529485953e3},{moduleCode:"",detailCode:"321001",description:"",solution:"",updateTime:1529411048e3},{moduleCode:"",detailCode:"321508",description:"",solution:"",updateTime:1529393279e3},{moduleCode:"",detailCode:"405991",description:"",solution:"",updateTime:1529380238e3},{moduleCode:"",detailCode:"380461",description:"",solution:"",updateTime:1529130941e3},{moduleCode:"",detailCode:"-1019",description:"",solution:"",updateTime:1529057245e3},{moduleCode:"",detailCode:"322009",description:"",solution:"",updateTime:1528965717e3},{moduleCode:"",detailCode:"324005",description:"",solution:"",updateTime:1528950153e3},{moduleCode:"",detailCode:"325000",description:"",solution:"",updateTime:1528947143e3},{moduleCode:"",detailCode:"326032",description:"",solution:"",updateTime:1528872971e3},{moduleCode:"",detailCode:"325032",description:"",solution:"",updateTime:1528863189e3},{moduleCode:"",detailCode:"328000",description:"",solution:"",updateTime:1528794505e3},{moduleCode:"",detailCode:"53",description:"",solution:"",updateTime:1528693249e3},{moduleCode:"",detailCode:"-1020",description:"",solution:"",updateTime:152849944e4},{moduleCode:"",detailCode:"329032",description:"",solution:"",updateTime:1528446301e3},{moduleCode:"",detailCode:"-1202",description:"",solution:"",updateTime:152843982e4},{moduleCode:"",detailCode:"2",description:"",solution:"",updateTime:1528434175e3},{moduleCode:"",detailCode:"1152936",description:"",solution:"",updateTime:1528345986e3},{moduleCode:"",detailCode:"328011",description:"",solution:"",updateTime:15283386e5},{moduleCode:"",detailCode:"28",description:"",solution:"",updateTime:152833753e4},{moduleCode:"",detailCode:"320356",description:"",solution:"",updateTime:1528188693e3},{moduleCode:"",detailCode:"320357",description:"",solution:"",updateTime:1528188517e3},{moduleCode:"",detailCode:"405800",description:"",solution:"",updateTime:1528168732e3},{moduleCode:"",detailCode:"405996",description:"",solution:"",updateTime:1528168686e3},{moduleCode:"",detailCode:"380357",description:"",solution:"",updateTime:1528011565e3},{moduleCode:"",detailCode:"328022",description:"",solution:"",updateTime:1527929065e3},{moduleCode:"",detailCode:"380003",description:"",solution:"",updateTime:1527927819e3},{moduleCode:"",detailCode:"50004",description:"",solution:"",updateTime:1527770643e3},{moduleCode:"",detailCode:"50011",description:"",solution:"",updateTime:1527770635e3},{moduleCode:"",detailCode:"370017",description:"",solution:"",updateTime:1527739514e3},{moduleCode:"",detailCode:"327032",description:"",solution:"",updateTime:1527726704e3},{moduleCode:"",detailCode:"324001",description:"",solution:"",updateTime:1527681892e3},{moduleCode:"",detailCode:"405997",description:"",solution:"",updateTime:1527653408e3},{moduleCode:"",detailCode:"405995",description:"",solution:"",updateTime:1527647283e3},{moduleCode:"",detailCode:"1153825",description:"",solution:"",updateTime:1527601747e3},{moduleCode:"",detailCode:"328002",description:"",solution:"",updateTime:1527495292e3},{moduleCode:"",detailCode:"1152679",description:"",solution:"",updateTime:1527486665e3},{moduleCode:"",detailCode:"380356",description:"",solution:"",updateTime:1527125669e3},{moduleCode:"",detailCode:"328032",description:"",solution:"",updateTime:1527069382e3},{moduleCode:"",detailCode:"22",description:"",solution:"",updateTime:1527049826e3},{moduleCode:"",detailCode:"9",description:"",solution:"",updateTime:1527006778e3},{moduleCode:"",detailCode:"89",description:"",solution:"",updateTime:1526622784e3},{moduleCode:"",detailCode:"328016",description:"",solution:"",updateTime:1526452365e3},{moduleCode:"",detailCode:"368005",description:"",solution:"",updateTime:1525921264e3},{moduleCode:"",detailCode:"0",description:"",solution:"",updateTime:1525920242e3},{moduleCode:"",detailCode:"380006",description:"",solution:"",updateTime:1525918868e3},{moduleCode:"",detailCode:"310",description:"",solution:"",updateTime:1525834436e3},{moduleCode:"",detailCode:"360011",description:"",solution:"",updateTime:1525681552e3},{moduleCode:"",detailCode:"170005",description:"",solution:"",updateTime:15254339e5},{moduleCode:"",detailCode:"50023",description:"",solution:"",updateTime:1525403338e3},{moduleCode:"",detailCode:"100131",description:"",solution:"",updateTime:1525229691e3},{moduleCode:"",detailCode:"-1018",description:"",solution:"",updateTime:1525142341e3},{moduleCode:"",detailCode:"362026",description:"",solution:"",updateTime:1524882677e3},{moduleCode:"",detailCode:"368007",description:"",solution:"",updateTime:1524832269e3},{moduleCode:"",detailCode:"54",description:"",solution:"",updateTime:1524793646e3},{moduleCode:"",detailCode:"1154722",description:"",solution:"",updateTime:1524620807e3},{moduleCode:"",detailCode:"320229",description:"",solution:"",updateTime:1524551682e3},{moduleCode:"",detailCode:"360012",description:"",solution:"",updateTime:1524472094e3},{moduleCode:"",detailCode:"380229",description:"",solution:"",updateTime:1524110755e3},{moduleCode:"",detailCode:"360016",description:"",solution:"",updateTime:1523933518e3},{moduleCode:"",detailCode:"-1003",description:"",solution:"",updateTime:1523584804e3},{moduleCode:"",detailCode:"410026",description:"",solution:"",updateTime:152351743e4},{moduleCode:"",detailCode:"360102",description:"TTS初始化失败",solution:"",updateTime:1523503528e3},{moduleCode:"",detailCode:"360013",description:"设备开启了隐私保护",solution:"",updateTime:1523503507e3},{moduleCode:"",detailCode:"360010",description:"设备正在对讲中",solution:"",updateTime:1523503491e3},{moduleCode:"",detailCode:"360007",description:"TTS关闭了与客户端的连接",solution:"",updateTime:1523503475e3},{moduleCode:"",detailCode:"360006",description:"客户端接收发生错误",solution:"",updateTime:1523503457e3},{moduleCode:"",detailCode:"360005",description:"客户端发送的消息错误",solution:"",updateTime:1523503437e3},{moduleCode:"",detailCode:"360004",description:"TTS内部发生错误",solution:"",updateTime:1523503421e3},{moduleCode:"",detailCode:"360003",description:"TTS的设备端发生错误",solution:"",updateTime:1523503397e3},{moduleCode:"",detailCode:"360002",description:"对讲发起超时",solution:"",updateTime:1523503376e3},{moduleCode:"",detailCode:"360001",description:"客户端请求超时",solution:"",updateTime:1523503357e3},{moduleCode:"",detailCode:"320077",description:"",solution:"",updateTime:1523444274e3},{moduleCode:"",detailCode:"370047",description:"",solution:"",updateTime:152344048e4},{moduleCode:"",detailCode:"100002",description:"",solution:"",updateTime:1523413964e3},{moduleCode:"",detailCode:"-1004",description:"",solution:"",updateTime:1523336653e3},{moduleCode:"",detailCode:"380000",description:"",solution:"",updateTime:1523180856e3},{moduleCode:"",detailCode:"380213",description:"",solution:"",updateTime:1523180623e3},{moduleCode:"",detailCode:"380101",description:"",solution:"",updateTime:1522834231e3},{moduleCode:"",detailCode:"50047",description:"",solution:"",updateTime:1522833243e3},{moduleCode:"",detailCode:"-999",description:"",solution:"",updateTime:1522831034e3},{moduleCode:"",detailCode:"320418",description:"",solution:"",updateTime:1522829072e3},{moduleCode:"",detailCode:"-1009",description:"",solution:"",updateTime:1522746247e3},{moduleCode:"",detailCode:"320209",description:"",solution:"",updateTime:1522744395e3},{moduleCode:"",detailCode:"368006",description:"",solution:"",updateTime:15227443e5},{moduleCode:"",detailCode:"369003",description:"",solution:"",updateTime:1522736355e3},{moduleCode:"",detailCode:"405989",description:"",solution:"",updateTime:1522726571e3},{moduleCode:"",detailCode:"-1012",description:"",solution:"",updateTime:1522726203e3},{moduleCode:"",detailCode:"322016",description:"",solution:"",updateTime:1522722918e3},{moduleCode:"",detailCode:"500103",description:"",solution:"",updateTime:1522655556e3},{moduleCode:"",detailCode:"405999",description:"",solution:"",updateTime:1522654716e3},{moduleCode:"",detailCode:"321032",description:"",solution:"",updateTime:1522647732e3},{moduleCode:"",detailCode:"381101",description:"",solution:"",updateTime:1522392414e3},{moduleCode:"",detailCode:"399999",description:"",solution:"",updateTime:1522379834e3},{moduleCode:"",detailCode:"380103",description:"",solution:"",updateTime:1522312724e3},{moduleCode:"",detailCode:"360014",description:"",solution:"",updateTime:1522304341e3},{moduleCode:"",detailCode:"-1005",description:"",solution:"",updateTime:1522288195e3},{moduleCode:"",detailCode:"100005",description:"",solution:"",updateTime:1522218849e3},{moduleCode:"",detailCode:"100004",description:"",solution:"",updateTime:1522209053e3},{moduleCode:"",detailCode:"106002",description:"",solution:"",updateTime:15222062e5},{moduleCode:"",detailCode:"410030",description:"",solution:"",updateTime:1522162252e3},{moduleCode:"",detailCode:"-1002",description:"",solution:"",updateTime:152215069e4},{moduleCode:"",detailCode:"-1200",description:"",solution:"",updateTime:1522139025e3},{moduleCode:"",detailCode:"-1001",description:"",solution:"",updateTime:1522046436e3},{moduleCode:"",detailCode:"-1011",description:"",solution:"",updateTime:1522045931e3},{moduleCode:"",detailCode:"381102",description:"",solution:"",updateTime:1522044953e3},{moduleCode:"",detailCode:"381103",description:"",solution:"",updateTime:1522044953e3},{moduleCode:"",detailCode:"391205",description:"vtdu解析服务器ip失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"391206",description:"vtdu描述符select失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"391207",description:"vtdu文件描述符不在可读中",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"391208",description:"vtdu网络发生错误getsockopt",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"391209",description:"vtdu描述符select超时",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395000",description:"cas回复信令,发现内存已经释放(和设备之间异常断开)",msg:"播放失败请重试",solution:"检查设备网络;刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395400",description:"私有化协议vtm检测私有化协议中码流类型小于0或者设备序列号为空等非法参数场景返回(app不重试取流)",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395402",description:"回放找不到录像文件",msg:"回放找不到录像文件,本地存储请检查存储卡是否接触良好",solution:"检查是否有存储卡并且接触良好",updateTime:1522034841e3},{moduleCode:"",detailCode:"395403",description:"操作码或信令密钥与设备不匹配",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395404",description:"设备不在线",solution:"检查设备网络;重启设备接入萤石云",msg:"设备不在线,请检查设备网络或重启设备接入萤石云",updateTime:1522034841e3},{moduleCode:"",detailCode:"395405",description:"流媒体向设备发送或接受信令超时/cas响应超时",msg:"播放失败,请检查设备网络或重启设备",solution:"检查设备网络;重启设备",updateTime:1522034841e3},{moduleCode:"",detailCode:"395406",description:"token失效",msg:"播放失败请重试或重启设备",solution:"刷新重试或者重启设备",updateTime:1522034841e3},{moduleCode:"",detailCode:"395407",description:"客户端的URL格式错误",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395409",description:"预览开启隐私保护",msg:"播放失败请关闭隐私遮蔽",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395410",description:"设备达到最大连接数",solution:"请升级设备固件版本",updateTime:1522034841e3},{moduleCode:"",detailCode:"395411",description:"token无权限",msg:"播放失败",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395412",description:"session不存在",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395413",description:"验证token的他异常(不具体) ",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395415",description:"设备通道错",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395416",description:"设备资源受限",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395451",description:"设备不支持的码流类型",msg:"播放失败请重试或切换设备码流",solution:"刷新重试或者切换到高清模式",updateTime:1522034841e3},{moduleCode:"",detailCode:"395452",description:"设备链接流媒体服务器失败",msg:"播放失败,请检查设备网络或重启设备或重新加载",solution:"检查设备网络,重启设备,刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395454",description:"流媒体中关于设备取流会话不存在",msg:"播放失败请重试",solution:"流媒体中关于设备取流会话不存在",updateTime:152222018e4},{moduleCode:"",detailCode:"395455",description:"设备通道未关联",msg:"播放失败,请检查设备通道是否关联",solution:"检查设备通道是否关联",updateTime:152222018e4},{moduleCode:"",detailCode:"395456",description:"设备通道关联设备不在线",msg:"播放失败,请检查设备通道是否上线",solution:"检查设备通道是否上线",updateTime:152222018e4},{moduleCode:"",detailCode:"395457",description:"客户端不支持端到端加密",msg:"播放失败",solution:"客户端不支持端到端加密",updateTime:152222018e4},{moduleCode:"",detailCode:"395458",description:"设备不支持当前并发ECDH密",msg:"客户端不支持端到端加密",solution:"设备不支持当前并发ECDH密",updateTime:152222018e4},{moduleCode:"",detailCode:"395459",description:"VTDU 处理ECDH 加密失败",msg:"播放失败",solution:"VTDU 处理ECDH 加密失败",updateTime:152222018e4},{moduleCode:"",detailCode:"395460",description:"流媒体中关于设备取流会话不存在",msg:"播放失败请重试",solution:"流媒体中关于设备取流会话不存在",updateTime:152222018e4},{moduleCode:"",detailCode:"395492",description:"设备不支持的命令",msg:"操作失败,设备不支持",solution:"",updateTime:152222018e4},{moduleCode:"",detailCode:"395500",description:"服务器处理失败",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395501",description:"流媒体vtdu达到最大负载,请扩容",msg:"播放失败请重试",solution:"服务器负载达到上限,请稍后重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395503",description:"vtm返回分配vtdu失败",msg:"播放失败请重试",solution:"vtdu服务异常,请请稍后重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395504",description:"流媒体vtdu达到最大负载",msg:"播放失败请重试",solution:"服务器负载达到上限,请稍后重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395505",description:"vtm ecdh解密失败",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395506",description:"vtm 返回IPC不支持取流(需要IPC添加NVR后支持)",msg:"播放失败,请绑定NVR使用",solution:"IPC绑定NVR使用",updateTime:1522034841e3},{moduleCode:"",detailCode:"395544",description:"设备返回无视频源",msg:"播放失败,请检查设备接触情况",solution:"设备是否接触良好; 如果一直无法解决,请联系技术支持",updateTime:1522034841e3},{moduleCode:"",detailCode:"395545",description:"视频分享时间已经结束",msg:"视频分享时间已结束",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395546",description:"vtdu返回达到取流并发路数限制",msg:"并发上限,请升级为企业版",solution:"请升级为企业版,放开并发限制",updateTime:1522034841e3},{moduleCode:"",detailCode:"395547",description:"vtdu返回开放平台用户并发限制",msg:"并发上限,请升级为企业版",solution:"请确定开放平台用户预览是否超过用户并发数量限制",updateTime:1522034841e3},{moduleCode:"",detailCode:"395556",description:"ticket校验失败",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395557",description:"回放服务器等待流头超时",msg:"播放失败请重试",solution:"刷新重试,检测设备网络,重启设备",updateTime:1522034841e3},{moduleCode:"",detailCode:"395558",description:"查找录像开始时间错误",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395560",description:"群组分享取流二次验证失败",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395561",description:"分享群组用户被锁住",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395562",description:"群组分享用户权限变更",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395563",description:"认证服务连接失败",msg:"播放失败请重试",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395564",description:"认证超时",msg:"播放失败请重试",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395566",description:"不在分享时间内预览",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395567",description:"分享通道被锁定",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395568",description:"未找到认证类型",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395569",description:"认证返回的参数异常",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395600",description:"分享设备不在分享时间内",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395601",description:"群组分享用户没权限",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395602",description:"群组分享权限变更",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395610",description:"接收流头失败",msg:"播放失败请重试并检查设备网络情况以及设备配置",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395620",description:"心跳超时",msg:"播放失败请重试并检查设备网络情况以及设备配置",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395530",description:"机房故障不可用",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395701",description:"cas信令返回格式错误",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395702",description:"SPGW请求Cas、Status透传超时",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"395703",description:"SPGW请求http不通",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396001",description:"客户端参数出错",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396099",description:"客户端默认错误",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396101",description:"不支持的命令",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396102",description:"设备流头发送失败",msg:"播放失败请重试",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396103",description:"cas/设备返回错误1",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396104",description:"cas/设备返回错误-1",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396105",description:"设备返回错误码3",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396106",description:"设备返回错误码4",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396107",description:"设备返回错误码5",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396108",description:"cas信令回应重复",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396109",description:"视频广场取消分享",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396110",description:"设备信令默认错误",msg:"播放失败请重试",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396501",description:"设备数据链路和实际链路不匹配",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396502",description:"设备数据链路重复建立连接",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396503",description:"设备数据链路端口不匹配",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396504",description:"缓存设备数据链路失败(内存块不足)",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396505",description:"设备发送确认头消息重复",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396506",description:"设备数据先于确定头部到达",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396508",description:"设备数据头部长度非法",msg:"播放失败请重试或重启设备",solution:"刷新重试,或者重启设备",updateTime:1522034841e3},{moduleCode:"",detailCode:"396509",description:"索引找不到设备数据管理块",msg:"播放失败请重试",solution:"刷新重试",updateTime:1522034841e3},{moduleCode:"",detailCode:"396510",description:"设备数据链路vtdu内存块协议状态不匹配",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396511",description:"设备数据头部没有streamkey错误",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396512",description:"设备数据头部非法(较笼统)",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396513",description:"设备数据长度过小",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396514",description:"设备老协议推流头部没有streamkey错误",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396515",description:"设备老协议推流数据非法",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396516",description:"设备老协议索引找不到内存管理块",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396517",description:"设备老协议推流数据非法",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396518",description:"设备数据包过大",msg:"播放失败请重试或重启设备",solution:"刷新重试,或者重启设备",updateTime:1522034841e3},{moduleCode:"",detailCode:"396519",description:"设备推流链路网络不稳定",msg:"播放失败,请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396520",description:"设备推流链路网络不稳定(默认)",msg:"播放失败请重试或重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396700",description:"异常数据包",msg:"播放失败,设备重启",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396701",description:"回放结束数据包",msg:"回放结束",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"397001",description:"与相应服务连接失败",msg:"播放失败请重试,请检查设备网络情况以及连接情况",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"397002",description:"与相应服务连接失败",msg:"播放失败请重试,请检查设备网络情况以及连接情况",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"397003",description:"与相应服务连接失败",msg:"播放失败请重试,请检查设备网络情况以及连接情况",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"397004",description:"与相应服务连接失败",msg:"播放失败请重试,请检查设备网络情况以及连接情况",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"397005",description:"VTDU连接失败,或VTDU侧断开连接",msg:"播放失败请重试,请检查设备网络情况以及连接情况",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"397006",description:"vtm断开连接(无需 关注)",msg:"播放失败请重试,请检查设备网络情况以及连接情况",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"397007",description:"客户端发送缓冲区满(上行带宽太小)",msg:"播放失败,上行带宽过小请检查设备网络情况",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"399000",description:"无效包,包过大",msg:" 检查设备重启设备",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"399001",description:"地址不合法",msg:"播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"399002",description:"缺少端口",msg:" 播放失败",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"170003",description:"refreshToken不存在",solution:"建议用户重新调用logout接口,然后调用openLoginPage接口重新启动登录页面登录",updateTime:1522034841e3},{moduleCode:"",detailCode:"170004",description:"refreshToken已过期",solution:"建议用户重新调用logout接口,然后调用openLoginPage接口重新启动登录页面登录",updateTime:1522034841e3},{moduleCode:"",detailCode:"380011",description:"设备隐私保护中",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380045",description:"设备直连取流连接数量过大",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380047",description:"设备不支持该命令",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380077",description:"设备正在对讲中",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380102",description:"数据接收异常",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380205",description:"设备检测入参异常",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380209",description:"网络连接超时",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380212",description:"设备端网络连接超时",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"101007",description:"手机号未注册",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120503",description:"正在响铃",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390016",description:"vtdu成功响应未携带流头",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101008",description:"手机号码不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120504",description:"室内机正在通话",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390017",description:"无数据流,尚未使用",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101009",description:"用户名与手机不匹配",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120505",description:"设备操作失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390018",description:"信令消息体PB解析失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101010",description:"获取验证码失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120506",description:"非法命令",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390019",description:"信令消息体PB封装失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101011",description:"验证码错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120507",description:"智能锁密码错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390020",description:"申请系统内存资源失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101012",description:"验证码失效",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120508",description:"开关锁失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390021",description:"vtdu地址尚未获取到",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101013",description:"用户不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120509",description:"开关锁超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390022",description:"客户端尚未支持",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101014",description:"密码不正确或者appKey不正确",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120510",description:"智能锁设备繁忙",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390023",description:"获取系统socket资源失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101015",description:"用户被锁住",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120511",description:"远程开锁功能未打开",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390024",description:"上层填充的StreamSsnId不匹配",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101021",description:"验证参数异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120600",description:"临时密码数已达上限",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390025",description:"链接服务器失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101026",description:"邮箱已经被注册",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120601",description:"添加临时密码失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390026",description:"客户端请求未收到服务端应答",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101031",description:"邮箱未注册",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120602",description:"删除临时密码失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390027",description:"链路断开",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101032",description:"邮箱不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120603",description:"该临时密码不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390028",description:"没有取流链接",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101041",description:"获取验证码过于频繁",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120604",description:"指纹锁射频通信失败,请稍后再试",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390029",description:"流成功停止",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101043",description:"手机验证码输入错误超过规定次数",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120605",description:"其他用户正在认证中",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390030",description:"客户端防串流校验失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102000",description:"设备不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120606",description:"验证已启动,请在120s内进行本地验证和调用添加设备接口",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390031",description:"应用层tcp粘包处理缓冲区满",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102001",description:"摄像机不存在",solution:"摄像机未注册到萤石云平台,请仔细检查摄像机的网络配置,确保连接到网络",updateTime:152203484e4},{moduleCode:"",detailCode:"120607",description:"删除用户失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390032",description:"无效状态迁移",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102003",description:"设备不在线",solution:"参考服务中心排查方法",updateTime:152203484e4},{moduleCode:"",detailCode:"120608",description:"用户不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390033",description:"无效客户端状态",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102004",description:"设备异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120609",description:"设备响应超时,门锁通信故障或者电量不足,请重试.",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390034",description:"向vtm取流流媒体信息请求超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102007",description:"设备序列号不正确",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120610",description:"获取临时密码列表失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390035",description:"向代理取流请求超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102009",description:"设备请求响应超时异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"130001",description:"用户不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390036",description:"向代理保活取流请求超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"105000",description:"设备已被自己添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"130002",description:"手机号码已经注册",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390037",description:"向vtdu取流请求超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"105001",description:"设备已被别人添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"130003",description:"手机验证码错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390038",description:"向vtdu保活取流请求超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"105002",description:"设备验证码错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"130004",description:"终端绑定操作失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391001",description:"vtm地址或端口非法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107001",description:"邀请不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"149999",description:"数据异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391002",description:"vtm生成文件描述符失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107002",description:"邀请验证失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"150000",description:"服务器异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391003",description:"vtm设置文件描述符非阻塞失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107003",description:"邀请用户不匹配",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160000",description:"设备不支持云台控制",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391004",description:"vtm设置文件描述符阻塞失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107004",description:"云存储连接失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160001",description:"用户无云台控制权限",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391005",description:"vtm解析服务器ip失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"7005",description:"VTDU主动断开连接",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107005",description:"VTDU主动断开连接",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160002",description:"设备云台旋转达到上限位",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391006",description:"vtm描述符select失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107006",description:"不能邀请自己",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160003",description:"设备云台旋转达到下限位",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391007",description:"vtm文件描述符不在可读中",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107007",description:"重复邀请",solution:"分享和删除分享必须全部由接口形式操作,如果与萤石客户端混用会造成这个问题,解决办法:在萤石客户端清空所有相关分享数据并重新添加设备,再通过接口操作即可",updateTime:152203484e4},{moduleCode:"",detailCode:"160004",description:"设备云台旋转达到左限位",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391008",description:"vtm网络发生错误getsockopt",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110001",description:"参数错误",solution:"参数为空或者格式不对",updateTime:152203484e4},{moduleCode:"",detailCode:"160005",description:"设备云台旋转达到右限位",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391009",description:"vtm描述符select超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110002",description:"accessToken异常或过期",solution:"accessToken有效期为七天,建议在accessToken即将过期或者出现10002错误码的时候重新获取accessToken",updateTime:152203484e4},{moduleCode:"",detailCode:"160006",description:"云台当前操作失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391101",description:"proxy地址或端口非法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110004",description:"用户不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160007",description:"预置点个数超过最大值",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391102",description:"proxy生成文件描述符失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110005",description:"appKey异常",solution:"确认appKey状态,不通过或者冻结状态会返回该错误码",updateTime:152203484e4},{moduleCode:"",detailCode:"160009",description:"正在调用预置点",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391103",description:"proxy设置文件描述符非阻塞失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110006",description:"ip受限",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160010",description:"该预置点已经是当前位置",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391104",description:"proxy设置文件描述符阻塞失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160011",description:"预置点不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391105",description:"proxy解析服务器ip失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110008",description:"签名错误",solution:"①获取签名方式详见apidemo及[旧]API文档 ②注意编码格式为UTF-8",updateTime:152203484e4},{moduleCode:"",detailCode:"160013",description:"设备版本已是最新",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391106",description:"proxy描述符select失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110009",description:"签名参数错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160014",description:"设备正在升级",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391107",description:"proxy文件描述符不在可读中",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110010",description:"签名超时",solution:"请调用同步服务器时间接口进行校时",updateTime:152203484e4},{moduleCode:"",detailCode:"160015",description:"设备正在重启",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391108",description:"proxy网络发生错误getsockopt",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110011",description:"未开通萤石云服务",solution:"参照绑定流程",updateTime:152203484e4},{moduleCode:"",detailCode:"160016",description:"加密未开启,无须关闭",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391109",description:"proxy描述符select超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110012",description:"第三方账户与萤石账号已经绑定",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160017",description:"设备抓图失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391201",description:"vtdu地址或端口非法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110013",description:"应用没有权限调用此接口",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160018",description:"设备升级失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391202",description:"vtdu生成文件描述符失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110014",description:"APPKEY下对应的第三方userId和phone未绑定",solution:"获取AccessToken时所用appKey与SDK所用appKey不一致",updateTime:152203484e4},{moduleCode:"",detailCode:"160019",description:"加密已开启",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391203",description:"vtdu设置文件描述符非阻塞失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110017",description:"appKey不存在",solution:"请填写在官网申请的应用秘钥",updateTime:152203484e4},{moduleCode:"",detailCode:"160020",description:"不支持该命令",solution:"请确认设备是否支持该命令",updateTime:152203484e4},{moduleCode:"",detailCode:"391204",description:"vtdu设置文件描述符阻塞失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110018",description:"AccessToken与Appkey不匹配",solution:"请检查获取accessToken对应的appKey和SDK中设置的appKey是否一致",updateTime:152203484e4},{moduleCode:"",detailCode:"160023",description:"订阅操作失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110019",description:"密码错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160024",description:"取消订阅操作失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110020",description:"请求方法为空",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160025",description:"客流统计配置失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110021",description:"ticket校验失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160026",description:"设备处于隐私遮蔽状态",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110022",description:"透传目的地非法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160027",description:"设备正在镜像操作",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110024",description:"无透传权限",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160028",description:"设备正在键控动作",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110025",description:"appKey被禁止使用通明通道",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160029",description:"设备处于语音对讲状态",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160030",description:"卡密输入错误次数过多,24小时后再输入",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160031",description:"卡密信息不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160032",description:"卡密状态不对或已过期",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160033",description:"卡密非卖品,只能开通对应的绑定设备",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110030",description:"appKey和appSecret不匹配",solution:"请检查appKey和appSecret是否对应",updateTime:152203484e4},{moduleCode:"",detailCode:"160035",description:"购买云存储服务失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110031",description:"子账户或萤石用户没有权限",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160040",description:"添加的设备不在同一局域网",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110032",description:"子账户不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160041",description:"添加的设备被其他设备关联或响应超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110033",description:"子账户未设置授权策略",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160042",description:"添加的设备密码错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110034",description:"子账户已存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160043",description:"添加的设备超出最大数量",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110035",description:"获取子账户AccessToken异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160044",description:"添加的设备网络不可达超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110036",description:"子账户被禁用",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160045",description:"添加的设备的IP和其他通道的IP冲突",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110051",description:"无权限进行抓图",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160046",description:"添加的设备的IP和本设备的IP冲突",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160047",description:"码流类型不支持",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120002",description:"设备不存在",solution:"①设备没有注册到萤石云平台,请检查下设备网络参数,确保能正常连接网络②设备序列号不存在",updateTime:152203484e4},{moduleCode:"",detailCode:"160048",description:"带宽超出系统接入带宽",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120003",description:"参数异常,SDK版本过低",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160049",description:"IP或者端口不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120004",description:"参数异常,SDK版本过低",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160050",description:"添加的设备版本不支持需要升级才能接入",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120005",description:"安全认证失败,需进行SDK安全认证",solution:"已去掉安全验证",updateTime:152203484e4},{moduleCode:"",detailCode:"160051",description:"添加的设备不支持接入",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120006",description:"网络异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160052",description:"添加的设备通道号出错",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120007",description:"设备不在线",solution:"参考服务中心排查方法",updateTime:152203484e4},{moduleCode:"",detailCode:"160053",description:"添加的设备分辨率不支持",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120008",description:"设备响应超时",solution:"设备响应超时,请检测设备网络或重试",updateTime:152203484e4},{moduleCode:"",detailCode:"160054",description:"添加的设备账号被锁定",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120009",description:"子账号不能添加设备",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160055",description:"添加的设备取码流出错",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120010",description:"设备验证码错误",solution:"验证码在设备标签上,六位大写字母,注意大小写",updateTime:152203484e4},{moduleCode:"",detailCode:"160056",description:"删除设备失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120012",description:"设备添加失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160057",description:"删除的设备未关联",solution:"检查IPC与NVR是否有关联关系",updateTime:152203484e4},{moduleCode:"",detailCode:"120013",description:"设备已被别人添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160060",description:"地址未绑定",solution:"请前往官网设置直播",updateTime:152203484e4},{moduleCode:"",detailCode:"120014",description:"设备序列号不正确",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160061",description:"账户流量已超出或未购买,限制开通",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120015",description:"设备不支持该功能",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160062",description:"该通道直播已开通",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120016",description:"当前设备正在格式化",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160063",description:"直播未使用或直播已关闭",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120017",description:"设备已被自己添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160070",description:"设备不能转移给自己",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120018",description:"该用户不拥有该设备",solution:"确认设备是否属于用户",updateTime:152203484e4},{moduleCode:"",detailCode:"160071",description:"设备不能转移,设备与其他设备存在关联关系",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400001",description:"参数为空",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120019",description:"设备不支持云存储服务",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160072",description:"设备不能转移,通道被分享给其他用户或者分享到视频广场",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400002",description:"参数错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120020",description:"设备在线,被自己添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160073",description:"云存储转移失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400025",description:"设备不支持对讲",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120021",description:"设备在线,但是未被用户添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160080",description:"当前正在声源定位",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400029",description:"没有初始化或资源被释放",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120022",description:"设备在线,但是已经被别的用户添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160081",description:"当前正在轨迹巡航",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400030",description:"json解析异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120023",description:"设备不在线,未被用户添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160082",description:"设备正在响应本次声源定位",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400031",description:"网络异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120024",description:"设备不在线,但是已经被别的用户添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160083",description:"当前正在开启隐私遮蔽",solution:"设备正在操作隐私遮蔽,无法进行当前操作",updateTime:152203484e4},{moduleCode:"",detailCode:"400032",description:"设备信息异常为空",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120025",description:"重复申请分享",solution:"确认设备是否由添加过该设备且申请过分享的账户下是否还存在分享记录",updateTime:152203484e4},{moduleCode:"",detailCode:"160084",description:"当前正在关闭隐私遮蔽",solution:"设备正在操作隐私遮蔽,无法进行当前操作",updateTime:152203484e4},{moduleCode:"",detailCode:"400034",description:"取流超时",solution:"一般是由于网络状况不好导致,可以尝试下让用户重新播放",updateTime:152203484e4},{moduleCode:"",detailCode:"120026",description:"视频广场不存在该视频",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"380290",description:" 连接CAS服务器失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400035",description:"设备已加密,需要输入验证码",solution:"收到此错误码,需要让用户输入验证码后,调用EZPlayer.setPlayKey传入验证码,并重新调用播放函数",updateTime:152203484e4},{moduleCode:"",detailCode:"120027",description:"视频转码失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361001",description:"对讲服务端排队超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400036",description:"播放验证码错误",solution:"收到此错误码,需要让用户输入验证码后,调用EZPlayer.setPlayKey传入验证码,并重新调用播放函数",updateTime:152203484e4},{moduleCode:"",detailCode:"120028",description:"设备固件升级包不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361002",description:"对讲服务端处理超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400037",description:"surfacehold错误",solution:"请检查是否是播放之前销毁了surface,收到此错误也可以重新建立surface后播放",updateTime:152203484e4},{moduleCode:"",detailCode:"120029",description:"设备不在线,但是已经被自己添加",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361003",description:"设备链接对讲服务器超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400100",description:"未知错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120030",description:"该用户不拥有该视频广场视频",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361004",description:"服务器内部错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400200",description:"player sdk出错,这种错误一般开发者也是无法解决,不具体分类传出,传一个统一的inner错误码出去",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120031",description:"开启终端绑定,硬件特征码验证失败",solution:"请在萤石客户端关闭终端绑定,参考此步骤",updateTime:152203484e4},{moduleCode:"",detailCode:"361005",description:"解析消息失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400300",description:"内存溢出",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120032",description:"该用户下通道不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361006",description:"请求重定向--需要向其他服务申请对讲",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400901",description:"设备不在线,可以提示用户",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120033",description:"无法收藏自己分享的视频",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361007",description:"请求url非法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400902",description:"accesstoken异常或失效,需要重新获取accesstoken,并传入到sdk",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120034",description:"该用户下无设备",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361008",description:"token失效",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400903",description:"当前账号开启了终端绑定,只允许指定设备登录操作,提示用户登录i.ys7.com解除终端绑定",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120090",description:"用户反馈失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361009",description:"设备验证码或者通信秘钥不匹配",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400904",description:"设备正在对讲中",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120095",description:"APP包下载失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361010",description:"设备已经在对讲",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400905",description:"设备开启了隐私保护,不允许预览、对讲等",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120096",description:"APP包信息删除失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361011",description:"设备10s响应超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120101",description:"视频不支持分享给本人",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361012",description:"设备不在线",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320002",description:"参数无效",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120102",description:"无相应邀请信息",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361013",description:"设备开启隐私保护拒绝对讲",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320003",description:"暂不支持此操作",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120103",description:"好友已存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361014",description:"token无权限",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320004",description:"内存溢出",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120104",description:"好友不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361015",description:"设备返回session不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320005",description:"创建CAS session失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120105",description:"好友状态错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361016",description:"验证token其他异常错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320006",description:"创建cloud session失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120106",description:"对应群组不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361017",description:"服务端监听设备建立端口超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320007",description:"token失效",solution:"重新设置token后再重试",updateTime:152203484e4},{moduleCode:"",detailCode:"120107",description:"不能添加自己为好友",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361018",description:"设备链路异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320008",description:"token池里面没有token,请传入token",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120108",description:"当前用户和所添加用户不是好友关系",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361019",description:"对讲服务端不支持的信令消息",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320009",description:"传入新的INIT_PARAM并reset(保留,目前未用)",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120109",description:"对应分享不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361020",description:"对讲服务端解析对讲请求未携带会话描述能力集",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320010",description:"请重试",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120110",description:"好友群组不属于当前用户",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361021",description:"对讲服务端优先能力集结果为空",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320011",description:"500毫秒后请重试",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120111",description:"好友不是等待验证状态",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361022",description:"cas链路异常",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320012",description:"token池已满",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120112",description:"添加应用下的用户为好友失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361023",description:"对讲服务端分配对讲会话资源失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320013",description:"P2P client超过限制",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120201",description:"操作报警信息失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361024",description:"对讲服务端解析信令消息失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320014",description:"sdk未初始化",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120202",description:"操作留言信息失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390001",description:"通用错误返回",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320015",description:"超时",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120301",description:"根据UUID查询报警消息不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390002",description:"入参为空指针",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320016",description:"正在打洞中",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120302",description:"根据UUID查询图片不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390003",description:"入参值无效",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320017",description:"没有视频文件头(播放器层面产生和处理此错误)",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120303",description:"根据FID查询图片不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390004",description:"信令消息解析非法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320018",description:"解码错误/超时(播放器层面产生和处理此错误)",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120305",description:"设备ip解析错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390005",description:"内存资源不足",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320019",description:"取消(保留,用户不用处理)",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120401",description:"用户云空间信息不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390006",description:"协议格式不对或者消息体长度超过STREAM_MAX_MSGBODY_LEN",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320020",description:"播放过程中预连接被用户清除预操作信息",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120402",description:"云空间操作失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390007",description:"设备序列号长度不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320021",description:"流加密码不对",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120403",description:"用户目录不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390008",description:"取流url长度不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320022",description:"未传入播放窗口",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120404",description:"要操作的目标目录不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390009",description:"解析vtm返回vtdu地址不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"100200",description:"操作成功",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120405",description:"要删除的文件信息不存在",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390010",description:"解析vtm返回级联vtdu地址不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101001",description:"用户名不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120406",description:"已开通云存储",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390011",description:"解析vtm返回会话标识长度不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101002",description:"用户名已被占用",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120407",description:"开通记录失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390012",description:"vtdu返回流头长度不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101003",description:"密码不合法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120500",description:"获取数据错误",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390013",description:"vtdu会话长度非法",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101004",description:"密码为同一字符",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120501",description:"开锁失败",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390014",description:"回调函数未注册",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101006",description:"手机号码已经被注册",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120502",description:"室内机未收到呼叫",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390015",description:"vtdu成功响应未携带会话标识",solution:"",updateTime:152203484e4}],E2="200",A2="操作成功!",X2={data:C2,code:E2,msg:A2},b2=function(){function V(x,m){i(this,V),this.coreX=x,this.coreY=m,console.log("ErrorCode",X2)}return a(V,[{key:"toString",value:function(){return"".concat(this.coreX,"-").concat(this.coreY)}},{key:"matchErrorInfo",value:function(m){return X2.data.find(function(g){return g.detailCode.substr(-4)==m})}}]),V}(),J={color:"red",backgroundColor:"red",activeColor:"red",btnList:[{btnKey:"ade5d065a113432e8091a1c5bc819c57-934f270c08b14e928bf0c2ae8e1a937d-header-0",iconId:"deviceID",part:"left",defaultActive:1,isrender:1,themeId:"934f270c08b14e928bf0c2ae8e1a937d"},{btnKey:"ade5d065a113432e8091a1c5bc819c57-934f270c08b14e928bf0c2ae8e1a937d-header-1",iconId:"deviceName",part:"left",defaultActive:1,isrender:1,themeId:"934f270c08b14e928bf0c2ae8e1a937d"}]},p2={color:"blue",backgroundColor:"blue",activeColor:"blue",btnList:[{btnKey:"ade5d065a113432e8091a1c5bc819c57-934f270c08b14e928bf0c2ae8e1a937d-footer-0",iconId:"play",part:"left",defaultActive:0,isrender:0,themeId:"934f270c08b14e928bf0c2ae8e1a937d"}]},N2={header:J,footer:p2},e3=function V(x){this.jsPlugin=x;var m={isMouseDown:!1,isOver:!1,mousePosition:null,oldTime:null,nowTime:null,moved:null,hoverTime:"2018-12-07 12:00:00",hoverLeft:0,timeTipShow:!1,randomNum:123,timeWidthTbls:[60,1800,3600,86400],timeUnits:["范围: 1分钟; 单位: 秒","范围: 30分钟; 单位: 分钟","范围: 1小时; 单位: 分钟","范围: 1天; 单位: 小时","范围: 3天; 单位: 小时"],drawPen:null,timeSection:[],canvasWidth:null,canvasHeight:null,timeTips:null},g=this;Object.keys(m).forEach(function(S){g[S]=m[S]}),this.options={width:this.canvasWidth,height:48,time:new Date().getTime(),timeSection:[],timeWidth:0},V.prototype.subTime=function(S){return S<10?"0"+S:S},V.prototype.tranTime=function(S){var A=S;if(S){var P=new Date(S);A=P.getFullYear()+"/"+(P.getMonth()+1)+"/"+P.getDate()+" "+this.subTime(P.getHours())+":"+this.subTime(P.getMinutes())+":"+this.subTime(P.getSeconds())}return A},V.prototype.init=function(S){S.width&&document.getElementById(S.id).setAttribute("width",parseInt(S.width,10)+"px");var A=this,P=this.options;A.randomNum=(Math.random()+"").split(".").join(""),A.timeWidthTblIndex=P.timeWidth;var N=document.querySelector("#".concat(this.jsPlugin.id,"-canvas"));A.drawPen=N.getContext("2d"),A.nowTime=P.time||Date.now(),A.timeSection=P.timeSection||[],A.canvasWidth=N.offsetWidth,A.canvasHeight=N.offsetHeight,A.updata(),document.getElementById("".concat(this.jsPlugin.id,"-canvas")).addEventListener("mousemove",function(r2){A.options.readOnly||A.mousemove(r2)}),document.getElementById("".concat(this.jsPlugin.id,"-canvas")).addEventListener("mouseover",function(r2){A.options.readOnly||A.mouseover(r2)}),document.getElementById("".concat(this.jsPlugin.id,"-canvas")).addEventListener("mouseleave",function(r2){A.options.readOnly||A.mouseleave(r2)}),document.getElementById("".concat(this.jsPlugin.id,"-canvas")).addEventListener("mousedown",function(r2){A.options.readOnly||A.mousedown(r2)}),document.getElementById("".concat(this.jsPlugin.id,"-canvas")).addEventListener("mouseup",function(r2){if(!A.options.readOnly){var l2=S.onChange;A.mouseUpFn(r2,l2)}})},V.prototype.setWidth=function(S){var A=this,P=this;S.width&&(document.getElementById(this.jsPlugin.id).style.width=S.width,document.getElementById("".concat(this.jsPlugin.id,"-canvas")).style.width=S.width,document.getElementById("".concat(this.jsPlugin.id,"-canvas-container")).style.width=S.width,P.canvasWidth=S.width,setTimeout(function(){A.updata({time:new Date})},500))},V.prototype.mousemove=function(S){if(this.isMouseDown&&this.isOver){var A=this.mousePosition-S.pageX;if(A===0)return;var P=0;switch(this.timeWidth){case 60:P=1/10;break;case 1800:P=1/20*60;break;case 3600:P=1/20*60;break;case 86400:P=1/30*60*60;break}var N=new Date(this.oldTime).getTime()+A*P*1e3;this.updata({time:N}),this.moved=!0}else{var r2=parseInt(document.getElementById("".concat(this.jsPlugin.id,"-canvas-container")).offsetLeft,10);this.mousePosition=S.pageX-r2,this.updata()}},V.prototype.mousedown=function(S){this.isMouseDown=!0,this.mousePosition=S.pageX,this.oldTime=this.nowTime},V.prototype.mouseover=function(S){this.isOver=!0},V.prototype.mouseleave=function(S){this.isOver=!1,this.isMouseDown=!1,this.updata()},V.prototype.changeSize=function(S){console.log("changeSize",S),this.options.timeWidth=S,this.updata({timeWidth:S})},V.prototype.mouseUpFn=function(S,A){if(this.isMouseDown&&(this.isMouseDown=!1,this.moved)){this.moved=!1;var P=this.subTime(new Date(this.nowTime).getHours())+":"+this.subTime(new Date(this.nowTime).getMinutes())+":"+this.subTime(new Date(this.nowTime).getSeconds()),N=new Date(this.oldTime).getFullYear()+"/"+(new Date(this.oldTime).getMonth()+1)+"/"+new Date(this.oldTime).getDate();this.nowTime=new Date("".concat(N," ").concat(P)),this.updata({time:this.nowTime}),this.oldTime=this.nowTime,console.log("nowTime",new Date(this.nowTime),"".concat(N," ").concat(P)),A(this.nowTime)}},V.prototype.readOnly=function(S){console.log("更改为只读"),this.options.readOnly=!0,document.getElementById("".concat(this.jsPlugin.id,"-canvas")).style.cursor="not-allowed"},V.prototype.unReadOnly=function(S){console.log("更改为只读"),this.options.readOnly=!1,document.getElementById("".concat(this.jsPlugin.id,"-canvas")).style.cursor="pointer"},V.prototype.run=function(S){this.isMouseDown||this.updata(S)},V.prototype.getTime=function(S){console.log("this",this),console.log("当前时间",new Date(this.nowTime))},V.prototype.updata=function(S){var A=this;S=S||{},A.nowTime=S.time||A.nowTime,A.timeSection=S.timeSection||A.timeSection,A.timeWidthTblIndex=S.timeWidth||A.timeWidthTblIndex,A.timeWidth=A.timeWidthTbls[S.timeWidth||A.timeWidthTblIndex],A.timeUnit=A.timeUnits[S.timeWidth||A.timeWidthTblIndex],S.timeWidth===0&&(A.timeWidthTblIndex=0,A.timeWidth=A.timeWidthTbls[0],A.timeUnit=A.timeUnits[0]),A.drawPen.fillStyle="#000000",A.drawPen.fillRect(0,0,A.canvasWidth,A.canvasHeight),A.drawScale(),A.drawRecord(),A.drawOtherMsg(),document.getElementById("".concat(this.jsPlugin.id,"-canvas-container")).style.width=A.options.width+"px",document.getElementById("".concat(this.jsPlugin.id,"-canvas")).style.width=A.options.width+"px",document.getElementById("".concat(this.jsPlugin.id,"-canvas-container")).style.height=A.options.height+"px",document.getElementById("".concat(this.jsPlugin.id,"-canvas")).style.height=A.options.height+"px"},V.prototype.drawSolidLine=function(S,A,P,N,r2,l2){this.drawPen.save(),this.drawPen.strokeStyle=l2,this.drawPen.lineWidth=r2,this.drawPen.beginPath(),this.drawPen.moveTo(S,A),this.drawPen.lineTo(P,N),this.drawPen.stroke(),this.drawPen.restore()},V.prototype.drawString=function(S,A,P,N,r2){this.drawPen.font="12px serif",this.drawPen.fillStyle="#ffffff",this.drawPen.textAlign=N||"left",this.drawPen.fillText(S,A,P+10)},V.prototype.drawScale=function(){var S=this,A="rgba(255,255,255)",P=new Date(S.nowTime),N=P.getFullYear(),r2=P.getSeconds(),l2=P.getMinutes(),s2=P.getHours(),Q=P.getDate(),X=0;switch(S.timeWidth){case 60:{var D2=parseInt(S.canvasWidth/10);P.setSeconds(P.getSeconds()-parseInt(D2/2,10)),Q=P.getDate(),s2=P.getHours(),l2=P.getMinutes(),r2=P.getSeconds();for(var g2=0;g2A.canvasWidth&&(g2=A.canvasWidth),g2<=0&&(g2=0),g2}},V.prototype.drawOtherMsg=function(){this.drawSolidLine(this.canvasWidth/2,0,this.canvasWidth/2,this.canvasHeight,2,"#1890FF"),this.drawPen.shadowBlur=0,this.isOver&&!this.isMouseDown?(this.mouseTime=this.mousePosition/this.canvasWidth*this.timeWidth*1e3+this.nowTime-this.timeWidth/2*1e3,this.mouseString=this.tranTime(this.mouseTime),this.hoverTime=this.mouseString,this.hoverLeft=this.mousePosition-60,this.timeTipShow=!0):this.timeTipShow=!1}},h3=function(){function V(x){if(i(this,V),this.jSPlugin=x,!document.getElementById("".concat(this.jSPlugin.id,"-audioControls")))return!1;this.currentTimeWidth=0,this.date=new Date,this.datepickerVisible=!1,this.seekTimer=null,this.disabled=!1,this.seekFrequency=2e3,this.jSPlugin.params&&this.jSPlugin.params.seekFrequency&&(this.seekFrequency=this.jSPlugin.params.seekFrequency),this.recInit()}return a(V,[{key:"recInit",value:function(){var m=this;this.currentTimeWidth=0;var g=parseInt(getComputedStyle(document.getElementById(this.jSPlugin.id)).width,10)-100,S=document.createElement("div");S.style="display:inline-block;height:48px;",S.id=this.jSPlugin.id+"-canvas-container";var A=document.createElement("canvas");A.id=this.jSPlugin.id+"-canvas",A.className="time-line-body",A.height="48",A.width=g,A.style="display:inline-block;",A.innerHTML="该浏览器不支持canvas",S.appendChild(A),f(S,document.getElementById("".concat(this.jSPlugin.id,"-audioControls")));var P=document.createElement("div");P.className="timeline-controls",P.style="display:flex;width:100px;height:48px;text-align:center;line-height: 48px;vertical-align: top;background: #000000;";var N=`
-`);E.innerHTML=L,f(E,S),this.timeLine=new e3(this.jSPlugin),this.timeLine.init({id:this.jSPlugin.id+"-canvas",width:g,onChange:function(X){console.log("time",X,new Date(X).Format("yyyyMMddhhmmss"));var D2=new Date(X).Format("yyyyMMddhhmmss");if(console.log("----------------this.jSPlugin.url",m.jSPlugin.url),P(m.jSPlugin.url).type==="cloud.rec"||m.jSPlugin.capacity&&m.jSPlugin.capacity.support_seek_playback=="1"){var g2=function(){m.jSPlugin.seek(D2.substr(8,6),"235959"),m.unSyncTimeLine(),setTimeout(function(){m.syncTimeLine()},6e3)};m.seekTimer?clearTimeout(m.seekTimer):g2(),m.seekTimer=setTimeout(function(){g2(),clearTimeout(m.seekTimer),m.seekTimer=null},m.seekFrequency)}else{var C=function(){setTimeout(function(){m.disabled=!1},m.seekFrequency)},I=function(B){m.disabled=!0,m.jSPlugin.pause().then(function(){console.log("暂停成功"),m.jSPlugin.resume(D2).then(function(A){console.log("恢复成功:",A),m.jSPlugin.Theme&&m.jSPlugin.Theme.setDecoderState({play:!0}),m.jSPlugin.Theme&&m.jSPlugin.Theme.decoderState.state.sound&&m.jSPlugin.openSound(),B&&B()}).catch(function(A){console.log("恢复失败",A)})}).catch(function(){console.log("暂停失败"),m.jSPlugin.resume(D2).then(function(A){console.log("恢复成功"),m.jSPlugin.Theme&&m.jSPlugin.Theme.setDecoderState({play:!0}),B&&B()}).catch(function(A){console.log("恢复失败",A)})})};m.disabled?(console.log("操作频繁,等待2秒后执行"),m.seekTimer&&clearTimeout(m.seekTimer),m.seekTimer=setTimeout(function(){I(C)},m.seekFrequency)):I(C)}}}),this.syncTimeLine(),u("".concat(this.jSPlugin.staticPath,"/rec/datepicker.min.css")),l("".concat(this.jSPlugin.staticPath,"/rec/jquery.min.js"),function(){l("".concat(m.jSPlugin.staticPath,"/rec/datepicker.js"),function(){l("".concat(m.jSPlugin.staticPath,"/rec/datepicker.zh-CN.js"),function(){!document.getElementsByClassName("datepicker-container")[0]&&$("#".concat(m.jSPlugin.id,"-datepicker")).datepicker&&$("#".concat(m.jSPlugin.id,"-datepicker")).datepicker({autoShow:!1,autoHide:!0,autoPick:!0,language:"zh-CN",date:new Date(h("begin",m.jSPlugin.params.url).replace(/(\d{4})(\d{2})(\d{2})/,"$1-$2-$3"))||new Date,format:"yyyy-mm-dd",endDate:new Date,inline:!0,container:document.getElementById("".concat(m.jSPlugin.id,"-wrap"))}),document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="none"),m.datepickerVisible=!1,$("#".concat(m.jSPlugin.id,"-datepicker")).on("pick.datepicker",function(Q){console.log("重新选择日期",Q.date,new Date(Q.date).Format("yyyyMMdd"),new Date(document.getElementById("".concat(m.jSPlugin.id,"-datepicker")).value).Format("yyyyMMdd")),Q.date>new Date||new Date(Q.date).Format("yyyyMMdd")===new Date(document.getElementById("".concat(m.jSPlugin.id,"-datepicker")).value).Format("yyyyMMdd")?Q.preventDefault():(document.getElementById("".concat(m.jSPlugin.id,"-datepicker")).value=new Date(Q.date).Format("yyyy-MM-dd"),m.renderRec(Q.date),m.jSPlugin.decoderState&&m.jSPlugin.decoderState.state?m.jSPlugin.decoderState.state.cloudRec?m.jSPlugin.changePlayUrl({begin:new Date(Q.date).Format("yyyyMMdd"),type:"cloud.rec"}):m.jSPlugin.decoderState.state.rec?m.jSPlugin.changePlayUrl({begin:new Date(Q.date).Format("yyyyMMdd"),type:"rec"}):m.jSPlugin.changePlayUrl({begin:new Date(Q.date).Format("yyyyMMdd")}):m.jSPlugin.changePlayUrl({begin:new Date(Q.date).Format("yyyyMMdd")})),document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="none"),m.datepickerVisible=!1,m.jSPlugin.decoderState&&m.jSPlugin.decoderState&&m.jSPlugin.decoderState.state&&m.jSPlugin.decoderState.state.zoom&&(m.jSPlugin.setDecoderState({zoom:!1}),m.jSPlugin.Zoom.stopZoom())}),$("#".concat(m.jSPlugin.id,"-datepicker")).off("click").on("click",function(Q){console.log("点击日期"),m.datepickerVisible?document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="none"):document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="inline"),m.datepickerVisible=!m.datepickerVisible})})})}),document.getElementById("".concat(this.jSPlugin.id,"-timeline-scale-add")).onclick=function(){var Q=m.currentTimeWidth;Q<3&&m.timeLine.changeSize(++m.currentTimeWidth)},document.getElementById("".concat(this.jSPlugin.id,"-timeline-scale-sub")).onclick=function(){var Q=m.currentTimeWidth;Q>0&&m.timeLine.changeSize(--m.currentTimeWidth)};var r2=h("begin",this.jSPlugin.url)||new Date().Format("yyyyMMdd");this.renderRec("".concat(r2.slice(0,4),"-").concat(r2.slice(4,6),"-").concat(r2.slice(6,8))),this.observer=new MutationObserver(function(Q,X){m.recAutoSize()});var l2={attributes:!0,attributeOldValue:!0,attributeFilter:["style"]},s2=document.getElementById("".concat(this.jSPlugin.id));this.observer.observe(s2,l2)}},{key:"setDatepickerDate",value:function(m){if(document.getElementsByClassName("datepicker-container")[0]){var g=document.getElementsByClassName("datepicker-container")[0],S=g.parentNode;S.removeChild(g),document.getElementById("".concat(this.jSPlugin.id,"-datepicker")).value=m.replace(/(\d{4})(\d{2})(\d{2})/,"$1-$2-$3"),$("#".concat(this.jSPlugin.id,"-datepicker")).datepicker({autoShow:!1,autoHide:!0,autoPick:!0,language:"zh-CN",defaultDate:m,format:"yyyy-mm-dd",endDate:new Date,inline:!0,container:document.getElementById("".concat(this.jSPlugin.id,"-wrap"))})}}},{key:"datepickerHide",value:function(){document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="none"),this.datepickerVisible=!1}},{key:"datepickerShow",value:function(){document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="inline"),this.datepickerVisible=!0}},{key:"recAutoSize",value:function(){var m=this;if(document.getElementById("".concat(this.jSPlugin.id,"-canvas"))){var g=parseInt(getComputedStyle(document.getElementById(this.jSPlugin.id)).width,10)-100;g!==parseInt(document.getElementById("".concat(this.jSPlugin.id,"-canvas")).width)&&(document.getElementById("".concat(this.jSPlugin.id,"-canvas")).width=g,this.timeLine.init({id:"".concat(this.jSPlugin.id,"-canvas"),width:g,onChange:function(x){console.log("time",x,new Date(x).Format("yyyyMMddhhmmss")),console.log("jSPlugin",m.jSPlugin);var E=new Date(x).Format("yyyyMMddhhmmss");m.jSPlugin.changePlayUrl({begin:E})}}),this.renderRec(this.date),this.syncTimeLine())}}},{key:"syncTimeLine",value:function(){var m=this;this.jSPlugin.recTimer&&clearInterval(this.jSPlugin.recTimer),this.jSPlugin.recTimer=setInterval(function(){var g=m.jSPlugin.getOSDTime();g.then(function(S){var x=S.data;x===-1?console.log("获取播放时间错误"):x>0&&m.timeLine.run({time:new Date(x>1e12?x:x*1e3)})}).catch(function(S){})},1e3)}},{key:"unSyncTimeLine",value:function(){this.jSPlugin.recTimer&&clearInterval(this.jSPlugin.recTimer)}},{key:"renderRec",value:function(m){var g=this;this.date=m;var S=this,x=new Date(new Date(m).Format("yyyy-MM-dd 00:00:00").replace(/-/g,"/")).getTime(),E=new Date(new Date(m).Format("yyyy-MM-dd 23:59:59").replace(/-/g,"/")).getTime();this.timeLine.getRecord([],x,E),console.log("-----------233---------this.jSPlugin.url",this.jSPlugin.url);var L={accessToken:this.jSPlugin.accessToken,recType:P(this.jSPlugin.url).type==="cloud.rec"?1:2,deviceSerial:P(this.jSPlugin.url).deviceSerial,channelNo:P(this.jSPlugin.url).channelNo,startTime:x,endTime:E,version:"2.0"},r2=function(Q){if(Q.data&&Q.data.files&&Q.data.files.length>0){var X=Q.data.files,D2=new Date().getTime(),g2=Q.data.isAll;if(g2)g.timeLine.getRecord(X,x,E);else{var C=function I(){function Y(B){B.data&&B.data.files&&B.data.files.length>0?B.data.isAll==!1?(B.data.files&&(X=X.concat(B.data.files)),D2=B.data.nextFileTime>0?B.data.nextFileTime:new Date().getTime(),I()):(console.log("云存储执行渲染片段"),S.timeLine.getRecord(X,x,E)):S.timeLine.getRecord(X,x,E)}L.startTime=D2,j(this.jSPlugin.env.domain+"/api/lapp/video/by/time","POST",L,"",Y)};C()}g.timeLine.run({time:new Date(x)})}else Q.data&&Q.data.length>0&&(console.log("获取本地录像片段成功",Q),S.timeLine.getRecord(Q.data,x,E),S.timeLine.run({time:new Date(x)}))},l2=this.jSPlugin.env.domain+"/api/lapp/video/by/time";j(l2,"POST",L,"",r2)}}]),R}(),I2=function(N){console.log("执行TimeLine - params",N),this.state={id:N.id,start:"00:00:00",end:"24:00:00",current:0,timelag:30,timeArr:[],availTimeLine:[],scrollTop:0,index:0,date:"",noTimeLineTxt:"",disabled:!1};var m=this;this.setState=function(g){Object.keys(g).forEach(function(S){m.state[S]=g[S],S==="scrollTop"&&document.getElementById("time-line-item").parentNode.scrollTo(0,g[S]),S==="current"&&(document.getElementById("time-line-current").innerHTML=g[S])})},this.setDisabled=function(g){this.setState({disabled:g}),document.getElementById("time-line-item").parentNode.style.overflowY=g?"hidden":"scroll"},this.timeToSecond=function(g){var S=g.split(":"),x=Number(S[0]),E=Number(S[1]),L=Number(S[2]);return x*60*60+E*60+(L||0)},this.minuteToTime=function(g){var S=Math.floor(g/60),x=g%60;return(S>9?S:"0"+S)+":"+(x>9?x:"0"+x)},this.timeToMinute=function(g){var S=g.split(":"),x=Number(S[0]),E=Number(S[1]);return x*60+E},this.getPalyParam=N.getPalyParam,document.getElementById("time-line-item").parentNode.ontouchstart=function(){if(m.state.disabled)return!1;N.ontouchstart()},document.getElementById("time-line-item").parentNode.ontouchmove=function(){if(m.state.disabled)return!1;N.ontouchmove()},document.getElementById("time-line-item").parentNode.ontouchend=function(){if(m.state.disabled)return!1;var g,S=new Promise(function(x,E){var L=-1;g=setInterval(function(){var r2=document.getElementById("time-line-item").parentNode.scrollTop;r2!==L?(console.log("scolling",r2,L),L=r2):(console.log("scoll stop",r2,L),clearInterval(g),x(r2))},100)});S.then(function(x){console.log("scollPromise: then",x,m),m.rectTopTotime(x),console.log("页面滚动实际高度",x,m.state),m.getPalyParam({current:m.state.current})}),N.ontouchend()},this.matchTimeDot()};I2.prototype.changeScale=function(R){this.setState({timelag:R}),this.matchTimeDot()},I2.prototype.setDateLine=function(R,N){R.length>0?(typeof N=="undefined"&&(N=R.length-1),this.setState({availTimeLine:R,start:R[N].st,end:R[N].et,current:R[N].st}),console.log("this.state",this.state),this.matchRecTimeDot(),this.primaryOffsetH()):(this.setState({availTimeLine:[]}),console.log("this.state",this.state),this.matchRecTimeDot())},I2.prototype.matchTimeDot=function(){var R=this.state,N=R.start,m=R.end,g=R.timelag;R.availTimeLine,console.log("start",N,"end",m);var S=[],x=this.timeToMinute(m);x=Math.floor(x/g)*g;for(var E=x;E>=0;){var L=0,r2=0,l2=[];E==x&&(L=70),E==0&&(r2=230);var s2=this.minuteToTime(E);S.push({id:E,current:s2,label:"a"+E,marginTop:L,marginBottom:r2,recArr:l2}),E=E-g}this.setState({timeArr:S}),this.renderDateLine()},I2.prototype.matchRecTimeDot=function(){var R=this.state,N=R.start,m=R.end,g=R.timelag,S=R.availTimeLine,x=R.timeArr;console.log("start",N,"end",m);var E=[],L=S.length;if(L===0)for(var r2=0;r2g2&&x[r2].id')}),r2+=" ').concat(S.current,"
"),E.innerHTML=r2,g.appendChild(E)})},I2.prototype.primaryOffsetH=function(){var R=this.state,N=R.start,m=R.timelag,g=R.timeArr,S=g[0].current,x=this.timeToSecond(S),E=this.timeToSecond(N),L=x-E,r2=Math.ceil(L/m)+60;this.setState({scrollTop:r2}),console.log("起始偏移量",r2)},I2.prototype.currentOffsetH=function(){var R=this.state,N=R.current,m=R.timelag,g=R.timeArr,S=g[0].current,x=this.timeToSecond(S),E=this.timeToSecond(N),L=x-E,r2=Math.ceil(L/m)+60;this.setState({scrollTop:r2})},I2.prototype.rectTopTotime=function(R){var N=this.state.timelag,m=Math.floor(R/60),g=R-m*60,S,x;if(console.log("index:",m,"offsetH:",g),g==0)S=this.state.timeArr[m-1].current,x=0;else{var E=this.state.timeArr[m].current,L=this.timeToMinute(E),r2=60-g,l2=r2*N,s2=Math.floor(l2/60)+L,Q=Math.floor(l2/60)*60;x=Math.ceil(l2-Q),S=this.minuteToTime(s2)}this.setState({current:S+":"+(x>9?x:"0"+x),scrollTop:R})},I2.prototype.stepScrollTimeLine=function(R){this.setState({current:R}),this.currentOffsetH()},I2.prototype.secondCountDown=function(R){var N=this.state.current,m=N.split(":"),g=Number(m[0]),S=Number(m[1]),x=Number(m[2]),E=g*60*60+S*60+x+1,L=Math.floor(E/3600),r2=Math.floor((E-L*3600)/60),l2=E-L*3600-r2*60;this.setState({current:(L>9?L:"0"+L)+":"+(r2>9?r2:"0"+r2)+":"+(l2>9?l2:"0"+l2)})};var n2=I2;Date.prototype.Format=function(R){var N={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(R)&&(R=R.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var m in N)new RegExp("("+m+")").test(R)&&(R=R.replace(RegExp.$1,RegExp.$1.length==1?N[m]:("00"+N[m]).substr((""+N[m]).length)));return R};function P2(R){var N=new Date(R),m=N.getHours(),g=N.getMinutes(),S=N.getSeconds();return(m>9?m:"0"+m)+":"+(g>9?g:"0"+g)+":"+(S>9?S:"0"+S)}var Z2=function(){function R(N,m,g){var S=this;i(this,R),this.changeRecSpeed=m,this.resetMobileZoomStatus=g,this.isMobile=!0,this.jSPlugin=N,this.timer=null,this.date=new Date().Format("yyyy-MM-dd"),this.begin=(new Date().Format("yyyy-MM-dd")+" 00:00:00").replace(/-/g,"/"),this.end=(new Date().Format("yyyy-MM-dd")+" 23:59:59").replace(/-/g,"/"),this.initBegin=null,this.initEnd=null,this.type=P(this.jSPlugin.url).type,this.operating=!1,this.seekTimer=null,this.disabled=!1,this.seekFrequency=2e3,this.jSPlugin.params&&this.jSPlugin.params.seekFrequency&&(this.seekFrequency=this.jSPlugin.params.seekFrequency);var x=document.createElement("style");if(x.innerHTML=`
+`);P.innerHTML=N,f(P,S),this.timeLine=new e3(this.jSPlugin),this.timeLine.init({id:this.jSPlugin.id+"-canvas",width:g,onChange:function(X){console.log("time",X,new Date(X).Format("yyyyMMddhhmmss"));var D2=new Date(X).Format("yyyyMMddhhmmss");if(console.log("----------------this.jSPlugin.url",m.jSPlugin.url),R(m.jSPlugin.url).type==="cloud.rec"||m.jSPlugin.capacity&&m.jSPlugin.capacity.support_seek_playback=="1"){var g2=function(){m.jSPlugin.seek(D2.substr(8,6),"235959"),m.unSyncTimeLine(),setTimeout(function(){m.syncTimeLine()},6e3)};m.seekTimer?clearTimeout(m.seekTimer):g2(),m.seekTimer=setTimeout(function(){g2(),clearTimeout(m.seekTimer),m.seekTimer=null},m.seekFrequency)}else{var M=function(){setTimeout(function(){m.disabled=!1},m.seekFrequency)},L=function(O){m.disabled=!0,m.jSPlugin.pause().then(function(){console.log("暂停成功"),m.jSPlugin.resume(D2).then(function(C){console.log("恢复成功:",C),m.jSPlugin.Theme&&m.jSPlugin.Theme.setDecoderState({play:!0}),m.jSPlugin.Theme&&m.jSPlugin.Theme.decoderState.state.sound&&m.jSPlugin.openSound(),O&&O()}).catch(function(C){console.log("恢复失败",C)})}).catch(function(){console.log("暂停失败"),m.jSPlugin.resume(D2).then(function(C){console.log("恢复成功"),m.jSPlugin.Theme&&m.jSPlugin.Theme.setDecoderState({play:!0}),O&&O()}).catch(function(C){console.log("恢复失败",C)})})};m.disabled?(console.log("操作频繁,等待2秒后执行"),m.seekTimer&&clearTimeout(m.seekTimer),m.seekTimer=setTimeout(function(){L(M)},m.seekFrequency)):L(M)}}}),this.syncTimeLine(),u("".concat(this.jSPlugin.staticPath,"/rec/datepicker.min.css")),l("".concat(this.jSPlugin.staticPath,"/rec/jquery.min.js"),function(){l("".concat(m.jSPlugin.staticPath,"/rec/datepicker.js"),function(){l("".concat(m.jSPlugin.staticPath,"/rec/datepicker.zh-CN.js"),function(){!document.getElementsByClassName("datepicker-container")[0]&&$("#".concat(m.jSPlugin.id,"-datepicker")).datepicker&&$("#".concat(m.jSPlugin.id,"-datepicker")).datepicker({autoShow:!1,autoHide:!0,autoPick:!0,language:"zh-CN",date:new Date(h("begin",m.jSPlugin.params.url).replace(/(\d{4})(\d{2})(\d{2})/,"$1-$2-$3"))||new Date,format:"yyyy-mm-dd",endDate:new Date,inline:!0,container:document.getElementById("".concat(m.jSPlugin.id,"-wrap"))}),document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="none"),m.datepickerVisible=!1,$("#".concat(m.jSPlugin.id,"-datepicker")).on("pick.datepicker",function(Q){console.log("重新选择日期",Q.date,new Date(Q.date).Format("yyyyMMdd"),new Date(document.getElementById("".concat(m.jSPlugin.id,"-datepicker")).value).Format("yyyyMMdd")),Q.date>new Date||new Date(Q.date).Format("yyyyMMdd")===new Date(document.getElementById("".concat(m.jSPlugin.id,"-datepicker")).value).Format("yyyyMMdd")?Q.preventDefault():(document.getElementById("".concat(m.jSPlugin.id,"-datepicker")).value=new Date(Q.date).Format("yyyy-MM-dd"),m.renderRec(Q.date),m.jSPlugin.decoderState&&m.jSPlugin.decoderState.state?m.jSPlugin.decoderState.state.cloudRec?m.jSPlugin.changePlayUrl({begin:new Date(Q.date).Format("yyyyMMdd"),type:"cloud.rec"}):m.jSPlugin.decoderState.state.rec?m.jSPlugin.changePlayUrl({begin:new Date(Q.date).Format("yyyyMMdd"),type:"rec"}):m.jSPlugin.changePlayUrl({begin:new Date(Q.date).Format("yyyyMMdd")}):m.jSPlugin.changePlayUrl({begin:new Date(Q.date).Format("yyyyMMdd")})),document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="none"),m.datepickerVisible=!1,m.jSPlugin.decoderState&&m.jSPlugin.decoderState&&m.jSPlugin.decoderState.state&&m.jSPlugin.decoderState.state.zoom&&(m.jSPlugin.setDecoderState({zoom:!1}),m.jSPlugin.Zoom.stopZoom())}),$("#".concat(m.jSPlugin.id,"-datepicker")).off("click").on("click",function(Q){console.log("点击日期"),m.datepickerVisible?document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="none"):document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="inline"),m.datepickerVisible=!m.datepickerVisible})})})}),document.getElementById("".concat(this.jSPlugin.id,"-timeline-scale-add")).onclick=function(){var Q=m.currentTimeWidth;Q<3&&m.timeLine.changeSize(++m.currentTimeWidth)},document.getElementById("".concat(this.jSPlugin.id,"-timeline-scale-sub")).onclick=function(){var Q=m.currentTimeWidth;Q>0&&m.timeLine.changeSize(--m.currentTimeWidth)};var r2=h("begin",this.jSPlugin.url)||new Date().Format("yyyyMMdd");this.renderRec("".concat(r2.slice(0,4),"-").concat(r2.slice(4,6),"-").concat(r2.slice(6,8))),this.observer=new MutationObserver(function(Q,X){m.recAutoSize()});var l2={attributes:!0,attributeOldValue:!0,attributeFilter:["style"]},s2=document.getElementById("".concat(this.jSPlugin.id));this.observer.observe(s2,l2)}},{key:"setDatepickerDate",value:function(m){if(document.getElementsByClassName("datepicker-container")[0]){var g=document.getElementsByClassName("datepicker-container")[0],S=g.parentNode;S.removeChild(g),document.getElementById("".concat(this.jSPlugin.id,"-datepicker")).value=m.replace(/(\d{4})(\d{2})(\d{2})/,"$1-$2-$3"),$("#".concat(this.jSPlugin.id,"-datepicker")).datepicker({autoShow:!1,autoHide:!0,autoPick:!0,language:"zh-CN",defaultDate:m,format:"yyyy-mm-dd",endDate:new Date,inline:!0,container:document.getElementById("".concat(this.jSPlugin.id,"-wrap"))})}}},{key:"datepickerHide",value:function(){document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="none"),this.datepickerVisible=!1}},{key:"datepickerShow",value:function(){document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="inline"),this.datepickerVisible=!0}},{key:"recAutoSize",value:function(){var m=this;if(document.getElementById("".concat(this.jSPlugin.id,"-canvas"))){var g=parseInt(getComputedStyle(document.getElementById(this.jSPlugin.id)).width,10)-100;g!==parseInt(document.getElementById("".concat(this.jSPlugin.id,"-canvas")).width)&&(document.getElementById("".concat(this.jSPlugin.id,"-canvas")).width=g,this.timeLine.init({id:"".concat(this.jSPlugin.id,"-canvas"),width:g,onChange:function(A){console.log("time",A,new Date(A).Format("yyyyMMddhhmmss")),console.log("jSPlugin",m.jSPlugin);var P=new Date(A).Format("yyyyMMddhhmmss");m.jSPlugin.changePlayUrl({begin:P})}}),this.renderRec(this.date),this.syncTimeLine())}}},{key:"syncTimeLine",value:function(){var m=this;this.jSPlugin.recTimer&&clearInterval(this.jSPlugin.recTimer),this.jSPlugin.recTimer=setInterval(function(){var g=m.jSPlugin.getOSDTime();g.then(function(S){var A=S.data;A===-1?console.log("获取播放时间错误"):A>0&&m.timeLine.run({time:new Date(A>1e12?A:A*1e3)})}).catch(function(S){})},1e3)}},{key:"unSyncTimeLine",value:function(){this.jSPlugin.recTimer&&clearInterval(this.jSPlugin.recTimer)}},{key:"renderRec",value:function(m){var g=this;this.date=m;var S=this,A=new Date(new Date(m).Format("yyyy-MM-dd 00:00:00").replace(/-/g,"/")).getTime(),P=new Date(new Date(m).Format("yyyy-MM-dd 23:59:59").replace(/-/g,"/")).getTime();this.timeLine.getRecord([],A,P),console.log("-----------233---------this.jSPlugin.url",this.jSPlugin.url);var N={accessToken:this.jSPlugin.accessToken,recType:R(this.jSPlugin.url).type==="cloud.rec"?1:2,deviceSerial:R(this.jSPlugin.url).deviceSerial,channelNo:R(this.jSPlugin.url).channelNo,startTime:A,endTime:P,version:"2.0"},r2=function(Q){if(Q.data&&Q.data.files&&Q.data.files.length>0){var X=Q.data.files,D2=new Date().getTime(),g2=Q.data.isAll;if(g2)g.timeLine.getRecord(X,A,P);else{var M=function L(){function Y(O){O.data&&O.data.files&&O.data.files.length>0?O.data.isAll==!1?(O.data.files&&(X=X.concat(O.data.files)),D2=O.data.nextFileTime>0?O.data.nextFileTime:new Date().getTime(),L()):(console.log("云存储执行渲染片段"),S.timeLine.getRecord(X,A,P)):S.timeLine.getRecord(X,A,P)}N.startTime=D2,j(this.jSPlugin.env.domain+"/api/lapp/video/by/time","POST",N,"",Y)};M()}g.timeLine.run({time:new Date(A)})}else Q.data&&Q.data.length>0&&(console.log("获取本地录像片段成功",Q),S.timeLine.getRecord(Q.data,A,P),S.timeLine.run({time:new Date(A)}))},l2=this.jSPlugin.env.domain+"/api/lapp/video/by/time";j(l2,"POST",N,"",r2)}}]),V}(),I2=function(x){console.log("执行TimeLine - params",x),this.state={id:x.id,start:"00:00:00",end:"24:00:00",current:0,timelag:30,timeArr:[],availTimeLine:[],scrollTop:0,index:0,date:"",noTimeLineTxt:"",disabled:!1};var m=this;this.setState=function(g){Object.keys(g).forEach(function(S){m.state[S]=g[S],S==="scrollTop"&&document.getElementById("time-line-item").parentNode.scrollTo(0,g[S]),S==="current"&&(document.getElementById("time-line-current").innerHTML=g[S])})},this.setDisabled=function(g){this.setState({disabled:g}),document.getElementById("time-line-item").parentNode.style.overflowY=g?"hidden":"scroll"},this.timeToSecond=function(g){var S=g.split(":"),A=Number(S[0]),P=Number(S[1]),N=Number(S[2]);return A*60*60+P*60+(N||0)},this.minuteToTime=function(g){var S=Math.floor(g/60),A=g%60;return(S>9?S:"0"+S)+":"+(A>9?A:"0"+A)},this.timeToMinute=function(g){var S=g.split(":"),A=Number(S[0]),P=Number(S[1]);return A*60+P},this.getPalyParam=x.getPalyParam,document.getElementById("time-line-item").parentNode.ontouchstart=function(){if(m.state.disabled)return!1;x.ontouchstart()},document.getElementById("time-line-item").parentNode.ontouchmove=function(){if(m.state.disabled)return!1;x.ontouchmove()},document.getElementById("time-line-item").parentNode.ontouchend=function(){if(m.state.disabled)return!1;var g,S=new Promise(function(A,P){var N=-1;g=setInterval(function(){var r2=document.getElementById("time-line-item").parentNode.scrollTop;r2!==N?(console.log("scolling",r2,N),N=r2):(console.log("scoll stop",r2,N),clearInterval(g),A(r2))},100)});S.then(function(A){console.log("scollPromise: then",A,m),m.rectTopTotime(A),console.log("页面滚动实际高度",A,m.state),m.getPalyParam({current:m.state.current})}),x.ontouchend()},this.matchTimeDot()};I2.prototype.changeScale=function(V){this.setState({timelag:V}),this.matchTimeDot()},I2.prototype.setDateLine=function(V,x){V.length>0?(typeof x=="undefined"&&(x=V.length-1),this.setState({availTimeLine:V,start:V[x].st,end:V[x].et,current:V[x].st}),console.log("this.state",this.state),this.matchRecTimeDot(),this.primaryOffsetH()):(this.setState({availTimeLine:[]}),console.log("this.state",this.state),this.matchRecTimeDot())},I2.prototype.matchTimeDot=function(){var V=this.state,x=V.start,m=V.end,g=V.timelag;V.availTimeLine,console.log("start",x,"end",m);var S=[],A=this.timeToMinute(m);A=Math.floor(A/g)*g;for(var P=A;P>=0;){var N=0,r2=0,l2=[];P==A&&(N=70),P==0&&(r2=230);var s2=this.minuteToTime(P);S.push({id:P,current:s2,label:"a"+P,marginTop:N,marginBottom:r2,recArr:l2}),P=P-g}this.setState({timeArr:S}),this.renderDateLine()},I2.prototype.matchRecTimeDot=function(){var V=this.state,x=V.start,m=V.end,g=V.timelag,S=V.availTimeLine,A=V.timeArr;console.log("start",x,"end",m);var P=[],N=S.length;if(N===0)for(var r2=0;r2g2&&A[r2].id')}),r2+=" ').concat(S.current,"
"),P.innerHTML=r2,g.appendChild(P)})},I2.prototype.primaryOffsetH=function(){var V=this.state,x=V.start,m=V.timelag,g=V.timeArr,S=g[0].current,A=this.timeToSecond(S),P=this.timeToSecond(x),N=A-P,r2=Math.ceil(N/m)+60;this.setState({scrollTop:r2}),console.log("起始偏移量",r2)},I2.prototype.currentOffsetH=function(){var V=this.state,x=V.current,m=V.timelag,g=V.timeArr,S=g[0].current,A=this.timeToSecond(S),P=this.timeToSecond(x),N=A-P,r2=Math.ceil(N/m)+60;this.setState({scrollTop:r2})},I2.prototype.rectTopTotime=function(V){var x=this.state.timelag,m=Math.floor(V/60),g=V-m*60,S,A;if(console.log("index:",m,"offsetH:",g),g==0)S=this.state.timeArr[m-1].current,A=0;else{var P=this.state.timeArr[m].current,N=this.timeToMinute(P),r2=60-g,l2=r2*x,s2=Math.floor(l2/60)+N,Q=Math.floor(l2/60)*60;A=Math.ceil(l2-Q),S=this.minuteToTime(s2)}this.setState({current:S+":"+(A>9?A:"0"+A),scrollTop:V})},I2.prototype.stepScrollTimeLine=function(V){this.setState({current:V}),this.currentOffsetH()},I2.prototype.secondCountDown=function(V){var x=this.state.current,m=x.split(":"),g=Number(m[0]),S=Number(m[1]),A=Number(m[2]),P=g*60*60+S*60+A+1,N=Math.floor(P/3600),r2=Math.floor((P-N*3600)/60),l2=P-N*3600-r2*60;this.setState({current:(N>9?N:"0"+N)+":"+(r2>9?r2:"0"+r2)+":"+(l2>9?l2:"0"+l2)})};var n2=I2;Date.prototype.Format=function(V){var x={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(V)&&(V=V.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var m in x)new RegExp("("+m+")").test(V)&&(V=V.replace(RegExp.$1,RegExp.$1.length==1?x[m]:("00"+x[m]).substr((""+x[m]).length)));return V};function P2(V){var x=new Date(V),m=x.getHours(),g=x.getMinutes(),S=x.getSeconds();return(m>9?m:"0"+m)+":"+(g>9?g:"0"+g)+":"+(S>9?S:"0"+S)}var Z2=function(){function V(x,m,g){var S=this;i(this,V),this.changeRecSpeed=m,this.resetMobileZoomStatus=g,this.isMobile=!0,this.jSPlugin=x,this.timer=null,this.date=new Date().Format("yyyy-MM-dd"),this.begin=(new Date().Format("yyyy-MM-dd")+" 00:00:00").replace(/-/g,"/"),this.end=(new Date().Format("yyyy-MM-dd")+" 23:59:59").replace(/-/g,"/"),this.initBegin=null,this.initEnd=null,this.type=R(this.jSPlugin.url).type,this.operating=!1,this.seekTimer=null,this.disabled=!1,this.seekFrequency=2e3,this.jSPlugin.params&&this.jSPlugin.params.seekFrequency&&(this.seekFrequency=this.jSPlugin.params.seekFrequency);var A=document.createElement("style");if(A.innerHTML=`
body{
padding: 0;
margin: 0;
@@ -328,7 +328,7 @@ C11.4,16.3,11,16.6,10.6,16.6z" />
input[type="checkbox"]:checked+.advice span:last-child svg {
fill: #648FFC !important;
- }`,document.getElementsByTagName("head")[0].appendChild(x),h("begin",this.jSPlugin.url)){var E=h("begin",this.jSPlugin.url);this.date=E.slice(0,4)+"/"+E.slice(4,6)+"/"+E.slice(6,8),this.begin=this.date+" ".concat(E.slice(8,10)||"00",":").concat(E.slice(10,12)||"00",":").concat(E.slice(12,14)||"00"),this.end=this.date+" 23:59:59",this.initBegin=this.begin}if(h("end",this.jSPlugin.url)){var L=h("end",this.jSPlugin.url);this.end=this.date+" ".concat(L.slice(8,10)||"23",":").concat(L.slice(10,12)||"59",":").concat(L.slice(12,14)||"59"),this.initEnd=this.end}var r2=document.createElement("div");r2.id="date-switch-container-wrap",r2.className="date-switch-container-wrap",r2.style="",r2.innerHTML=`
+ }`,document.getElementsByTagName("head")[0].appendChild(A),h("begin",this.jSPlugin.url)){var P=h("begin",this.jSPlugin.url);this.date=P.slice(0,4)+"/"+P.slice(4,6)+"/"+P.slice(6,8),this.begin=this.date+" ".concat(P.slice(8,10)||"00",":").concat(P.slice(10,12)||"00",":").concat(P.slice(12,14)||"00"),this.end=this.date+" 23:59:59",this.initBegin=this.begin}if(h("end",this.jSPlugin.url)){var N=h("end",this.jSPlugin.url);this.end=this.date+" ".concat(N.slice(8,10)||"23",":").concat(N.slice(10,12)||"59",":").concat(N.slice(12,14)||"59"),this.initEnd=this.end}var r2=document.createElement("div");r2.id="date-switch-container-wrap",r2.className="date-switch-container-wrap",r2.style="",r2.innerHTML=`
今日录像
@@ -374,7 +374,7 @@ C11.4,16.3,11,16.6,10.6,16.6z" />
- `,f(s2,l2);var Q=function(I){console.log("子组件传值到父组件",I,I.current);var Y=I.current,B=new Date(S.date).Format("yyyyMMdd").substr(0,8)+(I.current?Y.replace(/:/g,""):I.current.replace(/:/g,""));if(S.initBegin&&new Date("".concat(S.date," ").concat(I.current)).getTime()new Date(S.initEnd).getTime()&&(console.log("超过限制最高值"),B=new Date(S.initBegin).Format("yyyyMMddhhmmss")),S.type==="cloud.rec"){var A=function(){S.jSPlugin.seek(B.substr(8,6),"235959"),setTimeout(function(){S.syncTimeLine()},6e3)};S.seekTimer?clearTimeout(S.seekTimer):A(),console.log("this.jsPlug",S.jSPlugin.params),S.seekTimer=setTimeout(function(){A(),clearTimeout(S.seekTimer),S.seekTimer=null},S.seekFrequency)}else{var k=function(){setTimeout(function(){S.disabled=!1},S.seekFrequency)},V=function(R2){S.disabled=!0,S.jSPlugin.pause().then(function(){console.log("暂停成功"),S.jSPlugin.resume(B).then(function(t3){console.log("恢复成功"),S.jSPlugin.Theme&&S.jSPlugin.Theme.setDecoderState({play:!0}),S.jSPlugin.Theme&&S.jSPlugin.Theme.decoderState.state.sound&&S.jSPlugin.openSound(),S.syncTimeLine(),R2&&R2()})}).catch(function(){console.log("暂停失败"),S.jSPlugin.resume(B).then(function(t3){console.log("恢复成功"),S.jSPlugin.Theme&&S.jSPlugin.Theme.setDecoderState({play:!0}),S.syncTimeLine(),R2&&R2()})})};S.disabled?(console.log("操作频繁,等待2秒后执行"),S.seekTimer&&clearTimeout(S.seekTimer),S.seekTimer=setTimeout(function(){V(k)},S.seekFrequency)):V(k)}},X=function(){S.operating=!0,S.unSyncTimeLine()},D2=function(){},g2=function(){S.operating=!1,console.log("ontouchend")};this.TimeLineOBJ=new n2({id:"time-line-item",getPalyParam:Q,ontouchstart:X,ontouchmove:D2,ontouchend:g2}),this.fetchDeviceRec(),document.getElementById("date").addEventListener("change",function(C){if(console.log("日期变化",C.target.value),S.initBegin||S.initEnd)return console.log("您开启了时间限制,无法切换日期"),!1;S.date=new Date(C.target.value).Format("yyyy/MM/dd"),S.begin=S.date+" 00:00:00",S.end=S.date+" 23:59:59",S.fetchDeviceRec(),S.jSPlugin.changePlayUrl({type:S.type,begin:"".concat(new Date(S.date).Format("yyyyMMdd"),"000000")}),S.changeRecSpeed(1),S.resetMobileZoomStatus()}),document.getElementById("cloudType").checked=this.type==="rec",document.getElementById("cloudType").addEventListener("change",function(C){var I=C.target.checked?2:1;S.type=C.target.checked?"rec":"cloud.rec",console.log("recType",I),S.fetchDeviceRec(),S.jSPlugin.changePlayUrl({type:S.type,begin:"".concat(new Date(S.date).Format("yyyyMMdd"),"000000")}).then(function(){console.log("切换类型成功"),S.syncTimeLine(),S.changeRecSpeed(1),S.resetMobileZoomStatus()},function(Y){console.log("err",Y)}).catch(function(Y){console.log(Y)})}),this.syncTimeLine()}return a(R,[{key:"fetchDeviceRec",value:function(){var m=this,g=function(E){var L=E.length;document.getElementById("recCount").innerHTML=L;for(var r2=[],l2=L-1;l2>=0;l2--){var s2=E[l2],Q=P2(s2.endTime),X=P2(s2.startTime);r2.push({st:X,et:Q})}m.TimeLineOBJ.setDateLine(r2)},S=new FormData;S.append("deviceSerial",P(this.jSPlugin.url).deviceSerial),S.append("channelNo",P(this.jSPlugin.url).channelNo),S.append("accessToken",this.jSPlugin.accessToken),S.append("recType",this.type==="cloud.rec"?1:2),S.append("startTime",new Date(this.begin).getTime()),S.append("endTime",new Date(this.end).getTime()),fetch(this.jSPlugin.env.domain+"/api/lapp/video/by/time",{method:"POST",body:S}).then(function(x){return x.json()}).then(function(x){if(x.code==200&&x.data){var E=[];E=x.data,g(E)}else g([])})}},{key:"syncTimeLine",value:function(){var m=this,g=function(x){var E=new Date(x),L=E.getHours(),r2=E.getMinutes(),l2=E.getSeconds();return(L>9?L:"0"+L)+":"+(r2>9?r2:"0"+r2)+":"+(l2>9?l2:"0"+l2)};this.timer&&clearInterval(this.timer),this.timer=setInterval(function(){if(m.operating)return console.log("操作中"),!1;m.jSPlugin.getOSDTime().then(function(S){S.data>0?m.TimeLineOBJ.stepScrollTimeLine(g(S.data*1e3)):(console.log("未找到当前获取播放时间,等待中..."),console.log("res:-----------------",S))}).catch(function(S){console.log("err:-----",S),console.log("未找到当前获取播放时间,等待中...")})},1e3)}},{key:"unSyncTimeLine",value:function(){this.timer&&clearInterval(this.timer)}}]),R}(),f3=[{code:200,msg:"",desc:"请求成功",text:"操作成功",type:"ptzStart"},{code:10001,msg:"操作失败",desc:"参数为空或格式不正确",text:"参数错误",type:"ptzStart"},{code:10002,msg:"账号异常,操作失败",desc:"重新获取accessToken",text:"accessToken异常或过期",type:"ptzStart"},{code:10005,msg:"账号异常,操作失败",desc:"appKey被冻结",text:"appKey异常",type:"ptzStart"},{code:20002,msg:"设备不存在,请检查设备连接情况",desc:"",text:"设备不存在",type:"ptzStart"},{code:20006,msg:"操作失败,请检查设备网络情况",desc:"检查设备网络状况,稍后再试",text:"网络异常",type:"ptzStart"},{code:20007,msg:"操作失败,请检查设备在线情况",desc:"检查设备是否在线",text:"设备不在线",type:"ptzStart"},{code:20008,msg:"操作过于频繁,稍后再试",desc:"操作过于频繁,稍后再试",text:"设备响应超时",type:"ptzStart"},{code:20014,msg:"操作失败",desc:"",text:"deviceSerial不合法",type:"ptzStart"},{code:20032,msg:"通道不存在请检查设备连接情况",desc:"该用户下通道不存在",text:"该用户下通道不存在",type:"ptzStart"},{code:49999,msg:"操作失败,请重试",desc:"接口调用异常",text:"数据异常",type:"ptzStart"},{code:6e4,msg:"操作失败,设备不支持该操作",desc:"",text:"设备不支持云台控制",type:"ptzStart"},{code:60001,msg:"操作失败,用户无权限",desc:"",text:"用户无云台控制权限",type:"ptzStart"},{code:60002,msg:"设备已旋转到上限位",desc:"",text:"设备云台旋转达到上限位",type:"ptzStart"},{code:60003,msg:"设备已旋转到下限位",desc:"",text:"设备云台旋转达到下限位",type:"ptzStart"},{code:60004,msg:"设备已旋转到左限位",desc:"",text:"设备云台旋转达到左限位",type:"ptzStart"},{code:60005,msg:"设备已旋转到右限位",desc:"",text:"设备云台旋转达到右限位",type:"ptzStart"},{code:60006,msg:"操作失败,请重试",desc:"稍候再试",text:"云台当前操作失败",type:"ptzStart"},{code:60009,msg:"设备正在操作中",desc:"",text:"正在调用预置点",type:"ptzStart"},{code:60020,msg:"操作失败",desc:"确认设备是否支持该操作",text:"不支持该命令",type:"ptzStart"}],v3=[{code:200,msg:"",desc:"请求成功",text:"操作成功",type:"ptzStop"},{code:10001,msg:"操作失败",desc:"参数为空或格式不正确",text:"参数错误",type:"ptzStop"},{code:10002,msg:"账号异常,操作失败",desc:"重新获取accessToken",text:"accessToken异常或过期",type:"ptzStop"},{code:10005,msg:"账号异常,操作失败",desc:"appKey被冻结",text:"appKey异常",type:"ptzStop"},{code:20002,msg:"设备不存在,请检查设备连接情况",desc:"",text:"设备不存在",type:"ptzStop"},{code:20006,msg:"操作失败,请检查设备网络情况",desc:"检查设备网络状况,稍后再试",text:"网络异常",type:"ptzStop"},{code:20007,msg:"操作失败,请检查设备在线情况",desc:"检查设备是否在线",text:"设备不在线",type:"ptzStop"},{code:20008,msg:"操作过于频繁,稍后再试",desc:"操作过于频繁,稍后再试",text:"设备响应超时",type:"ptzStop"},{code:20014,msg:"操作失败",desc:"",text:"deviceSerial不合法",type:"ptzStop"},{code:20032,msg:"通道不存在请检查设备连接情况",desc:"该用户下通道不存在",text:"该用户下通道不存在",type:"ptzStop"},{code:49999,msg:"操作失败,请重试",desc:"接口调用异常",text:"数据异常",type:"ptzStop"},{code:6e4,msg:"操作失败,设备不支持该操作",desc:"",text:"设备不支持云台控制",type:"ptzStop"},{code:60001,msg:"操作失败,用户无权限",desc:"",text:"用户无云台控制权限",type:"ptzStop"},{code:60006,msg:"操作失败,请重试",desc:"稍候再试",text:"云台当前操作失败",type:"ptzStop"},{code:60009,msg:"设备正在操作中",desc:"",text:"正在调用预置点",type:"ptzStop"},{code:60020,msg:"操作失败",desc:"确认设备是否支持该操作",text:"不支持该命令",type:"ptzStop"}],O3=[{code:200,msg:"",desc:"请求成功",text:"操作成功",type:"talk"},{code:10001,msg:"播放失败",desc:"参数为空或格式不正确",text:"参数错误",type:"talk"},{code:10002,msg:"账号异常,操作失败",desc:"",text:"accessToken异常或过期",type:"talk"},{code:10031,msg:"账号异常,操作失败",desc:"",text:"子账户或萤石用户没有权限",type:"talk"},{code:20002,msg:"设备不存在请检查设备连接情况",desc:"设备序列号输入有误或者设备未被添加或者通道异常",text:"设备不存在",type:"talk"},{code:60059,msg:"播放失败",desc:"",text:"ezopen地址均不可用",type:"talk"}],H3=[{code:200,msg:"",desc:"",text:"操作成功",type:"time"},{code:10001,msg:"播放失败",desc:"参数为空或格式不正确",text:"参数错误",type:"time"},{code:10002,msg:"账号异常,播放失败",desc:"",text:"accessToken异常或过期",type:"time"},{code:10004,msg:"账号异常,播放失败",desc:"",text:"用户不存在",type:"time"},{code:10005,msg:"账号异常,播放失败",desc:"",text:"appKey异常",type:"time"},{code:10011,msg:"播放失败",desc:"设备对应用户未注册至应用下",text:"未开通萤石服务",type:"time"},{code:10013,msg:"账号异常,播放失败",desc:"",text:"非开发者账号无权限调用",type:"time"},{code:10030,msg:"播放失败",desc:"",text:"appkey和appsecret不匹配",type:"time"},{code:20002,msg:"设备不存在请检查设备连接情况",desc:"设备序列号输入有误或者设备未被添加或者通道异常",text:"设备不存在",type:"time"},{code:20014,msg:"播放失败",desc:"",text:"deviceSerial不合法",type:"time"},{code:20032,msg:"设备不存在请检查设备连接情况",desc:"",text:"该用户下通道不存在",type:"time"},{code:60024,msg:"播放失败请重试",desc:"",text:"取消订阅操作失败",type:"time"},{code:49999,msg:"播放失败请重试",desc:"",text:"操作异常",type:"time"}],F2={ptzStart:f3,ptzStop:v3,talk:O3,time:H3},L3=function(){function R(N,m){i(this,R),this.coreX=N,this.coreY=m,console.log("uikitCode",F2)}return a(R,[{key:"toString",value:function(){return"".concat(this.coreX,"-").concat(this.coreY)}},{key:"matchInfo",value:function(m,g){if(F2[g]){var S={};return F2[g].map(function(x){x.code==m&&(S=x)}),S}else return{code:500,msg:"未知错误",desc:"未知的错误码,或错误码类型有误",text:"",type:g}}}]),R}(),C3=function(){function R(N){var m=this;if(i(this,R),this.jSPlugin=N,this.codeHandler=new L3,this.pluginStatus=new G2(this,this.jSPlugin.id),console.log("云台初始化"),document.getElementById(this.jSPlugin.id+"-ez-ptz-item"))return!1;var g=document.createElement("div");g.id=this.jSPlugin.id+"-ez-ptz-item",g.className="ez-ptz-wrap",g.style="display:none";var S=document.createElement("style");S.innerHTML=`
+ `,f(s2,l2);var Q=function(L){console.log("子组件传值到父组件",L,L.current);var Y=L.current,O=new Date(S.date).Format("yyyyMMdd").substr(0,8)+(L.current?Y.replace(/:/g,""):L.current.replace(/:/g,""));if(S.initBegin&&new Date("".concat(S.date," ").concat(L.current)).getTime()new Date(S.initEnd).getTime()&&(console.log("超过限制最高值"),O=new Date(S.initBegin).Format("yyyyMMddhhmmss")),S.type==="cloud.rec"){var C=function(){S.jSPlugin.seek(O.substr(8,6),"235959"),setTimeout(function(){S.syncTimeLine()},6e3)};S.seekTimer?clearTimeout(S.seekTimer):C(),console.log("this.jsPlug",S.jSPlugin.params),S.seekTimer=setTimeout(function(){C(),clearTimeout(S.seekTimer),S.seekTimer=null},S.seekFrequency)}else{var I=function(){setTimeout(function(){S.disabled=!1},S.seekFrequency)},G=function(R2){S.disabled=!0,S.jSPlugin.pause().then(function(){console.log("暂停成功"),S.jSPlugin.resume(O).then(function(t3){console.log("恢复成功"),S.jSPlugin.Theme&&S.jSPlugin.Theme.setDecoderState({play:!0}),S.jSPlugin.Theme&&S.jSPlugin.Theme.decoderState.state.sound&&S.jSPlugin.openSound(),S.syncTimeLine(),R2&&R2()})}).catch(function(){console.log("暂停失败"),S.jSPlugin.resume(O).then(function(t3){console.log("恢复成功"),S.jSPlugin.Theme&&S.jSPlugin.Theme.setDecoderState({play:!0}),S.syncTimeLine(),R2&&R2()})})};S.disabled?(console.log("操作频繁,等待2秒后执行"),S.seekTimer&&clearTimeout(S.seekTimer),S.seekTimer=setTimeout(function(){G(I)},S.seekFrequency)):G(I)}},X=function(){S.operating=!0,S.unSyncTimeLine()},D2=function(){},g2=function(){S.operating=!1,console.log("ontouchend")};this.TimeLineOBJ=new n2({id:"time-line-item",getPalyParam:Q,ontouchstart:X,ontouchmove:D2,ontouchend:g2}),this.fetchDeviceRec(),document.getElementById("date").addEventListener("change",function(M){if(console.log("日期变化",M.target.value),S.initBegin||S.initEnd)return console.log("您开启了时间限制,无法切换日期"),!1;S.date=new Date(M.target.value).Format("yyyy/MM/dd"),S.begin=S.date+" 00:00:00",S.end=S.date+" 23:59:59",S.fetchDeviceRec(),S.jSPlugin.changePlayUrl({type:S.type,begin:"".concat(new Date(S.date).Format("yyyyMMdd"),"000000")}),S.changeRecSpeed(1),S.resetMobileZoomStatus()}),document.getElementById("cloudType").checked=this.type==="rec",document.getElementById("cloudType").addEventListener("change",function(M){var L=M.target.checked?2:1;S.type=M.target.checked?"rec":"cloud.rec",console.log("recType",L),S.fetchDeviceRec(),S.jSPlugin.changePlayUrl({type:S.type,begin:"".concat(new Date(S.date).Format("yyyyMMdd"),"000000")}).then(function(){console.log("切换类型成功"),S.syncTimeLine(),S.changeRecSpeed(1),S.resetMobileZoomStatus()},function(Y){console.log("err",Y)}).catch(function(Y){console.log(Y)})}),this.syncTimeLine()}return a(V,[{key:"fetchDeviceRec",value:function(){var m=this,g=function(P){var N=P.length;document.getElementById("recCount").innerHTML=N;for(var r2=[],l2=N-1;l2>=0;l2--){var s2=P[l2],Q=P2(s2.endTime),X=P2(s2.startTime);r2.push({st:X,et:Q})}m.TimeLineOBJ.setDateLine(r2)},S=new FormData;S.append("deviceSerial",R(this.jSPlugin.url).deviceSerial),S.append("channelNo",R(this.jSPlugin.url).channelNo),S.append("accessToken",this.jSPlugin.accessToken),S.append("recType",this.type==="cloud.rec"?1:2),S.append("startTime",new Date(this.begin).getTime()),S.append("endTime",new Date(this.end).getTime()),fetch(this.jSPlugin.env.domain+"/api/lapp/video/by/time",{method:"POST",body:S}).then(function(A){return A.json()}).then(function(A){if(A.code==200&&A.data){var P=[];P=A.data,g(P)}else g([])})}},{key:"syncTimeLine",value:function(){var m=this,g=function(A){var P=new Date(A),N=P.getHours(),r2=P.getMinutes(),l2=P.getSeconds();return(N>9?N:"0"+N)+":"+(r2>9?r2:"0"+r2)+":"+(l2>9?l2:"0"+l2)};this.timer&&clearInterval(this.timer),this.timer=setInterval(function(){if(m.operating)return console.log("操作中"),!1;m.jSPlugin.getOSDTime().then(function(S){S.data>0?m.TimeLineOBJ.stepScrollTimeLine(g(S.data*1e3)):(console.log("未找到当前获取播放时间,等待中..."),console.log("res:-----------------",S))}).catch(function(S){console.log("err:-----",S),console.log("未找到当前获取播放时间,等待中...")})},1e3)}},{key:"unSyncTimeLine",value:function(){this.timer&&clearInterval(this.timer)}}]),V}(),f3=[{code:200,msg:"",desc:"请求成功",text:"操作成功",type:"ptzStart"},{code:10001,msg:"操作失败",desc:"参数为空或格式不正确",text:"参数错误",type:"ptzStart"},{code:10002,msg:"账号异常,操作失败",desc:"重新获取accessToken",text:"accessToken异常或过期",type:"ptzStart"},{code:10005,msg:"账号异常,操作失败",desc:"appKey被冻结",text:"appKey异常",type:"ptzStart"},{code:20002,msg:"设备不存在,请检查设备连接情况",desc:"",text:"设备不存在",type:"ptzStart"},{code:20006,msg:"操作失败,请检查设备网络情况",desc:"检查设备网络状况,稍后再试",text:"网络异常",type:"ptzStart"},{code:20007,msg:"操作失败,请检查设备在线情况",desc:"检查设备是否在线",text:"设备不在线",type:"ptzStart"},{code:20008,msg:"操作过于频繁,稍后再试",desc:"操作过于频繁,稍后再试",text:"设备响应超时",type:"ptzStart"},{code:20014,msg:"操作失败",desc:"",text:"deviceSerial不合法",type:"ptzStart"},{code:20032,msg:"通道不存在请检查设备连接情况",desc:"该用户下通道不存在",text:"该用户下通道不存在",type:"ptzStart"},{code:49999,msg:"操作失败,请重试",desc:"接口调用异常",text:"数据异常",type:"ptzStart"},{code:6e4,msg:"操作失败,设备不支持该操作",desc:"",text:"设备不支持云台控制",type:"ptzStart"},{code:60001,msg:"操作失败,用户无权限",desc:"",text:"用户无云台控制权限",type:"ptzStart"},{code:60002,msg:"设备已旋转到上限位",desc:"",text:"设备云台旋转达到上限位",type:"ptzStart"},{code:60003,msg:"设备已旋转到下限位",desc:"",text:"设备云台旋转达到下限位",type:"ptzStart"},{code:60004,msg:"设备已旋转到左限位",desc:"",text:"设备云台旋转达到左限位",type:"ptzStart"},{code:60005,msg:"设备已旋转到右限位",desc:"",text:"设备云台旋转达到右限位",type:"ptzStart"},{code:60006,msg:"操作失败,请重试",desc:"稍候再试",text:"云台当前操作失败",type:"ptzStart"},{code:60009,msg:"设备正在操作中",desc:"",text:"正在调用预置点",type:"ptzStart"},{code:60020,msg:"操作失败",desc:"确认设备是否支持该操作",text:"不支持该命令",type:"ptzStart"}],v3=[{code:200,msg:"",desc:"请求成功",text:"操作成功",type:"ptzStop"},{code:10001,msg:"操作失败",desc:"参数为空或格式不正确",text:"参数错误",type:"ptzStop"},{code:10002,msg:"账号异常,操作失败",desc:"重新获取accessToken",text:"accessToken异常或过期",type:"ptzStop"},{code:10005,msg:"账号异常,操作失败",desc:"appKey被冻结",text:"appKey异常",type:"ptzStop"},{code:20002,msg:"设备不存在,请检查设备连接情况",desc:"",text:"设备不存在",type:"ptzStop"},{code:20006,msg:"操作失败,请检查设备网络情况",desc:"检查设备网络状况,稍后再试",text:"网络异常",type:"ptzStop"},{code:20007,msg:"操作失败,请检查设备在线情况",desc:"检查设备是否在线",text:"设备不在线",type:"ptzStop"},{code:20008,msg:"操作过于频繁,稍后再试",desc:"操作过于频繁,稍后再试",text:"设备响应超时",type:"ptzStop"},{code:20014,msg:"操作失败",desc:"",text:"deviceSerial不合法",type:"ptzStop"},{code:20032,msg:"通道不存在请检查设备连接情况",desc:"该用户下通道不存在",text:"该用户下通道不存在",type:"ptzStop"},{code:49999,msg:"操作失败,请重试",desc:"接口调用异常",text:"数据异常",type:"ptzStop"},{code:6e4,msg:"操作失败,设备不支持该操作",desc:"",text:"设备不支持云台控制",type:"ptzStop"},{code:60001,msg:"操作失败,用户无权限",desc:"",text:"用户无云台控制权限",type:"ptzStop"},{code:60006,msg:"操作失败,请重试",desc:"稍候再试",text:"云台当前操作失败",type:"ptzStop"},{code:60009,msg:"设备正在操作中",desc:"",text:"正在调用预置点",type:"ptzStop"},{code:60020,msg:"操作失败",desc:"确认设备是否支持该操作",text:"不支持该命令",type:"ptzStop"}],O3=[{code:200,msg:"",desc:"请求成功",text:"操作成功",type:"talk"},{code:10001,msg:"播放失败",desc:"参数为空或格式不正确",text:"参数错误",type:"talk"},{code:10002,msg:"账号异常,操作失败",desc:"",text:"accessToken异常或过期",type:"talk"},{code:10031,msg:"账号异常,操作失败",desc:"",text:"子账户或萤石用户没有权限",type:"talk"},{code:20002,msg:"设备不存在请检查设备连接情况",desc:"设备序列号输入有误或者设备未被添加或者通道异常",text:"设备不存在",type:"talk"},{code:60059,msg:"播放失败",desc:"",text:"ezopen地址均不可用",type:"talk"}],H3=[{code:200,msg:"",desc:"",text:"操作成功",type:"time"},{code:10001,msg:"播放失败",desc:"参数为空或格式不正确",text:"参数错误",type:"time"},{code:10002,msg:"账号异常,播放失败",desc:"",text:"accessToken异常或过期",type:"time"},{code:10004,msg:"账号异常,播放失败",desc:"",text:"用户不存在",type:"time"},{code:10005,msg:"账号异常,播放失败",desc:"",text:"appKey异常",type:"time"},{code:10011,msg:"播放失败",desc:"设备对应用户未注册至应用下",text:"未开通萤石服务",type:"time"},{code:10013,msg:"账号异常,播放失败",desc:"",text:"非开发者账号无权限调用",type:"time"},{code:10030,msg:"播放失败",desc:"",text:"appkey和appsecret不匹配",type:"time"},{code:20002,msg:"设备不存在请检查设备连接情况",desc:"设备序列号输入有误或者设备未被添加或者通道异常",text:"设备不存在",type:"time"},{code:20014,msg:"播放失败",desc:"",text:"deviceSerial不合法",type:"time"},{code:20032,msg:"设备不存在请检查设备连接情况",desc:"",text:"该用户下通道不存在",type:"time"},{code:60024,msg:"播放失败请重试",desc:"",text:"取消订阅操作失败",type:"time"},{code:49999,msg:"播放失败请重试",desc:"",text:"操作异常",type:"time"}],F2={ptzStart:f3,ptzStop:v3,talk:O3,time:H3},L3=function(){function V(x,m){i(this,V),this.coreX=x,this.coreY=m,console.log("uikitCode",F2)}return a(V,[{key:"toString",value:function(){return"".concat(this.coreX,"-").concat(this.coreY)}},{key:"matchInfo",value:function(m,g){if(F2[g]){var S={};return F2[g].map(function(A){A.code==m&&(S=A)}),S}else return{code:500,msg:"未知错误",desc:"未知的错误码,或错误码类型有误",text:"",type:g}}}]),V}(),C3=function(){function V(x){var m=this;if(i(this,V),this.jSPlugin=x,this.codeHandler=new L3,this.pluginStatus=new G2(this,this.jSPlugin.id),console.log("云台初始化"),document.getElementById(this.jSPlugin.id+"-ez-ptz-item"))return!1;var g=document.createElement("div");g.id=this.jSPlugin.id+"-ez-ptz-item",g.className="ez-ptz-wrap",g.style="display:none";var S=document.createElement("style");S.innerHTML=`
.ez-ptz-container {
position: relative;
width: 80px;
@@ -482,81 +482,81 @@ C11.4,16.3,11,16.6,10.6,16.6z" />
- `),document.getElementById("".concat(N.id,"-wrap")).appendChild(g),document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).onmousedown=function(x){x.preventDefault(),console.log("触摸开始"),m._handlePtzTouch(x,"start")},document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).onmouseup=function(x){x.preventDefault(),console.log("触摸结束"),m._handlePtzTouch(x,"stop")},document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).ontouchstart=function(x){x.preventDefault(),console.log("触摸开始"),m._handlePtzTouch(x,"start")},document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).ontouchend=function(x){x.preventDefault(),console.log("触摸结束",x),m._handlePtzTouch(x,"stop")}}return a(R,[{key:"show",value:function(){document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-item")).style="display: inline-block"}},{key:"hide",value:function(){document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-item")).style="display: none"}},{key:"_handlePtzTouch",value:function(m,g){var S=this,x=document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).getBoundingClientRect(),E=x.left+41,L=x.top+41,r2=m.x||m.changedTouches[0].clientX,l2=m.y||m.changedTouches[0].clientY,s2=r2-E,Q=l2-L,X=0,D2=this.jSPlugin.env.domain+"/api/lapp/device/ptz/start";if(Math.abs(s2)>Math.abs(Q)?s2>0?X=3:X=2:Q>0?X=1:X=0,/^rotate\(90/.test(document.getElementById("".concat(this.jSPlugin.id,"-wrap")).style.transform))switch(X){case 0:X=2;break;case 1:X=3;break;case 2:X=1;break;case 3:X=0;break}document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).style="background-image:linear-gradient(".concat(X===0?180:X===1?0:X===2?90:270,"deg, #1d8dd8 0%, rgba(100,143,252,0.00) 30%)"),g==="stop"&&(D2=this.jSPlugin.env.domain+"/api/lapp/device/ptz/stop",document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).style="");var g2=new FormData;g2.append("deviceSerial",P(this.jSPlugin.url).deviceSerial),g2.append("channelNo",P(this.jSPlugin.url).channelNo),g2.append("speed",1),g2.append("direction",X),g2.append("accessToken",this.jSPlugin.accessToken),fetch(D2,{method:"POST",body:g2}).then(function(C){return C.json()}).then(function(C){C.code==200||(console.log(C.code,S.codeHandler.matchInfo(C.code,g==="start"?"ptzStart":"ptzStop")),S.pluginStatus.loadingSetText({text:S.codeHandler.matchInfo(C.code,g==="start"?"ptzStart":"ptzStop").msg,color:"red",delayClear:2e3}),(C.code==60005||C.code==60002||C.code==60003||C.code==60004)&&(document.getElementById("".concat(S.jSPlugin.id,"-ez-ptz-container")).style="background-image:linear-gradient(".concat(X===0?180:X===1?0:X===2?90:270,"deg, #f45656 0%, rgba(100,143,252,0.00) 30%)")))}).catch(function(C){console.log("云台调用异常",C)})}}]),R}();(function(R){if(t(e)==="object")n.exports=R();else{var N;typeof window!="undefined"?N=window:typeof r7!="undefined"?N=r7:typeof self!="undefined"?N=self:N=this,N.adapter=R()}})(function(){return function(){function R(N,m,g){function S(L,r2){if(!m[L]){if(!N[L]){var l2=typeof a7=="function"&&a7;if(!r2&&l2)return l2(L,!0);if(x)return x(L,!0);var s2=new Error("Cannot find module '"+L+"'");throw s2.code="MODULE_NOT_FOUND",s2}var Q=m[L]={exports:{}};N[L][0].call(Q.exports,function(X){var D2=N[L][1][X];return S(D2||X)},Q,Q.exports,R,N,m,g)}return m[L].exports}for(var x=typeof a7=="function"&&a7,E=0;E0&&arguments[0]!==void 0?arguments[0]:{},B=Y.window,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0},k=S.log,V=S.detectBrowser(B),M2={browserDetails:V,commonShim:g2,extractVersion:S.extractVersion,disableLog:S.disableLog,disableWarnings:S.disableWarnings};switch(V.browser){case"chrome":if(!E||!E.shimPeerConnection||!A.shimChrome)return k("Chrome shim is not included in this adapter release."),M2;k("adapter.js shimming chrome."),M2.browserShim=E,E.shimGetUserMedia(B),E.shimMediaStream(B),E.shimPeerConnection(B),E.shimOnTrack(B),E.shimAddTrackRemoveTrack(B),E.shimGetSendersWithDtmf(B),E.shimGetStats(B),E.shimSenderReceiverGetStats(B),E.fixNegotiationNeeded(B),g2.shimRTCIceCandidate(B),g2.shimConnectionState(B),g2.shimMaxMessageSize(B),g2.shimSendThrowTypeError(B),g2.removeAllowExtmapMixed(B);break;case"firefox":if(!s2||!s2.shimPeerConnection||!A.shimFirefox)return k("Firefox shim is not included in this adapter release."),M2;k("adapter.js shimming firefox."),M2.browserShim=s2,s2.shimGetUserMedia(B),s2.shimPeerConnection(B),s2.shimOnTrack(B),s2.shimRemoveStream(B),s2.shimSenderGetStats(B),s2.shimReceiverGetStats(B),s2.shimRTCDataChannel(B),s2.shimAddTransceiver(B),s2.shimCreateOffer(B),s2.shimCreateAnswer(B),g2.shimRTCIceCandidate(B),g2.shimConnectionState(B),g2.shimMaxMessageSize(B),g2.shimSendThrowTypeError(B);break;case"edge":if(!r2||!r2.shimPeerConnection||!A.shimEdge)return k("MS edge shim is not included in this adapter release."),M2;k("adapter.js shimming edge."),M2.browserShim=r2,r2.shimGetUserMedia(B),r2.shimGetDisplayMedia(B),r2.shimPeerConnection(B),r2.shimReplaceTrack(B),g2.shimMaxMessageSize(B),g2.shimSendThrowTypeError(B);break;case"safari":if(!X||!A.shimSafari)return k("Safari shim is not included in this adapter release."),M2;k("adapter.js shimming safari."),M2.browserShim=X,X.shimRTCIceServerUrls(B),X.shimCreateOfferLegacy(B),X.shimCallbacksAPI(B),X.shimLocalStreamsAPI(B),X.shimRemoteStreamsAPI(B),X.shimTrackEventTransceiver(B),X.shimGetUserMedia(B),g2.shimRTCIceCandidate(B),g2.shimMaxMessageSize(B),g2.shimSendThrowTypeError(B),g2.removeAllowExtmapMixed(B);break;default:k("Unsupported browser!");break}return M2}},{"./chrome/chrome_shim":3,"./common_shim":6,"./edge/edge_shim":7,"./firefox/firefox_shim":11,"./safari/safari_shim":14,"./utils":15}],3:[function(R,N,m){Object.defineProperty(m,"__esModule",{value:!0}),m.shimGetDisplayMedia=m.shimGetUserMedia=void 0;var g=typeof Symbol=="function"&&t(Symbol.iterator)==="symbol"?function(A){return t(A)}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":t(A)},S=R("./getusermedia");Object.defineProperty(m,"shimGetUserMedia",{enumerable:!0,get:function(){return S.shimGetUserMedia}});var x=R("./getdisplaymedia");Object.defineProperty(m,"shimGetDisplayMedia",{enumerable:!0,get:function(){return x.shimGetDisplayMedia}}),m.shimMediaStream=s2,m.shimOnTrack=Q,m.shimGetSendersWithDtmf=X,m.shimGetStats=D2,m.shimSenderReceiverGetStats=g2,m.shimAddTrackRemoveTrackWithNative=C,m.shimAddTrackRemoveTrack=I,m.shimPeerConnection=Y,m.fixNegotiationNeeded=B;var E=R("../utils.js"),L=r2(E);function r2(A){if(A&&A.__esModule)return A;var k={};if(A!=null)for(var V in A)Object.prototype.hasOwnProperty.call(A,V)&&(k[V]=A[V]);return k.default=A,k}function l2(A,k,V){return k in A?Object.defineProperty(A,k,{value:V,enumerable:!0,configurable:!0,writable:!0}):A[k]=V,A}function s2(A){A.MediaStream=A.MediaStream||A.webkitMediaStream}function Q(A){if((typeof A=="undefined"?"undefined":g(A))==="object"&&A.RTCPeerConnection&&!("ontrack"in A.RTCPeerConnection.prototype)){Object.defineProperty(A.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(M2){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=M2)},enumerable:!0,configurable:!0});var k=A.RTCPeerConnection.prototype.setRemoteDescription;A.RTCPeerConnection.prototype.setRemoteDescription=function(){var M2=this;return this._ontrackpoly||(this._ontrackpoly=function(R2){R2.stream.addEventListener("addtrack",function(t3){var Q2=void 0;A.RTCPeerConnection.prototype.getReceivers?Q2=M2.getReceivers().find(function(b3){return b3.track&&b3.track.id===t3.track.id}):Q2={track:t3.track};var c3=new Event("track");c3.track=t3.track,c3.receiver=Q2,c3.transceiver={receiver:Q2},c3.streams=[R2.stream],M2.dispatchEvent(c3)}),R2.stream.getTracks().forEach(function(t3){var Q2=void 0;A.RTCPeerConnection.prototype.getReceivers?Q2=M2.getReceivers().find(function(b3){return b3.track&&b3.track.id===t3.id}):Q2={track:t3};var c3=new Event("track");c3.track=t3,c3.receiver=Q2,c3.transceiver={receiver:Q2},c3.streams=[R2.stream],M2.dispatchEvent(c3)})},this.addEventListener("addstream",this._ontrackpoly)),k.apply(this,arguments)}}else L.wrapPeerConnectionEvent(A,"track",function(V){return V.transceiver||Object.defineProperty(V,"transceiver",{value:{receiver:V.receiver}}),V})}function X(A){if((typeof A=="undefined"?"undefined":g(A))==="object"&&A.RTCPeerConnection&&!("getSenders"in A.RTCPeerConnection.prototype)&&"createDTMFSender"in A.RTCPeerConnection.prototype){var k=function(b3,M3){return{track:M3,get dtmf(){return this._dtmf===void 0&&(M3.kind==="audio"?this._dtmf=b3.createDTMFSender(M3):this._dtmf=null),this._dtmf},_pc:b3}};if(!A.RTCPeerConnection.prototype.getSenders){A.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};var V=A.RTCPeerConnection.prototype.addTrack;A.RTCPeerConnection.prototype.addTrack=function(b3,M3){var T3=V.apply(this,arguments);return T3||(T3=k(this,b3),this._senders.push(T3)),T3};var M2=A.RTCPeerConnection.prototype.removeTrack;A.RTCPeerConnection.prototype.removeTrack=function(b3){M2.apply(this,arguments);var M3=this._senders.indexOf(b3);M3!==-1&&this._senders.splice(M3,1)}}var R2=A.RTCPeerConnection.prototype.addStream;A.RTCPeerConnection.prototype.addStream=function(b3){var M3=this;this._senders=this._senders||[],R2.apply(this,[b3]),b3.getTracks().forEach(function(T3){M3._senders.push(k(M3,T3))})};var t3=A.RTCPeerConnection.prototype.removeStream;A.RTCPeerConnection.prototype.removeStream=function(b3){var M3=this;this._senders=this._senders||[],t3.apply(this,[b3]),b3.getTracks().forEach(function(T3){var f1=M3._senders.find(function(S1){return S1.track===T3});f1&&M3._senders.splice(M3._senders.indexOf(f1),1)})}}else if((typeof A=="undefined"?"undefined":g(A))==="object"&&A.RTCPeerConnection&&"getSenders"in A.RTCPeerConnection.prototype&&"createDTMFSender"in A.RTCPeerConnection.prototype&&A.RTCRtpSender&&!("dtmf"in A.RTCRtpSender.prototype)){var Q2=A.RTCPeerConnection.prototype.getSenders;A.RTCPeerConnection.prototype.getSenders=function(){var b3=this,M3=Q2.apply(this,[]);return M3.forEach(function(T3){return T3._pc=b3}),M3},Object.defineProperty(A.RTCRtpSender.prototype,"dtmf",{get:function(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function D2(A){if(A.RTCPeerConnection){var k=A.RTCPeerConnection.prototype.getStats;A.RTCPeerConnection.prototype.getStats=function(){var M2=this,R2=Array.prototype.slice.call(arguments),t3=R2[0],Q2=R2[1],c3=R2[2];if(arguments.length>0&&typeof t3=="function")return k.apply(this,arguments);if(k.length===0&&(arguments.length===0||typeof t3!="function"))return k.apply(this,[]);var b3=function(S1){var T1={},N1=S1.result();return N1.forEach(function(L1){var G1={id:L1.id,timestamp:L1.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[L1.type]||L1.type};L1.names().forEach(function(y0){G1[y0]=L1.stat(y0)}),T1[G1.id]=G1}),T1},M3=function(S1){return new Map(Object.keys(S1).map(function(T1){return[T1,S1[T1]]}))};if(arguments.length>=2){var T3=function(S1){Q2(M3(b3(S1)))};return k.apply(this,[T3,t3])}return new Promise(function(f1,S1){k.apply(M2,[function(T1){f1(M3(b3(T1)))},S1])}).then(Q2,c3)}}}function g2(A){if((typeof A=="undefined"?"undefined":g(A))==="object"&&A.RTCPeerConnection&&A.RTCRtpSender&&A.RTCRtpReceiver){if(!("getStats"in A.RTCRtpSender.prototype)){var k=A.RTCPeerConnection.prototype.getSenders;k&&(A.RTCPeerConnection.prototype.getSenders=function(){var Q2=this,c3=k.apply(this,[]);return c3.forEach(function(b3){return b3._pc=Q2}),c3});var V=A.RTCPeerConnection.prototype.addTrack;V&&(A.RTCPeerConnection.prototype.addTrack=function(){var Q2=V.apply(this,arguments);return Q2._pc=this,Q2}),A.RTCRtpSender.prototype.getStats=function(){var Q2=this;return this._pc.getStats().then(function(c3){return L.filterStats(c3,Q2.track,!0)})}}if(!("getStats"in A.RTCRtpReceiver.prototype)){var M2=A.RTCPeerConnection.prototype.getReceivers;M2&&(A.RTCPeerConnection.prototype.getReceivers=function(){var Q2=this,c3=M2.apply(this,[]);return c3.forEach(function(b3){return b3._pc=Q2}),c3}),L.wrapPeerConnectionEvent(A,"track",function(t3){return t3.receiver._pc=t3.srcElement,t3}),A.RTCRtpReceiver.prototype.getStats=function(){var Q2=this;return this._pc.getStats().then(function(c3){return L.filterStats(c3,Q2.track,!1)})}}if("getStats"in A.RTCRtpSender.prototype&&"getStats"in A.RTCRtpReceiver.prototype){var R2=A.RTCPeerConnection.prototype.getStats;A.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof A.MediaStreamTrack){var Q2=arguments[0],c3=void 0,b3=void 0,M3=void 0;return this.getSenders().forEach(function(T3){T3.track===Q2&&(c3?M3=!0:c3=T3)}),this.getReceivers().forEach(function(T3){return T3.track===Q2&&(b3?M3=!0:b3=T3),T3.track===Q2}),M3||c3&&b3?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):c3?c3.getStats():b3?b3.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return R2.apply(this,arguments)}}}}function C(A){A.RTCPeerConnection.prototype.getLocalStreams=function(){var Q2=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(function(c3){return Q2._shimmedLocalStreams[c3][0]})};var k=A.RTCPeerConnection.prototype.addTrack;A.RTCPeerConnection.prototype.addTrack=function(Q2,c3){if(!c3)return k.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};var b3=k.apply(this,arguments);return this._shimmedLocalStreams[c3.id]?this._shimmedLocalStreams[c3.id].indexOf(b3)===-1&&this._shimmedLocalStreams[c3.id].push(b3):this._shimmedLocalStreams[c3.id]=[c3,b3],b3};var V=A.RTCPeerConnection.prototype.addStream;A.RTCPeerConnection.prototype.addStream=function(Q2){var c3=this;this._shimmedLocalStreams=this._shimmedLocalStreams||{},Q2.getTracks().forEach(function(T3){var f1=c3.getSenders().find(function(S1){return S1.track===T3});if(f1)throw new DOMException("Track already exists.","InvalidAccessError")});var b3=this.getSenders();V.apply(this,arguments);var M3=this.getSenders().filter(function(T3){return b3.indexOf(T3)===-1});this._shimmedLocalStreams[Q2.id]=[Q2].concat(M3)};var M2=A.RTCPeerConnection.prototype.removeStream;A.RTCPeerConnection.prototype.removeStream=function(Q2){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[Q2.id],M2.apply(this,arguments)};var R2=A.RTCPeerConnection.prototype.removeTrack;A.RTCPeerConnection.prototype.removeTrack=function(Q2){var c3=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Q2&&Object.keys(this._shimmedLocalStreams).forEach(function(b3){var M3=c3._shimmedLocalStreams[b3].indexOf(Q2);M3!==-1&&c3._shimmedLocalStreams[b3].splice(M3,1),c3._shimmedLocalStreams[b3].length===1&&delete c3._shimmedLocalStreams[b3]}),R2.apply(this,arguments)}}function I(A){if(!A.RTCPeerConnection)return;var k=L.detectBrowser(A);if(A.RTCPeerConnection.prototype.addTrack&&k.version>=65)return C(A);var V=A.RTCPeerConnection.prototype.getLocalStreams;A.RTCPeerConnection.prototype.getLocalStreams=function(){var T3=this,f1=V.apply(this);return this._reverseStreams=this._reverseStreams||{},f1.map(function(S1){return T3._reverseStreams[S1.id]})};var M2=A.RTCPeerConnection.prototype.addStream;A.RTCPeerConnection.prototype.addStream=function(T3){var f1=this;if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},T3.getTracks().forEach(function(T1){var N1=f1.getSenders().find(function(L1){return L1.track===T1});if(N1)throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[T3.id]){var S1=new A.MediaStream(T3.getTracks());this._streams[T3.id]=S1,this._reverseStreams[S1.id]=T3,T3=S1}M2.apply(this,[T3])};var R2=A.RTCPeerConnection.prototype.removeStream;A.RTCPeerConnection.prototype.removeStream=function(T3){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},R2.apply(this,[this._streams[T3.id]||T3]),delete this._reverseStreams[this._streams[T3.id]?this._streams[T3.id].id:T3.id],delete this._streams[T3.id]},A.RTCPeerConnection.prototype.addTrack=function(T3,f1){var S1=this;if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");var T1=[].slice.call(arguments,1);if(T1.length!==1||!T1[0].getTracks().find(function(y0){return y0===T3}))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");var N1=this.getSenders().find(function(y0){return y0.track===T3});if(N1)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};var L1=this._streams[f1.id];if(L1)L1.addTrack(T3),Promise.resolve().then(function(){S1.dispatchEvent(new Event("negotiationneeded"))});else{var G1=new A.MediaStream([T3]);this._streams[f1.id]=G1,this._reverseStreams[G1.id]=f1,this.addStream(G1)}return this.getSenders().find(function(y0){return y0.track===T3})};function t3(M3,T3){var f1=T3.sdp;return Object.keys(M3._reverseStreams||[]).forEach(function(S1){var T1=M3._reverseStreams[S1],N1=M3._streams[T1.id];f1=f1.replace(new RegExp(N1.id,"g"),T1.id)}),new RTCSessionDescription({type:T3.type,sdp:f1})}function Q2(M3,T3){var f1=T3.sdp;return Object.keys(M3._reverseStreams||[]).forEach(function(S1){var T1=M3._reverseStreams[S1],N1=M3._streams[T1.id];f1=f1.replace(new RegExp(T1.id,"g"),N1.id)}),new RTCSessionDescription({type:T3.type,sdp:f1})}["createOffer","createAnswer"].forEach(function(M3){var T3=A.RTCPeerConnection.prototype[M3],f1=l2({},M3,function(){var S1=this,T1=arguments,N1=arguments.length&&typeof arguments[0]=="function";return N1?T3.apply(this,[function(L1){var G1=t3(S1,L1);T1[0].apply(null,[G1])},function(L1){T1[1]&&T1[1].apply(null,L1)},arguments[2]]):T3.apply(this,arguments).then(function(L1){return t3(S1,L1)})});A.RTCPeerConnection.prototype[M3]=f1[M3]});var c3=A.RTCPeerConnection.prototype.setLocalDescription;A.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?c3.apply(this,arguments):(arguments[0]=Q2(this,arguments[0]),c3.apply(this,arguments))};var b3=Object.getOwnPropertyDescriptor(A.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(A.RTCPeerConnection.prototype,"localDescription",{get:function(){var T3=b3.get.apply(this);return T3.type===""?T3:t3(this,T3)}}),A.RTCPeerConnection.prototype.removeTrack=function(T3){var f1=this;if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!T3._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");var S1=T3._pc===this;if(!S1)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};var T1=void 0;Object.keys(this._streams).forEach(function(N1){var L1=f1._streams[N1].getTracks().find(function(G1){return T3.track===G1});L1&&(T1=f1._streams[N1])}),T1&&(T1.getTracks().length===1?this.removeStream(this._reverseStreams[T1.id]):T1.removeTrack(T3.track),this.dispatchEvent(new Event("negotiationneeded")))}}function Y(A){var k=L.detectBrowser(A);if(!A.RTCPeerConnection&&A.webkitRTCPeerConnection&&(A.RTCPeerConnection=A.webkitRTCPeerConnection),!!A.RTCPeerConnection){k.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(M2){var R2=A.RTCPeerConnection.prototype[M2],t3=l2({},M2,function(){return arguments[0]=new(M2==="addIceCandidate"?A.RTCIceCandidate:A.RTCSessionDescription)(arguments[0]),R2.apply(this,arguments)});A.RTCPeerConnection.prototype[M2]=t3[M2]});var V=A.RTCPeerConnection.prototype.addIceCandidate;A.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?k.version<78&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():V.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}}function B(A){L.wrapPeerConnectionEvent(A,"negotiationneeded",function(k){var V=k.target;if(V.signalingState==="stable")return k})}},{"../utils.js":15,"./getdisplaymedia":4,"./getusermedia":5}],4:[function(R,N,m){Object.defineProperty(m,"__esModule",{value:!0}),m.shimGetDisplayMedia=g;function g(S,x){if(!(S.navigator.mediaDevices&&"getDisplayMedia"in S.navigator.mediaDevices)&&S.navigator.mediaDevices){if(typeof x!="function"){console.error("shimGetDisplayMedia: getSourceId argument is not a function");return}S.navigator.mediaDevices.getDisplayMedia=function(L){return x(L).then(function(r2){var l2=L.video&&L.video.width,s2=L.video&&L.video.height,Q=L.video&&L.video.frameRate;return L.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:r2,maxFrameRate:Q||3}},l2&&(L.video.mandatory.maxWidth=l2),s2&&(L.video.mandatory.maxHeight=s2),S.navigator.mediaDevices.getUserMedia(L)})}}}},{}],5:[function(R,N,m){Object.defineProperty(m,"__esModule",{value:!0});var g=typeof Symbol=="function"&&t(Symbol.iterator)==="symbol"?function(l2){return t(l2)}:function(l2){return l2&&typeof Symbol=="function"&&l2.constructor===Symbol&&l2!==Symbol.prototype?"symbol":t(l2)};m.shimGetUserMedia=r2;var S=R("../utils.js"),x=E(S);function E(l2){if(l2&&l2.__esModule)return l2;var s2={};if(l2!=null)for(var Q in l2)Object.prototype.hasOwnProperty.call(l2,Q)&&(s2[Q]=l2[Q]);return s2.default=l2,s2}var L=x.log;function r2(l2){var s2=l2&&l2.navigator;if(s2.mediaDevices){var Q=x.detectBrowser(l2),X=function(B){if((typeof B=="undefined"?"undefined":g(B))!=="object"||B.mandatory||B.optional)return B;var A={};return Object.keys(B).forEach(function(k){if(!(k==="require"||k==="advanced"||k==="mediaSource")){var V=g(B[k])==="object"?B[k]:{ideal:B[k]};V.exact!==void 0&&typeof V.exact=="number"&&(V.min=V.max=V.exact);var M2=function(Q2,c3){return Q2?Q2+c3.charAt(0).toUpperCase()+c3.slice(1):c3==="deviceId"?"sourceId":c3};if(V.ideal!==void 0){A.optional=A.optional||[];var R2={};typeof V.ideal=="number"?(R2[M2("min",k)]=V.ideal,A.optional.push(R2),R2={},R2[M2("max",k)]=V.ideal,A.optional.push(R2)):(R2[M2("",k)]=V.ideal,A.optional.push(R2))}V.exact!==void 0&&typeof V.exact!="number"?(A.mandatory=A.mandatory||{},A.mandatory[M2("",k)]=V.exact):["min","max"].forEach(function(t3){V[t3]!==void 0&&(A.mandatory=A.mandatory||{},A.mandatory[M2(t3,k)]=V[t3])})}}),B.advanced&&(A.optional=(A.optional||[]).concat(B.advanced)),A},D2=function(B,A){if(Q.version>=61)return A(B);if(B=JSON.parse(JSON.stringify(B)),B&&g(B.audio)==="object"){var k=function(Q2,c3,b3){c3 in Q2&&!(b3 in Q2)&&(Q2[b3]=Q2[c3],delete Q2[c3])};B=JSON.parse(JSON.stringify(B)),k(B.audio,"autoGainControl","googAutoGainControl"),k(B.audio,"noiseSuppression","googNoiseSuppression"),B.audio=X(B.audio)}if(B&&g(B.video)==="object"){var V=B.video.facingMode;V=V&&((typeof V=="undefined"?"undefined":g(V))==="object"?V:{ideal:V});var M2=Q.version<66;if(V&&(V.exact==="user"||V.exact==="environment"||V.ideal==="user"||V.ideal==="environment")&&!(s2.mediaDevices.getSupportedConstraints&&s2.mediaDevices.getSupportedConstraints().facingMode&&!M2)){delete B.video.facingMode;var R2=void 0;if(V.exact==="environment"||V.ideal==="environment"?R2=["back","rear"]:(V.exact==="user"||V.ideal==="user")&&(R2=["front"]),R2)return s2.mediaDevices.enumerateDevices().then(function(t3){t3=t3.filter(function(c3){return c3.kind==="videoinput"});var Q2=t3.find(function(c3){return R2.some(function(b3){return c3.label.toLowerCase().includes(b3)})});return!Q2&&t3.length&&R2.includes("back")&&(Q2=t3[t3.length-1]),Q2&&(B.video.deviceId=V.exact?{exact:Q2.deviceId}:{ideal:Q2.deviceId}),B.video=X(B.video),L("chrome: "+JSON.stringify(B)),A(B)})}B.video=X(B.video)}return L("chrome: "+JSON.stringify(B)),A(B)},g2=function(B){return Q.version>=64?B:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[B.name]||B.name,message:B.message,constraint:B.constraint||B.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}},C=function(B,A,k){D2(B,function(V){s2.webkitGetUserMedia(V,A,function(M2){k&&k(g2(M2))})})};if(s2.getUserMedia=C.bind(s2),s2.mediaDevices.getUserMedia){var I=s2.mediaDevices.getUserMedia.bind(s2.mediaDevices);s2.mediaDevices.getUserMedia=function(Y){return D2(Y,function(B){return I(B).then(function(A){if(B.audio&&!A.getAudioTracks().length||B.video&&!A.getVideoTracks().length)throw A.getTracks().forEach(function(k){k.stop()}),new DOMException("","NotFoundError");return A},function(A){return Promise.reject(g2(A))})})}}}}},{"../utils.js":15}],6:[function(R,N,m){Object.defineProperty(m,"__esModule",{value:!0});var g=typeof Symbol=="function"&&t(Symbol.iterator)==="symbol"?function(C){return t(C)}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":t(C)};m.shimRTCIceCandidate=s2,m.shimMaxMessageSize=Q,m.shimSendThrowTypeError=X,m.shimConnectionState=D2,m.removeAllowExtmapMixed=g2;var S=R("sdp"),x=l2(S),E=R("./utils"),L=r2(E);function r2(C){if(C&&C.__esModule)return C;var I={};if(C!=null)for(var Y in C)Object.prototype.hasOwnProperty.call(C,Y)&&(I[Y]=C[Y]);return I.default=C,I}function l2(C){return C&&C.__esModule?C:{default:C}}function s2(C){if(!(!C.RTCIceCandidate||C.RTCIceCandidate&&"foundation"in C.RTCIceCandidate.prototype)){var I=C.RTCIceCandidate;C.RTCIceCandidate=function(B){if((typeof B=="undefined"?"undefined":g(B))==="object"&&B.candidate&&B.candidate.indexOf("a=")===0&&(B=JSON.parse(JSON.stringify(B)),B.candidate=B.candidate.substr(2)),B.candidate&&B.candidate.length){var A=new I(B),k=x.default.parseCandidate(B.candidate),V=Object.assign(A,k);return V.toJSON=function(){return{candidate:V.candidate,sdpMid:V.sdpMid,sdpMLineIndex:V.sdpMLineIndex,usernameFragment:V.usernameFragment}},V}return new I(B)},C.RTCIceCandidate.prototype=I.prototype,L.wrapPeerConnectionEvent(C,"icecandidate",function(Y){return Y.candidate&&Object.defineProperty(Y,"candidate",{value:new C.RTCIceCandidate(Y.candidate),writable:"false"}),Y})}}function Q(C){if(C.RTCPeerConnection){var I=L.detectBrowser(C);"sctp"in C.RTCPeerConnection.prototype||Object.defineProperty(C.RTCPeerConnection.prototype,"sctp",{get:function(){return typeof this._sctp=="undefined"?null:this._sctp}});var Y=function(R2){if(!R2||!R2.sdp)return!1;var t3=x.default.splitSections(R2.sdp);return t3.shift(),t3.some(function(Q2){var c3=x.default.parseMLine(Q2);return c3&&c3.kind==="application"&&c3.protocol.indexOf("SCTP")!==-1})},B=function(R2){var t3=R2.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(t3===null||t3.length<2)return-1;var Q2=parseInt(t3[1],10);return Q2!==Q2?-1:Q2},A=function(R2){var t3=65536;return I.browser==="firefox"&&(I.version<57?R2===-1?t3=16384:t3=2147483637:I.version<60?t3=I.version===57?65535:65536:t3=2147483637),t3},k=function(R2,t3){var Q2=65536;I.browser==="firefox"&&I.version===57&&(Q2=65535);var c3=x.default.matchPrefix(R2.sdp,"a=max-message-size:");return c3.length>0?Q2=parseInt(c3[0].substr(19),10):I.browser==="firefox"&&t3!==-1&&(Q2=2147483637),Q2},V=C.RTCPeerConnection.prototype.setRemoteDescription;C.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,I.browser==="chrome"&&I.version>=76){var R2=this.getConfiguration(),t3=R2.sdpSemantics;t3==="plan-b"&&Object.defineProperty(this,"sctp",{get:function(){return typeof this._sctp=="undefined"?null:this._sctp},enumerable:!0,configurable:!0})}if(Y(arguments[0])){var Q2=B(arguments[0]),c3=A(Q2),b3=k(arguments[0],Q2),M3=void 0;c3===0&&b3===0?M3=Number.POSITIVE_INFINITY:c3===0||b3===0?M3=Math.max(c3,b3):M3=Math.min(c3,b3);var T3={};Object.defineProperty(T3,"maxMessageSize",{get:function(){return M3}}),this._sctp=T3}return V.apply(this,arguments)}}}function X(C){if(!(C.RTCPeerConnection&&"createDataChannel"in C.RTCPeerConnection.prototype))return;function I(B,A){var k=B.send;B.send=function(){var M2=arguments[0],R2=M2.length||M2.size||M2.byteLength;if(B.readyState==="open"&&A.sctp&&R2>A.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+A.sctp.maxMessageSize+" bytes)");return k.apply(B,arguments)}}var Y=C.RTCPeerConnection.prototype.createDataChannel;C.RTCPeerConnection.prototype.createDataChannel=function(){var A=Y.apply(this,arguments);return I(A,this),A},L.wrapPeerConnectionEvent(C,"datachannel",function(B){return I(B.channel,B.target),B})}function D2(C){if(!(!C.RTCPeerConnection||"connectionState"in C.RTCPeerConnection.prototype)){var I=C.RTCPeerConnection.prototype;Object.defineProperty(I,"connectionState",{get:function(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(I,"onconnectionstatechange",{get:function(){return this._onconnectionstatechange||null},set:function(B){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),B&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=B)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(function(Y){var B=I[Y];I[Y]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=function(A){var k=A.target;if(k._lastConnectionState!==k.connectionState){k._lastConnectionState=k.connectionState;var V=new Event("connectionstatechange",A);k.dispatchEvent(V)}return A},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),B.apply(this,arguments)}})}}function g2(C){if(C.RTCPeerConnection){var I=L.detectBrowser(C);if(!(I.browser==="chrome"&&I.version>=71)){var Y=C.RTCPeerConnection.prototype.setRemoteDescription;C.RTCPeerConnection.prototype.setRemoteDescription=function(A){return A&&A.sdp&&A.sdp.indexOf(`
-a=extmap-allow-mixed`)!==-1&&(A.sdp=A.sdp.split(`
-`).filter(function(k){return k.trim()!=="a=extmap-allow-mixed"}).join(`
-`)),Y.apply(this,arguments)}}}}},{"./utils":15,sdp:17}],7:[function(R,N,m){Object.defineProperty(m,"__esModule",{value:!0}),m.shimGetDisplayMedia=m.shimGetUserMedia=void 0;var g=R("./getusermedia");Object.defineProperty(m,"shimGetUserMedia",{enumerable:!0,get:function(){return g.shimGetUserMedia}});var S=R("./getdisplaymedia");Object.defineProperty(m,"shimGetDisplayMedia",{enumerable:!0,get:function(){return S.shimGetDisplayMedia}}),m.shimPeerConnection=X,m.shimReplaceTrack=D2;var x=R("../utils"),E=Q(x),L=R("./filtericeservers"),r2=R("rtcpeerconnection-shim"),l2=s2(r2);function s2(g2){return g2&&g2.__esModule?g2:{default:g2}}function Q(g2){if(g2&&g2.__esModule)return g2;var C={};if(g2!=null)for(var I in g2)Object.prototype.hasOwnProperty.call(g2,I)&&(C[I]=g2[I]);return C.default=g2,C}function X(g2){var C=E.detectBrowser(g2);if(g2.RTCIceGatherer&&(g2.RTCIceCandidate||(g2.RTCIceCandidate=function(A){return A}),g2.RTCSessionDescription||(g2.RTCSessionDescription=function(A){return A}),C.version<15025)){var I=Object.getOwnPropertyDescriptor(g2.MediaStreamTrack.prototype,"enabled");Object.defineProperty(g2.MediaStreamTrack.prototype,"enabled",{set:function(A){I.set.call(this,A);var k=new Event("enabled");k.enabled=A,this.dispatchEvent(k)}})}g2.RTCRtpSender&&!("dtmf"in g2.RTCRtpSender.prototype)&&Object.defineProperty(g2.RTCRtpSender.prototype,"dtmf",{get:function(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=new g2.RTCDtmfSender(this):this.track.kind==="video"&&(this._dtmf=null)),this._dtmf}}),g2.RTCDtmfSender&&!g2.RTCDTMFSender&&(g2.RTCDTMFSender=g2.RTCDtmfSender);var Y=(0,l2.default)(g2,C.version);g2.RTCPeerConnection=function(A){return A&&A.iceServers&&(A.iceServers=(0,L.filterIceServers)(A.iceServers,C.version),E.log("ICE servers after filtering:",A.iceServers)),new Y(A)},g2.RTCPeerConnection.prototype=Y.prototype}function D2(g2){g2.RTCRtpSender&&!("replaceTrack"in g2.RTCRtpSender.prototype)&&(g2.RTCRtpSender.prototype.replaceTrack=g2.RTCRtpSender.prototype.setTrack)}},{"../utils":15,"./filtericeservers":8,"./getdisplaymedia":9,"./getusermedia":10,"rtcpeerconnection-shim":16}],8:[function(R,N,m){Object.defineProperty(m,"__esModule",{value:!0}),m.filterIceServers=E;var g=R("../utils"),S=x(g);function x(L){if(L&&L.__esModule)return L;var r2={};if(L!=null)for(var l2 in L)Object.prototype.hasOwnProperty.call(L,l2)&&(r2[l2]=L[l2]);return r2.default=L,r2}function E(L,r2){var l2=!1;return L=JSON.parse(JSON.stringify(L)),L.filter(function(s2){if(s2&&(s2.urls||s2.url)){var Q=s2.urls||s2.url;s2.url&&!s2.urls&&S.deprecated("RTCIceServer.url","RTCIceServer.urls");var X=typeof Q=="string";return X&&(Q=[Q]),Q=Q.filter(function(D2){if(D2.indexOf("stun:")===0)return!1;var g2=D2.startsWith("turn")&&!D2.startsWith("turn:[")&&D2.includes("transport=udp");return g2&&!l2?(l2=!0,!0):g2&&!l2}),delete s2.url,s2.urls=X?Q[0]:Q,!!Q.length}})}},{"../utils":15}],9:[function(R,N,m){Object.defineProperty(m,"__esModule",{value:!0}),m.shimGetDisplayMedia=g;function g(S){"getDisplayMedia"in S.navigator&&S.navigator.mediaDevices&&(S.navigator.mediaDevices&&"getDisplayMedia"in S.navigator.mediaDevices||(S.navigator.mediaDevices.getDisplayMedia=S.navigator.getDisplayMedia.bind(S.navigator)))}},{}],10:[function(R,N,m){Object.defineProperty(m,"__esModule",{value:!0}),m.shimGetUserMedia=g;function g(S){var x=S&&S.navigator,E=function(l2){return{name:{PermissionDeniedError:"NotAllowedError"}[l2.name]||l2.name,message:l2.message,constraint:l2.constraint,toString:function(){return this.name}}},L=x.mediaDevices.getUserMedia.bind(x.mediaDevices);x.mediaDevices.getUserMedia=function(r2){return L(r2).catch(function(l2){return Promise.reject(E(l2))})}}},{}],11:[function(R,N,m){Object.defineProperty(m,"__esModule",{value:!0}),m.shimGetDisplayMedia=m.shimGetUserMedia=void 0;var g=typeof Symbol=="function"&&t(Symbol.iterator)==="symbol"?function(A){return t(A)}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":t(A)},S=R("./getusermedia");Object.defineProperty(m,"shimGetUserMedia",{enumerable:!0,get:function(){return S.shimGetUserMedia}});var x=R("./getdisplaymedia");Object.defineProperty(m,"shimGetDisplayMedia",{enumerable:!0,get:function(){return x.shimGetDisplayMedia}}),m.shimOnTrack=s2,m.shimPeerConnection=Q,m.shimSenderGetStats=X,m.shimReceiverGetStats=D2,m.shimRemoveStream=g2,m.shimRTCDataChannel=C,m.shimAddTransceiver=I,m.shimCreateOffer=Y,m.shimCreateAnswer=B;var E=R("../utils"),L=r2(E);function r2(A){if(A&&A.__esModule)return A;var k={};if(A!=null)for(var V in A)Object.prototype.hasOwnProperty.call(A,V)&&(k[V]=A[V]);return k.default=A,k}function l2(A,k,V){return k in A?Object.defineProperty(A,k,{value:V,enumerable:!0,configurable:!0,writable:!0}):A[k]=V,A}function s2(A){(typeof A=="undefined"?"undefined":g(A))==="object"&&A.RTCTrackEvent&&"receiver"in A.RTCTrackEvent.prototype&&!("transceiver"in A.RTCTrackEvent.prototype)&&Object.defineProperty(A.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})}function Q(A){var k=L.detectBrowser(A);if(!((typeof A=="undefined"?"undefined":g(A))!=="object"||!(A.RTCPeerConnection||A.mozRTCPeerConnection))){if(!A.RTCPeerConnection&&A.mozRTCPeerConnection&&(A.RTCPeerConnection=A.mozRTCPeerConnection),k.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t3){var Q2=A.RTCPeerConnection.prototype[t3],c3=l2({},t3,function(){return arguments[0]=new(t3==="addIceCandidate"?A.RTCIceCandidate:A.RTCSessionDescription)(arguments[0]),Q2.apply(this,arguments)});A.RTCPeerConnection.prototype[t3]=c3[t3]}),k.version<68){var V=A.RTCPeerConnection.prototype.addIceCandidate;A.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&arguments[0].candidate===""?Promise.resolve():V.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}var M2={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},R2=A.RTCPeerConnection.prototype.getStats;A.RTCPeerConnection.prototype.getStats=function(){var Q2=Array.prototype.slice.call(arguments),c3=Q2[0],b3=Q2[1],M3=Q2[2];return R2.apply(this,[c3||null]).then(function(T3){if(k.version<53&&!b3)try{T3.forEach(function(f1){f1.type=M2[f1.type]||f1.type})}catch(f1){if(f1.name!=="TypeError")throw f1;T3.forEach(function(S1,T1){T3.set(T1,Object.assign({},S1,{type:M2[S1.type]||S1.type}))})}return T3}).then(b3,M3)}}}function X(A){if((typeof A=="undefined"?"undefined":g(A))==="object"&&A.RTCPeerConnection&&A.RTCRtpSender&&!(A.RTCRtpSender&&"getStats"in A.RTCRtpSender.prototype)){var k=A.RTCPeerConnection.prototype.getSenders;k&&(A.RTCPeerConnection.prototype.getSenders=function(){var R2=this,t3=k.apply(this,[]);return t3.forEach(function(Q2){return Q2._pc=R2}),t3});var V=A.RTCPeerConnection.prototype.addTrack;V&&(A.RTCPeerConnection.prototype.addTrack=function(){var R2=V.apply(this,arguments);return R2._pc=this,R2}),A.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}}function D2(A){if((typeof A=="undefined"?"undefined":g(A))==="object"&&A.RTCPeerConnection&&A.RTCRtpSender&&!(A.RTCRtpSender&&"getStats"in A.RTCRtpReceiver.prototype)){var k=A.RTCPeerConnection.prototype.getReceivers;k&&(A.RTCPeerConnection.prototype.getReceivers=function(){var M2=this,R2=k.apply(this,[]);return R2.forEach(function(t3){return t3._pc=M2}),R2}),L.wrapPeerConnectionEvent(A,"track",function(V){return V.receiver._pc=V.srcElement,V}),A.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}}function g2(A){!A.RTCPeerConnection||"removeStream"in A.RTCPeerConnection.prototype||(A.RTCPeerConnection.prototype.removeStream=function(V){var M2=this;L.deprecated("removeStream","removeTrack"),this.getSenders().forEach(function(R2){R2.track&&V.getTracks().includes(R2.track)&&M2.removeTrack(R2)})})}function C(A){A.DataChannel&&!A.RTCDataChannel&&(A.RTCDataChannel=A.DataChannel)}function I(A){if((typeof A=="undefined"?"undefined":g(A))==="object"&&A.RTCPeerConnection){var k=A.RTCPeerConnection.prototype.addTransceiver;k&&(A.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];var M2=arguments[1],R2=M2&&"sendEncodings"in M2;R2&&M2.sendEncodings.forEach(function(b3){if("rid"in b3){var M3=/^[a-z0-9]{0,16}$/i;if(!M3.test(b3.rid))throw new TypeError("Invalid RID value provided.")}if("scaleResolutionDownBy"in b3&&!(parseFloat(b3.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in b3&&!(parseFloat(b3.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});var t3=k.apply(this,arguments);if(R2){var Q2=t3.sender,c3=Q2.getParameters();"encodings"in c3||(c3.encodings=M2.sendEncodings,this.setParametersPromises.push(Q2.setParameters(c3).catch(function(){})))}return t3})}}function Y(A){if((typeof A=="undefined"?"undefined":g(A))==="object"&&A.RTCPeerConnection){var k=A.RTCPeerConnection.prototype.createOffer;A.RTCPeerConnection.prototype.createOffer=function(){var M2=this,R2=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(function(){return k.apply(M2,R2)}).finally(function(){M2.setParametersPromises=[]}):k.apply(this,arguments)}}}function B(A){if((typeof A=="undefined"?"undefined":g(A))==="object"&&A.RTCPeerConnection){var k=A.RTCPeerConnection.prototype.createAnswer;A.RTCPeerConnection.prototype.createAnswer=function(){var M2=this,R2=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(function(){return k.apply(M2,R2)}).finally(function(){M2.setParametersPromises=[]}):k.apply(this,arguments)}}}},{"../utils":15,"./getdisplaymedia":12,"./getusermedia":13}],12:[function(R,N,m){Object.defineProperty(m,"__esModule",{value:!0}),m.shimGetDisplayMedia=g;function g(S,x){S.navigator.mediaDevices&&"getDisplayMedia"in S.navigator.mediaDevices||S.navigator.mediaDevices&&(S.navigator.mediaDevices.getDisplayMedia=function(L){if(!(L&&L.video)){var r2=new DOMException("getDisplayMedia without video constraints is undefined");return r2.name="NotFoundError",r2.code=8,Promise.reject(r2)}return L.video===!0?L.video={mediaSource:x}:L.video.mediaSource=x,S.navigator.mediaDevices.getUserMedia(L)})}},{}],13:[function(R,N,m){Object.defineProperty(m,"__esModule",{value:!0});var g=typeof Symbol=="function"&&t(Symbol.iterator)==="symbol"?function(r2){return t(r2)}:function(r2){return r2&&typeof Symbol=="function"&&r2.constructor===Symbol&&r2!==Symbol.prototype?"symbol":t(r2)};m.shimGetUserMedia=L;var S=R("../utils"),x=E(S);function E(r2){if(r2&&r2.__esModule)return r2;var l2={};if(r2!=null)for(var s2 in r2)Object.prototype.hasOwnProperty.call(r2,s2)&&(l2[s2]=r2[s2]);return l2.default=r2,l2}function L(r2){var l2=x.detectBrowser(r2),s2=r2&&r2.navigator,Q=r2&&r2.MediaStreamTrack;if(s2.getUserMedia=function(I,Y,B){x.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),s2.mediaDevices.getUserMedia(I).then(Y,B)},!(l2.version>55&&"autoGainControl"in s2.mediaDevices.getSupportedConstraints())){var X=function(Y,B,A){B in Y&&!(A in Y)&&(Y[A]=Y[B],delete Y[B])},D2=s2.mediaDevices.getUserMedia.bind(s2.mediaDevices);if(s2.mediaDevices.getUserMedia=function(I){return(typeof I=="undefined"?"undefined":g(I))==="object"&&g(I.audio)==="object"&&(I=JSON.parse(JSON.stringify(I)),X(I.audio,"autoGainControl","mozAutoGainControl"),X(I.audio,"noiseSuppression","mozNoiseSuppression")),D2(I)},Q&&Q.prototype.getSettings){var g2=Q.prototype.getSettings;Q.prototype.getSettings=function(){var I=g2.apply(this,arguments);return X(I,"mozAutoGainControl","autoGainControl"),X(I,"mozNoiseSuppression","noiseSuppression"),I}}if(Q&&Q.prototype.applyConstraints){var C=Q.prototype.applyConstraints;Q.prototype.applyConstraints=function(I){return this.kind==="audio"&&(typeof I=="undefined"?"undefined":g(I))==="object"&&(I=JSON.parse(JSON.stringify(I)),X(I,"autoGainControl","mozAutoGainControl"),X(I,"noiseSuppression","mozNoiseSuppression")),C.apply(this,[I])}}}}},{"../utils":15}],14:[function(R,N,m){Object.defineProperty(m,"__esModule",{value:!0});var g=typeof Symbol=="function"&&t(Symbol.iterator)==="symbol"?function(C){return t(C)}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":t(C)};m.shimLocalStreamsAPI=L,m.shimRemoteStreamsAPI=r2,m.shimCallbacksAPI=l2,m.shimGetUserMedia=s2,m.shimConstraints=Q,m.shimRTCIceServerUrls=X,m.shimTrackEventTransceiver=D2,m.shimCreateOfferLegacy=g2;var S=R("../utils"),x=E(S);function E(C){if(C&&C.__esModule)return C;var I={};if(C!=null)for(var Y in C)Object.prototype.hasOwnProperty.call(C,Y)&&(I[Y]=C[Y]);return I.default=C,I}function L(C){if(!((typeof C=="undefined"?"undefined":g(C))!=="object"||!C.RTCPeerConnection)){if("getLocalStreams"in C.RTCPeerConnection.prototype||(C.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in C.RTCPeerConnection.prototype)){var I=C.RTCPeerConnection.prototype.addTrack;C.RTCPeerConnection.prototype.addStream=function(B){var A=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(B)||this._localStreams.push(B),B.getAudioTracks().forEach(function(k){return I.call(A,k,B)}),B.getVideoTracks().forEach(function(k){return I.call(A,k,B)})},C.RTCPeerConnection.prototype.addTrack=function(B){var A=arguments[1];return A&&(this._localStreams?this._localStreams.includes(A)||this._localStreams.push(A):this._localStreams=[A]),I.apply(this,arguments)}}"removeStream"in C.RTCPeerConnection.prototype||(C.RTCPeerConnection.prototype.removeStream=function(B){var A=this;this._localStreams||(this._localStreams=[]);var k=this._localStreams.indexOf(B);if(k!==-1){this._localStreams.splice(k,1);var V=B.getTracks();this.getSenders().forEach(function(M2){V.includes(M2.track)&&A.removeTrack(M2)})}})}}function r2(C){if(!((typeof C=="undefined"?"undefined":g(C))!=="object"||!C.RTCPeerConnection)&&("getRemoteStreams"in C.RTCPeerConnection.prototype||(C.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in C.RTCPeerConnection.prototype))){Object.defineProperty(C.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(B){var A=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=B),this.addEventListener("track",this._onaddstreampoly=function(k){k.streams.forEach(function(V){if(A._remoteStreams||(A._remoteStreams=[]),!A._remoteStreams.includes(V)){A._remoteStreams.push(V);var M2=new Event("addstream");M2.stream=V,A.dispatchEvent(M2)}})})}});var I=C.RTCPeerConnection.prototype.setRemoteDescription;C.RTCPeerConnection.prototype.setRemoteDescription=function(){var B=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(A){A.streams.forEach(function(k){if(B._remoteStreams||(B._remoteStreams=[]),!(B._remoteStreams.indexOf(k)>=0)){B._remoteStreams.push(k);var V=new Event("addstream");V.stream=k,B.dispatchEvent(V)}})}),I.apply(B,arguments)}}}function l2(C){if(!((typeof C=="undefined"?"undefined":g(C))!=="object"||!C.RTCPeerConnection)){var I=C.RTCPeerConnection.prototype,Y=I.createOffer,B=I.createAnswer,A=I.setLocalDescription,k=I.setRemoteDescription,V=I.addIceCandidate;I.createOffer=function(t3,Q2){var c3=arguments.length>=2?arguments[2]:arguments[0],b3=Y.apply(this,[c3]);return Q2?(b3.then(t3,Q2),Promise.resolve()):b3},I.createAnswer=function(t3,Q2){var c3=arguments.length>=2?arguments[2]:arguments[0],b3=B.apply(this,[c3]);return Q2?(b3.then(t3,Q2),Promise.resolve()):b3};var M2=function(t3,Q2,c3){var b3=A.apply(this,[t3]);return c3?(b3.then(Q2,c3),Promise.resolve()):b3};I.setLocalDescription=M2,M2=function(t3,Q2,c3){var b3=k.apply(this,[t3]);return c3?(b3.then(Q2,c3),Promise.resolve()):b3},I.setRemoteDescription=M2,M2=function(t3,Q2,c3){var b3=V.apply(this,[t3]);return c3?(b3.then(Q2,c3),Promise.resolve()):b3},I.addIceCandidate=M2}}function s2(C){var I=C&&C.navigator;if(I.mediaDevices&&I.mediaDevices.getUserMedia){var Y=I.mediaDevices,B=Y.getUserMedia.bind(Y);I.mediaDevices.getUserMedia=function(A){return B(Q(A))}}!I.getUserMedia&&I.mediaDevices&&I.mediaDevices.getUserMedia&&(I.getUserMedia=function(k,V,M2){I.mediaDevices.getUserMedia(k).then(V,M2)}.bind(I))}function Q(C){return C&&C.video!==void 0?Object.assign({},C,{video:x.compactObject(C.video)}):C}function X(C){var I=C.RTCPeerConnection;C.RTCPeerConnection=function(B,A){if(B&&B.iceServers){for(var k=[],V=0;V=k&&parseInt(V[k],10)}function r2(B,A,k){if(B.RTCPeerConnection){var V=B.RTCPeerConnection.prototype,M2=V.addEventListener;V.addEventListener=function(t3,Q2){if(t3!==A)return M2.apply(this,arguments);var c3=function(M3){var T3=k(M3);T3&&Q2(T3)};return this._eventMap=this._eventMap||{},this._eventMap[Q2]=c3,M2.apply(this,[t3,c3])};var R2=V.removeEventListener;V.removeEventListener=function(t3,Q2){if(t3!==A||!this._eventMap||!this._eventMap[Q2])return R2.apply(this,arguments);var c3=this._eventMap[Q2];return delete this._eventMap[Q2],R2.apply(this,[t3,c3])},Object.defineProperty(V,"on"+A,{get:function(){return this["_on"+A]},set:function(Q2){this["_on"+A]&&(this.removeEventListener(A,this["_on"+A]),delete this["_on"+A]),Q2&&this.addEventListener(A,this["_on"+A]=Q2)},enumerable:!0,configurable:!0})}}function l2(B){return typeof B!="boolean"?new Error("Argument type: "+(typeof B=="undefined"?"undefined":g(B))+". Please use a boolean."):(x=B,B?"adapter.js logging disabled":"adapter.js logging enabled")}function s2(B){return typeof B!="boolean"?new Error("Argument type: "+(typeof B=="undefined"?"undefined":g(B))+". Please use a boolean."):(E=!B,"adapter.js deprecation warnings "+(B?"disabled":"enabled"))}function Q(){if((typeof window=="undefined"?"undefined":g(window))==="object"){if(x)return;typeof console!="undefined"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function X(B,A){E&&console.warn(B+" is deprecated, please use "+A+" instead.")}function D2(B){var A=B.navigator,k={browser:null,version:null};if(typeof B=="undefined"||!B.navigator)return k.browser="Not a browser.",k;if(A.mozGetUserMedia)k.browser="firefox",k.version=L(A.userAgent,/Firefox\/(\d+)\./,1);else if(A.webkitGetUserMedia||B.isSecureContext===!1&&B.webkitRTCPeerConnection&&!B.RTCIceGatherer)k.browser="chrome",k.version=L(A.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(A.mediaDevices&&A.userAgent.match(/Edge\/(\d+).(\d+)$/))k.browser="edge",k.version=L(A.userAgent,/Edge\/(\d+).(\d+)$/,2);else if(B.RTCPeerConnection&&A.userAgent.match(/AppleWebKit\/(\d+)\./))k.browser="safari",k.version=L(A.userAgent,/AppleWebKit\/(\d+)\./,1),k.supportsUnifiedPlan=B.RTCRtpTransceiver&&"currentDirection"in B.RTCRtpTransceiver.prototype;else return k.browser="Not a supported browser.",k;return k}function g2(B){return Object.prototype.toString.call(B)==="[object Object]"}function C(B){return g2(B)?Object.keys(B).reduce(function(A,k){var V=g2(B[k]),M2=V?C(B[k]):B[k],R2=V&&!Object.keys(M2).length;return M2===void 0||R2?A:Object.assign(A,S({},k,M2))},{}):B}function I(B,A,k){!A||k.has(A.id)||(k.set(A.id,A),Object.keys(A).forEach(function(V){V.endsWith("Id")?I(B,B.get(A[V]),k):V.endsWith("Ids")&&A[V].forEach(function(M2){I(B,B.get(M2),k)})}))}function Y(B,A,k){var V=k?"outbound-rtp":"inbound-rtp",M2=new Map;if(A===null)return M2;var R2=[];return B.forEach(function(t3){t3.type==="track"&&t3.trackIdentifier===A.id&&R2.push(t3)}),R2.forEach(function(t3){B.forEach(function(Q2){Q2.type===V&&Q2.trackId===t3.id&&I(B,Q2,M2)})}),M2}},{}],16:[function(R,N,m){var g=R("sdp");function S(Q){return{inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[Q.type]||Q.type}function x(Q,X,D2,g2,C){var I=g.writeRtpDescription(Q.kind,X);if(I+=g.writeIceParameters(Q.iceGatherer.getLocalParameters()),I+=g.writeDtlsParameters(Q.dtlsTransport.getLocalParameters(),D2==="offer"?"actpass":C||"active"),I+="a=mid:"+Q.mid+`\r
-`,Q.rtpSender&&Q.rtpReceiver?I+=`a=sendrecv\r
-`:Q.rtpSender?I+=`a=sendonly\r
-`:Q.rtpReceiver?I+=`a=recvonly\r
-`:I+=`a=inactive\r
-`,Q.rtpSender){var Y=Q.rtpSender._initialTrackId||Q.rtpSender.track.id;Q.rtpSender._initialTrackId=Y;var B="msid:"+(g2?g2.id:"-")+" "+Y+`\r
-`;I+="a="+B,I+="a=ssrc:"+Q.sendEncodingParameters[0].ssrc+" "+B,Q.sendEncodingParameters[0].rtx&&(I+="a=ssrc:"+Q.sendEncodingParameters[0].rtx.ssrc+" "+B,I+="a=ssrc-group:FID "+Q.sendEncodingParameters[0].ssrc+" "+Q.sendEncodingParameters[0].rtx.ssrc+`\r
-`)}return I+="a=ssrc:"+Q.sendEncodingParameters[0].ssrc+" cname:"+g.localCName+`\r
-`,Q.rtpSender&&Q.sendEncodingParameters[0].rtx&&(I+="a=ssrc:"+Q.sendEncodingParameters[0].rtx.ssrc+" cname:"+g.localCName+`\r
-`),I}function E(Q,X){var D2=!1;return Q=JSON.parse(JSON.stringify(Q)),Q.filter(function(g2){if(g2&&(g2.urls||g2.url)){var C=g2.urls||g2.url;g2.url&&!g2.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var I=typeof C=="string";return I&&(C=[C]),C=C.filter(function(Y){var B=Y.indexOf("turn:")===0&&Y.indexOf("transport=udp")!==-1&&Y.indexOf("turn:[")===-1&&!D2;return B?(D2=!0,!0):Y.indexOf("stun:")===0&&X>=14393&&Y.indexOf("?transport=udp")===-1}),delete g2.url,g2.urls=I?C[0]:C,!!C.length}})}function L(Q,X){var D2={codecs:[],headerExtensions:[],fecMechanisms:[]},g2=function(Y,B){Y=parseInt(Y,10);for(var A=0;A0;R2--)this._iceGatherers.push(new Q.RTCIceGatherer({iceServers:k.iceServers,gatherPolicy:k.iceTransportPolicy}));else k.iceCandidatePoolSize=0;this._config=k,this.transceivers=[],this._sdpSessionId=g.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(I.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(I.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),I.prototype.onicecandidate=null,I.prototype.onaddstream=null,I.prototype.ontrack=null,I.prototype.onremovestream=null,I.prototype.onsignalingstatechange=null,I.prototype.oniceconnectionstatechange=null,I.prototype.onconnectionstatechange=null,I.prototype.onicegatheringstatechange=null,I.prototype.onnegotiationneeded=null,I.prototype.ondatachannel=null,I.prototype._dispatchEvent=function(A,k){this._isClosed||(this.dispatchEvent(k),typeof this["on"+A]=="function"&&this["on"+A](k))},I.prototype._emitGatheringStateChange=function(){var A=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",A)},I.prototype.getConfiguration=function(){return this._config},I.prototype.getLocalStreams=function(){return this.localStreams},I.prototype.getRemoteStreams=function(){return this.remoteStreams},I.prototype._createTransceiver=function(A,k){var V=this.transceivers.length>0,M2={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:A,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&V)M2.iceTransport=this.transceivers[0].iceTransport,M2.dtlsTransport=this.transceivers[0].dtlsTransport;else{var R2=this._createIceAndDtlsTransports();M2.iceTransport=R2.iceTransport,M2.dtlsTransport=R2.dtlsTransport}return k||this.transceivers.push(M2),M2},I.prototype.addTrack=function(A,k){if(this._isClosed)throw s2("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var V=this.transceivers.find(function(t3){return t3.track===A});if(V)throw s2("InvalidAccessError","Track already exists.");for(var M2,R2=0;R2=15025)A.getTracks().forEach(function(M2){k.addTrack(M2,A)});else{var V=A.clone();A.getTracks().forEach(function(M2,R2){var t3=V.getTracks()[R2];M2.addEventListener("enabled",function(Q2){t3.enabled=Q2.enabled})}),V.getTracks().forEach(function(M2){k.addTrack(M2,V)})}},I.prototype.removeTrack=function(A){if(this._isClosed)throw s2("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(A instanceof Q.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var k=this.transceivers.find(function(R2){return R2.rtpSender===A});if(!k)throw s2("InvalidAccessError","Sender was not created by this connection.");var V=k.stream;k.rtpSender.stop(),k.rtpSender=null,k.track=null,k.stream=null;var M2=this.transceivers.map(function(R2){return R2.stream});M2.indexOf(V)===-1&&this.localStreams.indexOf(V)>-1&&this.localStreams.splice(this.localStreams.indexOf(V),1),this._maybeFireNegotiationNeeded()},I.prototype.removeStream=function(A){var k=this;A.getTracks().forEach(function(V){var M2=k.getSenders().find(function(R2){return R2.track===V});M2&&k.removeTrack(M2)})},I.prototype.getSenders=function(){return this.transceivers.filter(function(A){return!!A.rtpSender}).map(function(A){return A.rtpSender})},I.prototype.getReceivers=function(){return this.transceivers.filter(function(A){return!!A.rtpReceiver}).map(function(A){return A.rtpReceiver})},I.prototype._createIceGatherer=function(A,k){var V=this;if(k&&A>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var M2=new Q.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(M2,"state",{value:"new",writable:!0}),this.transceivers[A].bufferedCandidateEvents=[],this.transceivers[A].bufferCandidates=function(R2){var t3=!R2.candidate||Object.keys(R2.candidate).length===0;M2.state=t3?"completed":"gathering",V.transceivers[A].bufferedCandidateEvents!==null&&V.transceivers[A].bufferedCandidateEvents.push(R2)},M2.addEventListener("localcandidate",this.transceivers[A].bufferCandidates),M2},I.prototype._gather=function(A,k){var V=this,M2=this.transceivers[k].iceGatherer;if(!M2.onlocalcandidate){var R2=this.transceivers[k].bufferedCandidateEvents;this.transceivers[k].bufferedCandidateEvents=null,M2.removeEventListener("localcandidate",this.transceivers[k].bufferCandidates),M2.onlocalcandidate=function(t3){if(!(V.usingBundle&&k>0)){var Q2=new Event("icecandidate");Q2.candidate={sdpMid:A,sdpMLineIndex:k};var c3=t3.candidate,b3=!c3||Object.keys(c3).length===0;if(b3)(M2.state==="new"||M2.state==="gathering")&&(M2.state="completed");else{M2.state==="new"&&(M2.state="gathering"),c3.component=1,c3.ufrag=M2.getLocalParameters().usernameFragment;var M3=g.writeCandidate(c3);Q2.candidate=Object.assign(Q2.candidate,g.parseCandidate(M3)),Q2.candidate.candidate=M3,Q2.candidate.toJSON=function(){return{candidate:Q2.candidate.candidate,sdpMid:Q2.candidate.sdpMid,sdpMLineIndex:Q2.candidate.sdpMLineIndex,usernameFragment:Q2.candidate.usernameFragment}}}var T3=g.getMediaSections(V._localDescription.sdp);b3?T3[Q2.candidate.sdpMLineIndex]+=`a=end-of-candidates\r
+ `),document.getElementById("".concat(x.id,"-wrap")).appendChild(g),document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).onmousedown=function(A){A.preventDefault(),console.log("触摸开始"),m._handlePtzTouch(A,"start")},document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).onmouseup=function(A){A.preventDefault(),console.log("触摸结束"),m._handlePtzTouch(A,"stop")},document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).ontouchstart=function(A){A.preventDefault(),console.log("触摸开始"),m._handlePtzTouch(A,"start")},document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).ontouchend=function(A){A.preventDefault(),console.log("触摸结束",A),m._handlePtzTouch(A,"stop")}}return a(V,[{key:"show",value:function(){document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-item")).style="display: inline-block"}},{key:"hide",value:function(){document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-item")).style="display: none"}},{key:"_handlePtzTouch",value:function(m,g){var S=this,A=document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).getBoundingClientRect(),P=A.left+41,N=A.top+41,r2=m.x||m.changedTouches[0].clientX,l2=m.y||m.changedTouches[0].clientY,s2=r2-P,Q=l2-N,X=0,D2=this.jSPlugin.env.domain+"/api/lapp/device/ptz/start";if(Math.abs(s2)>Math.abs(Q)?s2>0?X=3:X=2:Q>0?X=1:X=0,/^rotate\(90/.test(document.getElementById("".concat(this.jSPlugin.id,"-wrap")).style.transform))switch(X){case 0:X=2;break;case 1:X=3;break;case 2:X=1;break;case 3:X=0;break}document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).style="background-image:linear-gradient(".concat(X===0?180:X===1?0:X===2?90:270,"deg, #1d8dd8 0%, rgba(100,143,252,0.00) 30%)"),g==="stop"&&(D2=this.jSPlugin.env.domain+"/api/lapp/device/ptz/stop",document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).style="");var g2=new FormData;g2.append("deviceSerial",R(this.jSPlugin.url).deviceSerial),g2.append("channelNo",R(this.jSPlugin.url).channelNo),g2.append("speed",1),g2.append("direction",X),g2.append("accessToken",this.jSPlugin.accessToken),fetch(D2,{method:"POST",body:g2}).then(function(M){return M.json()}).then(function(M){M.code==200||(console.log(M.code,S.codeHandler.matchInfo(M.code,g==="start"?"ptzStart":"ptzStop")),S.pluginStatus.loadingSetText({text:S.codeHandler.matchInfo(M.code,g==="start"?"ptzStart":"ptzStop").msg,color:"red",delayClear:2e3}),(M.code==60005||M.code==60002||M.code==60003||M.code==60004)&&(document.getElementById("".concat(S.jSPlugin.id,"-ez-ptz-container")).style="background-image:linear-gradient(".concat(X===0?180:X===1?0:X===2?90:270,"deg, #f45656 0%, rgba(100,143,252,0.00) 30%)")))}).catch(function(M){console.log("云台调用异常",M)})}}]),V}();(function(V){if(t(e)==="object")n.exports=V();else{var x;typeof window!="undefined"?x=window:typeof s7!="undefined"?x=s7:typeof self!="undefined"?x=self:x=this,x.adapter=V()}})(function(){return function(){function V(x,m,g){function S(N,r2){if(!m[N]){if(!x[N]){var l2=typeof o7=="function"&&o7;if(!r2&&l2)return l2(N,!0);if(A)return A(N,!0);var s2=new Error("Cannot find module '"+N+"'");throw s2.code="MODULE_NOT_FOUND",s2}var Q=m[N]={exports:{}};x[N][0].call(Q.exports,function(X){var D2=x[N][1][X];return S(D2||X)},Q,Q.exports,V,x,m,g)}return m[N].exports}for(var A=typeof o7=="function"&&o7,P=0;P0&&arguments[0]!==void 0?arguments[0]:{},O=Y.window,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0},I=S.log,G=S.detectBrowser(O),M2={browserDetails:G,commonShim:g2,extractVersion:S.extractVersion,disableLog:S.disableLog,disableWarnings:S.disableWarnings};switch(G.browser){case"chrome":if(!P||!P.shimPeerConnection||!C.shimChrome)return I("Chrome shim is not included in this adapter release."),M2;I("adapter.js shimming chrome."),M2.browserShim=P,P.shimGetUserMedia(O),P.shimMediaStream(O),P.shimPeerConnection(O),P.shimOnTrack(O),P.shimAddTrackRemoveTrack(O),P.shimGetSendersWithDtmf(O),P.shimGetStats(O),P.shimSenderReceiverGetStats(O),P.fixNegotiationNeeded(O),g2.shimRTCIceCandidate(O),g2.shimConnectionState(O),g2.shimMaxMessageSize(O),g2.shimSendThrowTypeError(O),g2.removeAllowExtmapMixed(O);break;case"firefox":if(!s2||!s2.shimPeerConnection||!C.shimFirefox)return I("Firefox shim is not included in this adapter release."),M2;I("adapter.js shimming firefox."),M2.browserShim=s2,s2.shimGetUserMedia(O),s2.shimPeerConnection(O),s2.shimOnTrack(O),s2.shimRemoveStream(O),s2.shimSenderGetStats(O),s2.shimReceiverGetStats(O),s2.shimRTCDataChannel(O),s2.shimAddTransceiver(O),s2.shimCreateOffer(O),s2.shimCreateAnswer(O),g2.shimRTCIceCandidate(O),g2.shimConnectionState(O),g2.shimMaxMessageSize(O),g2.shimSendThrowTypeError(O);break;case"edge":if(!r2||!r2.shimPeerConnection||!C.shimEdge)return I("MS edge shim is not included in this adapter release."),M2;I("adapter.js shimming edge."),M2.browserShim=r2,r2.shimGetUserMedia(O),r2.shimGetDisplayMedia(O),r2.shimPeerConnection(O),r2.shimReplaceTrack(O),g2.shimMaxMessageSize(O),g2.shimSendThrowTypeError(O);break;case"safari":if(!X||!C.shimSafari)return I("Safari shim is not included in this adapter release."),M2;I("adapter.js shimming safari."),M2.browserShim=X,X.shimRTCIceServerUrls(O),X.shimCreateOfferLegacy(O),X.shimCallbacksAPI(O),X.shimLocalStreamsAPI(O),X.shimRemoteStreamsAPI(O),X.shimTrackEventTransceiver(O),X.shimGetUserMedia(O),g2.shimRTCIceCandidate(O),g2.shimMaxMessageSize(O),g2.shimSendThrowTypeError(O),g2.removeAllowExtmapMixed(O);break;default:I("Unsupported browser!");break}return M2}},{"./chrome/chrome_shim":3,"./common_shim":6,"./edge/edge_shim":7,"./firefox/firefox_shim":11,"./safari/safari_shim":14,"./utils":15}],3:[function(V,x,m){Object.defineProperty(m,"__esModule",{value:!0}),m.shimGetDisplayMedia=m.shimGetUserMedia=void 0;var g=typeof Symbol=="function"&&t(Symbol.iterator)==="symbol"?function(C){return t(C)}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":t(C)},S=V("./getusermedia");Object.defineProperty(m,"shimGetUserMedia",{enumerable:!0,get:function(){return S.shimGetUserMedia}});var A=V("./getdisplaymedia");Object.defineProperty(m,"shimGetDisplayMedia",{enumerable:!0,get:function(){return A.shimGetDisplayMedia}}),m.shimMediaStream=s2,m.shimOnTrack=Q,m.shimGetSendersWithDtmf=X,m.shimGetStats=D2,m.shimSenderReceiverGetStats=g2,m.shimAddTrackRemoveTrackWithNative=M,m.shimAddTrackRemoveTrack=L,m.shimPeerConnection=Y,m.fixNegotiationNeeded=O;var P=V("../utils.js"),N=r2(P);function r2(C){if(C&&C.__esModule)return C;var I={};if(C!=null)for(var G in C)Object.prototype.hasOwnProperty.call(C,G)&&(I[G]=C[G]);return I.default=C,I}function l2(C,I,G){return I in C?Object.defineProperty(C,I,{value:G,enumerable:!0,configurable:!0,writable:!0}):C[I]=G,C}function s2(C){C.MediaStream=C.MediaStream||C.webkitMediaStream}function Q(C){if((typeof C=="undefined"?"undefined":g(C))==="object"&&C.RTCPeerConnection&&!("ontrack"in C.RTCPeerConnection.prototype)){Object.defineProperty(C.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(M2){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=M2)},enumerable:!0,configurable:!0});var I=C.RTCPeerConnection.prototype.setRemoteDescription;C.RTCPeerConnection.prototype.setRemoteDescription=function(){var M2=this;return this._ontrackpoly||(this._ontrackpoly=function(R2){R2.stream.addEventListener("addtrack",function(t3){var Q2=void 0;C.RTCPeerConnection.prototype.getReceivers?Q2=M2.getReceivers().find(function(b3){return b3.track&&b3.track.id===t3.track.id}):Q2={track:t3.track};var d3=new Event("track");d3.track=t3.track,d3.receiver=Q2,d3.transceiver={receiver:Q2},d3.streams=[R2.stream],M2.dispatchEvent(d3)}),R2.stream.getTracks().forEach(function(t3){var Q2=void 0;C.RTCPeerConnection.prototype.getReceivers?Q2=M2.getReceivers().find(function(b3){return b3.track&&b3.track.id===t3.id}):Q2={track:t3};var d3=new Event("track");d3.track=t3,d3.receiver=Q2,d3.transceiver={receiver:Q2},d3.streams=[R2.stream],M2.dispatchEvent(d3)})},this.addEventListener("addstream",this._ontrackpoly)),I.apply(this,arguments)}}else N.wrapPeerConnectionEvent(C,"track",function(G){return G.transceiver||Object.defineProperty(G,"transceiver",{value:{receiver:G.receiver}}),G})}function X(C){if((typeof C=="undefined"?"undefined":g(C))==="object"&&C.RTCPeerConnection&&!("getSenders"in C.RTCPeerConnection.prototype)&&"createDTMFSender"in C.RTCPeerConnection.prototype){var I=function(b3,M3){return{track:M3,get dtmf(){return this._dtmf===void 0&&(M3.kind==="audio"?this._dtmf=b3.createDTMFSender(M3):this._dtmf=null),this._dtmf},_pc:b3}};if(!C.RTCPeerConnection.prototype.getSenders){C.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};var G=C.RTCPeerConnection.prototype.addTrack;C.RTCPeerConnection.prototype.addTrack=function(b3,M3){var T3=G.apply(this,arguments);return T3||(T3=I(this,b3),this._senders.push(T3)),T3};var M2=C.RTCPeerConnection.prototype.removeTrack;C.RTCPeerConnection.prototype.removeTrack=function(b3){M2.apply(this,arguments);var M3=this._senders.indexOf(b3);M3!==-1&&this._senders.splice(M3,1)}}var R2=C.RTCPeerConnection.prototype.addStream;C.RTCPeerConnection.prototype.addStream=function(b3){var M3=this;this._senders=this._senders||[],R2.apply(this,[b3]),b3.getTracks().forEach(function(T3){M3._senders.push(I(M3,T3))})};var t3=C.RTCPeerConnection.prototype.removeStream;C.RTCPeerConnection.prototype.removeStream=function(b3){var M3=this;this._senders=this._senders||[],t3.apply(this,[b3]),b3.getTracks().forEach(function(T3){var f1=M3._senders.find(function(b1){return b1.track===T3});f1&&M3._senders.splice(M3._senders.indexOf(f1),1)})}}else if((typeof C=="undefined"?"undefined":g(C))==="object"&&C.RTCPeerConnection&&"getSenders"in C.RTCPeerConnection.prototype&&"createDTMFSender"in C.RTCPeerConnection.prototype&&C.RTCRtpSender&&!("dtmf"in C.RTCRtpSender.prototype)){var Q2=C.RTCPeerConnection.prototype.getSenders;C.RTCPeerConnection.prototype.getSenders=function(){var b3=this,M3=Q2.apply(this,[]);return M3.forEach(function(T3){return T3._pc=b3}),M3},Object.defineProperty(C.RTCRtpSender.prototype,"dtmf",{get:function(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function D2(C){if(C.RTCPeerConnection){var I=C.RTCPeerConnection.prototype.getStats;C.RTCPeerConnection.prototype.getStats=function(){var M2=this,R2=Array.prototype.slice.call(arguments),t3=R2[0],Q2=R2[1],d3=R2[2];if(arguments.length>0&&typeof t3=="function")return I.apply(this,arguments);if(I.length===0&&(arguments.length===0||typeof t3!="function"))return I.apply(this,[]);var b3=function(b1){var x1={},N1=b1.result();return N1.forEach(function(L1){var G1={id:L1.id,timestamp:L1.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[L1.type]||L1.type};L1.names().forEach(function(y0){G1[y0]=L1.stat(y0)}),x1[G1.id]=G1}),x1},M3=function(b1){return new Map(Object.keys(b1).map(function(x1){return[x1,b1[x1]]}))};if(arguments.length>=2){var T3=function(b1){Q2(M3(b3(b1)))};return I.apply(this,[T3,t3])}return new Promise(function(f1,b1){I.apply(M2,[function(x1){f1(M3(b3(x1)))},b1])}).then(Q2,d3)}}}function g2(C){if((typeof C=="undefined"?"undefined":g(C))==="object"&&C.RTCPeerConnection&&C.RTCRtpSender&&C.RTCRtpReceiver){if(!("getStats"in C.RTCRtpSender.prototype)){var I=C.RTCPeerConnection.prototype.getSenders;I&&(C.RTCPeerConnection.prototype.getSenders=function(){var Q2=this,d3=I.apply(this,[]);return d3.forEach(function(b3){return b3._pc=Q2}),d3});var G=C.RTCPeerConnection.prototype.addTrack;G&&(C.RTCPeerConnection.prototype.addTrack=function(){var Q2=G.apply(this,arguments);return Q2._pc=this,Q2}),C.RTCRtpSender.prototype.getStats=function(){var Q2=this;return this._pc.getStats().then(function(d3){return N.filterStats(d3,Q2.track,!0)})}}if(!("getStats"in C.RTCRtpReceiver.prototype)){var M2=C.RTCPeerConnection.prototype.getReceivers;M2&&(C.RTCPeerConnection.prototype.getReceivers=function(){var Q2=this,d3=M2.apply(this,[]);return d3.forEach(function(b3){return b3._pc=Q2}),d3}),N.wrapPeerConnectionEvent(C,"track",function(t3){return t3.receiver._pc=t3.srcElement,t3}),C.RTCRtpReceiver.prototype.getStats=function(){var Q2=this;return this._pc.getStats().then(function(d3){return N.filterStats(d3,Q2.track,!1)})}}if("getStats"in C.RTCRtpSender.prototype&&"getStats"in C.RTCRtpReceiver.prototype){var R2=C.RTCPeerConnection.prototype.getStats;C.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof C.MediaStreamTrack){var Q2=arguments[0],d3=void 0,b3=void 0,M3=void 0;return this.getSenders().forEach(function(T3){T3.track===Q2&&(d3?M3=!0:d3=T3)}),this.getReceivers().forEach(function(T3){return T3.track===Q2&&(b3?M3=!0:b3=T3),T3.track===Q2}),M3||d3&&b3?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):d3?d3.getStats():b3?b3.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return R2.apply(this,arguments)}}}}function M(C){C.RTCPeerConnection.prototype.getLocalStreams=function(){var Q2=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(function(d3){return Q2._shimmedLocalStreams[d3][0]})};var I=C.RTCPeerConnection.prototype.addTrack;C.RTCPeerConnection.prototype.addTrack=function(Q2,d3){if(!d3)return I.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};var b3=I.apply(this,arguments);return this._shimmedLocalStreams[d3.id]?this._shimmedLocalStreams[d3.id].indexOf(b3)===-1&&this._shimmedLocalStreams[d3.id].push(b3):this._shimmedLocalStreams[d3.id]=[d3,b3],b3};var G=C.RTCPeerConnection.prototype.addStream;C.RTCPeerConnection.prototype.addStream=function(Q2){var d3=this;this._shimmedLocalStreams=this._shimmedLocalStreams||{},Q2.getTracks().forEach(function(T3){var f1=d3.getSenders().find(function(b1){return b1.track===T3});if(f1)throw new DOMException("Track already exists.","InvalidAccessError")});var b3=this.getSenders();G.apply(this,arguments);var M3=this.getSenders().filter(function(T3){return b3.indexOf(T3)===-1});this._shimmedLocalStreams[Q2.id]=[Q2].concat(M3)};var M2=C.RTCPeerConnection.prototype.removeStream;C.RTCPeerConnection.prototype.removeStream=function(Q2){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[Q2.id],M2.apply(this,arguments)};var R2=C.RTCPeerConnection.prototype.removeTrack;C.RTCPeerConnection.prototype.removeTrack=function(Q2){var d3=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Q2&&Object.keys(this._shimmedLocalStreams).forEach(function(b3){var M3=d3._shimmedLocalStreams[b3].indexOf(Q2);M3!==-1&&d3._shimmedLocalStreams[b3].splice(M3,1),d3._shimmedLocalStreams[b3].length===1&&delete d3._shimmedLocalStreams[b3]}),R2.apply(this,arguments)}}function L(C){if(!C.RTCPeerConnection)return;var I=N.detectBrowser(C);if(C.RTCPeerConnection.prototype.addTrack&&I.version>=65)return M(C);var G=C.RTCPeerConnection.prototype.getLocalStreams;C.RTCPeerConnection.prototype.getLocalStreams=function(){var T3=this,f1=G.apply(this);return this._reverseStreams=this._reverseStreams||{},f1.map(function(b1){return T3._reverseStreams[b1.id]})};var M2=C.RTCPeerConnection.prototype.addStream;C.RTCPeerConnection.prototype.addStream=function(T3){var f1=this;if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},T3.getTracks().forEach(function(x1){var N1=f1.getSenders().find(function(L1){return L1.track===x1});if(N1)throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[T3.id]){var b1=new C.MediaStream(T3.getTracks());this._streams[T3.id]=b1,this._reverseStreams[b1.id]=T3,T3=b1}M2.apply(this,[T3])};var R2=C.RTCPeerConnection.prototype.removeStream;C.RTCPeerConnection.prototype.removeStream=function(T3){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},R2.apply(this,[this._streams[T3.id]||T3]),delete this._reverseStreams[this._streams[T3.id]?this._streams[T3.id].id:T3.id],delete this._streams[T3.id]},C.RTCPeerConnection.prototype.addTrack=function(T3,f1){var b1=this;if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");var x1=[].slice.call(arguments,1);if(x1.length!==1||!x1[0].getTracks().find(function(y0){return y0===T3}))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");var N1=this.getSenders().find(function(y0){return y0.track===T3});if(N1)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};var L1=this._streams[f1.id];if(L1)L1.addTrack(T3),Promise.resolve().then(function(){b1.dispatchEvent(new Event("negotiationneeded"))});else{var G1=new C.MediaStream([T3]);this._streams[f1.id]=G1,this._reverseStreams[G1.id]=f1,this.addStream(G1)}return this.getSenders().find(function(y0){return y0.track===T3})};function t3(M3,T3){var f1=T3.sdp;return Object.keys(M3._reverseStreams||[]).forEach(function(b1){var x1=M3._reverseStreams[b1],N1=M3._streams[x1.id];f1=f1.replace(new RegExp(N1.id,"g"),x1.id)}),new RTCSessionDescription({type:T3.type,sdp:f1})}function Q2(M3,T3){var f1=T3.sdp;return Object.keys(M3._reverseStreams||[]).forEach(function(b1){var x1=M3._reverseStreams[b1],N1=M3._streams[x1.id];f1=f1.replace(new RegExp(x1.id,"g"),N1.id)}),new RTCSessionDescription({type:T3.type,sdp:f1})}["createOffer","createAnswer"].forEach(function(M3){var T3=C.RTCPeerConnection.prototype[M3],f1=l2({},M3,function(){var b1=this,x1=arguments,N1=arguments.length&&typeof arguments[0]=="function";return N1?T3.apply(this,[function(L1){var G1=t3(b1,L1);x1[0].apply(null,[G1])},function(L1){x1[1]&&x1[1].apply(null,L1)},arguments[2]]):T3.apply(this,arguments).then(function(L1){return t3(b1,L1)})});C.RTCPeerConnection.prototype[M3]=f1[M3]});var d3=C.RTCPeerConnection.prototype.setLocalDescription;C.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?d3.apply(this,arguments):(arguments[0]=Q2(this,arguments[0]),d3.apply(this,arguments))};var b3=Object.getOwnPropertyDescriptor(C.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(C.RTCPeerConnection.prototype,"localDescription",{get:function(){var T3=b3.get.apply(this);return T3.type===""?T3:t3(this,T3)}}),C.RTCPeerConnection.prototype.removeTrack=function(T3){var f1=this;if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!T3._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");var b1=T3._pc===this;if(!b1)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};var x1=void 0;Object.keys(this._streams).forEach(function(N1){var L1=f1._streams[N1].getTracks().find(function(G1){return T3.track===G1});L1&&(x1=f1._streams[N1])}),x1&&(x1.getTracks().length===1?this.removeStream(this._reverseStreams[x1.id]):x1.removeTrack(T3.track),this.dispatchEvent(new Event("negotiationneeded")))}}function Y(C){var I=N.detectBrowser(C);if(!C.RTCPeerConnection&&C.webkitRTCPeerConnection&&(C.RTCPeerConnection=C.webkitRTCPeerConnection),!!C.RTCPeerConnection){I.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(M2){var R2=C.RTCPeerConnection.prototype[M2],t3=l2({},M2,function(){return arguments[0]=new(M2==="addIceCandidate"?C.RTCIceCandidate:C.RTCSessionDescription)(arguments[0]),R2.apply(this,arguments)});C.RTCPeerConnection.prototype[M2]=t3[M2]});var G=C.RTCPeerConnection.prototype.addIceCandidate;C.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?I.version<78&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():G.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}}function O(C){N.wrapPeerConnectionEvent(C,"negotiationneeded",function(I){var G=I.target;if(G.signalingState==="stable")return I})}},{"../utils.js":15,"./getdisplaymedia":4,"./getusermedia":5}],4:[function(V,x,m){Object.defineProperty(m,"__esModule",{value:!0}),m.shimGetDisplayMedia=g;function g(S,A){if(!(S.navigator.mediaDevices&&"getDisplayMedia"in S.navigator.mediaDevices)&&S.navigator.mediaDevices){if(typeof A!="function"){console.error("shimGetDisplayMedia: getSourceId argument is not a function");return}S.navigator.mediaDevices.getDisplayMedia=function(N){return A(N).then(function(r2){var l2=N.video&&N.video.width,s2=N.video&&N.video.height,Q=N.video&&N.video.frameRate;return N.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:r2,maxFrameRate:Q||3}},l2&&(N.video.mandatory.maxWidth=l2),s2&&(N.video.mandatory.maxHeight=s2),S.navigator.mediaDevices.getUserMedia(N)})}}}},{}],5:[function(V,x,m){Object.defineProperty(m,"__esModule",{value:!0});var g=typeof Symbol=="function"&&t(Symbol.iterator)==="symbol"?function(l2){return t(l2)}:function(l2){return l2&&typeof Symbol=="function"&&l2.constructor===Symbol&&l2!==Symbol.prototype?"symbol":t(l2)};m.shimGetUserMedia=r2;var S=V("../utils.js"),A=P(S);function P(l2){if(l2&&l2.__esModule)return l2;var s2={};if(l2!=null)for(var Q in l2)Object.prototype.hasOwnProperty.call(l2,Q)&&(s2[Q]=l2[Q]);return s2.default=l2,s2}var N=A.log;function r2(l2){var s2=l2&&l2.navigator;if(s2.mediaDevices){var Q=A.detectBrowser(l2),X=function(O){if((typeof O=="undefined"?"undefined":g(O))!=="object"||O.mandatory||O.optional)return O;var C={};return Object.keys(O).forEach(function(I){if(!(I==="require"||I==="advanced"||I==="mediaSource")){var G=g(O[I])==="object"?O[I]:{ideal:O[I]};G.exact!==void 0&&typeof G.exact=="number"&&(G.min=G.max=G.exact);var M2=function(Q2,d3){return Q2?Q2+d3.charAt(0).toUpperCase()+d3.slice(1):d3==="deviceId"?"sourceId":d3};if(G.ideal!==void 0){C.optional=C.optional||[];var R2={};typeof G.ideal=="number"?(R2[M2("min",I)]=G.ideal,C.optional.push(R2),R2={},R2[M2("max",I)]=G.ideal,C.optional.push(R2)):(R2[M2("",I)]=G.ideal,C.optional.push(R2))}G.exact!==void 0&&typeof G.exact!="number"?(C.mandatory=C.mandatory||{},C.mandatory[M2("",I)]=G.exact):["min","max"].forEach(function(t3){G[t3]!==void 0&&(C.mandatory=C.mandatory||{},C.mandatory[M2(t3,I)]=G[t3])})}}),O.advanced&&(C.optional=(C.optional||[]).concat(O.advanced)),C},D2=function(O,C){if(Q.version>=61)return C(O);if(O=JSON.parse(JSON.stringify(O)),O&&g(O.audio)==="object"){var I=function(Q2,d3,b3){d3 in Q2&&!(b3 in Q2)&&(Q2[b3]=Q2[d3],delete Q2[d3])};O=JSON.parse(JSON.stringify(O)),I(O.audio,"autoGainControl","googAutoGainControl"),I(O.audio,"noiseSuppression","googNoiseSuppression"),O.audio=X(O.audio)}if(O&&g(O.video)==="object"){var G=O.video.facingMode;G=G&&((typeof G=="undefined"?"undefined":g(G))==="object"?G:{ideal:G});var M2=Q.version<66;if(G&&(G.exact==="user"||G.exact==="environment"||G.ideal==="user"||G.ideal==="environment")&&!(s2.mediaDevices.getSupportedConstraints&&s2.mediaDevices.getSupportedConstraints().facingMode&&!M2)){delete O.video.facingMode;var R2=void 0;if(G.exact==="environment"||G.ideal==="environment"?R2=["back","rear"]:(G.exact==="user"||G.ideal==="user")&&(R2=["front"]),R2)return s2.mediaDevices.enumerateDevices().then(function(t3){t3=t3.filter(function(d3){return d3.kind==="videoinput"});var Q2=t3.find(function(d3){return R2.some(function(b3){return d3.label.toLowerCase().includes(b3)})});return!Q2&&t3.length&&R2.includes("back")&&(Q2=t3[t3.length-1]),Q2&&(O.video.deviceId=G.exact?{exact:Q2.deviceId}:{ideal:Q2.deviceId}),O.video=X(O.video),N("chrome: "+JSON.stringify(O)),C(O)})}O.video=X(O.video)}return N("chrome: "+JSON.stringify(O)),C(O)},g2=function(O){return Q.version>=64?O:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[O.name]||O.name,message:O.message,constraint:O.constraint||O.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}},M=function(O,C,I){D2(O,function(G){s2.webkitGetUserMedia(G,C,function(M2){I&&I(g2(M2))})})};if(s2.getUserMedia=M.bind(s2),s2.mediaDevices.getUserMedia){var L=s2.mediaDevices.getUserMedia.bind(s2.mediaDevices);s2.mediaDevices.getUserMedia=function(Y){return D2(Y,function(O){return L(O).then(function(C){if(O.audio&&!C.getAudioTracks().length||O.video&&!C.getVideoTracks().length)throw C.getTracks().forEach(function(I){I.stop()}),new DOMException("","NotFoundError");return C},function(C){return Promise.reject(g2(C))})})}}}}},{"../utils.js":15}],6:[function(V,x,m){Object.defineProperty(m,"__esModule",{value:!0});var g=typeof Symbol=="function"&&t(Symbol.iterator)==="symbol"?function(M){return t(M)}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":t(M)};m.shimRTCIceCandidate=s2,m.shimMaxMessageSize=Q,m.shimSendThrowTypeError=X,m.shimConnectionState=D2,m.removeAllowExtmapMixed=g2;var S=V("sdp"),A=l2(S),P=V("./utils"),N=r2(P);function r2(M){if(M&&M.__esModule)return M;var L={};if(M!=null)for(var Y in M)Object.prototype.hasOwnProperty.call(M,Y)&&(L[Y]=M[Y]);return L.default=M,L}function l2(M){return M&&M.__esModule?M:{default:M}}function s2(M){if(!(!M.RTCIceCandidate||M.RTCIceCandidate&&"foundation"in M.RTCIceCandidate.prototype)){var L=M.RTCIceCandidate;M.RTCIceCandidate=function(O){if((typeof O=="undefined"?"undefined":g(O))==="object"&&O.candidate&&O.candidate.indexOf("a=")===0&&(O=JSON.parse(JSON.stringify(O)),O.candidate=O.candidate.substr(2)),O.candidate&&O.candidate.length){var C=new L(O),I=A.default.parseCandidate(O.candidate),G=Object.assign(C,I);return G.toJSON=function(){return{candidate:G.candidate,sdpMid:G.sdpMid,sdpMLineIndex:G.sdpMLineIndex,usernameFragment:G.usernameFragment}},G}return new L(O)},M.RTCIceCandidate.prototype=L.prototype,N.wrapPeerConnectionEvent(M,"icecandidate",function(Y){return Y.candidate&&Object.defineProperty(Y,"candidate",{value:new M.RTCIceCandidate(Y.candidate),writable:"false"}),Y})}}function Q(M){if(M.RTCPeerConnection){var L=N.detectBrowser(M);"sctp"in M.RTCPeerConnection.prototype||Object.defineProperty(M.RTCPeerConnection.prototype,"sctp",{get:function(){return typeof this._sctp=="undefined"?null:this._sctp}});var Y=function(R2){if(!R2||!R2.sdp)return!1;var t3=A.default.splitSections(R2.sdp);return t3.shift(),t3.some(function(Q2){var d3=A.default.parseMLine(Q2);return d3&&d3.kind==="application"&&d3.protocol.indexOf("SCTP")!==-1})},O=function(R2){var t3=R2.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(t3===null||t3.length<2)return-1;var Q2=parseInt(t3[1],10);return Q2!==Q2?-1:Q2},C=function(R2){var t3=65536;return L.browser==="firefox"&&(L.version<57?R2===-1?t3=16384:t3=2147483637:L.version<60?t3=L.version===57?65535:65536:t3=2147483637),t3},I=function(R2,t3){var Q2=65536;L.browser==="firefox"&&L.version===57&&(Q2=65535);var d3=A.default.matchPrefix(R2.sdp,"a=max-message-size:");return d3.length>0?Q2=parseInt(d3[0].substr(19),10):L.browser==="firefox"&&t3!==-1&&(Q2=2147483637),Q2},G=M.RTCPeerConnection.prototype.setRemoteDescription;M.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,L.browser==="chrome"&&L.version>=76){var R2=this.getConfiguration(),t3=R2.sdpSemantics;t3==="plan-b"&&Object.defineProperty(this,"sctp",{get:function(){return typeof this._sctp=="undefined"?null:this._sctp},enumerable:!0,configurable:!0})}if(Y(arguments[0])){var Q2=O(arguments[0]),d3=C(Q2),b3=I(arguments[0],Q2),M3=void 0;d3===0&&b3===0?M3=Number.POSITIVE_INFINITY:d3===0||b3===0?M3=Math.max(d3,b3):M3=Math.min(d3,b3);var T3={};Object.defineProperty(T3,"maxMessageSize",{get:function(){return M3}}),this._sctp=T3}return G.apply(this,arguments)}}}function X(M){if(!(M.RTCPeerConnection&&"createDataChannel"in M.RTCPeerConnection.prototype))return;function L(O,C){var I=O.send;O.send=function(){var M2=arguments[0],R2=M2.length||M2.size||M2.byteLength;if(O.readyState==="open"&&C.sctp&&R2>C.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+C.sctp.maxMessageSize+" bytes)");return I.apply(O,arguments)}}var Y=M.RTCPeerConnection.prototype.createDataChannel;M.RTCPeerConnection.prototype.createDataChannel=function(){var C=Y.apply(this,arguments);return L(C,this),C},N.wrapPeerConnectionEvent(M,"datachannel",function(O){return L(O.channel,O.target),O})}function D2(M){if(!(!M.RTCPeerConnection||"connectionState"in M.RTCPeerConnection.prototype)){var L=M.RTCPeerConnection.prototype;Object.defineProperty(L,"connectionState",{get:function(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(L,"onconnectionstatechange",{get:function(){return this._onconnectionstatechange||null},set:function(O){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),O&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=O)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(function(Y){var O=L[Y];L[Y]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=function(C){var I=C.target;if(I._lastConnectionState!==I.connectionState){I._lastConnectionState=I.connectionState;var G=new Event("connectionstatechange",C);I.dispatchEvent(G)}return C},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),O.apply(this,arguments)}})}}function g2(M){if(M.RTCPeerConnection){var L=N.detectBrowser(M);if(!(L.browser==="chrome"&&L.version>=71)){var Y=M.RTCPeerConnection.prototype.setRemoteDescription;M.RTCPeerConnection.prototype.setRemoteDescription=function(C){return C&&C.sdp&&C.sdp.indexOf(`
+a=extmap-allow-mixed`)!==-1&&(C.sdp=C.sdp.split(`
+`).filter(function(I){return I.trim()!=="a=extmap-allow-mixed"}).join(`
+`)),Y.apply(this,arguments)}}}}},{"./utils":15,sdp:17}],7:[function(V,x,m){Object.defineProperty(m,"__esModule",{value:!0}),m.shimGetDisplayMedia=m.shimGetUserMedia=void 0;var g=V("./getusermedia");Object.defineProperty(m,"shimGetUserMedia",{enumerable:!0,get:function(){return g.shimGetUserMedia}});var S=V("./getdisplaymedia");Object.defineProperty(m,"shimGetDisplayMedia",{enumerable:!0,get:function(){return S.shimGetDisplayMedia}}),m.shimPeerConnection=X,m.shimReplaceTrack=D2;var A=V("../utils"),P=Q(A),N=V("./filtericeservers"),r2=V("rtcpeerconnection-shim"),l2=s2(r2);function s2(g2){return g2&&g2.__esModule?g2:{default:g2}}function Q(g2){if(g2&&g2.__esModule)return g2;var M={};if(g2!=null)for(var L in g2)Object.prototype.hasOwnProperty.call(g2,L)&&(M[L]=g2[L]);return M.default=g2,M}function X(g2){var M=P.detectBrowser(g2);if(g2.RTCIceGatherer&&(g2.RTCIceCandidate||(g2.RTCIceCandidate=function(C){return C}),g2.RTCSessionDescription||(g2.RTCSessionDescription=function(C){return C}),M.version<15025)){var L=Object.getOwnPropertyDescriptor(g2.MediaStreamTrack.prototype,"enabled");Object.defineProperty(g2.MediaStreamTrack.prototype,"enabled",{set:function(C){L.set.call(this,C);var I=new Event("enabled");I.enabled=C,this.dispatchEvent(I)}})}g2.RTCRtpSender&&!("dtmf"in g2.RTCRtpSender.prototype)&&Object.defineProperty(g2.RTCRtpSender.prototype,"dtmf",{get:function(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=new g2.RTCDtmfSender(this):this.track.kind==="video"&&(this._dtmf=null)),this._dtmf}}),g2.RTCDtmfSender&&!g2.RTCDTMFSender&&(g2.RTCDTMFSender=g2.RTCDtmfSender);var Y=(0,l2.default)(g2,M.version);g2.RTCPeerConnection=function(C){return C&&C.iceServers&&(C.iceServers=(0,N.filterIceServers)(C.iceServers,M.version),P.log("ICE servers after filtering:",C.iceServers)),new Y(C)},g2.RTCPeerConnection.prototype=Y.prototype}function D2(g2){g2.RTCRtpSender&&!("replaceTrack"in g2.RTCRtpSender.prototype)&&(g2.RTCRtpSender.prototype.replaceTrack=g2.RTCRtpSender.prototype.setTrack)}},{"../utils":15,"./filtericeservers":8,"./getdisplaymedia":9,"./getusermedia":10,"rtcpeerconnection-shim":16}],8:[function(V,x,m){Object.defineProperty(m,"__esModule",{value:!0}),m.filterIceServers=P;var g=V("../utils"),S=A(g);function A(N){if(N&&N.__esModule)return N;var r2={};if(N!=null)for(var l2 in N)Object.prototype.hasOwnProperty.call(N,l2)&&(r2[l2]=N[l2]);return r2.default=N,r2}function P(N,r2){var l2=!1;return N=JSON.parse(JSON.stringify(N)),N.filter(function(s2){if(s2&&(s2.urls||s2.url)){var Q=s2.urls||s2.url;s2.url&&!s2.urls&&S.deprecated("RTCIceServer.url","RTCIceServer.urls");var X=typeof Q=="string";return X&&(Q=[Q]),Q=Q.filter(function(D2){if(D2.indexOf("stun:")===0)return!1;var g2=D2.startsWith("turn")&&!D2.startsWith("turn:[")&&D2.includes("transport=udp");return g2&&!l2?(l2=!0,!0):g2&&!l2}),delete s2.url,s2.urls=X?Q[0]:Q,!!Q.length}})}},{"../utils":15}],9:[function(V,x,m){Object.defineProperty(m,"__esModule",{value:!0}),m.shimGetDisplayMedia=g;function g(S){"getDisplayMedia"in S.navigator&&S.navigator.mediaDevices&&(S.navigator.mediaDevices&&"getDisplayMedia"in S.navigator.mediaDevices||(S.navigator.mediaDevices.getDisplayMedia=S.navigator.getDisplayMedia.bind(S.navigator)))}},{}],10:[function(V,x,m){Object.defineProperty(m,"__esModule",{value:!0}),m.shimGetUserMedia=g;function g(S){var A=S&&S.navigator,P=function(l2){return{name:{PermissionDeniedError:"NotAllowedError"}[l2.name]||l2.name,message:l2.message,constraint:l2.constraint,toString:function(){return this.name}}},N=A.mediaDevices.getUserMedia.bind(A.mediaDevices);A.mediaDevices.getUserMedia=function(r2){return N(r2).catch(function(l2){return Promise.reject(P(l2))})}}},{}],11:[function(V,x,m){Object.defineProperty(m,"__esModule",{value:!0}),m.shimGetDisplayMedia=m.shimGetUserMedia=void 0;var g=typeof Symbol=="function"&&t(Symbol.iterator)==="symbol"?function(C){return t(C)}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":t(C)},S=V("./getusermedia");Object.defineProperty(m,"shimGetUserMedia",{enumerable:!0,get:function(){return S.shimGetUserMedia}});var A=V("./getdisplaymedia");Object.defineProperty(m,"shimGetDisplayMedia",{enumerable:!0,get:function(){return A.shimGetDisplayMedia}}),m.shimOnTrack=s2,m.shimPeerConnection=Q,m.shimSenderGetStats=X,m.shimReceiverGetStats=D2,m.shimRemoveStream=g2,m.shimRTCDataChannel=M,m.shimAddTransceiver=L,m.shimCreateOffer=Y,m.shimCreateAnswer=O;var P=V("../utils"),N=r2(P);function r2(C){if(C&&C.__esModule)return C;var I={};if(C!=null)for(var G in C)Object.prototype.hasOwnProperty.call(C,G)&&(I[G]=C[G]);return I.default=C,I}function l2(C,I,G){return I in C?Object.defineProperty(C,I,{value:G,enumerable:!0,configurable:!0,writable:!0}):C[I]=G,C}function s2(C){(typeof C=="undefined"?"undefined":g(C))==="object"&&C.RTCTrackEvent&&"receiver"in C.RTCTrackEvent.prototype&&!("transceiver"in C.RTCTrackEvent.prototype)&&Object.defineProperty(C.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})}function Q(C){var I=N.detectBrowser(C);if(!((typeof C=="undefined"?"undefined":g(C))!=="object"||!(C.RTCPeerConnection||C.mozRTCPeerConnection))){if(!C.RTCPeerConnection&&C.mozRTCPeerConnection&&(C.RTCPeerConnection=C.mozRTCPeerConnection),I.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t3){var Q2=C.RTCPeerConnection.prototype[t3],d3=l2({},t3,function(){return arguments[0]=new(t3==="addIceCandidate"?C.RTCIceCandidate:C.RTCSessionDescription)(arguments[0]),Q2.apply(this,arguments)});C.RTCPeerConnection.prototype[t3]=d3[t3]}),I.version<68){var G=C.RTCPeerConnection.prototype.addIceCandidate;C.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&arguments[0].candidate===""?Promise.resolve():G.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}var M2={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},R2=C.RTCPeerConnection.prototype.getStats;C.RTCPeerConnection.prototype.getStats=function(){var Q2=Array.prototype.slice.call(arguments),d3=Q2[0],b3=Q2[1],M3=Q2[2];return R2.apply(this,[d3||null]).then(function(T3){if(I.version<53&&!b3)try{T3.forEach(function(f1){f1.type=M2[f1.type]||f1.type})}catch(f1){if(f1.name!=="TypeError")throw f1;T3.forEach(function(b1,x1){T3.set(x1,Object.assign({},b1,{type:M2[b1.type]||b1.type}))})}return T3}).then(b3,M3)}}}function X(C){if((typeof C=="undefined"?"undefined":g(C))==="object"&&C.RTCPeerConnection&&C.RTCRtpSender&&!(C.RTCRtpSender&&"getStats"in C.RTCRtpSender.prototype)){var I=C.RTCPeerConnection.prototype.getSenders;I&&(C.RTCPeerConnection.prototype.getSenders=function(){var R2=this,t3=I.apply(this,[]);return t3.forEach(function(Q2){return Q2._pc=R2}),t3});var G=C.RTCPeerConnection.prototype.addTrack;G&&(C.RTCPeerConnection.prototype.addTrack=function(){var R2=G.apply(this,arguments);return R2._pc=this,R2}),C.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}}function D2(C){if((typeof C=="undefined"?"undefined":g(C))==="object"&&C.RTCPeerConnection&&C.RTCRtpSender&&!(C.RTCRtpSender&&"getStats"in C.RTCRtpReceiver.prototype)){var I=C.RTCPeerConnection.prototype.getReceivers;I&&(C.RTCPeerConnection.prototype.getReceivers=function(){var M2=this,R2=I.apply(this,[]);return R2.forEach(function(t3){return t3._pc=M2}),R2}),N.wrapPeerConnectionEvent(C,"track",function(G){return G.receiver._pc=G.srcElement,G}),C.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}}function g2(C){!C.RTCPeerConnection||"removeStream"in C.RTCPeerConnection.prototype||(C.RTCPeerConnection.prototype.removeStream=function(G){var M2=this;N.deprecated("removeStream","removeTrack"),this.getSenders().forEach(function(R2){R2.track&&G.getTracks().includes(R2.track)&&M2.removeTrack(R2)})})}function M(C){C.DataChannel&&!C.RTCDataChannel&&(C.RTCDataChannel=C.DataChannel)}function L(C){if((typeof C=="undefined"?"undefined":g(C))==="object"&&C.RTCPeerConnection){var I=C.RTCPeerConnection.prototype.addTransceiver;I&&(C.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];var M2=arguments[1],R2=M2&&"sendEncodings"in M2;R2&&M2.sendEncodings.forEach(function(b3){if("rid"in b3){var M3=/^[a-z0-9]{0,16}$/i;if(!M3.test(b3.rid))throw new TypeError("Invalid RID value provided.")}if("scaleResolutionDownBy"in b3&&!(parseFloat(b3.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in b3&&!(parseFloat(b3.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});var t3=I.apply(this,arguments);if(R2){var Q2=t3.sender,d3=Q2.getParameters();"encodings"in d3||(d3.encodings=M2.sendEncodings,this.setParametersPromises.push(Q2.setParameters(d3).catch(function(){})))}return t3})}}function Y(C){if((typeof C=="undefined"?"undefined":g(C))==="object"&&C.RTCPeerConnection){var I=C.RTCPeerConnection.prototype.createOffer;C.RTCPeerConnection.prototype.createOffer=function(){var M2=this,R2=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(function(){return I.apply(M2,R2)}).finally(function(){M2.setParametersPromises=[]}):I.apply(this,arguments)}}}function O(C){if((typeof C=="undefined"?"undefined":g(C))==="object"&&C.RTCPeerConnection){var I=C.RTCPeerConnection.prototype.createAnswer;C.RTCPeerConnection.prototype.createAnswer=function(){var M2=this,R2=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(function(){return I.apply(M2,R2)}).finally(function(){M2.setParametersPromises=[]}):I.apply(this,arguments)}}}},{"../utils":15,"./getdisplaymedia":12,"./getusermedia":13}],12:[function(V,x,m){Object.defineProperty(m,"__esModule",{value:!0}),m.shimGetDisplayMedia=g;function g(S,A){S.navigator.mediaDevices&&"getDisplayMedia"in S.navigator.mediaDevices||S.navigator.mediaDevices&&(S.navigator.mediaDevices.getDisplayMedia=function(N){if(!(N&&N.video)){var r2=new DOMException("getDisplayMedia without video constraints is undefined");return r2.name="NotFoundError",r2.code=8,Promise.reject(r2)}return N.video===!0?N.video={mediaSource:A}:N.video.mediaSource=A,S.navigator.mediaDevices.getUserMedia(N)})}},{}],13:[function(V,x,m){Object.defineProperty(m,"__esModule",{value:!0});var g=typeof Symbol=="function"&&t(Symbol.iterator)==="symbol"?function(r2){return t(r2)}:function(r2){return r2&&typeof Symbol=="function"&&r2.constructor===Symbol&&r2!==Symbol.prototype?"symbol":t(r2)};m.shimGetUserMedia=N;var S=V("../utils"),A=P(S);function P(r2){if(r2&&r2.__esModule)return r2;var l2={};if(r2!=null)for(var s2 in r2)Object.prototype.hasOwnProperty.call(r2,s2)&&(l2[s2]=r2[s2]);return l2.default=r2,l2}function N(r2){var l2=A.detectBrowser(r2),s2=r2&&r2.navigator,Q=r2&&r2.MediaStreamTrack;if(s2.getUserMedia=function(L,Y,O){A.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),s2.mediaDevices.getUserMedia(L).then(Y,O)},!(l2.version>55&&"autoGainControl"in s2.mediaDevices.getSupportedConstraints())){var X=function(Y,O,C){O in Y&&!(C in Y)&&(Y[C]=Y[O],delete Y[O])},D2=s2.mediaDevices.getUserMedia.bind(s2.mediaDevices);if(s2.mediaDevices.getUserMedia=function(L){return(typeof L=="undefined"?"undefined":g(L))==="object"&&g(L.audio)==="object"&&(L=JSON.parse(JSON.stringify(L)),X(L.audio,"autoGainControl","mozAutoGainControl"),X(L.audio,"noiseSuppression","mozNoiseSuppression")),D2(L)},Q&&Q.prototype.getSettings){var g2=Q.prototype.getSettings;Q.prototype.getSettings=function(){var L=g2.apply(this,arguments);return X(L,"mozAutoGainControl","autoGainControl"),X(L,"mozNoiseSuppression","noiseSuppression"),L}}if(Q&&Q.prototype.applyConstraints){var M=Q.prototype.applyConstraints;Q.prototype.applyConstraints=function(L){return this.kind==="audio"&&(typeof L=="undefined"?"undefined":g(L))==="object"&&(L=JSON.parse(JSON.stringify(L)),X(L,"autoGainControl","mozAutoGainControl"),X(L,"noiseSuppression","mozNoiseSuppression")),M.apply(this,[L])}}}}},{"../utils":15}],14:[function(V,x,m){Object.defineProperty(m,"__esModule",{value:!0});var g=typeof Symbol=="function"&&t(Symbol.iterator)==="symbol"?function(M){return t(M)}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":t(M)};m.shimLocalStreamsAPI=N,m.shimRemoteStreamsAPI=r2,m.shimCallbacksAPI=l2,m.shimGetUserMedia=s2,m.shimConstraints=Q,m.shimRTCIceServerUrls=X,m.shimTrackEventTransceiver=D2,m.shimCreateOfferLegacy=g2;var S=V("../utils"),A=P(S);function P(M){if(M&&M.__esModule)return M;var L={};if(M!=null)for(var Y in M)Object.prototype.hasOwnProperty.call(M,Y)&&(L[Y]=M[Y]);return L.default=M,L}function N(M){if(!((typeof M=="undefined"?"undefined":g(M))!=="object"||!M.RTCPeerConnection)){if("getLocalStreams"in M.RTCPeerConnection.prototype||(M.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in M.RTCPeerConnection.prototype)){var L=M.RTCPeerConnection.prototype.addTrack;M.RTCPeerConnection.prototype.addStream=function(O){var C=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(O)||this._localStreams.push(O),O.getAudioTracks().forEach(function(I){return L.call(C,I,O)}),O.getVideoTracks().forEach(function(I){return L.call(C,I,O)})},M.RTCPeerConnection.prototype.addTrack=function(O){var C=arguments[1];return C&&(this._localStreams?this._localStreams.includes(C)||this._localStreams.push(C):this._localStreams=[C]),L.apply(this,arguments)}}"removeStream"in M.RTCPeerConnection.prototype||(M.RTCPeerConnection.prototype.removeStream=function(O){var C=this;this._localStreams||(this._localStreams=[]);var I=this._localStreams.indexOf(O);if(I!==-1){this._localStreams.splice(I,1);var G=O.getTracks();this.getSenders().forEach(function(M2){G.includes(M2.track)&&C.removeTrack(M2)})}})}}function r2(M){if(!((typeof M=="undefined"?"undefined":g(M))!=="object"||!M.RTCPeerConnection)&&("getRemoteStreams"in M.RTCPeerConnection.prototype||(M.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in M.RTCPeerConnection.prototype))){Object.defineProperty(M.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(O){var C=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=O),this.addEventListener("track",this._onaddstreampoly=function(I){I.streams.forEach(function(G){if(C._remoteStreams||(C._remoteStreams=[]),!C._remoteStreams.includes(G)){C._remoteStreams.push(G);var M2=new Event("addstream");M2.stream=G,C.dispatchEvent(M2)}})})}});var L=M.RTCPeerConnection.prototype.setRemoteDescription;M.RTCPeerConnection.prototype.setRemoteDescription=function(){var O=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(C){C.streams.forEach(function(I){if(O._remoteStreams||(O._remoteStreams=[]),!(O._remoteStreams.indexOf(I)>=0)){O._remoteStreams.push(I);var G=new Event("addstream");G.stream=I,O.dispatchEvent(G)}})}),L.apply(O,arguments)}}}function l2(M){if(!((typeof M=="undefined"?"undefined":g(M))!=="object"||!M.RTCPeerConnection)){var L=M.RTCPeerConnection.prototype,Y=L.createOffer,O=L.createAnswer,C=L.setLocalDescription,I=L.setRemoteDescription,G=L.addIceCandidate;L.createOffer=function(t3,Q2){var d3=arguments.length>=2?arguments[2]:arguments[0],b3=Y.apply(this,[d3]);return Q2?(b3.then(t3,Q2),Promise.resolve()):b3},L.createAnswer=function(t3,Q2){var d3=arguments.length>=2?arguments[2]:arguments[0],b3=O.apply(this,[d3]);return Q2?(b3.then(t3,Q2),Promise.resolve()):b3};var M2=function(t3,Q2,d3){var b3=C.apply(this,[t3]);return d3?(b3.then(Q2,d3),Promise.resolve()):b3};L.setLocalDescription=M2,M2=function(t3,Q2,d3){var b3=I.apply(this,[t3]);return d3?(b3.then(Q2,d3),Promise.resolve()):b3},L.setRemoteDescription=M2,M2=function(t3,Q2,d3){var b3=G.apply(this,[t3]);return d3?(b3.then(Q2,d3),Promise.resolve()):b3},L.addIceCandidate=M2}}function s2(M){var L=M&&M.navigator;if(L.mediaDevices&&L.mediaDevices.getUserMedia){var Y=L.mediaDevices,O=Y.getUserMedia.bind(Y);L.mediaDevices.getUserMedia=function(C){return O(Q(C))}}!L.getUserMedia&&L.mediaDevices&&L.mediaDevices.getUserMedia&&(L.getUserMedia=function(I,G,M2){L.mediaDevices.getUserMedia(I).then(G,M2)}.bind(L))}function Q(M){return M&&M.video!==void 0?Object.assign({},M,{video:A.compactObject(M.video)}):M}function X(M){var L=M.RTCPeerConnection;M.RTCPeerConnection=function(O,C){if(O&&O.iceServers){for(var I=[],G=0;G=I&&parseInt(G[I],10)}function r2(O,C,I){if(O.RTCPeerConnection){var G=O.RTCPeerConnection.prototype,M2=G.addEventListener;G.addEventListener=function(t3,Q2){if(t3!==C)return M2.apply(this,arguments);var d3=function(M3){var T3=I(M3);T3&&Q2(T3)};return this._eventMap=this._eventMap||{},this._eventMap[Q2]=d3,M2.apply(this,[t3,d3])};var R2=G.removeEventListener;G.removeEventListener=function(t3,Q2){if(t3!==C||!this._eventMap||!this._eventMap[Q2])return R2.apply(this,arguments);var d3=this._eventMap[Q2];return delete this._eventMap[Q2],R2.apply(this,[t3,d3])},Object.defineProperty(G,"on"+C,{get:function(){return this["_on"+C]},set:function(Q2){this["_on"+C]&&(this.removeEventListener(C,this["_on"+C]),delete this["_on"+C]),Q2&&this.addEventListener(C,this["_on"+C]=Q2)},enumerable:!0,configurable:!0})}}function l2(O){return typeof O!="boolean"?new Error("Argument type: "+(typeof O=="undefined"?"undefined":g(O))+". Please use a boolean."):(A=O,O?"adapter.js logging disabled":"adapter.js logging enabled")}function s2(O){return typeof O!="boolean"?new Error("Argument type: "+(typeof O=="undefined"?"undefined":g(O))+". Please use a boolean."):(P=!O,"adapter.js deprecation warnings "+(O?"disabled":"enabled"))}function Q(){if((typeof window=="undefined"?"undefined":g(window))==="object"){if(A)return;typeof console!="undefined"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function X(O,C){P&&console.warn(O+" is deprecated, please use "+C+" instead.")}function D2(O){var C=O.navigator,I={browser:null,version:null};if(typeof O=="undefined"||!O.navigator)return I.browser="Not a browser.",I;if(C.mozGetUserMedia)I.browser="firefox",I.version=N(C.userAgent,/Firefox\/(\d+)\./,1);else if(C.webkitGetUserMedia||O.isSecureContext===!1&&O.webkitRTCPeerConnection&&!O.RTCIceGatherer)I.browser="chrome",I.version=N(C.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(C.mediaDevices&&C.userAgent.match(/Edge\/(\d+).(\d+)$/))I.browser="edge",I.version=N(C.userAgent,/Edge\/(\d+).(\d+)$/,2);else if(O.RTCPeerConnection&&C.userAgent.match(/AppleWebKit\/(\d+)\./))I.browser="safari",I.version=N(C.userAgent,/AppleWebKit\/(\d+)\./,1),I.supportsUnifiedPlan=O.RTCRtpTransceiver&&"currentDirection"in O.RTCRtpTransceiver.prototype;else return I.browser="Not a supported browser.",I;return I}function g2(O){return Object.prototype.toString.call(O)==="[object Object]"}function M(O){return g2(O)?Object.keys(O).reduce(function(C,I){var G=g2(O[I]),M2=G?M(O[I]):O[I],R2=G&&!Object.keys(M2).length;return M2===void 0||R2?C:Object.assign(C,S({},I,M2))},{}):O}function L(O,C,I){!C||I.has(C.id)||(I.set(C.id,C),Object.keys(C).forEach(function(G){G.endsWith("Id")?L(O,O.get(C[G]),I):G.endsWith("Ids")&&C[G].forEach(function(M2){L(O,O.get(M2),I)})}))}function Y(O,C,I){var G=I?"outbound-rtp":"inbound-rtp",M2=new Map;if(C===null)return M2;var R2=[];return O.forEach(function(t3){t3.type==="track"&&t3.trackIdentifier===C.id&&R2.push(t3)}),R2.forEach(function(t3){O.forEach(function(Q2){Q2.type===G&&Q2.trackId===t3.id&&L(O,Q2,M2)})}),M2}},{}],16:[function(V,x,m){var g=V("sdp");function S(Q){return{inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[Q.type]||Q.type}function A(Q,X,D2,g2,M){var L=g.writeRtpDescription(Q.kind,X);if(L+=g.writeIceParameters(Q.iceGatherer.getLocalParameters()),L+=g.writeDtlsParameters(Q.dtlsTransport.getLocalParameters(),D2==="offer"?"actpass":M||"active"),L+="a=mid:"+Q.mid+`\r
+`,Q.rtpSender&&Q.rtpReceiver?L+=`a=sendrecv\r
+`:Q.rtpSender?L+=`a=sendonly\r
+`:Q.rtpReceiver?L+=`a=recvonly\r
+`:L+=`a=inactive\r
+`,Q.rtpSender){var Y=Q.rtpSender._initialTrackId||Q.rtpSender.track.id;Q.rtpSender._initialTrackId=Y;var O="msid:"+(g2?g2.id:"-")+" "+Y+`\r
+`;L+="a="+O,L+="a=ssrc:"+Q.sendEncodingParameters[0].ssrc+" "+O,Q.sendEncodingParameters[0].rtx&&(L+="a=ssrc:"+Q.sendEncodingParameters[0].rtx.ssrc+" "+O,L+="a=ssrc-group:FID "+Q.sendEncodingParameters[0].ssrc+" "+Q.sendEncodingParameters[0].rtx.ssrc+`\r
+`)}return L+="a=ssrc:"+Q.sendEncodingParameters[0].ssrc+" cname:"+g.localCName+`\r
+`,Q.rtpSender&&Q.sendEncodingParameters[0].rtx&&(L+="a=ssrc:"+Q.sendEncodingParameters[0].rtx.ssrc+" cname:"+g.localCName+`\r
+`),L}function P(Q,X){var D2=!1;return Q=JSON.parse(JSON.stringify(Q)),Q.filter(function(g2){if(g2&&(g2.urls||g2.url)){var M=g2.urls||g2.url;g2.url&&!g2.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var L=typeof M=="string";return L&&(M=[M]),M=M.filter(function(Y){var O=Y.indexOf("turn:")===0&&Y.indexOf("transport=udp")!==-1&&Y.indexOf("turn:[")===-1&&!D2;return O?(D2=!0,!0):Y.indexOf("stun:")===0&&X>=14393&&Y.indexOf("?transport=udp")===-1}),delete g2.url,g2.urls=L?M[0]:M,!!M.length}})}function N(Q,X){var D2={codecs:[],headerExtensions:[],fecMechanisms:[]},g2=function(Y,O){Y=parseInt(Y,10);for(var C=0;C0;R2--)this._iceGatherers.push(new Q.RTCIceGatherer({iceServers:I.iceServers,gatherPolicy:I.iceTransportPolicy}));else I.iceCandidatePoolSize=0;this._config=I,this.transceivers=[],this._sdpSessionId=g.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(L.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(L.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),L.prototype.onicecandidate=null,L.prototype.onaddstream=null,L.prototype.ontrack=null,L.prototype.onremovestream=null,L.prototype.onsignalingstatechange=null,L.prototype.oniceconnectionstatechange=null,L.prototype.onconnectionstatechange=null,L.prototype.onicegatheringstatechange=null,L.prototype.onnegotiationneeded=null,L.prototype.ondatachannel=null,L.prototype._dispatchEvent=function(C,I){this._isClosed||(this.dispatchEvent(I),typeof this["on"+C]=="function"&&this["on"+C](I))},L.prototype._emitGatheringStateChange=function(){var C=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",C)},L.prototype.getConfiguration=function(){return this._config},L.prototype.getLocalStreams=function(){return this.localStreams},L.prototype.getRemoteStreams=function(){return this.remoteStreams},L.prototype._createTransceiver=function(C,I){var G=this.transceivers.length>0,M2={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:C,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&G)M2.iceTransport=this.transceivers[0].iceTransport,M2.dtlsTransport=this.transceivers[0].dtlsTransport;else{var R2=this._createIceAndDtlsTransports();M2.iceTransport=R2.iceTransport,M2.dtlsTransport=R2.dtlsTransport}return I||this.transceivers.push(M2),M2},L.prototype.addTrack=function(C,I){if(this._isClosed)throw s2("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var G=this.transceivers.find(function(t3){return t3.track===C});if(G)throw s2("InvalidAccessError","Track already exists.");for(var M2,R2=0;R2=15025)C.getTracks().forEach(function(M2){I.addTrack(M2,C)});else{var G=C.clone();C.getTracks().forEach(function(M2,R2){var t3=G.getTracks()[R2];M2.addEventListener("enabled",function(Q2){t3.enabled=Q2.enabled})}),G.getTracks().forEach(function(M2){I.addTrack(M2,G)})}},L.prototype.removeTrack=function(C){if(this._isClosed)throw s2("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(C instanceof Q.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var I=this.transceivers.find(function(R2){return R2.rtpSender===C});if(!I)throw s2("InvalidAccessError","Sender was not created by this connection.");var G=I.stream;I.rtpSender.stop(),I.rtpSender=null,I.track=null,I.stream=null;var M2=this.transceivers.map(function(R2){return R2.stream});M2.indexOf(G)===-1&&this.localStreams.indexOf(G)>-1&&this.localStreams.splice(this.localStreams.indexOf(G),1),this._maybeFireNegotiationNeeded()},L.prototype.removeStream=function(C){var I=this;C.getTracks().forEach(function(G){var M2=I.getSenders().find(function(R2){return R2.track===G});M2&&I.removeTrack(M2)})},L.prototype.getSenders=function(){return this.transceivers.filter(function(C){return!!C.rtpSender}).map(function(C){return C.rtpSender})},L.prototype.getReceivers=function(){return this.transceivers.filter(function(C){return!!C.rtpReceiver}).map(function(C){return C.rtpReceiver})},L.prototype._createIceGatherer=function(C,I){var G=this;if(I&&C>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var M2=new Q.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(M2,"state",{value:"new",writable:!0}),this.transceivers[C].bufferedCandidateEvents=[],this.transceivers[C].bufferCandidates=function(R2){var t3=!R2.candidate||Object.keys(R2.candidate).length===0;M2.state=t3?"completed":"gathering",G.transceivers[C].bufferedCandidateEvents!==null&&G.transceivers[C].bufferedCandidateEvents.push(R2)},M2.addEventListener("localcandidate",this.transceivers[C].bufferCandidates),M2},L.prototype._gather=function(C,I){var G=this,M2=this.transceivers[I].iceGatherer;if(!M2.onlocalcandidate){var R2=this.transceivers[I].bufferedCandidateEvents;this.transceivers[I].bufferedCandidateEvents=null,M2.removeEventListener("localcandidate",this.transceivers[I].bufferCandidates),M2.onlocalcandidate=function(t3){if(!(G.usingBundle&&I>0)){var Q2=new Event("icecandidate");Q2.candidate={sdpMid:C,sdpMLineIndex:I};var d3=t3.candidate,b3=!d3||Object.keys(d3).length===0;if(b3)(M2.state==="new"||M2.state==="gathering")&&(M2.state="completed");else{M2.state==="new"&&(M2.state="gathering"),d3.component=1,d3.ufrag=M2.getLocalParameters().usernameFragment;var M3=g.writeCandidate(d3);Q2.candidate=Object.assign(Q2.candidate,g.parseCandidate(M3)),Q2.candidate.candidate=M3,Q2.candidate.toJSON=function(){return{candidate:Q2.candidate.candidate,sdpMid:Q2.candidate.sdpMid,sdpMLineIndex:Q2.candidate.sdpMLineIndex,usernameFragment:Q2.candidate.usernameFragment}}}var T3=g.getMediaSections(G._localDescription.sdp);b3?T3[Q2.candidate.sdpMLineIndex]+=`a=end-of-candidates\r
`:T3[Q2.candidate.sdpMLineIndex]+="a="+Q2.candidate.candidate+`\r
-`,V._localDescription.sdp=g.getDescription(V._localDescription.sdp)+T3.join("");var f1=V.transceivers.every(function(S1){return S1.iceGatherer&&S1.iceGatherer.state==="completed"});V.iceGatheringState!=="gathering"&&(V.iceGatheringState="gathering",V._emitGatheringStateChange()),b3||V._dispatchEvent("icecandidate",Q2),f1&&(V._dispatchEvent("icecandidate",new Event("icecandidate")),V.iceGatheringState="complete",V._emitGatheringStateChange())}},Q.setTimeout(function(){R2.forEach(function(t3){M2.onlocalcandidate(t3)})},0)}},I.prototype._createIceAndDtlsTransports=function(){var A=this,k=new Q.RTCIceTransport(null);k.onicestatechange=function(){A._updateIceConnectionState(),A._updateConnectionState()};var V=new Q.RTCDtlsTransport(k);return V.ondtlsstatechange=function(){A._updateConnectionState()},V.onerror=function(){Object.defineProperty(V,"state",{value:"failed",writable:!0}),A._updateConnectionState()},{iceTransport:k,dtlsTransport:V}},I.prototype._disposeIceAndDtlsTransports=function(A){var k=this.transceivers[A].iceGatherer;k&&(delete k.onlocalcandidate,delete this.transceivers[A].iceGatherer);var V=this.transceivers[A].iceTransport;V&&(delete V.onicestatechange,delete this.transceivers[A].iceTransport);var M2=this.transceivers[A].dtlsTransport;M2&&(delete M2.ondtlsstatechange,delete M2.onerror,delete this.transceivers[A].dtlsTransport)},I.prototype._transceive=function(A,k,V){var M2=L(A.localCapabilities,A.remoteCapabilities);k&&A.rtpSender&&(M2.encodings=A.sendEncodingParameters,M2.rtcp={cname:g.localCName,compound:A.rtcpParameters.compound},A.recvEncodingParameters.length&&(M2.rtcp.ssrc=A.recvEncodingParameters[0].ssrc),A.rtpSender.send(M2)),V&&A.rtpReceiver&&M2.codecs.length>0&&(A.kind==="video"&&A.recvEncodingParameters&&X<15019&&A.recvEncodingParameters.forEach(function(R2){delete R2.rtx}),A.recvEncodingParameters.length?M2.encodings=A.recvEncodingParameters:M2.encodings=[{}],M2.rtcp={compound:A.rtcpParameters.compound},A.rtcpParameters.cname&&(M2.rtcp.cname=A.rtcpParameters.cname),A.sendEncodingParameters.length&&(M2.rtcp.ssrc=A.sendEncodingParameters[0].ssrc),A.rtpReceiver.receive(M2))},I.prototype.setLocalDescription=function(A){var k=this;if(["offer","answer"].indexOf(A.type)===-1)return Promise.reject(s2("TypeError",'Unsupported type "'+A.type+'"'));if(!r2("setLocalDescription",A.type,k.signalingState)||k._isClosed)return Promise.reject(s2("InvalidStateError","Can not set local "+A.type+" in state "+k.signalingState));var V,M2;if(A.type==="offer")V=g.splitSections(A.sdp),M2=V.shift(),V.forEach(function(t3,Q2){var c3=g.parseRtpParameters(t3);k.transceivers[Q2].localCapabilities=c3}),k.transceivers.forEach(function(t3,Q2){k._gather(t3.mid,Q2)});else if(A.type==="answer"){V=g.splitSections(k._remoteDescription.sdp),M2=V.shift();var R2=g.matchPrefix(M2,"a=ice-lite").length>0;V.forEach(function(t3,Q2){var c3=k.transceivers[Q2],b3=c3.iceGatherer,M3=c3.iceTransport,T3=c3.dtlsTransport,f1=c3.localCapabilities,S1=c3.remoteCapabilities,T1=g.isRejected(t3)&&g.matchPrefix(t3,"a=bundle-only").length===0;if(!T1&&!c3.rejected){var N1=g.getIceParameters(t3,M2),L1=g.getDtlsParameters(t3,M2);R2&&(L1.role="server"),(!k.usingBundle||Q2===0)&&(k._gather(c3.mid,Q2),M3.state==="new"&&M3.start(b3,N1,R2?"controlling":"controlled"),T3.state==="new"&&T3.start(L1));var G1=L(f1,S1);k._transceive(c3,G1.codecs.length>0,!1)}})}return k._localDescription={type:A.type,sdp:A.sdp},A.type==="offer"?k._updateSignalingState("have-local-offer"):k._updateSignalingState("stable"),Promise.resolve()},I.prototype.setRemoteDescription=function(A){var k=this;if(["offer","answer"].indexOf(A.type)===-1)return Promise.reject(s2("TypeError",'Unsupported type "'+A.type+'"'));if(!r2("setRemoteDescription",A.type,k.signalingState)||k._isClosed)return Promise.reject(s2("InvalidStateError","Can not set remote "+A.type+" in state "+k.signalingState));var V={};k.remoteStreams.forEach(function(M3){V[M3.id]=M3});var M2=[],R2=g.splitSections(A.sdp),t3=R2.shift(),Q2=g.matchPrefix(t3,"a=ice-lite").length>0,c3=g.matchPrefix(t3,"a=group:BUNDLE ").length>0;k.usingBundle=c3;var b3=g.matchPrefix(t3,"a=ice-options:")[0];return b3?k.canTrickleIceCandidates=b3.substr(14).split(" ").indexOf("trickle")>=0:k.canTrickleIceCandidates=!1,R2.forEach(function(M3,T3){var f1=g.splitLines(M3),S1=g.getKind(M3),T1=g.isRejected(M3)&&g.matchPrefix(M3,"a=bundle-only").length===0,N1=f1[0].substr(2).split(" ")[2],L1=g.getDirection(M3,t3),G1=g.parseMsid(M3),y0=g.getMid(M3)||g.generateIdentifier();if(T1||S1==="application"&&(N1==="DTLS/SCTP"||N1==="UDP/DTLS/SCTP")){k.transceivers[T3]={mid:y0,kind:S1,protocol:N1,rejected:!0};return}!T1&&k.transceivers[T3]&&k.transceivers[T3].rejected&&(k.transceivers[T3]=k._createTransceiver(S1,!0));var B2,y3,P3,t1,v1,j1,U1,D1,u0,On=g.parseRtpParameters(M3),Dt,et;T1||(Dt=g.getIceParameters(M3,t3),et=g.getDtlsParameters(M3,t3),et.role="client"),U1=g.parseRtpEncodingParameters(M3);var At=g.parseRtcpParameters(M3),b0=g.matchPrefix(M3,"a=end-of-candidates",t3).length>0,Te=g.matchPrefix(M3,"a=candidate:").map(function(w1){return g.parseCandidate(w1)}).filter(function(w1){return w1.component===1});if((A.type==="offer"||A.type==="answer")&&!T1&&c3&&T3>0&&k.transceivers[T3]&&(k._disposeIceAndDtlsTransports(T3),k.transceivers[T3].iceGatherer=k.transceivers[0].iceGatherer,k.transceivers[T3].iceTransport=k.transceivers[0].iceTransport,k.transceivers[T3].dtlsTransport=k.transceivers[0].dtlsTransport,k.transceivers[T3].rtpSender&&k.transceivers[T3].rtpSender.setTransport(k.transceivers[0].dtlsTransport),k.transceivers[T3].rtpReceiver&&k.transceivers[T3].rtpReceiver.setTransport(k.transceivers[0].dtlsTransport)),A.type==="offer"&&!T1){B2=k.transceivers[T3]||k._createTransceiver(S1),B2.mid=y0,B2.iceGatherer||(B2.iceGatherer=k._createIceGatherer(T3,c3)),Te.length&&B2.iceTransport.state==="new"&&(b0&&(!c3||T3===0)?B2.iceTransport.setRemoteCandidates(Te):Te.forEach(function(w1){l2(B2.iceTransport,w1)})),D1=Q.RTCRtpReceiver.getCapabilities(S1),X<15019&&(D1.codecs=D1.codecs.filter(function(w1){return w1.name!=="rtx"})),j1=B2.sendEncodingParameters||[{ssrc:(2*T3+2)*1001}];var yt=!1;if(L1==="sendrecv"||L1==="sendonly"){if(yt=!B2.rtpReceiver,v1=B2.rtpReceiver||new Q.RTCRtpReceiver(B2.dtlsTransport,S1),yt){var d0;u0=v1.track,G1&&G1.stream==="-"||(G1?(V[G1.stream]||(V[G1.stream]=new Q.MediaStream,Object.defineProperty(V[G1.stream],"id",{get:function(){return G1.stream}})),Object.defineProperty(u0,"id",{get:function(){return G1.track}}),d0=V[G1.stream]):(V.default||(V.default=new Q.MediaStream),d0=V.default)),d0&&(D2(u0,d0),B2.associatedRemoteMediaStreams.push(d0)),M2.push([u0,v1,d0])}}else B2.rtpReceiver&&B2.rtpReceiver.track&&(B2.associatedRemoteMediaStreams.forEach(function(w1){var Z1=w1.getTracks().find(function(I0){return I0.id===B2.rtpReceiver.track.id});Z1&&g2(Z1,w1)}),B2.associatedRemoteMediaStreams=[]);B2.localCapabilities=D1,B2.remoteCapabilities=On,B2.rtpReceiver=v1,B2.rtcpParameters=At,B2.sendEncodingParameters=j1,B2.recvEncodingParameters=U1,k._transceive(k.transceivers[T3],!1,yt)}else if(A.type==="answer"&&!T1){B2=k.transceivers[T3],y3=B2.iceGatherer,P3=B2.iceTransport,t1=B2.dtlsTransport,v1=B2.rtpReceiver,j1=B2.sendEncodingParameters,D1=B2.localCapabilities,k.transceivers[T3].recvEncodingParameters=U1,k.transceivers[T3].remoteCapabilities=On,k.transceivers[T3].rtcpParameters=At,Te.length&&P3.state==="new"&&((Q2||b0)&&(!c3||T3===0)?P3.setRemoteCandidates(Te):Te.forEach(function(w1){l2(B2.iceTransport,w1)})),(!c3||T3===0)&&(P3.state==="new"&&P3.start(y3,Dt,"controlling"),t1.state==="new"&&t1.start(et));var B0=L(B2.localCapabilities,B2.remoteCapabilities),k1=B0.codecs.filter(function(w1){return w1.name.toLowerCase()==="rtx"}).length;!k1&&B2.sendEncodingParameters[0].rtx&&delete B2.sendEncodingParameters[0].rtx,k._transceive(B2,L1==="sendrecv"||L1==="recvonly",L1==="sendrecv"||L1==="sendonly"),v1&&(L1==="sendrecv"||L1==="sendonly")?(u0=v1.track,G1?(V[G1.stream]||(V[G1.stream]=new Q.MediaStream),D2(u0,V[G1.stream]),M2.push([u0,v1,V[G1.stream]])):(V.default||(V.default=new Q.MediaStream),D2(u0,V.default),M2.push([u0,v1,V.default]))):delete B2.rtpReceiver}}),k._dtlsRole===void 0&&(k._dtlsRole=A.type==="offer"?"active":"passive"),k._remoteDescription={type:A.type,sdp:A.sdp},A.type==="offer"?k._updateSignalingState("have-remote-offer"):k._updateSignalingState("stable"),Object.keys(V).forEach(function(M3){var T3=V[M3];if(T3.getTracks().length){if(k.remoteStreams.indexOf(T3)===-1){k.remoteStreams.push(T3);var f1=new Event("addstream");f1.stream=T3,Q.setTimeout(function(){k._dispatchEvent("addstream",f1)})}M2.forEach(function(S1){var T1=S1[0],N1=S1[1];T3.id===S1[2].id&&C(k,T1,N1,[T3])})}}),M2.forEach(function(M3){M3[2]||C(k,M3[0],M3[1],[])}),Q.setTimeout(function(){k&&k.transceivers&&k.transceivers.forEach(function(M3){M3.iceTransport&&M3.iceTransport.state==="new"&&M3.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),M3.iceTransport.addRemoteCandidate({}))})},4e3),Promise.resolve()},I.prototype.close=function(){this.transceivers.forEach(function(A){A.iceTransport&&A.iceTransport.stop(),A.dtlsTransport&&A.dtlsTransport.stop(),A.rtpSender&&A.rtpSender.stop(),A.rtpReceiver&&A.rtpReceiver.stop()}),this._isClosed=!0,this._updateSignalingState("closed")},I.prototype._updateSignalingState=function(A){this.signalingState=A;var k=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",k)},I.prototype._maybeFireNegotiationNeeded=function(){var A=this;this.signalingState!=="stable"||this.needNegotiation===!0||(this.needNegotiation=!0,Q.setTimeout(function(){if(A.needNegotiation){A.needNegotiation=!1;var k=new Event("negotiationneeded");A._dispatchEvent("negotiationneeded",k)}},0))},I.prototype._updateIceConnectionState=function(){var A,k={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(M2){M2.iceTransport&&!M2.rejected&&k[M2.iceTransport.state]++}),A="new",k.failed>0?A="failed":k.checking>0?A="checking":k.disconnected>0?A="disconnected":k.new>0?A="new":k.connected>0?A="connected":k.completed>0&&(A="completed"),A!==this.iceConnectionState){this.iceConnectionState=A;var V=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",V)}},I.prototype._updateConnectionState=function(){var A,k={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(M2){M2.iceTransport&&M2.dtlsTransport&&!M2.rejected&&(k[M2.iceTransport.state]++,k[M2.dtlsTransport.state]++)}),k.connected+=k.completed,A="new",k.failed>0?A="failed":k.connecting>0?A="connecting":k.disconnected>0?A="disconnected":k.new>0?A="new":k.connected>0&&(A="connected"),A!==this.connectionState){this.connectionState=A;var V=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",V)}},I.prototype.createOffer=function(){var A=this;if(A._isClosed)return Promise.reject(s2("InvalidStateError","Can not call createOffer after close"));var k=A.transceivers.filter(function(Q2){return Q2.kind==="audio"}).length,V=A.transceivers.filter(function(Q2){return Q2.kind==="video"}).length,M2=arguments[0];if(M2){if(M2.mandatory||M2.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");M2.offerToReceiveAudio!==void 0&&(M2.offerToReceiveAudio===!0?k=1:M2.offerToReceiveAudio===!1?k=0:k=M2.offerToReceiveAudio),M2.offerToReceiveVideo!==void 0&&(M2.offerToReceiveVideo===!0?V=1:M2.offerToReceiveVideo===!1?V=0:V=M2.offerToReceiveVideo)}for(A.transceivers.forEach(function(Q2){Q2.kind==="audio"?(k--,k<0&&(Q2.wantReceive=!1)):Q2.kind==="video"&&(V--,V<0&&(Q2.wantReceive=!1))});k>0||V>0;)k>0&&(A._createTransceiver("audio"),k--),V>0&&(A._createTransceiver("video"),V--);var R2=g.writeSessionBoilerplate(A._sdpSessionId,A._sdpSessionVersion++);A.transceivers.forEach(function(Q2,c3){var b3=Q2.track,M3=Q2.kind,T3=Q2.mid||g.generateIdentifier();Q2.mid=T3,Q2.iceGatherer||(Q2.iceGatherer=A._createIceGatherer(c3,A.usingBundle));var f1=Q.RTCRtpSender.getCapabilities(M3);X<15019&&(f1.codecs=f1.codecs.filter(function(T1){return T1.name!=="rtx"})),f1.codecs.forEach(function(T1){T1.name==="H264"&&T1.parameters["level-asymmetry-allowed"]===void 0&&(T1.parameters["level-asymmetry-allowed"]="1"),Q2.remoteCapabilities&&Q2.remoteCapabilities.codecs&&Q2.remoteCapabilities.codecs.forEach(function(N1){T1.name.toLowerCase()===N1.name.toLowerCase()&&T1.clockRate===N1.clockRate&&(T1.preferredPayloadType=N1.payloadType)})}),f1.headerExtensions.forEach(function(T1){var N1=Q2.remoteCapabilities&&Q2.remoteCapabilities.headerExtensions||[];N1.forEach(function(L1){T1.uri===L1.uri&&(T1.id=L1.id)})});var S1=Q2.sendEncodingParameters||[{ssrc:(2*c3+1)*1001}];b3&&X>=15019&&M3==="video"&&!S1[0].rtx&&(S1[0].rtx={ssrc:S1[0].ssrc+1}),Q2.wantReceive&&(Q2.rtpReceiver=new Q.RTCRtpReceiver(Q2.dtlsTransport,M3)),Q2.localCapabilities=f1,Q2.sendEncodingParameters=S1}),A._config.bundlePolicy!=="max-compat"&&(R2+="a=group:BUNDLE "+A.transceivers.map(function(Q2){return Q2.mid}).join(" ")+`\r
+`,G._localDescription.sdp=g.getDescription(G._localDescription.sdp)+T3.join("");var f1=G.transceivers.every(function(b1){return b1.iceGatherer&&b1.iceGatherer.state==="completed"});G.iceGatheringState!=="gathering"&&(G.iceGatheringState="gathering",G._emitGatheringStateChange()),b3||G._dispatchEvent("icecandidate",Q2),f1&&(G._dispatchEvent("icecandidate",new Event("icecandidate")),G.iceGatheringState="complete",G._emitGatheringStateChange())}},Q.setTimeout(function(){R2.forEach(function(t3){M2.onlocalcandidate(t3)})},0)}},L.prototype._createIceAndDtlsTransports=function(){var C=this,I=new Q.RTCIceTransport(null);I.onicestatechange=function(){C._updateIceConnectionState(),C._updateConnectionState()};var G=new Q.RTCDtlsTransport(I);return G.ondtlsstatechange=function(){C._updateConnectionState()},G.onerror=function(){Object.defineProperty(G,"state",{value:"failed",writable:!0}),C._updateConnectionState()},{iceTransport:I,dtlsTransport:G}},L.prototype._disposeIceAndDtlsTransports=function(C){var I=this.transceivers[C].iceGatherer;I&&(delete I.onlocalcandidate,delete this.transceivers[C].iceGatherer);var G=this.transceivers[C].iceTransport;G&&(delete G.onicestatechange,delete this.transceivers[C].iceTransport);var M2=this.transceivers[C].dtlsTransport;M2&&(delete M2.ondtlsstatechange,delete M2.onerror,delete this.transceivers[C].dtlsTransport)},L.prototype._transceive=function(C,I,G){var M2=N(C.localCapabilities,C.remoteCapabilities);I&&C.rtpSender&&(M2.encodings=C.sendEncodingParameters,M2.rtcp={cname:g.localCName,compound:C.rtcpParameters.compound},C.recvEncodingParameters.length&&(M2.rtcp.ssrc=C.recvEncodingParameters[0].ssrc),C.rtpSender.send(M2)),G&&C.rtpReceiver&&M2.codecs.length>0&&(C.kind==="video"&&C.recvEncodingParameters&&X<15019&&C.recvEncodingParameters.forEach(function(R2){delete R2.rtx}),C.recvEncodingParameters.length?M2.encodings=C.recvEncodingParameters:M2.encodings=[{}],M2.rtcp={compound:C.rtcpParameters.compound},C.rtcpParameters.cname&&(M2.rtcp.cname=C.rtcpParameters.cname),C.sendEncodingParameters.length&&(M2.rtcp.ssrc=C.sendEncodingParameters[0].ssrc),C.rtpReceiver.receive(M2))},L.prototype.setLocalDescription=function(C){var I=this;if(["offer","answer"].indexOf(C.type)===-1)return Promise.reject(s2("TypeError",'Unsupported type "'+C.type+'"'));if(!r2("setLocalDescription",C.type,I.signalingState)||I._isClosed)return Promise.reject(s2("InvalidStateError","Can not set local "+C.type+" in state "+I.signalingState));var G,M2;if(C.type==="offer")G=g.splitSections(C.sdp),M2=G.shift(),G.forEach(function(t3,Q2){var d3=g.parseRtpParameters(t3);I.transceivers[Q2].localCapabilities=d3}),I.transceivers.forEach(function(t3,Q2){I._gather(t3.mid,Q2)});else if(C.type==="answer"){G=g.splitSections(I._remoteDescription.sdp),M2=G.shift();var R2=g.matchPrefix(M2,"a=ice-lite").length>0;G.forEach(function(t3,Q2){var d3=I.transceivers[Q2],b3=d3.iceGatherer,M3=d3.iceTransport,T3=d3.dtlsTransport,f1=d3.localCapabilities,b1=d3.remoteCapabilities,x1=g.isRejected(t3)&&g.matchPrefix(t3,"a=bundle-only").length===0;if(!x1&&!d3.rejected){var N1=g.getIceParameters(t3,M2),L1=g.getDtlsParameters(t3,M2);R2&&(L1.role="server"),(!I.usingBundle||Q2===0)&&(I._gather(d3.mid,Q2),M3.state==="new"&&M3.start(b3,N1,R2?"controlling":"controlled"),T3.state==="new"&&T3.start(L1));var G1=N(f1,b1);I._transceive(d3,G1.codecs.length>0,!1)}})}return I._localDescription={type:C.type,sdp:C.sdp},C.type==="offer"?I._updateSignalingState("have-local-offer"):I._updateSignalingState("stable"),Promise.resolve()},L.prototype.setRemoteDescription=function(C){var I=this;if(["offer","answer"].indexOf(C.type)===-1)return Promise.reject(s2("TypeError",'Unsupported type "'+C.type+'"'));if(!r2("setRemoteDescription",C.type,I.signalingState)||I._isClosed)return Promise.reject(s2("InvalidStateError","Can not set remote "+C.type+" in state "+I.signalingState));var G={};I.remoteStreams.forEach(function(M3){G[M3.id]=M3});var M2=[],R2=g.splitSections(C.sdp),t3=R2.shift(),Q2=g.matchPrefix(t3,"a=ice-lite").length>0,d3=g.matchPrefix(t3,"a=group:BUNDLE ").length>0;I.usingBundle=d3;var b3=g.matchPrefix(t3,"a=ice-options:")[0];return b3?I.canTrickleIceCandidates=b3.substr(14).split(" ").indexOf("trickle")>=0:I.canTrickleIceCandidates=!1,R2.forEach(function(M3,T3){var f1=g.splitLines(M3),b1=g.getKind(M3),x1=g.isRejected(M3)&&g.matchPrefix(M3,"a=bundle-only").length===0,N1=f1[0].substr(2).split(" ")[2],L1=g.getDirection(M3,t3),G1=g.parseMsid(M3),y0=g.getMid(M3)||g.generateIdentifier();if(x1||b1==="application"&&(N1==="DTLS/SCTP"||N1==="UDP/DTLS/SCTP")){I.transceivers[T3]={mid:y0,kind:b1,protocol:N1,rejected:!0};return}!x1&&I.transceivers[T3]&&I.transceivers[T3].rejected&&(I.transceivers[T3]=I._createTransceiver(b1,!0));var B2,y3,R3,n1,v1,j1,U1,D1,u0,On=g.parseRtpParameters(M3),Dt,et;x1||(Dt=g.getIceParameters(M3,t3),et=g.getDtlsParameters(M3,t3),et.role="client"),U1=g.parseRtpEncodingParameters(M3);var At=g.parseRtcpParameters(M3),b0=g.matchPrefix(M3,"a=end-of-candidates",t3).length>0,Te=g.matchPrefix(M3,"a=candidate:").map(function(A1){return g.parseCandidate(A1)}).filter(function(A1){return A1.component===1});if((C.type==="offer"||C.type==="answer")&&!x1&&d3&&T3>0&&I.transceivers[T3]&&(I._disposeIceAndDtlsTransports(T3),I.transceivers[T3].iceGatherer=I.transceivers[0].iceGatherer,I.transceivers[T3].iceTransport=I.transceivers[0].iceTransport,I.transceivers[T3].dtlsTransport=I.transceivers[0].dtlsTransport,I.transceivers[T3].rtpSender&&I.transceivers[T3].rtpSender.setTransport(I.transceivers[0].dtlsTransport),I.transceivers[T3].rtpReceiver&&I.transceivers[T3].rtpReceiver.setTransport(I.transceivers[0].dtlsTransport)),C.type==="offer"&&!x1){B2=I.transceivers[T3]||I._createTransceiver(b1),B2.mid=y0,B2.iceGatherer||(B2.iceGatherer=I._createIceGatherer(T3,d3)),Te.length&&B2.iceTransport.state==="new"&&(b0&&(!d3||T3===0)?B2.iceTransport.setRemoteCandidates(Te):Te.forEach(function(A1){l2(B2.iceTransport,A1)})),D1=Q.RTCRtpReceiver.getCapabilities(b1),X<15019&&(D1.codecs=D1.codecs.filter(function(A1){return A1.name!=="rtx"})),j1=B2.sendEncodingParameters||[{ssrc:(2*T3+2)*1001}];var yt=!1;if(L1==="sendrecv"||L1==="sendonly"){if(yt=!B2.rtpReceiver,v1=B2.rtpReceiver||new Q.RTCRtpReceiver(B2.dtlsTransport,b1),yt){var h0;u0=v1.track,G1&&G1.stream==="-"||(G1?(G[G1.stream]||(G[G1.stream]=new Q.MediaStream,Object.defineProperty(G[G1.stream],"id",{get:function(){return G1.stream}})),Object.defineProperty(u0,"id",{get:function(){return G1.track}}),h0=G[G1.stream]):(G.default||(G.default=new Q.MediaStream),h0=G.default)),h0&&(D2(u0,h0),B2.associatedRemoteMediaStreams.push(h0)),M2.push([u0,v1,h0])}}else B2.rtpReceiver&&B2.rtpReceiver.track&&(B2.associatedRemoteMediaStreams.forEach(function(A1){var Z1=A1.getTracks().find(function(I0){return I0.id===B2.rtpReceiver.track.id});Z1&&g2(Z1,A1)}),B2.associatedRemoteMediaStreams=[]);B2.localCapabilities=D1,B2.remoteCapabilities=On,B2.rtpReceiver=v1,B2.rtcpParameters=At,B2.sendEncodingParameters=j1,B2.recvEncodingParameters=U1,I._transceive(I.transceivers[T3],!1,yt)}else if(C.type==="answer"&&!x1){B2=I.transceivers[T3],y3=B2.iceGatherer,R3=B2.iceTransport,n1=B2.dtlsTransport,v1=B2.rtpReceiver,j1=B2.sendEncodingParameters,D1=B2.localCapabilities,I.transceivers[T3].recvEncodingParameters=U1,I.transceivers[T3].remoteCapabilities=On,I.transceivers[T3].rtcpParameters=At,Te.length&&R3.state==="new"&&((Q2||b0)&&(!d3||T3===0)?R3.setRemoteCandidates(Te):Te.forEach(function(A1){l2(B2.iceTransport,A1)})),(!d3||T3===0)&&(R3.state==="new"&&R3.start(y3,Dt,"controlling"),n1.state==="new"&&n1.start(et));var B0=N(B2.localCapabilities,B2.remoteCapabilities),k1=B0.codecs.filter(function(A1){return A1.name.toLowerCase()==="rtx"}).length;!k1&&B2.sendEncodingParameters[0].rtx&&delete B2.sendEncodingParameters[0].rtx,I._transceive(B2,L1==="sendrecv"||L1==="recvonly",L1==="sendrecv"||L1==="sendonly"),v1&&(L1==="sendrecv"||L1==="sendonly")?(u0=v1.track,G1?(G[G1.stream]||(G[G1.stream]=new Q.MediaStream),D2(u0,G[G1.stream]),M2.push([u0,v1,G[G1.stream]])):(G.default||(G.default=new Q.MediaStream),D2(u0,G.default),M2.push([u0,v1,G.default]))):delete B2.rtpReceiver}}),I._dtlsRole===void 0&&(I._dtlsRole=C.type==="offer"?"active":"passive"),I._remoteDescription={type:C.type,sdp:C.sdp},C.type==="offer"?I._updateSignalingState("have-remote-offer"):I._updateSignalingState("stable"),Object.keys(G).forEach(function(M3){var T3=G[M3];if(T3.getTracks().length){if(I.remoteStreams.indexOf(T3)===-1){I.remoteStreams.push(T3);var f1=new Event("addstream");f1.stream=T3,Q.setTimeout(function(){I._dispatchEvent("addstream",f1)})}M2.forEach(function(b1){var x1=b1[0],N1=b1[1];T3.id===b1[2].id&&M(I,x1,N1,[T3])})}}),M2.forEach(function(M3){M3[2]||M(I,M3[0],M3[1],[])}),Q.setTimeout(function(){I&&I.transceivers&&I.transceivers.forEach(function(M3){M3.iceTransport&&M3.iceTransport.state==="new"&&M3.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),M3.iceTransport.addRemoteCandidate({}))})},4e3),Promise.resolve()},L.prototype.close=function(){this.transceivers.forEach(function(C){C.iceTransport&&C.iceTransport.stop(),C.dtlsTransport&&C.dtlsTransport.stop(),C.rtpSender&&C.rtpSender.stop(),C.rtpReceiver&&C.rtpReceiver.stop()}),this._isClosed=!0,this._updateSignalingState("closed")},L.prototype._updateSignalingState=function(C){this.signalingState=C;var I=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",I)},L.prototype._maybeFireNegotiationNeeded=function(){var C=this;this.signalingState!=="stable"||this.needNegotiation===!0||(this.needNegotiation=!0,Q.setTimeout(function(){if(C.needNegotiation){C.needNegotiation=!1;var I=new Event("negotiationneeded");C._dispatchEvent("negotiationneeded",I)}},0))},L.prototype._updateIceConnectionState=function(){var C,I={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(M2){M2.iceTransport&&!M2.rejected&&I[M2.iceTransport.state]++}),C="new",I.failed>0?C="failed":I.checking>0?C="checking":I.disconnected>0?C="disconnected":I.new>0?C="new":I.connected>0?C="connected":I.completed>0&&(C="completed"),C!==this.iceConnectionState){this.iceConnectionState=C;var G=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",G)}},L.prototype._updateConnectionState=function(){var C,I={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(M2){M2.iceTransport&&M2.dtlsTransport&&!M2.rejected&&(I[M2.iceTransport.state]++,I[M2.dtlsTransport.state]++)}),I.connected+=I.completed,C="new",I.failed>0?C="failed":I.connecting>0?C="connecting":I.disconnected>0?C="disconnected":I.new>0?C="new":I.connected>0&&(C="connected"),C!==this.connectionState){this.connectionState=C;var G=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",G)}},L.prototype.createOffer=function(){var C=this;if(C._isClosed)return Promise.reject(s2("InvalidStateError","Can not call createOffer after close"));var I=C.transceivers.filter(function(Q2){return Q2.kind==="audio"}).length,G=C.transceivers.filter(function(Q2){return Q2.kind==="video"}).length,M2=arguments[0];if(M2){if(M2.mandatory||M2.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");M2.offerToReceiveAudio!==void 0&&(M2.offerToReceiveAudio===!0?I=1:M2.offerToReceiveAudio===!1?I=0:I=M2.offerToReceiveAudio),M2.offerToReceiveVideo!==void 0&&(M2.offerToReceiveVideo===!0?G=1:M2.offerToReceiveVideo===!1?G=0:G=M2.offerToReceiveVideo)}for(C.transceivers.forEach(function(Q2){Q2.kind==="audio"?(I--,I<0&&(Q2.wantReceive=!1)):Q2.kind==="video"&&(G--,G<0&&(Q2.wantReceive=!1))});I>0||G>0;)I>0&&(C._createTransceiver("audio"),I--),G>0&&(C._createTransceiver("video"),G--);var R2=g.writeSessionBoilerplate(C._sdpSessionId,C._sdpSessionVersion++);C.transceivers.forEach(function(Q2,d3){var b3=Q2.track,M3=Q2.kind,T3=Q2.mid||g.generateIdentifier();Q2.mid=T3,Q2.iceGatherer||(Q2.iceGatherer=C._createIceGatherer(d3,C.usingBundle));var f1=Q.RTCRtpSender.getCapabilities(M3);X<15019&&(f1.codecs=f1.codecs.filter(function(x1){return x1.name!=="rtx"})),f1.codecs.forEach(function(x1){x1.name==="H264"&&x1.parameters["level-asymmetry-allowed"]===void 0&&(x1.parameters["level-asymmetry-allowed"]="1"),Q2.remoteCapabilities&&Q2.remoteCapabilities.codecs&&Q2.remoteCapabilities.codecs.forEach(function(N1){x1.name.toLowerCase()===N1.name.toLowerCase()&&x1.clockRate===N1.clockRate&&(x1.preferredPayloadType=N1.payloadType)})}),f1.headerExtensions.forEach(function(x1){var N1=Q2.remoteCapabilities&&Q2.remoteCapabilities.headerExtensions||[];N1.forEach(function(L1){x1.uri===L1.uri&&(x1.id=L1.id)})});var b1=Q2.sendEncodingParameters||[{ssrc:(2*d3+1)*1001}];b3&&X>=15019&&M3==="video"&&!b1[0].rtx&&(b1[0].rtx={ssrc:b1[0].ssrc+1}),Q2.wantReceive&&(Q2.rtpReceiver=new Q.RTCRtpReceiver(Q2.dtlsTransport,M3)),Q2.localCapabilities=f1,Q2.sendEncodingParameters=b1}),C._config.bundlePolicy!=="max-compat"&&(R2+="a=group:BUNDLE "+C.transceivers.map(function(Q2){return Q2.mid}).join(" ")+`\r
`),R2+=`a=ice-options:trickle\r
-`,A.transceivers.forEach(function(Q2,c3){R2+=x(Q2,Q2.localCapabilities,"offer",Q2.stream,A._dtlsRole),R2+=`a=rtcp-rsize\r
-`,Q2.iceGatherer&&A.iceGatheringState!=="new"&&(c3===0||!A.usingBundle)&&(Q2.iceGatherer.getLocalCandidates().forEach(function(b3){b3.component=1,R2+="a="+g.writeCandidate(b3)+`\r
+`,C.transceivers.forEach(function(Q2,d3){R2+=A(Q2,Q2.localCapabilities,"offer",Q2.stream,C._dtlsRole),R2+=`a=rtcp-rsize\r
+`,Q2.iceGatherer&&C.iceGatheringState!=="new"&&(d3===0||!C.usingBundle)&&(Q2.iceGatherer.getLocalCandidates().forEach(function(b3){b3.component=1,R2+="a="+g.writeCandidate(b3)+`\r
`}),Q2.iceGatherer.state==="completed"&&(R2+=`a=end-of-candidates\r
-`))});var t3=new Q.RTCSessionDescription({type:"offer",sdp:R2});return Promise.resolve(t3)},I.prototype.createAnswer=function(){var A=this;if(A._isClosed)return Promise.reject(s2("InvalidStateError","Can not call createAnswer after close"));if(!(A.signalingState==="have-remote-offer"||A.signalingState==="have-local-pranswer"))return Promise.reject(s2("InvalidStateError","Can not call createAnswer in signalingState "+A.signalingState));var k=g.writeSessionBoilerplate(A._sdpSessionId,A._sdpSessionVersion++);A.usingBundle&&(k+="a=group:BUNDLE "+A.transceivers.map(function(R2){return R2.mid}).join(" ")+`\r
-`),k+=`a=ice-options:trickle\r
-`;var V=g.getMediaSections(A._remoteDescription.sdp).length;A.transceivers.forEach(function(R2,t3){if(!(t3+1>V)){if(R2.rejected){R2.kind==="application"?R2.protocol==="DTLS/SCTP"?k+=`m=application 0 DTLS/SCTP 5000\r
-`:k+="m=application 0 "+R2.protocol+` webrtc-datachannel\r
-`:R2.kind==="audio"?k+=`m=audio 0 UDP/TLS/RTP/SAVPF 0\r
+`))});var t3=new Q.RTCSessionDescription({type:"offer",sdp:R2});return Promise.resolve(t3)},L.prototype.createAnswer=function(){var C=this;if(C._isClosed)return Promise.reject(s2("InvalidStateError","Can not call createAnswer after close"));if(!(C.signalingState==="have-remote-offer"||C.signalingState==="have-local-pranswer"))return Promise.reject(s2("InvalidStateError","Can not call createAnswer in signalingState "+C.signalingState));var I=g.writeSessionBoilerplate(C._sdpSessionId,C._sdpSessionVersion++);C.usingBundle&&(I+="a=group:BUNDLE "+C.transceivers.map(function(R2){return R2.mid}).join(" ")+`\r
+`),I+=`a=ice-options:trickle\r
+`;var G=g.getMediaSections(C._remoteDescription.sdp).length;C.transceivers.forEach(function(R2,t3){if(!(t3+1>G)){if(R2.rejected){R2.kind==="application"?R2.protocol==="DTLS/SCTP"?I+=`m=application 0 DTLS/SCTP 5000\r
+`:I+="m=application 0 "+R2.protocol+` webrtc-datachannel\r
+`:R2.kind==="audio"?I+=`m=audio 0 UDP/TLS/RTP/SAVPF 0\r
a=rtpmap:0 PCMU/8000\r
-`:R2.kind==="video"&&(k+=`m=video 0 UDP/TLS/RTP/SAVPF 120\r
+`:R2.kind==="video"&&(I+=`m=video 0 UDP/TLS/RTP/SAVPF 120\r
a=rtpmap:120 VP8/90000\r
-`),k+=`c=IN IP4 0.0.0.0\r
+`),I+=`c=IN IP4 0.0.0.0\r
a=inactive\r
a=mid:`+R2.mid+`\r
-`;return}if(R2.stream){var Q2;R2.kind==="audio"?Q2=R2.stream.getAudioTracks()[0]:R2.kind==="video"&&(Q2=R2.stream.getVideoTracks()[0]),Q2&&X>=15019&&R2.kind==="video"&&!R2.sendEncodingParameters[0].rtx&&(R2.sendEncodingParameters[0].rtx={ssrc:R2.sendEncodingParameters[0].ssrc+1})}var c3=L(R2.localCapabilities,R2.remoteCapabilities),b3=c3.codecs.filter(function(M3){return M3.name.toLowerCase()==="rtx"}).length;!b3&&R2.sendEncodingParameters[0].rtx&&delete R2.sendEncodingParameters[0].rtx,k+=x(R2,c3,"answer",R2.stream,A._dtlsRole),R2.rtcpParameters&&R2.rtcpParameters.reducedSize&&(k+=`a=rtcp-rsize\r
-`)}});var M2=new Q.RTCSessionDescription({type:"answer",sdp:k});return Promise.resolve(M2)},I.prototype.addIceCandidate=function(A){var k=this,V;return A&&!(A.sdpMLineIndex!==void 0||A.sdpMid)?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise(function(M2,R2){if(k._remoteDescription)if(!A||A.candidate==="")for(var t3=0;t30?g.parseCandidate(A.candidate):{};if(M3.protocol==="tcp"&&(M3.port===0||M3.port===9)||M3.component&&M3.component!==1)return M2();if((Q2===0||Q2>0&&b3.iceTransport!==k.transceivers[0].iceTransport)&&!l2(b3.iceTransport,M3))return R2(s2("OperationError","Can not add ICE candidate"));var T3=A.candidate.trim();T3.indexOf("a=")===0&&(T3=T3.substr(2)),V=g.getMediaSections(k._remoteDescription.sdp),V[Q2]+="a="+(M3.type?T3:"end-of-candidates")+`\r
-`,k._remoteDescription.sdp=g.getDescription(k._remoteDescription.sdp)+V.join("")}else return R2(s2("OperationError","Can not add ICE candidate"))}else return R2(s2("InvalidStateError","Can not add ICE candidate without a remote description"));M2()})},I.prototype.getStats=function(A){if(A&&A instanceof Q.MediaStreamTrack){var k=null;if(this.transceivers.forEach(function(M2){M2.rtpSender&&M2.rtpSender.track===A?k=M2.rtpSender:M2.rtpReceiver&&M2.rtpReceiver.track===A&&(k=M2.rtpReceiver)}),!k)throw s2("InvalidAccessError","Invalid selector.");return k.getStats()}var V=[];return this.transceivers.forEach(function(M2){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach(function(R2){M2[R2]&&V.push(M2[R2].getStats())})}),Promise.all(V).then(function(M2){var R2=new Map;return M2.forEach(function(t3){t3.forEach(function(Q2){R2.set(Q2.id,Q2)})}),R2})};var Y=["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"];Y.forEach(function(A){var k=Q[A];if(k&&k.prototype&&k.prototype.getStats){var V=k.prototype.getStats;k.prototype.getStats=function(){return V.apply(this).then(function(M2){var R2=new Map;return Object.keys(M2).forEach(function(t3){M2[t3].type=S(M2[t3]),R2.set(t3,M2[t3])}),R2})}}});var B=["createOffer","createAnswer"];return B.forEach(function(A){var k=I.prototype[A];I.prototype[A]=function(){var V=arguments;return typeof V[0]=="function"||typeof V[1]=="function"?k.apply(this,[arguments[2]]).then(function(M2){typeof V[0]=="function"&&V[0].apply(null,[M2])},function(M2){typeof V[1]=="function"&&V[1].apply(null,[M2])}):k.apply(this,arguments)}}),B=["setLocalDescription","setRemoteDescription","addIceCandidate"],B.forEach(function(A){var k=I.prototype[A];I.prototype[A]=function(){var V=arguments;return typeof V[1]=="function"||typeof V[2]=="function"?k.apply(this,arguments).then(function(){typeof V[1]=="function"&&V[1].apply(null)},function(M2){typeof V[2]=="function"&&V[2].apply(null,[M2])}):k.apply(this,arguments)}}),["getStats"].forEach(function(A){var k=I.prototype[A];I.prototype[A]=function(){var V=arguments;return typeof V[1]=="function"?k.apply(this,arguments).then(function(){typeof V[1]=="function"&&V[1].apply(null)}):k.apply(this,arguments)}}),I}},{sdp:17}],17:[function(R,N,m){var g={};g.generateIdentifier=function(){return Math.random().toString(36).substr(2,10)},g.localCName=g.generateIdentifier(),g.splitLines=function(S){return S.trim().split(`
-`).map(function(x){return x.trim()})},g.splitSections=function(S){var x=S.split(`
-m=`);return x.map(function(E,L){return(L>0?"m="+E:E).trim()+`\r
-`})},g.getDescription=function(S){var x=g.splitSections(S);return x&&x[0]},g.getMediaSections=function(S){var x=g.splitSections(S);return x.shift(),x},g.matchPrefix=function(S,x){return g.splitLines(S).filter(function(E){return E.indexOf(x)===0})},g.parseCandidate=function(S){var x;S.indexOf("a=candidate:")===0?x=S.substring(12).split(" "):x=S.substring(10).split(" ");for(var E={foundation:x[0],component:parseInt(x[1],10),protocol:x[2].toLowerCase(),priority:parseInt(x[3],10),ip:x[4],address:x[4],port:parseInt(x[5],10),type:x[7]},L=8;L0?x[0].split("/")[1]:"sendrecv",uri:x[1]}},g.writeExtmap=function(S){return"a=extmap:"+(S.id||S.preferredId)+(S.direction&&S.direction!=="sendrecv"?"/"+S.direction:"")+" "+S.uri+`\r
-`},g.parseFmtp=function(S){for(var x={},E,L=S.substr(S.indexOf(" ")+1).split(";"),r2=0;r2-1?(E.attribute=S.substr(x+1,L-x-1),E.value=S.substr(L+1)):E.attribute=S.substr(x+1),E},g.parseSsrcGroup=function(S){var x=S.substr(13).split(" ");return{semantics:x.shift(),ssrcs:x.map(function(E){return parseInt(E,10)})}},g.getMid=function(S){var x=g.matchPrefix(S,"a=mid:")[0];if(x)return x.substr(6)},g.parseFingerprint=function(S){var x=S.substr(14).split(" ");return{algorithm:x[0].toLowerCase(),value:x[1]}},g.getDtlsParameters=function(S,x){var E=g.matchPrefix(S+x,"a=fingerprint:");return{role:"auto",fingerprints:E.map(g.parseFingerprint)}},g.writeDtlsParameters=function(S,x){var E="a=setup:"+x+`\r
-`;return S.fingerprints.forEach(function(L){E+="a=fingerprint:"+L.algorithm+" "+L.value+`\r
-`}),E},g.getIceParameters=function(S,x){var E=g.splitLines(S);E=E.concat(g.splitLines(x));var L={usernameFragment:E.filter(function(r2){return r2.indexOf("a=ice-ufrag:")===0})[0].substr(12),password:E.filter(function(r2){return r2.indexOf("a=ice-pwd:")===0})[0].substr(10)};return L},g.writeIceParameters=function(S){return"a=ice-ufrag:"+S.usernameFragment+`\r
+`;return}if(R2.stream){var Q2;R2.kind==="audio"?Q2=R2.stream.getAudioTracks()[0]:R2.kind==="video"&&(Q2=R2.stream.getVideoTracks()[0]),Q2&&X>=15019&&R2.kind==="video"&&!R2.sendEncodingParameters[0].rtx&&(R2.sendEncodingParameters[0].rtx={ssrc:R2.sendEncodingParameters[0].ssrc+1})}var d3=N(R2.localCapabilities,R2.remoteCapabilities),b3=d3.codecs.filter(function(M3){return M3.name.toLowerCase()==="rtx"}).length;!b3&&R2.sendEncodingParameters[0].rtx&&delete R2.sendEncodingParameters[0].rtx,I+=A(R2,d3,"answer",R2.stream,C._dtlsRole),R2.rtcpParameters&&R2.rtcpParameters.reducedSize&&(I+=`a=rtcp-rsize\r
+`)}});var M2=new Q.RTCSessionDescription({type:"answer",sdp:I});return Promise.resolve(M2)},L.prototype.addIceCandidate=function(C){var I=this,G;return C&&!(C.sdpMLineIndex!==void 0||C.sdpMid)?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise(function(M2,R2){if(I._remoteDescription)if(!C||C.candidate==="")for(var t3=0;t30?g.parseCandidate(C.candidate):{};if(M3.protocol==="tcp"&&(M3.port===0||M3.port===9)||M3.component&&M3.component!==1)return M2();if((Q2===0||Q2>0&&b3.iceTransport!==I.transceivers[0].iceTransport)&&!l2(b3.iceTransport,M3))return R2(s2("OperationError","Can not add ICE candidate"));var T3=C.candidate.trim();T3.indexOf("a=")===0&&(T3=T3.substr(2)),G=g.getMediaSections(I._remoteDescription.sdp),G[Q2]+="a="+(M3.type?T3:"end-of-candidates")+`\r
+`,I._remoteDescription.sdp=g.getDescription(I._remoteDescription.sdp)+G.join("")}else return R2(s2("OperationError","Can not add ICE candidate"))}else return R2(s2("InvalidStateError","Can not add ICE candidate without a remote description"));M2()})},L.prototype.getStats=function(C){if(C&&C instanceof Q.MediaStreamTrack){var I=null;if(this.transceivers.forEach(function(M2){M2.rtpSender&&M2.rtpSender.track===C?I=M2.rtpSender:M2.rtpReceiver&&M2.rtpReceiver.track===C&&(I=M2.rtpReceiver)}),!I)throw s2("InvalidAccessError","Invalid selector.");return I.getStats()}var G=[];return this.transceivers.forEach(function(M2){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach(function(R2){M2[R2]&&G.push(M2[R2].getStats())})}),Promise.all(G).then(function(M2){var R2=new Map;return M2.forEach(function(t3){t3.forEach(function(Q2){R2.set(Q2.id,Q2)})}),R2})};var Y=["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"];Y.forEach(function(C){var I=Q[C];if(I&&I.prototype&&I.prototype.getStats){var G=I.prototype.getStats;I.prototype.getStats=function(){return G.apply(this).then(function(M2){var R2=new Map;return Object.keys(M2).forEach(function(t3){M2[t3].type=S(M2[t3]),R2.set(t3,M2[t3])}),R2})}}});var O=["createOffer","createAnswer"];return O.forEach(function(C){var I=L.prototype[C];L.prototype[C]=function(){var G=arguments;return typeof G[0]=="function"||typeof G[1]=="function"?I.apply(this,[arguments[2]]).then(function(M2){typeof G[0]=="function"&&G[0].apply(null,[M2])},function(M2){typeof G[1]=="function"&&G[1].apply(null,[M2])}):I.apply(this,arguments)}}),O=["setLocalDescription","setRemoteDescription","addIceCandidate"],O.forEach(function(C){var I=L.prototype[C];L.prototype[C]=function(){var G=arguments;return typeof G[1]=="function"||typeof G[2]=="function"?I.apply(this,arguments).then(function(){typeof G[1]=="function"&&G[1].apply(null)},function(M2){typeof G[2]=="function"&&G[2].apply(null,[M2])}):I.apply(this,arguments)}}),["getStats"].forEach(function(C){var I=L.prototype[C];L.prototype[C]=function(){var G=arguments;return typeof G[1]=="function"?I.apply(this,arguments).then(function(){typeof G[1]=="function"&&G[1].apply(null)}):I.apply(this,arguments)}}),L}},{sdp:17}],17:[function(V,x,m){var g={};g.generateIdentifier=function(){return Math.random().toString(36).substr(2,10)},g.localCName=g.generateIdentifier(),g.splitLines=function(S){return S.trim().split(`
+`).map(function(A){return A.trim()})},g.splitSections=function(S){var A=S.split(`
+m=`);return A.map(function(P,N){return(N>0?"m="+P:P).trim()+`\r
+`})},g.getDescription=function(S){var A=g.splitSections(S);return A&&A[0]},g.getMediaSections=function(S){var A=g.splitSections(S);return A.shift(),A},g.matchPrefix=function(S,A){return g.splitLines(S).filter(function(P){return P.indexOf(A)===0})},g.parseCandidate=function(S){var A;S.indexOf("a=candidate:")===0?A=S.substring(12).split(" "):A=S.substring(10).split(" ");for(var P={foundation:A[0],component:parseInt(A[1],10),protocol:A[2].toLowerCase(),priority:parseInt(A[3],10),ip:A[4],address:A[4],port:parseInt(A[5],10),type:A[7]},N=8;N0?A[0].split("/")[1]:"sendrecv",uri:A[1]}},g.writeExtmap=function(S){return"a=extmap:"+(S.id||S.preferredId)+(S.direction&&S.direction!=="sendrecv"?"/"+S.direction:"")+" "+S.uri+`\r
+`},g.parseFmtp=function(S){for(var A={},P,N=S.substr(S.indexOf(" ")+1).split(";"),r2=0;r2-1?(P.attribute=S.substr(A+1,N-A-1),P.value=S.substr(N+1)):P.attribute=S.substr(A+1),P},g.parseSsrcGroup=function(S){var A=S.substr(13).split(" ");return{semantics:A.shift(),ssrcs:A.map(function(P){return parseInt(P,10)})}},g.getMid=function(S){var A=g.matchPrefix(S,"a=mid:")[0];if(A)return A.substr(6)},g.parseFingerprint=function(S){var A=S.substr(14).split(" ");return{algorithm:A[0].toLowerCase(),value:A[1]}},g.getDtlsParameters=function(S,A){var P=g.matchPrefix(S+A,"a=fingerprint:");return{role:"auto",fingerprints:P.map(g.parseFingerprint)}},g.writeDtlsParameters=function(S,A){var P="a=setup:"+A+`\r
+`;return S.fingerprints.forEach(function(N){P+="a=fingerprint:"+N.algorithm+" "+N.value+`\r
+`}),P},g.getIceParameters=function(S,A){var P=g.splitLines(S);P=P.concat(g.splitLines(A));var N={usernameFragment:P.filter(function(r2){return r2.indexOf("a=ice-ufrag:")===0})[0].substr(12),password:P.filter(function(r2){return r2.indexOf("a=ice-pwd:")===0})[0].substr(10)};return N},g.writeIceParameters=function(S){return"a=ice-ufrag:"+S.usernameFragment+`\r
a=ice-pwd:`+S.password+`\r
-`},g.parseRtpParameters=function(S){for(var x={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},E=g.splitLines(S),L=E[0].split(" "),r2=3;r20?"9":"0",E+=" UDP/TLS/RTP/SAVPF ",E+=x.codecs.map(function(r2){return r2.preferredPayloadType!==void 0?r2.preferredPayloadType:r2.payloadType}).join(" ")+`\r
-`,E+=`c=IN IP4 0.0.0.0\r
-`,E+=`a=rtcp:9 IN IP4 0.0.0.0\r
-`,x.codecs.forEach(function(r2){E+=g.writeRtpMap(r2),E+=g.writeFmtp(r2),E+=g.writeRtcpFb(r2)});var L=0;return x.codecs.forEach(function(r2){r2.maxptime>L&&(L=r2.maxptime)}),L>0&&(E+="a=maxptime:"+L+`\r
-`),E+=`a=rtcp-mux\r
-`,x.headerExtensions&&x.headerExtensions.forEach(function(r2){E+=g.writeExtmap(r2)}),E},g.parseRtpEncodingParameters=function(S){var x=[],E=g.parseRtpParameters(S),L=E.fecMechanisms.indexOf("RED")!==-1,r2=E.fecMechanisms.indexOf("ULPFEC")!==-1,l2=g.matchPrefix(S,"a=ssrc:").map(function(g2){return g.parseSsrcMedia(g2)}).filter(function(g2){return g2.attribute==="cname"}),s2=l2.length>0&&l2[0].ssrc,Q,X=g.matchPrefix(S,"a=ssrc-group:FID").map(function(g2){var C=g2.substr(17).split(" ");return C.map(function(I){return parseInt(I,10)})});X.length>0&&X[0].length>1&&X[0][0]===s2&&(Q=X[0][1]),E.codecs.forEach(function(g2){if(g2.name.toUpperCase()==="RTX"&&g2.parameters.apt){var C={ssrc:s2,codecPayloadType:parseInt(g2.parameters.apt,10)};s2&&Q&&(C.rtx={ssrc:Q}),x.push(C),L&&(C=JSON.parse(JSON.stringify(C)),C.fec={ssrc:s2,mechanism:r2?"red+ulpfec":"red"},x.push(C))}}),x.length===0&&s2&&x.push({ssrc:s2});var D2=g.matchPrefix(S,"b=");return D2.length&&(D2[0].indexOf("b=TIAS:")===0?D2=parseInt(D2[0].substr(7),10):D2[0].indexOf("b=AS:")===0?D2=parseInt(D2[0].substr(5),10)*1e3*.95-50*40*8:D2=void 0,x.forEach(function(g2){g2.maxBitrate=D2})),x},g.parseRtcpParameters=function(S){var x={},E=g.matchPrefix(S,"a=ssrc:").map(function(l2){return g.parseSsrcMedia(l2)}).filter(function(l2){return l2.attribute==="cname"})[0];E&&(x.cname=E.value,x.ssrc=E.ssrc);var L=g.matchPrefix(S,"a=rtcp-rsize");x.reducedSize=L.length>0,x.compound=L.length===0;var r2=g.matchPrefix(S,"a=rtcp-mux");return x.mux=r2.length>0,x},g.parseMsid=function(S){var x,E=g.matchPrefix(S,"a=msid:");if(E.length===1)return x=E[0].substr(7).split(" "),{stream:x[0],track:x[1]};var L=g.matchPrefix(S,"a=ssrc:").map(function(r2){return g.parseSsrcMedia(r2)}).filter(function(r2){return r2.attribute==="msid"});if(L.length>0)return x=L[0].value.split(" "),{stream:x[0],track:x[1]}},g.parseSctpDescription=function(S){var x=g.parseMLine(S),E=g.matchPrefix(S,"a=max-message-size:"),L;E.length>0&&(L=parseInt(E[0].substr(19),10)),isNaN(L)&&(L=65536);var r2=g.matchPrefix(S,"a=sctp-port:");if(r2.length>0)return{port:parseInt(r2[0].substr(12),10),protocol:x.fmt,maxMessageSize:L};var l2=g.matchPrefix(S,"a=sctpmap:");if(l2.length>0){var s2=g.matchPrefix(S,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(s2[0],10),protocol:s2[1],maxMessageSize:L}}},g.writeSctpDescription=function(S,x){var E=[];return S.protocol!=="DTLS/SCTP"?E=["m="+S.kind+" 9 "+S.protocol+" "+x.protocol+`\r
+`},g.parseRtpParameters=function(S){for(var A={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},P=g.splitLines(S),N=P[0].split(" "),r2=3;r20?"9":"0",P+=" UDP/TLS/RTP/SAVPF ",P+=A.codecs.map(function(r2){return r2.preferredPayloadType!==void 0?r2.preferredPayloadType:r2.payloadType}).join(" ")+`\r
+`,P+=`c=IN IP4 0.0.0.0\r
+`,P+=`a=rtcp:9 IN IP4 0.0.0.0\r
+`,A.codecs.forEach(function(r2){P+=g.writeRtpMap(r2),P+=g.writeFmtp(r2),P+=g.writeRtcpFb(r2)});var N=0;return A.codecs.forEach(function(r2){r2.maxptime>N&&(N=r2.maxptime)}),N>0&&(P+="a=maxptime:"+N+`\r
+`),P+=`a=rtcp-mux\r
+`,A.headerExtensions&&A.headerExtensions.forEach(function(r2){P+=g.writeExtmap(r2)}),P},g.parseRtpEncodingParameters=function(S){var A=[],P=g.parseRtpParameters(S),N=P.fecMechanisms.indexOf("RED")!==-1,r2=P.fecMechanisms.indexOf("ULPFEC")!==-1,l2=g.matchPrefix(S,"a=ssrc:").map(function(g2){return g.parseSsrcMedia(g2)}).filter(function(g2){return g2.attribute==="cname"}),s2=l2.length>0&&l2[0].ssrc,Q,X=g.matchPrefix(S,"a=ssrc-group:FID").map(function(g2){var M=g2.substr(17).split(" ");return M.map(function(L){return parseInt(L,10)})});X.length>0&&X[0].length>1&&X[0][0]===s2&&(Q=X[0][1]),P.codecs.forEach(function(g2){if(g2.name.toUpperCase()==="RTX"&&g2.parameters.apt){var M={ssrc:s2,codecPayloadType:parseInt(g2.parameters.apt,10)};s2&&Q&&(M.rtx={ssrc:Q}),A.push(M),N&&(M=JSON.parse(JSON.stringify(M)),M.fec={ssrc:s2,mechanism:r2?"red+ulpfec":"red"},A.push(M))}}),A.length===0&&s2&&A.push({ssrc:s2});var D2=g.matchPrefix(S,"b=");return D2.length&&(D2[0].indexOf("b=TIAS:")===0?D2=parseInt(D2[0].substr(7),10):D2[0].indexOf("b=AS:")===0?D2=parseInt(D2[0].substr(5),10)*1e3*.95-50*40*8:D2=void 0,A.forEach(function(g2){g2.maxBitrate=D2})),A},g.parseRtcpParameters=function(S){var A={},P=g.matchPrefix(S,"a=ssrc:").map(function(l2){return g.parseSsrcMedia(l2)}).filter(function(l2){return l2.attribute==="cname"})[0];P&&(A.cname=P.value,A.ssrc=P.ssrc);var N=g.matchPrefix(S,"a=rtcp-rsize");A.reducedSize=N.length>0,A.compound=N.length===0;var r2=g.matchPrefix(S,"a=rtcp-mux");return A.mux=r2.length>0,A},g.parseMsid=function(S){var A,P=g.matchPrefix(S,"a=msid:");if(P.length===1)return A=P[0].substr(7).split(" "),{stream:A[0],track:A[1]};var N=g.matchPrefix(S,"a=ssrc:").map(function(r2){return g.parseSsrcMedia(r2)}).filter(function(r2){return r2.attribute==="msid"});if(N.length>0)return A=N[0].value.split(" "),{stream:A[0],track:A[1]}},g.parseSctpDescription=function(S){var A=g.parseMLine(S),P=g.matchPrefix(S,"a=max-message-size:"),N;P.length>0&&(N=parseInt(P[0].substr(19),10)),isNaN(N)&&(N=65536);var r2=g.matchPrefix(S,"a=sctp-port:");if(r2.length>0)return{port:parseInt(r2[0].substr(12),10),protocol:A.fmt,maxMessageSize:N};var l2=g.matchPrefix(S,"a=sctpmap:");if(l2.length>0){var s2=g.matchPrefix(S,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(s2[0],10),protocol:s2[1],maxMessageSize:N}}},g.writeSctpDescription=function(S,A){var P=[];return S.protocol!=="DTLS/SCTP"?P=["m="+S.kind+" 9 "+S.protocol+" "+A.protocol+`\r
`,`c=IN IP4 0.0.0.0\r
-`,"a=sctp-port:"+x.port+`\r
-`]:E=["m="+S.kind+" 9 "+S.protocol+" "+x.port+`\r
+`,"a=sctp-port:"+A.port+`\r
+`]:P=["m="+S.kind+" 9 "+S.protocol+" "+A.port+`\r
`,`c=IN IP4 0.0.0.0\r
-`,"a=sctpmap:"+x.port+" "+x.protocol+` 65535\r
-`],x.maxMessageSize!==void 0&&E.push("a=max-message-size:"+x.maxMessageSize+`\r
-`),E.join("")},g.generateSessionId=function(){return Math.random().toString().substr(2,21)},g.writeSessionBoilerplate=function(S,x,E){var L,r2=x!==void 0?x:2;S?L=S:L=g.generateSessionId();var l2=E||"thisisadapterortc";return`v=0\r
-o=`+l2+" "+L+" "+r2+` IN IP4 127.0.0.1\r
+`,"a=sctpmap:"+A.port+" "+A.protocol+` 65535\r
+`],A.maxMessageSize!==void 0&&P.push("a=max-message-size:"+A.maxMessageSize+`\r
+`),P.join("")},g.generateSessionId=function(){return Math.random().toString().substr(2,21)},g.writeSessionBoilerplate=function(S,A,P){var N,r2=A!==void 0?A:2;S?N=S:N=g.generateSessionId();var l2=P||"thisisadapterortc";return`v=0\r
+o=`+l2+" "+N+" "+r2+` IN IP4 127.0.0.1\r
s=-\r
t=0 0\r
-`},g.writeMediaSection=function(S,x,E,L){var r2=g.writeRtpDescription(S.kind,x);if(r2+=g.writeIceParameters(S.iceGatherer.getLocalParameters()),r2+=g.writeDtlsParameters(S.dtlsTransport.getLocalParameters(),E==="offer"?"actpass":"active"),r2+="a=mid:"+S.mid+`\r
+`},g.writeMediaSection=function(S,A,P,N){var r2=g.writeRtpDescription(S.kind,A);if(r2+=g.writeIceParameters(S.iceGatherer.getLocalParameters()),r2+=g.writeDtlsParameters(S.dtlsTransport.getLocalParameters(),P==="offer"?"actpass":"active"),r2+="a=mid:"+S.mid+`\r
`,S.direction?r2+="a="+S.direction+`\r
`:S.rtpSender&&S.rtpReceiver?r2+=`a=sendrecv\r
`:S.rtpSender?r2+=`a=sendonly\r
`:S.rtpReceiver?r2+=`a=recvonly\r
`:r2+=`a=inactive\r
-`,S.rtpSender){var l2="msid:"+L.id+" "+S.rtpSender.track.id+`\r
+`,S.rtpSender){var l2="msid:"+N.id+" "+S.rtpSender.track.id+`\r
`;r2+="a="+l2,r2+="a=ssrc:"+S.sendEncodingParameters[0].ssrc+" "+l2,S.sendEncodingParameters[0].rtx&&(r2+="a=ssrc:"+S.sendEncodingParameters[0].rtx.ssrc+" "+l2,r2+="a=ssrc-group:FID "+S.sendEncodingParameters[0].ssrc+" "+S.sendEncodingParameters[0].rtx.ssrc+`\r
`)}return r2+="a=ssrc:"+S.sendEncodingParameters[0].ssrc+" cname:"+g.localCName+`\r
`,S.rtpSender&&S.sendEncodingParameters[0].rtx&&(r2+="a=ssrc:"+S.sendEncodingParameters[0].rtx.ssrc+" cname:"+g.localCName+`\r
-`),r2},g.getDirection=function(S,x){for(var E=g.splitLines(S),L=0;L=26&&R<=N?!0:F.extension.isInstalled()}else return!0};var U3={extensionId:"hapfgfdkleiggjjpfpenajgdnfckjpaj",isInstalled:function(){return document.querySelector("#janus-extension-installed")!==null},getScreen:function(N){var m=window.setTimeout(function(){var g=new Error("NavigatorUserMediaError");return g.name='The required Chrome extension is not installed: click here to install it. (NOTE: this will need you to refresh the page)',N(g)},1e3);this.cache[m]=N,window.postMessage({type:"janusGetScreen",id:m},"*")},init:function(){var N={};this.cache=N,window.addEventListener("message",function(m){if(m.origin==window.location.origin)if(m.data.type=="janusGotScreen"&&N[m.data.id]){var g=N[m.data.id];if(delete N[m.data.id],m.data.sourceId===""){var S=new Error("NavigatorUserMediaError");S.name="You cancelled the request for permission, giving up...",g(S)}else g(null,m.data.sourceId)}else m.data.type=="janusGetScreenPending"&&(console.log("clearing ",m.data.id),window.clearTimeout(m.data.id))})}};F.useDefaultDependencies=function(R){var N=R&&R.fetch||fetch,m=R&&R.Promise||Promise,g=R&&R.WebSocket||WebSocket;return{newWebSocket:function(x,E){return new g(x,E)},extension:R&&R.extension||U3,isArray:function(x){return Array.isArray(x)},webRTCAdapter:R&&R.adapter||window.adapter,httpAPICall:function(x,E){var L={method:E.verb,headers:{Accept:"application/json, text/plain, */*"},cache:"no-cache"};E.verb==="POST"&&(L.headers["Content-Type"]="application/json"),E.withCredentials!==void 0&&(L.credentials=E.withCredentials===!0?"include":E.withCredentials?E.withCredentials:"omit"),E.body!==void 0&&(L.body=JSON.stringify(E.body));var r2=N(x,L).catch(function(s2){return m.reject({message:"Probably a network error, is the server down?",error:s2})});if(E.timeout!==void 0){var l2=new m(function(s2,Q){var X=setTimeout(function(){return clearTimeout(X),Q({message:"Request timed out",timeout:E.timeout})},E.timeout)});r2=m.race([r2,l2])}return r2.then(function(s2){if(s2.ok){if(t(E.success)===t(F.noop))return s2.json().then(function(Q){E.success(Q)}).catch(function(Q){return m.reject({message:"Failed to parse response body",error:Q,response:s2})})}else return m.reject({message:"API call failed",response:s2})}).catch(function(s2){t(E.error)===t(F.noop)&&E.error(s2.message||"<< internal error >>",s2)}),r2}}},F.useOldDependencies=function(R){var N=R&&R.jQuery||jQuery,m=R&&R.WebSocket||WebSocket;return{newWebSocket:function(S,x){return new m(S,x)},isArray:function(S){return N.isArray(S)},extension:R&&R.extension||U3,webRTCAdapter:R&&R.adapter||adapter,httpAPICall:function(S,x){var E=x.body!==void 0?{contentType:"application/json",data:JSON.stringify(x.body)}:{},L=x.withCredentials!==void 0?{xhrFields:{withCredentials:x.withCredentials}}:{};return N.ajax(N.extend(E,L,{url:S,type:x.verb,cache:!1,dataType:"json",async:x.async,timeout:x.timeout,success:function(l2){t(x.success)===t(F.noop)&&x.success(l2)},error:function(l2,s2,Q){t(x.error)===t(F.noop)&&x.error(s2,Q)}}))}}},F.noop=function(){},F.dataChanDefaultLabel="JanusDataChannel",F.endOfCandidates=null,F.init=function(R){if(R=R||{},R.callback=typeof R.callback=="function"?R.callback:F.noop,F.initDone===!0)R.callback();else{if((typeof console=="undefined"||typeof console.log=="undefined")&&(console={log:function(){}}),F.trace=F.noop,F.debug=F.noop,F.vdebug=F.noop,F.log=F.noop,F.warn=F.noop,F.error=F.noop,R.debug===!0||R.debug==="all")F.trace=console.trace.bind(console),F.debug=console.debug.bind(console),F.vdebug=console.debug.bind(console),F.log=console.log.bind(console),F.warn=console.warn.bind(console),F.error=console.error.bind(console);else if(Array.isArray(R.debug))for(var N in R.debug){var m=R.debug[N];switch(m){case"trace":F.trace=console.trace.bind(console);break;case"debug":F.debug=console.debug.bind(console);break;case"vdebug":F.vdebug=console.debug.bind(console);break;case"log":F.log=console.log.bind(console);break;case"warn":F.warn=console.warn.bind(console);break;case"error":F.error=console.error.bind(console);break;default:console.error("Unknown debugging option '"+m+"' (supported: 'trace', 'debug', 'vdebug', 'log', warn', 'error')");break}}F.log("Initializing library");var g=R.dependencies||F.useDefaultDependencies();F.isArray=g.isArray,F.webRTCAdapter=g.webRTCAdapter,F.httpAPICall=g.httpAPICall,F.newWebSocket=g.newWebSocket,F.extension=g.extension,F.extension.init(),F.listDevices=function(s2,Q){s2=typeof s2=="function"?s2:F.noop,Q==null&&(Q={audio:!0,video:!0}),F.isGetUserMediaAvailable()?navigator.mediaDevices.getUserMedia(Q).then(function(X){navigator.mediaDevices.enumerateDevices().then(function(D2){F.debug(D2),s2(D2);try{var g2=X.getTracks();for(var C in g2){var I=g2[C];I!=null&&I.stop()}}catch(Y){}})}).catch(function(X){F.error(X),s2([])}):(F.warn("navigator.mediaDevices unavailable"),s2([]))},F.attachMediaStream=function(s2,Q){if(F.webRTCAdapter.browserDetails.browser==="chrome"){var X=F.webRTCAdapter.browserDetails.version;X>=52?s2.srcObject=Q:F.error("Error attaching stream to element")}else s2.srcObject=Q},F.reattachMediaStream=function(s2,Q){if(F.webRTCAdapter.browserDetails.browser==="chrome"){var X=F.webRTCAdapter.browserDetails.version;X>=52?s2.srcObject=Q.srcObject:typeof s2.src!="undefined"?s2.src=Q.src:F.error("Error reattaching stream to element")}else s2.srcObject=Q.srcObject};var S=["iPad","iPhone","iPod"].indexOf(navigator.platform)>=0,x=S?"pagehide":"beforeunload",E=window["on"+x];if(window.addEventListener(x,function(s2){F.log("Closing window");for(var Q in F.sessions)F.sessions[Q]!==null&&F.sessions[Q]!==void 0&&F.sessions[Q].destroyOnUnload&&(F.log("Destroying session "+Q),F.sessions[Q].destroy({asyncRequest:!1,notifyDestroyed:!1}));E&&typeof E=="function"&&E()}),F.safariVp8=!1,F.webRTCAdapter.browserDetails.browser==="safari"&&F.webRTCAdapter.browserDetails.version>=605)if(RTCRtpSender&&RTCRtpSender.getCapabilities&&RTCRtpSender.getCapabilities("video")&&RTCRtpSender.getCapabilities("video").codecs&&RTCRtpSender.getCapabilities("video").codecs.length){for(var N in RTCRtpSender.getCapabilities("video").codecs){var L=RTCRtpSender.getCapabilities("video").codecs[N];if(L&&L.mimeType&&L.mimeType.toLowerCase()==="video/vp8"){F.safariVp8=!0;break}}F.safariVp8?F.log("This version of Safari supports VP8"):F.warn("This version of Safari does NOT support VP8: if you're using a Technology Preview, try enabling the 'WebRTC VP8 codec' setting in the 'Experimental Features' Develop menu")}else{var r2=new RTCPeerConnection({},{});r2.createOffer({offerToReceiveVideo:!0}).then(function(s2){F.safariVp8=s2.sdp.indexOf("VP8")!==-1,F.safariVp8?F.log("This version of Safari supports VP8"):F.warn("This version of Safari does NOT support VP8: if you're using a Technology Preview, try enabling the 'WebRTC VP8 codec' setting in the 'Experimental Features' Develop menu"),r2.close(),r2=null})}if(F.unifiedPlan=!1,F.webRTCAdapter.browserDetails.browser==="firefox"&&F.webRTCAdapter.browserDetails.version>=59)F.unifiedPlan=!0;else if(F.webRTCAdapter.browserDetails.browser==="chrome"&&F.webRTCAdapter.browserDetails.version<72)F.unifiedPlan=!1;else if(typeof RTCRtpTransceiver!="undefined"&&!("currentDirection"in RTCRtpTransceiver.prototype))F.unifiedPlan=!1;else{var l2=new RTCPeerConnection;try{l2.addTransceiver("audio"),F.unifiedPlan=!0}catch(s2){}l2.close()}F.initDone=!0,R.callback()}},F.isWebrtcSupported=function(){return window.RTCPeerConnection!==void 0&&window.RTCPeerConnection!==null},F.isGetUserMediaAvailable=function(){return navigator.mediaDevices!==void 0&&navigator.mediaDevices!==null&&navigator.mediaDevices.getUserMedia!==void 0&&navigator.mediaDevices.getUserMedia!==null},F.randomString=function(R){for(var N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",m="",g=0;g3){A=!1,R.error("Lost connection to the server (is it down?)");return}Q2()}})}}function c3(d2,O2){if(R2=0,!N&&k!==void 0&&k!==null&&O2!==!0&&Q2(),!N&&F.isArray(d2)){for(var j2=0;j2 data channel: "+A0),A0==="open"){if(a3.dataChannel[$3].pending&&a3.dataChannel[$3].pending.length>0){F.log("Sending pending messages on <"+$3+">:",a3.dataChannel[$3].pending.length);for(var F1 in a3.dataChannel[$3].pending){var V1=a3.dataChannel[$3].pending[F1];F.log("Sending string on data channel <"+$3+">: "+V1),a3.dataChannel[$3].send(V1)}a3.dataChannel[$3].pending=[]}f2.ondataopen($3)}},_3=function(A3){F.error("Got error on data channel:",A3)};j2?a3.dataChannel[O2]=j2:a3.dataChannel[O2]=a3.pc.createDataChannel(O2,{ordered:!1}),a3.dataChannel[O2].onmessage=n3,a3.dataChannel[O2].onopen=m3,a3.dataChannel[O2].onclose=m3,a3.dataChannel[O2].onerror=_3,a3.dataChannel[O2].pending=[],K2&&a3.dataChannel[O2].pending.push(K2)}function L1(d2,O2){O2=O2||{},O2.success=typeof O2.success=="function"?O2.success:F.noop,O2.error=typeof O2.error=="function"?O2.error:F.noop;var j2=V[d2];if(j2==null||j2.webrtcStuff===null||j2.webrtcStuff===void 0){F.warn("Invalid handle"),O2.error("Invalid handle");return}var K2=j2.webrtcStuff,f2=O2.text;if(f2==null){F.warn("Invalid text"),O2.error("Invalid text");return}var a3=O2.label?O2.label:F.dataChanDefaultLabel;if(!K2.dataChannel[a3]){N1(d2,a3,!1,f2),O2.success();return}if(K2.dataChannel[a3].readyState!=="open"){K2.dataChannel[a3].pending.push(f2),O2.success();return}F.log("Sending string on data channel <"+a3+">: "+f2),K2.dataChannel[a3].send(f2),O2.success()}function G1(d2,O2){O2=O2||{},O2.success=typeof O2.success=="function"?O2.success:F.noop,O2.error=typeof O2.error=="function"?O2.error:F.noop;var j2=V[d2];if(j2==null||j2.webrtcStuff===null||j2.webrtcStuff===void 0){F.warn("Invalid handle"),O2.error("Invalid handle");return}var K2=j2.webrtcStuff;if(K2.dtmfSender===null||K2.dtmfSender===void 0){if(K2.pc!==void 0&&K2.pc!==null){var f2=K2.pc.getSenders(),a3=f2.find(function(A3){return A3.track&&A3.track.kind==="audio"});if(!a3){F.warn("Invalid DTMF configuration (no audio track)"),O2.error("Invalid DTMF configuration (no audio track)");return}K2.dtmfSender=a3.dtmf,K2.dtmfSender&&(F.log("Created DTMF Sender"),K2.dtmfSender.ontonechange=function(A3){F.debug("Sent DTMF tone: "+A3.tone)})}if(K2.dtmfSender===null||K2.dtmfSender===void 0){F.warn("Invalid DTMF configuration"),O2.error("Invalid DTMF configuration");return}}var n3=O2.dtmf;if(n3==null){F.warn("Invalid DTMF parameters"),O2.error("Invalid DTMF parameters");return}var m3=n3.tones;if(m3==null){F.warn("Invalid DTMF string"),O2.error("Invalid DTMF string");return}var _3=n3.duration;_3==null&&(_3=500);var V3=n3.gap;V3==null&&(V3=50),F.debug("Sending DTMF string "+m3+" (duration "+_3+"ms, gap "+V3+"ms)"),K2.dtmfSender.insertDTMF(m3,_3,V3),O2.success()}function y0(d2,O2){O2=O2||{},O2.success=typeof O2.success=="function"?O2.success:F.noop,O2.error=typeof O2.error=="function"?O2.error:F.noop;var j2=!0;O2.asyncRequest!==void 0&&O2.asyncRequest!==null&&(j2=O2.asyncRequest===!0);var K2=!0;O2.noRequest!==void 0&&O2.noRequest!==null&&(K2=O2.noRequest===!0),F.log("Destroying handle "+d2+" (async="+j2+")"),et(d2);var f2=V[d2];if(f2==null||f2.detached){delete V[d2],O2.success();return}if(K2){delete V[d2],O2.success();return}if(!A){F.warn("Is the server down? (connected=false)"),O2.error("Is the server down? (connected=false)");return}var a3={rtcgw:"detach",transaction:F.randomString(12)};if(f2.token!==null&&f2.token!==void 0&&(a3.token=f2.token),C!=null&&(a3.apisecret=C),N){a3.session_id=k,a3.handle_id=d2,m.send(JSON.stringify(a3)),delete V[d2],O2.success();return}F.httpAPICall(L+"/"+k+"/"+d2,{verb:"POST",async:j2,withCredentials:X,body:a3,success:function(m3){F.log("Destroyed handle:"),F.debug(m3),m3.rtcgw!=="success"&&F.error("Ooops: "+m3.error.code+" "+m3.error.reason),delete V[d2],O2.success()},error:function(m3,_3){F.error(m3+":",_3),delete V[d2],O2.success()}})}function B2(d2,O2,j2,K2,f2){var a3=V[d2];if(a3==null||a3.webrtcStuff===null||a3.webrtcStuff===void 0){F.warn("Invalid handle"),K2.error("Invalid handle");return}var n3=a3.webrtcStuff;F.debug("streamsDone:",f2),f2&&(F.debug(" -- Audio tracks:",f2.getAudioTracks()),F.debug(" -- Video tracks:",f2.getVideoTracks()));var m3=!1;if(!n3.myStream||!j2.update||n3.streamExternal)n3.myStream=f2,m3=!0;else{if((!j2.update&&b0(j2)||j2.update&&(j2.addAudio||j2.replaceAudio))&&f2.getAudioTracks()&&f2.getAudioTracks().length)if(n3.myStream.addTrack(f2.getAudioTracks()[0]),F.unifiedPlan){F.log((j2.replaceAudio?"Replacing":"Adding")+" audio track:",f2.getAudioTracks()[0]);var _3=null,V3=n3.pc.getTransceivers();if(V3&&V3.length>0)for(var A3 in V3){var $3=V3[A3];if($3.sender&&$3.sender.track&&$3.sender.track.kind==="audio"||$3.receiver&&$3.receiver.track&&$3.receiver.track.kind==="audio"){_3=$3;break}}_3&&_3.sender?_3.sender.replaceTrack(f2.getAudioTracks()[0]):n3.pc.addTrack(f2.getAudioTracks()[0],f2)}else F.log((j2.replaceAudio?"Replacing":"Adding")+" audio track:",f2.getAudioTracks()[0]),n3.pc.addTrack(f2.getAudioTracks()[0],f2);if((!j2.update&&d0(j2)||j2.update&&(j2.addVideo||j2.replaceVideo))&&f2.getVideoTracks()&&f2.getVideoTracks().length)if(n3.myStream.addTrack(f2.getVideoTracks()[0]),F.unifiedPlan){F.log((j2.replaceVideo?"Replacing":"Adding")+" video track:",f2.getVideoTracks()[0]);var A0=null,V3=n3.pc.getTransceivers();if(V3&&V3.length>0)for(var A3 in V3){var $3=V3[A3];if($3.sender&&$3.sender.track&&$3.sender.track.kind==="video"||$3.receiver&&$3.receiver.track&&$3.receiver.track.kind==="video"){A0=$3;break}}A0&&A0.sender?A0.sender.replaceTrack(f2.getVideoTracks()[0]):n3.pc.addTrack(f2.getVideoTracks()[0],f2)}else F.log((j2.replaceVideo?"Replacing":"Adding")+" video track:",f2.getVideoTracks()[0]),n3.pc.addTrack(f2.getVideoTracks()[0],f2)}if(!n3.pc){var F1={iceServers:r2,iceTransportPolicy:l2,bundlePolicy:s2};F.webRTCAdapter.browserDetails.browser==="chrome"&&(F1.sdpSemantics=F.webRTCAdapter.browserDetails.version<72?"plan-b":"unified-plan");var V1={optional:[{DtlsSrtpKeyAgreement:!0}]};if(Q===!0&&V1.optional.push({googIPv6:!0}),K2.rtcConstraints&&t(K2.rtcConstraints)==="object"){F.debug("Adding custom PeerConnection constraints:",K2.rtcConstraints);for(var A3 in K2.rtcConstraints)V1.optional.push(K2.rtcConstraints[A3])}F.webRTCAdapter.browserDetails.browser==="edge"&&(F1.bundlePolicy="max-bundle"),F.log("Creating PeerConnection"),F.debug(V1),n3.pc=new RTCPeerConnection(F1,V1),F.debug(n3.pc),n3.pc.getStats&&(n3.volume={},n3.bitrate.value="0 kbits/sec"),F.log("Preparing local SDP and gathering candidates (trickle="+n3.trickle+")"),n3.pc.oniceconnectionstatechange=function(W1){n3.pc&&a3.iceState(n3.pc.iceConnectionState)},n3.pc.onicecandidate=function(W1){if(W1.candidate==null||F.webRTCAdapter.browserDetails.browser==="edge"&&W1.candidate.candidate.indexOf("endOfCandidates")>0)F.log("End of candidates."),n3.iceDone=!0,n3.trickle===!0?T1(d2,{completed:!0}):j1(d2,K2);else{var k0={candidate:W1.candidate.candidate,sdpMid:W1.candidate.sdpMid,sdpMLineIndex:W1.candidate.sdpMLineIndex};n3.trickle===!0&&T1(d2,k0)}},n3.pc.ontrack=function(W1){F.log("Handling Remote Track"),F.debug(W1),W1.streams&&(n3.remoteStream=W1.streams[0],a3.onremotestream(n3.remoteStream),!W1.track.onended&&(F.log("Adding onended callback to track:",W1.track),W1.track.onended=function(k0){F.log("Remote track muted/removed:",k0),n3.remoteStream&&(n3.remoteStream.removeTrack(k0.target),a3.onremotestream(n3.remoteStream))},W1.track.onmute=W1.track.onended,W1.track.onunmute=function(k0){F.log("Remote track flowing again:",k0);try{n3.remoteStream.addTrack(k0.target),a3.onremotestream(n3.remoteStream)}catch(ln){F.error(ln)}}))}}if(m3&&f2!==null&&f2!==void 0){F.log("Adding local stream");var a0=K2.simulcast2===!0;f2.getTracks().forEach(function(W1){if(F.log("Adding local track:",W1),!a0)n3.pc.addTrack(W1,f2);else if(W1.kind==="audio")n3.pc.addTrack(W1,f2);else{F.log("Enabling rid-based simulcasting:",W1);var k0=B(K2.simulcastMaxBitrates);n3.pc.addTransceiver(W1,{direction:"sendrecv",streams:[f2],sendEncodings:[{rid:"h",active:!0,maxBitrate:k0.high},{rid:"m",active:!0,maxBitrate:k0.medium,scaleResolutionDownBy:2},{rid:"l",active:!0,maxBitrate:k0.low,scaleResolutionDownBy:4}]})}})}Z1(j2)&&!n3.dataChannel[F.dataChanDefaultLabel]&&(F.log("Creating data channel"),N1(d2,F.dataChanDefaultLabel,!1),n3.pc.ondatachannel=function(W1){F.log("Data channel created by Janus:",W1),N1(d2,W1.channel.label,W1.channel)}),n3.myStream&&a3.onlocalstream(n3.myStream),O2==null?t1(d2,j2,K2):n3.pc.setRemoteDescription(O2).then(function(){if(F.log("Remote description accepted!"),n3.remoteSdp=O2.sdp,n3.candidates&&n3.candidates.length>0){for(var W1=0;W1=26&&Ci<=m8?(a0={video:{mandatory:{googLeakyBucket:!0,maxWidth:window.screen.width,maxHeight:window.screen.height,minFrameRate:f2.screenshareFrameRate,maxFrameRate:f2.screenshareFrameRate,chromeMediaSource:"screen"}},audio:b0(f2)&&!f2.keepAudio},c5(a0,ei)):F.extension.getScreen(function(we,oe){if(we)return a3.consentDialog(!1),j2.error(we);a0={audio:!1,video:{mandatory:{chromeMediaSource:"desktop",maxWidth:window.screen.width,maxHeight:window.screen.height,minFrameRate:f2.screenshareFrameRate,maxFrameRate:f2.screenshareFrameRate},optional:[{googLeakyBucket:!0},{googTemporalLayeredScreencast:!0}]}},a0.video.mandatory.chromeMediaSourceId=oe,c5(a0,ei,b0(f2)&&!f2.keepAudio)})}else if(F.webRTCAdapter.browserDetails.browser==="firefox")if(F.webRTCAdapter.browserDetails.version>=33)a0={video:{mozMediaSource:f2.video,mediaSource:f2.video},audio:b0(f2)&&!f2.keepAudio},c5(a0,function(we,oe){if(ei(we,oe),!we)var Ut=oe.currentTime,un=window.setInterval(function(){oe||window.clearInterval(un),oe.currentTime==Ut&&(window.clearInterval(un),oe.onended&&oe.onended()),Ut=oe.currentTime},500)});else{var p9=new Error("NavigatorUserMediaError");p9.name="Your version of Firefox does not support screen sharing, please install Firefox 33 (or more recent versions)",a3.consentDialog(!1),j2.error(p9);return}return}}(f2==null||f2.video!=="screen")&&navigator.mediaDevices.enumerateDevices().then(function(we){var oe=we.some(function(cn){return cn.kind==="audioinput"}),Ut=w1(f2)||we.some(function(cn){return cn.kind==="videoinput"}),un=b0(f2),s6=d0(f2),Mi=Te(f2),Ei=B0(f2);if(un||s6||Mi||Ei){var m9=un?oe:!1,g9=s6?Ut:!1;if(!m9&&!g9)return a3.consentDialog(!1),j2.error("No capture device found"),!1;if(!m9&&Mi)return a3.consentDialog(!1),j2.error("Audio capture is required, but no capture device found"),!1;if(!g9&&Ei)return a3.consentDialog(!1),j2.error("Video capture is required, but no capture device found"),!1}var d5={audio:oe&&!f2.keepAudio?W1:!1,video:Ut&&!f2.keepVideo?k0:!1};F.debug("getUserMedia constraints",d5),!d5.audio&&!d5.video?(a3.consentDialog(!1),B2(d2,K2,f2,j2,$3)):navigator.mediaDevices.getUserMedia(d5).then(function(cn){a3.consentDialog(!1),B2(d2,K2,f2,j2,cn)}).catch(function(cn){a3.consentDialog(!1),j2.error({code:cn.code,name:cn.name,message:cn.message})})}).catch(function(we){a3.consentDialog(!1),j2.error("enumerateDevices error",we)})}else B2(d2,K2,f2,j2)}function P3(d2,O2){O2=O2||{},O2.success=typeof O2.success=="function"?O2.success:F.noop,O2.error=typeof O2.error=="function"?O2.error:Dt;var j2=O2.jsep,K2=V[d2];if(K2==null||K2.webrtcStuff===null||K2.webrtcStuff===void 0){F.warn("Invalid handle"),O2.error("Invalid handle");return}var f2=K2.webrtcStuff;if(j2!=null){if(f2.pc===null){F.warn("Wait, no PeerConnection?? if this is an answer, use createAnswer and not handleRemoteJsep"),O2.error("No PeerConnection: if this is an answer, use createAnswer and not handleRemoteJsep");return}f2.pc.setRemoteDescription(j2).then(function(){if(F.log("Remote description accepted!"),f2.remoteSdp=j2.sdp,f2.candidates&&f2.candidates.length>0){for(var a3=0;a30)for(var A3 in V3){var $3=V3[A3];if($3.sender&&$3.sender.track&&$3.sender.track.kind==="audio"||$3.receiver&&$3.receiver.track&&$3.receiver.track.kind==="audio"){m3||(m3=$3);continue}if($3.sender&&$3.sender.track&&$3.sender.track.kind==="video"||$3.receiver&&$3.receiver.track&&$3.receiver.track.kind==="video"){_3||(_3=$3);continue}}var A0=b0(O2),F1=yt(O2);!A0&&!F1?O2.removeAudio&&m3&&(m3.setDirection?m3.setDirection("inactive"):m3.direction="inactive",F.log("Setting audio transceiver to inactive:",m3)):A0&&F1?m3&&(m3.setDirection?m3.setDirection("sendrecv"):m3.direction="sendrecv",F.log("Setting audio transceiver to sendrecv:",m3)):A0&&!F1?m3&&(m3.setDirection?m3.setDirection("sendonly"):m3.direction="sendonly",F.log("Setting audio transceiver to sendonly:",m3)):!A0&&F1&&(m3?(m3.setDirection?m3.setDirection("recvonly"):m3.direction="recvonly",F.log("Setting audio transceiver to recvonly:",m3)):(m3=f2.pc.addTransceiver("audio",{direction:"recvonly"}),F.log("Adding recvonly audio transceiver:",m3)));var V1=d0(O2),a0=k1(O2);!V1&&!a0?O2.removeVideo&&_3&&(_3.setDirection?_3.setDirection("inactive"):_3.direction="inactive",F.log("Setting video transceiver to inactive:",_3)):V1&&a0?_3&&(_3.setDirection?_3.setDirection("sendrecv"):_3.direction="sendrecv",F.log("Setting video transceiver to sendrecv:",_3)):V1&&!a0?_3&&(_3.setDirection?_3.setDirection("sendonly"):_3.direction="sendonly",F.log("Setting video transceiver to sendonly:",_3)):!V1&&a0&&(_3?(_3.setDirection?_3.setDirection("recvonly"):_3.direction="recvonly",F.log("Setting video transceiver to recvonly:",_3)):(_3=f2.pc.addTransceiver("video",{direction:"recvonly"}),F.log("Adding recvonly video transceiver:",_3)))}else n3.offerToReceiveAudio=yt(O2),n3.offerToReceiveVideo=k1(O2);var W1=j2.iceRestart===!0;W1&&(n3.iceRestart=!0),F.debug(n3);var k0=d0(O2);if(k0&&a3&&F.webRTCAdapter.browserDetails.browser==="firefox"){F.log("Enabling Simulcasting for Firefox (RID)");var ln=f2.pc.getSenders().find(function(Q0){return Q0.track.kind=="video"});if(ln){var Zt=ln.getParameters();Zt||(Zt={});var h0=B(j2.simulcastMaxBitrates);Zt.encodings=[{rid:"h",active:!0,maxBitrate:h0.high},{rid:"m",active:!0,maxBitrate:h0.medium,scaleResolutionDownBy:2},{rid:"l",active:!0,maxBitrate:h0.low,scaleResolutionDownBy:4}],ln.setParameters(Zt)}}f2.pc.createOffer(n3).then(function(Q0){F.debug(Q0);var ei={type:Q0.type,sdp:Q0.sdp};if(j2.customizeSdp(ei),Q0.sdp=ei.sdp,F.log("Setting local description"),k0&&a3&&(F.webRTCAdapter.browserDetails.browser==="chrome"||F.webRTCAdapter.browserDetails.browser==="safari"?(F.log("Enabling Simulcasting for Chrome (SDP munging)"),Q0.sdp=At(Q0.sdp)):F.webRTCAdapter.browserDetails.browser!=="firefox"&&F.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring")),f2.mySdp=Q0.sdp,f2.pc.setLocalDescription(Q0).catch(j2.error),f2.mediaConstraints=n3,!f2.iceDone&&!f2.trickle){F.log("Waiting for all candidates...");return}F.log("Offer ready"),F.debug(j2),j2.success(Q0)},j2.error)}function v1(d2,O2,j2){j2=j2||{},j2.success=typeof j2.success=="function"?j2.success:F.noop,j2.error=typeof j2.error=="function"?j2.error:F.noop,j2.customizeSdp=typeof j2.customizeSdp=="function"?j2.customizeSdp:F.noop;var K2=V[d2];if(K2==null||K2.webrtcStuff===null||K2.webrtcStuff===void 0){F.warn("Invalid handle"),j2.error("Invalid handle");return}var f2=K2.webrtcStuff,a3=j2.simulcast===!0;a3?F.log("Creating answer (iceDone="+f2.iceDone+", simulcast="+a3+")"):F.log("Creating answer (iceDone="+f2.iceDone+")");var n3=null;if(F.unifiedPlan){n3={};var m3=null,_3=null,V3=f2.pc.getTransceivers();if(V3&&V3.length>0)for(var A3 in V3){var $3=V3[A3];if($3.sender&&$3.sender.track&&$3.sender.track.kind==="audio"||$3.receiver&&$3.receiver.track&&$3.receiver.track.kind==="audio"){m3||(m3=$3);continue}if($3.sender&&$3.sender.track&&$3.sender.track.kind==="video"||$3.receiver&&$3.receiver.track&&$3.receiver.track.kind==="video"){_3||(_3=$3);continue}}var A0=b0(O2),F1=yt(O2);if(!A0&&!F1){if(O2.removeAudio&&m3)try{m3.setDirection?m3.setDirection("inactive"):m3.direction="inactive",F.log("Setting audio transceiver to inactive:",m3)}catch(h0){F.error(h0)}}else if(A0&&F1){if(m3)try{m3.setDirection?m3.setDirection("sendrecv"):m3.direction="sendrecv",F.log("Setting audio transceiver to sendrecv:",m3)}catch(h0){F.error(h0)}}else if(A0&&!F1)try{m3&&(m3.setDirection?m3.setDirection("sendonly"):m3.direction="sendonly",F.log("Setting audio transceiver to sendonly:",m3))}catch(h0){F.error(h0)}else if(!A0&&F1)if(m3)try{m3.setDirection?m3.setDirection("recvonly"):m3.direction="recvonly",F.log("Setting audio transceiver to recvonly:",m3)}catch(h0){F.error(h0)}else m3=f2.pc.addTransceiver("audio",{direction:"recvonly"}),F.log("Adding recvonly audio transceiver:",m3);var V1=d0(O2),a0=k1(O2);if(!V1&&!a0){if(O2.removeVideo&&_3)try{_3.setDirection?_3.setDirection("inactive"):_3.direction="inactive",F.log("Setting video transceiver to inactive:",_3)}catch(h0){F.error(h0)}}else if(V1&&a0){if(_3)try{_3.setDirection?_3.setDirection("sendrecv"):_3.direction="sendrecv",F.log("Setting video transceiver to sendrecv:",_3)}catch(h0){F.error(h0)}}else if(V1&&!a0){if(_3)try{_3.setDirection?_3.setDirection("sendonly"):_3.direction="sendonly",F.log("Setting video transceiver to sendonly:",_3)}catch(h0){F.error(h0)}}else if(!V1&&a0)if(_3)try{_3.setDirection?_3.setDirection("recvonly"):_3.direction="recvonly",F.log("Setting video transceiver to recvonly:",_3)}catch(h0){F.error(h0)}else _3=f2.pc.addTransceiver("video",{direction:"recvonly"}),F.log("Adding recvonly video transceiver:",_3)}else F.webRTCAdapter.browserDetails.browser=="firefox"||F.webRTCAdapter.browserDetails.browser=="edge"?n3={offerToReceiveAudio:yt(O2),offerToReceiveVideo:k1(O2)}:n3={mandatory:{OfferToReceiveAudio:yt(O2),OfferToReceiveVideo:k1(O2)}};F.debug(n3);var W1=d0(O2);if(W1&&a3&&F.webRTCAdapter.browserDetails.browser==="firefox"){F.log("Enabling Simulcasting for Firefox (RID)");var k0=f2.pc.getSenders()[1];F.log(k0);var ln=k0.getParameters();F.log(ln);var Zt=B(j2.simulcastMaxBitrates);k0.setParameters({encodings:[{rid:"high",active:!0,priority:"high",maxBitrate:Zt.high},{rid:"medium",active:!0,priority:"medium",maxBitrate:Zt.medium},{rid:"low",active:!0,priority:"low",maxBitrate:Zt.low}]})}f2.pc.createAnswer(n3).then(function(h0){F.debug(h0);var Q0={type:h0.type,sdp:h0.sdp};if(j2.customizeSdp(Q0),h0.sdp=Q0.sdp,F.log("Setting local description"),W1&&a3&&(F.webRTCAdapter.browserDetails.browser==="chrome"?F.warn("simulcast=true, but this is an answer, and video breaks in Chrome if we enable it"):F.webRTCAdapter.browserDetails.browser!=="firefox"&&F.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring")),f2.mySdp=h0.sdp,f2.pc.setLocalDescription(h0).catch(j2.error),f2.mediaConstraints=n3,!f2.iceDone&&!f2.trickle){F.log("Waiting for all candidates...");return}j2.success(h0)},j2.error)}function j1(d2,O2){O2=O2||{},O2.success=typeof O2.success=="function"?O2.success:F.noop,O2.error=typeof O2.error=="function"?O2.error:F.noop;var j2=V[d2];if(j2==null||j2.webrtcStuff===null||j2.webrtcStuff===void 0){F.warn("Invalid handle, not sending anything");return}var K2=j2.webrtcStuff;if(F.log("Sending offer/answer SDP..."),K2.mySdp===null||K2.mySdp===void 0){F.warn("Local SDP instance is invalid, not sending anything...");return}K2.mySdp={type:K2.pc.localDescription.type,sdp:K2.pc.localDescription.sdp},K2.trickle===!1&&(K2.mySdp.trickle=!1),F.debug(O2),K2.sdpSent=!0,O2.success(K2.mySdp)}function U1(d2,O2){var j2=V[d2];if(j2==null||j2.webrtcStuff===null||j2.webrtcStuff===void 0)return F.warn("Invalid handle"),0;var K2=O2?"remote":"local",f2=j2.webrtcStuff;return f2.volume[K2]||(f2.volume[K2]={value:0}),f2.pc.getStats&&F.webRTCAdapter.browserDetails.browser==="chrome"?O2&&(f2.remoteStream===null||f2.remoteStream===void 0)?(F.warn("Remote stream unavailable"),0):!O2&&(f2.myStream===null||f2.myStream===void 0)?(F.warn("Local stream unavailable"),0):f2.volume[K2].timer===null||f2.volume[K2].timer===void 0?(F.log("Starting "+K2+" volume monitor"),f2.volume[K2].timer=setInterval(function(){f2.pc.getStats(function(a3){for(var n3=a3.result(),m3=0;m3-1)&&f2.type==="inbound-rtp"&&f2.id.indexOf("rtcp")<0||f2.type=="ssrc"&&f2.bytesReceived&&(f2.googCodecName==="VP8"||f2.googCodecName===""))&&(a3=!0),a3)if(j2.bitrate.bsnow=f2.bytesReceived,j2.bitrate.tsnow=f2.timestamp,j2.bitrate.bsbefore===null||j2.bitrate.tsbefore===null)j2.bitrate.bsbefore=j2.bitrate.bsnow,j2.bitrate.tsbefore=j2.bitrate.tsnow;else{var n3=j2.bitrate.tsnow-j2.bitrate.tsbefore;F.webRTCAdapter.browserDetails.browser=="safari"&&(n3=n3/1e3);var m3=Math.round((j2.bitrate.bsnow-j2.bitrate.bsbefore)*8/n3);F.webRTCAdapter.browserDetails.browser==="safari"&&(m3=parseInt(m3/1e3)),j2.bitrate.value=m3+" kbits/sec",j2.bitrate.bsbefore=j2.bitrate.bsnow,j2.bitrate.tsbefore=j2.bitrate.tsnow}}})})},1e3),"0 kbits/sec"):j2.bitrate.value:(F.warn("Getting the video bitrate unsupported by browser"),"Feature unsupported by browser")}function Dt(d2){F.error("WebRTC error:",d2)}function et(d2,O2){F.log("Cleaning WebRTC stuff");var j2=V[d2];if(j2!=null){var K2=j2.webrtcStuff;if(K2!=null){if(O2===!0){var f2={rtcgw:"hangup",transaction:F.randomString(12)};j2.token!==null&&j2.token!==void 0&&(f2.token=j2.token),C!=null&&(f2.apisecret=C),F.debug("Sending hangup request (handle="+d2+"):"),F.debug(f2),N?(f2.session_id=k,f2.handle_id=d2,m.send(JSON.stringify(f2))):F.httpAPICall(L+"/"+k+"/"+d2,{verb:"POST",withCredentials:X,body:f2})}K2.remoteStream=null,K2.volume&&(K2.volume.local&&K2.volume.local.timer&&clearInterval(K2.volume.local.timer),K2.volume.remote&&K2.volume.remote.timer&&clearInterval(K2.volume.remote.timer)),K2.volume={},K2.bitrate.timer&&clearInterval(K2.bitrate.timer),K2.bitrate.timer=null,K2.bitrate.bsnow=null,K2.bitrate.bsbefore=null,K2.bitrate.tsnow=null,K2.bitrate.tsbefore=null,K2.bitrate.value=null;try{if(!K2.streamExternal&&K2.myStream!==null&&K2.myStream!==void 0){F.log("Stopping local stream tracks");var a3=K2.myStream.getTracks();for(var n3 in a3){var m3=a3[n3];F.log(m3),m3!=null&&m3.stop()}}}catch(_3){}K2.streamExternal=!1,K2.myStream=null;try{K2.pc.close()}catch(_3){}K2.pc=null,K2.candidates=null,K2.mySdp=null,K2.remoteSdp=null,K2.iceDone=!1,K2.dataChannel={},K2.dtmfSender=null}j2.oncleanup()}}function At(d2){for(var O2=d2.split(`\r
-`),j2=!1,K2=[-1],f2=[-1],a3=null,n3=null,m3=null,_3=null,V3=-1,A3=0;A3-1){V3=A3;break}continue}if(j2){var F1=O2[A3].match(/a=ssrc-group:FID (\d+) (\d+)/);if(F1){K2[0]=F1[1],f2[0]=F1[2],O2.splice(A3,1),A3--;continue}if(K2[0]){var V1=O2[A3].match("a=ssrc:"+K2[0]+" cname:(.+)");if(V1&&(a3=V1[1]),V1=O2[A3].match("a=ssrc:"+K2[0]+" msid:(.+)"),V1&&(n3=V1[1]),V1=O2[A3].match("a=ssrc:"+K2[0]+" mslabel:(.+)"),V1&&(m3=V1[1]),V1=O2[A3].match("a=ssrc:"+K2[0]+" label:(.+)"),V1&&(_3=V1[1]),O2[A3].indexOf("a=ssrc:"+f2[0])===0){O2.splice(A3,1),A3--;continue}if(O2[A3].indexOf("a=ssrc:"+K2[0])===0){O2.splice(A3,1),A3--;continue}}if(O2[A3].length==0){O2.splice(A3,1),A3--;continue}}}if(K2[0]<0){V3=-1,j2=!1;for(var A3=0;A3-1){V3=A3;break}continue}if(j2){if(K2[0]<0){var a0=O2[A3].match(/a=ssrc:(\d+)/);if(a0){K2[0]=a0[1],O2.splice(A3,1),A3--;continue}}else{var V1=O2[A3].match("a=ssrc:"+K2[0]+" cname:(.+)");if(V1&&(a3=V1[1]),V1=O2[A3].match("a=ssrc:"+K2[0]+" msid:(.+)"),V1&&(n3=V1[1]),V1=O2[A3].match("a=ssrc:"+K2[0]+" mslabel:(.+)"),V1&&(m3=V1[1]),V1=O2[A3].match("a=ssrc:"+K2[0]+" label:(.+)"),V1&&(_3=V1[1]),O2[A3].indexOf("a=ssrc:"+f2[0])===0){O2.splice(A3,1),A3--;continue}if(O2[A3].indexOf("a=ssrc:"+K2[0])===0){O2.splice(A3,1),A3--;continue}}if(O2[A3].length==0){O2.splice(A3,1),A3--;continue}}}}if(K2[0]<0)return F.warn("Couldn't find the video SSRC, simulcasting NOT enabled"),d2;V3<0&&(V3=O2.length),K2[1]=Math.floor(Math.random()*4294967295),K2[2]=Math.floor(Math.random()*4294967295),f2[1]=Math.floor(Math.random()*4294967295),f2[2]=Math.floor(Math.random()*4294967295);for(var A3=0;A3=26&&V<=x?!0:k.extension.isInstalled()}else return!0};var U3={extensionId:"hapfgfdkleiggjjpfpenajgdnfckjpaj",isInstalled:function(){return document.querySelector("#janus-extension-installed")!==null},getScreen:function(x){var m=window.setTimeout(function(){var g=new Error("NavigatorUserMediaError");return g.name='The required Chrome extension is not installed: click here to install it. (NOTE: this will need you to refresh the page)',x(g)},1e3);this.cache[m]=x,window.postMessage({type:"janusGetScreen",id:m},"*")},init:function(){var x={};this.cache=x,window.addEventListener("message",function(m){if(m.origin==window.location.origin)if(m.data.type=="janusGotScreen"&&x[m.data.id]){var g=x[m.data.id];if(delete x[m.data.id],m.data.sourceId===""){var S=new Error("NavigatorUserMediaError");S.name="You cancelled the request for permission, giving up...",g(S)}else g(null,m.data.sourceId)}else m.data.type=="janusGetScreenPending"&&(console.log("clearing ",m.data.id),window.clearTimeout(m.data.id))})}};k.useDefaultDependencies=function(V){var x=V&&V.fetch||fetch,m=V&&V.Promise||Promise,g=V&&V.WebSocket||WebSocket;return{newWebSocket:function(A,P){return new g(A,P)},extension:V&&V.extension||U3,isArray:function(A){return Array.isArray(A)},webRTCAdapter:V&&V.adapter||window.adapter,httpAPICall:function(A,P){var N={method:P.verb,headers:{Accept:"application/json, text/plain, */*"},cache:"no-cache"};P.verb==="POST"&&(N.headers["Content-Type"]="application/json"),P.withCredentials!==void 0&&(N.credentials=P.withCredentials===!0?"include":P.withCredentials?P.withCredentials:"omit"),P.body!==void 0&&(N.body=JSON.stringify(P.body));var r2=x(A,N).catch(function(s2){return m.reject({message:"Probably a network error, is the server down?",error:s2})});if(P.timeout!==void 0){var l2=new m(function(s2,Q){var X=setTimeout(function(){return clearTimeout(X),Q({message:"Request timed out",timeout:P.timeout})},P.timeout)});r2=m.race([r2,l2])}return r2.then(function(s2){if(s2.ok){if(t(P.success)===t(k.noop))return s2.json().then(function(Q){P.success(Q)}).catch(function(Q){return m.reject({message:"Failed to parse response body",error:Q,response:s2})})}else return m.reject({message:"API call failed",response:s2})}).catch(function(s2){t(P.error)===t(k.noop)&&P.error(s2.message||"<< internal error >>",s2)}),r2}}},k.useOldDependencies=function(V){var x=V&&V.jQuery||jQuery,m=V&&V.WebSocket||WebSocket;return{newWebSocket:function(S,A){return new m(S,A)},isArray:function(S){return x.isArray(S)},extension:V&&V.extension||U3,webRTCAdapter:V&&V.adapter||adapter,httpAPICall:function(S,A){var P=A.body!==void 0?{contentType:"application/json",data:JSON.stringify(A.body)}:{},N=A.withCredentials!==void 0?{xhrFields:{withCredentials:A.withCredentials}}:{};return x.ajax(x.extend(P,N,{url:S,type:A.verb,cache:!1,dataType:"json",async:A.async,timeout:A.timeout,success:function(l2){t(A.success)===t(k.noop)&&A.success(l2)},error:function(l2,s2,Q){t(A.error)===t(k.noop)&&A.error(s2,Q)}}))}}},k.noop=function(){},k.dataChanDefaultLabel="JanusDataChannel",k.endOfCandidates=null,k.init=function(V){if(V=V||{},V.callback=typeof V.callback=="function"?V.callback:k.noop,k.initDone===!0)V.callback();else{if((typeof console=="undefined"||typeof console.log=="undefined")&&(console={log:function(){}}),k.trace=k.noop,k.debug=k.noop,k.vdebug=k.noop,k.log=k.noop,k.warn=k.noop,k.error=k.noop,V.debug===!0||V.debug==="all")k.trace=console.trace.bind(console),k.debug=console.debug.bind(console),k.vdebug=console.debug.bind(console),k.log=console.log.bind(console),k.warn=console.warn.bind(console),k.error=console.error.bind(console);else if(Array.isArray(V.debug))for(var x in V.debug){var m=V.debug[x];switch(m){case"trace":k.trace=console.trace.bind(console);break;case"debug":k.debug=console.debug.bind(console);break;case"vdebug":k.vdebug=console.debug.bind(console);break;case"log":k.log=console.log.bind(console);break;case"warn":k.warn=console.warn.bind(console);break;case"error":k.error=console.error.bind(console);break;default:console.error("Unknown debugging option '"+m+"' (supported: 'trace', 'debug', 'vdebug', 'log', warn', 'error')");break}}k.log("Initializing library");var g=V.dependencies||k.useDefaultDependencies();k.isArray=g.isArray,k.webRTCAdapter=g.webRTCAdapter,k.httpAPICall=g.httpAPICall,k.newWebSocket=g.newWebSocket,k.extension=g.extension,k.extension.init(),k.listDevices=function(s2,Q){s2=typeof s2=="function"?s2:k.noop,Q==null&&(Q={audio:!0,video:!0}),k.isGetUserMediaAvailable()?navigator.mediaDevices.getUserMedia(Q).then(function(X){navigator.mediaDevices.enumerateDevices().then(function(D2){k.debug(D2),s2(D2);try{var g2=X.getTracks();for(var M in g2){var L=g2[M];L!=null&&L.stop()}}catch(Y){}})}).catch(function(X){k.error(X),s2([])}):(k.warn("navigator.mediaDevices unavailable"),s2([]))},k.attachMediaStream=function(s2,Q){if(k.webRTCAdapter.browserDetails.browser==="chrome"){var X=k.webRTCAdapter.browserDetails.version;X>=52?s2.srcObject=Q:k.error("Error attaching stream to element")}else s2.srcObject=Q},k.reattachMediaStream=function(s2,Q){if(k.webRTCAdapter.browserDetails.browser==="chrome"){var X=k.webRTCAdapter.browserDetails.version;X>=52?s2.srcObject=Q.srcObject:typeof s2.src!="undefined"?s2.src=Q.src:k.error("Error reattaching stream to element")}else s2.srcObject=Q.srcObject};var S=["iPad","iPhone","iPod"].indexOf(navigator.platform)>=0,A=S?"pagehide":"beforeunload",P=window["on"+A];if(window.addEventListener(A,function(s2){k.log("Closing window");for(var Q in k.sessions)k.sessions[Q]!==null&&k.sessions[Q]!==void 0&&k.sessions[Q].destroyOnUnload&&(k.log("Destroying session "+Q),k.sessions[Q].destroy({asyncRequest:!1,notifyDestroyed:!1}));P&&typeof P=="function"&&P()}),k.safariVp8=!1,k.webRTCAdapter.browserDetails.browser==="safari"&&k.webRTCAdapter.browserDetails.version>=605)if(RTCRtpSender&&RTCRtpSender.getCapabilities&&RTCRtpSender.getCapabilities("video")&&RTCRtpSender.getCapabilities("video").codecs&&RTCRtpSender.getCapabilities("video").codecs.length){for(var x in RTCRtpSender.getCapabilities("video").codecs){var N=RTCRtpSender.getCapabilities("video").codecs[x];if(N&&N.mimeType&&N.mimeType.toLowerCase()==="video/vp8"){k.safariVp8=!0;break}}k.safariVp8?k.log("This version of Safari supports VP8"):k.warn("This version of Safari does NOT support VP8: if you're using a Technology Preview, try enabling the 'WebRTC VP8 codec' setting in the 'Experimental Features' Develop menu")}else{var r2=new RTCPeerConnection({},{});r2.createOffer({offerToReceiveVideo:!0}).then(function(s2){k.safariVp8=s2.sdp.indexOf("VP8")!==-1,k.safariVp8?k.log("This version of Safari supports VP8"):k.warn("This version of Safari does NOT support VP8: if you're using a Technology Preview, try enabling the 'WebRTC VP8 codec' setting in the 'Experimental Features' Develop menu"),r2.close(),r2=null})}if(k.unifiedPlan=!1,k.webRTCAdapter.browserDetails.browser==="firefox"&&k.webRTCAdapter.browserDetails.version>=59)k.unifiedPlan=!0;else if(k.webRTCAdapter.browserDetails.browser==="chrome"&&k.webRTCAdapter.browserDetails.version<72)k.unifiedPlan=!1;else if(typeof RTCRtpTransceiver!="undefined"&&!("currentDirection"in RTCRtpTransceiver.prototype))k.unifiedPlan=!1;else{var l2=new RTCPeerConnection;try{l2.addTransceiver("audio"),k.unifiedPlan=!0}catch(s2){}l2.close()}k.initDone=!0,V.callback()}},k.isWebrtcSupported=function(){return window.RTCPeerConnection!==void 0&&window.RTCPeerConnection!==null},k.isGetUserMediaAvailable=function(){return navigator.mediaDevices!==void 0&&navigator.mediaDevices!==null&&navigator.mediaDevices.getUserMedia!==void 0&&navigator.mediaDevices.getUserMedia!==null},k.randomString=function(V){for(var x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",m="",g=0;g3){C=!1,V.error("Lost connection to the server (is it down?)");return}Q2()}})}}function d3(d2,O2){if(R2=0,!x&&I!==void 0&&I!==null&&O2!==!0&&Q2(),!x&&k.isArray(d2)){for(var j2=0;j2 data channel: "+A0),A0==="open"){if(s3.dataChannel[Y3].pending&&s3.dataChannel[Y3].pending.length>0){k.log("Sending pending messages on <"+Y3+">:",s3.dataChannel[Y3].pending.length);for(var F1 in s3.dataChannel[Y3].pending){var V1=s3.dataChannel[Y3].pending[F1];k.log("Sending string on data channel <"+Y3+">: "+V1),s3.dataChannel[Y3].send(V1)}s3.dataChannel[Y3].pending=[]}f2.ondataopen(Y3)}},_3=function(A3){k.error("Got error on data channel:",A3)};j2?s3.dataChannel[O2]=j2:s3.dataChannel[O2]=s3.pc.createDataChannel(O2,{ordered:!1}),s3.dataChannel[O2].onmessage=i3,s3.dataChannel[O2].onopen=m3,s3.dataChannel[O2].onclose=m3,s3.dataChannel[O2].onerror=_3,s3.dataChannel[O2].pending=[],K2&&s3.dataChannel[O2].pending.push(K2)}function L1(d2,O2){O2=O2||{},O2.success=typeof O2.success=="function"?O2.success:k.noop,O2.error=typeof O2.error=="function"?O2.error:k.noop;var j2=G[d2];if(j2==null||j2.webrtcStuff===null||j2.webrtcStuff===void 0){k.warn("Invalid handle"),O2.error("Invalid handle");return}var K2=j2.webrtcStuff,f2=O2.text;if(f2==null){k.warn("Invalid text"),O2.error("Invalid text");return}var s3=O2.label?O2.label:k.dataChanDefaultLabel;if(!K2.dataChannel[s3]){N1(d2,s3,!1,f2),O2.success();return}if(K2.dataChannel[s3].readyState!=="open"){K2.dataChannel[s3].pending.push(f2),O2.success();return}k.log("Sending string on data channel <"+s3+">: "+f2),K2.dataChannel[s3].send(f2),O2.success()}function G1(d2,O2){O2=O2||{},O2.success=typeof O2.success=="function"?O2.success:k.noop,O2.error=typeof O2.error=="function"?O2.error:k.noop;var j2=G[d2];if(j2==null||j2.webrtcStuff===null||j2.webrtcStuff===void 0){k.warn("Invalid handle"),O2.error("Invalid handle");return}var K2=j2.webrtcStuff;if(K2.dtmfSender===null||K2.dtmfSender===void 0){if(K2.pc!==void 0&&K2.pc!==null){var f2=K2.pc.getSenders(),s3=f2.find(function(A3){return A3.track&&A3.track.kind==="audio"});if(!s3){k.warn("Invalid DTMF configuration (no audio track)"),O2.error("Invalid DTMF configuration (no audio track)");return}K2.dtmfSender=s3.dtmf,K2.dtmfSender&&(k.log("Created DTMF Sender"),K2.dtmfSender.ontonechange=function(A3){k.debug("Sent DTMF tone: "+A3.tone)})}if(K2.dtmfSender===null||K2.dtmfSender===void 0){k.warn("Invalid DTMF configuration"),O2.error("Invalid DTMF configuration");return}}var i3=O2.dtmf;if(i3==null){k.warn("Invalid DTMF parameters"),O2.error("Invalid DTMF parameters");return}var m3=i3.tones;if(m3==null){k.warn("Invalid DTMF string"),O2.error("Invalid DTMF string");return}var _3=i3.duration;_3==null&&(_3=500);var V3=i3.gap;V3==null&&(V3=50),k.debug("Sending DTMF string "+m3+" (duration "+_3+"ms, gap "+V3+"ms)"),K2.dtmfSender.insertDTMF(m3,_3,V3),O2.success()}function y0(d2,O2){O2=O2||{},O2.success=typeof O2.success=="function"?O2.success:k.noop,O2.error=typeof O2.error=="function"?O2.error:k.noop;var j2=!0;O2.asyncRequest!==void 0&&O2.asyncRequest!==null&&(j2=O2.asyncRequest===!0);var K2=!0;O2.noRequest!==void 0&&O2.noRequest!==null&&(K2=O2.noRequest===!0),k.log("Destroying handle "+d2+" (async="+j2+")"),et(d2);var f2=G[d2];if(f2==null||f2.detached){delete G[d2],O2.success();return}if(K2){delete G[d2],O2.success();return}if(!C){k.warn("Is the server down? (connected=false)"),O2.error("Is the server down? (connected=false)");return}var s3={rtcgw:"detach",transaction:k.randomString(12)};if(f2.token!==null&&f2.token!==void 0&&(s3.token=f2.token),M!=null&&(s3.apisecret=M),x){s3.session_id=I,s3.handle_id=d2,m.send(JSON.stringify(s3)),delete G[d2],O2.success();return}k.httpAPICall(N+"/"+I+"/"+d2,{verb:"POST",async:j2,withCredentials:X,body:s3,success:function(m3){k.log("Destroyed handle:"),k.debug(m3),m3.rtcgw!=="success"&&k.error("Ooops: "+m3.error.code+" "+m3.error.reason),delete G[d2],O2.success()},error:function(m3,_3){k.error(m3+":",_3),delete G[d2],O2.success()}})}function B2(d2,O2,j2,K2,f2){var s3=G[d2];if(s3==null||s3.webrtcStuff===null||s3.webrtcStuff===void 0){k.warn("Invalid handle"),K2.error("Invalid handle");return}var i3=s3.webrtcStuff;k.debug("streamsDone:",f2),f2&&(k.debug(" -- Audio tracks:",f2.getAudioTracks()),k.debug(" -- Video tracks:",f2.getVideoTracks()));var m3=!1;if(!i3.myStream||!j2.update||i3.streamExternal)i3.myStream=f2,m3=!0;else{if((!j2.update&&b0(j2)||j2.update&&(j2.addAudio||j2.replaceAudio))&&f2.getAudioTracks()&&f2.getAudioTracks().length)if(i3.myStream.addTrack(f2.getAudioTracks()[0]),k.unifiedPlan){k.log((j2.replaceAudio?"Replacing":"Adding")+" audio track:",f2.getAudioTracks()[0]);var _3=null,V3=i3.pc.getTransceivers();if(V3&&V3.length>0)for(var A3 in V3){var Y3=V3[A3];if(Y3.sender&&Y3.sender.track&&Y3.sender.track.kind==="audio"||Y3.receiver&&Y3.receiver.track&&Y3.receiver.track.kind==="audio"){_3=Y3;break}}_3&&_3.sender?_3.sender.replaceTrack(f2.getAudioTracks()[0]):i3.pc.addTrack(f2.getAudioTracks()[0],f2)}else k.log((j2.replaceAudio?"Replacing":"Adding")+" audio track:",f2.getAudioTracks()[0]),i3.pc.addTrack(f2.getAudioTracks()[0],f2);if((!j2.update&&h0(j2)||j2.update&&(j2.addVideo||j2.replaceVideo))&&f2.getVideoTracks()&&f2.getVideoTracks().length)if(i3.myStream.addTrack(f2.getVideoTracks()[0]),k.unifiedPlan){k.log((j2.replaceVideo?"Replacing":"Adding")+" video track:",f2.getVideoTracks()[0]);var A0=null,V3=i3.pc.getTransceivers();if(V3&&V3.length>0)for(var A3 in V3){var Y3=V3[A3];if(Y3.sender&&Y3.sender.track&&Y3.sender.track.kind==="video"||Y3.receiver&&Y3.receiver.track&&Y3.receiver.track.kind==="video"){A0=Y3;break}}A0&&A0.sender?A0.sender.replaceTrack(f2.getVideoTracks()[0]):i3.pc.addTrack(f2.getVideoTracks()[0],f2)}else k.log((j2.replaceVideo?"Replacing":"Adding")+" video track:",f2.getVideoTracks()[0]),i3.pc.addTrack(f2.getVideoTracks()[0],f2)}if(!i3.pc){var F1={iceServers:r2,iceTransportPolicy:l2,bundlePolicy:s2};k.webRTCAdapter.browserDetails.browser==="chrome"&&(F1.sdpSemantics=k.webRTCAdapter.browserDetails.version<72?"plan-b":"unified-plan");var V1={optional:[{DtlsSrtpKeyAgreement:!0}]};if(Q===!0&&V1.optional.push({googIPv6:!0}),K2.rtcConstraints&&t(K2.rtcConstraints)==="object"){k.debug("Adding custom PeerConnection constraints:",K2.rtcConstraints);for(var A3 in K2.rtcConstraints)V1.optional.push(K2.rtcConstraints[A3])}k.webRTCAdapter.browserDetails.browser==="edge"&&(F1.bundlePolicy="max-bundle"),k.log("Creating PeerConnection"),k.debug(V1),i3.pc=new RTCPeerConnection(F1,V1),k.debug(i3.pc),i3.pc.getStats&&(i3.volume={},i3.bitrate.value="0 kbits/sec"),k.log("Preparing local SDP and gathering candidates (trickle="+i3.trickle+")"),i3.pc.oniceconnectionstatechange=function(W1){i3.pc&&s3.iceState(i3.pc.iceConnectionState)},i3.pc.onicecandidate=function(W1){if(W1.candidate==null||k.webRTCAdapter.browserDetails.browser==="edge"&&W1.candidate.candidate.indexOf("endOfCandidates")>0)k.log("End of candidates."),i3.iceDone=!0,i3.trickle===!0?x1(d2,{completed:!0}):j1(d2,K2);else{var k0={candidate:W1.candidate.candidate,sdpMid:W1.candidate.sdpMid,sdpMLineIndex:W1.candidate.sdpMLineIndex};i3.trickle===!0&&x1(d2,k0)}},i3.pc.ontrack=function(W1){k.log("Handling Remote Track"),k.debug(W1),W1.streams&&(i3.remoteStream=W1.streams[0],s3.onremotestream(i3.remoteStream),!W1.track.onended&&(k.log("Adding onended callback to track:",W1.track),W1.track.onended=function(k0){k.log("Remote track muted/removed:",k0),i3.remoteStream&&(i3.remoteStream.removeTrack(k0.target),s3.onremotestream(i3.remoteStream))},W1.track.onmute=W1.track.onended,W1.track.onunmute=function(k0){k.log("Remote track flowing again:",k0);try{i3.remoteStream.addTrack(k0.target),s3.onremotestream(i3.remoteStream)}catch(ln){k.error(ln)}}))}}if(m3&&f2!==null&&f2!==void 0){k.log("Adding local stream");var a0=K2.simulcast2===!0;f2.getTracks().forEach(function(W1){if(k.log("Adding local track:",W1),!a0)i3.pc.addTrack(W1,f2);else if(W1.kind==="audio")i3.pc.addTrack(W1,f2);else{k.log("Enabling rid-based simulcasting:",W1);var k0=O(K2.simulcastMaxBitrates);i3.pc.addTransceiver(W1,{direction:"sendrecv",streams:[f2],sendEncodings:[{rid:"h",active:!0,maxBitrate:k0.high},{rid:"m",active:!0,maxBitrate:k0.medium,scaleResolutionDownBy:2},{rid:"l",active:!0,maxBitrate:k0.low,scaleResolutionDownBy:4}]})}})}Z1(j2)&&!i3.dataChannel[k.dataChanDefaultLabel]&&(k.log("Creating data channel"),N1(d2,k.dataChanDefaultLabel,!1),i3.pc.ondatachannel=function(W1){k.log("Data channel created by Janus:",W1),N1(d2,W1.channel.label,W1.channel)}),i3.myStream&&s3.onlocalstream(i3.myStream),O2==null?n1(d2,j2,K2):i3.pc.setRemoteDescription(O2).then(function(){if(k.log("Remote description accepted!"),i3.remoteSdp=O2.sdp,i3.candidates&&i3.candidates.length>0){for(var W1=0;W1=26&&Mi<=g8?(a0={video:{mandatory:{googLeakyBucket:!0,maxWidth:window.screen.width,maxHeight:window.screen.height,minFrameRate:f2.screenshareFrameRate,maxFrameRate:f2.screenshareFrameRate,chromeMediaSource:"screen"}},audio:b0(f2)&&!f2.keepAudio},d5(a0,ei)):k.extension.getScreen(function(we,oe){if(we)return s3.consentDialog(!1),j2.error(we);a0={audio:!1,video:{mandatory:{chromeMediaSource:"desktop",maxWidth:window.screen.width,maxHeight:window.screen.height,minFrameRate:f2.screenshareFrameRate,maxFrameRate:f2.screenshareFrameRate},optional:[{googLeakyBucket:!0},{googTemporalLayeredScreencast:!0}]}},a0.video.mandatory.chromeMediaSourceId=oe,d5(a0,ei,b0(f2)&&!f2.keepAudio)})}else if(k.webRTCAdapter.browserDetails.browser==="firefox")if(k.webRTCAdapter.browserDetails.version>=33)a0={video:{mozMediaSource:f2.video,mediaSource:f2.video},audio:b0(f2)&&!f2.keepAudio},d5(a0,function(we,oe){if(ei(we,oe),!we)var Ut=oe.currentTime,un=window.setInterval(function(){oe||window.clearInterval(un),oe.currentTime==Ut&&(window.clearInterval(un),oe.onended&&oe.onended()),Ut=oe.currentTime},500)});else{var m9=new Error("NavigatorUserMediaError");m9.name="Your version of Firefox does not support screen sharing, please install Firefox 33 (or more recent versions)",s3.consentDialog(!1),j2.error(m9);return}return}}(f2==null||f2.video!=="screen")&&navigator.mediaDevices.enumerateDevices().then(function(we){var oe=we.some(function(cn){return cn.kind==="audioinput"}),Ut=A1(f2)||we.some(function(cn){return cn.kind==="videoinput"}),un=b0(f2),s6=h0(f2),Ei=Te(f2),Pi=B0(f2);if(un||s6||Ei||Pi){var g9=un?oe:!1,v9=s6?Ut:!1;if(!g9&&!v9)return s3.consentDialog(!1),j2.error("No capture device found"),!1;if(!g9&&Ei)return s3.consentDialog(!1),j2.error("Audio capture is required, but no capture device found"),!1;if(!v9&&Pi)return s3.consentDialog(!1),j2.error("Video capture is required, but no capture device found"),!1}var h5={audio:oe&&!f2.keepAudio?W1:!1,video:Ut&&!f2.keepVideo?k0:!1};k.debug("getUserMedia constraints",h5),!h5.audio&&!h5.video?(s3.consentDialog(!1),B2(d2,K2,f2,j2,Y3)):navigator.mediaDevices.getUserMedia(h5).then(function(cn){s3.consentDialog(!1),B2(d2,K2,f2,j2,cn)}).catch(function(cn){s3.consentDialog(!1),j2.error({code:cn.code,name:cn.name,message:cn.message})})}).catch(function(we){s3.consentDialog(!1),j2.error("enumerateDevices error",we)})}else B2(d2,K2,f2,j2)}function R3(d2,O2){O2=O2||{},O2.success=typeof O2.success=="function"?O2.success:k.noop,O2.error=typeof O2.error=="function"?O2.error:Dt;var j2=O2.jsep,K2=G[d2];if(K2==null||K2.webrtcStuff===null||K2.webrtcStuff===void 0){k.warn("Invalid handle"),O2.error("Invalid handle");return}var f2=K2.webrtcStuff;if(j2!=null){if(f2.pc===null){k.warn("Wait, no PeerConnection?? if this is an answer, use createAnswer and not handleRemoteJsep"),O2.error("No PeerConnection: if this is an answer, use createAnswer and not handleRemoteJsep");return}f2.pc.setRemoteDescription(j2).then(function(){if(k.log("Remote description accepted!"),f2.remoteSdp=j2.sdp,f2.candidates&&f2.candidates.length>0){for(var s3=0;s30)for(var A3 in V3){var Y3=V3[A3];if(Y3.sender&&Y3.sender.track&&Y3.sender.track.kind==="audio"||Y3.receiver&&Y3.receiver.track&&Y3.receiver.track.kind==="audio"){m3||(m3=Y3);continue}if(Y3.sender&&Y3.sender.track&&Y3.sender.track.kind==="video"||Y3.receiver&&Y3.receiver.track&&Y3.receiver.track.kind==="video"){_3||(_3=Y3);continue}}var A0=b0(O2),F1=yt(O2);!A0&&!F1?O2.removeAudio&&m3&&(m3.setDirection?m3.setDirection("inactive"):m3.direction="inactive",k.log("Setting audio transceiver to inactive:",m3)):A0&&F1?m3&&(m3.setDirection?m3.setDirection("sendrecv"):m3.direction="sendrecv",k.log("Setting audio transceiver to sendrecv:",m3)):A0&&!F1?m3&&(m3.setDirection?m3.setDirection("sendonly"):m3.direction="sendonly",k.log("Setting audio transceiver to sendonly:",m3)):!A0&&F1&&(m3?(m3.setDirection?m3.setDirection("recvonly"):m3.direction="recvonly",k.log("Setting audio transceiver to recvonly:",m3)):(m3=f2.pc.addTransceiver("audio",{direction:"recvonly"}),k.log("Adding recvonly audio transceiver:",m3)));var V1=h0(O2),a0=k1(O2);!V1&&!a0?O2.removeVideo&&_3&&(_3.setDirection?_3.setDirection("inactive"):_3.direction="inactive",k.log("Setting video transceiver to inactive:",_3)):V1&&a0?_3&&(_3.setDirection?_3.setDirection("sendrecv"):_3.direction="sendrecv",k.log("Setting video transceiver to sendrecv:",_3)):V1&&!a0?_3&&(_3.setDirection?_3.setDirection("sendonly"):_3.direction="sendonly",k.log("Setting video transceiver to sendonly:",_3)):!V1&&a0&&(_3?(_3.setDirection?_3.setDirection("recvonly"):_3.direction="recvonly",k.log("Setting video transceiver to recvonly:",_3)):(_3=f2.pc.addTransceiver("video",{direction:"recvonly"}),k.log("Adding recvonly video transceiver:",_3)))}else i3.offerToReceiveAudio=yt(O2),i3.offerToReceiveVideo=k1(O2);var W1=j2.iceRestart===!0;W1&&(i3.iceRestart=!0),k.debug(i3);var k0=h0(O2);if(k0&&s3&&k.webRTCAdapter.browserDetails.browser==="firefox"){k.log("Enabling Simulcasting for Firefox (RID)");var ln=f2.pc.getSenders().find(function(Q0){return Q0.track.kind=="video"});if(ln){var Zt=ln.getParameters();Zt||(Zt={});var f0=O(j2.simulcastMaxBitrates);Zt.encodings=[{rid:"h",active:!0,maxBitrate:f0.high},{rid:"m",active:!0,maxBitrate:f0.medium,scaleResolutionDownBy:2},{rid:"l",active:!0,maxBitrate:f0.low,scaleResolutionDownBy:4}],ln.setParameters(Zt)}}f2.pc.createOffer(i3).then(function(Q0){k.debug(Q0);var ei={type:Q0.type,sdp:Q0.sdp};if(j2.customizeSdp(ei),Q0.sdp=ei.sdp,k.log("Setting local description"),k0&&s3&&(k.webRTCAdapter.browserDetails.browser==="chrome"||k.webRTCAdapter.browserDetails.browser==="safari"?(k.log("Enabling Simulcasting for Chrome (SDP munging)"),Q0.sdp=At(Q0.sdp)):k.webRTCAdapter.browserDetails.browser!=="firefox"&&k.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring")),f2.mySdp=Q0.sdp,f2.pc.setLocalDescription(Q0).catch(j2.error),f2.mediaConstraints=i3,!f2.iceDone&&!f2.trickle){k.log("Waiting for all candidates...");return}k.log("Offer ready"),k.debug(j2),j2.success(Q0)},j2.error)}function v1(d2,O2,j2){j2=j2||{},j2.success=typeof j2.success=="function"?j2.success:k.noop,j2.error=typeof j2.error=="function"?j2.error:k.noop,j2.customizeSdp=typeof j2.customizeSdp=="function"?j2.customizeSdp:k.noop;var K2=G[d2];if(K2==null||K2.webrtcStuff===null||K2.webrtcStuff===void 0){k.warn("Invalid handle"),j2.error("Invalid handle");return}var f2=K2.webrtcStuff,s3=j2.simulcast===!0;s3?k.log("Creating answer (iceDone="+f2.iceDone+", simulcast="+s3+")"):k.log("Creating answer (iceDone="+f2.iceDone+")");var i3=null;if(k.unifiedPlan){i3={};var m3=null,_3=null,V3=f2.pc.getTransceivers();if(V3&&V3.length>0)for(var A3 in V3){var Y3=V3[A3];if(Y3.sender&&Y3.sender.track&&Y3.sender.track.kind==="audio"||Y3.receiver&&Y3.receiver.track&&Y3.receiver.track.kind==="audio"){m3||(m3=Y3);continue}if(Y3.sender&&Y3.sender.track&&Y3.sender.track.kind==="video"||Y3.receiver&&Y3.receiver.track&&Y3.receiver.track.kind==="video"){_3||(_3=Y3);continue}}var A0=b0(O2),F1=yt(O2);if(!A0&&!F1){if(O2.removeAudio&&m3)try{m3.setDirection?m3.setDirection("inactive"):m3.direction="inactive",k.log("Setting audio transceiver to inactive:",m3)}catch(f0){k.error(f0)}}else if(A0&&F1){if(m3)try{m3.setDirection?m3.setDirection("sendrecv"):m3.direction="sendrecv",k.log("Setting audio transceiver to sendrecv:",m3)}catch(f0){k.error(f0)}}else if(A0&&!F1)try{m3&&(m3.setDirection?m3.setDirection("sendonly"):m3.direction="sendonly",k.log("Setting audio transceiver to sendonly:",m3))}catch(f0){k.error(f0)}else if(!A0&&F1)if(m3)try{m3.setDirection?m3.setDirection("recvonly"):m3.direction="recvonly",k.log("Setting audio transceiver to recvonly:",m3)}catch(f0){k.error(f0)}else m3=f2.pc.addTransceiver("audio",{direction:"recvonly"}),k.log("Adding recvonly audio transceiver:",m3);var V1=h0(O2),a0=k1(O2);if(!V1&&!a0){if(O2.removeVideo&&_3)try{_3.setDirection?_3.setDirection("inactive"):_3.direction="inactive",k.log("Setting video transceiver to inactive:",_3)}catch(f0){k.error(f0)}}else if(V1&&a0){if(_3)try{_3.setDirection?_3.setDirection("sendrecv"):_3.direction="sendrecv",k.log("Setting video transceiver to sendrecv:",_3)}catch(f0){k.error(f0)}}else if(V1&&!a0){if(_3)try{_3.setDirection?_3.setDirection("sendonly"):_3.direction="sendonly",k.log("Setting video transceiver to sendonly:",_3)}catch(f0){k.error(f0)}}else if(!V1&&a0)if(_3)try{_3.setDirection?_3.setDirection("recvonly"):_3.direction="recvonly",k.log("Setting video transceiver to recvonly:",_3)}catch(f0){k.error(f0)}else _3=f2.pc.addTransceiver("video",{direction:"recvonly"}),k.log("Adding recvonly video transceiver:",_3)}else k.webRTCAdapter.browserDetails.browser=="firefox"||k.webRTCAdapter.browserDetails.browser=="edge"?i3={offerToReceiveAudio:yt(O2),offerToReceiveVideo:k1(O2)}:i3={mandatory:{OfferToReceiveAudio:yt(O2),OfferToReceiveVideo:k1(O2)}};k.debug(i3);var W1=h0(O2);if(W1&&s3&&k.webRTCAdapter.browserDetails.browser==="firefox"){k.log("Enabling Simulcasting for Firefox (RID)");var k0=f2.pc.getSenders()[1];k.log(k0);var ln=k0.getParameters();k.log(ln);var Zt=O(j2.simulcastMaxBitrates);k0.setParameters({encodings:[{rid:"high",active:!0,priority:"high",maxBitrate:Zt.high},{rid:"medium",active:!0,priority:"medium",maxBitrate:Zt.medium},{rid:"low",active:!0,priority:"low",maxBitrate:Zt.low}]})}f2.pc.createAnswer(i3).then(function(f0){k.debug(f0);var Q0={type:f0.type,sdp:f0.sdp};if(j2.customizeSdp(Q0),f0.sdp=Q0.sdp,k.log("Setting local description"),W1&&s3&&(k.webRTCAdapter.browserDetails.browser==="chrome"?k.warn("simulcast=true, but this is an answer, and video breaks in Chrome if we enable it"):k.webRTCAdapter.browserDetails.browser!=="firefox"&&k.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring")),f2.mySdp=f0.sdp,f2.pc.setLocalDescription(f0).catch(j2.error),f2.mediaConstraints=i3,!f2.iceDone&&!f2.trickle){k.log("Waiting for all candidates...");return}j2.success(f0)},j2.error)}function j1(d2,O2){O2=O2||{},O2.success=typeof O2.success=="function"?O2.success:k.noop,O2.error=typeof O2.error=="function"?O2.error:k.noop;var j2=G[d2];if(j2==null||j2.webrtcStuff===null||j2.webrtcStuff===void 0){k.warn("Invalid handle, not sending anything");return}var K2=j2.webrtcStuff;if(k.log("Sending offer/answer SDP..."),K2.mySdp===null||K2.mySdp===void 0){k.warn("Local SDP instance is invalid, not sending anything...");return}K2.mySdp={type:K2.pc.localDescription.type,sdp:K2.pc.localDescription.sdp},K2.trickle===!1&&(K2.mySdp.trickle=!1),k.debug(O2),K2.sdpSent=!0,O2.success(K2.mySdp)}function U1(d2,O2){var j2=G[d2];if(j2==null||j2.webrtcStuff===null||j2.webrtcStuff===void 0)return k.warn("Invalid handle"),0;var K2=O2?"remote":"local",f2=j2.webrtcStuff;return f2.volume[K2]||(f2.volume[K2]={value:0}),f2.pc.getStats&&k.webRTCAdapter.browserDetails.browser==="chrome"?O2&&(f2.remoteStream===null||f2.remoteStream===void 0)?(k.warn("Remote stream unavailable"),0):!O2&&(f2.myStream===null||f2.myStream===void 0)?(k.warn("Local stream unavailable"),0):f2.volume[K2].timer===null||f2.volume[K2].timer===void 0?(k.log("Starting "+K2+" volume monitor"),f2.volume[K2].timer=setInterval(function(){f2.pc.getStats(function(s3){for(var i3=s3.result(),m3=0;m3-1)&&f2.type==="inbound-rtp"&&f2.id.indexOf("rtcp")<0||f2.type=="ssrc"&&f2.bytesReceived&&(f2.googCodecName==="VP8"||f2.googCodecName===""))&&(s3=!0),s3)if(j2.bitrate.bsnow=f2.bytesReceived,j2.bitrate.tsnow=f2.timestamp,j2.bitrate.bsbefore===null||j2.bitrate.tsbefore===null)j2.bitrate.bsbefore=j2.bitrate.bsnow,j2.bitrate.tsbefore=j2.bitrate.tsnow;else{var i3=j2.bitrate.tsnow-j2.bitrate.tsbefore;k.webRTCAdapter.browserDetails.browser=="safari"&&(i3=i3/1e3);var m3=Math.round((j2.bitrate.bsnow-j2.bitrate.bsbefore)*8/i3);k.webRTCAdapter.browserDetails.browser==="safari"&&(m3=parseInt(m3/1e3)),j2.bitrate.value=m3+" kbits/sec",j2.bitrate.bsbefore=j2.bitrate.bsnow,j2.bitrate.tsbefore=j2.bitrate.tsnow}}})})},1e3),"0 kbits/sec"):j2.bitrate.value:(k.warn("Getting the video bitrate unsupported by browser"),"Feature unsupported by browser")}function Dt(d2){k.error("WebRTC error:",d2)}function et(d2,O2){k.log("Cleaning WebRTC stuff");var j2=G[d2];if(j2!=null){var K2=j2.webrtcStuff;if(K2!=null){if(O2===!0){var f2={rtcgw:"hangup",transaction:k.randomString(12)};j2.token!==null&&j2.token!==void 0&&(f2.token=j2.token),M!=null&&(f2.apisecret=M),k.debug("Sending hangup request (handle="+d2+"):"),k.debug(f2),x?(f2.session_id=I,f2.handle_id=d2,m.send(JSON.stringify(f2))):k.httpAPICall(N+"/"+I+"/"+d2,{verb:"POST",withCredentials:X,body:f2})}K2.remoteStream=null,K2.volume&&(K2.volume.local&&K2.volume.local.timer&&clearInterval(K2.volume.local.timer),K2.volume.remote&&K2.volume.remote.timer&&clearInterval(K2.volume.remote.timer)),K2.volume={},K2.bitrate.timer&&clearInterval(K2.bitrate.timer),K2.bitrate.timer=null,K2.bitrate.bsnow=null,K2.bitrate.bsbefore=null,K2.bitrate.tsnow=null,K2.bitrate.tsbefore=null,K2.bitrate.value=null;try{if(!K2.streamExternal&&K2.myStream!==null&&K2.myStream!==void 0){k.log("Stopping local stream tracks");var s3=K2.myStream.getTracks();for(var i3 in s3){var m3=s3[i3];k.log(m3),m3!=null&&m3.stop()}}}catch(_3){}K2.streamExternal=!1,K2.myStream=null;try{K2.pc.close()}catch(_3){}K2.pc=null,K2.candidates=null,K2.mySdp=null,K2.remoteSdp=null,K2.iceDone=!1,K2.dataChannel={},K2.dtmfSender=null}j2.oncleanup()}}function At(d2){for(var O2=d2.split(`\r
+`),j2=!1,K2=[-1],f2=[-1],s3=null,i3=null,m3=null,_3=null,V3=-1,A3=0;A3-1){V3=A3;break}continue}if(j2){var F1=O2[A3].match(/a=ssrc-group:FID (\d+) (\d+)/);if(F1){K2[0]=F1[1],f2[0]=F1[2],O2.splice(A3,1),A3--;continue}if(K2[0]){var V1=O2[A3].match("a=ssrc:"+K2[0]+" cname:(.+)");if(V1&&(s3=V1[1]),V1=O2[A3].match("a=ssrc:"+K2[0]+" msid:(.+)"),V1&&(i3=V1[1]),V1=O2[A3].match("a=ssrc:"+K2[0]+" mslabel:(.+)"),V1&&(m3=V1[1]),V1=O2[A3].match("a=ssrc:"+K2[0]+" label:(.+)"),V1&&(_3=V1[1]),O2[A3].indexOf("a=ssrc:"+f2[0])===0){O2.splice(A3,1),A3--;continue}if(O2[A3].indexOf("a=ssrc:"+K2[0])===0){O2.splice(A3,1),A3--;continue}}if(O2[A3].length==0){O2.splice(A3,1),A3--;continue}}}if(K2[0]<0){V3=-1,j2=!1;for(var A3=0;A3-1){V3=A3;break}continue}if(j2){if(K2[0]<0){var a0=O2[A3].match(/a=ssrc:(\d+)/);if(a0){K2[0]=a0[1],O2.splice(A3,1),A3--;continue}}else{var V1=O2[A3].match("a=ssrc:"+K2[0]+" cname:(.+)");if(V1&&(s3=V1[1]),V1=O2[A3].match("a=ssrc:"+K2[0]+" msid:(.+)"),V1&&(i3=V1[1]),V1=O2[A3].match("a=ssrc:"+K2[0]+" mslabel:(.+)"),V1&&(m3=V1[1]),V1=O2[A3].match("a=ssrc:"+K2[0]+" label:(.+)"),V1&&(_3=V1[1]),O2[A3].indexOf("a=ssrc:"+f2[0])===0){O2.splice(A3,1),A3--;continue}if(O2[A3].indexOf("a=ssrc:"+K2[0])===0){O2.splice(A3,1),A3--;continue}}if(O2[A3].length==0){O2.splice(A3,1),A3--;continue}}}}if(K2[0]<0)return k.warn("Couldn't find the video SSRC, simulcasting NOT enabled"),d2;V3<0&&(V3=O2.length),K2[1]=Math.floor(Math.random()*4294967295),K2[2]=Math.floor(Math.random()*4294967295),f2[1]=Math.floor(Math.random()*4294967295),f2[2]=Math.floor(Math.random()*4294967295);for(var A3=0;A3
@@ -692,7 +692,7 @@ t=0 0\r
- `,document.getElementById("mobile-ez-ptz-item")||S.appendChild(L),f(S,document.getElementById("".concat(this.jSPlugin.id,"-wrap"))),document.getElementById("mobile-ez-ptz-item").ontouchstart=function(r2){r2.preventDefault(),console.log("触摸开始"),m._handlePtzTouch(r2,"start")},document.getElementById("mobile-ez-ptz-item").ontouchend=function(r2){r2.preventDefault(),console.log("触摸结束",r2),m._handlePtzTouch(r2,"stop")},document.getElementById("mobile-ez-ptz-item").onmousedown=function(r2){r2.preventDefault(),console.log("触摸开始"),m._handlePtzTouch(r2,"start")},document.getElementById("mobile-ez-ptz-item").onmouseup=function(r2){r2.preventDefault(),console.log("触摸结束",r2),m._handlePtzTouch(r2,"stop")}}return a(R,[{key:"show",value:function(){document.getElementById("mobile-ez-ptz-item").style="display: inline-block"}},{key:"hide",value:function(){document.getElementById("mobile-ez-ptz-item").style="display: none"}},{key:"_handlePtzTouch",value:function(m,g){var S=document.getElementById("mobile-ez-ptz-item").getBoundingClientRect(),x=S.left+130,E=S.top+130,L=m.x||m.changedTouches[0].clientX,r2=m.y||m.changedTouches[0].clientY,l2=L-x,s2=r2-E,Q=0,X=this.jSPlugin.env.domain+"/api/lapp/device/ptz/start";Math.abs(l2)>Math.abs(s2)?l2>0?(Q=3,document.getElementsByClassName("mobile-ez-ptz-icon")[3].className=document.getElementsByClassName("mobile-ez-ptz-icon")[3].className.replace("default","active")):(Q=2,document.getElementsByClassName("mobile-ez-ptz-icon")[1].className=document.getElementsByClassName("mobile-ez-ptz-icon")[1].className.replace("default","active")):s2>0?(Q=1,document.getElementsByClassName("mobile-ez-ptz-icon")[2].className=document.getElementsByClassName("mobile-ez-ptz-icon")[2].className.replace("default","active")):(Q=0,document.getElementsByClassName("mobile-ez-ptz-icon")[0].className=document.getElementsByClassName("mobile-ez-ptz-icon")[0].className.replace("default","active")),document.getElementById("mobile-ez-ptz-item").style="background-image:linear-gradient(".concat(Q===0?180:Q===1?0:Q===2?90:270,"deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)"),g==="stop"&&(X=this.jSPlugin.env.domain+"/api/lapp/device/ptz/stop",document.getElementById("mobile-ez-ptz-item").style="",document.getElementsByClassName("mobile-ez-ptz-icon")[3].className=document.getElementsByClassName("mobile-ez-ptz-icon")[3].className.replace("active","default"),document.getElementsByClassName("mobile-ez-ptz-icon")[1].className=document.getElementsByClassName("mobile-ez-ptz-icon")[1].className.replace("active","default"),document.getElementsByClassName("mobile-ez-ptz-icon")[2].className=document.getElementsByClassName("mobile-ez-ptz-icon")[2].className.replace("active","default"),document.getElementsByClassName("mobile-ez-ptz-icon")[0].className=document.getElementsByClassName("mobile-ez-ptz-icon")[0].className.replace("active","default"));var D2=new FormData;D2.append("deviceSerial",P(this.jSPlugin.url).deviceSerial),D2.append("channelNo",P(this.jSPlugin.url).channelNo),D2.append("speed",1),D2.append("direction",Q),D2.append("accessToken",this.jSPlugin.accessToken),fetch(X,{method:"POST",body:D2}).then(function(g2){return g2.json()}).then(function(g2){g2.code==200||(g2.code==60005||g2.code==60002||g2.code==60003||g2.code==60004)&&(document.getElementById("mobile-ez-ptz-item").style="background-image:linear-gradient(".concat(Q===0?180:Q===1?0:Q===2?90:270,"deg, #f45656 0%, rgba(100,143,252,0.00) 50%)"))}).catch(function(g2){console.log("云台调用异常",g2)})}}]),R}(),Y2=0,t2="成功",i2={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-0",iconId:"deviceID",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-1",iconId:"deviceName",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-2",iconId:"cloudRec",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-3",iconId:"rec",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"}]},footer:{color:"#FFFFFF",backgroundColor:"rgb(0 0 0 / 0%)",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-0",iconId:"play",part:"left",defaultActive:1,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-1",iconId:"capturePicture",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-2",iconId:"sound",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-3",iconId:"pantile",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-4",iconId:"recordvideo",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-5",iconId:"talk",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-6",iconId:"hd",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-7",iconId:"webExpend",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-8",iconId:"expend",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"}]}},_2={retcode:Y2,msg:t2,data:i2},V2={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:0},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:1},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:0},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},s3={data:V2},D3={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:1},{iconId:"rec",part:"right",defaultActive:0,isrender:1}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:0},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:0},{iconId:"talk",part:"left",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"speed",part:"right",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},S3={data:D3},m1={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-0",iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-1",iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-2",iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-3",iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:1},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"speed",part:"right",defaultActive:0,isrender:0},{iconId:"hd",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:1},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},b1={data:m1},g1={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-0",iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-1",iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-2",iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-3",iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},a1={data:g1},n1={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:0},{iconId:"deviceName",part:"left",defaultActive:0,isrender:0},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:0},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:0},{iconId:"sound",part:"left",defaultActive:1,isrender:0},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:0},{iconId:"talk",part:"left",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:0},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:0}]}},C1={data:n1},H2={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:0},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:0},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},j3={data:H2},s1={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:1},{iconId:"rec",part:"right",defaultActive:0,isrender:1}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"speed",part:"right",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:1},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},E1={data:s1},U2=[{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"pcLive",themeIntro:"PC直播全量版",themeName:"PC直播全量版",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:b1.data.header,footer:b1.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"security",themeIntro:"PC直播安防版",themeName:"PC直播安防版",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:a1.data.header,footer:a1.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"voice",themeIntro:"PC直播语音版",themeName:"PC直播语音版",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:j3.data.header,footer:j3.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"simple",themeIntro:"PC直播极简版",themeName:"PC直播极简版",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"",header:C1.data.header,footer:C1.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"pcRec",themeIntro:"PC回放全量版",themeName:"PC回放全量版",themeType:"webRec",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:E1.data.header,footer:E1.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"mobileLive",themeIntro:"Mobile直播全量版",themeName:"Mobile直播全量版",themeType:"mobileLive",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_GmAL5IhAABZs1vUK0s564.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:s3.data.header,footer:s3.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"mobileRec",themeIntro:"Mobile回放全量版",themeName:"Mobile回放全量版",themeType:"mobileRec",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_GmAL5IhAABZs1vUK0s564.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:S3.data.header,footer:S3.data.footer}],q3=function(){function R(N){var m=this;i(this,R),this.jSPlugin=N,this.enableZoom=!1,this.isMouseDown=!1,this.videoWidth=1920,this.videoHeight=1080,this.currentScale=1,this.currentPosition={x:0,y:0,xPercent:.1,yPercent:.1,xCurrentVideo:0,yCurrentVideo:0,left:0,top:0,right:1920,bottom:1080},this.DOM=document.getElementById(N.id),this.clientRect=document.getElementById(N.id).getBoundingClientRect();var g=document.createElement("div");g.id="".concat(N.id,"-zoom-container"),g.style=`position: absolute;
+ `,document.getElementById("mobile-ez-ptz-item")||S.appendChild(N),f(S,document.getElementById("".concat(this.jSPlugin.id,"-wrap"))),document.getElementById("mobile-ez-ptz-item").ontouchstart=function(r2){r2.preventDefault(),console.log("触摸开始"),m._handlePtzTouch(r2,"start")},document.getElementById("mobile-ez-ptz-item").ontouchend=function(r2){r2.preventDefault(),console.log("触摸结束",r2),m._handlePtzTouch(r2,"stop")},document.getElementById("mobile-ez-ptz-item").onmousedown=function(r2){r2.preventDefault(),console.log("触摸开始"),m._handlePtzTouch(r2,"start")},document.getElementById("mobile-ez-ptz-item").onmouseup=function(r2){r2.preventDefault(),console.log("触摸结束",r2),m._handlePtzTouch(r2,"stop")}}return a(V,[{key:"show",value:function(){document.getElementById("mobile-ez-ptz-item").style="display: inline-block"}},{key:"hide",value:function(){document.getElementById("mobile-ez-ptz-item").style="display: none"}},{key:"_handlePtzTouch",value:function(m,g){var S=document.getElementById("mobile-ez-ptz-item").getBoundingClientRect(),A=S.left+130,P=S.top+130,N=m.x||m.changedTouches[0].clientX,r2=m.y||m.changedTouches[0].clientY,l2=N-A,s2=r2-P,Q=0,X=this.jSPlugin.env.domain+"/api/lapp/device/ptz/start";Math.abs(l2)>Math.abs(s2)?l2>0?(Q=3,document.getElementsByClassName("mobile-ez-ptz-icon")[3].className=document.getElementsByClassName("mobile-ez-ptz-icon")[3].className.replace("default","active")):(Q=2,document.getElementsByClassName("mobile-ez-ptz-icon")[1].className=document.getElementsByClassName("mobile-ez-ptz-icon")[1].className.replace("default","active")):s2>0?(Q=1,document.getElementsByClassName("mobile-ez-ptz-icon")[2].className=document.getElementsByClassName("mobile-ez-ptz-icon")[2].className.replace("default","active")):(Q=0,document.getElementsByClassName("mobile-ez-ptz-icon")[0].className=document.getElementsByClassName("mobile-ez-ptz-icon")[0].className.replace("default","active")),document.getElementById("mobile-ez-ptz-item").style="background-image:linear-gradient(".concat(Q===0?180:Q===1?0:Q===2?90:270,"deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)"),g==="stop"&&(X=this.jSPlugin.env.domain+"/api/lapp/device/ptz/stop",document.getElementById("mobile-ez-ptz-item").style="",document.getElementsByClassName("mobile-ez-ptz-icon")[3].className=document.getElementsByClassName("mobile-ez-ptz-icon")[3].className.replace("active","default"),document.getElementsByClassName("mobile-ez-ptz-icon")[1].className=document.getElementsByClassName("mobile-ez-ptz-icon")[1].className.replace("active","default"),document.getElementsByClassName("mobile-ez-ptz-icon")[2].className=document.getElementsByClassName("mobile-ez-ptz-icon")[2].className.replace("active","default"),document.getElementsByClassName("mobile-ez-ptz-icon")[0].className=document.getElementsByClassName("mobile-ez-ptz-icon")[0].className.replace("active","default"));var D2=new FormData;D2.append("deviceSerial",R(this.jSPlugin.url).deviceSerial),D2.append("channelNo",R(this.jSPlugin.url).channelNo),D2.append("speed",1),D2.append("direction",Q),D2.append("accessToken",this.jSPlugin.accessToken),fetch(X,{method:"POST",body:D2}).then(function(g2){return g2.json()}).then(function(g2){g2.code==200||(g2.code==60005||g2.code==60002||g2.code==60003||g2.code==60004)&&(document.getElementById("mobile-ez-ptz-item").style="background-image:linear-gradient(".concat(Q===0?180:Q===1?0:Q===2?90:270,"deg, #f45656 0%, rgba(100,143,252,0.00) 50%)"))}).catch(function(g2){console.log("云台调用异常",g2)})}}]),V}(),Y2=0,t2="成功",i2={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-0",iconId:"deviceID",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-1",iconId:"deviceName",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-2",iconId:"cloudRec",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-3",iconId:"rec",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"}]},footer:{color:"#FFFFFF",backgroundColor:"rgb(0 0 0 / 0%)",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-0",iconId:"play",part:"left",defaultActive:1,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-1",iconId:"capturePicture",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-2",iconId:"sound",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-3",iconId:"pantile",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-4",iconId:"recordvideo",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-5",iconId:"talk",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-6",iconId:"hd",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-7",iconId:"webExpend",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-8",iconId:"expend",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"}]}},_2={retcode:Y2,msg:t2,data:i2},V2={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:0},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:1},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:0},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},o3={data:V2},D3={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:1},{iconId:"rec",part:"right",defaultActive:0,isrender:1}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:0},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:0},{iconId:"talk",part:"left",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"speed",part:"right",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},S3={data:D3},m1={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-0",iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-1",iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-2",iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-3",iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:1},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"speed",part:"right",defaultActive:0,isrender:0},{iconId:"hd",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:1},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},w1={data:m1},g1={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-0",iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-1",iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-2",iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-3",iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},s1={data:g1},i1={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:0},{iconId:"deviceName",part:"left",defaultActive:0,isrender:0},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:0},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:0},{iconId:"sound",part:"left",defaultActive:1,isrender:0},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:0},{iconId:"talk",part:"left",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:0},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:0}]}},M1={data:i1},H2={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:0},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:0},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},j3={data:H2},a1={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:1},{iconId:"rec",part:"right",defaultActive:0,isrender:1}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"speed",part:"right",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:1},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},E1={data:a1},U2=[{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"pcLive",themeIntro:"PC直播全量版",themeName:"PC直播全量版",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:w1.data.header,footer:w1.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"security",themeIntro:"PC直播安防版",themeName:"PC直播安防版",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:s1.data.header,footer:s1.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"voice",themeIntro:"PC直播语音版",themeName:"PC直播语音版",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:j3.data.header,footer:j3.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"simple",themeIntro:"PC直播极简版",themeName:"PC直播极简版",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"",header:M1.data.header,footer:M1.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"pcRec",themeIntro:"PC回放全量版",themeName:"PC回放全量版",themeType:"webRec",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:E1.data.header,footer:E1.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"mobileLive",themeIntro:"Mobile直播全量版",themeName:"Mobile直播全量版",themeType:"mobileLive",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_GmAL5IhAABZs1vUK0s564.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:o3.data.header,footer:o3.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"mobileRec",themeIntro:"Mobile回放全量版",themeName:"Mobile回放全量版",themeType:"mobileRec",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_GmAL5IhAABZs1vUK0s564.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:S3.data.header,footer:S3.data.footer}],X3=function(){function V(x){var m=this;i(this,V),this.jSPlugin=x,this.enableZoom=!1,this.isMouseDown=!1,this.videoWidth=1920,this.videoHeight=1080,this.currentScale=1,this.currentPosition={x:0,y:0,xPercent:.1,yPercent:.1,xCurrentVideo:0,yCurrentVideo:0,left:0,top:0,right:1920,bottom:1080},this.DOM=document.getElementById(x.id),this.clientRect=document.getElementById(x.id).getBoundingClientRect();var g=document.createElement("div");g.id="".concat(x.id,"-zoom-container"),g.style=`position: absolute;
display:none;
left: 12px;
bottom: 80px;`;var S=`
@@ -757,7 +757,7 @@ t=0 0\r
- `);g.innerHTML=S,document.getElementById("".concat(N.id,"-audioControls-left")).parentNode.appendChild(g),document.getElementById("".concat(N.id,"-addScale")).onclick=function(){m.addScale()},document.getElementById("".concat(N.id,"-subScale")).onclick=function(){m.subScale()}}return a(R,[{key:"onMouseDown",value:function(m){this.currentPosition,this.currentScale;var g=this.enableZoom;if(!g)return!1;this.moveX=m.clientX,this.moveY=m.clientY,this.isMouseDown=!0}},{key:"onMouseUp",value:function(m){var g=this.currentPosition,S=this.enableZoom;if(!S)return!1;this.isMouseDown=!1,g.left=g.left-(m.clientX-this.moveX),g.top=g.top-(m.clientY-this.moveY),this.doScale()}},{key:"onMouseOut",value:function(m){var g=this.enableZoom;if(!g)return!1;this.isMouseDown&&(console.log("鼠标按上",m),this.isMouseDown=!1),this.isMouseDown=!1}},{key:"renderDot",value:function(){var m=this.currentScale;document.getElementById("".concat(this.jSPlugin.id,"-scale-value")).innerHTML="".concat(m,".0X"),document.getElementById("".concat(this.jSPlugin.id,"-line-dot")).style.height="".concat((m-1)/7*100,"%"),document.getElementById("".concat(this.jSPlugin.id,"-scale-body-line-dot")).style.bottom="calc(".concat((m-1)/7*100,"% - 6px)")}},{key:"startZoom",value:function(){var m=this,g=this.jSPlugin.jSPlugin._JSPlayM4_GetFrameInfo(0);this.videoWidth=g.width,this.videoHeight=g.height,this.currentPosition.right=g.width,this.currentPosition.bottom=g.height,this.currentScale=1,document.getElementById("".concat(this.jSPlugin.id,"-zoom-container")).style.display="block",this.jSPlugin.jSPlugin._JSPlayM4_SetDisplayRegion(0,this.videoWidth,0,this.videoHeight),this.renderDot(),this.enableZoom=!0,document.getElementById("".concat(this.jSPlugin.id,"canvas_draw0"))?(document.getElementById("".concat(this.jSPlugin.id,"canvas_draw0")).addEventListener("mousedown",function(S){return m.onMouseDown(S)}),document.getElementById("".concat(this.jSPlugin.id,"canvas_draw0")).addEventListener("mouseup",function(S){return m.onMouseUp(S)}),document.getElementById("".concat(this.jSPlugin.id,"canvas_draw0")).addEventListener("mouseout",function(S){return m.onMouseOut(S)})):document.getElementById("".concat(this.jSPlugin.id,"-player"))&&(document.getElementById("".concat(this.jSPlugin.id,"-player")).addEventListener("mousedown",function(S){return m.onMouseDown(S)}),document.getElementById("".concat(this.jSPlugin.id,"-player")).addEventListener("mouseup",function(S){return m.onMouseUp(S)}),document.getElementById("".concat(this.jSPlugin.id,"-player")).addEventListener("mouseout",function(S){return m.onMouseOut(S)}))}},{key:"stopZoom",value:function(){var m=this;this.currentScale=1,this.jSPlugin.jSPlugin._JSPlayM4_SetDisplayRegion(0,this.videoWidth,0,this.videoHeight),document.getElementById("".concat(this.jSPlugin.id,"-zoom-container")).style.display="none",this.renderDot(),this.enableZoom=!1,document.getElementById(this.jSPlugin.id).removeEventListener("mousedown",function(g){return m.onMouseDown(g)}),document.getElementById(this.jSPlugin.id).removeEventListener("mouseup",function(g){return m.onMouseUp(g)}),document.getElementById(this.jSPlugin.id).removeEventListener("mouseout",function(g){return m.onMouseOut(g)})}},{key:"doScale",value:function(){console.log("执行放大");var m=this.currentPosition,g=this.currentScale;m.left=m.left+m.xPercent*(m.right-m.left)-1/2*(this.videoWidth/g),m.left<0?m.left=0:m.left>this.videoWidth-this.videoWidth/g&&(m.left=this.videoWidth-this.videoWidth/g),m.right=m.left+this.videoWidth/g,m.top=m.top+m.yPercent*(m.bottom-m.top)-1/2*(this.videoHeight/g),m.top<0?m.top=0:m.top>this.videoHeight-this.videoHeight/g&&(m.top=this.videoHeight-this.videoHeight/g),m.bottom=m.top+this.videoHeight/g,m.left=parseInt(m.left,10),m.right=parseInt(m.right,10),m.top=parseInt(m.top,10),m.bottom=parseInt(m.bottom,10),console.log("计算后,",this.jSPlugin.jSPlugin,m.left,m.right,m.top,m.bottom,m.xPercent,m.yPercent),this.jSPlugin.jSPlugin._JSPlayM4_SetDisplayRegion(m.left,m.right,m.top,m.bottom),this.renderDot()}},{key:"calCurrentPosition",value:function(m){var g=this.currentPosition,S=this.clientRect;g.x=m.clientX,g.y=m.clientY,g.xPercent=(m.clientX-S.x)/S.width,g.yPercent=(m.clientY-S.y)/S.height,this.doScale()}},{key:"addScale",value:function(){var m=this.currentScale,g=this.currentPosition;if(m>=8)return console.log("达到最大倍率了"),this.jSPlugin.Message&&this.jSPlugin.Message.default("已经放大到最大倍数8.0X"),!1;this.currentScale++,g.xPercent=.5,g.yPercent=.5,this.doScale()}},{key:"subScale",value:function(){var m=this.currentScale,g=this.currentPosition;if(m<=1)return console.log("达到最小倍率了"),!1;this.currentScale--,g.xPercent=.5,g.yPercent=.5,this.doScale()}}]),R}();function B3(R,N){return Math.abs(N.clientX-R.clientX)*Math.abs(N.clientX-R.clientX)+Math.abs(N.clientY-R.clientY)*Math.abs(N.clientY-R.clientY)}var _1=function(){function R(N){var m=this;i(this,R),this.jSPlugin=N,this.enableZoom=!1,this.isDubboTouch=!1,this.videoWidth=0,this.videoHeight=0,this.currentScale=1,this.currentPosition={x:0,y:0,xPercent:.1,yPercent:.1,xCurrentVideo:0,yCurrentVideo:0,left:0,top:0,right:1920,bottom:1080},this.DOM=document.getElementById(N.id),this.clientRect=document.getElementById(N.id).getBoundingClientRect(),this.point1={clientX:0,clientY:0},this.point2={clientX:0,clientY:0},this.touchLineLength=0,this.inited=!1;var g=document.createElement("div");g.id="".concat(N.id,"-zoom-container"),g.style=`display:none;
+ `);g.innerHTML=S,document.getElementById("".concat(x.id,"-audioControls-left")).parentNode.appendChild(g),document.getElementById("".concat(x.id,"-addScale")).onclick=function(){m.addScale()},document.getElementById("".concat(x.id,"-subScale")).onclick=function(){m.subScale()}}return a(V,[{key:"onMouseDown",value:function(m){this.currentPosition,this.currentScale;var g=this.enableZoom;if(!g)return!1;this.moveX=m.clientX,this.moveY=m.clientY,this.isMouseDown=!0}},{key:"onMouseUp",value:function(m){var g=this.currentPosition,S=this.enableZoom;if(!S)return!1;this.isMouseDown=!1,g.left=g.left-(m.clientX-this.moveX),g.top=g.top-(m.clientY-this.moveY),this.doScale()}},{key:"onMouseOut",value:function(m){var g=this.enableZoom;if(!g)return!1;this.isMouseDown&&(console.log("鼠标按上",m),this.isMouseDown=!1),this.isMouseDown=!1}},{key:"renderDot",value:function(){var m=this.currentScale;document.getElementById("".concat(this.jSPlugin.id,"-scale-value")).innerHTML="".concat(m,".0X"),document.getElementById("".concat(this.jSPlugin.id,"-line-dot")).style.height="".concat((m-1)/7*100,"%"),document.getElementById("".concat(this.jSPlugin.id,"-scale-body-line-dot")).style.bottom="calc(".concat((m-1)/7*100,"% - 6px)")}},{key:"startZoom",value:function(){var m=this,g=this.jSPlugin.jSPlugin._JSPlayM4_GetFrameInfo(0);this.videoWidth=g.width,this.videoHeight=g.height,this.currentPosition.right=g.width,this.currentPosition.bottom=g.height,this.currentScale=1,document.getElementById("".concat(this.jSPlugin.id,"-zoom-container")).style.display="block",this.jSPlugin.jSPlugin._JSPlayM4_SetDisplayRegion(0,this.videoWidth,0,this.videoHeight),this.renderDot(),this.enableZoom=!0,document.getElementById("".concat(this.jSPlugin.id,"canvas_draw0"))?(document.getElementById("".concat(this.jSPlugin.id,"canvas_draw0")).addEventListener("mousedown",function(S){return m.onMouseDown(S)}),document.getElementById("".concat(this.jSPlugin.id,"canvas_draw0")).addEventListener("mouseup",function(S){return m.onMouseUp(S)}),document.getElementById("".concat(this.jSPlugin.id,"canvas_draw0")).addEventListener("mouseout",function(S){return m.onMouseOut(S)})):document.getElementById("".concat(this.jSPlugin.id,"-player"))&&(document.getElementById("".concat(this.jSPlugin.id,"-player")).addEventListener("mousedown",function(S){return m.onMouseDown(S)}),document.getElementById("".concat(this.jSPlugin.id,"-player")).addEventListener("mouseup",function(S){return m.onMouseUp(S)}),document.getElementById("".concat(this.jSPlugin.id,"-player")).addEventListener("mouseout",function(S){return m.onMouseOut(S)}))}},{key:"stopZoom",value:function(){var m=this;this.currentScale=1,this.jSPlugin.jSPlugin._JSPlayM4_SetDisplayRegion(0,this.videoWidth,0,this.videoHeight),document.getElementById("".concat(this.jSPlugin.id,"-zoom-container")).style.display="none",this.renderDot(),this.enableZoom=!1,document.getElementById(this.jSPlugin.id).removeEventListener("mousedown",function(g){return m.onMouseDown(g)}),document.getElementById(this.jSPlugin.id).removeEventListener("mouseup",function(g){return m.onMouseUp(g)}),document.getElementById(this.jSPlugin.id).removeEventListener("mouseout",function(g){return m.onMouseOut(g)})}},{key:"doScale",value:function(){console.log("执行放大");var m=this.currentPosition,g=this.currentScale;m.left=m.left+m.xPercent*(m.right-m.left)-1/2*(this.videoWidth/g),m.left<0?m.left=0:m.left>this.videoWidth-this.videoWidth/g&&(m.left=this.videoWidth-this.videoWidth/g),m.right=m.left+this.videoWidth/g,m.top=m.top+m.yPercent*(m.bottom-m.top)-1/2*(this.videoHeight/g),m.top<0?m.top=0:m.top>this.videoHeight-this.videoHeight/g&&(m.top=this.videoHeight-this.videoHeight/g),m.bottom=m.top+this.videoHeight/g,m.left=parseInt(m.left,10),m.right=parseInt(m.right,10),m.top=parseInt(m.top,10),m.bottom=parseInt(m.bottom,10),console.log("计算后,",this.jSPlugin.jSPlugin,m.left,m.right,m.top,m.bottom,m.xPercent,m.yPercent),this.jSPlugin.jSPlugin._JSPlayM4_SetDisplayRegion(m.left,m.right,m.top,m.bottom),this.renderDot()}},{key:"calCurrentPosition",value:function(m){var g=this.currentPosition,S=this.clientRect;g.x=m.clientX,g.y=m.clientY,g.xPercent=(m.clientX-S.x)/S.width,g.yPercent=(m.clientY-S.y)/S.height,this.doScale()}},{key:"addScale",value:function(){var m=this.currentScale,g=this.currentPosition;if(m>=8)return console.log("达到最大倍率了"),this.jSPlugin.Message&&this.jSPlugin.Message.default("已经放大到最大倍数8.0X"),!1;this.currentScale++,g.xPercent=.5,g.yPercent=.5,this.doScale()}},{key:"subScale",value:function(){var m=this.currentScale,g=this.currentPosition;if(m<=1)return console.log("达到最小倍率了"),!1;this.currentScale--,g.xPercent=.5,g.yPercent=.5,this.doScale()}}]),V}();function B3(V,x){return Math.abs(x.clientX-V.clientX)*Math.abs(x.clientX-V.clientX)+Math.abs(x.clientY-V.clientY)*Math.abs(x.clientY-V.clientY)}var S1=function(){function V(x){var m=this;i(this,V),this.jSPlugin=x,this.enableZoom=!1,this.isDubboTouch=!1,this.videoWidth=0,this.videoHeight=0,this.currentScale=1,this.currentPosition={x:0,y:0,xPercent:.1,yPercent:.1,xCurrentVideo:0,yCurrentVideo:0,left:0,top:0,right:1920,bottom:1080},this.DOM=document.getElementById(x.id),this.clientRect=document.getElementById(x.id).getBoundingClientRect(),this.point1={clientX:0,clientY:0},this.point2={clientX:0,clientY:0},this.touchLineLength=0,this.inited=!1;var g=document.createElement("div");g.id="".concat(x.id,"-zoom-container"),g.style=`display:none;
position: absolute;
left: 10px;
top: -30px;
@@ -769,18 +769,18 @@ t=0 0\r
font-size: 12px;
text-align: center;
height: 22px;
- line-height: 22px;`;var S="1X";g.innerHTML=S,document.getElementById("".concat(N.id,"-audioControls-left")).parentNode.appendChild(g),document.getElementById(this.jSPlugin.id).addEventListener("touchstart",function(x){return m.onTouchstart(x)}),document.getElementById(this.jSPlugin.id).addEventListener("touchmove",function(x){return m.onTouchmove(x)})}return a(R,[{key:"onTouchstart",value:function(m){var g=this.jSPlugin.beforeMobileZoomVerify();if(!g)return!1;if(!this.inited){var S=this.jSPlugin.jSPlugin._JSPlayM4_GetFrameInfo(0);this.videoWidth=S.width,this.videoHeight=S.height,this.currentPosition.right=S.width,this.currentPosition.bottom=S.height,this.inited=!0}var x=this.currentPosition;this.currentScale,console.log("双指按下",x);var E=m.touches,L=E[0],r2=E[1];L&&(this.point1.clientX=L.clientX,this.point1.clientY=L.clientY),r2&&(this.point2.clientX=r2.clientX,this.point2.clientY=r2.clientY,this.touchLineLength=B3(this.point1,this.point2),this.isDubboTouch=!0,this.moveX=L.clientX,this.moveY=L.clientY),console.log("双指按下2",x)}},{key:"onTouchmove",value:function(m){var g=this.isDubboTouch,S=this.currentPosition,x=this.clientRect,E=this.jSPlugin.beforeMobileZoomVerify();if(!E)return!1;if(m.touches.length===1){var r2=m.touches[0];return S.xPercent=S.xPercent+(this.point1.clientX-r2.clientX)/x.width/this.currentScale,S.yPercent=S.yPercent+(this.point1.clientY-r2.clientY)/x.height/this.currentScale,this.doScale(),this.point1.clientX=r2.clientX,this.point1.clientY=r2.clientY,!1}if(!g)return!1;var L=m.touches,r2=L[0],l2=L[1];if(r2&&(this.point1.clientX=r2.clientX,this.point1.clientY=r2.clientY),l2){this.point2.clientX=l2.clientX,this.point2.clientY=l2.clientY;var s2=B3(this.point1,this.point2);s2!==this.touchLineLength&&(s2>this.touchLineLength?this.currentScale<8?(++this.currentScale,S.xPercent=(this.point1.clientX+this.point2.clientX)/2/x.width,S.yPercent=(this.point1.clientY+this.point2.clientY)/2/x.height,this.doScale()):console.log("已经是最大8倍率了"):this.currentScale>1?(--this.currentScale,S.xPercent=(this.point1.clientX+this.point2.clientX)/2/x.width,S.yPercent=(this.point1.clientY+this.point2.clientY)/2/x.height,this.doScale()):console.log("已经是最小1倍率了"),this.isDubboTouch=!1)}}},{key:"startZoom",value:function(){var m=this.jSPlugin.jSPlugin._JSPlayM4_GetFrameInfo(0);this.videoWidth=m.width,this.videoHeight=m.height,this.currentPosition.right=m.width,this.currentPosition.bottom=m.height,this.currentScale=1,document.getElementById("".concat(this.jSPlugin.id,"-zoom-container")).style.display="block",this.jSPlugin.jSPlugin._JSPlayM4_SetDisplayRegion(0,this.videoWidth,0,this.videoHeight),this.renderDot()}},{key:"stopZoom",value:function(){this.currentScale=1,this.jSPlugin.jSPlugin._JSPlayM4_SetDisplayRegion(0,this.videoWidth,0,this.videoHeight),document.getElementById("".concat(this.jSPlugin.id,"-zoom-container")).style.display="none",this.renderDot()}},{key:"resetZoom",value:function(){this.currentScale=1,document.getElementById("".concat(this.jSPlugin.id,"-zoom-container")).style.display="none"}},{key:"doScale",value:function(){var m=this.currentPosition,g=this.currentScale;m.left=m.left+m.xPercent*(m.right-m.left)-1/2*(this.videoWidth/g),m.left<0?m.left=0:m.left>this.videoWidth-this.videoWidth/g&&(m.left=this.videoWidth-this.videoWidth/g),m.right=m.left+this.videoWidth/g,m.top=m.top+m.yPercent*(m.bottom-m.top)-1/2*(this.videoHeight/g),m.top<0?m.top=0:m.top>this.videoHeight-this.videoHeight/g&&(m.top=this.videoHeight-this.videoHeight/g),m.bottom=m.top+this.videoHeight/g,m.left=parseInt(m.left,10),m.right=parseInt(m.right,10),m.top=parseInt(m.top,10),m.bottom=parseInt(m.bottom,10),console.log("视频宽高",this.videoWidth,this.videoHeight),console.log("计算后,",m.left,m.right,m.top,m.bottom,m.xPercent,m.yPercent),m.left0&&(this.autoFocus=parseInt(this.themeData.autoFocus),this.startAutoFocus(),document.getElementById("".concat(this.jSPlugin.id,"-wrap")).addEventListener("click",function(){m.stopAutoFocus()})),this.setDecoderState({cloudRec:P(this.jSPlugin.url).type==="cloud.rec",rec:P(this.jSPlugin.url).type==="rec",type:P(this.jSPlugin.url).type});else if(!this.themeInited)var E=setInterval(function(){window.EZUIKit[m.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(E),m.jSPlugin.play(),m.themeInited=!0)},50);var L=H.findIndex(this.themeData.footer.btnList,function(l2){return l2.iconId==="zoom"&&l2.isrender>0})>=0;L&&(this.isMobile?(this.jSPlugin.beforeMobileZoomVerify=function(){var l2=m.decoderState.state.play;return console.log("手机端电子放大前校验回调play------------",l2),!!l2},this.jSPlugin.Zoom=new _1(this.jSPlugin)):this.jSPlugin.Zoom=new q3(this.jSPlugin));var r2=setInterval(function(){window.EZUIKit[m.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(r2),m.jSPlugin.reSize(m.jSPlugin.params.width,m.jSPlugin.params.height))},50)}},{key:"setDecoderState",value:function(m){var g=this,S=this.themeData,x=S.header,E=S.footer;Object.keys(m).map(function(L,r2){var l2="#FFFFFF",s2="#FFFFFF",Q=x.btnList.findIndex(function(X){return X.iconId===L});switch(Q===-1?(l2=E.color.replace("-diy",""),s2=E.activeColor.replace("-diy","")):(l2=x.color.replace("-diy",""),s2=E.activeColor.replace("-diy","")),L){case"play":m[L]?document.getElementById("".concat(g.jSPlugin.id,"-play"))&&(document.getElementById("".concat(g.jSPlugin.id,"-play-content")).children[0].children[0].style="display:inline-block",document.getElementById("".concat(g.jSPlugin.id,"-play-content")).children[0].children[1].style="display:none",document.getElementById("".concat(g.jSPlugin.id,"-play")).className=m[L]?"active":"",document.getElementById("".concat(g.jSPlugin.id,"-play-content")).childNodes[0].children[0].style.fill=m[L]?s2:l2):document.getElementById("".concat(g.jSPlugin.id,"-play"))&&(document.getElementById("".concat(g.jSPlugin.id,"-play-content")).children[0].children[1].style="display:inline-block",document.getElementById("".concat(g.jSPlugin.id,"-play-content")).children[0].children[0].style="display:none",document.getElementById("".concat(g.jSPlugin.id,"-play")).className=m[L]?"active":"",document.getElementById("".concat(g.jSPlugin.id,"-play-content")).childNodes[0].children[1].style.fill=m[L]?s2:l2);break;case"sound":document.getElementById("".concat(g.jSPlugin.id,"-sound"))&&(m[L]?(document.getElementById("".concat(g.jSPlugin.id,"-sound-content")).children[0].children[1].style="display:inline-block",document.getElementById("".concat(g.jSPlugin.id,"-sound-content")).children[0].children[0].style="display:none",document.getElementById("".concat(g.jSPlugin.id,"-sound")).className=m[L]?"active":"",document.getElementById("".concat(g.jSPlugin.id,"-sound-content")).childNodes[0].children[1].style.fill=m[L]?s2:l2):(document.getElementById("".concat(g.jSPlugin.id,"-sound-content")).children[0].children[0].style="display:inline-block",document.getElementById("".concat(g.jSPlugin.id,"-sound-content")).children[0].children[1].style="display:none",document.getElementById("".concat(g.jSPlugin.id,"-sound")).className=m[L]?"active":"",document.getElementById("".concat(g.jSPlugin.id,"-sound-content")).childNodes[0].children[0].style.fill=m[L]?s2:l2));break;case"recordvideo":document.getElementById("".concat(g.jSPlugin.id,"-recordvideo"))&&(document.getElementById("".concat(g.jSPlugin.id,"-recordvideo")).className=m[L]?"active":"",document.getElementById("".concat(g.jSPlugin.id,"-recordvideo-content")).childNodes[0].style.fill=m[L]?s2:l2,m[L]?g.countTime("add",0):g.countTime("destroy",0));break;case"talk":document.getElementById("".concat(g.jSPlugin.id,"-talk"))&&(document.getElementById("".concat(g.jSPlugin.id,"-talk")).className=m[L]?"active":"",document.getElementById("".concat(g.jSPlugin.id,"-talk-content")).childNodes[1].style.fill=m[L]?s2:l2);break;case"zoom":document.getElementById("".concat(g.jSPlugin.id,"-zoom"))&&(document.getElementById("".concat(g.jSPlugin.id,"-zoom")).className=m[L]?"active":"",document.getElementById("".concat(g.jSPlugin.id,"-zoom-content")).childNodes[1].style.fill=m[L]?s2:l2);break;case"pantile":document.getElementById("".concat(g.jSPlugin.id,"-pantile"))&&(document.getElementById("".concat(g.jSPlugin.id,"-pantile")).className=m[L]?"active":"",document.getElementById("".concat(g.jSPlugin.id,"-pantile-content")).childNodes[0].style.fill=m[L]?s2:l2);break;case"webExpend":m[L]?(document.getElementById("".concat(g.jSPlugin.id,"-webExpend"))&&(document.getElementById("".concat(g.jSPlugin.id,"-webExpend-content")).children[0].children[1].style="display:inline-block",document.getElementById("".concat(g.jSPlugin.id,"-webExpend-content")).children[0].children[0].style="display:none"),document.getElementById("".concat(g.jSPlugin.id,"-expend"))&&(document.getElementById("".concat(g.jSPlugin.id,"-expend")).className="disabled")):(document.getElementById("".concat(g.jSPlugin.id,"-webExpend"))&&(document.getElementById("".concat(g.jSPlugin.id,"-webExpend-content")).children[0].children[0].style="display:inline-block",document.getElementById("".concat(g.jSPlugin.id,"-webExpend-content")).children[0].children[1].style="display:none"),document.getElementById("".concat(g.jSPlugin.id,"-expend"))&&(document.getElementById("".concat(g.jSPlugin.id,"-expend")).className="")),document.getElementById("".concat(g.jSPlugin.id,"-webExpend"))&&(document.getElementById("".concat(g.jSPlugin.id,"-webExpend")).className=m[L]?"active":"",document.getElementById("".concat(g.jSPlugin.id,"-webExpend-content")).childNodes[0].childNodes[0].style.fill=m[L]?s2:l2,document.getElementById("".concat(g.jSPlugin.id,"-webExpend-content")).childNodes[0].childNodes[1].style.fill=m[L]?s2:l2);break;case"capturePicture":document.getElementById("".concat(g.jSPlugin.id,"-capturePicture"))&&(document.getElementById("".concat(g.jSPlugin.id,"-capturePicture")).className=m[L]?"active":"",document.getElementById("".concat(g.jSPlugin.id,"-capturePicture-content")).childNodes[0].style.fill=m[L]?s2:l2);break;case"expend":m[L]?(document.getElementById("".concat(g.jSPlugin.id,"-expend"))&&(document.getElementById("".concat(g.jSPlugin.id,"-expend-content")).children[0].children[1].style="display:inline-block",document.getElementById("".concat(g.jSPlugin.id,"-expend-content")).children[0].children[0].style="display:none"),document.getElementById("".concat(g.jSPlugin.id,"-webExpend"))&&(document.getElementById("".concat(g.jSPlugin.id,"-webExpend")).className="disabled")):(document.getElementById("".concat(g.jSPlugin.id,"-expend"))&&(document.getElementById("".concat(g.jSPlugin.id,"-expend-content")).children[0].children[0].style="display:inline-block",document.getElementById("".concat(g.jSPlugin.id,"-expend-content")).children[0].children[1].style="display:none"),document.getElementById("".concat(g.jSPlugin.id,"-webExpend"))&&(document.getElementById("".concat(g.jSPlugin.id,"-webExpend")).className="")),document.getElementById("".concat(g.jSPlugin.id,"-expend"))&&(document.getElementById("".concat(g.jSPlugin.id,"-expend")).className=m[L]?"active":"",document.getElementById("".concat(g.jSPlugin.id,"-expend-content")).childNodes[0].childNodes[0].style.fill=m[L]?s2:l2,document.getElementById("".concat(g.jSPlugin.id,"-expend-content")).childNodes[0].childNodes[1].style.fill=m[L]?s2:l2);break;case"hd":m[L]?document.getElementById("".concat(g.jSPlugin.id,"-hd"))&&(document.getElementById("".concat(g.jSPlugin.id,"-hd-content")).children[1].children[0].style="display:block",document.getElementById("".concat(g.jSPlugin.id,"-hd-content")).children[1].children[1].style="display:none"):document.getElementById("".concat(g.jSPlugin.id,"-hd"))&&(document.getElementById("".concat(g.jSPlugin.id,"-hd-content")).children[1].children[1].style="display:block",document.getElementById("".concat(g.jSPlugin.id,"-hd-content")).children[1].children[0].style="display:none");break;case"speed":document.getElementById("".concat(g.jSPlugin.id,"-speed"))&&(document.getElementById("".concat(g.jSPlugin.id,"-speed-content")).children[1].children[0].style.color=m[L]?s2:l2,document.getElementById("".concat(g.jSPlugin.id,"-speed-content")).children[1].children[0].style.borderColor=m[L]?s2:l2),document.getElementById("".concat(g.jSPlugin.id,"-select-mask"))&&(g.isMobile&&m[L]?document.getElementById("".concat(g.jSPlugin.id,"-select-mask")).style.display="block":document.getElementById("".concat(g.jSPlugin.id,"-select-mask")).style.display="none");break;case"cloudRec":document.getElementById("".concat(g.jSPlugin.id,"-cloudRec"))&&(console.log("document.getElementById(`${this.jSPlugin.id}-cloudRec-content`)",document.getElementById("".concat(g.jSPlugin.id,"-cloudRec"))),document.getElementById("".concat(g.jSPlugin.id,"-cloudRec")).className=m[L]?"active":"",document.getElementById("".concat(g.jSPlugin.id,"-cloudRec-content")).children[0].children[0].style.fill=m[L]?s2:l2),document.getElementById("".concat(g.jSPlugin.id,"-rec"))&&(document.getElementById("".concat(g.jSPlugin.id,"-rec")).className=m[L]?"active":"",document.getElementById("".concat(g.jSPlugin.id,"-rec-content")).children[0].children[0].style.fill=m[L]?l2:s2);break;case"rec":document.getElementById("".concat(g.jSPlugin.id,"-cloudRec"))&&(document.getElementById("".concat(g.jSPlugin.id,"-cloudRec")).className=m[L]?"active":"",document.getElementById("".concat(g.jSPlugin.id,"-cloudRec-content")).children[0].children[0].style.fill=m[L]?l2:s2),document.getElementById("".concat(g.jSPlugin.id,"-rec"))&&(document.getElementById("".concat(g.jSPlugin.id,"-rec")).className=m[L]?"active":"",document.getElementById("".concat(g.jSPlugin.id,"-rec-content")).children[0].children[0].style.fill=m[L]?s2:l2);break}g.decoderState.state=Object.assign(g.decoderState.state,m)})}},{key:"startAutoFocus",value:function(){var m=this,g=this.autoFocus;this.autoFocusTimer&&clearTimeout(this.autoFocusTimer),this.autoFocusTimer=setTimeout(function(){document.getElementById("".concat(m.jSPlugin.id,"-audioControls"))&&(document.getElementById("".concat(m.jSPlugin.id,"-audioControls")).style.opacity=0,document.getElementById("".concat(m.jSPlugin.id,"-audioControls")).style.pointerEvents="none")},g*1e3)}},{key:"stopAutoFocus",value:function(){document.getElementById("".concat(this.jSPlugin.id,"-audioControls"))&&(document.getElementById("".concat(this.jSPlugin.id,"-audioControls")).style.opacity=1,document.getElementById("".concat(this.jSPlugin.id,"-audioControls")).style.pointerEvents="all"),this.autoFocusTimer&&clearTimeout(this.autoFocusTimer),this.startAutoFocus()}},{key:"toString",value:function(){return"".concat(this.coreX,"-").concat(this.coreY)}},{key:"renderFooter",value:function(m,g){var S=this,x=this.matchBtn(m);if(this.isMobile&&x.id==="zoom")return!1;var E=document.createElement("div");E.className="theme-icon-item",E.innerHTML="".concat('')+'')).concat(x.domString,"
")+"",E.onclick=function(s2){if(S.decoderState.state.isEditing)return!1;x.onclick(s2)},x.onmouseenter&&(E.onmouseenter=function(s2){if(S.decoderState.state.isEditing)return!1;x.onmouseenter(s2)}),x.onmouseleave&&(E.onmouseleave=function(s2){if(S.decoderState.state.isEditing)return!1;x.onmouseleave(s2)});var L=document.createElement("span");L.className="icon-move left",L.innerHTML=''),L.onclick=function(){S.editIcon(x.id,"left","footer")},E.appendChild(L);var r2=document.createElement("span");r2.className="icon-move right",r2.innerHTML=''),r2.onclick=function(){S.editIcon(x.id,"right","footer")},E.appendChild(r2);var l2=document.createElement("span");l2.className="icon-move close",l2.innerHTML='')+'',l2.onclick=function(){S.editIcon(x.id,"delete","footer")},E.appendChild(l2),g==="left"?document.getElementById("".concat(this.jSPlugin.id,"-audioControls")).childNodes[0].appendChild(E):document.getElementById("".concat(this.jSPlugin.id,"-audioControls")).childNodes[1].appendChild(E)}},{key:"editIcon",value:function(m,g,S){console.log("编辑组件",m,g,S);var x=this.themeData;console.log("themeData",this.themeData);var E=this.themeData[S].btnList,L=H.findIndex(E,function(D2){return D2.iconId===m}),r2=E[L];switch(g){case"delete":if(m==="rec"){if(H.findIndex(E,function(D2){return D2.iconId==="cloudRec"&&D2.isrender==1})===-1)return this.jSPlugin.Message&&this.jSPlugin.Message.default("必须选中一种存储介质"),!1}else if(m==="cloudRec"&&H.findIndex(E,function(D2){return D2.iconId==="rec"&&D2.isrender==1})===-1)return this.jSPlugin.Message&&this.jSPlugin.Message.default("必须选中一种存储介质"),!1;E[L].isrender=0;break;case"right":for(var l2=-1,s2=L+1;s2=0;X--)if(E[X].part===E[L].part&&E[X].isrender==1){Q=X;break}Q!==-1&&(E[L]=E[Q],E[Q]=r2);break}console.log("new btnList",E),x[S].btnList=E,this.changeTheme(x)}},{key:"renderHeader",value:function(m,g){var S=this,x=this.matchBtn(m),E=document.createElement("div");E.className="theme-icon-item",E.style="max-width:50%;",E.innerHTML="".concat('')+'')).concat(x.domString,"")+'')+'',E.onclick=function(r2){if(S.decoderState.state.isEditing)return!1;x.onclick(r2)};var L=document.createElement("span");L.className="icon-move close",L.innerHTML='')+'',L.onclick=function(){S.editIcon(x.id,"delete","header")},E.appendChild(L),g==="left"?document.getElementById("".concat(this.jSPlugin.id,"-headControl")).childNodes[0].appendChild(E):document.getElementById("".concat(this.jSPlugin.id,"-headControl")).childNodes[1].appendChild(E)}},{key:"countTime",value:function(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,S=this;if(!document.getElementById(this.jSPlugin.id+"time-area")){var x=document.createElement("div");x.id=this.jSPlugin.id+"time-area",x.className="time-area",x.innerHTML='00:00',document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container"))&&document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")).appendChild(x)}if(this.countTimer&&clearInterval(this.countTimer),m==="add"){var E=g;document.getElementById(S.jSPlugin.id+"time-area").style.display="flex",this.countTimer=setInterval(function(){++E,document.getElementById(S.jSPlugin.id+"time-area").children[1].innerHTML=L(E)},1e3)}else m==="destroy"&&(this.countTimer&&clearInterval(this.countTimer),this.countTimer=void 0,document.getElementById(S.jSPlugin.id+"time-area")&&(document.getElementById(S.jSPlugin.id+"time-area").children[1].innerHTML="00:00",document.getElementById(S.jSPlugin.id+"time-area").style.display="none"));function L(r2){var l2=parseInt(r2),s2=0,Q=0,X="00",D2="00",g2="00";return l2>59&&(s2=parseInt(l2/60),l2=parseInt(l2%60),s2>59&&(Q=parseInt(s2/60),s2=parseInt(s2%60))),X=parseInt(l2)>9?parseInt(l2):"0"+parseInt(l2),D2=parseInt(s2)>9?parseInt(s2):"0"+parseInt(s2),g2=parseInt(Q)>9?parseInt(Q):"0"+parseInt(Q),Q>0?g2+":"+D2+":"+X:s2>0?D2+":"+X:"00:"+X}}},{key:"setDisabled",value:function(m){var g=this.decoderState.state,S=g.sound,x=g.hd;document.getElementById(S?"".concat(this.jSPlugin.id,"-sound-icon"):"".concat(this.jSPlugin.id,"-nosound-icon"))!=null&&document.getElementById(S?"".concat(this.jSPlugin.id,"-sound-icon"):"".concat(this.jSPlugin.id,"-nosound-icon")).setAttribute("style",m?"cursor: not-allowed;fill: gray":"cursor: default"),document.getElementById("".concat(this.jSPlugin.id,"-recordvideo-icon"))!=null&&document.getElementById("".concat(this.jSPlugin.id,"-recordvideo-icon")).setAttribute("style",m?"cursor: not-allowed;fill: gray":"cursor: default"),document.getElementById("".concat(this.jSPlugin.id,"-capturePicture-icon"))!=null&&document.getElementById("".concat(this.jSPlugin.id,"-capturePicture-icon")).setAttribute("style",m?"cursor: not-allowed;fill: gray":"cursor: default"),document.getElementById("".concat(this.jSPlugin.id,"-talk-icon"))!=null&&document.getElementById("".concat(this.jSPlugin.id,"-talk-icon")).setAttribute("style",m?"cursor: not-allowed;fill: gray":"cursor: default"),document.getElementById("".concat(this.jSPlugin.id,"-zoom-icon"))!=null&&document.getElementById("".concat(this.jSPlugin.id,"-zoom-icon")).setAttribute("style",m?"cursor: not-allowed;fill: gray":"cursor: default"),document.getElementById("".concat(this.jSPlugin.id,"-pantile-icon"))!=null&&document.getElementById("".concat(this.jSPlugin.id,"-pantile-icon")).setAttribute("style",m?"cursor: not-allowed;fill: gray":"cursor: default"),document.getElementById(x?"".concat(this.jSPlugin.id,"-hdSelect-icon"):"".concat(this.jSPlugin.id,"-sdSelect-icon"))!=null&&document.getElementById(x?"".concat(this.jSPlugin.id,"-hdSelect-icon"):"".concat(this.jSPlugin.id,"-sdSelect-icon")).setAttribute("style",m?"cursor: not-allowed;fill: gray":"cursor: default"),document.getElementById("".concat(this.jSPlugin.id,"-speed-text"))!=null&&document.getElementById("".concat(this.jSPlugin.id,"-speed-text")).setAttribute("style",document.getElementById("".concat(this.jSPlugin.id,"-speed-text")).getAttribute("style")+";"+(m?"cursor: not-allowed;color: gray;border-color: gray;":"cursor: default;color: #ffffff;border-color: #ffffff;"))}},{key:"matchBtn",value:function(m){var g=this,S=this.themeData,x=S.header,E=S.footer,L={title:"",id:"",domString:"",color:"#FFFFFF",activeColor:"#FFFFFF",onclick:function(){},onmoveleft:function(){},onmoveright:function(){},onremove:function(){}},r2=x.btnList.findIndex(function(l2){return l2.iconId===m});switch(r2===-1?(L.color=E.color,L.backgroundColor=E.backgroundColor,L.activeColor=E.activeColor):(L.color=x.color,L.backgroundColor=x.backgroundColor,L.activeColor=x.activeColor),m){case"play":return L.title="播放/结束播放",L.id=m,L.domString=''+'
',N.onclick=function(){var l2=g.decoderState.state,s2=l2.play,Q=l2.isEditing,X=l2.rec,D2=l2.cloudRec,g2=l2.recordvideo;if(Q)return!1;s2?(X||D2?g.jSPlugin.pause():g.jSPlugin.stop(),g2&&g.setDecoderState({recordvideo:!1}),g.jSPlugin.Zoom.stopZoom()):(X||D2?g.jSPlugin.resume():g.jSPlugin.play(),g.resetMobileZoomStatus()),g.setDecoderState({zoom:!1,play:!s2}),g.setDisabled(s2)},N;case"sound":return N.title="声音",N.id=m,N.domString=''+'
- `)+'
+ `)+'
- `)+"",L.onclick=function(){var l2=g.decoderState.state,s2=l2.play,Q=l2.sound,X=l2.talk;s2&&(Q?(g.jSPlugin.closeSound(),g.setDecoderState({sound:!1})):X||(g.jSPlugin.openSound(),g.setDecoderState({sound:!0})))},L;case"recordvideo":return L.title="录屏",L.id=m,L.domString='')+'',L.onclick=function(){var l2=g.decoderState.state,s2=l2.play,Q=l2.recordvideo;s2&&(Q?(g.jSPlugin.stopSave(),g.setDecoderState({recordvideo:!1})):(g.jSPlugin.startSave("".concat(new Date().getTime())),g.setDecoderState({recordvideo:!0})))},L;case"capturePicture":return L.title="截图",L.id=m,L.domString='')+'',L.onclick=function(){var l2=g.decoderState.state.play;l2?g.jSPlugin.capturePicture("".concat(new Date().getTime())):console.log("视频未播放,无法截图")},L;case"talk":return L.title="对讲",L.id=m,L.domString=""+'')+'',L.onclick=function(){var l2=g.decoderState.state,s2=l2.talk,Q=l2.sound,X=l2.play;if(X)if(s2){console.log("结束对讲"),g.setDecoderState({talk:!1}),g.jSPlugin.Talk.stopTalk();var D2=H.findIndex(g.themeData.footer.btnList,function(g2){return g2.iconId==="sound"&&g2.isrender===1&&g2.defaultActive===1})>-1;g.themeData&&D2&&(g.jSPlugin.openSound(),g.setDecoderState({sound:!0}))}else console.log("开始对讲"),g.setDecoderState({talk:!0}),Q&&(g.jSPlugin.closeSound(),g.setDecoderState({sound:!1})),g.jSPlugin.Talk.startTalk()},L;case"zoom":return L.title="电子放大",L.id=m,L.domString=""+'`)+"",N.onclick=function(){var l2=g.decoderState.state,s2=l2.play,Q=l2.sound,X=l2.talk;s2&&(Q?(g.jSPlugin.closeSound(),g.setDecoderState({sound:!1})):X||(g.jSPlugin.openSound(),g.setDecoderState({sound:!0})))},N;case"recordvideo":return N.title="录屏",N.id=m,N.domString='')+'',N.onclick=function(){var l2=g.decoderState.state,s2=l2.play,Q=l2.recordvideo;s2&&(Q?(g.jSPlugin.stopSave(),g.setDecoderState({recordvideo:!1})):(g.jSPlugin.startSave("".concat(new Date().getTime())),g.setDecoderState({recordvideo:!0})))},N;case"capturePicture":return N.title="截图",N.id=m,N.domString='')+'',N.onclick=function(){var l2=g.decoderState.state.play;l2?g.jSPlugin.capturePicture("".concat(new Date().getTime())):console.log("视频未播放,无法截图")},N;case"talk":return N.title="对讲",N.id=m,N.domString=""+'')+'',N.onclick=function(){var l2=g.decoderState.state,s2=l2.talk,Q=l2.sound,X=l2.play;if(X)if(s2){console.log("结束对讲"),g.setDecoderState({talk:!1}),g.jSPlugin.Talk.stopTalk();var D2=H.findIndex(g.themeData.footer.btnList,function(g2){return g2.iconId==="sound"&&g2.isrender===1&&g2.defaultActive===1})>-1;g.themeData&&D2&&(g.jSPlugin.openSound(),g.setDecoderState({sound:!0}))}else console.log("开始对讲"),g.setDecoderState({talk:!0}),Q&&(g.jSPlugin.closeSound(),g.setDecoderState({sound:!1})),g.jSPlugin.Talk.startTalk()},N;case"zoom":return N.title="电子放大",N.id=m,N.domString=""+'
@@ -799,7 +799,7 @@ t=0 0\r
- `),L.onclick=function(){var l2=g.decoderState.state,s2=l2.zoom,Q=l2.play;if(!Q)return!1;s2?(console.log("结束电子放大"),g.setDecoderState({zoom:!1}),g.jSPlugin.Zoom.stopZoom()):(console.log("开始电子放大"),g.jSPlugin.Zoom.startZoom(),g.setDecoderState({zoom:!0}))},L;case"pantile":return L.title="云台控制",L.id=m,L.domString='')+'',L.onclick=function(){var l2=g.decoderState.state,s2=l2.play,Q=l2.pantile,X=l2.expend;if(s2)if(Q)console.log("隐藏云台"),g.Ptz.hide(),g.setDecoderState({pantile:!1});else{if(console.log("显示云台"),g.isMobile&&!X)return console.log("移动端,非全屏状态不展示云台"),!1;g.Ptz.show(),g.setDecoderState({pantile:!0})}},L;case"expend":return L.title="全局全屏",L.id=m,L.domString='')+''+'
+ `),N.onclick=function(){var l2=g.decoderState.state,s2=l2.zoom,Q=l2.play;if(!Q)return!1;s2?(console.log("结束电子放大"),g.setDecoderState({zoom:!1}),g.jSPlugin.Zoom.stopZoom()):(console.log("开始电子放大"),g.jSPlugin.Zoom.startZoom(),g.setDecoderState({zoom:!0}))},N;case"pantile":return N.title="云台控制",N.id=m,N.domString='')+'',N.onclick=function(){var l2=g.decoderState.state,s2=l2.play,Q=l2.pantile,X=l2.expend;if(s2)if(Q)console.log("隐藏云台"),g.Ptz.hide(),g.setDecoderState({pantile:!1});else{if(console.log("显示云台"),g.isMobile&&!X)return console.log("移动端,非全屏状态不展示云台"),!1;g.Ptz.show(),g.setDecoderState({pantile:!0})}},N;case"expend":return N.title="全局全屏",N.id=m,N.domString='')+''+'
- `),L.onclick=function(){var l2=g.decoderState.state,s2=l2.webExpend,Q=l2.expend;l2.play;var X=l2.pantile;if(s2)return console.log("正在网站全屏"),!1;if(Q)if(g.isMobile){var D2=parseInt(getComputedStyle(document.getElementById("".concat(g.jSPlugin.id,"-wrap"))).height,10)-parseInt(getComputedStyle(document.getElementById(g.jSPlugin.id)).height,10);document.getElementById("".concat(g.jSPlugin.id,"-ez-iframe-footer-container"))&&(document.getElementById("".concat(g.jSPlugin.id,"-ez-iframe-footer-container")).style.marginTop="-32px"),document.getElementById("".concat(g.jSPlugin.id,"-headControl"))&&(document.getElementById("".concat(g.jSPlugin.id,"-headControl")).style.position="relative"),y(document.getElementById("".concat(g.jSPlugin.id,"-wrap")),g.jSPlugin.width,g.jSPlugin.height+D2),g.jSPlugin.jSPlugin.JS_Resize(g.jSPlugin.width,g.jSPlugin.height),X&&(g.Ptz.hide(),g.setDecoderState({pantile:!1}))}else{console.log("取消全局全屏");var Y=U();Y.then(function(B){console.log("取消全屏",B,g.jSPlugin),g.jSPlugin.jSPlugin.JS_Resize(g.jSPlugin.width,g.jSPlugin.height)})}else if(console.log("执行全局全屏"),g.isMobile){var D2=parseInt(getComputedStyle(document.getElementById("".concat(g.jSPlugin.id,"-wrap"))).height,10)-parseInt(getComputedStyle(document.getElementById(g.jSPlugin.id)).height,10);_(document.getElementById("".concat(g.jSPlugin.id,"-wrap"))),setTimeout(function(){var B=document.documentElement.clientWidth,A=document.documentElement.clientHeight;document.getElementById("".concat(g.jSPlugin.id)).style["backface-visibility"]="hidden",g.jSPlugin.jSPlugin.JS_Resize(A,B-D2)},100)}else{var g2=window.screen.width,C=window.screen.height,I=b(document.getElementById("".concat(g.jSPlugin.id)));I.then(function(B){g.jSPlugin.jSPlugin.JS_Resize(g2,C)}).catch(function(B){console.log(B)})}g.setDecoderState({expend:!Q})},L;case"webExpend":return L.title="网页全屏",L.id=m,L.domString='')+''+'
+ `),N.onclick=function(){var l2=g.decoderState.state,s2=l2.webExpend,Q=l2.expend;l2.play;var X=l2.pantile;if(s2)return console.log("正在网站全屏"),!1;if(Q)if(g.isMobile){var D2=parseInt(getComputedStyle(document.getElementById("".concat(g.jSPlugin.id,"-wrap"))).height,10)-parseInt(getComputedStyle(document.getElementById(g.jSPlugin.id)).height,10);document.getElementById("".concat(g.jSPlugin.id,"-ez-iframe-footer-container"))&&(document.getElementById("".concat(g.jSPlugin.id,"-ez-iframe-footer-container")).style.marginTop="-32px"),document.getElementById("".concat(g.jSPlugin.id,"-headControl"))&&(document.getElementById("".concat(g.jSPlugin.id,"-headControl")).style.position="relative"),y(document.getElementById("".concat(g.jSPlugin.id,"-wrap")),g.jSPlugin.width,g.jSPlugin.height+D2),g.jSPlugin.jSPlugin.JS_Resize(g.jSPlugin.width,g.jSPlugin.height),X&&(g.Ptz.hide(),g.setDecoderState({pantile:!1}))}else{console.log("取消全局全屏");var Y=D();Y.then(function(O){console.log("取消全屏",O,g.jSPlugin),g.jSPlugin.jSPlugin.JS_Resize(g.jSPlugin.width,g.jSPlugin.height)})}else if(console.log("执行全局全屏"),g.isMobile){var D2=parseInt(getComputedStyle(document.getElementById("".concat(g.jSPlugin.id,"-wrap"))).height,10)-parseInt(getComputedStyle(document.getElementById(g.jSPlugin.id)).height,10);_(document.getElementById("".concat(g.jSPlugin.id,"-wrap"))),setTimeout(function(){var O=document.documentElement.clientWidth,C=document.documentElement.clientHeight;document.getElementById("".concat(g.jSPlugin.id)).style["backface-visibility"]="hidden",g.jSPlugin.jSPlugin.JS_Resize(C,O-D2)},100)}else{var g2=window.screen.width,M=window.screen.height,L=b(document.getElementById("".concat(g.jSPlugin.id)));L.then(function(O){g.jSPlugin.jSPlugin.JS_Resize(g2,M)}).catch(function(O){console.log(O)})}g.setDecoderState({expend:!Q})},N;case"webExpend":return N.title="网页全屏",N.id=m,N.domString='')+''+'
- `)+"",L.onclick=function(){var l2=g.decoderState.state,s2=l2.webExpend,Q=l2.expend;if(l2.play,Q)return console.log("正在全局全屏"),!1;if(g.jSPlugin.recTimer&&clearInterval(g.jSPlugin.recTimer),s2){console.log("取消网页全屏");var B=U();B.then(function(A){g.jSPlugin.jSPlugin.JS_Resize(g.jSPlugin.width,g.jSPlugin.height),g.jSPlugin.Theme.Rec&&g.jSPlugin.Theme.Rec.recAutoSize()})}else{console.log("执行网页全屏");var X=0,D2=0,g2=g;["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].forEach(function(A){window.addEventListener(A,function(V){var M2=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;return M2?document.getElementById("".concat(g2.jSPlugin.id,"-loading-item-0"))&&(document.getElementById("".concat(g2.jSPlugin.id,"-loading-item-0")).style.height=window.screen.height-parseInt(window.getComputedStyle(document.getElementById("".concat(g2.jSPlugin.id,"-headControl"))).height,10)+"px"):document.getElementById("".concat(g2.jSPlugin.id,"-loading-item-0"))&&(document.getElementById("".concat(g2.jSPlugin.id,"-loading-item-0")).style.height=g2.jSPlugin.height+parseInt(window.getComputedStyle(document.getElementById("".concat(g2.jSPlugin.id,"-headControl"))).height,10)+"px"),M2})});var C=window.screen.width,I=window.screen.height,Y=b(document.getElementById("".concat(g.jSPlugin.id,"-wrap")));Y.then(function(A){document.getElementById("".concat(g.jSPlugin.id,"-canvas-container"))&&(X=parseInt(window.getComputedStyle(document.getElementById("".concat(g.jSPlugin.id,"-canvas-container"))).height,10)),document.getElementById("".concat(g.jSPlugin.id,"-headControl"))&&(D2=parseInt(window.getComputedStyle(document.getElementById("".concat(g.jSPlugin.id,"-headControl"))).height,10)),g.jSPlugin.jSPlugin.JS_Resize(C,I-X-D2),g.jSPlugin.Theme.Rec&&g.jSPlugin.Theme.Rec.recAutoSize()}).catch(function(A){console.log(A)})}g.setDecoderState({webExpend:!s2})},L;case"hd":return L.title="画面清晰度",L.id=m,L.domString='"+'')+''+'
+ `)+"",N.onclick=function(){var l2=g.decoderState.state,s2=l2.webExpend,Q=l2.expend;if(l2.play,Q)return console.log("正在全局全屏"),!1;if(g.jSPlugin.recTimer&&clearInterval(g.jSPlugin.recTimer),s2){console.log("取消网页全屏");var O=D();O.then(function(C){g.jSPlugin.jSPlugin.JS_Resize(g.jSPlugin.width,g.jSPlugin.height),g.jSPlugin.Theme.Rec&&g.jSPlugin.Theme.Rec.recAutoSize()})}else{console.log("执行网页全屏");var X=0,D2=0,g2=g;["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].forEach(function(C){window.addEventListener(C,function(G){var M2=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;return M2?document.getElementById("".concat(g2.jSPlugin.id,"-loading-item-0"))&&(document.getElementById("".concat(g2.jSPlugin.id,"-loading-item-0")).style.height=window.screen.height-parseInt(window.getComputedStyle(document.getElementById("".concat(g2.jSPlugin.id,"-headControl"))).height,10)+"px"):document.getElementById("".concat(g2.jSPlugin.id,"-loading-item-0"))&&(document.getElementById("".concat(g2.jSPlugin.id,"-loading-item-0")).style.height=g2.jSPlugin.height+parseInt(window.getComputedStyle(document.getElementById("".concat(g2.jSPlugin.id,"-headControl"))).height,10)+"px"),M2})});var M=window.screen.width,L=window.screen.height,Y=b(document.getElementById("".concat(g.jSPlugin.id,"-wrap")));Y.then(function(C){document.getElementById("".concat(g.jSPlugin.id,"-canvas-container"))&&(X=parseInt(window.getComputedStyle(document.getElementById("".concat(g.jSPlugin.id,"-canvas-container"))).height,10)),document.getElementById("".concat(g.jSPlugin.id,"-headControl"))&&(D2=parseInt(window.getComputedStyle(document.getElementById("".concat(g.jSPlugin.id,"-headControl"))).height,10)),g.jSPlugin.jSPlugin.JS_Resize(M,L-X-D2),g.jSPlugin.Theme.Rec&&g.jSPlugin.Theme.Rec.recAutoSize()}).catch(function(C){console.log(C)})}g.setDecoderState({webExpend:!s2})},N;case"hd":return N.title="画面清晰度",N.id=m,N.domString='"+'')+''+'
@@ -849,7 +849,7 @@ t=0 0\r
- `)+`')+"",L.onclick=function(l2){var s2=g.decoderState.state,Q=s2.hd,X=s2.expend,D2=s2.recordvideo,g2=s2.play;g2&&(Q&&l2.target.id==="".concat(g.jSPlugin.id,"-select-sd")?(console.log("切换到标清"),g.jSPlugin.changeVideoLevel(0),g.setDecoderState({hd:!1}),g.resetMobileZoomStatus(),D2&&g.setDecoderState({recordvideo:!1}),g.setDecoderState({zoom:!1}),g.jSPlugin.Zoom.stopZoom()):!Q&&l2.target.id==="".concat(g.jSPlugin.id,"-select-hd")&&(g.jSPlugin.changeVideoLevel(1),g.setDecoderState({hd:!0}),g.resetMobileZoomStatus(),D2&&g.setDecoderState({recordvideo:!1}),g.setDecoderState({zoom:!1}),g.jSPlugin.Zoom.stopZoom()),g.showHD=!g.showHD,document.getElementById("".concat(g.jSPlugin.id,"-hdSelect"))&&(document.getElementById("".concat(g.jSPlugin.id,"-hdSelect")).style.display=document.getElementById("".concat(g.jSPlugin.id,"-hdSelect")).style.display==="none"?"block":"none",g.isMobile&&(document.getElementById("".concat(g.jSPlugin.id,"-select-hd-mask")).style.display=document.getElementById("".concat(g.jSPlugin.id,"-select-hd-mask")).style.display==="none"?"block":"none")),g.isMobile&&X&&g.showHD?document.getElementById("".concat(g.jSPlugin.id,"-hdSelect")).className="hd speed-select mobile expend":document.getElementById("".concat(g.jSPlugin.id,"-hdSelect")).className=g.isMobile?"hd speed-select mobile":"speed-select")},L;case"speed":return L.title="回放倍速",L.id=m,L.domString='')+'- 4倍
')+'- 2倍
')+'- 1倍(正常播放)
')+'- 0.5倍
')+'- 取消
')+"
"+`
+ `)+`')+"",N.onclick=function(l2){var s2=g.decoderState.state,Q=s2.hd,X=s2.expend,D2=s2.recordvideo,g2=s2.play;g2&&(Q&&l2.target.id==="".concat(g.jSPlugin.id,"-select-sd")?(console.log("切换到标清"),g.jSPlugin.changeVideoLevel(0),g.setDecoderState({hd:!1}),g.resetMobileZoomStatus(),D2&&g.setDecoderState({recordvideo:!1}),g.setDecoderState({zoom:!1}),g.jSPlugin.Zoom.stopZoom()):!Q&&l2.target.id==="".concat(g.jSPlugin.id,"-select-hd")&&(g.jSPlugin.changeVideoLevel(1),g.setDecoderState({hd:!0}),g.resetMobileZoomStatus(),D2&&g.setDecoderState({recordvideo:!1}),g.setDecoderState({zoom:!1}),g.jSPlugin.Zoom.stopZoom()),g.showHD=!g.showHD,document.getElementById("".concat(g.jSPlugin.id,"-hdSelect"))&&(document.getElementById("".concat(g.jSPlugin.id,"-hdSelect")).style.display=document.getElementById("".concat(g.jSPlugin.id,"-hdSelect")).style.display==="none"?"block":"none",g.isMobile&&(document.getElementById("".concat(g.jSPlugin.id,"-select-hd-mask")).style.display=document.getElementById("".concat(g.jSPlugin.id,"-select-hd-mask")).style.display==="none"?"block":"none")),g.isMobile&&X&&g.showHD?document.getElementById("".concat(g.jSPlugin.id,"-hdSelect")).className="hd speed-select mobile expend":document.getElementById("".concat(g.jSPlugin.id,"-hdSelect")).className=g.isMobile?"hd speed-select mobile":"speed-select")},N;case"speed":return N.title="回放倍速",N.id=m,N.domString='')+'- 4倍
')+'- 2倍
')+'- 1倍(正常播放)
')+'- 0.5倍
')+'- 取消
')+"
"+`
`).concat(this.nextRate===1?"倍速":"".concat(this.nextRate,"倍").replace("3","0.5"),`
- `)+`')+"",this.isMobile||(L.onmouseenter=function(l2){var s2=g.decoderState.state.play;if(!s2)return!1;console.log("鼠标移入",l2),g.setDecoderState({speed:!0}),document.getElementById("".concat(g.jSPlugin.id,"-speedSelect"))&&(document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).style.display="block")},L.onmouseleave=function(l2){var s2=g.decoderState.state.play;if(!s2)return!1;console.log("鼠标移出",l2),g.setDecoderState({speed:!1}),document.getElementById("".concat(g.jSPlugin.id,"-speedSelect"))&&(document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).style.display="none")}),L.onclick=function(l2){var s2=g.decoderState.state,Q=s2.speed,X=s2.expend,D2=s2.play;if(!D2)return!1;if(!Q&&g.isMobile&&(document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).className=X?"speed speed-select mobile expend":"speed speed-select mobile"),g.nextRate=1,l2.target.id)switch(l2.target.id){case"".concat(g.jSPlugin.id,"-select-speed1"):console.log("倍速1"),g.nextRate=1,g.jSPlugin.jSPlugin.JS_Speed(g.nextRate),g.changeRecSpeed(1),g.jSPlugin.speed=1,g.setDecoderState({speed:!Q});break;case"".concat(g.jSPlugin.id,"-select-speed2"):console.log("倍速2"),g.nextRate=2,g.jSPlugin.jSPlugin.JS_Speed(g.nextRate),g.changeRecSpeed(2),g.jSPlugin.speed=2,g.setDecoderState({speed:!Q});break;case"".concat(g.jSPlugin.id,"-select-speed4"):console.log("倍速4"),g.nextRate=4,g.jSPlugin.jSPlugin.JS_Speed(g.nextRate),g.changeRecSpeed(4),g.jSPlugin.speed=4,g.setDecoderState({speed:!Q});break;case"".concat(g.jSPlugin.id,"-select-speed05"):console.log("倍速05"),g.nextRate=3,g.jSPlugin.jSPlugin.JS_Speed(g.nextRate),g.changeRecSpeed(.5),g.jSPlugin.speed=.5,g.setDecoderState({speed:!Q});break;default:g.isMobile?g.setDecoderState({speed:!Q}):g.setDecoderState({speed:!0});break}!g.isMobile&&l2.target.id==="".concat(g.jSPlugin.id,"-speed-text")?document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).style.display="block":document.getElementById("".concat(g.jSPlugin.id,"-speedSelect"))&&(document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).style.display=document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).style.display==="none"?"block":"none")},L;case"deviceName":return L.title="设备名称",L.id=m,L.domString="设备名称",L.onclick=function(){},L;case"deviceID":return L.title="设备序列号",L.id=m,L.domString="设备序列号",L.onclick=function(){},L;case"cloudRec":return L.title="云存储回放",L.id=m,L.domString=`
+ `)+`')+"",this.isMobile||(N.onmouseenter=function(l2){var s2=g.decoderState.state.play;if(!s2)return!1;console.log("鼠标移入",l2),g.setDecoderState({speed:!0}),document.getElementById("".concat(g.jSPlugin.id,"-speedSelect"))&&(document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).style.display="block")},N.onmouseleave=function(l2){var s2=g.decoderState.state.play;if(!s2)return!1;console.log("鼠标移出",l2),g.setDecoderState({speed:!1}),document.getElementById("".concat(g.jSPlugin.id,"-speedSelect"))&&(document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).style.display="none")}),N.onclick=function(l2){var s2=g.decoderState.state,Q=s2.speed,X=s2.expend,D2=s2.play;if(!D2)return!1;if(!Q&&g.isMobile&&(document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).className=X?"speed speed-select mobile expend":"speed speed-select mobile"),g.nextRate=1,l2.target.id)switch(l2.target.id){case"".concat(g.jSPlugin.id,"-select-speed1"):console.log("倍速1"),g.nextRate=1,g.jSPlugin.jSPlugin.JS_Speed(g.nextRate),g.changeRecSpeed(1),g.jSPlugin.speed=1,g.setDecoderState({speed:!Q});break;case"".concat(g.jSPlugin.id,"-select-speed2"):console.log("倍速2"),g.nextRate=2,g.jSPlugin.jSPlugin.JS_Speed(g.nextRate),g.changeRecSpeed(2),g.jSPlugin.speed=2,g.setDecoderState({speed:!Q});break;case"".concat(g.jSPlugin.id,"-select-speed4"):console.log("倍速4"),g.nextRate=4,g.jSPlugin.jSPlugin.JS_Speed(g.nextRate),g.changeRecSpeed(4),g.jSPlugin.speed=4,g.setDecoderState({speed:!Q});break;case"".concat(g.jSPlugin.id,"-select-speed05"):console.log("倍速05"),g.nextRate=3,g.jSPlugin.jSPlugin.JS_Speed(g.nextRate),g.changeRecSpeed(.5),g.jSPlugin.speed=.5,g.setDecoderState({speed:!Q});break;default:g.isMobile?g.setDecoderState({speed:!Q}):g.setDecoderState({speed:!0});break}!g.isMobile&&l2.target.id==="".concat(g.jSPlugin.id,"-speed-text")?document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).style.display="block":document.getElementById("".concat(g.jSPlugin.id,"-speedSelect"))&&(document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).style.display=document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).style.display==="none"?"block":"none")},N;case"deviceName":return N.title="设备名称",N.id=m,N.domString="设备名称",N.onclick=function(){},N;case"deviceID":return N.title="设备序列号",N.id=m,N.domString="设备序列号",N.onclick=function(){},N;case"cloudRec":return N.title="云存储回放",N.id=m,N.domString=`
-
+
@@ -872,9 +872,9 @@ t=0 0\r
c-0.2-1.9-1.7-3.3-3.6-3.3C7.5,5.1,6,6.6,5.8,8.5l0,0.4l-0.4,0c-1.4,0.2-2.5,1.4-2.5,2.9C2.8,13.3,4.1,14.6,5.6,14.7z"/>
- `),L.onclick=function(){console.log("点击云回放"),g.setDecoderState({type:"cloud.rec",cloudRec:!0,rec:!1}),g.jSPlugin.changePlayUrl({type:"cloud.rec"},function(){console.log(g.jSPlugin);var l2=h("begin",g.jSPlugin.url)||new Date().Format("yyyyMMdd");g.Rec.renderRec("".concat(l2.slice(0,4),"-").concat(l2.slice(4,6),"-").concat(l2.slice(6,8)));var s2=g.decoderState.state.zoom;s2&&(g.setDecoderState({zoom:!1}),g.jSPlugin.Zoom.stopZoom())}),console.log(g.jSPlugin)},L;case"rec":return L.title="本地存储",L.id=m,L.domString=`
+ `),N.onclick=function(){console.log("点击云回放"),g.setDecoderState({type:"cloud.rec",cloudRec:!0,rec:!1}),g.jSPlugin.changePlayUrl({type:"cloud.rec"},function(){console.log(g.jSPlugin);var l2=h("begin",g.jSPlugin.url)||new Date().Format("yyyyMMdd");g.Rec.renderRec("".concat(l2.slice(0,4),"-").concat(l2.slice(4,6),"-").concat(l2.slice(6,8)));var s2=g.decoderState.state.zoom;s2&&(g.setDecoderState({zoom:!1}),g.jSPlugin.Zoom.stopZoom())}),console.log(g.jSPlugin)},N;case"rec":return N.title="本地存储",N.id=m,N.domString=`
-
+
@@ -884,22 +884,22 @@ t=0 0\r
/>
- `),L.onclick=function(){console.log("点击本地回放"),g.setDecoderState({type:"rec",cloudRec:!1,rec:!0}),g.jSPlugin.changePlayUrl({type:"rec"},function(){console.log("---------本地回放"),console.log(g.jSPlugin);var l2=h("begin",g.jSPlugin.url)||new Date().Format("yyyyMMdd");g.Rec.renderRec("".concat(l2.slice(0,4),"-").concat(l2.slice(4,6),"-").concat(l2.slice(6,8)));var s2=g.decoderState.state.zoom;s2&&(g.setDecoderState({zoom:!1}),g.jSPlugin.Zoom.stopZoom())}),console.log(g.jSPlugin)},L;default:return L}}},{key:"changeRecSpeed",value:function(m){var g=this,S=function(L){if(console.log("setLiActive",L),!document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")))return!1;document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).childNodes[0].className=document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).childNodes[0].className.replace("active","default"),document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).childNodes[1].className=document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).childNodes[1].className.replace("active","default"),document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).childNodes[2].className=document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).childNodes[2].className.replace("active","default"),document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).childNodes[3].className=document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).childNodes[3].className.replace("active","default"),document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).childNodes[L].className=document.getElementById("".concat(g.jSPlugin.id,"-speedSelect")).childNodes[L].className.replace("default","active")},x="1";switch(m){case 1:S(2),x="倍速";break;case 2:S(1),x="".concat(m,"倍");break;case 4:S(0),x="".concat(m,"倍");break;case .5:S(3),x="".concat(m,"倍");break;default:S(2),x="".concat(m,"倍");break}document.getElementById("".concat(this.jSPlugin.id,"-speed-text"))&&(document.getElementById("".concat(this.jSPlugin.id,"-speed-text")).innerHTML=x)}},{key:"initThemeData",value:function(){var m=this,g=this.themeData,S=g.header,x=g.footer,E=this.jSPlugin.id;if(this.header=N2.header,this.footer=N2.footer,this.isNeedRenderHeader=H.findIndex(S.btnList,function(I){return I.isrender>0})>=0,this.isMobile&&(this.isNeedRenderHeader=H.findIndex(S.btnList,function(I){return I.isrender>0&&I.iconId==="deviceID"||I.isrender>0&&I.iconId==="deviceName"})>=0),this.isNeedRenderFooter=H.findIndex(x.btnList,function(I){return I.isrender>0})>=0,this.isNeedRenderTimeLine=H.findIndex(S.btnList,function(I){return I.iconId==="cloudRec"&&I.isrender===1||I.iconId==="rec"&&I.isrender===1})>=0&&!this.jSPlugin.disabledTimeLine,["date-switch-container-wrap","rec-type-container-wrap","mobile-rec-wrap","mobile-ez-ptz-container"].forEach(function(I,Y){document.getElementById(I)&&document.getElementById(I).parentElement.removeChild(document.getElementById(I))}),this.isNeedRenderHeader)if(document.getElementById("".concat(this.jSPlugin.id,"-headControl")))document.getElementById("".concat(this.jSPlugin.id,"-headControl")).innerHTML="");else{var L=document.createElement("div");L.setAttribute("id","".concat(this.jSPlugin.id,"-headControl")),L.setAttribute("class","header-controls"),L.innerHTML="`);var r2={height:this.jSPlugin.width>o1?"48px":"32px","line-height":this.jSPlugin.width>o1?"48px":"32px",display:"flex","justify-content":"space-between",top:0,"z-index":1,background:"#000000",color:"#FFFFFF",width:"100%"};L.style=A1(r2),document.getElementById("".concat(E,"-wrap")).insertBefore(L,document.getElementById(E));var l2=setInterval(function(){window.EZUIKit[m.jSPlugin.id].state.EZUIKitPlayer.init&&clearInterval(l2)},50)}else document.getElementById("".concat(this.jSPlugin.id,"-headControl"))&&document.getElementById("".concat(this.jSPlugin.id,"-headControl")).parentElement.removeChild(document.getElementById("".concat(this.jSPlugin.id,"-headControl")));if(this.isNeedRenderFooter)if(document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")))document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container"))&&(document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")).style.marginTop="-".concat(this.jSPlugin.width>o1?48:32,"px"),document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")).innerHTML='`));else{var s2=document.createElement("div");s2.setAttribute("id","".concat(this.jSPlugin.id,"-ez-iframe-footer-container")),s2.setAttribute("class","ez-iframe-footer-container");var Q={"min-height":this.jSPlugin.width>o1?"48px":"32px","max-height":this.jSPlugin.width>o1?"96px":"80px",position:"relative","margin-top":this.jSPlugin.width>o1?"-48px":"-32px",display:"flex","flex-wrap":"wrap","justify-content":"space-between","z-index":999,top:0,color:"#FFFFFF",width:"100%"};s2.style=A1(Q),s2.innerHTML='`),f(s2,document.getElementById(E))}else document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container"))&&document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")).parentElement.removeChild(document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")));if(this.isNeedRenderHeader&&document.getElementById("".concat(this.jSPlugin.id,"-headControl"))&&(document.getElementById("".concat(this.jSPlugin.id,"-headControl")).style.background=S.backgroundColor,document.getElementById("".concat(this.jSPlugin.id,"-headControl")).style.color=S.color,S.btnList.map(function(I,Y){I.isrender&&m.renderHeader(I.iconId,I.part)})),this.isNeedRenderFooter&&document.getElementById("".concat(this.jSPlugin.id,"-audioControls"))&&(document.getElementById("".concat(this.jSPlugin.id,"-audioControls")).style.background=x.backgroundColor,document.getElementById("".concat(this.jSPlugin.id,"-audioControls")).style.color=x.color,x.btnList.map(function(I,Y){I.isrender&&m.renderFooter(I.iconId,I.part)})),this.isNeedRenderTimeLine)if(this.isMobile)document.getElementById("".concat(this.jSPlugin.id,"-headControl-right"))&&(document.getElementById("".concat(this.jSPlugin.id,"-headControl-right")).style.display="none"),this.Rec=new Z2(this.jSPlugin,this.changeRecSpeed,this.resetMobileZoomStatus);else{this.Rec?(this.Rec.unSyncTimeLine(),this.Rec.recInit()):(this.jSPlugin.decoderState=this.decoderState,this.jSPlugin.setDecoderState=this.setDecoderState,this.Rec=new h3(this.jSPlugin));var X=setInterval(function(){window.EZUIKit[m.jSPlugin.id].state.EZUIKitPlayer.init&&clearInterval(X)},50)}var D2=H.findIndex(this.themeData.footer.btnList,function(I){return I.iconId==="pantile"&&I.isrender===1})>=0&&!this.jSPlugin.disabledPTZ;D2&&(this.isMobile&&(this.MobilePtz=new W2(this.jSPlugin)),this.Ptz=new C3(this.jSPlugin));var g2=function(){var Y=m.decoderState.state,B=Y.expend,A=Y.webExpend,k=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;k||(m.jSPlugin.jSPlugin.JS_Resize(m.jSPlugin.width,m.jSPlugin.height),B&&m.setDecoderState({expend:!1}),A&&m.setDecoderState({webExpend:!1})),m.jSPlugin.Theme.Rec&&m.jSPlugin.Theme.Rec.recAutoSize()};if(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].forEach(function(I){window.addEventListener(I,function(Y){return g2()})}),this.themeData.poster){this.jSPlugin.poster=this.themeData.poster;var C=setInterval(function(){window.EZUIKit[m.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(C),m.jSPlugin.setPoster(m.themeData.poster))},50)}this.inited=!0,this.getDeviceInfo()}},{key:"resetMobileZoomStatus",value:function(){if(this.isMobile){var m=document.getElementById("".concat(this.jSPlugin.id,"-zoom-container"));m&&m.style&&m.style.display!="none"&&(console.log("结束电子放大"),m.style.display="none"),this.jSPlugin.Zoom.resetZoom()}}},{key:"getDeviceInfo",value:function(){var m=this,g=function(x){x.code==200&&x.data&&(x.data.isEncrypt&&setTimeout(function(){m.pluginStatus.loadingClear(),m.pluginStatus.loadingSetText({text:"设备已加密",color:"red"})},1500),document.getElementById("".concat(m.jSPlugin.id,"-deviceName-content"))&&(document.getElementById("".concat(m.jSPlugin.id,"-deviceName-content")).style.maxWidth="100%",document.getElementById("".concat(m.jSPlugin.id,"-deviceName-content")).style.overflow="hidden",document.getElementById("".concat(m.jSPlugin.id,"-deviceName-content")).style.textOverflow="ellipsis",document.getElementById("".concat(m.jSPlugin.id,"-deviceName-content")).style.whiteSpace="nowrap",document.getElementById("".concat(m.jSPlugin.id,"-deviceName-content")).innerHTML=x.data.deviceName),document.getElementById("".concat(m.jSPlugin.id,"-deviceID-content"))&&(document.getElementById("".concat(m.jSPlugin.id,"-deviceID-content")).style.maxWidth="100%",document.getElementById("".concat(m.jSPlugin.id,"-deviceID-content")).style.overflow="hidden",document.getElementById("".concat(m.jSPlugin.id,"-deviceID-content")).style.textOverflow="ellipsis",document.getElementById("".concat(m.jSPlugin.id,"-deviceID-content")).style.whiteSpace="nowrap",document.getElementById("".concat(m.jSPlugin.id,"-deviceID-content")).innerHTML=P(m.jSPlugin.url).deviceSerial))};j(this.jSPlugin.env.domain+"/api/lapp/device/info","POST",{accessToken:this.jSPlugin.accessToken,deviceSerial:P(this.jSPlugin.url).deviceSerial},"",g)}},{key:"editStart",value:function(m){var g=document.getElementById("".concat(this.jSPlugin.id,"-audioControls")),S=document.getElementById("".concat(this.jSPlugin.id,"-headControl"));S&&S.setAttribute("class","header-controls themeEditing"),g&&g.setAttribute("class","footer-controls themeEditing"),this.setDecoderState({isEditing:!0})}},{key:"editEnd",value:function(m){var g=document.getElementById("".concat(this.jSPlugin.id,"-audioControls")),S=document.getElementById("".concat(this.jSPlugin.id,"-headControl"));S&&S.setAttribute("class","header-controls"),g&&g.setAttribute("class","footer-controls"),this.setDecoderState({isEditing:!1})}},{key:"webExpend",value:function(){var m=this,g=this.decoderState.state;g.webExpend;var S=g.expend,x=g.play;if(!x)return!1;if(S)return console.log("正在全局全屏"),!1;console.log("执行网页全屏");var E=0,L=0,r2=b(document.getElementById("".concat(this.jSPlugin.id,"-wrap")));r2.then(function(l2){console.log("全屏promise",window.screen.width),document.getElementById("".concat(m.jSPlugin.id,"-canvas-container"))&&(E=parseInt(window.getComputedStyle(document.getElementById("".concat(m.jSPlugin.id,"-canvas-container"))).height,10)),document.getElementById("".concat(m.jSPlugin.id,"-headControl"))&&(L=parseInt(window.getComputedStyle(document.getElementById("".concat(m.jSPlugin.id,"-headControl"))).height,10)),console.log("this.jSPlugin.JS_Resiz",E,L,document.body.clientWidth),m.jSPlugin.jSPlugin.JS_Resize(window.screen.width,window.screen.height-E-L)}).catch(function(l2){console.log(l2)})}},{key:"expend",value:function(){var m=this,g=this.decoderState.state,S=g.webExpend;g.expend;var x=g.play;if(g.pantile,!x)return!1;if(S)return console.log("正在网站全屏"),!1;if(console.log("执行全局全屏"),this.isMobile){var E=parseInt(getComputedStyle(document.getElementById("".concat(this.jSPlugin.id,"-wrap"))).height,10)-parseInt(getComputedStyle(document.getElementById(this.jSPlugin.id)).height,10);_(document.getElementById("".concat(this.jSPlugin.id,"-wrap"))),setTimeout(function(){var r2=document.documentElement.clientWidth,l2=document.documentElement.clientHeight;document.getElementById("".concat(m.jSPlugin.id)).style["backface-visibility"]="hidden",m.jSPlugin.jSPlugin.JS_Resize(l2,r2-E)},100)}else{var L=b(document.getElementById("".concat(this.jSPlugin.id)));L.then(function(r2){m.jSPlugin.jSPlugin.JS_Resize(window.screen.width,window.screen.height)}).catch(function(r2){console.log(r2)})}}}]),R}();Date.prototype.Format=function(R){var N={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(R)&&(R=R.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var m in N)new RegExp("("+m+")").test(R)&&(R=R.replace(RegExp.$1,RegExp.$1.length==1?N[m]:("00"+N[m]).substr((""+N[m]).length)));return R};var l0=function(){function R(N,m){if(i(this,R),this.params=N,this.state={},this.jsPlugin=m,this.url="https://log.ys7.com/statistics.do?",N.env)switch(N.env){case"test12":this.url="https://test12dclog.ys7.com/statistics.do?";break;case"online":break;default:this.url=N.env;break}}return a(R,[{key:"uuid",value:function(){for(var m=[],g="0123456789abcdef",S=0;S<36;S++)m[S]=g.substr(Math.floor(Math.random()*16),1);m[14]="4",m[19]=g.substr(m[19]&3|8,1),m[8]=m[13]=m[18]=m[23]="-";var x=m.join("");return x}},{key:"dclog",value:function(m){var g=this.url,S=Object.assign({},{systemName:"open_website_monitor"},{bn:"ezuikit-js"},m,{un:m.url},{st:new Date().getTime(),h:window.location.pathname});Object.keys(S).forEach(function(E,L){var r2=S[E];typeof S[E]=="string"&&(r2=S[E].replace("%","%25")),typeof S[E]!="undefined"&&(g+="".concat(L===0?"":"&").concat(E,"=").concat(encodeURIComponent(r2)))});var x=new Image;x.src=g}},{key:"localInfoLog",value:function(m){var g=this.url,S=window.location.protocol+"//"+window.location.host,x={systemName:"open_netstream_localinfo",Ver:"v6.0.0",PlatAddr:S,ExterVer:"v6.0.0",OpId:this.uuid(),CltType:102,AppId:"",playurl:encodeURIComponent(this.jsPlugin.url),StartTime:new Date().Format("yyyy-MM-dd hh:mm:ss.S"),OS:navigator.platform};x=Object.assign(x,m),Object.keys(x).forEach(function(L,r2){var l2=x[L];typeof x[L]=="string"&&(l2=x[L].replace("%","%25")),typeof x[L]!="undefined"&&(g+="".concat(r2===0?"":"&").concat(L,"=").concat(encodeURIComponent(l2)))});var E=new Image;E.src=g}},{key:"playLog",value:function(m){var g=this.url,S=g,x={systemName:"open_netstream_play_main",playurl:encodeURIComponent(this.jsPlugin.url),Time:new Date().Format("yyyy-MM-dd hh:mm:ss.S"),Via:2,OpId:this.uuid()};x=Object.assign(x,m),Object.keys(x).forEach(function(L,r2){var l2=x[L];typeof x[L]=="string"&&(l2=x[L].replace("%","%25")),typeof x[L]!="undefined"&&(S+="".concat(r2===0?"":"&").concat(L,"=").concat(encodeURIComponent(l2)))});var E=new Image;E.src=S}}]),R}();(function(R,N){t(n)==="object"&&t(n.exports)==="object"?n.exports=R.document?N(R,!0):function(m){if(!m.document)throw new Error("EZUIPlayer requires a window with a document");return N(m)}:N(R)})(typeof window!="undefined"?window:void 0,function(R,N){var m;function g(Q,X){for(var D2=document.getElementsByTagName("head")[0].getElementsByTagName("script"),g2=!1,C=0;C0&&(t3=X.controls.join(","),R2+="&controls="+t3)),X.websocketParams&&(R2+="&websocketParams="+JSON.stringify(X.websocketParams)),R2;case"standard":return L+"/ezopen/h5/iframe?bSupporDoubleClickFull=0&url="+V.opt.url.replace("?","&")+"&autoplay="+V.opt.autoplay+"&audio="+V.opt.audio+"&accessToken="+X.accessToken+"&templete=1&id="+D2+"&decoderVersion="+V.opt.decoderVersion;case"security":return L+"/ezopen/h5/iframe_se?bSupporDoubleClickFull=0&url="+V.opt.url.replace("?","&")+"&autoplay="+V.opt.autoplay+"&audio="+V.opt.audio+"&accessToken="+X.accessToken+"&templete=0&id="+D2+"&decoderVersion="+V.opt.decoderVersion;case"theme":return R2=L+"/jssdk/theme.html?url=".concat(X.url,"&accessToken=").concat(X.accessToken,"&id=").concat(D2,"&isMobile=").concat(X.isMobile),typeof X.isMobile!="undefined"&&(R2+="&isMobile="+X.isMobile),typeof X.autoplay!="undefined"&&(R2+="&autoplay="+X.autoplay),typeof X.domain!="undefined"&&X.domain=="https://test12open.ys7.com"&&(R2+="&env=test12"),typeof X.env!="undefined"&&typeof X.env.domain!="undefined"&&X.env.domain=="https://test12open.ys7.com"&&(R2+="&env=test12"),typeof X.header!="undefined"&&(R2+="&header="+X.header),R2;default:return L+"/ezopen/h5/iframe?bSupporDoubleClickFull=0&url="+V.opt.url.replace("?","&")+"&autoplay="+V.opt.autoplay+"&audio="+V.opt.audio+"&accessToken="+X.accessToken+"&templete=0&id="+D2+"&decoderVersion="+V.opt.decoderVersion}}C.src=I();var Y=document.getElementById(D2).offsetHeight,B=document.getElementById(D2).offsetWidth;X.height&&(Y=parseInt(X.height),/\%$/.test(X.height)&&(B=document.getElementById(D2).offsetWidth*(parseInt(X.height)/100))),X.width&&(B=parseInt(X.width),/\%$/.test(X.width)&&(B=document.getElementById(D2).offsetWidth*(parseInt(X.width)/100))),C.width=B,C.height=Y,C.id="EZUIKitPlayer-"+D2,C.setAttribute("allowfullscreen",!0),C.setAttribute("allow","autoplay"),C.setAttribute("frameborder",0),g2.appendChild(C);var A=V.opt.filePath+"/js/jquery.js",k="https://open.ys7.com/assets/layer/layer.js";g(A,function(){g(k,function(){if(S1().headerContainer){var R2=document.createElement("div");R2.setAttribute("class","panel-top");var t3=document.createElement("div");if(t3.setAttribute("class","contros"),R2.appendChild(t3),g2.insertBefore(R2,C),S1().capturePictureModule){var Q2=document.createElement("span");Q2.innerHTML=' ',Q2.onclick=function(){V.capturePicture()},t3.appendChild(Q2)}if(console.log("matchHeaderOpt().saveModule",S1().saveModule),S1().saveModule){var c3=document.createElement("span");c3.innerHTML=' ',c3.onclick=function(){V.startSave(),document.getElementById("startSave").setAttribute("class","icon hide"),document.getElementById("stopSave").setAttribute("class","icon")},t3.appendChild(c3);var b3=document.createElement("span");b3.innerHTML=' ',b3.onclick=function(){V.stopSave(),document.getElementById("stopSave").setAttribute("class","icon hide"),document.getElementById("startSave").setAttribute("class","icon")},t3.appendChild(b3)}if(S1().zoomModule){var M3=document.createElement("span");M3.innerHTML=' ',M3.onclick=function(){V.enableZoom(),document.getElementById("enableZoom").setAttribute("class","icon hide"),document.getElementById("closeZoom").setAttribute("class","icon")},t3.appendChild(M3);var T3=document.createElement("span");T3.innerHTML=' ',T3.onclick=function(){V.closeZoom(),document.getElementById("closeZoom").setAttribute("class","icon hide"),document.getElementById("enableZoom").setAttribute("class","icon")},t3.appendChild(T3)}}function f1(){var B0={footerContainer:!1,talkModule:!1,broadcastModule:!1,hdModule:!1,fullScreenModule:!1},k1=V.opt.template;switch(k1){case"simple":if(X.footer&&X.footer instanceof Array){var w1=X.footer;B0={footerContainer:!0,talkModule:w1.indexOf("talk")!==-1,broadcastModule:w1.indexOf("broadcast")!==-1,hdModule:w1.indexOf("hd")!==-1,fullScreenModule:w1.indexOf("fullScreen")!==-1}}break;case"standard":if(X.footer&&X.footer instanceof Array){var w1=X.footer;B0={footerContainer:!0,talkModule:w1.indexOf("talk")!==-1,broadcastModule:w1.indexOf("broadcast")!==-1,hdModule:w1.indexOf("hd")!==-1,fullScreenModule:w1.indexOf("fullScreen")!==-1}}break;case"security":break;case"voice":B0={footerContainer:!0,talkModule:!0,broadcastModule:!0,hdModule:!0,fullScreenModule:!0};break}return B0}function S1(){var B0={headerContainer:!1,capturePictureModule:!1,saveModule:!1,zoomModule:!1},k1=V.opt.template;switch(k1){case"simple":if(X.header&&X.header instanceof Array){var w1=X.header;B0={headerContainer:!0,capturePictureModule:w1.indexOf("capturePicture")!==-1,saveModule:w1.indexOf("save")!==-1,zoomModule:w1.indexOf("zoom")!==-1}}break;case"standard":break;case"security":break;case"voice":B0={headerContainer:!0,capturePictureModule:!0,saveModule:!0,zoomModule:!0};break}return B0}if(f1().footerContainer||V.opt.plugin.indexOf("talk")!==-1){var T1=V.opt.filePath+"/npm/css/recoder.css",N1=V.opt.filePath+"/npm/js/recoder.js",L1=V.opt.filePath+"/recorder.js";if(S(T1,function(){}),g(N1,function(){g(L1,function(){})}),V.opt.plugin.indexOf("talk")!==-1||f1().talkModule){var G1=function(k1){if(console.log("data",k1),k1.code==200){var w1=k1.data;if(w1){var Z1=w1.rtcUrl;Z1.indexOf("ws")===-1&&(Z1=Z1.replace("https","wss").replace("rtcgw","rtcgw-ws")),V.opt.rtcUrl=Z1,V.opt.ttsUrl="tts://"+w1.ttsUrl;var I0="talk://"+V.opt.deviceSerial+":0:"+V.opt.channelNo+":cas.ys7.com:6500";if(V.opt.talkLink=V.opt.ttsUrl+"/"+I0,V.opt.stream=w1.stream,console.log("_this.opt",V.opt),!V.opt.isReliesReady){var d2=V.opt.filePath+"/npm/js/adapeter.js",O2=V.opt.filePath+"/npm/js/janus.js",j2=V.opt.filePath+"/npm/js/tts.js";console.log("加载jquery.js"),g(d2,function(){console.log("加载adapeter.js"),g(O2,function(){console.log("加载janus.js"),g(j2,function(){console.log("加载tts.js"),V.opt.isReliesReady=!0})})},function(){return!!R.adapter})}if(!document.getElementById("audioleft")){var K2=document.createElement("div");K2.style.display="none",K2.id="audioleft",document.body.appendChild(K2)}if(!document.getElementById("audioright")){var f2=document.createElement("div");f2.style.display="none",f2.id="audioright",document.body.appendChild(f2)}}}E.opt=V.opt,R.EZUIKit&&(R.EZUIKit.opt=V.opt)};x(V.opt.apiDomain,"POST",{accessToken:V.opt.accessToken,deviceSerial:V.opt.deviceSerial,channelNo:V.opt.channelNo},"",G1)}if(f1().footerContainer){var y0=function(k1,w1){if(clearInterval(E.state.countTimer),k1==="add"){var Z1=w1;E.state.countTimer=setInterval(function(){++Z1,document.getElementById("time-area").innerHTML=I0(Z1)},1e3)}else if(k1==="sub"){var Z1=w1;E.state.countTimer=setInterval(function(){Z1>0?(Z1--,document.getElementById("time-area").innerHTML=I0(Z1)):(clearInterval(E.state.countTimer),E.state.countTimer=void 0,console.log("倒计时结束,开启声音"))},1e3)}else k1==="destory"&&(clearInterval(E.state.countTimer),E.state.countTimer=void 0,document.getElementById("time-area").innerHTML="00:00");function I0(d2){var O2=parseInt(d2),j2=0,K2=0,f2="00",a3="00",n3="00";return O2>59&&(j2=parseInt(O2/60),O2=parseInt(O2%60),j2>59&&(K2=parseInt(j2/60),j2=parseInt(j2%60))),f2=parseInt(O2)>9?parseInt(O2):"0"+parseInt(O2),a3=parseInt(j2)>9?parseInt(j2):"0"+parseInt(j2),n3=parseInt(K2)>9?parseInt(K2):"0"+parseInt(K2),K2>0?n3+":"+a3+":"+f2:j2>0?a3+":"+f2:"00:"+f2}},B2=document.createElement("div");if(B2.setAttribute("class","audio-controls"),g2.appendChild(B2),f1().hdModule||f1().fullScreenModule){var y3=document.createElement("div");if(y3.setAttribute("class","contros"),B2.appendChild(y3),f1().hdModule){var P3=document.createElement("span");P3.setAttribute("id","video-hd"),P3.innerHTML=V.opt.url.indexOf(".hd")===-1?"标清":"高清",P3.onclick=function(){if(V.opt.videoLoading)return layer.msg("视频加载中,请稍后"),!1;var B0=V.stop();V.opt.videoLoading=!0,B0.then(function(k1){V.opt.videoLoading=!1,V.opt.url.indexOf(".hd")===-1?(V.opt.url=V.opt.url.replace(".live",".hd.live"),P3.innerHTML=V.opt.url.indexOf(".hd")===-1?"标清":"高清"):(V.opt.url=V.opt.url.replace(".hd.live",".live"),P3.innerHTML=V.opt.url.indexOf(".hd")===-1?"标清":"高清"),V.play(V.opt.url)}).catch(function(k1){console.log("error",k1)})},y3.appendChild(P3)}if(f1().fullScreenModule){var t1=document.createElement("span");t1.setAttribute("class","hide"),t1.setAttribute("id","ezuikit-open-sound"),t1.setAttribute("title","打开声音"),t1.setAttribute("style","vertical-align: top;"),t1.innerHTML='',t1.onclick=function(){V.openSound(0),t1.setAttribute("class","hide"),v1.setAttribute("class","")};var v1=document.createElement("span");t1.setAttribute("id","ezuikit-close-sound"),v1.setAttribute("class","hide"),v1.setAttribute("title","关闭声音"),v1.setAttribute("style","vertical-align: top;"),v1.innerHTML='',v1.onclick=function(){V.closeSound(0),t1.setAttribute("class",""),v1.setAttribute("class","hide")},y3.appendChild(t1),y3.appendChild(v1)}if(V.opt.audio==1?v1.setAttribute("class",""):(t1.setAttribute("class",""),V.closeSound(0)),f1().fullScreenModule){var j1=document.createElement("span");j1.setAttribute("title","全屏"),j1.setAttribute("style","vertical-align: top;"),j1.innerHTML=' ',j1.onclick=function(){V.fullScreen()},y3.appendChild(j1)}}if(f1().talkModule){var U1=document.createElement("div"),D1=document.createElement("div");U1.setAttribute("class","ptp-talk off"),U1.innerHTML=' 开启对讲',U1.onclick=function(){if(console.log("EZUIKit.state.countTimer",E.state.countTimer),E.state.countTimer)return R.layer.msg("语音设备正忙,请稍后重试"),!1;y0("add",0),console.log("开始对讲,关闭声音"),V.closeSound(0),console.log(V.opt),V.startTalk(),this.setAttribute("class","ptp-talk off hide"),D1.setAttribute("class","ptp-talk on")},D1.setAttribute("class","ptp-talk on hide"),D1.innerHTML=' 关闭对讲',D1.onclick=function(){console.log(V.opt),V.stopTalk(),y0("destory",0),V.openSound(0),this.setAttribute("class","ptp-talk on hide"),U1.setAttribute("class","ptp-talk off")},B2.appendChild(U1),B2.appendChild(D1)}if(f1().broadcastModule){var u0=function B0(k1){function w1(Z1){console.log("data",Z1),Z1.code==200&&(On(Z1.data,5),E.state.page=Z1.page.page,k1==0&&Z1.data.length==0&&!E.state.fetchDefaultList&&(E.state.fetchDefaultList=!0,B0(0)))}x(L+"/api/lapp/voice/query","POST",{accessToken:V.opt.accessToken,pageStart:k1,pageSize:E.state.pageSize,default:E.state.fetchDefaultList?"true":"false"},"",w1)},On=function(k1){if(console.log("renderVoliceList",k1),k1&&k1.length>0){for(var w1=0;w1"+(k1[w1].voiceName.length>10?k1[w1].voiceName.substr(0,10)+"...":k1[w1].voiceName)+"",document.getElementsByClassName("voice-list-ul")[0].append(Z1),Z1.onclick=function(I0){console.log("点击元素",I0.target,I0.target.dataset.url);var d2=I0.target.dataset.url,O2=I0.target.dataset.time;Dt(d2,O2)}}k1.length===E.state.pageSize?document.getElementById("voice-list-end").innerHTML="向下滚动加载更多":document.getElementById("voice-list-end").innerHTML="没有更多数据了"}},Dt=function(k1,w1){console.log("播放语音",k1,w1);function Z1(I0){console.log("data.data",I0.data),I0.code==200?y0("sub",parseInt(w1)):I0.code=="10001"?R.layer.msg("未找到当前语音"):R.layer.msg(I0.msg||"发送失败,请稍后再试")}x(L+"/api/lapp/voice/send","POST",{accessToken:V.opt.accessToken,deviceSerial:V.opt.deviceSerial,channelNo:V.opt.channelNo,fileUrl:k1},"",Z1)},et=document.createElement("div"),At=document.createElement("div");et.setAttribute("class","broadcast off"),At.setAttribute("class","broadcast on hide"),et.innerHTML=' 语音播报',et.onclick=function(){this.setAttribute("class","broadcast off hide"),At.setAttribute("class","broadcast on")},At.innerHTML=' 语音播报',At.onclick=function(){this.setAttribute("class","broadcast on hide"),et.setAttribute("class","broadcast off")},B2.appendChild(et),B2.appendChild(At),document.getElementById("voice-custom").onclick=function(){console.log("显示自定义语音"),b0.setAttribute("class","speak off")},u0(0);var b0=document.createElement("div"),Te=document.createElement("div");b0.setAttribute("class","speak off hide"),Te.setAttribute("class","speak on hide"),b0.setAttribute("id","startSpeak"),Te.setAttribute("id","stopSpeak"),b0.innerHTML=' 按住说话',Te.innerHTML=' 松开发送',B2.appendChild(b0),B2.appendChild(Te),document.getElementById("voice-list").onscroll=function(B0){var k1=this.scrollHeight;console.log("sum",k1,this.scrollTop,document.getElementById("voice-list").clientHeight),k1<=this.scrollTop+this.clientHeight&&(console.log("拖动到底,执行加载",E.state.page),u0(++E.state.page))};var yt=document.createElement("div");yt.setAttribute("class","time-area"),yt.setAttribute("id","time-area"),yt.innerHTML="00:00",B2.appendChild(yt);var d0;document.getElementById("startSpeak").onmousedown=function(){if(E.state.countTimer)return R.layer.msg("语音设备正忙,请稍后重试"),!1;console.log("按住说话"),b0.setAttribute("class","speak off hide"),Te.setAttribute("class","speak on"),Z1(),y0("add",0),setTimeout(function(){E.state.recodeTime=0,w1()},1e3),E.state.recodeTimer&&clearInterval(E.state.recodeTimer),E.state.recodeTimer=setInterval(function(){E.state.recodeTime>=59?(V.stopTalk(),y0("destory",0),this.setAttribute("class","ptp-talk on hide"),U1.setAttribute("class","ptp-talk off"),R.layer.msg("不超过1分钟")):E.state.recodeTime=E.state.recodeTime+1},1e3);var B0;function k1(I0){var d2=B0.createMediaStreamSource(I0);d0=new R.Recorder(d2)}function w1(){d0&&d0.record()}function Z1(){console.log("run init");try{R.AudioContext=R.AudioContext||R.webkitAudioContext,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia,R.URL=R.URL||R.webkitURL,B0=new AudioContext,console.log("Audio context set up."),console.log("navigator.getUserMedia "+(navigator.getUserMedia?"available.":"not present!"))}catch(I0){console.log("err",I0),R.layer.msg("No web audio support in this browser!")}navigator.getUserMedia({audio:!0},k1,function(I0){console.log("No live audio input: "+I0)})}},document.getElementById("stopSpeak").onmouseup=function(){console.log("松开发送"),Te.setAttribute("class","speak on hide"),B0();function B0(){if(y0("destory",0),E.state.recodeTime<1)return R.layer.msg("说话时间过短"),clearInterval(E.state.recodeTimer),!1;clearInterval(E.state.recodeTimer),k1()}function k1(){try{d0&&d0.stop(),d0&&d0.exportWAV(function(w1){if(console.log("wav_file",w1),w1.size<1e3)return R.layer.msg("录音失败,请重试"),E.state.recodeTime=0,!1;y0("sub",E.state.recodeTime+2);var Z1=new FormData;Z1.append("voiceFile",w1),Z1.append("accessToken",V.opt.accessToken),Z1.append("deviceSerial",V.opt.deviceSerial),Z1.append("channelNo",V.opt.channelNo);function I0(O2){console.log("data.data",O2.data),O2.code==200?y0("sub",E.state.recodeTime+2):O2.code=="10001"?R.layer.msg("未找到当前语音"):R.layer.msg(O2.msg||"发送失败,请稍后再试")}function d2(O2){console.log("err",O2)}x(L+"/api/lapp/voice/sendonce","POST",{voiceFile:w1,accessToken:V.opt.accessToken,deviceSerial:V.opt.deviceSerial,channelNo:V.opt.channelNo},"",I0,d2)}),d0&&d0.clear()}catch(w1){console.log(w1)}}}}}}})});var V=this;R.addEventListener("message",function(R2){R2.origin;var t3=V.opt.id;if(R2.data.type)switch(R2.data.type){case"openSound":t3==R2.data.id&&X.openSoundCallBack&&X.openSoundCallBack(R2.data);break;case"closeSound":t3==R2.data.id&&X.closeSoundCallBack&&X.closeSoundCallBack(R2.data);break;case"capturePicture":t3==R2.data.id&&X.capturePictureCallBack&&X.capturePictureCallBack(R2.data);break;case"startSave":t3==R2.data.id&&X.startSaveCallBack&&X.startSaveCallBack(R2.data);break;case"stopSave":t3==R2.data.id&&X.stopSaveCallBack&&X.stopSaveCallBack(R2.data);break;case"fullScreen":t3==R2.data.id&&X.fullScreenCallBack&&X.fullScreenCallBack(R2.data);break;case"getOSDTime":t3==R2.data.id&&X.getOSDTimeCallBack&&X.getOSDTimeCallBack(R2.data);break;case"handleSuccess":t3==R2.data.id&&X.handleSuccess&&X.handleSuccess(R2.data);break;case"handleError":t3==R2.data.id&&X.handleError&&X.handleError(R2.data);break;case"dblclick":t3==R2.data.id&&V.opt.bSupporDoubleClickFull&&(V.opt.fullScreenStatus===0?V.fullScreen():V.cancelFullScreen());break;case"startTalk":V.startTalk(),V.closeSound();break;case"stopTalk":V.stopTalk(),V.openSound();break;case"clickEventHandle":console.log("event.data",R2.data),X.clickEventHandle&&X.clickEventHandle(R2.data);break;case"removeEventHandle":X.removeEventHandle&&X.removeEventHandle(R2.data);break;case"esc":X.clickEventHandle&&X.clickEventHandle(R2.data);break;case"iframeFullScreen":if(t3==R2.data.id){var Q2=function(b3){var M3=b3.requestFullScreen||b3.webkitRequestFullScreen||b3.mozRequestFullScreen||b3.msRequestFullScreen;if(M3)M3.call(b3);else if(typeof R.ActiveXObject!="undefined"){var T3=new ActiveXObject("WScript.Shell");T3!==null&&T3.SendKeys("{F11}")}};Q2(document.getElementById("EZUIKitPlayer-"+R2.data.id))}break}});function M2(R2){V.opt.fullScreenStatus=R2?1:0,X.fullScreenChangeCallBack&&X.fullScreenChangeCallBack({data:R2,id:V.opt.id})}typeof document.fullScreen!="undefined"?document.addEventListener("fullscreenchange",function(){var R2=document.fullscreen||!1;M2(R2)}):typeof document.webkitIsFullScreen!="undefined"?document.addEventListener("webkitfullscreenchange",function(){var R2=document.webkitIsFullScreen||!1;M2(R2)}):typeof document.mozFullScreen!="undefined"&&document.addEventListener("mozfullscreenchange",function(){var R2=document.mozFullScreen||!1;M2(R2)})};l2.prototype.play=function(Q){var X="EZUIKitPlayer-"+this.opt.id,D2=document.getElementById(X).contentWindow;t(Q)==="object"&&Q.url&&(this.opt.url=Q.url),t(Q)==="object"&&Q.accessToken&&(this.opt.accessToken=Q.accessToken),typeof Q=="string"&&(this.opt.url=Q),D2.postMessage({action:"play",accessToken:this.opt.accessToken,url:this.opt.url},L+"/ezopen/h5/iframe");var g2=this;this.opt.videoLoading=!0;var C=new Promise(function(I,Y){R.addEventListener("message",function(B){var A=g2.opt.id;A==B.data.id&&B.data.type==="handleSuccess"&&(setTimeout(function(){g2.opt.videoLoading=!1},1e3),I(B.data))})});return C},l2.prototype.stop=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("stop",L+"/ezopen/h5/iframe");var D2=this,g2=new Promise(function(C,I){R.addEventListener("message",function(Y){var B=D2.opt.id;B==Y.data.id&&Y.data.type==="stop"&&C(Y.data)})});return g2},l2.prototype.openSound=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("openSound",L+"/ezopen/h5/iframe");var D2=this,g2=new Promise(function(C,I){R.addEventListener("message",function(Y){var B=D2.opt.id;B==Y.data.id&&Y.data.type==="openSound"&&C(Y.data)})});return g2},l2.prototype.closeSound=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("closeSound",L+"/ezopen/h5/iframe");var D2=this,g2=new Promise(function(C,I){R.addEventListener("message",function(Y){var B=D2.opt.id;B==Y.data.id&&Y.data.type==="closeSound"&&C(Y.data)})});return g2},l2.prototype.startSave=function(Q){var X="EZUIKitPlayer-"+this.opt.id,D2=document.getElementById(X).contentWindow;D2.postMessage({action:"startSave",fileName:Q||"default"},L+"/ezopen/h5/iframe");var g2=this,C=new Promise(function(I,Y){R.addEventListener("message",function(B){var A=g2.opt.id;A==B.data.id&&B.data.type==="startSave"&&I(B.data)})});return C},l2.prototype.stopSave=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("stopSave",L+"/ezopen/h5/iframe");var D2=this,g2=new Promise(function(C,I){R.addEventListener("message",function(Y){var B=D2.opt.id;B==Y.data.id&&Y.data.type==="stopSave"&&C(Y.data)})});return g2},l2.prototype.fullScreen=function(){if(this.opt.fullScreenStatus===1)return!1;var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;if(navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)){var D2=document.documentElement.clientWidth,g2=document.documentElement.clientHeight,C=document.body;C=document.getElementById(Q);var I="";I+="width:"+g2+"px;",I+="height:"+D2+"px;",I+="-webkit-transform: rotate(90deg); transform: rotate(90deg);",I+="-webkit-transform-origin: "+D2/2+"px "+D2/2+"px;",I+="transform-origin: "+D2/2+"px "+D2/2+"px;",I+="position: fixed;top: 0;left: 0;z-index:10",C.style.cssText=I,setTimeout(function(){X.postMessage("autoResize",L+"/ezopen/h5/iframe")},500)}else{var Y=function(A){var k=A.requestFullScreen||A.webkitRequestFullScreen||A.mozRequestFullScreen||A.msRequestFullScreen;if(k)k.call(A);else if(typeof R.ActiveXObject!="undefined"){var V=new ActiveXObject("WScript.Shell");V!==null&&V.SendKeys("{F11}")}};Y(document.getElementById(Q))}this.params.fullScreenCallBack&&this.params.fullScreenCallBack(this.opt.id),this.opt.fullScreenStatus=1},l2.prototype.cancelFullScreen=function(){if(this.opt.fullScreenStatus===0)return!1;var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;if(navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)){var D2=document.getElementById(Q).width,g2=document.getElementById(Q).height,C=document.body;C=document.getElementById(Q);var I="";I+="width:"+D2+"px;",I+="height:"+g2+"px;",I+="-webkit-transform: none; transform: none;",I+="-webkit-transform-origin: 0 0;",I+="transform-origin: 0 0;",C.style.cssText=I,setTimeout(function(){X.postMessage("autoResize",L+"/ezopen/h5/iframe")},500);var Y=Q+"cancel-full-screen",B=document.getElementById(Y);B&&document.body.removeChild(B)}else document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen&&document.mozCancelFullScreen();this.params.cancelFullScreenCallBack&&this.params.cancelFullScreenCallBack(this.opt.id),this.opt.fullScreenStatus=0},l2.prototype.capturePicture=function(Q,X){var D2="EZUIKitPlayer-"+this.opt.id,g2=document.getElementById(D2).contentWindow;g2.postMessage({action:"capturePicture",fileName:Q||"default",isUndownload:X},L+"/ezopen/h5/iframe");var C=this,I=new Promise(function(Y,B){R.addEventListener("message",function(A){var k=C.opt.id;k==A.data.id&&A.data.type==="capturePicture"&&Y(A.data)})});return I},l2.prototype.enableZoom=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("enableZoom",L+"/ezopen/h5/iframe")},l2.prototype.closeZoom=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("closeZoom",L+"/ezopen/h5/iframe")},l2.prototype.getOSDTime=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("getOSDTime",L+"/ezopen/h5/iframe");var D2=this,g2=new Promise(function(C,I){R.addEventListener("message",function(Y){var B=D2.opt.id;B==Y.data.id&&Y.data.type==="getOSDTime"&&C(Y.data)})});return g2},l2.prototype.autoResize=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("autoResize",L+"/ezopen/h5/iframe")},l2.prototype.reSize=function(Q,X){var D2="EZUIKitPlayer-"+this.opt.id,g2=document.getElementById(D2).contentWindow,C=document.getElementById(this.opt.id);C.style.width=Q+"px",C.style.height=X+"px",document.getElementById(this.opt.id).style.width=Q+"px",document.getElementById(this.opt.id).style.height=X+"px";var I=document.getElementById(D2);I.setAttribute("width",Q),I.setAttribute("height",X),I.style.width=Q+"px",I.style.height=X+"px",setTimeout(function(){g2.postMessage({action:"autoResize"},L+"/ezopen/h5/iframe")},500)},l2.prototype.startTalk=function(){console.log("执行开始对讲"),console.log(this.opt);var Q=this;E.opt=this.opt,R.EZUIKit&&(R.EZUIKit.opt=this.opt);var X=function(g2){if(g2.code==200){var C=g2.data;if(C){var I=C.rtcUrl;I.indexOf("ws")===-1&&(I=I.replace("https","wss").replace("rtcgw","rtcgw-ws")),Q.opt.rtcUrl=I,Q.opt.ttsUrl="tts://"+C.ttsUrl;var Y="talk://"+Q.opt.deviceSerial+":0:"+Q.opt.channelNo+":cas.ys7.com:6500";Q.opt.talkLink=Q.opt.ttsUrl+"/"+Y,Q.opt.stream=C.stream,R.startTalk()}}};x(Q.opt.apiDomain,"POST",{accessToken:Q.opt.accessToken,deviceSerial:Q.opt.deviceSerial,channelNo:Q.opt.channelNo},"",X)},l2.prototype.stopTalk=function(){console.log("执行结束对讲"),R.stopTalk()},l2.prototype.edit=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("edit",L+"/ezopen/h5/iframe")},l2.prototype.btnReRender=function(Q){var X="EZUIKitPlayer-"+this.opt.id,D2=document.getElementById(X).contentWindow;D2.postMessage({action:"btnReRender",data:Q},L+"/ezopen/h5/iframe")},l2.prototype.changePlayUrl=function(Q){Q.deviceSerial&&(this.opt.deviceSerial=Q.deviceSerial),Q.channelNo&&(this.opt.channelNo=Q.channelNo),Q.accessToken&&(this.opt.accessToken=Q.accessToken);var X="EZUIKitPlayer-"+this.opt.id,D2=document.getElementById(X).contentWindow;D2.postMessage({action:"changePlayUrl",data:Q},L+"/ezopen/h5/iframe")},l2.prototype.fetchThemeData=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage({action:"fetchThemeData"},L+"/ezopen/h5/iframe")},l2.prototype.setThemeData=function(Q,X,D2){var g2="EZUIKitPlayer-"+this.opt.id,C=document.getElementById(g2).contentWindow;C.postMessage({action:"setThemeData",data:{accessToken:Q,header:X,footer:D2}},L+"/ezopen/h5/iframe")},E.EZUIKitPlayer=l2,R.EZUIKitV3=E;var s2=E;return s2});var L0=EZUIKitV3,J1=function(N){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S=void 0,x=void 0,E=void 0,L=[];return function(){var s2=B1(m),Q=new Date().getTime(),X=!S||Q-S>s2;S=Q;for(var D2=arguments.length,g2=Array(D2),C=0;C>>0)+"_",v1=0;return y3}),x("Symbol.iterator",function(B2){if(B2)return B2;B2=Symbol("Symbol.iterator");for(var y3="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),P3=0;P30})>=0,this.isMobile&&(this.isNeedRenderHeader=H.findIndex(S.btnList,function(L){return L.isrender>0&&L.iconId==="deviceID"||L.isrender>0&&L.iconId==="deviceName"})>=0),this.isNeedRenderFooter=H.findIndex(A.btnList,function(L){return L.isrender>0})>=0,this.isNeedRenderTimeLine=H.findIndex(S.btnList,function(L){return L.iconId==="cloudRec"&&L.isrender===1||L.iconId==="rec"&&L.isrender===1})>=0&&!this.jSPlugin.disabledTimeLine,["date-switch-container-wrap","rec-type-container-wrap","mobile-rec-wrap","mobile-ez-ptz-container"].forEach(function(L,Y){document.getElementById(L)&&document.getElementById(L).parentElement.removeChild(document.getElementById(L))}),this.isNeedRenderHeader)if(document.getElementById("".concat(this.jSPlugin.id,"-headControl")))document.getElementById("".concat(this.jSPlugin.id,"-headControl")).innerHTML="");else{var N=document.createElement("div");N.setAttribute("id","".concat(this.jSPlugin.id,"-headControl")),N.setAttribute("class","header-controls"),N.innerHTML="`);var r2={height:this.jSPlugin.width>o1?"48px":"32px","line-height":this.jSPlugin.width>o1?"48px":"32px",display:"flex","justify-content":"space-between",top:0,"z-index":1,background:"#000000",color:"#FFFFFF",width:"100%"};N.style=C1(r2),document.getElementById("".concat(P,"-wrap")).insertBefore(N,document.getElementById(P));var l2=setInterval(function(){window.EZUIKit[m.jSPlugin.id].state.EZUIKitPlayer.init&&clearInterval(l2)},50)}else document.getElementById("".concat(this.jSPlugin.id,"-headControl"))&&document.getElementById("".concat(this.jSPlugin.id,"-headControl")).parentElement.removeChild(document.getElementById("".concat(this.jSPlugin.id,"-headControl")));if(this.isNeedRenderFooter)if(document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")))document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container"))&&(document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")).style.marginTop="-".concat(this.jSPlugin.width>o1?48:32,"px"),document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")).innerHTML='`));else{var s2=document.createElement("div");s2.setAttribute("id","".concat(this.jSPlugin.id,"-ez-iframe-footer-container")),s2.setAttribute("class","ez-iframe-footer-container");var Q={"min-height":this.jSPlugin.width>o1?"48px":"32px","max-height":this.jSPlugin.width>o1?"96px":"80px",position:"relative","margin-top":this.jSPlugin.width>o1?"-48px":"-32px",display:"flex","flex-wrap":"wrap","justify-content":"space-between","z-index":999,top:0,color:"#FFFFFF",width:"100%"};s2.style=C1(Q),s2.innerHTML='`),f(s2,document.getElementById(P))}else document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container"))&&document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")).parentElement.removeChild(document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")));if(this.isNeedRenderHeader&&document.getElementById("".concat(this.jSPlugin.id,"-headControl"))&&(document.getElementById("".concat(this.jSPlugin.id,"-headControl")).style.background=S.backgroundColor,document.getElementById("".concat(this.jSPlugin.id,"-headControl")).style.color=S.color,S.btnList.map(function(L,Y){L.isrender&&m.renderHeader(L.iconId,L.part)})),this.isNeedRenderFooter&&document.getElementById("".concat(this.jSPlugin.id,"-audioControls"))&&(document.getElementById("".concat(this.jSPlugin.id,"-audioControls")).style.background=A.backgroundColor,document.getElementById("".concat(this.jSPlugin.id,"-audioControls")).style.color=A.color,A.btnList.map(function(L,Y){L.isrender&&m.renderFooter(L.iconId,L.part)})),this.isNeedRenderTimeLine)if(this.isMobile)document.getElementById("".concat(this.jSPlugin.id,"-headControl-right"))&&(document.getElementById("".concat(this.jSPlugin.id,"-headControl-right")).style.display="none"),this.Rec=new Z2(this.jSPlugin,this.changeRecSpeed,this.resetMobileZoomStatus);else{this.Rec?(this.Rec.unSyncTimeLine(),this.Rec.recInit()):(this.jSPlugin.decoderState=this.decoderState,this.jSPlugin.setDecoderState=this.setDecoderState,this.Rec=new h3(this.jSPlugin));var X=setInterval(function(){window.EZUIKit[m.jSPlugin.id].state.EZUIKitPlayer.init&&clearInterval(X)},50)}var D2=H.findIndex(this.themeData.footer.btnList,function(L){return L.iconId==="pantile"&&L.isrender===1})>=0&&!this.jSPlugin.disabledPTZ;D2&&(this.isMobile&&(this.MobilePtz=new W2(this.jSPlugin)),this.Ptz=new C3(this.jSPlugin));var g2=function(){var Y=m.decoderState.state,O=Y.expend,C=Y.webExpend,I=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;I||(m.jSPlugin.jSPlugin.JS_Resize(m.jSPlugin.width,m.jSPlugin.height),O&&m.setDecoderState({expend:!1}),C&&m.setDecoderState({webExpend:!1})),m.jSPlugin.Theme.Rec&&m.jSPlugin.Theme.Rec.recAutoSize()};if(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].forEach(function(L){window.addEventListener(L,function(Y){return g2()})}),this.themeData.poster){this.jSPlugin.poster=this.themeData.poster;var M=setInterval(function(){window.EZUIKit[m.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(M),m.jSPlugin.setPoster(m.themeData.poster))},50)}this.inited=!0,this.getDeviceInfo()}},{key:"resetMobileZoomStatus",value:function(){if(this.isMobile){var m=document.getElementById("".concat(this.jSPlugin.id,"-zoom-container"));m&&m.style&&m.style.display!="none"&&(console.log("结束电子放大"),m.style.display="none"),this.jSPlugin.Zoom.resetZoom()}}},{key:"getDeviceInfo",value:function(){var m=this,g=function(A){A.code==200&&A.data&&(A.data.isEncrypt&&setTimeout(function(){m.pluginStatus.loadingClear(),m.pluginStatus.loadingSetText({text:"设备已加密",color:"red"})},1500),document.getElementById("".concat(m.jSPlugin.id,"-deviceName-content"))&&(document.getElementById("".concat(m.jSPlugin.id,"-deviceName-content")).style.maxWidth="100%",document.getElementById("".concat(m.jSPlugin.id,"-deviceName-content")).style.overflow="hidden",document.getElementById("".concat(m.jSPlugin.id,"-deviceName-content")).style.textOverflow="ellipsis",document.getElementById("".concat(m.jSPlugin.id,"-deviceName-content")).style.whiteSpace="nowrap",document.getElementById("".concat(m.jSPlugin.id,"-deviceName-content")).innerHTML=A.data.deviceName),document.getElementById("".concat(m.jSPlugin.id,"-deviceID-content"))&&(document.getElementById("".concat(m.jSPlugin.id,"-deviceID-content")).style.maxWidth="100%",document.getElementById("".concat(m.jSPlugin.id,"-deviceID-content")).style.overflow="hidden",document.getElementById("".concat(m.jSPlugin.id,"-deviceID-content")).style.textOverflow="ellipsis",document.getElementById("".concat(m.jSPlugin.id,"-deviceID-content")).style.whiteSpace="nowrap",document.getElementById("".concat(m.jSPlugin.id,"-deviceID-content")).innerHTML=R(m.jSPlugin.url).deviceSerial))};j(this.jSPlugin.env.domain+"/api/lapp/device/info","POST",{accessToken:this.jSPlugin.accessToken,deviceSerial:R(this.jSPlugin.url).deviceSerial},"",g)}},{key:"editStart",value:function(m){var g=document.getElementById("".concat(this.jSPlugin.id,"-audioControls")),S=document.getElementById("".concat(this.jSPlugin.id,"-headControl"));S&&S.setAttribute("class","header-controls themeEditing"),g&&g.setAttribute("class","footer-controls themeEditing"),this.setDecoderState({isEditing:!0})}},{key:"editEnd",value:function(m){var g=document.getElementById("".concat(this.jSPlugin.id,"-audioControls")),S=document.getElementById("".concat(this.jSPlugin.id,"-headControl"));S&&S.setAttribute("class","header-controls"),g&&g.setAttribute("class","footer-controls"),this.setDecoderState({isEditing:!1})}},{key:"webExpend",value:function(){var m=this,g=this.decoderState.state;g.webExpend;var S=g.expend,A=g.play;if(!A)return!1;if(S)return console.log("正在全局全屏"),!1;console.log("执行网页全屏");var P=0,N=0,r2=b(document.getElementById("".concat(this.jSPlugin.id,"-wrap")));r2.then(function(l2){console.log("全屏promise",window.screen.width),document.getElementById("".concat(m.jSPlugin.id,"-canvas-container"))&&(P=parseInt(window.getComputedStyle(document.getElementById("".concat(m.jSPlugin.id,"-canvas-container"))).height,10)),document.getElementById("".concat(m.jSPlugin.id,"-headControl"))&&(N=parseInt(window.getComputedStyle(document.getElementById("".concat(m.jSPlugin.id,"-headControl"))).height,10)),console.log("this.jSPlugin.JS_Resiz",P,N,document.body.clientWidth),m.jSPlugin.jSPlugin.JS_Resize(window.screen.width,window.screen.height-P-N)}).catch(function(l2){console.log(l2)})}},{key:"expend",value:function(){var m=this,g=this.decoderState.state,S=g.webExpend;g.expend;var A=g.play;if(g.pantile,!A)return!1;if(S)return console.log("正在网站全屏"),!1;if(console.log("执行全局全屏"),this.isMobile){var P=parseInt(getComputedStyle(document.getElementById("".concat(this.jSPlugin.id,"-wrap"))).height,10)-parseInt(getComputedStyle(document.getElementById(this.jSPlugin.id)).height,10);_(document.getElementById("".concat(this.jSPlugin.id,"-wrap"))),setTimeout(function(){var r2=document.documentElement.clientWidth,l2=document.documentElement.clientHeight;document.getElementById("".concat(m.jSPlugin.id)).style["backface-visibility"]="hidden",m.jSPlugin.jSPlugin.JS_Resize(l2,r2-P)},100)}else{var N=b(document.getElementById("".concat(this.jSPlugin.id)));N.then(function(r2){m.jSPlugin.jSPlugin.JS_Resize(window.screen.width,window.screen.height)}).catch(function(r2){console.log(r2)})}}}]),V}();Date.prototype.Format=function(V){var x={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(V)&&(V=V.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var m in x)new RegExp("("+m+")").test(V)&&(V=V.replace(RegExp.$1,RegExp.$1.length==1?x[m]:("00"+x[m]).substr((""+x[m]).length)));return V};var l0=function(){function V(x,m){if(i(this,V),this.params=x,this.state={},this.jsPlugin=m,this.url="https://log.ys7.com/statistics.do?",x.env)switch(x.env){case"test12":this.url="https://test12dclog.ys7.com/statistics.do?";break;case"online":break;default:this.url=x.env;break}}return a(V,[{key:"uuid",value:function(){for(var m=[],g="0123456789abcdef",S=0;S<36;S++)m[S]=g.substr(Math.floor(Math.random()*16),1);m[14]="4",m[19]=g.substr(m[19]&3|8,1),m[8]=m[13]=m[18]=m[23]="-";var A=m.join("");return A}},{key:"dclog",value:function(m){var g=this.url,S=Object.assign({},{systemName:"open_website_monitor"},{bn:"ezuikit-js"},m,{un:m.url},{st:new Date().getTime(),h:window.location.pathname});Object.keys(S).forEach(function(P,N){var r2=S[P];typeof S[P]=="string"&&(r2=S[P].replace("%","%25")),typeof S[P]!="undefined"&&(g+="".concat(N===0?"":"&").concat(P,"=").concat(encodeURIComponent(r2)))});var A=new Image;A.src=g}},{key:"localInfoLog",value:function(m){var g=this.url,S=window.location.protocol+"//"+window.location.host,A={systemName:"open_netstream_localinfo",Ver:"v6.0.0",PlatAddr:S,ExterVer:"v6.0.0",OpId:this.uuid(),CltType:102,AppId:"",playurl:encodeURIComponent(this.jsPlugin.url),StartTime:new Date().Format("yyyy-MM-dd hh:mm:ss.S"),OS:navigator.platform};A=Object.assign(A,m),Object.keys(A).forEach(function(N,r2){var l2=A[N];typeof A[N]=="string"&&(l2=A[N].replace("%","%25")),typeof A[N]!="undefined"&&(g+="".concat(r2===0?"":"&").concat(N,"=").concat(encodeURIComponent(l2)))});var P=new Image;P.src=g}},{key:"playLog",value:function(m){var g=this.url,S=g,A={systemName:"open_netstream_play_main",playurl:encodeURIComponent(this.jsPlugin.url),Time:new Date().Format("yyyy-MM-dd hh:mm:ss.S"),Via:2,OpId:this.uuid()};A=Object.assign(A,m),Object.keys(A).forEach(function(N,r2){var l2=A[N];typeof A[N]=="string"&&(l2=A[N].replace("%","%25")),typeof A[N]!="undefined"&&(S+="".concat(r2===0?"":"&").concat(N,"=").concat(encodeURIComponent(l2)))});var P=new Image;P.src=S}}]),V}();(function(V,x){t(n)==="object"&&t(n.exports)==="object"?n.exports=V.document?x(V,!0):function(m){if(!m.document)throw new Error("EZUIPlayer requires a window with a document");return x(m)}:x(V)})(typeof window!="undefined"?window:void 0,function(V,x){var m;function g(Q,X){for(var D2=document.getElementsByTagName("head")[0].getElementsByTagName("script"),g2=!1,M=0;M0&&(t3=X.controls.join(","),R2+="&controls="+t3)),X.websocketParams&&(R2+="&websocketParams="+JSON.stringify(X.websocketParams)),R2;case"standard":return N+"/ezopen/h5/iframe?bSupporDoubleClickFull=0&url="+G.opt.url.replace("?","&")+"&autoplay="+G.opt.autoplay+"&audio="+G.opt.audio+"&accessToken="+X.accessToken+"&templete=1&id="+D2+"&decoderVersion="+G.opt.decoderVersion;case"security":return N+"/ezopen/h5/iframe_se?bSupporDoubleClickFull=0&url="+G.opt.url.replace("?","&")+"&autoplay="+G.opt.autoplay+"&audio="+G.opt.audio+"&accessToken="+X.accessToken+"&templete=0&id="+D2+"&decoderVersion="+G.opt.decoderVersion;case"theme":return R2=N+"/jssdk/theme.html?url=".concat(X.url,"&accessToken=").concat(X.accessToken,"&id=").concat(D2,"&isMobile=").concat(X.isMobile),typeof X.isMobile!="undefined"&&(R2+="&isMobile="+X.isMobile),typeof X.autoplay!="undefined"&&(R2+="&autoplay="+X.autoplay),typeof X.domain!="undefined"&&X.domain=="https://test12open.ys7.com"&&(R2+="&env=test12"),typeof X.env!="undefined"&&typeof X.env.domain!="undefined"&&X.env.domain=="https://test12open.ys7.com"&&(R2+="&env=test12"),typeof X.header!="undefined"&&(R2+="&header="+X.header),R2;default:return N+"/ezopen/h5/iframe?bSupporDoubleClickFull=0&url="+G.opt.url.replace("?","&")+"&autoplay="+G.opt.autoplay+"&audio="+G.opt.audio+"&accessToken="+X.accessToken+"&templete=0&id="+D2+"&decoderVersion="+G.opt.decoderVersion}}M.src=L();var Y=document.getElementById(D2).offsetHeight,O=document.getElementById(D2).offsetWidth;X.height&&(Y=parseInt(X.height),/\%$/.test(X.height)&&(O=document.getElementById(D2).offsetWidth*(parseInt(X.height)/100))),X.width&&(O=parseInt(X.width),/\%$/.test(X.width)&&(O=document.getElementById(D2).offsetWidth*(parseInt(X.width)/100))),M.width=O,M.height=Y,M.id="EZUIKitPlayer-"+D2,M.setAttribute("allowfullscreen",!0),M.setAttribute("allow","autoplay"),M.setAttribute("frameborder",0),g2.appendChild(M);var C=G.opt.filePath+"/js/jquery.js",I="https://open.ys7.com/assets/layer/layer.js";g(C,function(){g(I,function(){if(b1().headerContainer){var R2=document.createElement("div");R2.setAttribute("class","panel-top");var t3=document.createElement("div");if(t3.setAttribute("class","contros"),R2.appendChild(t3),g2.insertBefore(R2,M),b1().capturePictureModule){var Q2=document.createElement("span");Q2.innerHTML=' ',Q2.onclick=function(){G.capturePicture()},t3.appendChild(Q2)}if(console.log("matchHeaderOpt().saveModule",b1().saveModule),b1().saveModule){var d3=document.createElement("span");d3.innerHTML=' ',d3.onclick=function(){G.startSave(),document.getElementById("startSave").setAttribute("class","icon hide"),document.getElementById("stopSave").setAttribute("class","icon")},t3.appendChild(d3);var b3=document.createElement("span");b3.innerHTML=' ',b3.onclick=function(){G.stopSave(),document.getElementById("stopSave").setAttribute("class","icon hide"),document.getElementById("startSave").setAttribute("class","icon")},t3.appendChild(b3)}if(b1().zoomModule){var M3=document.createElement("span");M3.innerHTML=' ',M3.onclick=function(){G.enableZoom(),document.getElementById("enableZoom").setAttribute("class","icon hide"),document.getElementById("closeZoom").setAttribute("class","icon")},t3.appendChild(M3);var T3=document.createElement("span");T3.innerHTML=' ',T3.onclick=function(){G.closeZoom(),document.getElementById("closeZoom").setAttribute("class","icon hide"),document.getElementById("enableZoom").setAttribute("class","icon")},t3.appendChild(T3)}}function f1(){var B0={footerContainer:!1,talkModule:!1,broadcastModule:!1,hdModule:!1,fullScreenModule:!1},k1=G.opt.template;switch(k1){case"simple":if(X.footer&&X.footer instanceof Array){var A1=X.footer;B0={footerContainer:!0,talkModule:A1.indexOf("talk")!==-1,broadcastModule:A1.indexOf("broadcast")!==-1,hdModule:A1.indexOf("hd")!==-1,fullScreenModule:A1.indexOf("fullScreen")!==-1}}break;case"standard":if(X.footer&&X.footer instanceof Array){var A1=X.footer;B0={footerContainer:!0,talkModule:A1.indexOf("talk")!==-1,broadcastModule:A1.indexOf("broadcast")!==-1,hdModule:A1.indexOf("hd")!==-1,fullScreenModule:A1.indexOf("fullScreen")!==-1}}break;case"security":break;case"voice":B0={footerContainer:!0,talkModule:!0,broadcastModule:!0,hdModule:!0,fullScreenModule:!0};break}return B0}function b1(){var B0={headerContainer:!1,capturePictureModule:!1,saveModule:!1,zoomModule:!1},k1=G.opt.template;switch(k1){case"simple":if(X.header&&X.header instanceof Array){var A1=X.header;B0={headerContainer:!0,capturePictureModule:A1.indexOf("capturePicture")!==-1,saveModule:A1.indexOf("save")!==-1,zoomModule:A1.indexOf("zoom")!==-1}}break;case"standard":break;case"security":break;case"voice":B0={headerContainer:!0,capturePictureModule:!0,saveModule:!0,zoomModule:!0};break}return B0}if(f1().footerContainer||G.opt.plugin.indexOf("talk")!==-1){var x1=G.opt.filePath+"/npm/css/recoder.css",N1=G.opt.filePath+"/npm/js/recoder.js",L1=G.opt.filePath+"/recorder.js";if(S(x1,function(){}),g(N1,function(){g(L1,function(){})}),G.opt.plugin.indexOf("talk")!==-1||f1().talkModule){var G1=function(k1){if(console.log("data",k1),k1.code==200){var A1=k1.data;if(A1){var Z1=A1.rtcUrl;Z1.indexOf("ws")===-1&&(Z1=Z1.replace("https","wss").replace("rtcgw","rtcgw-ws")),G.opt.rtcUrl=Z1,G.opt.ttsUrl="tts://"+A1.ttsUrl;var I0="talk://"+G.opt.deviceSerial+":0:"+G.opt.channelNo+":cas.ys7.com:6500";if(G.opt.talkLink=G.opt.ttsUrl+"/"+I0,G.opt.stream=A1.stream,console.log("_this.opt",G.opt),!G.opt.isReliesReady){var d2=G.opt.filePath+"/npm/js/adapeter.js",O2=G.opt.filePath+"/npm/js/janus.js",j2=G.opt.filePath+"/npm/js/tts.js";console.log("加载jquery.js"),g(d2,function(){console.log("加载adapeter.js"),g(O2,function(){console.log("加载janus.js"),g(j2,function(){console.log("加载tts.js"),G.opt.isReliesReady=!0})})},function(){return!!V.adapter})}if(!document.getElementById("audioleft")){var K2=document.createElement("div");K2.style.display="none",K2.id="audioleft",document.body.appendChild(K2)}if(!document.getElementById("audioright")){var f2=document.createElement("div");f2.style.display="none",f2.id="audioright",document.body.appendChild(f2)}}}P.opt=G.opt,V.EZUIKit&&(V.EZUIKit.opt=G.opt)};A(G.opt.apiDomain,"POST",{accessToken:G.opt.accessToken,deviceSerial:G.opt.deviceSerial,channelNo:G.opt.channelNo},"",G1)}if(f1().footerContainer){var y0=function(k1,A1){if(clearInterval(P.state.countTimer),k1==="add"){var Z1=A1;P.state.countTimer=setInterval(function(){++Z1,document.getElementById("time-area").innerHTML=I0(Z1)},1e3)}else if(k1==="sub"){var Z1=A1;P.state.countTimer=setInterval(function(){Z1>0?(Z1--,document.getElementById("time-area").innerHTML=I0(Z1)):(clearInterval(P.state.countTimer),P.state.countTimer=void 0,console.log("倒计时结束,开启声音"))},1e3)}else k1==="destory"&&(clearInterval(P.state.countTimer),P.state.countTimer=void 0,document.getElementById("time-area").innerHTML="00:00");function I0(d2){var O2=parseInt(d2),j2=0,K2=0,f2="00",s3="00",i3="00";return O2>59&&(j2=parseInt(O2/60),O2=parseInt(O2%60),j2>59&&(K2=parseInt(j2/60),j2=parseInt(j2%60))),f2=parseInt(O2)>9?parseInt(O2):"0"+parseInt(O2),s3=parseInt(j2)>9?parseInt(j2):"0"+parseInt(j2),i3=parseInt(K2)>9?parseInt(K2):"0"+parseInt(K2),K2>0?i3+":"+s3+":"+f2:j2>0?s3+":"+f2:"00:"+f2}},B2=document.createElement("div");if(B2.setAttribute("class","audio-controls"),g2.appendChild(B2),f1().hdModule||f1().fullScreenModule){var y3=document.createElement("div");if(y3.setAttribute("class","contros"),B2.appendChild(y3),f1().hdModule){var R3=document.createElement("span");R3.setAttribute("id","video-hd"),R3.innerHTML=G.opt.url.indexOf(".hd")===-1?"标清":"高清",R3.onclick=function(){if(G.opt.videoLoading)return layer.msg("视频加载中,请稍后"),!1;var B0=G.stop();G.opt.videoLoading=!0,B0.then(function(k1){G.opt.videoLoading=!1,G.opt.url.indexOf(".hd")===-1?(G.opt.url=G.opt.url.replace(".live",".hd.live"),R3.innerHTML=G.opt.url.indexOf(".hd")===-1?"标清":"高清"):(G.opt.url=G.opt.url.replace(".hd.live",".live"),R3.innerHTML=G.opt.url.indexOf(".hd")===-1?"标清":"高清"),G.play(G.opt.url)}).catch(function(k1){console.log("error",k1)})},y3.appendChild(R3)}if(f1().fullScreenModule){var n1=document.createElement("span");n1.setAttribute("class","hide"),n1.setAttribute("id","ezuikit-open-sound"),n1.setAttribute("title","打开声音"),n1.setAttribute("style","vertical-align: top;"),n1.innerHTML='',n1.onclick=function(){G.openSound(0),n1.setAttribute("class","hide"),v1.setAttribute("class","")};var v1=document.createElement("span");n1.setAttribute("id","ezuikit-close-sound"),v1.setAttribute("class","hide"),v1.setAttribute("title","关闭声音"),v1.setAttribute("style","vertical-align: top;"),v1.innerHTML='',v1.onclick=function(){G.closeSound(0),n1.setAttribute("class",""),v1.setAttribute("class","hide")},y3.appendChild(n1),y3.appendChild(v1)}if(G.opt.audio==1?v1.setAttribute("class",""):(n1.setAttribute("class",""),G.closeSound(0)),f1().fullScreenModule){var j1=document.createElement("span");j1.setAttribute("title","全屏"),j1.setAttribute("style","vertical-align: top;"),j1.innerHTML=' ',j1.onclick=function(){G.fullScreen()},y3.appendChild(j1)}}if(f1().talkModule){var U1=document.createElement("div"),D1=document.createElement("div");U1.setAttribute("class","ptp-talk off"),U1.innerHTML=' 开启对讲',U1.onclick=function(){if(console.log("EZUIKit.state.countTimer",P.state.countTimer),P.state.countTimer)return V.layer.msg("语音设备正忙,请稍后重试"),!1;y0("add",0),console.log("开始对讲,关闭声音"),G.closeSound(0),console.log(G.opt),G.startTalk(),this.setAttribute("class","ptp-talk off hide"),D1.setAttribute("class","ptp-talk on")},D1.setAttribute("class","ptp-talk on hide"),D1.innerHTML=' 关闭对讲',D1.onclick=function(){console.log(G.opt),G.stopTalk(),y0("destory",0),G.openSound(0),this.setAttribute("class","ptp-talk on hide"),U1.setAttribute("class","ptp-talk off")},B2.appendChild(U1),B2.appendChild(D1)}if(f1().broadcastModule){var u0=function B0(k1){function A1(Z1){console.log("data",Z1),Z1.code==200&&(On(Z1.data,5),P.state.page=Z1.page.page,k1==0&&Z1.data.length==0&&!P.state.fetchDefaultList&&(P.state.fetchDefaultList=!0,B0(0)))}A(N+"/api/lapp/voice/query","POST",{accessToken:G.opt.accessToken,pageStart:k1,pageSize:P.state.pageSize,default:P.state.fetchDefaultList?"true":"false"},"",A1)},On=function(k1){if(console.log("renderVoliceList",k1),k1&&k1.length>0){for(var A1=0;A1"+(k1[A1].voiceName.length>10?k1[A1].voiceName.substr(0,10)+"...":k1[A1].voiceName)+"",document.getElementsByClassName("voice-list-ul")[0].append(Z1),Z1.onclick=function(I0){console.log("点击元素",I0.target,I0.target.dataset.url);var d2=I0.target.dataset.url,O2=I0.target.dataset.time;Dt(d2,O2)}}k1.length===P.state.pageSize?document.getElementById("voice-list-end").innerHTML="向下滚动加载更多":document.getElementById("voice-list-end").innerHTML="没有更多数据了"}},Dt=function(k1,A1){console.log("播放语音",k1,A1);function Z1(I0){console.log("data.data",I0.data),I0.code==200?y0("sub",parseInt(A1)):I0.code=="10001"?V.layer.msg("未找到当前语音"):V.layer.msg(I0.msg||"发送失败,请稍后再试")}A(N+"/api/lapp/voice/send","POST",{accessToken:G.opt.accessToken,deviceSerial:G.opt.deviceSerial,channelNo:G.opt.channelNo,fileUrl:k1},"",Z1)},et=document.createElement("div"),At=document.createElement("div");et.setAttribute("class","broadcast off"),At.setAttribute("class","broadcast on hide"),et.innerHTML=' 语音播报',et.onclick=function(){this.setAttribute("class","broadcast off hide"),At.setAttribute("class","broadcast on")},At.innerHTML=' 语音播报',At.onclick=function(){this.setAttribute("class","broadcast on hide"),et.setAttribute("class","broadcast off")},B2.appendChild(et),B2.appendChild(At),document.getElementById("voice-custom").onclick=function(){console.log("显示自定义语音"),b0.setAttribute("class","speak off")},u0(0);var b0=document.createElement("div"),Te=document.createElement("div");b0.setAttribute("class","speak off hide"),Te.setAttribute("class","speak on hide"),b0.setAttribute("id","startSpeak"),Te.setAttribute("id","stopSpeak"),b0.innerHTML=' 按住说话',Te.innerHTML=' 松开发送',B2.appendChild(b0),B2.appendChild(Te),document.getElementById("voice-list").onscroll=function(B0){var k1=this.scrollHeight;console.log("sum",k1,this.scrollTop,document.getElementById("voice-list").clientHeight),k1<=this.scrollTop+this.clientHeight&&(console.log("拖动到底,执行加载",P.state.page),u0(++P.state.page))};var yt=document.createElement("div");yt.setAttribute("class","time-area"),yt.setAttribute("id","time-area"),yt.innerHTML="00:00",B2.appendChild(yt);var h0;document.getElementById("startSpeak").onmousedown=function(){if(P.state.countTimer)return V.layer.msg("语音设备正忙,请稍后重试"),!1;console.log("按住说话"),b0.setAttribute("class","speak off hide"),Te.setAttribute("class","speak on"),Z1(),y0("add",0),setTimeout(function(){P.state.recodeTime=0,A1()},1e3),P.state.recodeTimer&&clearInterval(P.state.recodeTimer),P.state.recodeTimer=setInterval(function(){P.state.recodeTime>=59?(G.stopTalk(),y0("destory",0),this.setAttribute("class","ptp-talk on hide"),U1.setAttribute("class","ptp-talk off"),V.layer.msg("不超过1分钟")):P.state.recodeTime=P.state.recodeTime+1},1e3);var B0;function k1(I0){var d2=B0.createMediaStreamSource(I0);h0=new V.Recorder(d2)}function A1(){h0&&h0.record()}function Z1(){console.log("run init");try{V.AudioContext=V.AudioContext||V.webkitAudioContext,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia,V.URL=V.URL||V.webkitURL,B0=new AudioContext,console.log("Audio context set up."),console.log("navigator.getUserMedia "+(navigator.getUserMedia?"available.":"not present!"))}catch(I0){console.log("err",I0),V.layer.msg("No web audio support in this browser!")}navigator.getUserMedia({audio:!0},k1,function(I0){console.log("No live audio input: "+I0)})}},document.getElementById("stopSpeak").onmouseup=function(){console.log("松开发送"),Te.setAttribute("class","speak on hide"),B0();function B0(){if(y0("destory",0),P.state.recodeTime<1)return V.layer.msg("说话时间过短"),clearInterval(P.state.recodeTimer),!1;clearInterval(P.state.recodeTimer),k1()}function k1(){try{h0&&h0.stop(),h0&&h0.exportWAV(function(A1){if(console.log("wav_file",A1),A1.size<1e3)return V.layer.msg("录音失败,请重试"),P.state.recodeTime=0,!1;y0("sub",P.state.recodeTime+2);var Z1=new FormData;Z1.append("voiceFile",A1),Z1.append("accessToken",G.opt.accessToken),Z1.append("deviceSerial",G.opt.deviceSerial),Z1.append("channelNo",G.opt.channelNo);function I0(O2){console.log("data.data",O2.data),O2.code==200?y0("sub",P.state.recodeTime+2):O2.code=="10001"?V.layer.msg("未找到当前语音"):V.layer.msg(O2.msg||"发送失败,请稍后再试")}function d2(O2){console.log("err",O2)}A(N+"/api/lapp/voice/sendonce","POST",{voiceFile:A1,accessToken:G.opt.accessToken,deviceSerial:G.opt.deviceSerial,channelNo:G.opt.channelNo},"",I0,d2)}),h0&&h0.clear()}catch(A1){console.log(A1)}}}}}}})});var G=this;V.addEventListener("message",function(R2){R2.origin;var t3=G.opt.id;if(R2.data.type)switch(R2.data.type){case"openSound":t3==R2.data.id&&X.openSoundCallBack&&X.openSoundCallBack(R2.data);break;case"closeSound":t3==R2.data.id&&X.closeSoundCallBack&&X.closeSoundCallBack(R2.data);break;case"capturePicture":t3==R2.data.id&&X.capturePictureCallBack&&X.capturePictureCallBack(R2.data);break;case"startSave":t3==R2.data.id&&X.startSaveCallBack&&X.startSaveCallBack(R2.data);break;case"stopSave":t3==R2.data.id&&X.stopSaveCallBack&&X.stopSaveCallBack(R2.data);break;case"fullScreen":t3==R2.data.id&&X.fullScreenCallBack&&X.fullScreenCallBack(R2.data);break;case"getOSDTime":t3==R2.data.id&&X.getOSDTimeCallBack&&X.getOSDTimeCallBack(R2.data);break;case"handleSuccess":t3==R2.data.id&&X.handleSuccess&&X.handleSuccess(R2.data);break;case"handleError":t3==R2.data.id&&X.handleError&&X.handleError(R2.data);break;case"dblclick":t3==R2.data.id&&G.opt.bSupporDoubleClickFull&&(G.opt.fullScreenStatus===0?G.fullScreen():G.cancelFullScreen());break;case"startTalk":G.startTalk(),G.closeSound();break;case"stopTalk":G.stopTalk(),G.openSound();break;case"clickEventHandle":console.log("event.data",R2.data),X.clickEventHandle&&X.clickEventHandle(R2.data);break;case"removeEventHandle":X.removeEventHandle&&X.removeEventHandle(R2.data);break;case"esc":X.clickEventHandle&&X.clickEventHandle(R2.data);break;case"iframeFullScreen":if(t3==R2.data.id){var Q2=function(b3){var M3=b3.requestFullScreen||b3.webkitRequestFullScreen||b3.mozRequestFullScreen||b3.msRequestFullScreen;if(M3)M3.call(b3);else if(typeof V.ActiveXObject!="undefined"){var T3=new ActiveXObject("WScript.Shell");T3!==null&&T3.SendKeys("{F11}")}};Q2(document.getElementById("EZUIKitPlayer-"+R2.data.id))}break}});function M2(R2){G.opt.fullScreenStatus=R2?1:0,X.fullScreenChangeCallBack&&X.fullScreenChangeCallBack({data:R2,id:G.opt.id})}typeof document.fullScreen!="undefined"?document.addEventListener("fullscreenchange",function(){var R2=document.fullscreen||!1;M2(R2)}):typeof document.webkitIsFullScreen!="undefined"?document.addEventListener("webkitfullscreenchange",function(){var R2=document.webkitIsFullScreen||!1;M2(R2)}):typeof document.mozFullScreen!="undefined"&&document.addEventListener("mozfullscreenchange",function(){var R2=document.mozFullScreen||!1;M2(R2)})};l2.prototype.play=function(Q){var X="EZUIKitPlayer-"+this.opt.id,D2=document.getElementById(X).contentWindow;t(Q)==="object"&&Q.url&&(this.opt.url=Q.url),t(Q)==="object"&&Q.accessToken&&(this.opt.accessToken=Q.accessToken),typeof Q=="string"&&(this.opt.url=Q),D2.postMessage({action:"play",accessToken:this.opt.accessToken,url:this.opt.url},N+"/ezopen/h5/iframe");var g2=this;this.opt.videoLoading=!0;var M=new Promise(function(L,Y){V.addEventListener("message",function(O){var C=g2.opt.id;C==O.data.id&&O.data.type==="handleSuccess"&&(setTimeout(function(){g2.opt.videoLoading=!1},1e3),L(O.data))})});return M},l2.prototype.stop=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("stop",N+"/ezopen/h5/iframe");var D2=this,g2=new Promise(function(M,L){V.addEventListener("message",function(Y){var O=D2.opt.id;O==Y.data.id&&Y.data.type==="stop"&&M(Y.data)})});return g2},l2.prototype.openSound=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("openSound",N+"/ezopen/h5/iframe");var D2=this,g2=new Promise(function(M,L){V.addEventListener("message",function(Y){var O=D2.opt.id;O==Y.data.id&&Y.data.type==="openSound"&&M(Y.data)})});return g2},l2.prototype.closeSound=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("closeSound",N+"/ezopen/h5/iframe");var D2=this,g2=new Promise(function(M,L){V.addEventListener("message",function(Y){var O=D2.opt.id;O==Y.data.id&&Y.data.type==="closeSound"&&M(Y.data)})});return g2},l2.prototype.startSave=function(Q){var X="EZUIKitPlayer-"+this.opt.id,D2=document.getElementById(X).contentWindow;D2.postMessage({action:"startSave",fileName:Q||"default"},N+"/ezopen/h5/iframe");var g2=this,M=new Promise(function(L,Y){V.addEventListener("message",function(O){var C=g2.opt.id;C==O.data.id&&O.data.type==="startSave"&&L(O.data)})});return M},l2.prototype.stopSave=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("stopSave",N+"/ezopen/h5/iframe");var D2=this,g2=new Promise(function(M,L){V.addEventListener("message",function(Y){var O=D2.opt.id;O==Y.data.id&&Y.data.type==="stopSave"&&M(Y.data)})});return g2},l2.prototype.fullScreen=function(){if(this.opt.fullScreenStatus===1)return!1;var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;if(navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)){var D2=document.documentElement.clientWidth,g2=document.documentElement.clientHeight,M=document.body;M=document.getElementById(Q);var L="";L+="width:"+g2+"px;",L+="height:"+D2+"px;",L+="-webkit-transform: rotate(90deg); transform: rotate(90deg);",L+="-webkit-transform-origin: "+D2/2+"px "+D2/2+"px;",L+="transform-origin: "+D2/2+"px "+D2/2+"px;",L+="position: fixed;top: 0;left: 0;z-index:10",M.style.cssText=L,setTimeout(function(){X.postMessage("autoResize",N+"/ezopen/h5/iframe")},500)}else{var Y=function(C){var I=C.requestFullScreen||C.webkitRequestFullScreen||C.mozRequestFullScreen||C.msRequestFullScreen;if(I)I.call(C);else if(typeof V.ActiveXObject!="undefined"){var G=new ActiveXObject("WScript.Shell");G!==null&&G.SendKeys("{F11}")}};Y(document.getElementById(Q))}this.params.fullScreenCallBack&&this.params.fullScreenCallBack(this.opt.id),this.opt.fullScreenStatus=1},l2.prototype.cancelFullScreen=function(){if(this.opt.fullScreenStatus===0)return!1;var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;if(navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)){var D2=document.getElementById(Q).width,g2=document.getElementById(Q).height,M=document.body;M=document.getElementById(Q);var L="";L+="width:"+D2+"px;",L+="height:"+g2+"px;",L+="-webkit-transform: none; transform: none;",L+="-webkit-transform-origin: 0 0;",L+="transform-origin: 0 0;",M.style.cssText=L,setTimeout(function(){X.postMessage("autoResize",N+"/ezopen/h5/iframe")},500);var Y=Q+"cancel-full-screen",O=document.getElementById(Y);O&&document.body.removeChild(O)}else document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen&&document.mozCancelFullScreen();this.params.cancelFullScreenCallBack&&this.params.cancelFullScreenCallBack(this.opt.id),this.opt.fullScreenStatus=0},l2.prototype.capturePicture=function(Q,X){var D2="EZUIKitPlayer-"+this.opt.id,g2=document.getElementById(D2).contentWindow;g2.postMessage({action:"capturePicture",fileName:Q||"default",isUndownload:X},N+"/ezopen/h5/iframe");var M=this,L=new Promise(function(Y,O){V.addEventListener("message",function(C){var I=M.opt.id;I==C.data.id&&C.data.type==="capturePicture"&&Y(C.data)})});return L},l2.prototype.enableZoom=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("enableZoom",N+"/ezopen/h5/iframe")},l2.prototype.closeZoom=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("closeZoom",N+"/ezopen/h5/iframe")},l2.prototype.getOSDTime=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("getOSDTime",N+"/ezopen/h5/iframe");var D2=this,g2=new Promise(function(M,L){V.addEventListener("message",function(Y){var O=D2.opt.id;O==Y.data.id&&Y.data.type==="getOSDTime"&&M(Y.data)})});return g2},l2.prototype.autoResize=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("autoResize",N+"/ezopen/h5/iframe")},l2.prototype.reSize=function(Q,X){var D2="EZUIKitPlayer-"+this.opt.id,g2=document.getElementById(D2).contentWindow,M=document.getElementById(this.opt.id);M.style.width=Q+"px",M.style.height=X+"px",document.getElementById(this.opt.id).style.width=Q+"px",document.getElementById(this.opt.id).style.height=X+"px";var L=document.getElementById(D2);L.setAttribute("width",Q),L.setAttribute("height",X),L.style.width=Q+"px",L.style.height=X+"px",setTimeout(function(){g2.postMessage({action:"autoResize"},N+"/ezopen/h5/iframe")},500)},l2.prototype.startTalk=function(){console.log("执行开始对讲"),console.log(this.opt);var Q=this;P.opt=this.opt,V.EZUIKit&&(V.EZUIKit.opt=this.opt);var X=function(g2){if(g2.code==200){var M=g2.data;if(M){var L=M.rtcUrl;L.indexOf("ws")===-1&&(L=L.replace("https","wss").replace("rtcgw","rtcgw-ws")),Q.opt.rtcUrl=L,Q.opt.ttsUrl="tts://"+M.ttsUrl;var Y="talk://"+Q.opt.deviceSerial+":0:"+Q.opt.channelNo+":cas.ys7.com:6500";Q.opt.talkLink=Q.opt.ttsUrl+"/"+Y,Q.opt.stream=M.stream,V.startTalk()}}};A(Q.opt.apiDomain,"POST",{accessToken:Q.opt.accessToken,deviceSerial:Q.opt.deviceSerial,channelNo:Q.opt.channelNo},"",X)},l2.prototype.stopTalk=function(){console.log("执行结束对讲"),V.stopTalk()},l2.prototype.edit=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage("edit",N+"/ezopen/h5/iframe")},l2.prototype.btnReRender=function(Q){var X="EZUIKitPlayer-"+this.opt.id,D2=document.getElementById(X).contentWindow;D2.postMessage({action:"btnReRender",data:Q},N+"/ezopen/h5/iframe")},l2.prototype.changePlayUrl=function(Q){Q.deviceSerial&&(this.opt.deviceSerial=Q.deviceSerial),Q.channelNo&&(this.opt.channelNo=Q.channelNo),Q.accessToken&&(this.opt.accessToken=Q.accessToken);var X="EZUIKitPlayer-"+this.opt.id,D2=document.getElementById(X).contentWindow;D2.postMessage({action:"changePlayUrl",data:Q},N+"/ezopen/h5/iframe")},l2.prototype.fetchThemeData=function(){var Q="EZUIKitPlayer-"+this.opt.id,X=document.getElementById(Q).contentWindow;X.postMessage({action:"fetchThemeData"},N+"/ezopen/h5/iframe")},l2.prototype.setThemeData=function(Q,X,D2){var g2="EZUIKitPlayer-"+this.opt.id,M=document.getElementById(g2).contentWindow;M.postMessage({action:"setThemeData",data:{accessToken:Q,header:X,footer:D2}},N+"/ezopen/h5/iframe")},P.EZUIKitPlayer=l2,V.EZUIKitV3=P;var s2=P;return s2});var L0=EZUIKitV3,J1=function(x){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S=void 0,A=void 0,P=void 0,N=[];return function(){var s2=B1(m),Q=new Date().getTime(),X=!S||Q-S>s2;S=Q;for(var D2=arguments.length,g2=Array(D2),M=0;M>>0)+"_",v1=0;return y3}),A("Symbol.iterator",function(B2){if(B2)return B2;B2=Symbol("Symbol.iterator");for(var y3="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),R3=0;R30&&S>0){var E=N.left/g,L=N.top/S,r2=N.right/g,l2=N.bottom/S;x=new Float32Array([r2,L,E,L,r2,l2,E,l2])}else x=new Float32Array([1,0,0,0,1,1,0,1]);var s2=this.texturePosBuffer;m.bindBuffer(m.ARRAY_BUFFER,s2),m.bufferSubData(m.ARRAY_BUFFER,0,x),m.bindBuffer(m.ARRAY_BUFFER,null)},R.prototype.SR_Destroy=function(){var N=this.contextGL,m=this.YUVProgram;N.deleteProgram(m);var g=this.vertexPosBuffer,S=this.texturePosBuffer;N.deleteBuffer(g),N.deleteBuffer(S);var x=this.yTextureRef,E=this.uTextureRef,L=this.vTextureRef;N.deleteTexture(x),N.deleteTexture(E),N.deleteTexture(L)},R});var g3="https://open.ys7.com",W3="".concat(g3,"/console/ezuikit_static/v66/v2"),Z3="".concat(g3,"/console/ezuikit_static/v66/v1"),e0=function(N,m){var g=["theme","standard"],S=["pcLive","pcRec","mobileLive","mobileRec","noData","security","voice","simple"];if(typeof N=="undefined")return m.themeData?{templateType:"themeData",templateId:"themeData"}:{templateType:"local",templateId:""};if(typeof N=="string"){if(N.length===32)return{templateType:"remote",templateId:N};if(g.indexOf(N)!==-1)return N==="simple"&&typeof m.header=="undefined"&&typeof m.footer=="undefined"?{templateType:"local",templateId:""}:{templateType:"iframe",templateId:N};if(S.indexOf(N)!==-1)return{templateType:"local",templateId:N}}},y2=function(){var N=window.navigator.userAgent.toLowerCase(),m={sa:/version.*safari/.test(N),ch:/chrome/.test(N),ff:/gecko/.test(N)&&!/webkit/.test(N)},g=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);if(g)return!1;if(m.ch){var S=function(){for(var E=window.navigator.userAgent.split(" "),L="",r2=0;r291&&!!window.SharedArrayBuffer}return!1},W=function(){function R(N){var m=this;i(this,R),this.isStoping=!1;var g=N.autoplay,S=g===void 0?!0:g;if((N.template||N.themeData)&&(S=!1),this.params=N,this.autoplay=S,window.EZUIKit[N.id]={state:{EZUIKitPlayer:{init:window.EZUIKit[N.id]&&window.EZUIKit[N.id].state&&window.EZUIKit[N.id].state.EZUIKitPlayer.init||!1,themeInit:window.EZUIKit[N.id]&&window.EZUIKit[N.id].state&&window.EZUIKit[N.id].state.EZUIKitPlayer.themeInit||!1,talkInit:window.EZUIKit[N.id]&&window.EZUIKit[N.id].state&&window.EZUIKit[N.id].state.EZUIKitPlayer.talkInit||!1}}},e0(this.params.template,N).templateType!=="iframe"){this.Monitor=new l0({env:typeof N.disableMonitor!="undefined"&&N.disableMonitor?"test12":"online"},this),this.id=N.id,this.width=N.width,this.height=N.height,this.url=N.url,this.accessToken=N.accessToken,this.themeId=e0(N.template,N).templateId,this.id=N.id,this.audio=!0,this.poster=N.poster,this.speed=1,this.disabledTimeLine=!1,this.disabledPTZ=!1,this.enableSharedArrayBufferGuide=!1,this.capacity={},this.playTimer=null,this.env={domain:"https://open.ys7.com"};var x=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);this.isMobile=x,document.getElementById("".concat(this.id,"-wrap"))&&(document.getElementById("".concat(this.id,"-wrap")).innerHTML="",document.getElementById("".concat(this.id,"-wrap")).id=this.id),this.staticPath=y2()?W3:Z3,typeof N.staticPath=="string"&&(N.staticPath.startsWith("http")?this.staticPath=N.staticPath:this.staticPath=window.location.protocol+"//"+window.location.host+N.staticPath,y2()?this.staticPath+="/v2":this.staticPath+="/v1"),typeof N.audio!="undefined"&&(this.audio=N.audio),typeof N.env!="undefined"&&(this.env=Object.assign(this.env,N.env)),typeof N.isMobile!="undefined"&&(this.isMobile=N.isMobile),typeof N.disabledTimeLine!="undefined"&&(this.disabledTimeLine=N.disabledTimeLine),typeof N.disabledPTZ!="undefined"&&(this.disabledPTZ=N.disabledPTZ),typeof N.enableSharedArrayBufferGuide!="undefined"&&(this.enableSharedArrayBufferGuide=N.enableSharedArrayBufferGuide);var E="".concat(this.staticPath,"/js/jsPluginV1-1.0.0.min.js"),L=function(){if(window.addPluginUrlIng=!0,y2())console.log("启用多线程解析视频"),E="".concat(m.staticPath,"/js/jsPluginV2-2.0.1.min.js");else{var s2=function(){for(var I=navigator.userAgent.split(" "),Y="",B=0;B0&&(E=l2.width),!m.height&&l2.height>0&&(r2=l2.height)}if(!document.getElementById("".concat(S,"-wrap"))){var s2=document.createElement("div");s2.id="".concat(S,"-wrap"),s2.style="display:inline-block;width:".concat(E,"px;position:relative;vertical-align: bottom;"),document.getElementById(S).parentNode.insertBefore(s2,document.getElementById(S)),document.getElementById(S).parentNode.removeChild(document.getElementById(S)),s2.innerHTML=""),document.getElementById(S).style="display:inline-block;width:".concat(E,"px;height:").concat(r2,"px;"),document.getElementById(S).style.verticalAlign="top"}this.themeId&&(this.Theme=new H1(this,m.id),window.EZUIKit[m.id].state.EZUIKitPlayer.themeInit=!0,this.Monitor.dclog({url:this.url,action:2,text:this.themeId}),typeof this.params.handleThemeChange=="function"&&(this.handleThemeChange=this.params.handleThemeChange));var Q=new q2(this,S);this.Message=Q;var X=function(C,I){var Y;if(y2()){Y=new window.JSPluginV2({szId:S,iType:2,iWidth:E,iHeight:r2,iMaxSplit:1,iCurrentSplit:1,szBasePath:"",staticPath:g.staticPath,oStyle:{border:"none",background:"#000000"}}),g.pluginStatus.loadingStart(S),g.pluginStatus.loadingSetText({text:"初始化播放器完成"}),Y.EventCallback={pluginErrorHandler:function(k,V,M2){if(console.log(k,V,M2),V===1003)console.log("断流"),g.Theme.setDecoderState({play:!1}),g.pluginStatus.setPlayStatus({play:!1}),Y.bPlay||(g.pluginStatus.loadingClear(),g.pluginStatus.loadingSetText({text:"连接断开,请重试",color:"red"})),typeof g.params.handleError=="function"&&g.params.handleError({msg:"连接断开,请重试",retcode:1003,id:g.params.id,type:"handleError"});else if(M2.errorCode!=1){var R2=g.errorHander.matchErrorInfo(M2.errorCode),t3="连接断开,请重试";R2&&R2.msg?t3=R2.msg:R2&&R2.description&&(t3=R2.description),g.Theme.setDecoderState({play:!1}),g.pluginStatus.setPlayStatus({play:!1}),g.pluginStatus.loadingClear(),g.pluginStatus.loadingSetText({text:t3,color:"red"})}else g.pluginStatus.loadingClear(),g.Theme&&g.Theme.setDisabled(!1)},openStreamCallback:function(){console.log("开启取流"),g.openStreamTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:224,d:g.openStreamTime-g.gotWsUrlTime,text:"openStream",isVersion2Available:y2()?1:0})},getStreamHeaderCallback:function(){console.log("完成取流返回流头"),g.getStreamHeaderTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:225,d:g.getStreamHeaderTime-g.openStreamTime,text:"getStreamHeader",isVersion2Available:y2()?1:0})},getVideoStreamCallback:function(){console.log("返回视频流(首次)"),g.getVideoStreamTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:226,d:g.getVideoStreamTime-g.getStreamHeaderTime,text:"getVideoStream",isVersion2Available:y2()?1:0})},appearFirstFrameCallback:function(){console.log("出现首帧画面(播放成功)"),g.appearFirstFrameTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:227,d:g.appearFirstFrameTime-g.getStreamHeaderTime,text:"appearFirstFrame",isVersion2Available:y2()?1:0})},averageStreamSuccessCallback:function(){console.log("平均成功取流的出流耗时"),g.averageStreamSuccessTime=g.initSuccessTime-g.initTime+(g.gotWsUrlTime-g.startGetWsUrlTime)+(g.appearFirstFrameTime-g.openStreamTime),g.Monitor.dclog({url:g.url,action:228,d:g.averageStreamSuccessTime,text:"averageStreamSuccess",isVersion2Available:y2()?1:0})}},g.env={domain:"https://open.ys7.com"},typeof m.env!="undefined"&&(g.env=Object.assign(g.env,m.env)),typeof m.handleTalkSuccess!="undefined"&&(g.handleTalkSuccess=m.handleTalkSuccess),typeof m.handleTalkError!="undefined"&&(g.handleTalkError=m.handleTalkError),g.errorHander=new b2,g.jSPlugin=Y;var B=setInterval(function(){window.JSPlayerModuleLoaded&&(clearInterval(B),typeof g.params.handleInitSuccess=="function"&&g.params.handleInitSuccess({retcode:0,id:g.params.id,type:"handleInitSuccess"}),C({meta:{retcode:200,msg:"初始化成功"}}),m.url.indexOf("rec")!=-1&&g.Theme.changeTheme(g.isMobile?"mobileRec":"pcRec"))},50)}else Y=new window.JSPluginV1({szId:S,iType:2,iWidth:E,iHeight:r2,iMaxSplit:1,iCurrentSplit:1,szBasePath:"",staticPath:g.staticPath,oStyle:{border:"none",background:"#000000"}}),g.pluginStatus.loadingStart(S),g.pluginStatus.loadingSetText({text:"初始化播放器完成"}),Y.EventCallback={openStreamCallback:function(){console.log("开启取流---v1"),g.openStreamTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:224,d:g.openStreamTime-g.gotWsUrlTime,text:"openStream",isVersion2Available:y2()?1:0})},getStreamHeaderCallback:function(){console.log("完成取流返回流头"),g.getStreamHeaderTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:225,d:g.getStreamHeaderTime-g.openStreamTime,text:"getStreamHeader",isVersion2Available:y2()?1:0})},getVideoStreamCallback:function(){console.log("返回视频流(首次)"),g.getVideoStreamTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:226,d:g.getVideoStreamTime-g.getStreamHeaderTime,text:"getVideoStream",isVersion2Available:y2()?1:0})},appearFirstFrameCallback:function(){console.log("出现首帧画面(播放成功)"),g.appearFirstFrameTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:227,d:g.appearFirstFrameTime-g.getStreamHeaderTime,text:"appearFirstFrame",isVersion2Available:y2()?1:0})},averageStreamSuccessCallback:function(){console.log("平均成功取流的出流耗时"),g.averageStreamSuccessTime=g.initSuccessTime-g.initTime+(g.gotWsUrlTime-g.startGetWsUrlTime)+(g.appearFirstFrameTime-g.openStreamTime),g.Monitor.dclog({url:g.url,action:228,d:g.averageStreamSuccessTime,text:"averageStreamSuccess",isVersion2Available:y2()?1:0})},loadEventHandler:function(){},zoomEventResponse:function(){},windowEventSelect:function(k){},pluginErrorHandler:function(k,V,M2){if(console.log(k,V,M2),V===1003)console.log("断流"),g.Theme.setDecoderState({play:!1}),g.pluginStatus.setPlayStatus({play:!1}),Y.bPlay||(g.pluginStatus.loadingClear(),g.pluginStatus.loadingSetText({text:"连接断开,请重试",color:"red"})),typeof g.params.handleError=="function"&&g.params.handleError({msg:"连接断开,请重试",retcode:1003,id:g.params.id,type:"handleError"});else if(M2.errorCode!=1){var R2=g.errorHander.matchErrorInfo(M2.errorCode),t3="连接断开,请重试";R2&&R2.msg?t3=R2.msg:R2&&R2.description&&(t3=R2.description),g.Theme.setDecoderState({play:!1}),g.pluginStatus.setPlayStatus({play:!1}),g.pluginStatus.loadingClear(),g.pluginStatus.loadingSetText({text:t3,color:"red"})}else g.pluginStatus.loadingClear(),g.Theme&&g.Theme.setDisabled(!1)},windowEventOver:function(k){},windowEventOut:function(k){},windowEventUp:function(k){},windowFullCcreenChange:function(k){},firstFrameDisplay:function(k,V,M2){console.log(V,M2),Y.JS_SetCanFullScreen(!1)},performanceLack:function(){},mouseEvent:function(k,V,M2){}},g.env={domain:"https://open.ys7.com"},typeof m.env!="undefined"&&(g.env=Object.assign(g.env,m.env)),typeof m.handleTalkSuccess!="undefined"&&(g.handleTalkSuccess=m.handleTalkSuccess),typeof m.handleTalkError!="undefined"&&(g.handleTalkError=m.handleTalkError),g.errorHander=new b2,g.jSPlugin=Y,typeof g.params.handleInitSuccess=="function"&&g.params.handleInitSuccess({retcode:0,id:g.params.id,type:"handleInitSuccess"}),C({meta:{retcode:200,msg:"初始化成功"}}),m.url.indexOf("rec")!=-1&&g.Theme.changeTheme(g.isMobile?"mobileRec":"pcRec")},D2=new Promise(X);return D2}},{key:"_getRealUrlPromise",value:function(m,g){var S=this;console.log("获取播放地址 url => ".concat(g," ").concat(this.accessToken)),console.log("开始获取wsurl"),this.startGetWsUrlTime=new Date().getTime(),this.Monitor.dclog({url:this.url,action:222,text:"startGetWsUrl",isVersion2Available:y2()?1:0});var x=this.env.domain;this.env&&(x=this.env.domain);var E=function(s2,Q){var X="",D2=x+"/api/lapp/live/url/ezopen",g2=new FormData;g2.append("ezopen",g),g2.append("isFlv",!1),g2.append("userAgent",window.navigator.userAgent),g2.append("isHttp",!1),g2.append("accessToken",m),fetch(D2,{method:"POST",body:g2}).then(function(C){return C.json()}).then(function(C){if(C.code==200||C.retcode==0){var I="",Y="";C.ext&&C.ext.token?(X+=C.data,Y=C.ext.token,I=C.data):C.data&&C.data.token&&(X+=C.data.url,Y=C.data.token,I=C.data.url);var B=g.indexOf("live")!==-1?"live":"playback";B==="live"?X=X+"&ssn="+Y+"&auth=1&biz=4&cln=100":X=X+"&ssn="+Y+"&auth=1&cln=100",console.log(X);var A=h("checkCode",X);if(A&&(typeof S.jSPlugin.decoderVersion!="undefined"&&S.jSPlugin.decoderVersion==="2.0"?S.validateCode=A:(console.log("设置密钥",A),S.jSPlugin.JS_SetSecretKey(0,A))),X.indexOf("playback")!==-1){var k=h("begin",I)||h("begin",g),V=h("end",I)||h("end",g);if(k)X=X.replace("&begin="+h("begin",I),"&begin="+L(k,"000000")),h("begin",X)||(X+="&begin="+L(k,"000000"));else{var M2=new Date;X=X+"&begin="+M2.Format("yyyyMMdd")+"T000000Z"}if(V?(X=X.replace("&end="+h("end",I),"&end="+L(V,"235959")),h("end",X)||(X+="&end="+L(V,"235959"))):X=X+"&end="+L(h("begin",X).substr(0,8),"235959"),h("stream",I)||(X=X.replace("stream","&stream")),g.indexOf(".cloud")!==-1){var R2=function(N1){if(N1.code==200){var L1=[];if(N1.data&&N1.data.files&&N1.data.files.length>0){var G1=N1.data.files,y0=new Date().getTime(),B2=N1.data.isAll;if(B2){L1=t1(G1);var y3=JSON.stringify(L1).replace("\\","");X+="&recSlice="+y3.replace("\\","")+"&r="+Math.random(),s2(X)}else{var P3=function v1(){function j1(U1){if(U1.data&&U1.data.files&&U1.data.files.length>0)if(U1.data.isAll==!1)U1.data.files&&(G1=G1.concat(U1.data.files)),y0=U1.data.nextFileTime>0?U1.data.nextFileTime:new Date().getTime(),v1();else{L1=t1(G1);var D1=JSON.stringify(L1).replace("\\","");X+="&recSlice="+D1.replace("\\","")+"&r="+Math.random(),s2(X)}else{L1=t1(G1);var D1=JSON.stringify(L1).replace("\\","");X+="&recSlice="+D1.replace("\\","")+"&r="+Math.random(),s2(X)}}T3.startTime=y0,j(M3,"POST",T3,"",j1)};P3()}}else Q({retcode:-1,msg:"未找到录像片段"})}else Q({retcode:-1,msg:"未找到录像片段"});function t1(v1){var j1=[];return v1.forEach(function(U1,D1){j1.length==0||U1.downloadPath!==j1[j1.length-1].downloadPath?j1.push({downloadPath:U1.downloadPath,ownerId:U1.ownerId,iStorageVersion:U1.iStorageVersion,videoType:U1.videoType,iPlaySpeed:0,startTime:U1.startTime,endTime:U1.endTime}):j1[j1.length-1].endTime=U1.endTime}),j1}},t3=r2(h("begin",X)),Q2=r2(h("end",X)),c3=h("serial",X),b3=h("chn",X),M3=x+"/api/lapp/video/by/time",T3={accessToken:S.accessToken,recType:1,deviceSerial:c3,channelNo:b3,startTime:t3,endTime:Q2,version:"2.0"};j(M3,"POST",T3,"",R2)}else if(g.indexOf("alarmId")!==-1){var f1=function(P3){if(P3.code==200){var t1=[];if(P3.data){t1=j1([P3.data]);var v1=JSON.stringify(t1).replace("\\","");X+="&recSlice="+v1.replace("\\",""),console.log("realUrl",X,P3.data.recType),P3.data.recType==1?X=X.replace("/playback","/cloudplayback"):X=X.replace("/cloudplayback","/playback"),s2(X)}}function j1(U1){var D1=[];return U1.forEach(function(u0,On){D1.length==0||u0.downloadPath!==D1[D1.length-1].downloadPath?D1.push({downloadPath:u0.downloadPath,ownerId:u0.ownerId,iStorageVersion:u0.iStorageVersion,videoType:u0.videoType,iPlaySpeed:0,startTime:u0.startTime,endTime:u0.endTime}):D1[D1.length-1].endTime=u0.endTime}),console.log("downloadPathArr",D1),D1}};console.log("进入alarmId回放");var S1=h("alarmId",X),t3=r2(h("begin",X)),Q2=r2(h("end",X)),c3=h("serial",X),b3=h("chn",X),M3=x+"/api/lapp/video/by/id",T3={accessToken:S.accessToken,deviceSerial:c3,channelNo:b3,alarmId:S1};j(M3,"POST",T3,"",f1)}else s2(X)}else s2(X)}else S.Theme&&S.Theme.setDisabled(!0),S.pluginStatus.loadingClear(),S.pluginStatus.loadingSetText({text:C.msg,color:"red"}),typeof S.params.handleError=="function"&&S.params.handleError({retcode:C.code,msg:C.msg,id:S.params.id,type:"handleError"}),Q(C)})};return new Promise(function(l2,s2){return E(l2,s2)});function L(l2,s2){var Q=/^[0-9]{8}T[0-9]{6}Z$/;if(Q.test(l2))return l2;if(/[0-9]{8,14}/.test(l2)){var X=6-(14-l2.length),D2=s2.length,g2=l2+s2.substring(X,D2);return g2.slice(0,8)+"T"+g2.slice(8)+"Z"}throw new Error("回放时间格式有误,请确认")}function r2(l2){var s2=l2.slice(0,4),Q=l2.slice(4,6),X=l2.slice(6,8),D2=l2.slice(9,11),g2=l2.slice(11,13),C=l2.slice(13,15),I=s2+"-"+Q+"-"+X+" "+D2+":"+g2+":"+C;return new Date(I.replace(/-/g,"/")).getTime()}}},{key:"_pluginPlay",value:function(m,g,S){var x=this;if(console.log("执行播放 _pluginPlay",m),!m)return!1;function E(s2){var Q=s2.split("?")[0].replace("/live","").replace("/playback",""),X=(s2.indexOf("/live")===-1?s2.indexOf("cloudplayback")!==-1?"/cloudplayback?":"/playback?":"/live?")+s2.split("?")[1];return X.indexOf("/playback")!==-1&&(X=X.replace("stream=2","stream=1")),{websocketConnectUrl:Q,websocketStreamingParam:X}}var L=E(m).websocketConnectUrl;this.env&&this.env.wsUrl&&(L=this.env.wsUrl),this.gotWsUrlTime=new Date().getTime(),this.Monitor.dclog({url:this.url,action:223,d:this.gotWsUrlTime-this.startGetWsUrlTime,text:"getWsUrlSuccess",isVersion2Available:y2()?1:0});var r2={playURL:E(m).websocketStreamingParam};console.log("播放前 stop 阶段 结束"),this.isStoping=!1;var l2=Date.now();console.log("执行播放 ... this.jSPlugin.JS_Play at ",l2),this.jSPlugin.JS_Play(L,r2,0).then(function(){if(console.log("执行播放 ... this.jSPlugin.JS_Play 播放成功",L,r2),console.log("执行播放耗时 ",Date.now()-l2),x.isStoping){console.log("现在在播放前 stop 阶段,此次应为无效播放成功触发。不执行后续回调, 此次耗时无效");return}if(x.validateCode&&typeof x.jSPlugin.decoderVersion!="undefined"&&x.jSPlugin.decoderVersion==="2.0"&&x.jSPlugin.JS_SetSecretKey(0,x.validateCode),x.pluginStatus.loadingClear(),x.pluginStatus.setPlayStatus({play:!0,loading:!1}),x.Theme){x.Theme.setDecoderState({play:!0});var s2=H.findIndex(x.Theme.themeData.footer.btnList,function(Q){return Q.iconId==="sound"&&Q.isrender===1&&Q.defaultActive===1})>-1;x.audio=s2}x.audio&&setTimeout(function(){x.openSound()},500),typeof x.params.handleSuccess=="function"&&x.params.handleSuccess({retcode:0,id:x.params.id,type:"handleSuccess"}),g(r2),x.Monitor.dclog({url:x.url,action:211,d:new Date().getTime()-x.playStartTime,text:"startPlaySuccess"}),x.Monitor.playLog({Enc:x.url.indexOf("@")===-1?0:1,PlTp:x.url.indexOf("back")===-1?1:2,Via:2,ErrCd:0,Cost:new Date().getTime()-x.playStartTime,Serial:P(x.url).deviceSerial,Channel:P(x.url).channelNo,Ver:y2()?"v7.0.0":"v6.0.0"})},function(s2){console.log("err",s2);var Q="播放失败,请检查设备及客户端网络",X=-1;if(x.jSPlugin.bPlay)return!1;if(s2&&s2.errorCode){var D2=x.errorHander.matchErrorInfo(s2.errorCode);x.Theme&&x.Theme.setDisabled(!0),D2&&D2.msg?Q=D2.msg:D2&&D2.description?Q=D2.description:Q="播放失败,请检查设备及客户端网络",X=s2.errorCode}x.pluginStatus.loadingClear(),x.pluginStatus.loadingSetText({text:Q,color:"red"}),typeof x.params.handleError=="function"&&x.params.handleError({retcode:X,msg:Q,id:x.params.id,type:"handleError"}),S(),x.Monitor.dclog({url:x.url,action:411,d:new Date().getTime()-x.playStartTime,text:"startPlayError"}),x.Monitor.playLog({Enc:x.url.indexOf("@")===-1?0:1,PlTp:x.url.indexOf("back")===-1?1:2,Via:2,ErrCd:X,Cost:-1,Serial:P(x.url).deviceSerial,Channel:P(x.url).channelNo,Ver:y2()?"v7.0.0":"v6.0.0"})})}},{key:"_play",value:function(m){var g=this;console.log("执行播放 play options.url =>",m),this.pluginStatus.setPlayStatus({play:!1,loading:!0}),this.playStartTime=new Date().getTime(),this.Monitor.dclog({url:this.url,action:1,d:new Date().getTime()-this.initTime,text:"startPlay"}),m&&(typeof m=="string"&&(this.url=m),typeof m.url=="string"&&(this.url=m.url),typeof m.accessToken=="string"&&(this.accessToken=m.accessToken),this.Theme&&(typeof m.url=="string"||typeof m.accessToken=="string")&&this.Theme.getDeviceInfo());var S=new Promise(function(x,E){console.log("执行 播放前 stop"),g.isStoping=!0,g.jSPlugin.JS_Stop(0).then(function(){console.log("播放前 stop 执行成功 this.url => ".concat(g.url," ").concat(g.accessToken)),g._getRealUrlPromise(g.accessToken,g.url).then(function(L){g._pluginPlay(L,function(r2){x(!0)},function(){return E(!1)})}).catch(function(L){var r2=L.msg?L.msg:"播放失败,请检查设备及客户端网络";g.Theme&&g.Theme.setDisabled(!0),g.pluginStatus.loadingClear(),g.pluginStatus.loadingSetText({text:r2,color:"red"}),typeof g.params.handleError=="function"&&g.params.handleError({retcode:L.oError?L.oError.errorCode:-1,msg:r2,id:g.params.id,type:"handleError"}),E({retcode:L.oError?L.oError.errorCode:-1,msg:r2,id:g.params.id,type:"handleError"})})})});return S}},{key:"stop",value:function(){var m=this;return this.pluginStatus.setPlayStatus({loading:!0}),this.reSetTheme(),this.jSPlugin.JS_Stop(0).then(function(){console.log("停止成功"),m.pluginStatus.setPlayStatus({play:!1,loading:!1}),m.Theme&&m.Theme.setDecoderState({play:!1})})}},{key:"changeVideoLevel",value:function(m){var g=this,S=this.url,x=m?S.replace(".live",".hd.live"):S.replace(".hd.live",".live");this.jSPlugin.playURL=m?this.jSPlugin.playURL.replace("stream=2","stream=1"):this.jSPlugin.playURL.replace("stream=1","stream=2"),console.log("changeVideoLevel",x,this.jSPlugin.playURL),this.url=x;var E=new Promise(function(L,r2){g.pause().then(function(){console.log("暂停成功"),g.resume().then(function(l2){console.log("恢复成功")})}).catch(function(){console.log("暂停失败"),g.resume().then(function(l2){console.log("恢复成功")})})});return E}},{key:"reSetTheme",value:function(){this.Theme&&this.Theme.Ptz&&(this.Theme.setDecoderState({pantile:!1}),this.Theme.Ptz.hide()),this.Theme&&this.Theme.decoderState.state.recordvideo&&this.Theme.setDecoderState({recordvideo:!1}),this.Theme&&this.Theme.decoderState.state.zoom&&(this.Zoom.stopZoom(),this.Theme.setDecoderState({zoom:!1})),this.Theme&&this.Theme.decoderState.state.talk&&(this.stopTalk(),this.Theme.setDecoderState({talk:!1})),this.Theme&&this.Theme.Rec&&!this.Theme.isMobile&&this.Theme.Rec.datepickerHide(),this.Theme&&this.Theme.Rec&&(this.Theme.changeRecSpeed(1),this.Theme.nextRate=1,this.speed=1,this.Theme.setDecoderState({speed:!1}))}},{key:"_changePlayUrl",value:function(m){var g=this,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};console.log("_changePlayUrl"),console.log(m),this.reSetTheme(),this.getDeviceCapacity({accessToken:m.accessToken,deviceSerial:m.deviceSerial});var x=this.url,E=r2(x,m);m.accessToken&&(this.accessToken=m.accessToken),this.url=E,S(),this.pluginStatus.loadingStart(this.id),this.pluginStatus.loadingSetText({text:"加载中,请稍后"});var L=new Promise(function(l2,s2){var Q={url:E};return m.accessToken&&(Q.accessToken=m.accessToken),console.log("切换播放地址 参数 ",Q),g.play(Q).then(function(){console.log("切换播放地址 play 执行成功 ",g.url,g.accessToken),g.Theme&&g.Theme.decoderState.state.webExpend&&g.Theme.webExpend(),g.Theme&&g.Theme.decoderState.state.expend&&g.Theme.expend(),m.type?m.type=="rec"||m.type=="cloud.rec"?g.Theme.changeTheme(g.isMobile?"mobileRec":"pcRec"):g.Theme.changeTheme(g.isMobile?"mobileLive":"pcLive"):g.url.indexOf(".rec")>-1?g.Theme.changeTheme(g.isMobile?"mobileRec":"pcRec"):g.Theme.changeTheme(g.isMobile?"mobileLive":"pcLive"),m&&m.begin&&m.deviceSerial&&g.Theme.Rec.setDatepickerDate(m.begin),g.Theme.setDisabled(!1),l2(E)}).catch(function(X){s2(E),X&&X.msg&&(g.Theme&&g.Theme.setDisabled(!0),g.pluginStatus.loadingClear(),g.pluginStatus.loadingSetText({text:X.msg,color:"red"}))})});function r2(l2,s2){if(s2.url)return s2.url;console.log("--------------matchInitUrl",l2);var Q=l2.split("/")[4].split(".")[l2.split("/")[4].split(".").length-1].split("?")[0];Q==="rec"&&l2.indexOf(".cloud.rec")!==-1&&(Q="cloud.rec"),s2.type&&(Q=s2.type);var X=l2.split("/")[3];s2.deviceSerial&&(X=s2.deviceSerial);var D2=l2.split("/")[4].split(".")[0];s2.channelNo&&(D2=s2.channelNo);var g2=l2.split("/")[2].split("@").length===2?l2.split("/")[2].split("@")[0]:"";typeof s2.validCode!="undefined"&&(g2=s2.validCode);var C=typeof s2.hd=="undefined"?l2.indexOf(".hd")!==-1:s2.hd,I="ezopen://".concat(g2?"".concat(g2,"@"):"","open.ys7.com/").concat(X,"/").concat(D2).concat(C?".hd":"",".").concat(Q);return Q==="live"||(I="ezopen://".concat(g2?"".concat(g2,"@"):"","open.ys7.com/").concat(X,"/").concat(D2,".").concat(Q),s2.begin&&s2.end?I+="?begin=".concat(s2.begin,"&end=").concat(s2.end):s2.begin?I+="?begin=".concat(s2.begin):h("begin",l2)&&(I+="?begin=".concat(h("begin",l2)))),I}return L}},{key:"getOSDTime",value:function(){var m=this,g=new Promise(function(S,x){m.jSPlugin.JS_GetOSDTime(0).then(function(E){S({code:0,retcode:0,data:E}),typeof m.params.getOSDTimeCallBack=="function"&&m.params.getOSDTimeCallBack({id:m.id,type:"getOSDTime",code:0,data:E})}).catch(function(E){x({code:-1,retcode:-1,data:E}),typeof m.params.getOSDTimeCallBack=="function"&&m.params.getOSDTimeCallBack({id:m.id,type:"getOSDTime",code:-1,data:-1})})});return g}},{key:"capturePicture",value:function(m){var g=this,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=this.jSPlugin.JS_CapturePicture(0,m,"JPEG",S,!!S);return d(x)?(typeof this.params.capturePictureCallBack=="function"&&x.then(function(){g.params.capturePictureCallBack({id:g.id,type:"capturePicture",code:0})}).catch(function(){g.params.capturePictureCallBack({id:g.id,type:"capturePicture",code:-1})}),x):new Promise(function(E){E(x)})}},{key:"startSave",value:function(m){var g=this,S=this.jSPlugin.JS_StartSave(0,m);return d(S)?(typeof this.params.startSaveCallBack=="function"&&S.then(function(){g.params.startSaveCallBack({id:g.id,type:"startSave",code:0})}).catch(function(){g.params.startSaveCallBack({id:g.id,type:"startSave",code:-1})}),S):(this.Theme&&this.Theme.setDecoderState({recordvideo:!0}),new Promise(function(x){x(S)}))}},{key:"stopSave",value:function(){var m=this,g=this.jSPlugin.JS_StopSave(0);return d(g)?(typeof this.params.startSaveCallBack=="function"&&g.then(function(){m.params.stopSaveCallBack({id:m.id,type:"stopSave",code:0})}).catch(function(){m.params.stopSaveCallBack({id:m.id,type:"stopSave",code:-1})}),g):(this.Theme&&this.Theme.setDecoderState({recordvideo:!1}),new Promise(function(S){S(g)}))}},{key:"openSound",value:function(){var m=this.jSPlugin.JS_OpenSound(0);return console.log("打开声音",m),d(m)?m:(this.Theme&&this.Theme.setDecoderState({sound:!0}),typeof this.params.openSoundCallBack=="function"&&this.params.openSoundCallBack({id:this.id,type:"openSound",code:m}),new Promise(function(g){g(m)}))}},{key:"closeSound",value:function(){var m=this.jSPlugin.JS_CloseSound(0);return d(m)?m:(this.Theme&&this.Theme.setDecoderState({sound:!1}),typeof this.params.closeSoundCallBack=="function"&&this.params.closeSoundCallBack({id:this.id,type:"closeSound",code:m}),new Promise(function(g){g(m)}))}},{key:"enableZoom",value:function(){var m=this.jSPlugin.JS_EnableZoom(0);return d(m)?m:new Promise(function(g){g(m)})}},{key:"closeZoom",value:function(){var m=this.jSPlugin.JS_DisableZoom(0);return d(m)?m:new Promise(function(g){g(m)})}},{key:"setPoster",value:function(m){y2()?document.getElementById("".concat(this.id))&&(document.getElementById("".concat(this.id)).style.backgroundImage="url(".concat(m,")"),document.getElementById("".concat(this.id)).style.backgroundSize="100% 100%"):document.getElementById("".concat(this.id,"canvas0"))&&(document.getElementById("".concat(this.id,"canvas0")).style.backgroundImage="url(".concat(m,")"),document.getElementById("".concat(this.id,"canvas0")).style.backgroundSize="cover")}},{key:"reSize",value:function(m,g){var S=0,x=0;if(this.params.height=g,this.params.width=m,this.Theme&&this.Theme.isNeedRenderHeader&&document.getElementById("".concat(this.id,"-headControl"))&&(S=parseInt(document.getElementById("".concat(this.id,"-headControl")).style.height,10)),this.Theme&&this.Theme.isNeedRenderTimeLine&&!this.isMobile&&(x=48),g=g-S-x,this.width=m,this.height=g,document.getElementById("".concat(this.id,"-wrap")).style="width:".concat(m,"px;position:relative;display:inline-block;vertical-align: bottom;"),document.getElementById("".concat(this.id)).style.width=m+"px",document.getElementById("".concat(this.id)).style.height=g+"px",this.jSPlugin&&this.jSPlugin.bPlay)this.jSPlugin&&(this.jSPlugin.iHeight=g,this.jSPlugin.iWidth=m),this.jSPlugin.JS_Resize(m,g);else{document.getElementById("".concat(this.id,"-player"))&&(document.getElementById("".concat(this.id,"-player")).width=m,document.getElementById("".concat(this.id,"-player")).height=g,document.getElementById("".concat(this.id,"-player")).style.width=m+"px",document.getElementById("".concat(this.id,"-player")).style.height=g+"px");var E=1;if(document.getElementById("".concat(this.id,"canvas0"))){var L=navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);L&&(E=2),document.getElementById("".concat(this.id,"canvas0")).style.width=m*E+"px",document.getElementById("".concat(this.id,"canvas0")).style.height=g*E+"px",document.getElementById("".concat(this.id,"canvas0")).width=m*E,document.getElementById("".concat(this.id,"canvas0")).height=g*E,document.getElementById("".concat(this.id,"canvas0")).parentNode.style.width=m*E+"px",document.getElementById("".concat(this.id,"canvas0")).parentNode.style.height=g*E+"px",document.getElementById("".concat(this.id,"canvas_draw0")).height=g*E}this.jSPlugin&&(this.jSPlugin.iHeight=g*E,this.jSPlugin.iWidth=m*E)}}},{key:"fast",value:function(m){var g=this,S=this.speed;if(m)var x=this.jSPlugin.JS_Fast(0,m);else{if(S===1)S=2;else if(S===2)S=4;else return typeof this.params.handleError=="function"&&this.params.handleError({msg:"播放速度最大为4倍速度",retcode:1003,id:this.id,type:"handleError"}),new Promise(function(L,r2){g.speed=S,r2({code:-1,data:{speed:S,result:"播放速度最大为4倍速度"}})});var x=this.jSPlugin.JS_Fast(0)}return new Promise(function(E){g.speed=S,E({code:0,data:{speed:S,result:x}})})}},{key:"slow",value:function(){var m=this,g=this.speed;if(g===4)g=2;else if(g===2)g=1;else return typeof this.params.handleError=="function"&&this.params.handleError({msg:"播放速度最小为1倍速度",retcode:1003,id:this.id,type:"handleError"}),new Promise(function(x,E){m.speed=g,E({code:-1,data:{speed:g,result:"播放速度最小为1倍速度"}})});var S=this.jSPlugin.JS_Slow(0);return new Promise(function(x){m.speed=g,x({code:0,data:{speed:g,result:S}})})}},{key:"seek",value:function(m,g){var S=this.url,x=(h("begin",S)||new Date().Format("yyyyMMdd")).substr(0,8);if(g=E(x,"235959"),m.length===6)m=E(x,m);else if(m.length===16){if(m.substr(0,8)!==x)return typeof this.params.handleError=="function"&&this.params.handleError({msg:"seek时间不能跨日期",retcode:-1,id:this.id,type:"handleError"}),!1}else return typeof this.params.handleError=="function"&&this.params.handleError({msg:"seek时间格式错误",retcode:-1,id:this.id,type:"handleError"}),!1;function E(r2,l2){var s2=/^[0-9]{8}T[0-9]{6}Z$/;if(s2.test(r2))return r2;if(/[0-9]{8,14}/.test(r2)){var Q=6-(14-r2.length),X=l2.length,D2=r2+l2.substring(Q,X);return D2.slice(0,8)+"T"+D2.slice(8)+"Z"}throw new Error("回放时间格式有误,请确认")}var L=this.jSPlugin.JS_Seek(0,m,g);return console.log("seekRT",L),d(L)?L:new Promise(function(r2){r2(L)})}},{key:"fullScreen",value:function(){var m=this,g=b(document.getElementById("".concat(this.id)));g.then(function(x){console.log("全屏promise",window.screen.availWidth),m.jSPlugin.JS_Resize(window.screen.availWidth,window.screen.availHeight),typeof m.params.fullScreenCallBack=="function"&&m.params.fullScreenCallBack({id:m.id,type:"fullScreen",code:0})});var S=function(){var E=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;E||m.jSPlugin.JS_Resize(m.width,m.height),typeof m.params.fullScreenChangeCallBack=="function"&&m.params.fullScreenChangeCallBack({id:m.id,type:"fullScreen",code:E})};["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].forEach(function(x){window.addEventListener(x,function(E){return S()})})}},{key:"cancelFullScreen",value:function(){var m=this,g=U();g.then(function(S){console.log("取消全屏",S,m.jSPlugin),m.jSPlugin.JS_Resize(m.width,m.height)})}},{key:"startTalk",value:function(){this.Talk.startTalk()}},{key:"stopTalk",value:function(){this.Talk.stopTalk()}},{key:"destroy",value:function(){var m=this.jSPlugin.JS_DestroyWorker(0);return this.Theme&&(this.Theme=null,window.EZUIKit[this.params.id].state.EZUIKitPlayer.themeInit=!1),d(m)?m:new Promise(function(g){g(m)})}},{key:"getDeviceCapacity",value:function(m){var g=this,S=this.env.domain;this.env&&(S=this.env.domain);var x=S+"/api/lapp/device/capacity",E=function(l2){l2.code==200&&l2.data&&(g.capacity=l2.data)},L=m||{accessToken:this.accessToken,deviceSerial:P(this.url).deviceSerial};j(x,"POST",L,"",E)}},{key:"pause",value:function(){var m=this;return new Promise(function(g,S){m.jSPlugin.JS_CloseSound(0),m.jSPlugin.JS_Pause(0,function(x){m.setPoster(x.base64)}).then(function(x){m.Theme&&m.Theme.setDecoderState({play:!1}),g()}).catch(function(x){console.log(x),S(x)})})}},{key:"_resume",value:function(m){var g=this;return new Promise(function(S,x){g.pluginStatus.setPlayStatus({play:!1,loading:!0}),g.jSPlugin.JS_Resume(m).then(function(E){if(setTimeout(function(){g.url.indexOf(".rec")!==-1&&g.speed!=1&&g.jSPlugin.JS_Speed(g.speed)},500),g.Theme){g.Theme.setDecoderState({play:!0,speed:g.speed});var L=g.Theme.decoderState.state.sound;L&&setTimeout(function(){g.openSound()},500)}S(E)}).catch(function(E){console.log("resume err",E),x(E)})})}}]),R}(),x2=null;function r3(R,N,m,g){return new WebControl({szPluginContainer:R,iServicePortStart:14510,iServicePortEnd:14519,cbConnectSuccess:N,cbConnectError:m,cbConnectClose:g})}function o3(){x2!=null&&(x2.JS_DestroyWnd().then(function(){console.log("JS_DestroyWnd")},function(){}),x2.JS_StopService("window").then(function(){x2.JS_Disconnect().then(function(){console.log("JS_Disconnect")},function(){})}))}function u3(R){R.responseMsg.eventName,console.log(R.responseMsg)}function Q3(){x2.JS_SetWindowControlCallback({cbIntegrationCallBack:u3}),x2.JS_StartService("window",{dllPath:"./chain/cloudTransform.dll"}).then(function(){x2.JS_CreateWnd("playWnd",900,500).then(function(){console.log("JS_CreateWnd success")})})}function i1(){console.log("cbConnectError"),x2=null,console.error("确认本地进程是否已安装并开启成功!")}function M1(R){console.log("cbConnectClose"),x2=null}window.onscroll=function(){x2!=null&&x2.JS_Resize(900,500)},window.onresize=function(){x2!=null&&x2.JS_Resize(900,500)},window.onunload=function(){try{x2.JS_HideWnd(),o3()}catch(R){console.error(R)}},window.onpagehide=function(){try{x2.JS_HideWnd()}catch(R){console.error(R)}};var e1=function(){function R(N){var m=this;i(this,R),s(this,"changeModel",function(g,S){var x=m;m.switchVideo=parseInt(g),x2&&x2.JS_RequestInterface({funcName:"ChangeModel",arguments:encodeURI(JSON.stringify({model:g}))}).then(function(E){g==0?x.play({deviceSerial:S.deviceSerial,channelNo:S.channelNo,validateCode:S.validateCode}):x.play({deviceSerial:S.deviceSerial,channelNo:S.channelNo,validateCode:S.validateCode,startTime:S.startTime,endTime:S.endTime})})}),s(this,"init",function(g){var S,x=m;if(!g.appKey||!g.accessToken){x.showTips(!1,"请输入appkey和token");return}typeof g.appKey!="undefined"&&(m.appKey=g.appKey),typeof g.accessToken!="undefined"&&(m.accessToken=g.accessToken),typeof g.platformId!="undefined"&&(m.platformId=g.platformId);var E=(S={layout:+x.layout,userName:"",waterMark:""},s(S,"waterMark","1"),s(S,"iWndType",0),s(S,"intelligenceEnable",1),s(S,"isRecord",1),s(S,"isSetPos",1),s(S,"motionDetectEnable",0),s(S,"playBackAlarmOverlyingEnable",0),s(S,"response",{code:0,message:null,data:{appKey:g.appKey,ezvizToken:g.accessToken,videoLevel:0,logLevel:3,showMainTool:1,showSubTool:1,waterMark:"1",userName:"openteam",platformId:g.platformId}}),S);console.log("初始化入参",E),x2.JS_RequestInterface({funcName:"Init",arguments:encodeURI(JSON.stringify(E))}).then(function(L){console.log(L.responseMsg),x.showTips(!0,"视频初始化成功!")})}),s(this,"play",function(g){var S=m;if(!(!g.deviceSerial||!g.channelNo)){typeof g.deviceSerial!="undefined"&&(m.deviceSerial=g.deviceSerial),typeof g.channelNo!="undefined"&&(m.channelNo=g.channelNo),typeof g.startTime!="undefined"&&g.startTime&&(m.startTime=g.startTime+" 00:00:00"),typeof g.endTime!="undefined"&&g.endTime&&(m.endTime=g.endTime+" 23:59:59"),typeof g.validateCode!="undefined"&&g.validateCode&&(m.validateCode=g.validateCode);var x={response:{code:0,message:null,data:{deviceSerial:g.deviceSerial,channelCode:g.channelNo,channelNo:+g.channelNo,codeIsEncrypt:0,validateCode:g.validateCode,deviceClass:S.deviceClass,deviceType:"10222",channelId:"2222222222",channelName:"channelNameTest",storeName:"storeName",storeId:"storeid",startTime:m.startTime,endTime:m.endTime}}};S.deviceClass==="1"?(x.response.data.channelCode=S.channelNo,x.response.data.platformId=S.platformId):x.response.data.channelNo=+S.channelNo,m.switchVideo===1&&(m.startTime&&(x.response.data.startTime=m.startTime),m.endTime&&(x.response.data.endTime=m.endTime)),console.log("预览/回放入参",x),x2.JS_RequestInterface({funcName:m.switchVideo===0?"StartPreview":"StartPlayback",arguments:encodeURI(JSON.stringify(x))}).then(function(E){console.log(E.responseMsg),S.showTips(!0,"预览/回放成功!")}).catch(function(E){console.log("开始播放:",E)})}}),s(this,"showCBInfo",function(g){m.callbackMessage=m.callbackMessage+JSON.stringify(g)+`
+`);(function(V,x){window.SuperRender=x()})(void 0,function(){function V(x){this.canvasElement=document.getElementById(x),this.initContextGL(),this.contextGL&&(this.YUVProgram=this.initProgram(Jt,be),this.initBuffers(),this.initTextures())}return V.prototype.initContextGL=function(){var x=this.canvasElement,m=null;try{m=x.getContext("webgl")||x.getContext("experimental-webgl")}catch(g){m=null}(!m||typeof m.getParameter!="function")&&(m=null),this.contextGL=m,console.log("WebGL1.0")},V.prototype.initProgram=function(x,m){var g=this.contextGL,S=g.createShader(g.VERTEX_SHADER);g.shaderSource(S,x),g.compileShader(S),g.getShaderParameter(S,g.COMPILE_STATUS)||console.log("Vertex shader failed to compile: "+g.getShaderInfoLog(S));var A=g.createShader(g.FRAGMENT_SHADER);g.shaderSource(A,m),g.compileShader(A),g.getShaderParameter(A,g.COMPILE_STATUS)||console.log("Fragment shader failed to compile: "+g.getShaderInfoLog(A));var P=g.createProgram();return g.attachShader(P,S),g.attachShader(P,A),g.linkProgram(P),g.getProgramParameter(P,g.LINK_STATUS)||console.log("Program failed to compile: "+g.getProgramInfoLog(P)),g.deleteShader(S),g.deleteShader(A),P},V.prototype.initBuffers=function(){var x=this.contextGL,m=x.createBuffer();x.bindBuffer(x.ARRAY_BUFFER,m),x.bufferData(x.ARRAY_BUFFER,new Float32Array([1,1,-1,1,1,-1,-1,-1]),x.STATIC_DRAW),x.bindBuffer(x.ARRAY_BUFFER,null);var g=x.createBuffer();x.bindBuffer(x.ARRAY_BUFFER,g),x.bufferData(x.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),x.DYNAMIC_DRAW),x.bindBuffer(x.ARRAY_BUFFER,null),this.vertexPosBuffer=m,this.texturePosBuffer=g},V.prototype.initTexture=function(){var x=this.contextGL,m=x.createTexture();return x.bindTexture(x.TEXTURE_2D,m),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_MAG_FILTER,x.LINEAR),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_MIN_FILTER,x.LINEAR),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_S,x.CLAMP_TO_EDGE),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_T,x.CLAMP_TO_EDGE),x.bindTexture(x.TEXTURE_2D,null),m},V.prototype.initTextures=function(){var x=this.contextGL,m=this.YUVProgram;x.useProgram(m);var g=this.initTexture(),S=x.getUniformLocation(m,"ySampler");x.uniform1i(S,0),this.yTextureRef=g;var A=this.initTexture(),P=x.getUniformLocation(m,"uSampler");x.uniform1i(P,1),this.uTextureRef=A;var N=this.initTexture(),r2=x.getUniformLocation(m,"vSampler");x.uniform1i(r2,2),this.vTextureRef=N,x.useProgram(null)},V.prototype.SR_DisplayFrameData=function(x,m,g,S,A){if(!(x<=0||m<=0)){var P=this.contextGL;if(g==null){P.clearColor(0,0,0,0),P.clear(P.COLOR_BUFFER_BIT|P.DEPTH_BUFFER_BIT);return}var N=this.canvasElement;this.nWindowWidth=N.width,this.nWindowHeight=N.height;var r2=this.nWindowWidth,l2=this.nWindowHeight;P.clearColor(.8,.8,1,1),P.clear(P.COLOR_BUFFER_BIT|P.DEPTH_BUFFER_BIT),P.viewport(0,0,r2,l2),this.updateFrameData(x,m,g,S,A);var s2=this.YUVProgram;P.useProgram(s2);var Q=this.vertexPosBuffer;P.bindBuffer(P.ARRAY_BUFFER,Q);var X=P.getAttribLocation(s2,"vertexPos");P.enableVertexAttribArray(X),P.vertexAttribPointer(X,2,P.FLOAT,!1,0,0),P.bindBuffer(P.ARRAY_BUFFER,null);var D2=this.texturePosBuffer;P.bindBuffer(P.ARRAY_BUFFER,D2);var g2=P.getAttribLocation(s2,"texturePos");P.enableVertexAttribArray(g2),P.vertexAttribPointer(g2,2,P.FLOAT,!1,0,0),P.bindBuffer(P.ARRAY_BUFFER,null),P.drawArrays(P.TRIANGLE_STRIP,0,4),P.disableVertexAttribArray(X),P.disableVertexAttribArray(g2),P.useProgram(null)}},V.prototype.updateFrameData=function(x,m,g,S,A){var P=this.contextGL,N=this.yTextureRef,r2=this.uTextureRef,l2=this.vTextureRef,s2=g;if(x==S&&m==A){var Q=x*m,X=s2.subarray(0,Q);P.activeTexture(P.TEXTURE0),P.bindTexture(P.TEXTURE_2D,N),P.texImage2D(P.TEXTURE_2D,0,P.LUMINANCE,x,m,0,P.LUMINANCE,P.UNSIGNED_BYTE,X);var D2=x/2*m/2,g2=s2.subarray(x*m,x*m+D2);P.activeTexture(P.TEXTURE2),P.bindTexture(P.TEXTURE_2D,l2),P.texImage2D(P.TEXTURE_2D,0,P.LUMINANCE,x/2,m/2,0,P.LUMINANCE,P.UNSIGNED_BYTE,g2);var M=D2,L=s2.subarray(x*m+x*m/4,x*m+x*m/4+M);P.activeTexture(P.TEXTURE1),P.bindTexture(P.TEXTURE_2D,r2),P.texImage2D(P.TEXTURE_2D,0,P.LUMINANCE,x/2,m/2,0,P.LUMINANCE,P.UNSIGNED_BYTE,L)}else{for(var Q=S*A,X=new Uint8Array(Q),Y=0;Y0&&S>0){var P=x.left/g,N=x.top/S,r2=x.right/g,l2=x.bottom/S;A=new Float32Array([r2,N,P,N,r2,l2,P,l2])}else A=new Float32Array([1,0,0,0,1,1,0,1]);var s2=this.texturePosBuffer;m.bindBuffer(m.ARRAY_BUFFER,s2),m.bufferSubData(m.ARRAY_BUFFER,0,A),m.bindBuffer(m.ARRAY_BUFFER,null)},V.prototype.SR_Destroy=function(){var x=this.contextGL,m=this.YUVProgram;x.deleteProgram(m);var g=this.vertexPosBuffer,S=this.texturePosBuffer;x.deleteBuffer(g),x.deleteBuffer(S);var A=this.yTextureRef,P=this.uTextureRef,N=this.vTextureRef;x.deleteTexture(A),x.deleteTexture(P),x.deleteTexture(N)},V});var g3="https://open.ys7.com",W3="".concat(g3,"/console/ezuikit_static/v66/v2"),Q3="".concat(g3,"/console/ezuikit_static/v66/v1"),e0=function(x,m){var g=["theme","standard"],S=["pcLive","pcRec","mobileLive","mobileRec","noData","security","voice","simple"];if(typeof x=="undefined")return m.themeData?{templateType:"themeData",templateId:"themeData"}:{templateType:"local",templateId:""};if(typeof x=="string"){if(x.length===32)return{templateType:"remote",templateId:x};if(g.indexOf(x)!==-1)return x==="simple"&&typeof m.header=="undefined"&&typeof m.footer=="undefined"?{templateType:"local",templateId:""}:{templateType:"iframe",templateId:x};if(S.indexOf(x)!==-1)return{templateType:"local",templateId:x}}},y2=function(){var x=window.navigator.userAgent.toLowerCase(),m={sa:/version.*safari/.test(x),ch:/chrome/.test(x),ff:/gecko/.test(x)&&!/webkit/.test(x)},g=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);if(g)return!1;if(m.ch){var S=function(){for(var P=window.navigator.userAgent.split(" "),N="",r2=0;r291&&!!window.SharedArrayBuffer}return!1},W=function(){function V(x){var m=this;i(this,V),this.isStoping=!1;var g=x.autoplay,S=g===void 0?!0:g;if((x.template||x.themeData)&&(S=!1),this.params=x,this.autoplay=S,window.EZUIKit[x.id]={state:{EZUIKitPlayer:{init:window.EZUIKit[x.id]&&window.EZUIKit[x.id].state&&window.EZUIKit[x.id].state.EZUIKitPlayer.init||!1,themeInit:window.EZUIKit[x.id]&&window.EZUIKit[x.id].state&&window.EZUIKit[x.id].state.EZUIKitPlayer.themeInit||!1,talkInit:window.EZUIKit[x.id]&&window.EZUIKit[x.id].state&&window.EZUIKit[x.id].state.EZUIKitPlayer.talkInit||!1}}},e0(this.params.template,x).templateType!=="iframe"){this.Monitor=new l0({env:typeof x.disableMonitor!="undefined"&&x.disableMonitor?"test12":"online"},this),this.id=x.id,this.width=x.width,this.height=x.height,this.url=x.url,this.accessToken=x.accessToken,this.themeId=e0(x.template,x).templateId,this.id=x.id,this.audio=!0,this.poster=x.poster,this.speed=1,this.disabledTimeLine=!1,this.disabledPTZ=!1,this.enableSharedArrayBufferGuide=!1,this.capacity={},this.playTimer=null,this.env={domain:"https://open.ys7.com"};var A=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);this.isMobile=A,document.getElementById("".concat(this.id,"-wrap"))&&(document.getElementById("".concat(this.id,"-wrap")).innerHTML="",document.getElementById("".concat(this.id,"-wrap")).id=this.id),this.staticPath=y2()?W3:Q3,typeof x.staticPath=="string"&&(x.staticPath.startsWith("http")?this.staticPath=x.staticPath:this.staticPath=window.location.protocol+"//"+window.location.host+x.staticPath,y2()?this.staticPath+="/v2":this.staticPath+="/v1"),typeof x.audio!="undefined"&&(this.audio=x.audio),typeof x.env!="undefined"&&(this.env=Object.assign(this.env,x.env)),typeof x.isMobile!="undefined"&&(this.isMobile=x.isMobile),typeof x.disabledTimeLine!="undefined"&&(this.disabledTimeLine=x.disabledTimeLine),typeof x.disabledPTZ!="undefined"&&(this.disabledPTZ=x.disabledPTZ),typeof x.enableSharedArrayBufferGuide!="undefined"&&(this.enableSharedArrayBufferGuide=x.enableSharedArrayBufferGuide);var P="".concat(this.staticPath,"/js/jsPluginV1-1.0.0.min.js"),N=function(){if(window.addPluginUrlIng=!0,y2())console.log("启用多线程解析视频"),P="".concat(m.staticPath,"/js/jsPluginV2-2.0.1.min.js");else{var s2=function(){for(var L=navigator.userAgent.split(" "),Y="",O=0;O0&&(P=l2.width),!m.height&&l2.height>0&&(r2=l2.height)}if(!document.getElementById("".concat(S,"-wrap"))){var s2=document.createElement("div");s2.id="".concat(S,"-wrap"),s2.style="display:inline-block;width:".concat(P,"px;position:relative;vertical-align: bottom;"),document.getElementById(S).parentNode.insertBefore(s2,document.getElementById(S)),document.getElementById(S).parentNode.removeChild(document.getElementById(S)),s2.innerHTML=""),document.getElementById(S).style="display:inline-block;width:".concat(P,"px;height:").concat(r2,"px;"),document.getElementById(S).style.verticalAlign="top"}this.themeId&&(this.Theme=new H1(this,m.id),window.EZUIKit[m.id].state.EZUIKitPlayer.themeInit=!0,this.Monitor.dclog({url:this.url,action:2,text:this.themeId}),typeof this.params.handleThemeChange=="function"&&(this.handleThemeChange=this.params.handleThemeChange));var Q=new q2(this,S);this.Message=Q;var X=function(M,L){var Y;if(y2()){Y=new window.JSPluginV2({szId:S,iType:2,iWidth:P,iHeight:r2,iMaxSplit:1,iCurrentSplit:1,szBasePath:"",staticPath:g.staticPath,oStyle:{border:"none",background:"#000000"}}),g.pluginStatus.loadingStart(S),g.pluginStatus.loadingSetText({text:"初始化播放器完成"}),Y.EventCallback={pluginErrorHandler:function(I,G,M2){if(console.log(I,G,M2),G===1003)console.log("断流"),g.Theme.setDecoderState({play:!1}),g.pluginStatus.setPlayStatus({play:!1}),Y.bPlay||(g.pluginStatus.loadingClear(),g.pluginStatus.loadingSetText({text:"连接断开,请重试",color:"red"})),typeof g.params.handleError=="function"&&g.params.handleError({msg:"连接断开,请重试",retcode:1003,id:g.params.id,type:"handleError"});else if(M2.errorCode!=1){var R2=g.errorHander.matchErrorInfo(M2.errorCode),t3="连接断开,请重试";R2&&R2.msg?t3=R2.msg:R2&&R2.description&&(t3=R2.description),g.Theme.setDecoderState({play:!1}),g.pluginStatus.setPlayStatus({play:!1}),g.pluginStatus.loadingClear(),g.pluginStatus.loadingSetText({text:t3,color:"red"})}else g.pluginStatus.loadingClear(),g.Theme&&g.Theme.setDisabled(!1)},openStreamCallback:function(){console.log("开启取流"),g.openStreamTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:224,d:g.openStreamTime-g.gotWsUrlTime,text:"openStream",isVersion2Available:y2()?1:0})},getStreamHeaderCallback:function(){console.log("完成取流返回流头"),g.getStreamHeaderTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:225,d:g.getStreamHeaderTime-g.openStreamTime,text:"getStreamHeader",isVersion2Available:y2()?1:0})},getVideoStreamCallback:function(){console.log("返回视频流(首次)"),g.getVideoStreamTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:226,d:g.getVideoStreamTime-g.getStreamHeaderTime,text:"getVideoStream",isVersion2Available:y2()?1:0})},appearFirstFrameCallback:function(){console.log("出现首帧画面(播放成功)"),g.appearFirstFrameTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:227,d:g.appearFirstFrameTime-g.getStreamHeaderTime,text:"appearFirstFrame",isVersion2Available:y2()?1:0})},averageStreamSuccessCallback:function(){console.log("平均成功取流的出流耗时"),g.averageStreamSuccessTime=g.initSuccessTime-g.initTime+(g.gotWsUrlTime-g.startGetWsUrlTime)+(g.appearFirstFrameTime-g.openStreamTime),g.Monitor.dclog({url:g.url,action:228,d:g.averageStreamSuccessTime,text:"averageStreamSuccess",isVersion2Available:y2()?1:0})}},g.env={domain:"https://open.ys7.com"},typeof m.env!="undefined"&&(g.env=Object.assign(g.env,m.env)),typeof m.handleTalkSuccess!="undefined"&&(g.handleTalkSuccess=m.handleTalkSuccess),typeof m.handleTalkError!="undefined"&&(g.handleTalkError=m.handleTalkError),g.errorHander=new b2,g.jSPlugin=Y;var O=setInterval(function(){window.JSPlayerModuleLoaded&&(clearInterval(O),typeof g.params.handleInitSuccess=="function"&&g.params.handleInitSuccess({retcode:0,id:g.params.id,type:"handleInitSuccess"}),M({meta:{retcode:200,msg:"初始化成功"}}),m.url.indexOf("rec")!=-1&&g.Theme.changeTheme(g.isMobile?"mobileRec":"pcRec"))},50)}else Y=new window.JSPluginV1({szId:S,iType:2,iWidth:P,iHeight:r2,iMaxSplit:1,iCurrentSplit:1,szBasePath:"",staticPath:g.staticPath,oStyle:{border:"none",background:"#000000"}}),g.pluginStatus.loadingStart(S),g.pluginStatus.loadingSetText({text:"初始化播放器完成"}),Y.EventCallback={openStreamCallback:function(){console.log("开启取流---v1"),g.openStreamTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:224,d:g.openStreamTime-g.gotWsUrlTime,text:"openStream",isVersion2Available:y2()?1:0})},getStreamHeaderCallback:function(){console.log("完成取流返回流头"),g.getStreamHeaderTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:225,d:g.getStreamHeaderTime-g.openStreamTime,text:"getStreamHeader",isVersion2Available:y2()?1:0})},getVideoStreamCallback:function(){console.log("返回视频流(首次)"),g.getVideoStreamTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:226,d:g.getVideoStreamTime-g.getStreamHeaderTime,text:"getVideoStream",isVersion2Available:y2()?1:0})},appearFirstFrameCallback:function(){console.log("出现首帧画面(播放成功)"),g.appearFirstFrameTime=new Date().getTime(),g.Monitor.dclog({url:g.url,action:227,d:g.appearFirstFrameTime-g.getStreamHeaderTime,text:"appearFirstFrame",isVersion2Available:y2()?1:0})},averageStreamSuccessCallback:function(){console.log("平均成功取流的出流耗时"),g.averageStreamSuccessTime=g.initSuccessTime-g.initTime+(g.gotWsUrlTime-g.startGetWsUrlTime)+(g.appearFirstFrameTime-g.openStreamTime),g.Monitor.dclog({url:g.url,action:228,d:g.averageStreamSuccessTime,text:"averageStreamSuccess",isVersion2Available:y2()?1:0})},loadEventHandler:function(){},zoomEventResponse:function(){},windowEventSelect:function(I){},pluginErrorHandler:function(I,G,M2){if(console.log(I,G,M2),G===1003)console.log("断流"),g.Theme.setDecoderState({play:!1}),g.pluginStatus.setPlayStatus({play:!1}),Y.bPlay||(g.pluginStatus.loadingClear(),g.pluginStatus.loadingSetText({text:"连接断开,请重试",color:"red"})),typeof g.params.handleError=="function"&&g.params.handleError({msg:"连接断开,请重试",retcode:1003,id:g.params.id,type:"handleError"});else if(M2.errorCode!=1){var R2=g.errorHander.matchErrorInfo(M2.errorCode),t3="连接断开,请重试";R2&&R2.msg?t3=R2.msg:R2&&R2.description&&(t3=R2.description),g.Theme.setDecoderState({play:!1}),g.pluginStatus.setPlayStatus({play:!1}),g.pluginStatus.loadingClear(),g.pluginStatus.loadingSetText({text:t3,color:"red"})}else g.pluginStatus.loadingClear(),g.Theme&&g.Theme.setDisabled(!1)},windowEventOver:function(I){},windowEventOut:function(I){},windowEventUp:function(I){},windowFullCcreenChange:function(I){},firstFrameDisplay:function(I,G,M2){console.log(G,M2),Y.JS_SetCanFullScreen(!1)},performanceLack:function(){},mouseEvent:function(I,G,M2){}},g.env={domain:"https://open.ys7.com"},typeof m.env!="undefined"&&(g.env=Object.assign(g.env,m.env)),typeof m.handleTalkSuccess!="undefined"&&(g.handleTalkSuccess=m.handleTalkSuccess),typeof m.handleTalkError!="undefined"&&(g.handleTalkError=m.handleTalkError),g.errorHander=new b2,g.jSPlugin=Y,typeof g.params.handleInitSuccess=="function"&&g.params.handleInitSuccess({retcode:0,id:g.params.id,type:"handleInitSuccess"}),M({meta:{retcode:200,msg:"初始化成功"}}),m.url.indexOf("rec")!=-1&&g.Theme.changeTheme(g.isMobile?"mobileRec":"pcRec")},D2=new Promise(X);return D2}},{key:"_getRealUrlPromise",value:function(m,g){var S=this;console.log("获取播放地址 url => ".concat(g," ").concat(this.accessToken)),console.log("开始获取wsurl"),this.startGetWsUrlTime=new Date().getTime(),this.Monitor.dclog({url:this.url,action:222,text:"startGetWsUrl",isVersion2Available:y2()?1:0});var A=this.env.domain;this.env&&(A=this.env.domain);var P=function(s2,Q){var X="",D2=A+"/api/lapp/live/url/ezopen",g2=new FormData;g2.append("ezopen",g),g2.append("isFlv",!1),g2.append("userAgent",window.navigator.userAgent),g2.append("isHttp",!1),g2.append("accessToken",m),fetch(D2,{method:"POST",body:g2}).then(function(M){return M.json()}).then(function(M){if(M.code==200||M.retcode==0){var L="",Y="";M.ext&&M.ext.token?(X+=M.data,Y=M.ext.token,L=M.data):M.data&&M.data.token&&(X+=M.data.url,Y=M.data.token,L=M.data.url);var O=g.indexOf("live")!==-1?"live":"playback";O==="live"?X=X+"&ssn="+Y+"&auth=1&biz=4&cln=100":X=X+"&ssn="+Y+"&auth=1&cln=100",console.log(X);var C=h("checkCode",X);if(C&&(typeof S.jSPlugin.decoderVersion!="undefined"&&S.jSPlugin.decoderVersion==="2.0"?S.validateCode=C:(console.log("设置密钥",C),S.jSPlugin.JS_SetSecretKey(0,C))),X.indexOf("playback")!==-1){var I=h("begin",L)||h("begin",g),G=h("end",L)||h("end",g);if(I)X=X.replace("&begin="+h("begin",L),"&begin="+N(I,"000000")),h("begin",X)||(X+="&begin="+N(I,"000000"));else{var M2=new Date;X=X+"&begin="+M2.Format("yyyyMMdd")+"T000000Z"}if(G?(X=X.replace("&end="+h("end",L),"&end="+N(G,"235959")),h("end",X)||(X+="&end="+N(G,"235959"))):X=X+"&end="+N(h("begin",X).substr(0,8),"235959"),h("stream",L)||(X=X.replace("stream","&stream")),g.indexOf(".cloud")!==-1){var R2=function(N1){if(N1.code==200){var L1=[];if(N1.data&&N1.data.files&&N1.data.files.length>0){var G1=N1.data.files,y0=new Date().getTime(),B2=N1.data.isAll;if(B2){L1=n1(G1);var y3=JSON.stringify(L1).replace("\\","");X+="&recSlice="+y3.replace("\\","")+"&r="+Math.random(),s2(X)}else{var R3=function v1(){function j1(U1){if(U1.data&&U1.data.files&&U1.data.files.length>0)if(U1.data.isAll==!1)U1.data.files&&(G1=G1.concat(U1.data.files)),y0=U1.data.nextFileTime>0?U1.data.nextFileTime:new Date().getTime(),v1();else{L1=n1(G1);var D1=JSON.stringify(L1).replace("\\","");X+="&recSlice="+D1.replace("\\","")+"&r="+Math.random(),s2(X)}else{L1=n1(G1);var D1=JSON.stringify(L1).replace("\\","");X+="&recSlice="+D1.replace("\\","")+"&r="+Math.random(),s2(X)}}T3.startTime=y0,j(M3,"POST",T3,"",j1)};R3()}}else Q({retcode:-1,msg:"未找到录像片段"})}else Q({retcode:-1,msg:"未找到录像片段"});function n1(v1){var j1=[];return v1.forEach(function(U1,D1){j1.length==0||U1.downloadPath!==j1[j1.length-1].downloadPath?j1.push({downloadPath:U1.downloadPath,ownerId:U1.ownerId,iStorageVersion:U1.iStorageVersion,videoType:U1.videoType,iPlaySpeed:0,startTime:U1.startTime,endTime:U1.endTime}):j1[j1.length-1].endTime=U1.endTime}),j1}},t3=r2(h("begin",X)),Q2=r2(h("end",X)),d3=h("serial",X),b3=h("chn",X),M3=A+"/api/lapp/video/by/time",T3={accessToken:S.accessToken,recType:1,deviceSerial:d3,channelNo:b3,startTime:t3,endTime:Q2,version:"2.0"};j(M3,"POST",T3,"",R2)}else if(g.indexOf("alarmId")!==-1){var f1=function(R3){if(R3.code==200){var n1=[];if(R3.data){n1=j1([R3.data]);var v1=JSON.stringify(n1).replace("\\","");X+="&recSlice="+v1.replace("\\",""),console.log("realUrl",X,R3.data.recType),R3.data.recType==1?X=X.replace("/playback","/cloudplayback"):X=X.replace("/cloudplayback","/playback"),s2(X)}}function j1(U1){var D1=[];return U1.forEach(function(u0,On){D1.length==0||u0.downloadPath!==D1[D1.length-1].downloadPath?D1.push({downloadPath:u0.downloadPath,ownerId:u0.ownerId,iStorageVersion:u0.iStorageVersion,videoType:u0.videoType,iPlaySpeed:0,startTime:u0.startTime,endTime:u0.endTime}):D1[D1.length-1].endTime=u0.endTime}),console.log("downloadPathArr",D1),D1}};console.log("进入alarmId回放");var b1=h("alarmId",X),t3=r2(h("begin",X)),Q2=r2(h("end",X)),d3=h("serial",X),b3=h("chn",X),M3=A+"/api/lapp/video/by/id",T3={accessToken:S.accessToken,deviceSerial:d3,channelNo:b3,alarmId:b1};j(M3,"POST",T3,"",f1)}else s2(X)}else s2(X)}else S.Theme&&S.Theme.setDisabled(!0),S.pluginStatus.loadingClear(),S.pluginStatus.loadingSetText({text:M.msg,color:"red"}),typeof S.params.handleError=="function"&&S.params.handleError({retcode:M.code,msg:M.msg,id:S.params.id,type:"handleError"}),Q(M)})};return new Promise(function(l2,s2){return P(l2,s2)});function N(l2,s2){var Q=/^[0-9]{8}T[0-9]{6}Z$/;if(Q.test(l2))return l2;if(/[0-9]{8,14}/.test(l2)){var X=6-(14-l2.length),D2=s2.length,g2=l2+s2.substring(X,D2);return g2.slice(0,8)+"T"+g2.slice(8)+"Z"}throw new Error("回放时间格式有误,请确认")}function r2(l2){var s2=l2.slice(0,4),Q=l2.slice(4,6),X=l2.slice(6,8),D2=l2.slice(9,11),g2=l2.slice(11,13),M=l2.slice(13,15),L=s2+"-"+Q+"-"+X+" "+D2+":"+g2+":"+M;return new Date(L.replace(/-/g,"/")).getTime()}}},{key:"_pluginPlay",value:function(m,g,S){var A=this;if(console.log("执行播放 _pluginPlay",m),!m)return!1;function P(s2){var Q=s2.split("?")[0].replace("/live","").replace("/playback",""),X=(s2.indexOf("/live")===-1?s2.indexOf("cloudplayback")!==-1?"/cloudplayback?":"/playback?":"/live?")+s2.split("?")[1];return X.indexOf("/playback")!==-1&&(X=X.replace("stream=2","stream=1")),{websocketConnectUrl:Q,websocketStreamingParam:X}}var N=P(m).websocketConnectUrl;this.env&&this.env.wsUrl&&(N=this.env.wsUrl),this.gotWsUrlTime=new Date().getTime(),this.Monitor.dclog({url:this.url,action:223,d:this.gotWsUrlTime-this.startGetWsUrlTime,text:"getWsUrlSuccess",isVersion2Available:y2()?1:0});var r2={playURL:P(m).websocketStreamingParam};console.log("播放前 stop 阶段 结束"),this.isStoping=!1;var l2=Date.now();console.log("执行播放 ... this.jSPlugin.JS_Play at ",l2),this.jSPlugin.JS_Play(N,r2,0).then(function(){if(console.log("执行播放 ... this.jSPlugin.JS_Play 播放成功",N,r2),console.log("执行播放耗时 ",Date.now()-l2),A.isStoping){console.log("现在在播放前 stop 阶段,此次应为无效播放成功触发。不执行后续回调, 此次耗时无效");return}if(A.validateCode&&typeof A.jSPlugin.decoderVersion!="undefined"&&A.jSPlugin.decoderVersion==="2.0"&&A.jSPlugin.JS_SetSecretKey(0,A.validateCode),A.pluginStatus.loadingClear(),A.pluginStatus.setPlayStatus({play:!0,loading:!1}),A.Theme){A.Theme.setDecoderState({play:!0});var s2=H.findIndex(A.Theme.themeData.footer.btnList,function(Q){return Q.iconId==="sound"&&Q.isrender===1&&Q.defaultActive===1})>-1;A.audio=s2}A.audio&&setTimeout(function(){A.openSound()},500),typeof A.params.handleSuccess=="function"&&A.params.handleSuccess({retcode:0,id:A.params.id,type:"handleSuccess"}),g(r2),A.Monitor.dclog({url:A.url,action:211,d:new Date().getTime()-A.playStartTime,text:"startPlaySuccess"}),A.Monitor.playLog({Enc:A.url.indexOf("@")===-1?0:1,PlTp:A.url.indexOf("back")===-1?1:2,Via:2,ErrCd:0,Cost:new Date().getTime()-A.playStartTime,Serial:R(A.url).deviceSerial,Channel:R(A.url).channelNo,Ver:y2()?"v7.0.0":"v6.0.0"})},function(s2){console.log("err",s2);var Q="播放失败,请检查设备及客户端网络",X=-1;if(A.jSPlugin.bPlay)return!1;if(s2&&s2.errorCode){var D2=A.errorHander.matchErrorInfo(s2.errorCode);A.Theme&&A.Theme.setDisabled(!0),D2&&D2.msg?Q=D2.msg:D2&&D2.description?Q=D2.description:Q="播放失败,请检查设备及客户端网络",X=s2.errorCode}A.pluginStatus.loadingClear(),A.pluginStatus.loadingSetText({text:Q,color:"red"}),typeof A.params.handleError=="function"&&A.params.handleError({retcode:X,msg:Q,id:A.params.id,type:"handleError"}),S(),A.Monitor.dclog({url:A.url,action:411,d:new Date().getTime()-A.playStartTime,text:"startPlayError"}),A.Monitor.playLog({Enc:A.url.indexOf("@")===-1?0:1,PlTp:A.url.indexOf("back")===-1?1:2,Via:2,ErrCd:X,Cost:-1,Serial:R(A.url).deviceSerial,Channel:R(A.url).channelNo,Ver:y2()?"v7.0.0":"v6.0.0"})})}},{key:"_play",value:function(m){var g=this;console.log("执行播放 play options.url =>",m),this.pluginStatus.setPlayStatus({play:!1,loading:!0}),this.playStartTime=new Date().getTime(),this.Monitor.dclog({url:this.url,action:1,d:new Date().getTime()-this.initTime,text:"startPlay"}),m&&(typeof m=="string"&&(this.url=m),typeof m.url=="string"&&(this.url=m.url),typeof m.accessToken=="string"&&(this.accessToken=m.accessToken),this.Theme&&(typeof m.url=="string"||typeof m.accessToken=="string")&&this.Theme.getDeviceInfo());var S=new Promise(function(A,P){console.log("执行 播放前 stop"),g.isStoping=!0,g.jSPlugin.JS_Stop(0).then(function(){console.log("播放前 stop 执行成功 this.url => ".concat(g.url," ").concat(g.accessToken)),g._getRealUrlPromise(g.accessToken,g.url).then(function(N){g._pluginPlay(N,function(r2){A(!0)},function(){return P(!1)})}).catch(function(N){var r2=N.msg?N.msg:"播放失败,请检查设备及客户端网络";g.Theme&&g.Theme.setDisabled(!0),g.pluginStatus.loadingClear(),g.pluginStatus.loadingSetText({text:r2,color:"red"}),typeof g.params.handleError=="function"&&g.params.handleError({retcode:N.oError?N.oError.errorCode:-1,msg:r2,id:g.params.id,type:"handleError"}),P({retcode:N.oError?N.oError.errorCode:-1,msg:r2,id:g.params.id,type:"handleError"})})})});return S}},{key:"stop",value:function(){var m=this;return this.pluginStatus.setPlayStatus({loading:!0}),this.reSetTheme(),this.jSPlugin.JS_Stop(0).then(function(){console.log("停止成功"),m.pluginStatus.setPlayStatus({play:!1,loading:!1}),m.Theme&&m.Theme.setDecoderState({play:!1})})}},{key:"changeVideoLevel",value:function(m){var g=this,S=this.url,A=m?S.replace(".live",".hd.live"):S.replace(".hd.live",".live");this.jSPlugin.playURL=m?this.jSPlugin.playURL.replace("stream=2","stream=1"):this.jSPlugin.playURL.replace("stream=1","stream=2"),console.log("changeVideoLevel",A,this.jSPlugin.playURL),this.url=A;var P=new Promise(function(N,r2){g.pause().then(function(){console.log("暂停成功"),g.resume().then(function(l2){console.log("恢复成功")})}).catch(function(){console.log("暂停失败"),g.resume().then(function(l2){console.log("恢复成功")})})});return P}},{key:"reSetTheme",value:function(){this.Theme&&this.Theme.Ptz&&(this.Theme.setDecoderState({pantile:!1}),this.Theme.Ptz.hide()),this.Theme&&this.Theme.decoderState.state.recordvideo&&this.Theme.setDecoderState({recordvideo:!1}),this.Theme&&this.Theme.decoderState.state.zoom&&(this.Zoom.stopZoom(),this.Theme.setDecoderState({zoom:!1})),this.Theme&&this.Theme.decoderState.state.talk&&(this.stopTalk(),this.Theme.setDecoderState({talk:!1})),this.Theme&&this.Theme.Rec&&!this.Theme.isMobile&&this.Theme.Rec.datepickerHide(),this.Theme&&this.Theme.Rec&&(this.Theme.changeRecSpeed(1),this.Theme.nextRate=1,this.speed=1,this.Theme.setDecoderState({speed:!1}))}},{key:"_changePlayUrl",value:function(m){var g=this,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};console.log("_changePlayUrl"),console.log(m),this.reSetTheme(),this.getDeviceCapacity({accessToken:m.accessToken,deviceSerial:m.deviceSerial});var A=this.url,P=r2(A,m);m.accessToken&&(this.accessToken=m.accessToken),this.url=P,S(),this.pluginStatus.loadingStart(this.id),this.pluginStatus.loadingSetText({text:"加载中,请稍后"});var N=new Promise(function(l2,s2){var Q={url:P};return m.accessToken&&(Q.accessToken=m.accessToken),console.log("切换播放地址 参数 ",Q),g.play(Q).then(function(){console.log("切换播放地址 play 执行成功 ",g.url,g.accessToken),g.Theme&&g.Theme.decoderState.state.webExpend&&g.Theme.webExpend(),g.Theme&&g.Theme.decoderState.state.expend&&g.Theme.expend(),m.type?m.type=="rec"||m.type=="cloud.rec"?g.Theme.changeTheme(g.isMobile?"mobileRec":"pcRec"):g.Theme.changeTheme(g.isMobile?"mobileLive":"pcLive"):g.url.indexOf(".rec")>-1?g.Theme.changeTheme(g.isMobile?"mobileRec":"pcRec"):g.Theme.changeTheme(g.isMobile?"mobileLive":"pcLive"),m&&m.begin&&m.deviceSerial&&g.Theme.Rec.setDatepickerDate(m.begin),g.Theme.setDisabled(!1),l2(P)}).catch(function(X){s2(P),X&&X.msg&&(g.Theme&&g.Theme.setDisabled(!0),g.pluginStatus.loadingClear(),g.pluginStatus.loadingSetText({text:X.msg,color:"red"}))})});function r2(l2,s2){if(s2.url)return s2.url;console.log("--------------matchInitUrl",l2);var Q=l2.split("/")[4].split(".")[l2.split("/")[4].split(".").length-1].split("?")[0];Q==="rec"&&l2.indexOf(".cloud.rec")!==-1&&(Q="cloud.rec"),s2.type&&(Q=s2.type);var X=l2.split("/")[3];s2.deviceSerial&&(X=s2.deviceSerial);var D2=l2.split("/")[4].split(".")[0];s2.channelNo&&(D2=s2.channelNo);var g2=l2.split("/")[2].split("@").length===2?l2.split("/")[2].split("@")[0]:"";typeof s2.validCode!="undefined"&&(g2=s2.validCode);var M=typeof s2.hd=="undefined"?l2.indexOf(".hd")!==-1:s2.hd,L="ezopen://".concat(g2?"".concat(g2,"@"):"","open.ys7.com/").concat(X,"/").concat(D2).concat(M?".hd":"",".").concat(Q);return Q==="live"||(L="ezopen://".concat(g2?"".concat(g2,"@"):"","open.ys7.com/").concat(X,"/").concat(D2,".").concat(Q),s2.begin&&s2.end?L+="?begin=".concat(s2.begin,"&end=").concat(s2.end):s2.begin?L+="?begin=".concat(s2.begin):h("begin",l2)&&(L+="?begin=".concat(h("begin",l2)))),L}return N}},{key:"getOSDTime",value:function(){var m=this,g=new Promise(function(S,A){m.jSPlugin.JS_GetOSDTime(0).then(function(P){S({code:0,retcode:0,data:P}),typeof m.params.getOSDTimeCallBack=="function"&&m.params.getOSDTimeCallBack({id:m.id,type:"getOSDTime",code:0,data:P})}).catch(function(P){A({code:-1,retcode:-1,data:P}),typeof m.params.getOSDTimeCallBack=="function"&&m.params.getOSDTimeCallBack({id:m.id,type:"getOSDTime",code:-1,data:-1})})});return g}},{key:"capturePicture",value:function(m){var g=this,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A=this.jSPlugin.JS_CapturePicture(0,m,"JPEG",S,!!S);return d(A)?(typeof this.params.capturePictureCallBack=="function"&&A.then(function(){g.params.capturePictureCallBack({id:g.id,type:"capturePicture",code:0})}).catch(function(){g.params.capturePictureCallBack({id:g.id,type:"capturePicture",code:-1})}),A):new Promise(function(P){P(A)})}},{key:"startSave",value:function(m){var g=this,S=this.jSPlugin.JS_StartSave(0,m);return d(S)?(typeof this.params.startSaveCallBack=="function"&&S.then(function(){g.params.startSaveCallBack({id:g.id,type:"startSave",code:0})}).catch(function(){g.params.startSaveCallBack({id:g.id,type:"startSave",code:-1})}),S):(this.Theme&&this.Theme.setDecoderState({recordvideo:!0}),new Promise(function(A){A(S)}))}},{key:"stopSave",value:function(){var m=this,g=this.jSPlugin.JS_StopSave(0);return d(g)?(typeof this.params.startSaveCallBack=="function"&&g.then(function(){m.params.stopSaveCallBack({id:m.id,type:"stopSave",code:0})}).catch(function(){m.params.stopSaveCallBack({id:m.id,type:"stopSave",code:-1})}),g):(this.Theme&&this.Theme.setDecoderState({recordvideo:!1}),new Promise(function(S){S(g)}))}},{key:"openSound",value:function(){var m=this.jSPlugin.JS_OpenSound(0);return console.log("打开声音",m),d(m)?m:(this.Theme&&this.Theme.setDecoderState({sound:!0}),typeof this.params.openSoundCallBack=="function"&&this.params.openSoundCallBack({id:this.id,type:"openSound",code:m}),new Promise(function(g){g(m)}))}},{key:"closeSound",value:function(){var m=this.jSPlugin.JS_CloseSound(0);return d(m)?m:(this.Theme&&this.Theme.setDecoderState({sound:!1}),typeof this.params.closeSoundCallBack=="function"&&this.params.closeSoundCallBack({id:this.id,type:"closeSound",code:m}),new Promise(function(g){g(m)}))}},{key:"enableZoom",value:function(){var m=this.jSPlugin.JS_EnableZoom(0);return d(m)?m:new Promise(function(g){g(m)})}},{key:"closeZoom",value:function(){var m=this.jSPlugin.JS_DisableZoom(0);return d(m)?m:new Promise(function(g){g(m)})}},{key:"setPoster",value:function(m){y2()?document.getElementById("".concat(this.id))&&(document.getElementById("".concat(this.id)).style.backgroundImage="url(".concat(m,")"),document.getElementById("".concat(this.id)).style.backgroundSize="100% 100%"):document.getElementById("".concat(this.id,"canvas0"))&&(document.getElementById("".concat(this.id,"canvas0")).style.backgroundImage="url(".concat(m,")"),document.getElementById("".concat(this.id,"canvas0")).style.backgroundSize="cover")}},{key:"reSize",value:function(m,g){var S=0,A=0;if(this.params.height=g,this.params.width=m,this.Theme&&this.Theme.isNeedRenderHeader&&document.getElementById("".concat(this.id,"-headControl"))&&(S=parseInt(document.getElementById("".concat(this.id,"-headControl")).style.height,10)),this.Theme&&this.Theme.isNeedRenderTimeLine&&!this.isMobile&&(A=48),g=g-S-A,this.width=m,this.height=g,document.getElementById("".concat(this.id,"-wrap")).style="width:".concat(m,"px;position:relative;display:inline-block;vertical-align: bottom;"),document.getElementById("".concat(this.id)).style.width=m+"px",document.getElementById("".concat(this.id)).style.height=g+"px",this.jSPlugin&&this.jSPlugin.bPlay)this.jSPlugin&&(this.jSPlugin.iHeight=g,this.jSPlugin.iWidth=m),this.jSPlugin.JS_Resize(m,g);else{document.getElementById("".concat(this.id,"-player"))&&(document.getElementById("".concat(this.id,"-player")).width=m,document.getElementById("".concat(this.id,"-player")).height=g,document.getElementById("".concat(this.id,"-player")).style.width=m+"px",document.getElementById("".concat(this.id,"-player")).style.height=g+"px");var P=1;if(document.getElementById("".concat(this.id,"canvas0"))){var N=navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);N&&(P=2),document.getElementById("".concat(this.id,"canvas0")).style.width=m*P+"px",document.getElementById("".concat(this.id,"canvas0")).style.height=g*P+"px",document.getElementById("".concat(this.id,"canvas0")).width=m*P,document.getElementById("".concat(this.id,"canvas0")).height=g*P,document.getElementById("".concat(this.id,"canvas0")).parentNode.style.width=m*P+"px",document.getElementById("".concat(this.id,"canvas0")).parentNode.style.height=g*P+"px",document.getElementById("".concat(this.id,"canvas_draw0")).height=g*P}this.jSPlugin&&(this.jSPlugin.iHeight=g*P,this.jSPlugin.iWidth=m*P)}}},{key:"fast",value:function(m){var g=this,S=this.speed;if(m)var A=this.jSPlugin.JS_Fast(0,m);else{if(S===1)S=2;else if(S===2)S=4;else return typeof this.params.handleError=="function"&&this.params.handleError({msg:"播放速度最大为4倍速度",retcode:1003,id:this.id,type:"handleError"}),new Promise(function(N,r2){g.speed=S,r2({code:-1,data:{speed:S,result:"播放速度最大为4倍速度"}})});var A=this.jSPlugin.JS_Fast(0)}return new Promise(function(P){g.speed=S,P({code:0,data:{speed:S,result:A}})})}},{key:"slow",value:function(){var m=this,g=this.speed;if(g===4)g=2;else if(g===2)g=1;else return typeof this.params.handleError=="function"&&this.params.handleError({msg:"播放速度最小为1倍速度",retcode:1003,id:this.id,type:"handleError"}),new Promise(function(A,P){m.speed=g,P({code:-1,data:{speed:g,result:"播放速度最小为1倍速度"}})});var S=this.jSPlugin.JS_Slow(0);return new Promise(function(A){m.speed=g,A({code:0,data:{speed:g,result:S}})})}},{key:"seek",value:function(m,g){var S=this.url,A=(h("begin",S)||new Date().Format("yyyyMMdd")).substr(0,8);if(g=P(A,"235959"),m.length===6)m=P(A,m);else if(m.length===16){if(m.substr(0,8)!==A)return typeof this.params.handleError=="function"&&this.params.handleError({msg:"seek时间不能跨日期",retcode:-1,id:this.id,type:"handleError"}),!1}else return typeof this.params.handleError=="function"&&this.params.handleError({msg:"seek时间格式错误",retcode:-1,id:this.id,type:"handleError"}),!1;function P(r2,l2){var s2=/^[0-9]{8}T[0-9]{6}Z$/;if(s2.test(r2))return r2;if(/[0-9]{8,14}/.test(r2)){var Q=6-(14-r2.length),X=l2.length,D2=r2+l2.substring(Q,X);return D2.slice(0,8)+"T"+D2.slice(8)+"Z"}throw new Error("回放时间格式有误,请确认")}var N=this.jSPlugin.JS_Seek(0,m,g);return console.log("seekRT",N),d(N)?N:new Promise(function(r2){r2(N)})}},{key:"fullScreen",value:function(){var m=this,g=b(document.getElementById("".concat(this.id)));g.then(function(A){console.log("全屏promise",window.screen.availWidth),m.jSPlugin.JS_Resize(window.screen.availWidth,window.screen.availHeight),typeof m.params.fullScreenCallBack=="function"&&m.params.fullScreenCallBack({id:m.id,type:"fullScreen",code:0})});var S=function(){var P=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;P||m.jSPlugin.JS_Resize(m.width,m.height),typeof m.params.fullScreenChangeCallBack=="function"&&m.params.fullScreenChangeCallBack({id:m.id,type:"fullScreen",code:P})};["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].forEach(function(A){window.addEventListener(A,function(P){return S()})})}},{key:"cancelFullScreen",value:function(){var m=this,g=D();g.then(function(S){console.log("取消全屏",S,m.jSPlugin),m.jSPlugin.JS_Resize(m.width,m.height)})}},{key:"startTalk",value:function(){this.Talk.startTalk()}},{key:"stopTalk",value:function(){this.Talk.stopTalk()}},{key:"destroy",value:function(){var m=this.jSPlugin.JS_DestroyWorker(0);return this.Theme&&(this.Theme=null,window.EZUIKit[this.params.id].state.EZUIKitPlayer.themeInit=!1),d(m)?m:new Promise(function(g){g(m)})}},{key:"getDeviceCapacity",value:function(m){var g=this,S=this.env.domain;this.env&&(S=this.env.domain);var A=S+"/api/lapp/device/capacity",P=function(l2){l2.code==200&&l2.data&&(g.capacity=l2.data)},N=m||{accessToken:this.accessToken,deviceSerial:R(this.url).deviceSerial};j(A,"POST",N,"",P)}},{key:"pause",value:function(){var m=this;return new Promise(function(g,S){m.jSPlugin.JS_CloseSound(0),m.jSPlugin.JS_Pause(0,function(A){m.setPoster(A.base64)}).then(function(A){m.Theme&&m.Theme.setDecoderState({play:!1}),g()}).catch(function(A){console.log(A),S(A)})})}},{key:"_resume",value:function(m){var g=this;return new Promise(function(S,A){g.pluginStatus.setPlayStatus({play:!1,loading:!0}),g.jSPlugin.JS_Resume(m).then(function(P){if(setTimeout(function(){g.url.indexOf(".rec")!==-1&&g.speed!=1&&g.jSPlugin.JS_Speed(g.speed)},500),g.Theme){g.Theme.setDecoderState({play:!0,speed:g.speed});var N=g.Theme.decoderState.state.sound;N&&setTimeout(function(){g.openSound()},500)}S(P)}).catch(function(P){console.log("resume err",P),A(P)})})}}]),V}(),T2=null;function n3(V,x,m,g){return new WebControl({szPluginContainer:V,iServicePortStart:14510,iServicePortEnd:14519,cbConnectSuccess:x,cbConnectError:m,cbConnectClose:g})}function a3(){T2!=null&&(T2.JS_DestroyWnd().then(function(){console.log("JS_DestroyWnd")},function(){}),T2.JS_StopService("window").then(function(){T2.JS_Disconnect().then(function(){console.log("JS_Disconnect")},function(){})}))}function l3(V){V.responseMsg.eventName,console.log(V.responseMsg)}function $3(){T2.JS_SetWindowControlCallback({cbIntegrationCallBack:l3}),T2.JS_StartService("window",{dllPath:"./chain/cloudTransform.dll"}).then(function(){T2.JS_CreateWnd("playWnd",900,500).then(function(){console.log("JS_CreateWnd success")})})}function e1(){console.log("cbConnectError"),T2=null,console.error("确认本地进程是否已安装并开启成功!")}function y1(V){console.log("cbConnectClose"),T2=null}window.onscroll=function(){T2!=null&&T2.JS_Resize(900,500)},window.onresize=function(){T2!=null&&T2.JS_Resize(900,500)},window.onunload=function(){try{T2.JS_HideWnd(),a3()}catch(V){console.error(V)}},window.onpagehide=function(){try{T2.JS_HideWnd()}catch(V){console.error(V)}};var t1=function(){function V(x){var m=this;i(this,V),s(this,"changeModel",function(g,S){var A=m;m.switchVideo=parseInt(g),T2&&T2.JS_RequestInterface({funcName:"ChangeModel",arguments:encodeURI(JSON.stringify({model:g}))}).then(function(P){g==0?A.play({deviceSerial:S.deviceSerial,channelNo:S.channelNo,validateCode:S.validateCode}):A.play({deviceSerial:S.deviceSerial,channelNo:S.channelNo,validateCode:S.validateCode,startTime:S.startTime,endTime:S.endTime})})}),s(this,"init",function(g){var S,A=m;if(!g.appKey||!g.accessToken){A.showTips(!1,"请输入appkey和token");return}typeof g.appKey!="undefined"&&(m.appKey=g.appKey),typeof g.accessToken!="undefined"&&(m.accessToken=g.accessToken),typeof g.platformId!="undefined"&&(m.platformId=g.platformId);var P=(S={layout:+A.layout,userName:"",waterMark:""},s(S,"waterMark","1"),s(S,"iWndType",0),s(S,"intelligenceEnable",1),s(S,"isRecord",1),s(S,"isSetPos",1),s(S,"motionDetectEnable",0),s(S,"playBackAlarmOverlyingEnable",0),s(S,"response",{code:0,message:null,data:{appKey:g.appKey,ezvizToken:g.accessToken,videoLevel:0,logLevel:3,showMainTool:1,showSubTool:1,waterMark:"1",userName:"openteam",platformId:g.platformId}}),S);console.log("初始化入参",P),T2.JS_RequestInterface({funcName:"Init",arguments:encodeURI(JSON.stringify(P))}).then(function(N){console.log(N.responseMsg),A.showTips(!0,"视频初始化成功!")})}),s(this,"play",function(g){var S=m;if(!(!g.deviceSerial||!g.channelNo)){typeof g.deviceSerial!="undefined"&&(m.deviceSerial=g.deviceSerial),typeof g.channelNo!="undefined"&&(m.channelNo=g.channelNo),typeof g.startTime!="undefined"&&g.startTime&&(m.startTime=g.startTime+" 00:00:00"),typeof g.endTime!="undefined"&&g.endTime&&(m.endTime=g.endTime+" 23:59:59"),typeof g.validateCode!="undefined"&&g.validateCode&&(m.validateCode=g.validateCode);var A={response:{code:0,message:null,data:{deviceSerial:g.deviceSerial,channelCode:g.channelNo,channelNo:+g.channelNo,codeIsEncrypt:0,validateCode:g.validateCode,deviceClass:S.deviceClass,deviceType:"10222",channelId:"2222222222",channelName:"channelNameTest",storeName:"storeName",storeId:"storeid",startTime:m.startTime,endTime:m.endTime}}};S.deviceClass==="1"?(A.response.data.channelCode=S.channelNo,A.response.data.platformId=S.platformId):A.response.data.channelNo=+S.channelNo,m.switchVideo===1&&(m.startTime&&(A.response.data.startTime=m.startTime),m.endTime&&(A.response.data.endTime=m.endTime)),console.log("预览/回放入参",A),T2.JS_RequestInterface({funcName:m.switchVideo===0?"StartPreview":"StartPlayback",arguments:encodeURI(JSON.stringify(A))}).then(function(P){console.log(P.responseMsg),S.showTips(!0,"预览/回放成功!")}).catch(function(P){console.log("开始播放:",P)})}}),s(this,"showCBInfo",function(g){m.callbackMessage=m.callbackMessage+JSON.stringify(g)+`
-`,console.log(m.callbackMessage)}),s(this,"showTips",function(g,S){}),s(this,"hideVideo",function(){x2.JS_HideWnd()}),s(this,"showVideo",function(){x2.JS_ShowWnd()}),s(this,"GetLayout",function(){var g=null;x2.JS_RequestInterface({funcName:"GetLayout",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:g}}))}).then(function(S){console.log(JSON.stringify(S.responseMsg)),console.log(S.responseMsg)})}),s(this,"capturePicture",function(g){var S=null;x2.JS_RequestInterface({funcName:"CaptureJPGEx",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:S}}))}).then(function(x){console.log(JSON.stringify(x.responseMsg)),console.log(x.responseMsg)})}),s(this,"stop",function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;x2.JS_RequestInterface({funcName:"StopPlay",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:parseInt(g)}}}))}).then(function(S){console.log(JSON.stringify(S.responseMsg)),console.log(S.responseMsg)})}),s(this,"setLayout",function(g){var S=parseInt(g);if(isNaN(S)||S==0||S>=13){console.log("不支持实际布局大于16的窗口数");return}m.layout=S,x2.JS_RequestInterface({funcName:"SetLayout",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{layout:S}}}))}).then(function(x){console.log(JSON.stringify(x.responseMsg)),console.log(x.responseMsg)})}),s(this,"setSoundVolumn",function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1,S=arguments.length>1?arguments[1]:void 0;x2.JS_RequestInterface({funcName:"SoundVolumn",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:parseInt(g),volumn:parseInt(S)}}}))}).then(function(x){console.log(JSON.stringify(x.responseMsg)),console.log(x.responseMsg)})}),s(this,"testMute",function(){var g=parseInt(prompt("请输入窗口ID"));x2.JS_RequestInterface({funcName:"MuteOnOff",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:g}}}))}).then(function(S){console.log(JSON.stringify(S.responseMsg)),console.log(S.responseMsg)})}),s(this,"testSelectWnd",function(){var g=parseInt(prompt("请输入窗口ID"));x2.JS_RequestInterface({funcName:"SelectPlayWnd",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:g}}}))}).then(function(S){console.log(JSON.stringify(S.responseMsg)),console.log(S.responseMsg)})}),s(this,"setVideoLevel",function(g,S){x2.JS_RequestInterface({funcName:"SetVideoLevel",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:m.switchVideo==1?0:parseInt(g),level:parseInt(S,10)}}}))}).then(function(x){console.log(JSON.stringify(x.responseMsg)),console.log(x.responseMsg)})}),s(this,"startTalk",function(g){x2.JS_RequestInterface({funcName:"StartTalk",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:parseInt(g)}}}))}).then(function(S){console.log(JSON.stringify(S.responseMsg)),console.log(S.responseMsg)})}),s(this,"stopTalk",function(g){x2.JS_RequestInterface({funcName:"StopTalk",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:parseInt(g)}}}))}).then(function(S){console.log(JSON.stringify(S.responseMsg)),console.log(S.responseMsg)})}),s(this,"startSave",function(g){x2.JS_RequestInterface({funcName:"StartRecord",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:parseInt(g)}}}))}).then(function(S){console.log(JSON.stringify(S.responseMsg)),console.log(S.responseMsg)})}),s(this,"stopSave",function(g){x2.JS_RequestInterface({funcName:"StopRecord",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:parseInt(g)}}}))}).then(function(S){console.log(JSON.stringify(S.responseMsg)),console.log(S.responseMsg)})}),this.appKey="b9a3ad6e8026410095d8252169fa430a",this.accessToken="at.2vtum8873rrcwbrv431qb6pn94dkbv23-8dw2twn355-1u3x014-wrthellzk",this.deviceSerial="C33368372",this.channelNo="1",this.validateCode="",this.deviceClass="0",this.platformId="",this.startTime="",this.endTime="",this.layout=2,this.switchVideo=0,this.tips="调用成功",this.successTip=!1,this.tipsShow=!1,x2=r3("playWnd",Q3,i1,M1)}return a(R,[{key:"alarmMsg",value:function(){var m={request:{body:{alarmTypes:[10800,0,0,0,0],channelId:"066dde0465dd4abaab6afe355baf9d0b",endTime:"1621007999000",startTime:"1620921600000"},callBack:"GetAlarmMsgOrders",majorKey:"",method:"POST",storeId:"",url:"/videoplugin/message/getMessageByTypes"},response:{code:0,message:null,data:[{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620921217e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620920678e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620920586e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620919513e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620919483e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620919333e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620918913e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620918616e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620918305e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620917858e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620917658e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620917244e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620917064e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620916994e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620916668e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620916571e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620916529e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620916343e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620916081e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620915825e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620915676e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620915531e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620915394e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620915197e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620914971e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620914644e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620914533e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620914457e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620914376e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620914284e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620913973e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620913431e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620912834e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620912771e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620912354e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620912275e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620912093e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620912024e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162091189e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620911839e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620911807e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162091176e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620911682e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162091127e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620911184e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910982e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910931e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910851e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910781e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910727e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910677e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910647e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910588e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910544e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910484e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162091041e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162091035e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910278e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910217e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910124e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909976e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909939e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909847e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909817e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909736e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909664e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909605e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909575e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909346e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909247e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909216e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909149e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090912e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909028e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908999e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908969e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908909e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090888e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908835e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090875e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090872e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908652e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908612e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908582e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908552e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908456e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908426e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908299e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908268e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090805e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620907918e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620907758e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620907625e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620907386e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620907292e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620907127e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906864e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906828e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906797e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906747e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906717e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906632e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906501e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906412e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906368e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906329e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906142e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906112e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906013e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905946e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905823e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905697e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905622e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905571e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905541e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905511e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905481e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905442e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905412e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905382e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905352e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905322e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905262e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905196e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090515e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904994e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904931e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904813e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090473e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:16209047e5},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904618e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904286e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904173e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904143e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904112e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904053e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904023e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903854e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903789e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903723e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903643e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903612e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903573e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903505e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903383e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903329e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903299e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903268e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:16209032e5},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903149e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090312e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902977e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090286e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090277e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902639e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902609e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902517e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902373e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090232e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902253e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902198e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902132e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090194e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090185e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901789e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901746e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901685e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901638e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090152e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901489e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901424e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901271e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901233e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901157e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900915e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900834e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900774e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900744e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090065e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090044e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900409e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900175e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900134e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900069e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900016e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899976e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899908e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899879e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899826e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899756e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899599e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899559e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899467e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899406e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899265e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899211e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089914e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089911e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089905e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898991e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898926e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898834e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898785e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898746e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898697e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898666e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898507e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898293e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898248e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898218e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898157e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898088e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089802e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089796e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089785e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897807e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897771e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897719e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089769e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089763e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:16208976e5},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089757e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089754e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897475e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897412e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897369e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897339e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897279e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897237e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897207e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897172e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897142e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897112e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897024e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896985e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896874e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896843e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896814e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896783e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896736e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896621e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896478e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896447e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896358e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896307e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896277e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896247e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896214e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089604e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895953e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895921e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895868e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089577e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895704e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089559e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895559e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089548e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895442e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895377e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895347e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895293e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895171e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895136e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895017e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894926e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894896e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894864e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894834e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894738e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894599e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894539e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894426e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894359e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894297e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894213e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894183e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894051e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893964e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893934e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893843e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893754e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893676e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893606e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089353e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893452e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893423e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893357e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893288e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893143e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893051e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893006e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892904e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892824e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892764e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892541e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892479e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892412e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892311e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892281e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892209e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892063e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891991e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891931e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089187e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089181e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891708e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891655e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891585e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891531e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891501e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891401e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891297e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891257e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891216e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891178e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891128e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891033e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890973e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089094e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890879e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890794e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890714e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890616e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890586e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890469e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890414e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890346e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890288e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890179e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890108e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890041e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890011e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889937e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889719e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889635e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889481e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889451e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889317e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889227e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889139e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889034e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888973e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888902e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888837e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888767e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888737e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888706e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888633e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888571e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888413e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888353e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888323e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888249e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888162e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888e6},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887859e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887776e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887734e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887692e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887619e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887501e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887355e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162088732e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887289e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887126e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887066e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887034e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162088697e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886884e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886804e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886728e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886609e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886538e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886478e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886396e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886334e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886246e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886111e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886011e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885956e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885894e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885696e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885514e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885484e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885414e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885383e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885341e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885306e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885276e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885216e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885186e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885114e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885037e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885006e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620884975e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620884945e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620884911e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620884851e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162088478e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620884696e3}],success:!0}};console.log(m),x2.JS_RequestInterface({funcName:"TransFunctionResult",arguments:encodeURI(JSON.stringify(m))})}}]),R}();(function(R,N){t(n)==="object"&&t(n.exports)==="object"?n.exports=R.document?N(R,!0):function(m){if(!m.document)throw new Error("EZUIPlayer requires a window with a document");return N(m)}:N(R)})(typeof window!="undefined"?window:void 0,function(R,N){var m={Core:o,HLS:q,FLV:K,EZUIKitPlayer:W,EZUIKitHD:e1};return R.EZUIKit=m,m})})(Bo,Bo.exports);var xk=Bo.exports;const dT=wk(xk);var Ac=null;function Ak(n){return Ac||(Ac=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),Ac(n)}var Cc=null;function Ck(n){Cc||(Cc=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),Cc(n)}function Mk(n){var e=document.createElement("style");return e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n)),(document.querySelector("head")||document.body).appendChild(e),e}function s7(n,e){e===void 0&&(e={});var t=document.createElement(n);return Object.keys(e).forEach(function(i){t[i]=e[i]}),t}function hT(n,e,t){var i=window.getComputedStyle(n,t||null)||{display:"none"};return i[e]}function Zd(n){if(!document.documentElement.contains(n))return{detached:!0,rendered:!1};for(var e=n;e!==document;){if(hT(e,"display")==="none")return{detached:!1,rendered:!1};e=e.parentNode}return{detached:!1,rendered:!0}}var Ek='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',Qd=0,mo=null;function Pk(n,e){n.__resize_mutation_handler__||(n.__resize_mutation_handler__=Lk.bind(n));var t=n.__resize_listeners__;if(!t){if(n.__resize_listeners__=[],window.ResizeObserver){var i=n.offsetWidth,r=n.offsetHeight,a=new ResizeObserver(function(){!n.__resize_observer_triggered__&&(n.__resize_observer_triggered__=!0,n.offsetWidth===i&&n.offsetHeight===r)||zo(n)}),s=Zd(n),o=s.detached,l=s.rendered;n.__resize_observer_triggered__=o===!1&&l===!1,n.__resize_observer__=a,a.observe(n)}else if(n.attachEvent&&n.addEventListener)n.__resize_legacy_resize_handler__=function(){zo(n)},n.attachEvent("onresize",n.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",n.__resize_mutation_handler__);else if(Qd||(mo=Mk(Ek)),Ik(n),n.__resize_rendered__=Zd(n).rendered,window.MutationObserver){var u=new MutationObserver(n.__resize_mutation_handler__);u.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),n.__resize_mutation_observer__=u}}n.__resize_listeners__.push(e),Qd++}function Rk(n,e){var t=n.__resize_listeners__;if(t){if(e&&t.splice(t.indexOf(e),1),!t.length||!e){if(n.detachEvent&&n.removeEventListener){n.detachEvent("onresize",n.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",n.__resize_mutation_handler__);return}n.__resize_observer__?(n.__resize_observer__.unobserve(n),n.__resize_observer__.disconnect(),n.__resize_observer__=null):(n.__resize_mutation_observer__&&(n.__resize_mutation_observer__.disconnect(),n.__resize_mutation_observer__=null),n.removeEventListener("scroll",cf),n.removeChild(n.__resize_triggers__.triggers),n.__resize_triggers__=null),n.__resize_listeners__=null}!--Qd&&mo&&mo.parentNode.removeChild(mo)}}function Nk(n){var e=n.__resize_last__,t=e.width,i=e.height,r=n.offsetWidth,a=n.offsetHeight;return r!==t||a!==i?{width:r,height:a}:null}function Lk(){var n=Zd(this),e=n.rendered,t=n.detached;e!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&(df(this),this.addEventListener("scroll",cf,!0)),this.__resize_rendered__=e,zo(this))}function cf(){var n=this;df(this),this.__resize_raf__&&Ck(this.__resize_raf__),this.__resize_raf__=Ak(function(){var e=Nk(n);e&&(n.__resize_last__=e,zo(n))})}function zo(n){!n||!n.__resize_listeners__||n.__resize_listeners__.forEach(function(e){e.call(n,n)})}function Ik(n){var e=hT(n,"position");(!e||e==="static")&&(n.style.position="relative"),n.__resize_old_position__=e,n.__resize_last__={};var t=s7("div",{className:"resize-triggers"}),i=s7("div",{className:"resize-expand-trigger"}),r=s7("div"),a=s7("div",{className:"resize-contract-trigger"});i.appendChild(r),t.appendChild(i),t.appendChild(a),n.appendChild(t),n.__resize_triggers__={triggers:t,expand:i,expandChild:r,contract:a},df(n),n.addEventListener("scroll",cf,!0),n.__resize_last__={width:n.offsetWidth,height:n.offsetHeight}}function df(n){var e=n.__resize_triggers__,t=e.expand,i=e.expandChild,r=e.contract,a=r.scrollWidth,s=r.scrollHeight,o=t.offsetWidth,l=t.offsetHeight,u=t.scrollWidth,d=t.scrollHeight;r.scrollLeft=a,r.scrollTop=s,i.style.width=o+1+"px",i.style.height=l+1+"px",t.scrollLeft=u,t.scrollTop=d}var li=function(){return li=Object.assign||function(n){for(var e,t=1,i=arguments.length;t0&&arguments[0]!==void 0?arguments[0]:-1;T2.JS_RequestInterface({funcName:"StopPlay",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:parseInt(g)}}}))}).then(function(S){console.log(JSON.stringify(S.responseMsg)),console.log(S.responseMsg)})}),s(this,"setLayout",function(g){var S=parseInt(g);if(isNaN(S)||S==0||S>=13){console.log("不支持实际布局大于16的窗口数");return}m.layout=S,T2.JS_RequestInterface({funcName:"SetLayout",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{layout:S}}}))}).then(function(A){console.log(JSON.stringify(A.responseMsg)),console.log(A.responseMsg)})}),s(this,"setSoundVolumn",function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1,S=arguments.length>1?arguments[1]:void 0;T2.JS_RequestInterface({funcName:"SoundVolumn",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:parseInt(g),volumn:parseInt(S)}}}))}).then(function(A){console.log(JSON.stringify(A.responseMsg)),console.log(A.responseMsg)})}),s(this,"testMute",function(){var g=parseInt(prompt("请输入窗口ID"));T2.JS_RequestInterface({funcName:"MuteOnOff",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:g}}}))}).then(function(S){console.log(JSON.stringify(S.responseMsg)),console.log(S.responseMsg)})}),s(this,"testSelectWnd",function(){var g=parseInt(prompt("请输入窗口ID"));T2.JS_RequestInterface({funcName:"SelectPlayWnd",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:g}}}))}).then(function(S){console.log(JSON.stringify(S.responseMsg)),console.log(S.responseMsg)})}),s(this,"setVideoLevel",function(g,S){T2.JS_RequestInterface({funcName:"SetVideoLevel",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:m.switchVideo==1?0:parseInt(g),level:parseInt(S,10)}}}))}).then(function(A){console.log(JSON.stringify(A.responseMsg)),console.log(A.responseMsg)})}),s(this,"startTalk",function(g){T2.JS_RequestInterface({funcName:"StartTalk",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:parseInt(g)}}}))}).then(function(S){console.log(JSON.stringify(S.responseMsg)),console.log(S.responseMsg)})}),s(this,"stopTalk",function(g){T2.JS_RequestInterface({funcName:"StopTalk",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:parseInt(g)}}}))}).then(function(S){console.log(JSON.stringify(S.responseMsg)),console.log(S.responseMsg)})}),s(this,"startSave",function(g){T2.JS_RequestInterface({funcName:"StartRecord",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:parseInt(g)}}}))}).then(function(S){console.log(JSON.stringify(S.responseMsg)),console.log(S.responseMsg)})}),s(this,"stopSave",function(g){T2.JS_RequestInterface({funcName:"StopRecord",arguments:encodeURI(JSON.stringify({response:{code:0,message:null,data:{wndId:parseInt(g)}}}))}).then(function(S){console.log(JSON.stringify(S.responseMsg)),console.log(S.responseMsg)})}),this.appKey="b9a3ad6e8026410095d8252169fa430a",this.accessToken="at.2vtum8873rrcwbrv431qb6pn94dkbv23-8dw2twn355-1u3x014-wrthellzk",this.deviceSerial="C33368372",this.channelNo="1",this.validateCode="",this.deviceClass="0",this.platformId="",this.startTime="",this.endTime="",this.layout=2,this.switchVideo=0,this.tips="调用成功",this.successTip=!1,this.tipsShow=!1,T2=n3("playWnd",$3,e1,y1)}return a(V,[{key:"alarmMsg",value:function(){var m={request:{body:{alarmTypes:[10800,0,0,0,0],channelId:"066dde0465dd4abaab6afe355baf9d0b",endTime:"1621007999000",startTime:"1620921600000"},callBack:"GetAlarmMsgOrders",majorKey:"",method:"POST",storeId:"",url:"/videoplugin/message/getMessageByTypes"},response:{code:0,message:null,data:[{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620921217e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620920678e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620920586e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620919513e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620919483e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620919333e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620918913e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620918616e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620918305e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620917858e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620917658e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620917244e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620917064e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620916994e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620916668e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620916571e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620916529e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620916343e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620916081e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620915825e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620915676e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620915531e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620915394e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620915197e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620914971e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620914644e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620914533e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620914457e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620914376e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620914284e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620913973e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620913431e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620912834e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620912771e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620912354e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620912275e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620912093e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620912024e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162091189e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620911839e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620911807e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162091176e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620911682e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162091127e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620911184e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910982e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910931e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910851e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910781e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910727e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910677e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910647e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910588e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910544e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910484e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162091041e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162091035e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910278e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910217e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620910124e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909976e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909939e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909847e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909817e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909736e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909664e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909605e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909575e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909346e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909247e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909216e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909149e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090912e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620909028e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908999e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908969e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908909e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090888e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908835e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090875e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090872e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908652e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908612e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908582e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908552e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908456e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908426e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908299e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620908268e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090805e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620907918e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620907758e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620907625e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620907386e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620907292e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620907127e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906864e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906828e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906797e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906747e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906717e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906632e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906501e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906412e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906368e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906329e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906142e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906112e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620906013e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905946e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905823e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905697e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905622e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905571e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905541e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905511e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905481e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905442e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905412e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905382e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905352e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905322e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905262e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620905196e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090515e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904994e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904931e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904813e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090473e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:16209047e5},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904618e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904286e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904173e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904143e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904112e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904053e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620904023e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903854e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903789e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903723e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903643e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903612e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903573e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903505e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903383e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903329e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903299e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903268e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:16209032e5},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620903149e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090312e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902977e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090286e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090277e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902639e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902609e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902517e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902373e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090232e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902253e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902198e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620902132e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090194e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090185e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901789e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901746e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901685e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901638e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090152e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901489e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901424e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901271e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901233e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620901157e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900915e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900834e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900774e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900744e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090065e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162090044e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900409e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900175e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900134e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900069e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620900016e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899976e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899908e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899879e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899826e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899756e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899599e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899559e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899467e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899406e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899265e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620899211e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089914e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089911e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089905e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898991e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898926e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898834e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898785e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898746e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898697e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898666e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898507e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898293e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898248e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898218e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898157e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620898088e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089802e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089796e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089785e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897807e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897771e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897719e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089769e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089763e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:16208976e5},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089757e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089754e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897475e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897412e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897369e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897339e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897279e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897237e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897207e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897172e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897142e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897112e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620897024e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896985e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896874e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896843e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896814e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896783e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896736e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896621e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896478e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896447e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896358e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896307e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896277e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896247e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620896214e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089604e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895953e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895921e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895868e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089577e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895704e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089559e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895559e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089548e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895442e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895377e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895347e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895293e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895171e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895136e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620895017e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894926e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894896e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894864e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894834e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894738e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894599e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894539e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894426e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894359e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894297e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894213e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894183e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620894051e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893964e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893934e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893843e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893754e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893676e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893606e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089353e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893452e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893423e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893357e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893288e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893143e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893051e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620893006e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892904e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892824e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892764e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892541e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892479e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892412e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892311e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892281e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892209e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620892063e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891991e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891931e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089187e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089181e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891708e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891655e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891585e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891531e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891501e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891401e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891297e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891257e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891216e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891178e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891128e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620891033e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890973e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162089094e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890879e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890794e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890714e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890616e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890586e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890469e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890414e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890346e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890288e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890179e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890108e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890041e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620890011e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889937e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889719e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889635e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889481e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889451e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889317e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889227e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889139e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620889034e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888973e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888902e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888837e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888767e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888737e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888706e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888633e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888571e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888413e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888353e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888323e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888249e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888162e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620888e6},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887859e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887776e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887734e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887692e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887619e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887501e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887355e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162088732e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887289e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887126e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887066e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620887034e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162088697e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886884e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886804e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886728e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886609e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886538e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886478e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886396e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886334e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886246e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886111e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620886011e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885956e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885894e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885696e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885514e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885484e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885414e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885383e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885341e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885306e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885276e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885216e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885186e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885114e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885037e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620885006e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620884975e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620884945e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620884911e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620884851e3},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:162088478e4},{alarmType:10800,alarmName:"移动侦测报警",alarmTime:1620884696e3}],success:!0}};console.log(m),T2.JS_RequestInterface({funcName:"TransFunctionResult",arguments:encodeURI(JSON.stringify(m))})}}]),V}();(function(V,x){t(n)==="object"&&t(n.exports)==="object"?n.exports=V.document?x(V,!0):function(m){if(!m.document)throw new Error("EZUIPlayer requires a window with a document");return x(m)}:x(V)})(typeof window!="undefined"?window:void 0,function(V,x){var m={Core:o,HLS:q,FLV:K,EZUIKitPlayer:W,EZUIKitHD:t1};return V.EZUIKit=m,m})})(Vo,Vo.exports);var Mk=Vo.exports;const pT=Ck(Mk);var Ec=null;function Ek(n){return Ec||(Ec=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),Ec(n)}var Pc=null;function Pk(n){Pc||(Pc=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),Pc(n)}function Rk(n){var e=document.createElement("style");return e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n)),(document.querySelector("head")||document.body).appendChild(e),e}function l7(n,e){e===void 0&&(e={});var t=document.createElement(n);return Object.keys(e).forEach(function(i){t[i]=e[i]}),t}function mT(n,e,t){var i=window.getComputedStyle(n,t||null)||{display:"none"};return i[e]}function th(n){if(!document.documentElement.contains(n))return{detached:!0,rendered:!1};for(var e=n;e!==document;){if(mT(e,"display")==="none")return{detached:!1,rendered:!1};e=e.parentNode}return{detached:!1,rendered:!0}}var Nk='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',nh=0,yo=null;function Lk(n,e){n.__resize_mutation_handler__||(n.__resize_mutation_handler__=Fk.bind(n));var t=n.__resize_listeners__;if(!t){if(n.__resize_listeners__=[],window.ResizeObserver){var i=n.offsetWidth,r=n.offsetHeight,a=new ResizeObserver(function(){!n.__resize_observer_triggered__&&(n.__resize_observer_triggered__=!0,n.offsetWidth===i&&n.offsetHeight===r)||Ho(n)}),s=th(n),o=s.detached,l=s.rendered;n.__resize_observer_triggered__=o===!1&&l===!1,n.__resize_observer__=a,a.observe(n)}else if(n.attachEvent&&n.addEventListener)n.__resize_legacy_resize_handler__=function(){Ho(n)},n.attachEvent("onresize",n.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",n.__resize_mutation_handler__);else if(nh||(yo=Rk(Nk)),Dk(n),n.__resize_rendered__=th(n).rendered,window.MutationObserver){var u=new MutationObserver(n.__resize_mutation_handler__);u.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),n.__resize_mutation_observer__=u}}n.__resize_listeners__.push(e),nh++}function Ik(n,e){var t=n.__resize_listeners__;if(t){if(e&&t.splice(t.indexOf(e),1),!t.length||!e){if(n.detachEvent&&n.removeEventListener){n.detachEvent("onresize",n.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",n.__resize_mutation_handler__);return}n.__resize_observer__?(n.__resize_observer__.unobserve(n),n.__resize_observer__.disconnect(),n.__resize_observer__=null):(n.__resize_mutation_observer__&&(n.__resize_mutation_observer__.disconnect(),n.__resize_mutation_observer__=null),n.removeEventListener("scroll",ff),n.removeChild(n.__resize_triggers__.triggers),n.__resize_triggers__=null),n.__resize_listeners__=null}!--nh&&yo&&yo.parentNode.removeChild(yo)}}function kk(n){var e=n.__resize_last__,t=e.width,i=e.height,r=n.offsetWidth,a=n.offsetHeight;return r!==t||a!==i?{width:r,height:a}:null}function Fk(){var n=th(this),e=n.rendered,t=n.detached;e!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&(pf(this),this.addEventListener("scroll",ff,!0)),this.__resize_rendered__=e,Ho(this))}function ff(){var n=this;pf(this),this.__resize_raf__&&Pk(this.__resize_raf__),this.__resize_raf__=Ek(function(){var e=kk(n);e&&(n.__resize_last__=e,Ho(n))})}function Ho(n){!n||!n.__resize_listeners__||n.__resize_listeners__.forEach(function(e){e.call(n,n)})}function Dk(n){var e=mT(n,"position");(!e||e==="static")&&(n.style.position="relative"),n.__resize_old_position__=e,n.__resize_last__={};var t=l7("div",{className:"resize-triggers"}),i=l7("div",{className:"resize-expand-trigger"}),r=l7("div"),a=l7("div",{className:"resize-contract-trigger"});i.appendChild(r),t.appendChild(i),t.appendChild(a),n.appendChild(t),n.__resize_triggers__={triggers:t,expand:i,expandChild:r,contract:a},pf(n),n.addEventListener("scroll",ff,!0),n.__resize_last__={width:n.offsetWidth,height:n.offsetHeight}}function pf(n){var e=n.__resize_triggers__,t=e.expand,i=e.expandChild,r=e.contract,a=r.scrollWidth,s=r.scrollHeight,o=t.offsetWidth,l=t.offsetHeight,u=t.scrollWidth,d=t.scrollHeight;r.scrollLeft=a,r.scrollTop=s,i.style.width=o+1+"px",i.style.height=l+1+"px",t.scrollLeft=u,t.scrollTop=d}var li=function(){return li=Object.assign||function(n){for(var e,t=1,i=arguments.length;t{let s=e.width;return`M165 0.5
+`)(gT)}catch(n){return Ia=!1}return Ia=!0}(),jk="ecTheme",Wk="ecInitOptions",$k="ecUpdateOptions",uv=/(^&?~?!?)native:/,Ye=TL({name:"echarts",props:li(li({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},Bk),Vk),emits:{},inheritAttrs:!1,setup:function(n,e){var t=e.attrs,i=Ka(),r=Ka(),a=Ka(),s=Ka(),o=ur(jk,null),l=ur(Wk,null),u=ur($k,null),d=wL(n),h=d.autoresize,f=d.manualUpdate,v=d.loading,_=d.loadingOptions,b=z2(function(){return s.value||n.option||null}),y=z2(function(){return n.theme||u7(o,{})}),w=z2(function(){return n.initOptions||u7(l,{})}),D=z2(function(){return n.updateOptions||u7(u,{})}),R=z2(function(){return function(Z){var G2={};for(var q2 in Z)ov(q2)||(G2[q2]=Z[q2]);return G2}(t)}),U={},j=fb().proxy.$listeners,q={};function K(Z){if(r.value){var G2=a.value=xL(r.value,y.value,w.value);n.group&&(G2.group=n.group),Object.keys(q).forEach(function(C2){var E2=q[C2];if(E2){var A2=C2.toLowerCase();A2.charAt(0)==="~"&&(A2=A2.substring(1),E2.__once__=!0);var X2=G2;if(A2.indexOf("zr:")===0&&(X2=G2.getZr(),A2=A2.substring(3)),E2.__once__){delete E2.__once__;var b2=E2;E2=function(){for(var J=[],p2=0;p2{let s=e.width;return`M165 0.5
L165.707 -0.207107
L165.414 -0.5
H165
@@ -1000,15 +1000,15 @@ if (customElements.get(tag) == null) {
L3.36682 ${88.745+o/2}
L3.485 ${88.605+o/2}
V${88.422+o/2}
- V${46.0565+o/2}Z`}),a=z2(()=>`width:${e.width}px;height:${e.height}px;`);return Fn(()=>{t.value="__"+cb().uid}),(s,o)=>(h2(),v2("div",{class:"m-card",style:p0(a.value)},[M("div",qk,[M("div",Kk,[(h2(),v2("svg",{width:n.width,height:"36",viewBox:`0 0 ${n.width} 36`,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[M("g",{"clip-path":`url(#clip0_70_69244${t.value})`},[M("rect",{y:"34.5",width:n.width,height:"1",fill:"url(#paint0_linear_70_69244)"},null,8,Zk),M("mask",{id:`path-2-inside-1_70_69244${t.value}`,fill:"white"},[M("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:`M10 0.5H165L175 10.5H${n.width}V34.5H0V10.5L10 0.5Z`},null,8,eF)],8,Qk),M("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:`M10 0.5H165L175 10.5H${n.width}V34.5H0V10.5L10 0.5Z`,fill:`url(#paint1_linear_70_69244${t.value})`},null,8,tF),M("path",{d:i.value,fill:`url(#paint2_linear_70_69244${t.value})`,mask:`url(#path-2-inside-1_70_69244${t.value})`},null,8,nF),o[1]||(o[1]=K9('',4)),M("g",{style:{"mix-blend-mode":"plus-lighter"},"clip-path":`url(#clip1_70_69244${t.value})`},[...o[0]||(o[0]=[K9('',4)])],8,iF)],8,Jk),M("defs",null,[M("linearGradient",{id:"paint0_linear_70_69244",x1:n.width,y1:"35.5021",x2:"0",y2:"35.5021",gradientUnits:"userSpaceOnUse"},[...o[2]||(o[2]=[M("stop",{"stop-color":"#35A8EB","stop-opacity":"0.1"},null,-1),M("stop",{offset:"1","stop-color":"#30DCFF"},null,-1)])],8,rF),M("linearGradient",{id:`paint1_linear_70_69244${t.value}`,x1:n.width,y1:"17.5",x2:"7.94819",y2:"17.5",gradientUnits:"userSpaceOnUse"},[...o[3]||(o[3]=[M("stop",{offset:"0.0364889","stop-color":"#35A8EB","stop-opacity":"0.11"},null,-1),M("stop",{offset:"1","stop-color":"#30C1FF","stop-opacity":"0.27"},null,-1)])],8,aF),M("linearGradient",{id:`paint2_linear_70_69244${t.value}`,x1:"40.8948",y1:"13.5",x2:"40.895",y2:"-6.50005",gradientUnits:"userSpaceOnUse"},[...o[4]||(o[4]=[M("stop",{"stop-color":"#35A8EB","stop-opacity":"0"},null,-1),M("stop",{offset:"1","stop-color":"#30DCFF"},null,-1)])],8,sF),o[6]||(o[6]=K9('',8)),M("clipPath",{id:`clip0_70_69244${t.value}`},[M("rect",{width:n.width,height:"35",fill:"white",transform:"translate(0 0.5)"},null,8,lF)],8,oF),M("clipPath",{id:`clip1_70_69244${t.value}`},[...o[5]||(o[5]=[M("rect",{width:"130",height:"4",fill:"white",transform:"matrix(1 1.64302e-07 -0.0495776 -0.99877 28 4.5)"},null,-1)])],8,uF)])],8,Xk))]),o[7]||(o[7]=M("img",{class:"m-card-hd-zs1",src:jk,alt:""},null,-1)),o[8]||(o[8]=M("div",{class:"saoguang"},[M("img",{src:Wk,alt:""})],-1)),M("div",cF,L2(n.title),1)]),M("div",{class:"m-card-bd",style:p0(a.value)},[M("div",{class:"m-card-bd-bg",style:p0(a.value)},[(h2(),v2("svg",{width:n.width,height:n.height,viewBox:`0 0 ${n.width} ${n.height}`,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[M("g",hF,[M("path",{d:r.value,fill:"rgba(26, 57, 77,1)"},null,8,fF),M("path",{d:r.value,stroke:"url(#paint1_linear_70_69585)"},null,8,pF)]),o[9]||(o[9]=M("defs",null,[M("linearGradient",{id:"paint1_linear_70_69585",x1:"199",y1:"203.499",x2:"199",y2:"0.499359",gradientUnits:"userSpaceOnUse"},[M("stop",{"stop-color":"#4FC5DD"}),M("stop",{offset:"1","stop-color":"#05839D","stop-opacity":"0"})])],-1))],8,dF)),o[10]||(o[10]=M("img",{class:"m-card-bd-bottom-left-arrow",src:$k,alt:""},null,-1)),o[11]||(o[11]=M("img",{class:"m-card-bd-bottom-right-arrow",src:Yk,alt:""},null,-1)),o[12]||(o[12]=M("img",{class:"m-card-bd-middle-left-line",src:ov,alt:""},null,-1)),o[13]||(o[13]=M("img",{class:"m-card-bd-middle-right-line",src:ov,alt:""},null,-1))],4),M("div",mF,[Rr(s.$slots,"default")])],4)],4))}};/**
+ V${46.0565+o/2}Z`}),a=z2(()=>`width:${e.width}px;height:${e.height}px;`);return Fn(()=>{t.value="__"+fb().uid}),(s,o)=>(h2(),v2("div",{class:"m-card",style:c0(a.value)},[E("div",Jk,[E("div",Zk,[(h2(),v2("svg",{width:n.width,height:"36",viewBox:`0 0 ${n.width} 36`,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[E("g",{"clip-path":`url(#clip0_70_69244${t.value})`},[E("rect",{y:"34.5",width:n.width,height:"1",fill:"url(#paint0_linear_70_69244)"},null,8,tF),E("mask",{id:`path-2-inside-1_70_69244${t.value}`,fill:"white"},[E("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:`M10 0.5H165L175 10.5H${n.width}V34.5H0V10.5L10 0.5Z`},null,8,iF)],8,nF),E("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:`M10 0.5H165L175 10.5H${n.width}V34.5H0V10.5L10 0.5Z`,fill:`url(#paint1_linear_70_69244${t.value})`},null,8,rF),E("path",{d:i.value,fill:`url(#paint2_linear_70_69244${t.value})`,mask:`url(#path-2-inside-1_70_69244${t.value})`},null,8,aF),o[1]||(o[1]=X9('',4)),E("g",{style:{"mix-blend-mode":"plus-lighter"},"clip-path":`url(#clip1_70_69244${t.value})`},[...o[0]||(o[0]=[X9('',4)])],8,sF)],8,eF),E("defs",null,[E("linearGradient",{id:"paint0_linear_70_69244",x1:n.width,y1:"35.5021",x2:"0",y2:"35.5021",gradientUnits:"userSpaceOnUse"},[...o[2]||(o[2]=[E("stop",{"stop-color":"#35A8EB","stop-opacity":"0.1"},null,-1),E("stop",{offset:"1","stop-color":"#30DCFF"},null,-1)])],8,oF),E("linearGradient",{id:`paint1_linear_70_69244${t.value}`,x1:n.width,y1:"17.5",x2:"7.94819",y2:"17.5",gradientUnits:"userSpaceOnUse"},[...o[3]||(o[3]=[E("stop",{offset:"0.0364889","stop-color":"#35A8EB","stop-opacity":"0.11"},null,-1),E("stop",{offset:"1","stop-color":"#30C1FF","stop-opacity":"0.27"},null,-1)])],8,lF),E("linearGradient",{id:`paint2_linear_70_69244${t.value}`,x1:"40.8948",y1:"13.5",x2:"40.895",y2:"-6.50005",gradientUnits:"userSpaceOnUse"},[...o[4]||(o[4]=[E("stop",{"stop-color":"#35A8EB","stop-opacity":"0"},null,-1),E("stop",{offset:"1","stop-color":"#30DCFF"},null,-1)])],8,uF),o[6]||(o[6]=X9('',8)),E("clipPath",{id:`clip0_70_69244${t.value}`},[E("rect",{width:n.width,height:"35",fill:"white",transform:"translate(0 0.5)"},null,8,dF)],8,cF),E("clipPath",{id:`clip1_70_69244${t.value}`},[...o[5]||(o[5]=[E("rect",{width:"130",height:"4",fill:"white",transform:"matrix(1 1.64302e-07 -0.0495776 -0.99877 28 4.5)"},null,-1)])],8,hF)])],8,Qk))]),o[7]||(o[7]=E("img",{class:"m-card-hd-zs1",src:Yk,alt:""},null,-1)),o[8]||(o[8]=E("div",{class:"saoguang"},[E("img",{src:qk,alt:""})],-1)),E("div",fF,L2(n.title),1)]),E("div",{class:"m-card-bd",style:c0(a.value)},[E("div",{class:"m-card-bd-bg",style:c0(a.value)},[(h2(),v2("svg",{width:n.width,height:n.height,viewBox:`0 0 ${n.width} ${n.height}`,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[E("g",mF,[E("path",{d:r.value,fill:"rgba(26, 57, 77,1)"},null,8,gF),E("path",{d:r.value,stroke:"url(#paint1_linear_70_69585)"},null,8,vF)]),o[9]||(o[9]=E("defs",null,[E("linearGradient",{id:"paint1_linear_70_69585",x1:"199",y1:"203.499",x2:"199",y2:"0.499359",gradientUnits:"userSpaceOnUse"},[E("stop",{"stop-color":"#4FC5DD"}),E("stop",{offset:"1","stop-color":"#05839D","stop-opacity":"0"})])],-1))],8,pF)),o[10]||(o[10]=E("img",{class:"m-card-bd-bottom-left-arrow",src:Kk,alt:""},null,-1)),o[11]||(o[11]=E("img",{class:"m-card-bd-bottom-right-arrow",src:Xk,alt:""},null,-1)),o[12]||(o[12]=E("img",{class:"m-card-bd-middle-left-line",src:cv,alt:""},null,-1)),o[13]||(o[13]=E("img",{class:"m-card-bd-middle-right-line",src:cv,alt:""},null,-1))],4),E("div",yF,[Lr(s.$slots,"default")])],4)],4))}};/**
* @license
* Copyright 2010-2023 Three.js Authors
* SPDX-License-Identifier: MIT
- */const hf="161",L8={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},I8={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},gF=0,lv=1,vF=2,pT=1,yF=2,$i=3,n5=0,Nn=1,he=2,X5=0,e8=1,Tt=2,uv=3,cv=4,mT=5,O5=100,_F=101,SF=102,dv=103,hv=104,bF=200,gT=201,TF=202,wF=203,eh=204,th=205,xF=206,AF=207,vT=208,CF=209,MF=210,EF=211,PF=212,RF=213,NF=214,LF=0,IF=1,kF=2,Go=3,FF=4,DF=5,UF=6,OF=7,ff=0,BF=1,zF=2,J5=0,GF=1,VF=2,HF=3,jF=4,WF=5,$F=6,fv="attached",YF="detached",yT=300,Ur=301,Or=302,nh=303,ih=304,Pl=306,wt=1e3,Yt=1001,Vo=1002,ht=1003,rh=1004,rr=1005,at=1006,go=1007,Zi=1008,Z5=1009,qF=1010,KF=1011,pf=1012,_T=1013,H5=1014,fi=1015,M4=1016,ST=1017,bT=1018,t8=1020,XF=1021,A6=1023,JF=1024,ZF=1025,n8=1026,Br=1027,QF=1028,TT=1029,eD=1030,wT=1031,xT=1033,Mc=33776,Ec=33777,Pc=33778,Rc=33779,pv=35840,mv=35841,gv=35842,vv=35843,AT=36196,yv=37492,_v=37496,Sv=37808,bv=37809,Tv=37810,wv=37811,xv=37812,Av=37813,Cv=37814,Mv=37815,Ev=37816,Pv=37817,Rv=37818,Nv=37819,Lv=37820,Iv=37821,Nc=36492,kv=36494,Fv=36495,tD=36283,Dv=36284,Uv=36285,Ov=36286,E4=2300,zr=2301,Lc=2302,Bv=2400,zv=2401,Gv=2402,nD=2500,iD=0,CT=1,ah=2,MT=3e3,i8=3001,rD=3200,aD=3201,mf=0,sD=1,C6="",J0="srgb",mt="srgb-linear",gf="display-p3",Rl="display-p3-linear",Ho="linear",Ce="srgb",jo="rec709",Wo="p3",k8=7680,Vv=519,oD=512,lD=513,uD=514,ET=515,cD=516,dD=517,hD=518,fD=519,sh=35044,Hv="300 es",oh=1035,Qi=2e3,$o=2001;class f8{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const i=this._listeners;i[e]===void 0&&(i[e]=[]),i[e].indexOf(t)===-1&&i[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;const i=this._listeners;return i[e]!==void 0&&i[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;const r=this._listeners[e];if(r!==void 0){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const i=this._listeners[e.type];if(i!==void 0){e.target=this;const r=i.slice(0);for(let a=0,s=r.length;a>8&255]+zt[n>>16&255]+zt[n>>24&255]+"-"+zt[e&255]+zt[e>>8&255]+"-"+zt[e>>16&15|64]+zt[e>>24&255]+"-"+zt[t&63|128]+zt[t>>8&255]+"-"+zt[t>>16&255]+zt[t>>24&255]+zt[i&255]+zt[i>>8&255]+zt[i>>16&255]+zt[i>>24&255]).toLowerCase()}function ot(n,e,t){return Math.max(e,Math.min(t,n))}function vf(n,e){return(n%e+e)%e}function pD(n,e,t,i,r){return i+(n-e)*(r-i)/(t-e)}function mD(n,e,t){return n!==e?(t-n)/(e-n):0}function s4(n,e,t){return(1-t)*n+t*e}function gD(n,e,t,i){return s4(n,e,1-Math.exp(-t*i))}function vD(n,e=1){return e-Math.abs(vf(n,e*2)-e)}function yD(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function _D(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function SD(n,e){return n+Math.floor(Math.random()*(e-n+1))}function bD(n,e){return n+Math.random()*(e-n)}function TD(n){return n*(.5-Math.random())}function wD(n){n!==void 0&&(jv=n);let e=jv+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function xD(n){return n*a4}function AD(n){return n*Gr}function lh(n){return(n&n-1)===0&&n!==0}function CD(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function Yo(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function MD(n,e,t,i,r){const a=Math.cos,s=Math.sin,o=a(t/2),l=s(t/2),u=a((e+i)/2),d=s((e+i)/2),h=a((e-i)/2),f=s((e-i)/2),v=a((i-e)/2),_=s((i-e)/2);switch(r){case"XYX":n.set(o*d,l*h,l*f,o*u);break;case"YZY":n.set(l*f,o*d,l*h,o*u);break;case"ZXZ":n.set(l*h,l*f,o*d,o*u);break;case"XZX":n.set(o*d,l*_,l*v,o*u);break;case"YXY":n.set(l*v,o*d,l*_,o*u);break;case"ZYZ":n.set(l*_,l*v,o*d,o*u);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}function $6(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function te(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const yf={DEG2RAD:a4,RAD2DEG:Gr,generateUUID:P6,clamp:ot,euclideanModulo:vf,mapLinear:pD,inverseLerp:mD,lerp:s4,damp:gD,pingpong:vD,smoothstep:yD,smootherstep:_D,randInt:SD,randFloat:bD,randFloatSpread:TD,seededRandom:wD,degToRad:xD,radToDeg:AD,isPowerOfTwo:lh,ceilPowerOfTwo:CD,floorPowerOfTwo:Yo,setQuaternionFromProperEuler:MD,normalize:te,denormalize:$6};class F3{constructor(e=0,t=0){F3.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,i=this.y,r=e.elements;return this.x=r[0]*t+r[3]*i+r[6],this.y=r[1]*t+r[4]*i+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(ot(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y;return t*t+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const i=Math.cos(t),r=Math.sin(t),a=this.x-e.x,s=this.y-e.y;return this.x=a*i-s*r+e.x,this.y=a*r+s*i+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class w0{constructor(e,t,i,r,a,s,o,l,u){w0.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,i,r,a,s,o,l,u)}set(e,t,i,r,a,s,o,l,u){const d=this.elements;return d[0]=e,d[1]=r,d[2]=o,d[3]=t,d[4]=a,d[5]=l,d[6]=i,d[7]=s,d[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],this}extractBasis(e,t,i){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,r=t.elements,a=this.elements,s=i[0],o=i[3],l=i[6],u=i[1],d=i[4],h=i[7],f=i[2],v=i[5],_=i[8],b=r[0],y=r[3],w=r[6],U=r[1],P=r[4],O=r[7],j=r[2],q=r[5],K=r[8];return a[0]=s*b+o*U+l*j,a[3]=s*y+o*P+l*q,a[6]=s*w+o*O+l*K,a[1]=u*b+d*U+h*j,a[4]=u*y+d*P+h*q,a[7]=u*w+d*O+h*K,a[2]=f*b+v*U+_*j,a[5]=f*y+v*P+_*q,a[8]=f*w+v*O+_*K,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[1],r=e[2],a=e[3],s=e[4],o=e[5],l=e[6],u=e[7],d=e[8];return t*s*d-t*o*u-i*a*d+i*o*l+r*a*u-r*s*l}invert(){const e=this.elements,t=e[0],i=e[1],r=e[2],a=e[3],s=e[4],o=e[5],l=e[6],u=e[7],d=e[8],h=d*s-o*u,f=o*l-d*a,v=u*a-s*l,_=t*h+i*f+r*v;if(_===0)return this.set(0,0,0,0,0,0,0,0,0);const b=1/_;return e[0]=h*b,e[1]=(r*u-d*i)*b,e[2]=(o*i-r*s)*b,e[3]=f*b,e[4]=(d*t-r*l)*b,e[5]=(r*a-o*t)*b,e[6]=v*b,e[7]=(i*l-u*t)*b,e[8]=(s*t-i*a)*b,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,i,r,a,s,o){const l=Math.cos(a),u=Math.sin(a);return this.set(i*l,i*u,-i*(l*s+u*o)+s+e,-r*u,r*l,-r*(-u*s+l*o)+o+t,0,0,1),this}scale(e,t){return this.premultiply(Ic.makeScale(e,t)),this}rotate(e){return this.premultiply(Ic.makeRotation(-e)),this}translate(e,t){return this.premultiply(Ic.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,i,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,i=e.elements;for(let r=0;r<9;r++)if(t[r]!==i[r])return!1;return!0}fromArray(e,t=0){for(let i=0;i<9;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const Ic=new w0;function PT(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function P4(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function ED(){const n=P4("canvas");return n.style.display="block",n}const Wv={};function r8(n){n in Wv||(Wv[n]=!0,console.warn(n))}const $v=new w0().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Yv=new w0().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),l7={[mt]:{transfer:Ho,primaries:jo,toReference:n=>n,fromReference:n=>n},[J0]:{transfer:Ce,primaries:jo,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[Rl]:{transfer:Ho,primaries:Wo,toReference:n=>n.applyMatrix3(Yv),fromReference:n=>n.applyMatrix3($v)},[gf]:{transfer:Ce,primaries:Wo,toReference:n=>n.convertSRGBToLinear().applyMatrix3(Yv),fromReference:n=>n.applyMatrix3($v).convertLinearToSRGB()}},PD=new Set([mt,Rl]),X0={enabled:!0,_workingColorSpace:mt,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!PD.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,e,t){if(this.enabled===!1||e===t||!e||!t)return n;const i=l7[e].toReference,r=l7[t].fromReference;return r(i(n))},fromWorkingColorSpace:function(n,e){return this.convert(n,this._workingColorSpace,e)},toWorkingColorSpace:function(n,e){return this.convert(n,e,this._workingColorSpace)},getPrimaries:function(n){return l7[n].primaries},getTransfer:function(n){return n===C6?Ho:l7[n].transfer}};function wr(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function kc(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let F8;class RT{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement=="undefined")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{F8===void 0&&(F8=P4("canvas")),F8.width=e.width,F8.height=e.height;const i=F8.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),t=F8}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement!="undefined"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement!="undefined"&&e instanceof HTMLCanvasElement||typeof ImageBitmap!="undefined"&&e instanceof ImageBitmap){const t=P4("canvas");t.width=e.width,t.height=e.height;const i=t.getContext("2d");i.drawImage(e,0,0,e.width,e.height);const r=i.getImageData(0,0,e.width,e.height),a=r.data;for(let s=0;s0&&(i.userData=this.userData),t||(e.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==yT)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case wt:e.x=e.x-Math.floor(e.x);break;case Yt:e.x=e.x<0?0:1;break;case Vo:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case wt:e.y=e.y-Math.floor(e.y);break;case Yt:e.y=e.y<0?0:1;break;case Vo:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return r8("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===J0?i8:MT}set encoding(e){r8("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===i8?J0:C6}}pt.DEFAULT_IMAGE=null;pt.DEFAULT_MAPPING=yT;pt.DEFAULT_ANISOTROPY=1;class H0{constructor(e=0,t=0,i=0,r=1){H0.prototype.isVector4=!0,this.x=e,this.y=t,this.z=i,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,i,r){return this.x=e,this.y=t,this.z=i,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,i=this.y,r=this.z,a=this.w,s=e.elements;return this.x=s[0]*t+s[4]*i+s[8]*r+s[12]*a,this.y=s[1]*t+s[5]*i+s[9]*r+s[13]*a,this.z=s[2]*t+s[6]*i+s[10]*r+s[14]*a,this.w=s[3]*t+s[7]*i+s[11]*r+s[15]*a,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,i,r,a;const l=e.elements,u=l[0],d=l[4],h=l[8],f=l[1],v=l[5],_=l[9],b=l[2],y=l[6],w=l[10];if(Math.abs(d-f)<.01&&Math.abs(h-b)<.01&&Math.abs(_-y)<.01){if(Math.abs(d+f)<.1&&Math.abs(h+b)<.1&&Math.abs(_+y)<.1&&Math.abs(u+v+w-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const P=(u+1)/2,O=(v+1)/2,j=(w+1)/2,q=(d+f)/4,K=(h+b)/4,c2=(_+y)/4;return P>O&&P>j?P<.01?(i=0,r=.707106781,a=.707106781):(i=Math.sqrt(P),r=q/i,a=K/i):O>j?O<.01?(i=.707106781,r=0,a=.707106781):(r=Math.sqrt(O),i=q/r,a=c2/r):j<.01?(i=.707106781,r=.707106781,a=0):(a=Math.sqrt(j),i=K/a,r=c2/a),this.set(i,r,a,t),this}let U=Math.sqrt((y-_)*(y-_)+(h-b)*(h-b)+(f-d)*(f-d));return Math.abs(U)<.001&&(U=1),this.x=(y-_)/U,this.y=(h-b)/U,this.z=(f-d)/U,this.w=Math.acos((u+v+w-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this.w=e.w+(t.w-e.w)*i,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class LD extends f8{constructor(e=1,t=1,i={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new H0(0,0,e,t),this.scissorTest=!1,this.viewport=new H0(0,0,e,t);const r={width:e,height:t,depth:1};i.encoding!==void 0&&(r8("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),i.colorSpace=i.encoding===i8?J0:C6),i=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:at,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},i),this.texture=new pt(r,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=i.generateMipmaps,this.texture.internalFormat=i.internalFormat,this.depthBuffer=i.depthBuffer,this.stencilBuffer=i.stencilBuffer,this.depthTexture=i.depthTexture,this.samples=i.samples}setSize(e,t,i=1){(this.width!==e||this.height!==t||this.depth!==i)&&(this.width=e,this.height=t,this.depth=i,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=i,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new NT(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class s8 extends LD{constructor(e=1,t=1,i={}){super(e,t,i),this.isWebGLRenderTarget=!0}}class LT extends pt{constructor(e=null,t=1,i=1,r=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:i,depth:r},this.magFilter=ht,this.minFilter=ht,this.wrapR=Yt,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class ID extends pt{constructor(e=null,t=1,i=1,r=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:i,depth:r},this.magFilter=ht,this.minFilter=ht,this.wrapR=Yt,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Z6{constructor(e=0,t=0,i=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=i,this._w=r}static slerpFlat(e,t,i,r,a,s,o){let l=i[r+0],u=i[r+1],d=i[r+2],h=i[r+3];const f=a[s+0],v=a[s+1],_=a[s+2],b=a[s+3];if(o===0){e[t+0]=l,e[t+1]=u,e[t+2]=d,e[t+3]=h;return}if(o===1){e[t+0]=f,e[t+1]=v,e[t+2]=_,e[t+3]=b;return}if(h!==b||l!==f||u!==v||d!==_){let y=1-o;const w=l*f+u*v+d*_+h*b,U=w>=0?1:-1,P=1-w*w;if(P>Number.EPSILON){const j=Math.sqrt(P),q=Math.atan2(j,w*U);y=Math.sin(y*q)/j,o=Math.sin(o*q)/j}const O=o*U;if(l=l*y+f*O,u=u*y+v*O,d=d*y+_*O,h=h*y+b*O,y===1-o){const j=1/Math.sqrt(l*l+u*u+d*d+h*h);l*=j,u*=j,d*=j,h*=j}}e[t]=l,e[t+1]=u,e[t+2]=d,e[t+3]=h}static multiplyQuaternionsFlat(e,t,i,r,a,s){const o=i[r],l=i[r+1],u=i[r+2],d=i[r+3],h=a[s],f=a[s+1],v=a[s+2],_=a[s+3];return e[t]=o*_+d*h+l*v-u*f,e[t+1]=l*_+d*f+u*h-o*v,e[t+2]=u*_+d*v+o*f-l*h,e[t+3]=d*_-o*h-l*f-u*v,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,i,r){return this._x=e,this._y=t,this._z=i,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const i=e._x,r=e._y,a=e._z,s=e._order,o=Math.cos,l=Math.sin,u=o(i/2),d=o(r/2),h=o(a/2),f=l(i/2),v=l(r/2),_=l(a/2);switch(s){case"XYZ":this._x=f*d*h+u*v*_,this._y=u*v*h-f*d*_,this._z=u*d*_+f*v*h,this._w=u*d*h-f*v*_;break;case"YXZ":this._x=f*d*h+u*v*_,this._y=u*v*h-f*d*_,this._z=u*d*_-f*v*h,this._w=u*d*h+f*v*_;break;case"ZXY":this._x=f*d*h-u*v*_,this._y=u*v*h+f*d*_,this._z=u*d*_+f*v*h,this._w=u*d*h-f*v*_;break;case"ZYX":this._x=f*d*h-u*v*_,this._y=u*v*h+f*d*_,this._z=u*d*_-f*v*h,this._w=u*d*h+f*v*_;break;case"YZX":this._x=f*d*h+u*v*_,this._y=u*v*h+f*d*_,this._z=u*d*_-f*v*h,this._w=u*d*h-f*v*_;break;case"XZY":this._x=f*d*h-u*v*_,this._y=u*v*h-f*d*_,this._z=u*d*_+f*v*h,this._w=u*d*h+f*v*_;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const i=t/2,r=Math.sin(i);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,i=t[0],r=t[4],a=t[8],s=t[1],o=t[5],l=t[9],u=t[2],d=t[6],h=t[10],f=i+o+h;if(f>0){const v=.5/Math.sqrt(f+1);this._w=.25/v,this._x=(d-l)*v,this._y=(a-u)*v,this._z=(s-r)*v}else if(i>o&&i>h){const v=2*Math.sqrt(1+i-o-h);this._w=(d-l)/v,this._x=.25*v,this._y=(r+s)/v,this._z=(a+u)/v}else if(o>h){const v=2*Math.sqrt(1+o-i-h);this._w=(a-u)/v,this._x=(r+s)/v,this._y=.25*v,this._z=(l+d)/v}else{const v=2*Math.sqrt(1+h-i-o);this._w=(s-r)/v,this._x=(a+u)/v,this._y=(l+d)/v,this._z=.25*v}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let i=e.dot(t)+1;return iMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=i),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(ot(this.dot(e),-1,1)))}rotateTowards(e,t){const i=this.angleTo(e);if(i===0)return this;const r=Math.min(1,t/i);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const i=e._x,r=e._y,a=e._z,s=e._w,o=t._x,l=t._y,u=t._z,d=t._w;return this._x=i*d+s*o+r*u-a*l,this._y=r*d+s*l+a*o-i*u,this._z=a*d+s*u+i*l-r*o,this._w=s*d-i*o-r*l-a*u,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const i=this._x,r=this._y,a=this._z,s=this._w;let o=s*e._w+i*e._x+r*e._y+a*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=s,this._x=i,this._y=r,this._z=a,this;const l=1-o*o;if(l<=Number.EPSILON){const v=1-t;return this._w=v*s+t*this._w,this._x=v*i+t*this._x,this._y=v*r+t*this._y,this._z=v*a+t*this._z,this.normalize(),this}const u=Math.sqrt(l),d=Math.atan2(u,o),h=Math.sin((1-t)*d)/u,f=Math.sin(t*d)/u;return this._w=s*h+this._w*f,this._x=i*h+this._x*f,this._y=r*h+this._y*f,this._z=a*h+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,t,i){return this.copy(e).slerp(t,i)}random(){const e=Math.random(),t=Math.sqrt(1-e),i=Math.sqrt(e),r=2*Math.PI*Math.random(),a=2*Math.PI*Math.random();return this.set(t*Math.cos(r),i*Math.sin(a),i*Math.cos(a),t*Math.sin(r))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class k2{constructor(e=0,t=0,i=0){k2.prototype.isVector3=!0,this.x=e,this.y=t,this.z=i}set(e,t,i){return i===void 0&&(i=this.z),this.x=e,this.y=t,this.z=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(qv.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(qv.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,i=this.y,r=this.z,a=e.elements;return this.x=a[0]*t+a[3]*i+a[6]*r,this.y=a[1]*t+a[4]*i+a[7]*r,this.z=a[2]*t+a[5]*i+a[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,i=this.y,r=this.z,a=e.elements,s=1/(a[3]*t+a[7]*i+a[11]*r+a[15]);return this.x=(a[0]*t+a[4]*i+a[8]*r+a[12])*s,this.y=(a[1]*t+a[5]*i+a[9]*r+a[13])*s,this.z=(a[2]*t+a[6]*i+a[10]*r+a[14])*s,this}applyQuaternion(e){const t=this.x,i=this.y,r=this.z,a=e.x,s=e.y,o=e.z,l=e.w,u=2*(s*r-o*i),d=2*(o*t-a*r),h=2*(a*i-s*t);return this.x=t+l*u+s*h-o*d,this.y=i+l*d+o*u-a*h,this.z=r+l*h+a*d-s*u,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,i=this.y,r=this.z,a=e.elements;return this.x=a[0]*t+a[4]*i+a[8]*r,this.y=a[1]*t+a[5]*i+a[9]*r,this.z=a[2]*t+a[6]*i+a[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const i=e.x,r=e.y,a=e.z,s=t.x,o=t.y,l=t.z;return this.x=r*l-a*o,this.y=a*s-i*l,this.z=i*o-r*s,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const i=e.dot(this)/t;return this.copy(e).multiplyScalar(i)}projectOnPlane(e){return Dc.copy(this).projectOnVector(e),this.sub(Dc)}reflect(e){return this.sub(Dc.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(ot(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y,r=this.z-e.z;return t*t+i*i+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,i){const r=Math.sin(t)*e;return this.x=r*Math.sin(i),this.y=Math.cos(t)*e,this.z=r*Math.cos(i),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,i){return this.x=e*Math.sin(t),this.y=i,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=i,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,t=Math.random()*Math.PI*2,i=Math.sqrt(1-Oi(e,2));return this.x=i*Math.cos(t),this.y=i*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Dc=new k2,qv=new Z6;class F6{constructor(e=new k2(1/0,1/0,1/0),t=new k2(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,i=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,V6),V6.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,i;return e.normal.x>0?(t=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),t<=-e.constant&&i>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Ia),c7.subVectors(this.max,Ia),D8.subVectors(e.a,Ia),U8.subVectors(e.b,Ia),O8.subVectors(e.c,Ia),M5.subVectors(U8,D8),E5.subVectors(O8,U8),N9.subVectors(D8,O8);let t=[0,-M5.z,M5.y,0,-E5.z,E5.y,0,-N9.z,N9.y,M5.z,0,-M5.x,E5.z,0,-E5.x,N9.z,0,-N9.x,-M5.y,M5.x,0,-E5.y,E5.x,0,-N9.y,N9.x,0];return!Uc(t,D8,U8,O8,c7)||(t=[1,0,0,0,1,0,0,0,1],!Uc(t,D8,U8,O8,c7))?!1:(d7.crossVectors(M5,E5),t=[d7.x,d7.y,d7.z],Uc(t,D8,U8,O8,c7))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,V6).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(V6).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Bi[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Bi[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Bi[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Bi[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Bi[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Bi[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Bi[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Bi[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Bi),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Bi=[new k2,new k2,new k2,new k2,new k2,new k2,new k2,new k2],V6=new k2,u7=new F6,D8=new k2,U8=new k2,O8=new k2,M5=new k2,E5=new k2,N9=new k2,Ia=new k2,c7=new k2,d7=new k2,L9=new k2;function Uc(n,e,t,i,r){for(let a=0,s=n.length-3;a<=s;a+=3){L9.fromArray(n,a);const o=r.x*Math.abs(L9.x)+r.y*Math.abs(L9.y)+r.z*Math.abs(L9.z),l=e.dot(L9),u=t.dot(L9),d=i.dot(L9);if(Math.max(-Math.max(l,u,d),Math.min(l,u,d))>o)return!1}return!0}const kD=new F6,ka=new k2,Oc=new k2;class D6{constructor(e=new k2,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const i=this.center;t!==void 0?i.copy(t):kD.setFromPoints(e).getCenter(i);let r=0;for(let a=0,s=e.length;athis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;ka.subVectors(e,this.center);const t=ka.lengthSq();if(t>this.radius*this.radius){const i=Math.sqrt(t),r=(i-this.radius)*.5;this.center.addScaledVector(ka,r/i),this.radius+=r}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Oc.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(ka.copy(e.center).add(Oc)),this.expandByPoint(ka.copy(e.center).sub(Oc))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const zi=new k2,Bc=new k2,h7=new k2,P5=new k2,zc=new k2,f7=new k2,Gc=new k2;class Zr{constructor(e=new k2,t=new k2(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,zi)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const i=t.dot(this.direction);return i<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=zi.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(zi.copy(this.origin).addScaledVector(this.direction,t),zi.distanceToSquared(e))}distanceSqToSegment(e,t,i,r){Bc.copy(e).add(t).multiplyScalar(.5),h7.copy(t).sub(e).normalize(),P5.copy(this.origin).sub(Bc);const a=e.distanceTo(t)*.5,s=-this.direction.dot(h7),o=P5.dot(this.direction),l=-P5.dot(h7),u=P5.lengthSq(),d=Math.abs(1-s*s);let h,f,v,_;if(d>0)if(h=s*l-o,f=s*o-l,_=a*d,h>=0)if(f>=-_)if(f<=_){const b=1/d;h*=b,f*=b,v=h*(h+s*f+2*o)+f*(s*h+f+2*l)+u}else f=a,h=Math.max(0,-(s*f+o)),v=-h*h+f*(f+2*l)+u;else f=-a,h=Math.max(0,-(s*f+o)),v=-h*h+f*(f+2*l)+u;else f<=-_?(h=Math.max(0,-(-s*a+o)),f=h>0?-a:Math.min(Math.max(-a,-l),a),v=-h*h+f*(f+2*l)+u):f<=_?(h=0,f=Math.min(Math.max(-a,-l),a),v=f*(f+2*l)+u):(h=Math.max(0,-(s*a+o)),f=h>0?a:Math.min(Math.max(-a,-l),a),v=-h*h+f*(f+2*l)+u);else f=s>0?-a:a,h=Math.max(0,-(s*f+o)),v=-h*h+f*(f+2*l)+u;return i&&i.copy(this.origin).addScaledVector(this.direction,h),r&&r.copy(Bc).addScaledVector(h7,f),v}intersectSphere(e,t){zi.subVectors(e.center,this.origin);const i=zi.dot(this.direction),r=zi.dot(zi)-i*i,a=e.radius*e.radius;if(r>a)return null;const s=Math.sqrt(a-r),o=i-s,l=i+s;return l<0?null:o<0?this.at(l,t):this.at(o,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(e.normal)+e.constant)/t;return i>=0?i:null}intersectPlane(e,t){const i=this.distanceToPlane(e);return i===null?null:this.at(i,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let i,r,a,s,o,l;const u=1/this.direction.x,d=1/this.direction.y,h=1/this.direction.z,f=this.origin;return u>=0?(i=(e.min.x-f.x)*u,r=(e.max.x-f.x)*u):(i=(e.max.x-f.x)*u,r=(e.min.x-f.x)*u),d>=0?(a=(e.min.y-f.y)*d,s=(e.max.y-f.y)*d):(a=(e.max.y-f.y)*d,s=(e.min.y-f.y)*d),i>s||a>r||((a>i||isNaN(i))&&(i=a),(s=0?(o=(e.min.z-f.z)*h,l=(e.max.z-f.z)*h):(o=(e.max.z-f.z)*h,l=(e.min.z-f.z)*h),i>l||o>r)||((o>i||i!==i)&&(i=o),(l=0?i:r,t)}intersectsBox(e){return this.intersectBox(e,zi)!==null}intersectTriangle(e,t,i,r,a){zc.subVectors(t,e),f7.subVectors(i,e),Gc.crossVectors(zc,f7);let s=this.direction.dot(Gc),o;if(s>0){if(r)return null;o=1}else if(s<0)o=-1,s=-s;else return null;P5.subVectors(this.origin,e);const l=o*this.direction.dot(f7.crossVectors(P5,f7));if(l<0)return null;const u=o*this.direction.dot(zc.cross(P5));if(u<0||l+u>s)return null;const d=-o*P5.dot(Gc);return d<0?null:this.at(d/s,a)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class o0{constructor(e,t,i,r,a,s,o,l,u,d,h,f,v,_,b,y){o0.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,i,r,a,s,o,l,u,d,h,f,v,_,b,y)}set(e,t,i,r,a,s,o,l,u,d,h,f,v,_,b,y){const w=this.elements;return w[0]=e,w[4]=t,w[8]=i,w[12]=r,w[1]=a,w[5]=s,w[9]=o,w[13]=l,w[2]=u,w[6]=d,w[10]=h,w[14]=f,w[3]=v,w[7]=_,w[11]=b,w[15]=y,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new o0().fromArray(this.elements)}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],this}copyPosition(e){const t=this.elements,i=e.elements;return t[12]=i[12],t[13]=i[13],t[14]=i[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,i){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(e,t,i){return this.set(e.x,t.x,i.x,0,e.y,t.y,i.y,0,e.z,t.z,i.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,i=e.elements,r=1/B8.setFromMatrixColumn(e,0).length(),a=1/B8.setFromMatrixColumn(e,1).length(),s=1/B8.setFromMatrixColumn(e,2).length();return t[0]=i[0]*r,t[1]=i[1]*r,t[2]=i[2]*r,t[3]=0,t[4]=i[4]*a,t[5]=i[5]*a,t[6]=i[6]*a,t[7]=0,t[8]=i[8]*s,t[9]=i[9]*s,t[10]=i[10]*s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,i=e.x,r=e.y,a=e.z,s=Math.cos(i),o=Math.sin(i),l=Math.cos(r),u=Math.sin(r),d=Math.cos(a),h=Math.sin(a);if(e.order==="XYZ"){const f=s*d,v=s*h,_=o*d,b=o*h;t[0]=l*d,t[4]=-l*h,t[8]=u,t[1]=v+_*u,t[5]=f-b*u,t[9]=-o*l,t[2]=b-f*u,t[6]=_+v*u,t[10]=s*l}else if(e.order==="YXZ"){const f=l*d,v=l*h,_=u*d,b=u*h;t[0]=f+b*o,t[4]=_*o-v,t[8]=s*u,t[1]=s*h,t[5]=s*d,t[9]=-o,t[2]=v*o-_,t[6]=b+f*o,t[10]=s*l}else if(e.order==="ZXY"){const f=l*d,v=l*h,_=u*d,b=u*h;t[0]=f-b*o,t[4]=-s*h,t[8]=_+v*o,t[1]=v+_*o,t[5]=s*d,t[9]=b-f*o,t[2]=-s*u,t[6]=o,t[10]=s*l}else if(e.order==="ZYX"){const f=s*d,v=s*h,_=o*d,b=o*h;t[0]=l*d,t[4]=_*u-v,t[8]=f*u+b,t[1]=l*h,t[5]=b*u+f,t[9]=v*u-_,t[2]=-u,t[6]=o*l,t[10]=s*l}else if(e.order==="YZX"){const f=s*l,v=s*u,_=o*l,b=o*u;t[0]=l*d,t[4]=b-f*h,t[8]=_*h+v,t[1]=h,t[5]=s*d,t[9]=-o*d,t[2]=-u*d,t[6]=v*h+_,t[10]=f-b*h}else if(e.order==="XZY"){const f=s*l,v=s*u,_=o*l,b=o*u;t[0]=l*d,t[4]=-h,t[8]=u*d,t[1]=f*h+b,t[5]=s*d,t[9]=v*h-_,t[2]=_*h-v,t[6]=o*d,t[10]=b*h+f}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(FD,e,DD)}lookAt(e,t,i){const r=this.elements;return Wn.subVectors(e,t),Wn.lengthSq()===0&&(Wn.z=1),Wn.normalize(),R5.crossVectors(i,Wn),R5.lengthSq()===0&&(Math.abs(i.z)===1?Wn.x+=1e-4:Wn.z+=1e-4,Wn.normalize(),R5.crossVectors(i,Wn)),R5.normalize(),p7.crossVectors(Wn,R5),r[0]=R5.x,r[4]=p7.x,r[8]=Wn.x,r[1]=R5.y,r[5]=p7.y,r[9]=Wn.y,r[2]=R5.z,r[6]=p7.z,r[10]=Wn.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,r=t.elements,a=this.elements,s=i[0],o=i[4],l=i[8],u=i[12],d=i[1],h=i[5],f=i[9],v=i[13],_=i[2],b=i[6],y=i[10],w=i[14],U=i[3],P=i[7],O=i[11],j=i[15],q=r[0],K=r[4],c2=r[8],S2=r[12],H=r[1],Z=r[5],G2=r[9],q2=r[13],C2=r[2],E2=r[6],A2=r[10],X2=r[14],b2=r[3],J=r[7],p2=r[11],N2=r[15];return a[0]=s*q+o*H+l*C2+u*b2,a[4]=s*K+o*Z+l*E2+u*J,a[8]=s*c2+o*G2+l*A2+u*p2,a[12]=s*S2+o*q2+l*X2+u*N2,a[1]=d*q+h*H+f*C2+v*b2,a[5]=d*K+h*Z+f*E2+v*J,a[9]=d*c2+h*G2+f*A2+v*p2,a[13]=d*S2+h*q2+f*X2+v*N2,a[2]=_*q+b*H+y*C2+w*b2,a[6]=_*K+b*Z+y*E2+w*J,a[10]=_*c2+b*G2+y*A2+w*p2,a[14]=_*S2+b*q2+y*X2+w*N2,a[3]=U*q+P*H+O*C2+j*b2,a[7]=U*K+P*Z+O*E2+j*J,a[11]=U*c2+P*G2+O*A2+j*p2,a[15]=U*S2+P*q2+O*X2+j*N2,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[4],r=e[8],a=e[12],s=e[1],o=e[5],l=e[9],u=e[13],d=e[2],h=e[6],f=e[10],v=e[14],_=e[3],b=e[7],y=e[11],w=e[15];return _*(+a*l*h-r*u*h-a*o*f+i*u*f+r*o*v-i*l*v)+b*(+t*l*v-t*u*f+a*s*f-r*s*v+r*u*d-a*l*d)+y*(+t*u*h-t*o*v-a*s*h+i*s*v+a*o*d-i*u*d)+w*(-r*o*d-t*l*h+t*o*f+r*s*h-i*s*f+i*l*d)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,i){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=i),this}invert(){const e=this.elements,t=e[0],i=e[1],r=e[2],a=e[3],s=e[4],o=e[5],l=e[6],u=e[7],d=e[8],h=e[9],f=e[10],v=e[11],_=e[12],b=e[13],y=e[14],w=e[15],U=h*y*u-b*f*u+b*l*v-o*y*v-h*l*w+o*f*w,P=_*f*u-d*y*u-_*l*v+s*y*v+d*l*w-s*f*w,O=d*b*u-_*h*u+_*o*v-s*b*v-d*o*w+s*h*w,j=_*h*l-d*b*l-_*o*f+s*b*f+d*o*y-s*h*y,q=t*U+i*P+r*O+a*j;if(q===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const K=1/q;return e[0]=U*K,e[1]=(b*f*a-h*y*a-b*r*v+i*y*v+h*r*w-i*f*w)*K,e[2]=(o*y*a-b*l*a+b*r*u-i*y*u-o*r*w+i*l*w)*K,e[3]=(h*l*a-o*f*a-h*r*u+i*f*u+o*r*v-i*l*v)*K,e[4]=P*K,e[5]=(d*y*a-_*f*a+_*r*v-t*y*v-d*r*w+t*f*w)*K,e[6]=(_*l*a-s*y*a-_*r*u+t*y*u+s*r*w-t*l*w)*K,e[7]=(s*f*a-d*l*a+d*r*u-t*f*u-s*r*v+t*l*v)*K,e[8]=O*K,e[9]=(_*h*a-d*b*a-_*i*v+t*b*v+d*i*w-t*h*w)*K,e[10]=(s*b*a-_*o*a+_*i*u-t*b*u-s*i*w+t*o*w)*K,e[11]=(d*o*a-s*h*a-d*i*u+t*h*u+s*i*v-t*o*v)*K,e[12]=j*K,e[13]=(d*b*r-_*h*r+_*i*f-t*b*f-d*i*y+t*h*y)*K,e[14]=(_*o*r-s*b*r-_*i*l+t*b*l+s*i*y-t*o*y)*K,e[15]=(s*h*r-d*o*r+d*i*l-t*h*l-s*i*f+t*o*f)*K,this}scale(e){const t=this.elements,i=e.x,r=e.y,a=e.z;return t[0]*=i,t[4]*=r,t[8]*=a,t[1]*=i,t[5]*=r,t[9]*=a,t[2]*=i,t[6]*=r,t[10]*=a,t[3]*=i,t[7]*=r,t[11]*=a,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,i,r))}makeTranslation(e,t,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,i,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,t,-i,0,0,i,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,0,i,0,0,1,0,0,-i,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,0,i,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const i=Math.cos(t),r=Math.sin(t),a=1-i,s=e.x,o=e.y,l=e.z,u=a*s,d=a*o;return this.set(u*s+i,u*o-r*l,u*l+r*o,0,u*o+r*l,d*o+i,d*l-r*s,0,u*l-r*o,d*l+r*s,a*l*l+i,0,0,0,0,1),this}makeScale(e,t,i){return this.set(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1),this}makeShear(e,t,i,r,a,s){return this.set(1,i,a,0,e,1,s,0,t,r,1,0,0,0,0,1),this}compose(e,t,i){const r=this.elements,a=t._x,s=t._y,o=t._z,l=t._w,u=a+a,d=s+s,h=o+o,f=a*u,v=a*d,_=a*h,b=s*d,y=s*h,w=o*h,U=l*u,P=l*d,O=l*h,j=i.x,q=i.y,K=i.z;return r[0]=(1-(b+w))*j,r[1]=(v+O)*j,r[2]=(_-P)*j,r[3]=0,r[4]=(v-O)*q,r[5]=(1-(f+w))*q,r[6]=(y+U)*q,r[7]=0,r[8]=(_+P)*K,r[9]=(y-U)*K,r[10]=(1-(f+b))*K,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,i){const r=this.elements;let a=B8.set(r[0],r[1],r[2]).length();const s=B8.set(r[4],r[5],r[6]).length(),o=B8.set(r[8],r[9],r[10]).length();this.determinant()<0&&(a=-a),e.x=r[12],e.y=r[13],e.z=r[14],H6.copy(this);const u=1/a,d=1/s,h=1/o;return H6.elements[0]*=u,H6.elements[1]*=u,H6.elements[2]*=u,H6.elements[4]*=d,H6.elements[5]*=d,H6.elements[6]*=d,H6.elements[8]*=h,H6.elements[9]*=h,H6.elements[10]*=h,t.setFromRotationMatrix(H6),i.x=a,i.y=s,i.z=o,this}makePerspective(e,t,i,r,a,s,o=Qi){const l=this.elements,u=2*a/(t-e),d=2*a/(i-r),h=(t+e)/(t-e),f=(i+r)/(i-r);let v,_;if(o===Qi)v=-(s+a)/(s-a),_=-2*s*a/(s-a);else if(o===$o)v=-s/(s-a),_=-s*a/(s-a);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);return l[0]=u,l[4]=0,l[8]=h,l[12]=0,l[1]=0,l[5]=d,l[9]=f,l[13]=0,l[2]=0,l[6]=0,l[10]=v,l[14]=_,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,i,r,a,s,o=Qi){const l=this.elements,u=1/(t-e),d=1/(i-r),h=1/(s-a),f=(t+e)*u,v=(i+r)*d;let _,b;if(o===Qi)_=(s+a)*h,b=-2*h;else if(o===$o)_=a*h,b=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);return l[0]=2*u,l[4]=0,l[8]=0,l[12]=-f,l[1]=0,l[5]=2*d,l[9]=0,l[13]=-v,l[2]=0,l[6]=0,l[10]=b,l[14]=-_,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,i=e.elements;for(let r=0;r<16;r++)if(t[r]!==i[r])return!1;return!0}fromArray(e,t=0){for(let i=0;i<16;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e[t+9]=i[9],e[t+10]=i[10],e[t+11]=i[11],e[t+12]=i[12],e[t+13]=i[13],e[t+14]=i[14],e[t+15]=i[15],e}}const B8=new k2,H6=new o0,FD=new k2(0,0,0),DD=new k2(1,1,1),R5=new k2,p7=new k2,Wn=new k2,Kv=new o0,Xv=new Z6;class Nl{constructor(e=0,t=0,i=0,r=Nl.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=i,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,i,r=this._order){return this._x=e,this._y=t,this._z=i,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,i=!0){const r=e.elements,a=r[0],s=r[4],o=r[8],l=r[1],u=r[5],d=r[9],h=r[2],f=r[6],v=r[10];switch(t){case"XYZ":this._y=Math.asin(ot(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-d,v),this._z=Math.atan2(-s,a)):(this._x=Math.atan2(f,u),this._z=0);break;case"YXZ":this._x=Math.asin(-ot(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(o,v),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-h,a),this._z=0);break;case"ZXY":this._x=Math.asin(ot(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-h,v),this._z=Math.atan2(-s,u)):(this._y=0,this._z=Math.atan2(l,a));break;case"ZYX":this._y=Math.asin(-ot(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(f,v),this._z=Math.atan2(l,a)):(this._x=0,this._z=Math.atan2(-s,u));break;case"YZX":this._z=Math.asin(ot(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-d,u),this._y=Math.atan2(-h,a)):(this._x=0,this._y=Math.atan2(o,v));break;case"XZY":this._z=Math.asin(-ot(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(f,u),this._y=Math.atan2(o,a)):(this._x=Math.atan2(-d,v),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,i===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,i){return Kv.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Kv,t,i)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return Xv.setFromEuler(this),this.setFromQuaternion(Xv,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Nl.DEFAULT_ORDER="XYZ";class _f{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let i=0;i0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.bounds=this._bounds.map(o=>({boxInitialized:o.boxInitialized,boxMin:o.box.min.toArray(),boxMax:o.box.max.toArray(),sphereInitialized:o.sphereInitialized,sphereRadius:o.sphere.radius,sphereCenter:o.sphere.center.toArray()})),r.maxGeometryCount=this._maxGeometryCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),this.boundingBox!==null&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()}));function a(o,l){return o[l.uuid]===void 0&&(o[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=a(e.geometries,this.geometry);const o=this.geometry.parameters;if(o!==void 0&&o.shapes!==void 0){const l=o.shapes;if(Array.isArray(l))for(let u=0,d=l.length;u0){r.children=[];for(let o=0;o0){r.animations=[];for(let o=0;o0&&(i.geometries=o),l.length>0&&(i.materials=l),u.length>0&&(i.textures=u),d.length>0&&(i.images=d),h.length>0&&(i.shapes=h),f.length>0&&(i.skeletons=f),v.length>0&&(i.animations=v),_.length>0&&(i.nodes=_)}return i.object=r,i;function s(o){const l=[];for(const u in o){const d=o[u];delete d.metadata,l.push(d)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let i=0;i0?r.multiplyScalar(1/Math.sqrt(a)):r.set(0,0,0)}static getBarycoord(e,t,i,r,a){j6.subVectors(r,t),Vi.subVectors(i,t),Vc.subVectors(e,t);const s=j6.dot(j6),o=j6.dot(Vi),l=j6.dot(Vc),u=Vi.dot(Vi),d=Vi.dot(Vc),h=s*u-o*o;if(h===0)return a.set(0,0,0),null;const f=1/h,v=(u*l-o*d)*f,_=(s*d-o*l)*f;return a.set(1-v-_,_,v)}static containsPoint(e,t,i,r){return this.getBarycoord(e,t,i,r,Hi)===null?!1:Hi.x>=0&&Hi.y>=0&&Hi.x+Hi.y<=1}static getInterpolation(e,t,i,r,a,s,o,l){return this.getBarycoord(e,t,i,r,Hi)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(a,Hi.x),l.addScaledVector(s,Hi.y),l.addScaledVector(o,Hi.z),l)}static isFrontFacing(e,t,i,r){return j6.subVectors(i,t),Vi.subVectors(e,t),j6.cross(Vi).dot(r)<0}set(e,t,i){return this.a.copy(e),this.b.copy(t),this.c.copy(i),this}setFromPointsAndIndices(e,t,i,r){return this.a.copy(e[t]),this.b.copy(e[i]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,i,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return j6.subVectors(this.c,this.b),Vi.subVectors(this.a,this.b),j6.cross(Vi).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Y6.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Y6.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,i,r,a){return Y6.getInterpolation(e,this.a,this.b,this.c,t,i,r,a)}containsPoint(e){return Y6.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Y6.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const i=this.a,r=this.b,a=this.c;let s,o;G8.subVectors(r,i),V8.subVectors(a,i),Hc.subVectors(e,i);const l=G8.dot(Hc),u=V8.dot(Hc);if(l<=0&&u<=0)return t.copy(i);jc.subVectors(e,r);const d=G8.dot(jc),h=V8.dot(jc);if(d>=0&&h<=d)return t.copy(r);const f=l*h-d*u;if(f<=0&&l>=0&&d<=0)return s=l/(l-d),t.copy(i).addScaledVector(G8,s);Wc.subVectors(e,a);const v=G8.dot(Wc),_=V8.dot(Wc);if(_>=0&&v<=_)return t.copy(a);const b=v*u-l*_;if(b<=0&&u>=0&&_<=0)return o=u/(u-_),t.copy(i).addScaledVector(V8,o);const y=d*_-v*h;if(y<=0&&h-d>=0&&v-_>=0)return ty.subVectors(a,r),o=(h-d)/(h-d+(v-_)),t.copy(r).addScaledVector(ty,o);const w=1/(y+b+f);return s=b*w,o=f*w,t.copy(i).addScaledVector(G8,s).addScaledVector(V8,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const IT={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},N5={h:0,s:0,l:0},g7={h:0,s:0,l:0};function $c(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class R1{constructor(e,t,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,i)}set(e,t,i){if(t===void 0&&i===void 0){const r=e;r&&r.isColor?this.copy(r):typeof r=="number"?this.setHex(r):typeof r=="string"&&this.setStyle(r)}else this.setRGB(e,t,i);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=J0){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,X0.toWorkingColorSpace(this,t),this}setRGB(e,t,i,r=X0.workingColorSpace){return this.r=e,this.g=t,this.b=i,X0.toWorkingColorSpace(this,r),this}setHSL(e,t,i,r=X0.workingColorSpace){if(e=vf(e,1),t=ot(t,0,1),i=ot(i,0,1),t===0)this.r=this.g=this.b=i;else{const a=i<=.5?i*(1+t):i+t-i*t,s=2*i-a;this.r=$c(s,a,e+1/3),this.g=$c(s,a,e),this.b=$c(s,a,e-1/3)}return X0.toWorkingColorSpace(this,r),this}setStyle(e,t=J0){function i(a){a!==void 0&&parseFloat(a)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let a;const s=r[1],o=r[2];switch(s){case"rgb":case"rgba":if(a=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(a[4]),this.setRGB(Math.min(255,parseInt(a[1],10))/255,Math.min(255,parseInt(a[2],10))/255,Math.min(255,parseInt(a[3],10))/255,t);if(a=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(a[4]),this.setRGB(Math.min(100,parseInt(a[1],10))/100,Math.min(100,parseInt(a[2],10))/100,Math.min(100,parseInt(a[3],10))/100,t);break;case"hsl":case"hsla":if(a=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(a[4]),this.setHSL(parseFloat(a[1])/360,parseFloat(a[2])/100,parseFloat(a[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const a=r[1],s=a.length;if(s===3)return this.setRGB(parseInt(a.charAt(0),16)/15,parseInt(a.charAt(1),16)/15,parseInt(a.charAt(2),16)/15,t);if(s===6)return this.setHex(parseInt(a,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=J0){const i=IT[e.toLowerCase()];return i!==void 0?this.setHex(i,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=wr(e.r),this.g=wr(e.g),this.b=wr(e.b),this}copyLinearToSRGB(e){return this.r=kc(e.r),this.g=kc(e.g),this.b=kc(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=J0){return X0.fromWorkingColorSpace(Gt.copy(this),e),Math.round(ot(Gt.r*255,0,255))*65536+Math.round(ot(Gt.g*255,0,255))*256+Math.round(ot(Gt.b*255,0,255))}getHexString(e=J0){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=X0.workingColorSpace){X0.fromWorkingColorSpace(Gt.copy(this),t);const i=Gt.r,r=Gt.g,a=Gt.b,s=Math.max(i,r,a),o=Math.min(i,r,a);let l,u;const d=(o+s)/2;if(o===s)l=0,u=0;else{const h=s-o;switch(u=d<=.5?h/(s+o):h/(2-s-o),s){case i:l=(r-a)/h+(r0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const i=e[t];if(i===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const r=this[t];if(r===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(i):r&&r.isVector3&&i&&i.isVector3?r.copy(i):this[t]=i}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==e8&&(i.blending=this.blending),this.side!==n5&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==eh&&(i.blendSrc=this.blendSrc),this.blendDst!==th&&(i.blendDst=this.blendDst),this.blendEquation!==O5&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==Go&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==Vv&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==k8&&(i.stencilFail=this.stencilFail),this.stencilZFail!==k8&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==k8&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function r(a){const s=[];for(const o in a){const l=a[o];delete l.metadata,s.push(l)}return s}if(t){const a=r(e.textures),s=r(e.images);a.length>0&&(i.textures=a),s.length>0&&(i.images=s)}return i}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let i=null;if(t!==null){const r=t.length;i=new Array(r);for(let a=0;a!==r;++a)i[a]=t[a].clone()}return this.clippingPlanes=i,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class V0 extends R6{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new R1(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=ff,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const tt=new k2,v7=new F3;class Ue{constructor(e,t,i=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=i,this.usage=sh,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=fi,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return r8("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,i){e*=this.itemSize,i*=t.itemSize;for(let r=0,a=this.itemSize;r0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const u in l)l[u]!==void 0&&(e[u]=l[u]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const i=this.attributes;for(const l in i){const u=i[l];e.data.attributes[l]=u.toJSON(e.data)}const r={};let a=!1;for(const l in this.morphAttributes){const u=this.morphAttributes[l],d=[];for(let h=0,f=u.length;h0&&(r[l]=d,a=!0)}a&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(e.data.groups=JSON.parse(JSON.stringify(s)));const o=this.boundingSphere;return o!==null&&(e.data.boundingSphere={center:o.center.toArray(),radius:o.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const i=e.index;i!==null&&this.setIndex(i.clone(t));const r=e.attributes;for(const u in r){const d=r[u];this.setAttribute(u,d.clone(t))}const a=e.morphAttributes;for(const u in a){const d=[],h=a[u];for(let f=0,v=h.length;f0){const r=t[i[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,s=r.length;aOi(e.far-e.near,2)))&&(ny.copy(a).invert(),I9.copy(e.ray).applyMatrix4(ny),!(i.boundingBox!==null&&I9.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(e,t,I9)))}_computeIntersections(e,t,i){let r;const a=this.geometry,s=this.material,o=a.index,l=a.attributes.position,u=a.attributes.uv,d=a.attributes.uv1,h=a.attributes.normal,f=a.groups,v=a.drawRange;if(o!==null)if(Array.isArray(s))for(let _=0,b=f.length;_t.far?null:{distance:u,point:x7.clone(),object:n}}function A7(n,e,t,i,r,a,s,o,l,u){n.getVertexPosition(o,j8),n.getVertexPosition(l,W8),n.getVertexPosition(u,$8);const d=jD(n,e,t,i,j8,W8,$8,w7);if(d){r&&(S7.fromBufferAttribute(r,o),b7.fromBufferAttribute(r,l),T7.fromBufferAttribute(r,u),d.uv=Y6.getInterpolation(w7,j8,W8,$8,S7,b7,T7,new F3)),a&&(S7.fromBufferAttribute(a,o),b7.fromBufferAttribute(a,l),T7.fromBufferAttribute(a,u),d.uv1=Y6.getInterpolation(w7,j8,W8,$8,S7,b7,T7,new F3),d.uv2=d.uv1),s&&(ry.fromBufferAttribute(s,o),ay.fromBufferAttribute(s,l),sy.fromBufferAttribute(s,u),d.normal=Y6.getInterpolation(w7,j8,W8,$8,ry,ay,sy,new k2),d.normal.dot(i.direction)>0&&d.normal.multiplyScalar(-1));const h={a:o,b:l,c:u,normal:new k2,materialIndex:0};Y6.getNormal(j8,W8,$8,h.normal),d.face=h}return d}class Qr extends se{constructor(e=1,t=1,i=1,r=1,a=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:i,widthSegments:r,heightSegments:a,depthSegments:s};const o=this;r=Math.floor(r),a=Math.floor(a),s=Math.floor(s);const l=[],u=[],d=[],h=[];let f=0,v=0;_("z","y","x",-1,-1,i,t,e,s,a,0),_("z","y","x",1,-1,i,t,-e,s,a,1),_("x","z","y",1,1,e,i,t,r,s,2),_("x","z","y",1,-1,e,i,-t,r,s,3),_("x","y","z",1,-1,e,t,i,r,a,4),_("x","y","z",-1,-1,e,t,-i,r,a,5),this.setIndex(l),this.setAttribute("position",new Ee(u,3)),this.setAttribute("normal",new Ee(d,3)),this.setAttribute("uv",new Ee(h,2));function _(b,y,w,U,P,O,j,q,K,c2,S2){const H=O/K,Z=j/c2,G2=O/2,q2=j/2,C2=q/2,E2=K+1,A2=c2+1;let X2=0,b2=0;const J=new k2;for(let p2=0;p20?1:-1,d.push(J.x,J.y,J.z),h.push(e3/K),h.push(1-p2/c2),X2+=1}}for(let p2=0;p2>8&255]+zt[n>>16&255]+zt[n>>24&255]+"-"+zt[e&255]+zt[e>>8&255]+"-"+zt[e>>16&15|64]+zt[e>>24&255]+"-"+zt[t&63|128]+zt[t>>8&255]+"-"+zt[t>>16&255]+zt[t>>24&255]+zt[i&255]+zt[i>>8&255]+zt[i>>16&255]+zt[i>>24&255]).toLowerCase()}function ot(n,e,t){return Math.max(e,Math.min(t,n))}function Sf(n,e){return(n%e+e)%e}function vD(n,e,t,i,r){return i+(n-e)*(r-i)/(t-e)}function yD(n,e,t){return n!==e?(t-n)/(e-n):0}function l4(n,e,t){return(1-t)*n+t*e}function _D(n,e,t,i){return l4(n,e,1-Math.exp(-t*i))}function SD(n,e=1){return e-Math.abs(Sf(n,e*2)-e)}function bD(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function TD(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function wD(n,e){return n+Math.floor(Math.random()*(e-n+1))}function xD(n,e){return n+Math.random()*(e-n)}function AD(n){return n*(.5-Math.random())}function CD(n){n!==void 0&&(Yv=n);let e=Yv+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function MD(n){return n*o4}function ED(n){return n*Hr}function dh(n){return(n&n-1)===0&&n!==0}function PD(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function Xo(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function RD(n,e,t,i,r){const a=Math.cos,s=Math.sin,o=a(t/2),l=s(t/2),u=a((e+i)/2),d=s((e+i)/2),h=a((e-i)/2),f=s((e-i)/2),v=a((i-e)/2),_=s((i-e)/2);switch(r){case"XYX":n.set(o*d,l*h,l*f,o*u);break;case"YZY":n.set(l*f,o*d,l*h,o*u);break;case"ZXZ":n.set(l*h,l*f,o*d,o*u);break;case"XZX":n.set(o*d,l*_,l*v,o*u);break;case"YXY":n.set(l*v,o*d,l*_,o*u);break;case"ZYZ":n.set(l*_,l*v,o*d,o*u);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}function $6(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function te(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const bf={DEG2RAD:o4,RAD2DEG:Hr,generateUUID:P6,clamp:ot,euclideanModulo:Sf,mapLinear:vD,inverseLerp:yD,lerp:l4,damp:_D,pingpong:SD,smoothstep:bD,smootherstep:TD,randInt:wD,randFloat:xD,randFloatSpread:AD,seededRandom:CD,degToRad:MD,radToDeg:ED,isPowerOfTwo:dh,ceilPowerOfTwo:PD,floorPowerOfTwo:Xo,setQuaternionFromProperEuler:RD,normalize:te,denormalize:$6};class F3{constructor(e=0,t=0){F3.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,i=this.y,r=e.elements;return this.x=r[0]*t+r[3]*i+r[6],this.y=r[1]*t+r[4]*i+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(ot(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y;return t*t+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const i=Math.cos(t),r=Math.sin(t),a=this.x-e.x,s=this.y-e.y;return this.x=a*i-s*r+e.x,this.y=a*r+s*i+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class w0{constructor(e,t,i,r,a,s,o,l,u){w0.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,i,r,a,s,o,l,u)}set(e,t,i,r,a,s,o,l,u){const d=this.elements;return d[0]=e,d[1]=r,d[2]=o,d[3]=t,d[4]=a,d[5]=l,d[6]=i,d[7]=s,d[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],this}extractBasis(e,t,i){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,r=t.elements,a=this.elements,s=i[0],o=i[3],l=i[6],u=i[1],d=i[4],h=i[7],f=i[2],v=i[5],_=i[8],b=r[0],y=r[3],w=r[6],D=r[1],R=r[4],U=r[7],j=r[2],q=r[5],K=r[8];return a[0]=s*b+o*D+l*j,a[3]=s*y+o*R+l*q,a[6]=s*w+o*U+l*K,a[1]=u*b+d*D+h*j,a[4]=u*y+d*R+h*q,a[7]=u*w+d*U+h*K,a[2]=f*b+v*D+_*j,a[5]=f*y+v*R+_*q,a[8]=f*w+v*U+_*K,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[1],r=e[2],a=e[3],s=e[4],o=e[5],l=e[6],u=e[7],d=e[8];return t*s*d-t*o*u-i*a*d+i*o*l+r*a*u-r*s*l}invert(){const e=this.elements,t=e[0],i=e[1],r=e[2],a=e[3],s=e[4],o=e[5],l=e[6],u=e[7],d=e[8],h=d*s-o*u,f=o*l-d*a,v=u*a-s*l,_=t*h+i*f+r*v;if(_===0)return this.set(0,0,0,0,0,0,0,0,0);const b=1/_;return e[0]=h*b,e[1]=(r*u-d*i)*b,e[2]=(o*i-r*s)*b,e[3]=f*b,e[4]=(d*t-r*l)*b,e[5]=(r*a-o*t)*b,e[6]=v*b,e[7]=(i*l-u*t)*b,e[8]=(s*t-i*a)*b,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,i,r,a,s,o){const l=Math.cos(a),u=Math.sin(a);return this.set(i*l,i*u,-i*(l*s+u*o)+s+e,-r*u,r*l,-r*(-u*s+l*o)+o+t,0,0,1),this}scale(e,t){return this.premultiply(Dc.makeScale(e,t)),this}rotate(e){return this.premultiply(Dc.makeRotation(-e)),this}translate(e,t){return this.premultiply(Dc.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,i,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,i=e.elements;for(let r=0;r<9;r++)if(t[r]!==i[r])return!1;return!0}fromArray(e,t=0){for(let i=0;i<9;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const Dc=new w0;function LT(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function N4(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function ND(){const n=N4("canvas");return n.style.display="block",n}const qv={};function a8(n){n in qv||(qv[n]=!0,console.warn(n))}const Kv=new w0().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Xv=new w0().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),c7={[mt]:{transfer:$o,primaries:Yo,toReference:n=>n,fromReference:n=>n},[J0]:{transfer:Ce,primaries:Yo,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[Il]:{transfer:$o,primaries:qo,toReference:n=>n.applyMatrix3(Xv),fromReference:n=>n.applyMatrix3(Kv)},[_f]:{transfer:Ce,primaries:qo,toReference:n=>n.convertSRGBToLinear().applyMatrix3(Xv),fromReference:n=>n.applyMatrix3(Kv).convertLinearToSRGB()}},LD=new Set([mt,Il]),X0={enabled:!0,_workingColorSpace:mt,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!LD.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,e,t){if(this.enabled===!1||e===t||!e||!t)return n;const i=c7[e].toReference,r=c7[t].fromReference;return r(i(n))},fromWorkingColorSpace:function(n,e){return this.convert(n,this._workingColorSpace,e)},toWorkingColorSpace:function(n,e){return this.convert(n,e,this._workingColorSpace)},getPrimaries:function(n){return c7[n].primaries},getTransfer:function(n){return n===C6?$o:c7[n].transfer}};function Ar(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function Uc(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let D8;class IT{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement=="undefined")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{D8===void 0&&(D8=N4("canvas")),D8.width=e.width,D8.height=e.height;const i=D8.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),t=D8}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement!="undefined"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement!="undefined"&&e instanceof HTMLCanvasElement||typeof ImageBitmap!="undefined"&&e instanceof ImageBitmap){const t=N4("canvas");t.width=e.width,t.height=e.height;const i=t.getContext("2d");i.drawImage(e,0,0,e.width,e.height);const r=i.getImageData(0,0,e.width,e.height),a=r.data;for(let s=0;s0&&(i.userData=this.userData),t||(e.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==bT)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case wt:e.x=e.x-Math.floor(e.x);break;case Yt:e.x=e.x<0?0:1;break;case Wo:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case wt:e.y=e.y-Math.floor(e.y);break;case Yt:e.y=e.y<0?0:1;break;case Wo:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return a8("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===J0?r8:RT}set encoding(e){a8("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===r8?J0:C6}}pt.DEFAULT_IMAGE=null;pt.DEFAULT_MAPPING=bT;pt.DEFAULT_ANISOTROPY=1;class H0{constructor(e=0,t=0,i=0,r=1){H0.prototype.isVector4=!0,this.x=e,this.y=t,this.z=i,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,i,r){return this.x=e,this.y=t,this.z=i,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,i=this.y,r=this.z,a=this.w,s=e.elements;return this.x=s[0]*t+s[4]*i+s[8]*r+s[12]*a,this.y=s[1]*t+s[5]*i+s[9]*r+s[13]*a,this.z=s[2]*t+s[6]*i+s[10]*r+s[14]*a,this.w=s[3]*t+s[7]*i+s[11]*r+s[15]*a,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,i,r,a;const l=e.elements,u=l[0],d=l[4],h=l[8],f=l[1],v=l[5],_=l[9],b=l[2],y=l[6],w=l[10];if(Math.abs(d-f)<.01&&Math.abs(h-b)<.01&&Math.abs(_-y)<.01){if(Math.abs(d+f)<.1&&Math.abs(h+b)<.1&&Math.abs(_+y)<.1&&Math.abs(u+v+w-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const R=(u+1)/2,U=(v+1)/2,j=(w+1)/2,q=(d+f)/4,K=(h+b)/4,c2=(_+y)/4;return R>U&&R>j?R<.01?(i=0,r=.707106781,a=.707106781):(i=Math.sqrt(R),r=q/i,a=K/i):U>j?U<.01?(i=.707106781,r=0,a=.707106781):(r=Math.sqrt(U),i=q/r,a=c2/r):j<.01?(i=.707106781,r=.707106781,a=0):(a=Math.sqrt(j),i=K/a,r=c2/a),this.set(i,r,a,t),this}let D=Math.sqrt((y-_)*(y-_)+(h-b)*(h-b)+(f-d)*(f-d));return Math.abs(D)<.001&&(D=1),this.x=(y-_)/D,this.y=(h-b)/D,this.z=(f-d)/D,this.w=Math.acos((u+v+w-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this.w=e.w+(t.w-e.w)*i,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class FD extends p8{constructor(e=1,t=1,i={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new H0(0,0,e,t),this.scissorTest=!1,this.viewport=new H0(0,0,e,t);const r={width:e,height:t,depth:1};i.encoding!==void 0&&(a8("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),i.colorSpace=i.encoding===r8?J0:C6),i=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:at,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},i),this.texture=new pt(r,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=i.generateMipmaps,this.texture.internalFormat=i.internalFormat,this.depthBuffer=i.depthBuffer,this.stencilBuffer=i.stencilBuffer,this.depthTexture=i.depthTexture,this.samples=i.samples}setSize(e,t,i=1){(this.width!==e||this.height!==t||this.depth!==i)&&(this.width=e,this.height=t,this.depth=i,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=i,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new kT(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class o8 extends FD{constructor(e=1,t=1,i={}){super(e,t,i),this.isWebGLRenderTarget=!0}}class FT extends pt{constructor(e=null,t=1,i=1,r=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:i,depth:r},this.magFilter=ht,this.minFilter=ht,this.wrapR=Yt,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class DD extends pt{constructor(e=null,t=1,i=1,r=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:i,depth:r},this.magFilter=ht,this.minFilter=ht,this.wrapR=Yt,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Z6{constructor(e=0,t=0,i=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=i,this._w=r}static slerpFlat(e,t,i,r,a,s,o){let l=i[r+0],u=i[r+1],d=i[r+2],h=i[r+3];const f=a[s+0],v=a[s+1],_=a[s+2],b=a[s+3];if(o===0){e[t+0]=l,e[t+1]=u,e[t+2]=d,e[t+3]=h;return}if(o===1){e[t+0]=f,e[t+1]=v,e[t+2]=_,e[t+3]=b;return}if(h!==b||l!==f||u!==v||d!==_){let y=1-o;const w=l*f+u*v+d*_+h*b,D=w>=0?1:-1,R=1-w*w;if(R>Number.EPSILON){const j=Math.sqrt(R),q=Math.atan2(j,w*D);y=Math.sin(y*q)/j,o=Math.sin(o*q)/j}const U=o*D;if(l=l*y+f*U,u=u*y+v*U,d=d*y+_*U,h=h*y+b*U,y===1-o){const j=1/Math.sqrt(l*l+u*u+d*d+h*h);l*=j,u*=j,d*=j,h*=j}}e[t]=l,e[t+1]=u,e[t+2]=d,e[t+3]=h}static multiplyQuaternionsFlat(e,t,i,r,a,s){const o=i[r],l=i[r+1],u=i[r+2],d=i[r+3],h=a[s],f=a[s+1],v=a[s+2],_=a[s+3];return e[t]=o*_+d*h+l*v-u*f,e[t+1]=l*_+d*f+u*h-o*v,e[t+2]=u*_+d*v+o*f-l*h,e[t+3]=d*_-o*h-l*f-u*v,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,i,r){return this._x=e,this._y=t,this._z=i,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const i=e._x,r=e._y,a=e._z,s=e._order,o=Math.cos,l=Math.sin,u=o(i/2),d=o(r/2),h=o(a/2),f=l(i/2),v=l(r/2),_=l(a/2);switch(s){case"XYZ":this._x=f*d*h+u*v*_,this._y=u*v*h-f*d*_,this._z=u*d*_+f*v*h,this._w=u*d*h-f*v*_;break;case"YXZ":this._x=f*d*h+u*v*_,this._y=u*v*h-f*d*_,this._z=u*d*_-f*v*h,this._w=u*d*h+f*v*_;break;case"ZXY":this._x=f*d*h-u*v*_,this._y=u*v*h+f*d*_,this._z=u*d*_+f*v*h,this._w=u*d*h-f*v*_;break;case"ZYX":this._x=f*d*h-u*v*_,this._y=u*v*h+f*d*_,this._z=u*d*_-f*v*h,this._w=u*d*h+f*v*_;break;case"YZX":this._x=f*d*h+u*v*_,this._y=u*v*h+f*d*_,this._z=u*d*_-f*v*h,this._w=u*d*h-f*v*_;break;case"XZY":this._x=f*d*h-u*v*_,this._y=u*v*h-f*d*_,this._z=u*d*_+f*v*h,this._w=u*d*h+f*v*_;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const i=t/2,r=Math.sin(i);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,i=t[0],r=t[4],a=t[8],s=t[1],o=t[5],l=t[9],u=t[2],d=t[6],h=t[10],f=i+o+h;if(f>0){const v=.5/Math.sqrt(f+1);this._w=.25/v,this._x=(d-l)*v,this._y=(a-u)*v,this._z=(s-r)*v}else if(i>o&&i>h){const v=2*Math.sqrt(1+i-o-h);this._w=(d-l)/v,this._x=.25*v,this._y=(r+s)/v,this._z=(a+u)/v}else if(o>h){const v=2*Math.sqrt(1+o-i-h);this._w=(a-u)/v,this._x=(r+s)/v,this._y=.25*v,this._z=(l+d)/v}else{const v=2*Math.sqrt(1+h-i-o);this._w=(s-r)/v,this._x=(a+u)/v,this._y=(l+d)/v,this._z=.25*v}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let i=e.dot(t)+1;return iMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=i),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(ot(this.dot(e),-1,1)))}rotateTowards(e,t){const i=this.angleTo(e);if(i===0)return this;const r=Math.min(1,t/i);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const i=e._x,r=e._y,a=e._z,s=e._w,o=t._x,l=t._y,u=t._z,d=t._w;return this._x=i*d+s*o+r*u-a*l,this._y=r*d+s*l+a*o-i*u,this._z=a*d+s*u+i*l-r*o,this._w=s*d-i*o-r*l-a*u,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const i=this._x,r=this._y,a=this._z,s=this._w;let o=s*e._w+i*e._x+r*e._y+a*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=s,this._x=i,this._y=r,this._z=a,this;const l=1-o*o;if(l<=Number.EPSILON){const v=1-t;return this._w=v*s+t*this._w,this._x=v*i+t*this._x,this._y=v*r+t*this._y,this._z=v*a+t*this._z,this.normalize(),this}const u=Math.sqrt(l),d=Math.atan2(u,o),h=Math.sin((1-t)*d)/u,f=Math.sin(t*d)/u;return this._w=s*h+this._w*f,this._x=i*h+this._x*f,this._y=r*h+this._y*f,this._z=a*h+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,t,i){return this.copy(e).slerp(t,i)}random(){const e=Math.random(),t=Math.sqrt(1-e),i=Math.sqrt(e),r=2*Math.PI*Math.random(),a=2*Math.PI*Math.random();return this.set(t*Math.cos(r),i*Math.sin(a),i*Math.cos(a),t*Math.sin(r))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class k2{constructor(e=0,t=0,i=0){k2.prototype.isVector3=!0,this.x=e,this.y=t,this.z=i}set(e,t,i){return i===void 0&&(i=this.z),this.x=e,this.y=t,this.z=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(Jv.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Jv.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,i=this.y,r=this.z,a=e.elements;return this.x=a[0]*t+a[3]*i+a[6]*r,this.y=a[1]*t+a[4]*i+a[7]*r,this.z=a[2]*t+a[5]*i+a[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,i=this.y,r=this.z,a=e.elements,s=1/(a[3]*t+a[7]*i+a[11]*r+a[15]);return this.x=(a[0]*t+a[4]*i+a[8]*r+a[12])*s,this.y=(a[1]*t+a[5]*i+a[9]*r+a[13])*s,this.z=(a[2]*t+a[6]*i+a[10]*r+a[14])*s,this}applyQuaternion(e){const t=this.x,i=this.y,r=this.z,a=e.x,s=e.y,o=e.z,l=e.w,u=2*(s*r-o*i),d=2*(o*t-a*r),h=2*(a*i-s*t);return this.x=t+l*u+s*h-o*d,this.y=i+l*d+o*u-a*h,this.z=r+l*h+a*d-s*u,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,i=this.y,r=this.z,a=e.elements;return this.x=a[0]*t+a[4]*i+a[8]*r,this.y=a[1]*t+a[5]*i+a[9]*r,this.z=a[2]*t+a[6]*i+a[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const i=e.x,r=e.y,a=e.z,s=t.x,o=t.y,l=t.z;return this.x=r*l-a*o,this.y=a*s-i*l,this.z=i*o-r*s,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const i=e.dot(this)/t;return this.copy(e).multiplyScalar(i)}projectOnPlane(e){return Bc.copy(this).projectOnVector(e),this.sub(Bc)}reflect(e){return this.sub(Bc.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(ot(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y,r=this.z-e.z;return t*t+i*i+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,i){const r=Math.sin(t)*e;return this.x=r*Math.sin(i),this.y=Math.cos(t)*e,this.z=r*Math.cos(i),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,i){return this.x=e*Math.sin(t),this.y=i,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=i,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,t=Math.random()*Math.PI*2,i=Math.sqrt(1-Bi(e,2));return this.x=i*Math.cos(t),this.y=i*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Bc=new k2,Jv=new Z6;class F6{constructor(e=new k2(1/0,1/0,1/0),t=new k2(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,i=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,V6),V6.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,i;return e.normal.x>0?(t=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),t<=-e.constant&&i>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Fa),h7.subVectors(this.max,Fa),U8.subVectors(e.a,Fa),O8.subVectors(e.b,Fa),B8.subVectors(e.c,Fa),E5.subVectors(O8,U8),P5.subVectors(B8,O8),L9.subVectors(U8,B8);let t=[0,-E5.z,E5.y,0,-P5.z,P5.y,0,-L9.z,L9.y,E5.z,0,-E5.x,P5.z,0,-P5.x,L9.z,0,-L9.x,-E5.y,E5.x,0,-P5.y,P5.x,0,-L9.y,L9.x,0];return!zc(t,U8,O8,B8,h7)||(t=[1,0,0,0,1,0,0,0,1],!zc(t,U8,O8,B8,h7))?!1:(f7.crossVectors(E5,P5),t=[f7.x,f7.y,f7.z],zc(t,U8,O8,B8,h7))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,V6).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(V6).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(zi[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),zi[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),zi[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),zi[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),zi[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),zi[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),zi[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),zi[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(zi),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const zi=[new k2,new k2,new k2,new k2,new k2,new k2,new k2,new k2],V6=new k2,d7=new F6,U8=new k2,O8=new k2,B8=new k2,E5=new k2,P5=new k2,L9=new k2,Fa=new k2,h7=new k2,f7=new k2,I9=new k2;function zc(n,e,t,i,r){for(let a=0,s=n.length-3;a<=s;a+=3){I9.fromArray(n,a);const o=r.x*Math.abs(I9.x)+r.y*Math.abs(I9.y)+r.z*Math.abs(I9.z),l=e.dot(I9),u=t.dot(I9),d=i.dot(I9);if(Math.max(-Math.max(l,u,d),Math.min(l,u,d))>o)return!1}return!0}const UD=new F6,Da=new k2,Gc=new k2;class D6{constructor(e=new k2,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const i=this.center;t!==void 0?i.copy(t):UD.setFromPoints(e).getCenter(i);let r=0;for(let a=0,s=e.length;athis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Da.subVectors(e,this.center);const t=Da.lengthSq();if(t>this.radius*this.radius){const i=Math.sqrt(t),r=(i-this.radius)*.5;this.center.addScaledVector(Da,r/i),this.radius+=r}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Gc.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Da.copy(e.center).add(Gc)),this.expandByPoint(Da.copy(e.center).sub(Gc))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const Gi=new k2,Vc=new k2,p7=new k2,R5=new k2,Hc=new k2,m7=new k2,jc=new k2;class ea{constructor(e=new k2,t=new k2(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Gi)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const i=t.dot(this.direction);return i<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=Gi.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Gi.copy(this.origin).addScaledVector(this.direction,t),Gi.distanceToSquared(e))}distanceSqToSegment(e,t,i,r){Vc.copy(e).add(t).multiplyScalar(.5),p7.copy(t).sub(e).normalize(),R5.copy(this.origin).sub(Vc);const a=e.distanceTo(t)*.5,s=-this.direction.dot(p7),o=R5.dot(this.direction),l=-R5.dot(p7),u=R5.lengthSq(),d=Math.abs(1-s*s);let h,f,v,_;if(d>0)if(h=s*l-o,f=s*o-l,_=a*d,h>=0)if(f>=-_)if(f<=_){const b=1/d;h*=b,f*=b,v=h*(h+s*f+2*o)+f*(s*h+f+2*l)+u}else f=a,h=Math.max(0,-(s*f+o)),v=-h*h+f*(f+2*l)+u;else f=-a,h=Math.max(0,-(s*f+o)),v=-h*h+f*(f+2*l)+u;else f<=-_?(h=Math.max(0,-(-s*a+o)),f=h>0?-a:Math.min(Math.max(-a,-l),a),v=-h*h+f*(f+2*l)+u):f<=_?(h=0,f=Math.min(Math.max(-a,-l),a),v=f*(f+2*l)+u):(h=Math.max(0,-(s*a+o)),f=h>0?a:Math.min(Math.max(-a,-l),a),v=-h*h+f*(f+2*l)+u);else f=s>0?-a:a,h=Math.max(0,-(s*f+o)),v=-h*h+f*(f+2*l)+u;return i&&i.copy(this.origin).addScaledVector(this.direction,h),r&&r.copy(Vc).addScaledVector(p7,f),v}intersectSphere(e,t){Gi.subVectors(e.center,this.origin);const i=Gi.dot(this.direction),r=Gi.dot(Gi)-i*i,a=e.radius*e.radius;if(r>a)return null;const s=Math.sqrt(a-r),o=i-s,l=i+s;return l<0?null:o<0?this.at(l,t):this.at(o,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(e.normal)+e.constant)/t;return i>=0?i:null}intersectPlane(e,t){const i=this.distanceToPlane(e);return i===null?null:this.at(i,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let i,r,a,s,o,l;const u=1/this.direction.x,d=1/this.direction.y,h=1/this.direction.z,f=this.origin;return u>=0?(i=(e.min.x-f.x)*u,r=(e.max.x-f.x)*u):(i=(e.max.x-f.x)*u,r=(e.min.x-f.x)*u),d>=0?(a=(e.min.y-f.y)*d,s=(e.max.y-f.y)*d):(a=(e.max.y-f.y)*d,s=(e.min.y-f.y)*d),i>s||a>r||((a>i||isNaN(i))&&(i=a),(s=0?(o=(e.min.z-f.z)*h,l=(e.max.z-f.z)*h):(o=(e.max.z-f.z)*h,l=(e.min.z-f.z)*h),i>l||o>r)||((o>i||i!==i)&&(i=o),(l=0?i:r,t)}intersectsBox(e){return this.intersectBox(e,Gi)!==null}intersectTriangle(e,t,i,r,a){Hc.subVectors(t,e),m7.subVectors(i,e),jc.crossVectors(Hc,m7);let s=this.direction.dot(jc),o;if(s>0){if(r)return null;o=1}else if(s<0)o=-1,s=-s;else return null;R5.subVectors(this.origin,e);const l=o*this.direction.dot(m7.crossVectors(R5,m7));if(l<0)return null;const u=o*this.direction.dot(Hc.cross(R5));if(u<0||l+u>s)return null;const d=-o*R5.dot(jc);return d<0?null:this.at(d/s,a)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class o0{constructor(e,t,i,r,a,s,o,l,u,d,h,f,v,_,b,y){o0.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,i,r,a,s,o,l,u,d,h,f,v,_,b,y)}set(e,t,i,r,a,s,o,l,u,d,h,f,v,_,b,y){const w=this.elements;return w[0]=e,w[4]=t,w[8]=i,w[12]=r,w[1]=a,w[5]=s,w[9]=o,w[13]=l,w[2]=u,w[6]=d,w[10]=h,w[14]=f,w[3]=v,w[7]=_,w[11]=b,w[15]=y,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new o0().fromArray(this.elements)}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],this}copyPosition(e){const t=this.elements,i=e.elements;return t[12]=i[12],t[13]=i[13],t[14]=i[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,i){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(e,t,i){return this.set(e.x,t.x,i.x,0,e.y,t.y,i.y,0,e.z,t.z,i.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,i=e.elements,r=1/z8.setFromMatrixColumn(e,0).length(),a=1/z8.setFromMatrixColumn(e,1).length(),s=1/z8.setFromMatrixColumn(e,2).length();return t[0]=i[0]*r,t[1]=i[1]*r,t[2]=i[2]*r,t[3]=0,t[4]=i[4]*a,t[5]=i[5]*a,t[6]=i[6]*a,t[7]=0,t[8]=i[8]*s,t[9]=i[9]*s,t[10]=i[10]*s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,i=e.x,r=e.y,a=e.z,s=Math.cos(i),o=Math.sin(i),l=Math.cos(r),u=Math.sin(r),d=Math.cos(a),h=Math.sin(a);if(e.order==="XYZ"){const f=s*d,v=s*h,_=o*d,b=o*h;t[0]=l*d,t[4]=-l*h,t[8]=u,t[1]=v+_*u,t[5]=f-b*u,t[9]=-o*l,t[2]=b-f*u,t[6]=_+v*u,t[10]=s*l}else if(e.order==="YXZ"){const f=l*d,v=l*h,_=u*d,b=u*h;t[0]=f+b*o,t[4]=_*o-v,t[8]=s*u,t[1]=s*h,t[5]=s*d,t[9]=-o,t[2]=v*o-_,t[6]=b+f*o,t[10]=s*l}else if(e.order==="ZXY"){const f=l*d,v=l*h,_=u*d,b=u*h;t[0]=f-b*o,t[4]=-s*h,t[8]=_+v*o,t[1]=v+_*o,t[5]=s*d,t[9]=b-f*o,t[2]=-s*u,t[6]=o,t[10]=s*l}else if(e.order==="ZYX"){const f=s*d,v=s*h,_=o*d,b=o*h;t[0]=l*d,t[4]=_*u-v,t[8]=f*u+b,t[1]=l*h,t[5]=b*u+f,t[9]=v*u-_,t[2]=-u,t[6]=o*l,t[10]=s*l}else if(e.order==="YZX"){const f=s*l,v=s*u,_=o*l,b=o*u;t[0]=l*d,t[4]=b-f*h,t[8]=_*h+v,t[1]=h,t[5]=s*d,t[9]=-o*d,t[2]=-u*d,t[6]=v*h+_,t[10]=f-b*h}else if(e.order==="XZY"){const f=s*l,v=s*u,_=o*l,b=o*u;t[0]=l*d,t[4]=-h,t[8]=u*d,t[1]=f*h+b,t[5]=s*d,t[9]=v*h-_,t[2]=_*h-v,t[6]=o*d,t[10]=b*h+f}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(OD,e,BD)}lookAt(e,t,i){const r=this.elements;return Wn.subVectors(e,t),Wn.lengthSq()===0&&(Wn.z=1),Wn.normalize(),N5.crossVectors(i,Wn),N5.lengthSq()===0&&(Math.abs(i.z)===1?Wn.x+=1e-4:Wn.z+=1e-4,Wn.normalize(),N5.crossVectors(i,Wn)),N5.normalize(),g7.crossVectors(Wn,N5),r[0]=N5.x,r[4]=g7.x,r[8]=Wn.x,r[1]=N5.y,r[5]=g7.y,r[9]=Wn.y,r[2]=N5.z,r[6]=g7.z,r[10]=Wn.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,r=t.elements,a=this.elements,s=i[0],o=i[4],l=i[8],u=i[12],d=i[1],h=i[5],f=i[9],v=i[13],_=i[2],b=i[6],y=i[10],w=i[14],D=i[3],R=i[7],U=i[11],j=i[15],q=r[0],K=r[4],c2=r[8],S2=r[12],H=r[1],Z=r[5],G2=r[9],q2=r[13],C2=r[2],E2=r[6],A2=r[10],X2=r[14],b2=r[3],J=r[7],p2=r[11],N2=r[15];return a[0]=s*q+o*H+l*C2+u*b2,a[4]=s*K+o*Z+l*E2+u*J,a[8]=s*c2+o*G2+l*A2+u*p2,a[12]=s*S2+o*q2+l*X2+u*N2,a[1]=d*q+h*H+f*C2+v*b2,a[5]=d*K+h*Z+f*E2+v*J,a[9]=d*c2+h*G2+f*A2+v*p2,a[13]=d*S2+h*q2+f*X2+v*N2,a[2]=_*q+b*H+y*C2+w*b2,a[6]=_*K+b*Z+y*E2+w*J,a[10]=_*c2+b*G2+y*A2+w*p2,a[14]=_*S2+b*q2+y*X2+w*N2,a[3]=D*q+R*H+U*C2+j*b2,a[7]=D*K+R*Z+U*E2+j*J,a[11]=D*c2+R*G2+U*A2+j*p2,a[15]=D*S2+R*q2+U*X2+j*N2,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[4],r=e[8],a=e[12],s=e[1],o=e[5],l=e[9],u=e[13],d=e[2],h=e[6],f=e[10],v=e[14],_=e[3],b=e[7],y=e[11],w=e[15];return _*(+a*l*h-r*u*h-a*o*f+i*u*f+r*o*v-i*l*v)+b*(+t*l*v-t*u*f+a*s*f-r*s*v+r*u*d-a*l*d)+y*(+t*u*h-t*o*v-a*s*h+i*s*v+a*o*d-i*u*d)+w*(-r*o*d-t*l*h+t*o*f+r*s*h-i*s*f+i*l*d)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,i){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=i),this}invert(){const e=this.elements,t=e[0],i=e[1],r=e[2],a=e[3],s=e[4],o=e[5],l=e[6],u=e[7],d=e[8],h=e[9],f=e[10],v=e[11],_=e[12],b=e[13],y=e[14],w=e[15],D=h*y*u-b*f*u+b*l*v-o*y*v-h*l*w+o*f*w,R=_*f*u-d*y*u-_*l*v+s*y*v+d*l*w-s*f*w,U=d*b*u-_*h*u+_*o*v-s*b*v-d*o*w+s*h*w,j=_*h*l-d*b*l-_*o*f+s*b*f+d*o*y-s*h*y,q=t*D+i*R+r*U+a*j;if(q===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const K=1/q;return e[0]=D*K,e[1]=(b*f*a-h*y*a-b*r*v+i*y*v+h*r*w-i*f*w)*K,e[2]=(o*y*a-b*l*a+b*r*u-i*y*u-o*r*w+i*l*w)*K,e[3]=(h*l*a-o*f*a-h*r*u+i*f*u+o*r*v-i*l*v)*K,e[4]=R*K,e[5]=(d*y*a-_*f*a+_*r*v-t*y*v-d*r*w+t*f*w)*K,e[6]=(_*l*a-s*y*a-_*r*u+t*y*u+s*r*w-t*l*w)*K,e[7]=(s*f*a-d*l*a+d*r*u-t*f*u-s*r*v+t*l*v)*K,e[8]=U*K,e[9]=(_*h*a-d*b*a-_*i*v+t*b*v+d*i*w-t*h*w)*K,e[10]=(s*b*a-_*o*a+_*i*u-t*b*u-s*i*w+t*o*w)*K,e[11]=(d*o*a-s*h*a-d*i*u+t*h*u+s*i*v-t*o*v)*K,e[12]=j*K,e[13]=(d*b*r-_*h*r+_*i*f-t*b*f-d*i*y+t*h*y)*K,e[14]=(_*o*r-s*b*r-_*i*l+t*b*l+s*i*y-t*o*y)*K,e[15]=(s*h*r-d*o*r+d*i*l-t*h*l-s*i*f+t*o*f)*K,this}scale(e){const t=this.elements,i=e.x,r=e.y,a=e.z;return t[0]*=i,t[4]*=r,t[8]*=a,t[1]*=i,t[5]*=r,t[9]*=a,t[2]*=i,t[6]*=r,t[10]*=a,t[3]*=i,t[7]*=r,t[11]*=a,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,i,r))}makeTranslation(e,t,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,i,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,t,-i,0,0,i,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,0,i,0,0,1,0,0,-i,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,0,i,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const i=Math.cos(t),r=Math.sin(t),a=1-i,s=e.x,o=e.y,l=e.z,u=a*s,d=a*o;return this.set(u*s+i,u*o-r*l,u*l+r*o,0,u*o+r*l,d*o+i,d*l-r*s,0,u*l-r*o,d*l+r*s,a*l*l+i,0,0,0,0,1),this}makeScale(e,t,i){return this.set(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1),this}makeShear(e,t,i,r,a,s){return this.set(1,i,a,0,e,1,s,0,t,r,1,0,0,0,0,1),this}compose(e,t,i){const r=this.elements,a=t._x,s=t._y,o=t._z,l=t._w,u=a+a,d=s+s,h=o+o,f=a*u,v=a*d,_=a*h,b=s*d,y=s*h,w=o*h,D=l*u,R=l*d,U=l*h,j=i.x,q=i.y,K=i.z;return r[0]=(1-(b+w))*j,r[1]=(v+U)*j,r[2]=(_-R)*j,r[3]=0,r[4]=(v-U)*q,r[5]=(1-(f+w))*q,r[6]=(y+D)*q,r[7]=0,r[8]=(_+R)*K,r[9]=(y-D)*K,r[10]=(1-(f+b))*K,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,i){const r=this.elements;let a=z8.set(r[0],r[1],r[2]).length();const s=z8.set(r[4],r[5],r[6]).length(),o=z8.set(r[8],r[9],r[10]).length();this.determinant()<0&&(a=-a),e.x=r[12],e.y=r[13],e.z=r[14],H6.copy(this);const u=1/a,d=1/s,h=1/o;return H6.elements[0]*=u,H6.elements[1]*=u,H6.elements[2]*=u,H6.elements[4]*=d,H6.elements[5]*=d,H6.elements[6]*=d,H6.elements[8]*=h,H6.elements[9]*=h,H6.elements[10]*=h,t.setFromRotationMatrix(H6),i.x=a,i.y=s,i.z=o,this}makePerspective(e,t,i,r,a,s,o=e5){const l=this.elements,u=2*a/(t-e),d=2*a/(i-r),h=(t+e)/(t-e),f=(i+r)/(i-r);let v,_;if(o===e5)v=-(s+a)/(s-a),_=-2*s*a/(s-a);else if(o===Ko)v=-s/(s-a),_=-s*a/(s-a);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);return l[0]=u,l[4]=0,l[8]=h,l[12]=0,l[1]=0,l[5]=d,l[9]=f,l[13]=0,l[2]=0,l[6]=0,l[10]=v,l[14]=_,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,i,r,a,s,o=e5){const l=this.elements,u=1/(t-e),d=1/(i-r),h=1/(s-a),f=(t+e)*u,v=(i+r)*d;let _,b;if(o===e5)_=(s+a)*h,b=-2*h;else if(o===Ko)_=a*h,b=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);return l[0]=2*u,l[4]=0,l[8]=0,l[12]=-f,l[1]=0,l[5]=2*d,l[9]=0,l[13]=-v,l[2]=0,l[6]=0,l[10]=b,l[14]=-_,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,i=e.elements;for(let r=0;r<16;r++)if(t[r]!==i[r])return!1;return!0}fromArray(e,t=0){for(let i=0;i<16;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e[t+9]=i[9],e[t+10]=i[10],e[t+11]=i[11],e[t+12]=i[12],e[t+13]=i[13],e[t+14]=i[14],e[t+15]=i[15],e}}const z8=new k2,H6=new o0,OD=new k2(0,0,0),BD=new k2(1,1,1),N5=new k2,g7=new k2,Wn=new k2,Zv=new o0,Qv=new Z6;class kl{constructor(e=0,t=0,i=0,r=kl.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=i,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,i,r=this._order){return this._x=e,this._y=t,this._z=i,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,i=!0){const r=e.elements,a=r[0],s=r[4],o=r[8],l=r[1],u=r[5],d=r[9],h=r[2],f=r[6],v=r[10];switch(t){case"XYZ":this._y=Math.asin(ot(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-d,v),this._z=Math.atan2(-s,a)):(this._x=Math.atan2(f,u),this._z=0);break;case"YXZ":this._x=Math.asin(-ot(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(o,v),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-h,a),this._z=0);break;case"ZXY":this._x=Math.asin(ot(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-h,v),this._z=Math.atan2(-s,u)):(this._y=0,this._z=Math.atan2(l,a));break;case"ZYX":this._y=Math.asin(-ot(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(f,v),this._z=Math.atan2(l,a)):(this._x=0,this._z=Math.atan2(-s,u));break;case"YZX":this._z=Math.asin(ot(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-d,u),this._y=Math.atan2(-h,a)):(this._x=0,this._y=Math.atan2(o,v));break;case"XZY":this._z=Math.asin(-ot(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(f,u),this._y=Math.atan2(o,a)):(this._x=Math.atan2(-d,v),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,i===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,i){return Zv.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Zv,t,i)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return Qv.setFromEuler(this),this.setFromQuaternion(Qv,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}kl.DEFAULT_ORDER="XYZ";class Tf{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let i=0;i0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.bounds=this._bounds.map(o=>({boxInitialized:o.boxInitialized,boxMin:o.box.min.toArray(),boxMax:o.box.max.toArray(),sphereInitialized:o.sphereInitialized,sphereRadius:o.sphere.radius,sphereCenter:o.sphere.center.toArray()})),r.maxGeometryCount=this._maxGeometryCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),this.boundingBox!==null&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()}));function a(o,l){return o[l.uuid]===void 0&&(o[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=a(e.geometries,this.geometry);const o=this.geometry.parameters;if(o!==void 0&&o.shapes!==void 0){const l=o.shapes;if(Array.isArray(l))for(let u=0,d=l.length;u0){r.children=[];for(let o=0;o0){r.animations=[];for(let o=0;o0&&(i.geometries=o),l.length>0&&(i.materials=l),u.length>0&&(i.textures=u),d.length>0&&(i.images=d),h.length>0&&(i.shapes=h),f.length>0&&(i.skeletons=f),v.length>0&&(i.animations=v),_.length>0&&(i.nodes=_)}return i.object=r,i;function s(o){const l=[];for(const u in o){const d=o[u];delete d.metadata,l.push(d)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let i=0;i0?r.multiplyScalar(1/Math.sqrt(a)):r.set(0,0,0)}static getBarycoord(e,t,i,r,a){j6.subVectors(r,t),Hi.subVectors(i,t),Wc.subVectors(e,t);const s=j6.dot(j6),o=j6.dot(Hi),l=j6.dot(Wc),u=Hi.dot(Hi),d=Hi.dot(Wc),h=s*u-o*o;if(h===0)return a.set(0,0,0),null;const f=1/h,v=(u*l-o*d)*f,_=(s*d-o*l)*f;return a.set(1-v-_,_,v)}static containsPoint(e,t,i,r){return this.getBarycoord(e,t,i,r,ji)===null?!1:ji.x>=0&&ji.y>=0&&ji.x+ji.y<=1}static getInterpolation(e,t,i,r,a,s,o,l){return this.getBarycoord(e,t,i,r,ji)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(a,ji.x),l.addScaledVector(s,ji.y),l.addScaledVector(o,ji.z),l)}static isFrontFacing(e,t,i,r){return j6.subVectors(i,t),Hi.subVectors(e,t),j6.cross(Hi).dot(r)<0}set(e,t,i){return this.a.copy(e),this.b.copy(t),this.c.copy(i),this}setFromPointsAndIndices(e,t,i,r){return this.a.copy(e[t]),this.b.copy(e[i]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,i,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return j6.subVectors(this.c,this.b),Hi.subVectors(this.a,this.b),j6.cross(Hi).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Y6.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Y6.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,i,r,a){return Y6.getInterpolation(e,this.a,this.b,this.c,t,i,r,a)}containsPoint(e){return Y6.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Y6.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const i=this.a,r=this.b,a=this.c;let s,o;V8.subVectors(r,i),H8.subVectors(a,i),$c.subVectors(e,i);const l=V8.dot($c),u=H8.dot($c);if(l<=0&&u<=0)return t.copy(i);Yc.subVectors(e,r);const d=V8.dot(Yc),h=H8.dot(Yc);if(d>=0&&h<=d)return t.copy(r);const f=l*h-d*u;if(f<=0&&l>=0&&d<=0)return s=l/(l-d),t.copy(i).addScaledVector(V8,s);qc.subVectors(e,a);const v=V8.dot(qc),_=H8.dot(qc);if(_>=0&&v<=_)return t.copy(a);const b=v*u-l*_;if(b<=0&&u>=0&&_<=0)return o=u/(u-_),t.copy(i).addScaledVector(H8,o);const y=d*_-v*h;if(y<=0&&h-d>=0&&v-_>=0)return ry.subVectors(a,r),o=(h-d)/(h-d+(v-_)),t.copy(r).addScaledVector(ry,o);const w=1/(y+b+f);return s=b*w,o=f*w,t.copy(i).addScaledVector(V8,s).addScaledVector(H8,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const DT={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},L5={h:0,s:0,l:0},y7={h:0,s:0,l:0};function Kc(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class R1{constructor(e,t,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,i)}set(e,t,i){if(t===void 0&&i===void 0){const r=e;r&&r.isColor?this.copy(r):typeof r=="number"?this.setHex(r):typeof r=="string"&&this.setStyle(r)}else this.setRGB(e,t,i);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=J0){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,X0.toWorkingColorSpace(this,t),this}setRGB(e,t,i,r=X0.workingColorSpace){return this.r=e,this.g=t,this.b=i,X0.toWorkingColorSpace(this,r),this}setHSL(e,t,i,r=X0.workingColorSpace){if(e=Sf(e,1),t=ot(t,0,1),i=ot(i,0,1),t===0)this.r=this.g=this.b=i;else{const a=i<=.5?i*(1+t):i+t-i*t,s=2*i-a;this.r=Kc(s,a,e+1/3),this.g=Kc(s,a,e),this.b=Kc(s,a,e-1/3)}return X0.toWorkingColorSpace(this,r),this}setStyle(e,t=J0){function i(a){a!==void 0&&parseFloat(a)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let a;const s=r[1],o=r[2];switch(s){case"rgb":case"rgba":if(a=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(a[4]),this.setRGB(Math.min(255,parseInt(a[1],10))/255,Math.min(255,parseInt(a[2],10))/255,Math.min(255,parseInt(a[3],10))/255,t);if(a=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(a[4]),this.setRGB(Math.min(100,parseInt(a[1],10))/100,Math.min(100,parseInt(a[2],10))/100,Math.min(100,parseInt(a[3],10))/100,t);break;case"hsl":case"hsla":if(a=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(a[4]),this.setHSL(parseFloat(a[1])/360,parseFloat(a[2])/100,parseFloat(a[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const a=r[1],s=a.length;if(s===3)return this.setRGB(parseInt(a.charAt(0),16)/15,parseInt(a.charAt(1),16)/15,parseInt(a.charAt(2),16)/15,t);if(s===6)return this.setHex(parseInt(a,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=J0){const i=DT[e.toLowerCase()];return i!==void 0?this.setHex(i,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Ar(e.r),this.g=Ar(e.g),this.b=Ar(e.b),this}copyLinearToSRGB(e){return this.r=Uc(e.r),this.g=Uc(e.g),this.b=Uc(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=J0){return X0.fromWorkingColorSpace(Gt.copy(this),e),Math.round(ot(Gt.r*255,0,255))*65536+Math.round(ot(Gt.g*255,0,255))*256+Math.round(ot(Gt.b*255,0,255))}getHexString(e=J0){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=X0.workingColorSpace){X0.fromWorkingColorSpace(Gt.copy(this),t);const i=Gt.r,r=Gt.g,a=Gt.b,s=Math.max(i,r,a),o=Math.min(i,r,a);let l,u;const d=(o+s)/2;if(o===s)l=0,u=0;else{const h=s-o;switch(u=d<=.5?h/(s+o):h/(2-s-o),s){case i:l=(r-a)/h+(r0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const i=e[t];if(i===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const r=this[t];if(r===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(i):r&&r.isVector3&&i&&i.isVector3?r.copy(i):this[t]=i}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==t8&&(i.blending=this.blending),this.side!==i5&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==ih&&(i.blendSrc=this.blendSrc),this.blendDst!==rh&&(i.blendDst=this.blendDst),this.blendEquation!==B5&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==jo&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==Wv&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==F8&&(i.stencilFail=this.stencilFail),this.stencilZFail!==F8&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==F8&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function r(a){const s=[];for(const o in a){const l=a[o];delete l.metadata,s.push(l)}return s}if(t){const a=r(e.textures),s=r(e.images);a.length>0&&(i.textures=a),s.length>0&&(i.images=s)}return i}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let i=null;if(t!==null){const r=t.length;i=new Array(r);for(let a=0;a!==r;++a)i[a]=t[a].clone()}return this.clippingPlanes=i,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class V0 extends R6{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new R1(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=gf,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const tt=new k2,_7=new F3;class Ue{constructor(e,t,i=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=i,this.usage=uh,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=pi,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return a8("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,i){e*=this.itemSize,i*=t.itemSize;for(let r=0,a=this.itemSize;r0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const u in l)l[u]!==void 0&&(e[u]=l[u]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const i=this.attributes;for(const l in i){const u=i[l];e.data.attributes[l]=u.toJSON(e.data)}const r={};let a=!1;for(const l in this.morphAttributes){const u=this.morphAttributes[l],d=[];for(let h=0,f=u.length;h0&&(r[l]=d,a=!0)}a&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(e.data.groups=JSON.parse(JSON.stringify(s)));const o=this.boundingSphere;return o!==null&&(e.data.boundingSphere={center:o.center.toArray(),radius:o.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const i=e.index;i!==null&&this.setIndex(i.clone(t));const r=e.attributes;for(const u in r){const d=r[u];this.setAttribute(u,d.clone(t))}const a=e.morphAttributes;for(const u in a){const d=[],h=a[u];for(let f=0,v=h.length;f0){const r=t[i[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,s=r.length;aBi(e.far-e.near,2)))&&(ay.copy(a).invert(),k9.copy(e.ray).applyMatrix4(ay),!(i.boundingBox!==null&&k9.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(e,t,k9)))}_computeIntersections(e,t,i){let r;const a=this.geometry,s=this.material,o=a.index,l=a.attributes.position,u=a.attributes.uv,d=a.attributes.uv1,h=a.attributes.normal,f=a.groups,v=a.drawRange;if(o!==null)if(Array.isArray(s))for(let _=0,b=f.length;_t.far?null:{distance:u,point:C7.clone(),object:n}}function M7(n,e,t,i,r,a,s,o,l,u){n.getVertexPosition(o,W8),n.getVertexPosition(l,$8),n.getVertexPosition(u,Y8);const d=YD(n,e,t,i,W8,$8,Y8,A7);if(d){r&&(T7.fromBufferAttribute(r,o),w7.fromBufferAttribute(r,l),x7.fromBufferAttribute(r,u),d.uv=Y6.getInterpolation(A7,W8,$8,Y8,T7,w7,x7,new F3)),a&&(T7.fromBufferAttribute(a,o),w7.fromBufferAttribute(a,l),x7.fromBufferAttribute(a,u),d.uv1=Y6.getInterpolation(A7,W8,$8,Y8,T7,w7,x7,new F3),d.uv2=d.uv1),s&&(oy.fromBufferAttribute(s,o),ly.fromBufferAttribute(s,l),uy.fromBufferAttribute(s,u),d.normal=Y6.getInterpolation(A7,W8,$8,Y8,oy,ly,uy,new k2),d.normal.dot(i.direction)>0&&d.normal.multiplyScalar(-1));const h={a:o,b:l,c:u,normal:new k2,materialIndex:0};Y6.getNormal(W8,$8,Y8,h.normal),d.face=h}return d}class ta extends se{constructor(e=1,t=1,i=1,r=1,a=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:i,widthSegments:r,heightSegments:a,depthSegments:s};const o=this;r=Math.floor(r),a=Math.floor(a),s=Math.floor(s);const l=[],u=[],d=[],h=[];let f=0,v=0;_("z","y","x",-1,-1,i,t,e,s,a,0),_("z","y","x",1,-1,i,t,-e,s,a,1),_("x","z","y",1,1,e,i,t,r,s,2),_("x","z","y",1,-1,e,i,-t,r,s,3),_("x","y","z",1,-1,e,t,i,r,a,4),_("x","y","z",-1,-1,e,t,-i,r,a,5),this.setIndex(l),this.setAttribute("position",new Ee(u,3)),this.setAttribute("normal",new Ee(d,3)),this.setAttribute("uv",new Ee(h,2));function _(b,y,w,D,R,U,j,q,K,c2,S2){const H=U/K,Z=j/c2,G2=U/2,q2=j/2,C2=q/2,E2=K+1,A2=c2+1;let X2=0,b2=0;const J=new k2;for(let p2=0;p20?1:-1,d.push(J.x,J.y,J.z),h.push(e3/K),h.push(1-p2/c2),X2+=1}}for(let p2=0;p20&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const i={};for(const r in this.extensions)this.extensions[r]===!0&&(i[r]=!0);return Object.keys(i).length>0&&(t.extensions=i),t}}let UT=class extends pe{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new o0,this.projectionMatrix=new o0,this.projectionMatrixInverse=new o0,this.coordinateSystem=Qi}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}};const L5=new k2,oy=new F3,ly=new F3;class Wt extends UT{constructor(e=50,t=1,i=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=i,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=Gr*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(a4*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Gr*2*Math.atan(Math.tan(a4*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,i){L5.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(L5.x,L5.y).multiplyScalar(-e/L5.z),L5.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),i.set(L5.x,L5.y).multiplyScalar(-e/L5.z)}getViewSize(e,t){return this.getViewBounds(e,oy,ly),t.subVectors(ly,oy)}setViewOffset(e,t,i,r,a,s){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=i,this.view.offsetY=r,this.view.width=a,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(a4*.5*this.fov)/this.zoom,i=2*t,r=this.aspect*i,a=-.5*r;const s=this.view;if(this.view!==null&&this.view.enabled){const l=s.fullWidth,u=s.fullHeight;a+=s.offsetX*r/l,t-=s.offsetY*i/u,r*=s.width/l,i*=s.height/u}const o=this.filmOffset;o!==0&&(a+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(a,a+r,t,t-i,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Y8=-90,q8=1;class qD extends pe{constructor(e,t,i){super(),this.type="CubeCamera",this.renderTarget=i,this.coordinateSystem=null,this.activeMipmapLevel=0;const r=new Wt(Y8,q8,e,t);r.layers=this.layers,this.add(r);const a=new Wt(Y8,q8,e,t);a.layers=this.layers,this.add(a);const s=new Wt(Y8,q8,e,t);s.layers=this.layers,this.add(s);const o=new Wt(Y8,q8,e,t);o.layers=this.layers,this.add(o);const l=new Wt(Y8,q8,e,t);l.layers=this.layers,this.add(l);const u=new Wt(Y8,q8,e,t);u.layers=this.layers,this.add(u)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[i,r,a,s,o,l]=t;for(const u of t)this.remove(u);if(e===Qi)i.up.set(0,1,0),i.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),a.up.set(0,0,-1),a.lookAt(0,1,0),s.up.set(0,0,1),s.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===$o)i.up.set(0,-1,0),i.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),a.up.set(0,0,1),a.lookAt(0,1,0),s.up.set(0,0,-1),s.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const u of t)this.add(u),u.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:i,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[a,s,o,l,u,d]=this.children,h=e.getRenderTarget(),f=e.getActiveCubeFace(),v=e.getActiveMipmapLevel(),_=e.xr.enabled;e.xr.enabled=!1;const b=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,e.setRenderTarget(i,0,r),e.render(t,a),e.setRenderTarget(i,1,r),e.render(t,s),e.setRenderTarget(i,2,r),e.render(t,o),e.setRenderTarget(i,3,r),e.render(t,l),e.setRenderTarget(i,4,r),e.render(t,u),i.texture.generateMipmaps=b,e.setRenderTarget(i,5,r),e.render(t,d),e.setRenderTarget(h,f,v),e.xr.enabled=_,i.texture.needsPMREMUpdate=!0}}class OT extends pt{constructor(e,t,i,r,a,s,o,l,u,d){e=e!==void 0?e:[],t=t!==void 0?t:Ur,super(e,t,i,r,a,s,o,l,u,d),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class KD extends s8{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const i={width:e,height:e,depth:1},r=[i,i,i,i,i,i];t.encoding!==void 0&&(r8("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===i8?J0:C6),this.texture=new OT(r,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:at}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:`
+}`;class r5 extends R6{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=KD,this.fragmentShader=XD,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1,clipCullDistance:!1,multiDraw:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=jr(e.uniforms),this.uniformsGroups=qD(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const r in this.uniforms){const s=this.uniforms[r].value;s&&s.isTexture?t.uniforms[r]={type:"t",value:s.toJSON(e).uuid}:s&&s.isColor?t.uniforms[r]={type:"c",value:s.getHex()}:s&&s.isVector2?t.uniforms[r]={type:"v2",value:s.toArray()}:s&&s.isVector3?t.uniforms[r]={type:"v3",value:s.toArray()}:s&&s.isVector4?t.uniforms[r]={type:"v4",value:s.toArray()}:s&&s.isMatrix3?t.uniforms[r]={type:"m3",value:s.toArray()}:s&&s.isMatrix4?t.uniforms[r]={type:"m4",value:s.toArray()}:t.uniforms[r]={value:s}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const i={};for(const r in this.extensions)this.extensions[r]===!0&&(i[r]=!0);return Object.keys(i).length>0&&(t.extensions=i),t}}let zT=class extends pe{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new o0,this.projectionMatrix=new o0,this.projectionMatrixInverse=new o0,this.coordinateSystem=e5}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}};const I5=new k2,cy=new F3,dy=new F3;class Wt extends zT{constructor(e=50,t=1,i=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=i,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=Hr*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(o4*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Hr*2*Math.atan(Math.tan(o4*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,i){I5.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(I5.x,I5.y).multiplyScalar(-e/I5.z),I5.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),i.set(I5.x,I5.y).multiplyScalar(-e/I5.z)}getViewSize(e,t){return this.getViewBounds(e,cy,dy),t.subVectors(dy,cy)}setViewOffset(e,t,i,r,a,s){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=i,this.view.offsetY=r,this.view.width=a,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(o4*.5*this.fov)/this.zoom,i=2*t,r=this.aspect*i,a=-.5*r;const s=this.view;if(this.view!==null&&this.view.enabled){const l=s.fullWidth,u=s.fullHeight;a+=s.offsetX*r/l,t-=s.offsetY*i/u,r*=s.width/l,i*=s.height/u}const o=this.filmOffset;o!==0&&(a+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(a,a+r,t,t-i,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const q8=-90,K8=1;class JD extends pe{constructor(e,t,i){super(),this.type="CubeCamera",this.renderTarget=i,this.coordinateSystem=null,this.activeMipmapLevel=0;const r=new Wt(q8,K8,e,t);r.layers=this.layers,this.add(r);const a=new Wt(q8,K8,e,t);a.layers=this.layers,this.add(a);const s=new Wt(q8,K8,e,t);s.layers=this.layers,this.add(s);const o=new Wt(q8,K8,e,t);o.layers=this.layers,this.add(o);const l=new Wt(q8,K8,e,t);l.layers=this.layers,this.add(l);const u=new Wt(q8,K8,e,t);u.layers=this.layers,this.add(u)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[i,r,a,s,o,l]=t;for(const u of t)this.remove(u);if(e===e5)i.up.set(0,1,0),i.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),a.up.set(0,0,-1),a.lookAt(0,1,0),s.up.set(0,0,1),s.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===Ko)i.up.set(0,-1,0),i.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),a.up.set(0,0,1),a.lookAt(0,1,0),s.up.set(0,0,-1),s.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const u of t)this.add(u),u.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:i,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[a,s,o,l,u,d]=this.children,h=e.getRenderTarget(),f=e.getActiveCubeFace(),v=e.getActiveMipmapLevel(),_=e.xr.enabled;e.xr.enabled=!1;const b=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,e.setRenderTarget(i,0,r),e.render(t,a),e.setRenderTarget(i,1,r),e.render(t,s),e.setRenderTarget(i,2,r),e.render(t,o),e.setRenderTarget(i,3,r),e.render(t,l),e.setRenderTarget(i,4,r),e.render(t,u),i.texture.generateMipmaps=b,e.setRenderTarget(i,5,r),e.render(t,d),e.setRenderTarget(h,f,v),e.xr.enabled=_,i.texture.needsPMREMUpdate=!0}}class GT extends pt{constructor(e,t,i,r,a,s,o,l,u,d){e=e!==void 0?e:[],t=t!==void 0?t:Br,super(e,t,i,r,a,s,o,l,u,d),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class ZD extends o8{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const i={width:e,height:e,depth:1},r=[i,i,i,i,i,i];t.encoding!==void 0&&(a8("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===r8?J0:C6),this.texture=new GT(r,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:at}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:`
varying vec3 vWorldDirection;
@@ -1043,9 +1043,9 @@ if (customElements.get(tag) == null) {
gl_FragColor = texture2D( tEquirect, sampleUV );
}
- `},r=new Qr(5,5,5),a=new i5({name:"CubemapFromEquirect",uniforms:Vr(i.uniforms),vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,side:Nn,blending:X5});a.uniforms.tEquirect.value=t;const s=new R0(r,a),o=t.minFilter;return t.minFilter===Zi&&(t.minFilter=at),new qD(1,10,this).update(e,s),t.minFilter=o,s.geometry.dispose(),s.material.dispose(),this}clear(e,t,i,r){const a=e.getRenderTarget();for(let s=0;s<6;s++)e.setRenderTarget(this,s),e.clear(t,i,r);e.setRenderTarget(a)}}const Kc=new k2,XD=new k2,JD=new w0;let F5=class{constructor(e=new k2(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,i,r){return this.normal.set(e,t,i),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,i){const r=Kc.subVectors(i,t).cross(XD.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const i=e.delta(Kc),r=this.normal.dot(i);if(r===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;const a=-(e.start.dot(this.normal)+this.constant)/r;return a<0||a>1?null:t.copy(e.start).addScaledVector(i,a)}intersectsLine(e){const t=this.distanceToPoint(e.start),i=this.distanceToPoint(e.end);return t<0&&i>0||i<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const i=t||JD.getNormalMatrix(e),r=this.coplanarPoint(Kc).applyMatrix4(e),a=this.normal.applyMatrix3(i).normalize();return this.constant=-r.dot(a),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}};const k9=new D6,C7=new k2;class bf{constructor(e=new F5,t=new F5,i=new F5,r=new F5,a=new F5,s=new F5){this.planes=[e,t,i,r,a,s]}set(e,t,i,r,a,s){const o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(i),o[3].copy(r),o[4].copy(a),o[5].copy(s),this}copy(e){const t=this.planes;for(let i=0;i<6;i++)t[i].copy(e.planes[i]);return this}setFromProjectionMatrix(e,t=Qi){const i=this.planes,r=e.elements,a=r[0],s=r[1],o=r[2],l=r[3],u=r[4],d=r[5],h=r[6],f=r[7],v=r[8],_=r[9],b=r[10],y=r[11],w=r[12],U=r[13],P=r[14],O=r[15];if(i[0].setComponents(l-a,f-u,y-v,O-w).normalize(),i[1].setComponents(l+a,f+u,y+v,O+w).normalize(),i[2].setComponents(l+s,f+d,y+_,O+U).normalize(),i[3].setComponents(l-s,f-d,y-_,O-U).normalize(),i[4].setComponents(l-o,f-h,y-b,O-P).normalize(),t===Qi)i[5].setComponents(l+o,f+h,y+b,O+P).normalize();else if(t===$o)i[5].setComponents(o,h,b,P).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),k9.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),k9.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(k9)}intersectsSprite(e){return k9.center.set(0,0,0),k9.radius=.7071067811865476,k9.applyMatrix4(e.matrixWorld),this.intersectsSphere(k9)}intersectsSphere(e){const t=this.planes,i=e.center,r=-e.radius;for(let a=0;a<6;a++)if(t[a].distanceToPoint(i)0?e.max.x:e.min.x,C7.y=r.normal.y>0?e.max.y:e.min.y,C7.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(C7)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let i=0;i<6;i++)if(t[i].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function BT(){let n=null,e=!1,t=null,i=null;function r(a,s){t(a,s),i=n.requestAnimationFrame(r)}return{start:function(){e!==!0&&t!==null&&(i=n.requestAnimationFrame(r),e=!0)},stop:function(){n.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(a){t=a},setContext:function(a){n=a}}}function ZD(n,e){const t=e.isWebGL2,i=new WeakMap;function r(u,d){const h=u.array,f=u.usage,v=h.byteLength,_=n.createBuffer();n.bindBuffer(d,_),n.bufferData(d,h,f),u.onUploadCallback();let b;if(h instanceof Float32Array)b=n.FLOAT;else if(h instanceof Uint16Array)if(u.isFloat16BufferAttribute)if(t)b=n.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else b=n.UNSIGNED_SHORT;else if(h instanceof Int16Array)b=n.SHORT;else if(h instanceof Uint32Array)b=n.UNSIGNED_INT;else if(h instanceof Int32Array)b=n.INT;else if(h instanceof Int8Array)b=n.BYTE;else if(h instanceof Uint8Array)b=n.UNSIGNED_BYTE;else if(h instanceof Uint8ClampedArray)b=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+h);return{buffer:_,type:b,bytesPerElement:h.BYTES_PER_ELEMENT,version:u.version,size:v}}function a(u,d,h){const f=d.array,v=d._updateRange,_=d.updateRanges;if(n.bindBuffer(h,u),v.count===-1&&_.length===0&&n.bufferSubData(h,0,f),_.length!==0){for(let b=0,y=_.length;b1?null:t.copy(e.start).addScaledVector(i,a)}intersectsLine(e){const t=this.distanceToPoint(e.start),i=this.distanceToPoint(e.end);return t<0&&i>0||i<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const i=t||eU.getNormalMatrix(e),r=this.coplanarPoint(Zc).applyMatrix4(e),a=this.normal.applyMatrix3(i).normalize();return this.constant=-r.dot(a),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}};const F9=new D6,E7=new k2;class xf{constructor(e=new D5,t=new D5,i=new D5,r=new D5,a=new D5,s=new D5){this.planes=[e,t,i,r,a,s]}set(e,t,i,r,a,s){const o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(i),o[3].copy(r),o[4].copy(a),o[5].copy(s),this}copy(e){const t=this.planes;for(let i=0;i<6;i++)t[i].copy(e.planes[i]);return this}setFromProjectionMatrix(e,t=e5){const i=this.planes,r=e.elements,a=r[0],s=r[1],o=r[2],l=r[3],u=r[4],d=r[5],h=r[6],f=r[7],v=r[8],_=r[9],b=r[10],y=r[11],w=r[12],D=r[13],R=r[14],U=r[15];if(i[0].setComponents(l-a,f-u,y-v,U-w).normalize(),i[1].setComponents(l+a,f+u,y+v,U+w).normalize(),i[2].setComponents(l+s,f+d,y+_,U+D).normalize(),i[3].setComponents(l-s,f-d,y-_,U-D).normalize(),i[4].setComponents(l-o,f-h,y-b,U-R).normalize(),t===e5)i[5].setComponents(l+o,f+h,y+b,U+R).normalize();else if(t===Ko)i[5].setComponents(o,h,b,R).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),F9.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),F9.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(F9)}intersectsSprite(e){return F9.center.set(0,0,0),F9.radius=.7071067811865476,F9.applyMatrix4(e.matrixWorld),this.intersectsSphere(F9)}intersectsSphere(e){const t=this.planes,i=e.center,r=-e.radius;for(let a=0;a<6;a++)if(t[a].distanceToPoint(i)0?e.max.x:e.min.x,E7.y=r.normal.y>0?e.max.y:e.min.y,E7.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(E7)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let i=0;i<6;i++)if(t[i].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function VT(){let n=null,e=!1,t=null,i=null;function r(a,s){t(a,s),i=n.requestAnimationFrame(r)}return{start:function(){e!==!0&&t!==null&&(i=n.requestAnimationFrame(r),e=!0)},stop:function(){n.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(a){t=a},setContext:function(a){n=a}}}function tU(n,e){const t=e.isWebGL2,i=new WeakMap;function r(u,d){const h=u.array,f=u.usage,v=h.byteLength,_=n.createBuffer();n.bindBuffer(d,_),n.bufferData(d,h,f),u.onUploadCallback();let b;if(h instanceof Float32Array)b=n.FLOAT;else if(h instanceof Uint16Array)if(u.isFloat16BufferAttribute)if(t)b=n.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else b=n.UNSIGNED_SHORT;else if(h instanceof Int16Array)b=n.SHORT;else if(h instanceof Uint32Array)b=n.UNSIGNED_INT;else if(h instanceof Int32Array)b=n.INT;else if(h instanceof Int8Array)b=n.BYTE;else if(h instanceof Uint8Array)b=n.UNSIGNED_BYTE;else if(h instanceof Uint8ClampedArray)b=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+h);return{buffer:_,type:b,bytesPerElement:h.BYTES_PER_ELEMENT,version:u.version,size:v}}function a(u,d,h){const f=d.array,v=d._updateRange,_=d.updateRanges;if(n.bindBuffer(h,u),v.count===-1&&_.length===0&&n.bufferSubData(h,0,f),_.length!==0){for(let b=0,y=_.length;b 0
+#endif`,vU=`#if NUM_CLIPPING_PLANES > 0
vec4 plane;
#ifdef ALPHA_TO_COVERAGE
float distanceToPlane, distanceGradient;
@@ -1275,26 +1275,26 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve
if ( clipped ) discard;
#endif
#endif
-#endif`,mU=`#if NUM_CLIPPING_PLANES > 0
+#endif`,yU=`#if NUM_CLIPPING_PLANES > 0
varying vec3 vClipPosition;
uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];
-#endif`,gU=`#if NUM_CLIPPING_PLANES > 0
+#endif`,_U=`#if NUM_CLIPPING_PLANES > 0
varying vec3 vClipPosition;
-#endif`,vU=`#if NUM_CLIPPING_PLANES > 0
+#endif`,SU=`#if NUM_CLIPPING_PLANES > 0
vClipPosition = - mvPosition.xyz;
-#endif`,yU=`#if defined( USE_COLOR_ALPHA )
+#endif`,bU=`#if defined( USE_COLOR_ALPHA )
diffuseColor *= vColor;
#elif defined( USE_COLOR )
diffuseColor.rgb *= vColor;
-#endif`,_U=`#if defined( USE_COLOR_ALPHA )
+#endif`,TU=`#if defined( USE_COLOR_ALPHA )
varying vec4 vColor;
#elif defined( USE_COLOR )
varying vec3 vColor;
-#endif`,SU=`#if defined( USE_COLOR_ALPHA )
+#endif`,wU=`#if defined( USE_COLOR_ALPHA )
varying vec4 vColor;
#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )
varying vec3 vColor;
-#endif`,bU=`#if defined( USE_COLOR_ALPHA )
+#endif`,xU=`#if defined( USE_COLOR_ALPHA )
vColor = vec4( 1.0 );
#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )
vColor = vec3( 1.0 );
@@ -1304,7 +1304,7 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve
#endif
#ifdef USE_INSTANCING_COLOR
vColor.xyz *= instanceColor.xyz;
-#endif`,TU=`#define PI 3.141592653589793
+#endif`,AU=`#define PI 3.141592653589793
#define PI2 6.283185307179586
#define PI_HALF 1.5707963267948966
#define RECIPROCAL_PI 0.3183098861837907
@@ -1382,7 +1382,7 @@ vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {
float F_Schlick( const in float f0, const in float f90, const in float dotVH ) {
float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
-} // validated`,wU=`#ifdef ENVMAP_TYPE_CUBE_UV
+} // validated`,CU=`#ifdef ENVMAP_TYPE_CUBE_UV
#define cubeUV_minMipLevel 4.0
#define cubeUV_minTileSize 16.0
float getFace( vec3 direction ) {
@@ -1475,7 +1475,7 @@ float F_Schlick( const in float f0, const in float f90, const in float dotVH ) {
return vec4( mix( color0, color1, mipF ), 1.0 );
}
}
-#endif`,xU=`vec3 transformedNormal = objectNormal;
+#endif`,MU=`vec3 transformedNormal = objectNormal;
#ifdef USE_TANGENT
vec3 transformedTangent = objectTangent;
#endif
@@ -1504,18 +1504,18 @@ transformedNormal = normalMatrix * transformedNormal;
#ifdef FLIP_SIDED
transformedTangent = - transformedTangent;
#endif
-#endif`,AU=`#ifdef USE_DISPLACEMENTMAP
+#endif`,EU=`#ifdef USE_DISPLACEMENTMAP
uniform sampler2D displacementMap;
uniform float displacementScale;
uniform float displacementBias;
-#endif`,CU=`#ifdef USE_DISPLACEMENTMAP
+#endif`,PU=`#ifdef USE_DISPLACEMENTMAP
transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );
-#endif`,MU=`#ifdef USE_EMISSIVEMAP
+#endif`,RU=`#ifdef USE_EMISSIVEMAP
vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );
totalEmissiveRadiance *= emissiveColor.rgb;
-#endif`,EU=`#ifdef USE_EMISSIVEMAP
+#endif`,NU=`#ifdef USE_EMISSIVEMAP
uniform sampler2D emissiveMap;
-#endif`,PU="gl_FragColor = linearToOutputTexel( gl_FragColor );",RU=`
+#endif`,LU="gl_FragColor = linearToOutputTexel( gl_FragColor );",IU=`
const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(
vec3( 0.8224621, 0.177538, 0.0 ),
vec3( 0.0331941, 0.9668058, 0.0 ),
@@ -1543,7 +1543,7 @@ vec4 LinearToLinear( in vec4 value ) {
}
vec4 LinearTosRGB( in vec4 value ) {
return sRGBTransferOETF( value );
-}`,NU=`#ifdef USE_ENVMAP
+}`,kU=`#ifdef USE_ENVMAP
#ifdef ENV_WORLDPOS
vec3 cameraToFrag;
if ( isOrthographic ) {
@@ -1572,7 +1572,7 @@ vec4 LinearTosRGB( in vec4 value ) {
#elif defined( ENVMAP_BLENDING_ADD )
outgoingLight += envColor.xyz * specularStrength * reflectivity;
#endif
-#endif`,LU=`#ifdef USE_ENVMAP
+#endif`,FU=`#ifdef USE_ENVMAP
uniform float envMapIntensity;
uniform float flipEnvMap;
#ifdef ENVMAP_TYPE_CUBE
@@ -1580,8 +1580,8 @@ vec4 LinearTosRGB( in vec4 value ) {
#else
uniform sampler2D envMap;
#endif
-
-#endif`,IU=`#ifdef USE_ENVMAP
+
+#endif`,DU=`#ifdef USE_ENVMAP
uniform float reflectivity;
#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
#define ENV_WORLDPOS
@@ -1592,18 +1592,18 @@ vec4 LinearTosRGB( in vec4 value ) {
#else
varying vec3 vReflect;
#endif
-#endif`,kU=`#ifdef USE_ENVMAP
+#endif`,UU=`#ifdef USE_ENVMAP
#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
#define ENV_WORLDPOS
#endif
#ifdef ENV_WORLDPOS
-
+
varying vec3 vWorldPosition;
#else
varying vec3 vReflect;
uniform float refractionRatio;
#endif
-#endif`,FU=`#ifdef USE_ENVMAP
+#endif`,OU=`#ifdef USE_ENVMAP
#ifdef ENV_WORLDPOS
vWorldPosition = worldPosition.xyz;
#else
@@ -1620,18 +1620,18 @@ vec4 LinearTosRGB( in vec4 value ) {
vReflect = refract( cameraToVertex, worldNormal, refractionRatio );
#endif
#endif
-#endif`,DU=`#ifdef USE_FOG
+#endif`,BU=`#ifdef USE_FOG
vFogDepth = - mvPosition.z;
-#endif`,UU=`#ifdef USE_FOG
+#endif`,zU=`#ifdef USE_FOG
varying float vFogDepth;
-#endif`,OU=`#ifdef USE_FOG
+#endif`,GU=`#ifdef USE_FOG
#ifdef FOG_EXP2
float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );
#else
float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );
#endif
gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
-#endif`,BU=`#ifdef USE_FOG
+#endif`,VU=`#ifdef USE_FOG
uniform vec3 fogColor;
varying float vFogDepth;
#ifdef FOG_EXP2
@@ -1640,7 +1640,7 @@ vec4 LinearTosRGB( in vec4 value ) {
uniform float fogNear;
uniform float fogFar;
#endif
-#endif`,zU=`#ifdef USE_GRADIENTMAP
+#endif`,HU=`#ifdef USE_GRADIENTMAP
uniform sampler2D gradientMap;
#endif
vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {
@@ -1652,16 +1652,16 @@ vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {
vec2 fw = fwidth( coord ) * 0.5;
return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );
#endif
-}`,GU=`#ifdef USE_LIGHTMAP
+}`,jU=`#ifdef USE_LIGHTMAP
vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
reflectedLight.indirectDiffuse += lightMapIrradiance;
-#endif`,VU=`#ifdef USE_LIGHTMAP
+#endif`,WU=`#ifdef USE_LIGHTMAP
uniform sampler2D lightMap;
uniform float lightMapIntensity;
-#endif`,HU=`LambertMaterial material;
+#endif`,$U=`LambertMaterial material;
material.diffuseColor = diffuseColor.rgb;
-material.specularStrength = specularStrength;`,jU=`varying vec3 vViewPosition;
+material.specularStrength = specularStrength;`,YU=`varying vec3 vViewPosition;
struct LambertMaterial {
vec3 diffuseColor;
float specularStrength;
@@ -1675,7 +1675,7 @@ void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometr
reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
#define RE_Direct RE_Direct_Lambert
-#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,WU=`uniform bool receiveShadow;
+#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,qU=`uniform bool receiveShadow;
uniform vec3 ambientLightColor;
#if defined( USE_LIGHT_PROBES )
uniform vec3 lightProbe[ 9 ];
@@ -1798,7 +1798,7 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi
vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );
return irradiance;
}
-#endif`,$U=`#ifdef USE_ENVMAP
+#endif`,KU=`#ifdef USE_ENVMAP
vec3 getIBLIrradiance( const in vec3 normal ) {
#ifdef ENVMAP_TYPE_CUBE_UV
vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
@@ -1831,8 +1831,8 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi
#endif
}
#endif
-#endif`,YU=`ToonMaterial material;
-material.diffuseColor = diffuseColor.rgb;`,qU=`varying vec3 vViewPosition;
+#endif`,XU=`ToonMaterial material;
+material.diffuseColor = diffuseColor.rgb;`,JU=`varying vec3 vViewPosition;
struct ToonMaterial {
vec3 diffuseColor;
};
@@ -1844,11 +1844,11 @@ void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPo
reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
#define RE_Direct RE_Direct_Toon
-#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,KU=`BlinnPhongMaterial material;
+#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,ZU=`BlinnPhongMaterial material;
material.diffuseColor = diffuseColor.rgb;
material.specularColor = specular;
material.specularShininess = shininess;
-material.specularStrength = specularStrength;`,XU=`varying vec3 vViewPosition;
+material.specularStrength = specularStrength;`,QU=`varying vec3 vViewPosition;
struct BlinnPhongMaterial {
vec3 diffuseColor;
vec3 specularColor;
@@ -1865,7 +1865,7 @@ void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geom
reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
#define RE_Direct RE_Direct_BlinnPhong
-#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,JU=`PhysicalMaterial material;
+#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,eO=`PhysicalMaterial material;
material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );
vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );
float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );
@@ -1948,7 +1948,7 @@ material.roughness = min( material.roughness, 1.0 );
material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );
material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;
material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;
-#endif`,ZU=`struct PhysicalMaterial {
+#endif`,tO=`struct PhysicalMaterial {
vec3 diffuseColor;
float roughness;
vec3 specularColor;
@@ -2248,7 +2248,7 @@ void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradia
#define RE_IndirectSpecular RE_IndirectSpecular_Physical
float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {
return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );
-}`,QU=`
+}`,nO=`
vec3 geometryPosition = - vViewPosition;
vec3 geometryNormal = normal;
vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );
@@ -2363,7 +2363,7 @@ IncidentLight directLight;
#if defined( RE_IndirectSpecular )
vec3 radiance = vec3( 0.0 );
vec3 clearcoatRadiance = vec3( 0.0 );
-#endif`,eO=`#if defined( RE_IndirectDiffuse )
+#endif`,iO=`#if defined( RE_IndirectDiffuse )
#ifdef USE_LIGHTMAP
vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
@@ -2382,25 +2382,25 @@ IncidentLight directLight;
#ifdef USE_CLEARCOAT
clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );
#endif
-#endif`,tO=`#if defined( RE_IndirectDiffuse )
+#endif`,rO=`#if defined( RE_IndirectDiffuse )
RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
#endif
#if defined( RE_IndirectSpecular )
RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
-#endif`,nO=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
+#endif`,aO=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;
-#endif`,iO=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
+#endif`,sO=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
uniform float logDepthBufFC;
varying float vFragDepth;
varying float vIsPerspective;
-#endif`,rO=`#ifdef USE_LOGDEPTHBUF
+#endif`,oO=`#ifdef USE_LOGDEPTHBUF
#ifdef USE_LOGDEPTHBUF_EXT
varying float vFragDepth;
varying float vIsPerspective;
#else
uniform float logDepthBufFC;
#endif
-#endif`,aO=`#ifdef USE_LOGDEPTHBUF
+#endif`,lO=`#ifdef USE_LOGDEPTHBUF
#ifdef USE_LOGDEPTHBUF_EXT
vFragDepth = 1.0 + gl_Position.w;
vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );
@@ -2410,16 +2410,16 @@ IncidentLight directLight;
gl_Position.z *= gl_Position.w;
}
#endif
-#endif`,sO=`#ifdef USE_MAP
+#endif`,uO=`#ifdef USE_MAP
vec4 sampledDiffuseColor = texture2D( map, vMapUv );
#ifdef DECODE_VIDEO_TEXTURE
sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );
-
+
#endif
diffuseColor *= sampledDiffuseColor;
-#endif`,oO=`#ifdef USE_MAP
+#endif`,cO=`#ifdef USE_MAP
uniform sampler2D map;
-#endif`,lO=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
+#endif`,dO=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
#if defined( USE_POINTS_UV )
vec2 uv = vUv;
#else
@@ -2431,7 +2431,7 @@ IncidentLight directLight;
#endif
#ifdef USE_ALPHAMAP
diffuseColor.a *= texture2D( alphaMap, uv ).g;
-#endif`,uO=`#if defined( USE_POINTS_UV )
+#endif`,hO=`#if defined( USE_POINTS_UV )
varying vec2 vUv;
#else
#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
@@ -2443,13 +2443,13 @@ IncidentLight directLight;
#endif
#ifdef USE_ALPHAMAP
uniform sampler2D alphaMap;
-#endif`,cO=`float metalnessFactor = metalness;
+#endif`,fO=`float metalnessFactor = metalness;
#ifdef USE_METALNESSMAP
vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );
metalnessFactor *= texelMetalness.b;
-#endif`,dO=`#ifdef USE_METALNESSMAP
+#endif`,pO=`#ifdef USE_METALNESSMAP
uniform sampler2D metalnessMap;
-#endif`,hO=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )
+#endif`,mO=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )
vColor *= morphTargetBaseInfluence;
for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
#if defined( USE_COLOR_ALPHA )
@@ -2458,7 +2458,7 @@ IncidentLight directLight;
if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];
#endif
}
-#endif`,fO=`#ifdef USE_MORPHNORMALS
+#endif`,gO=`#ifdef USE_MORPHNORMALS
objectNormal *= morphTargetBaseInfluence;
#ifdef MORPHTARGETS_TEXTURE
for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
@@ -2470,7 +2470,7 @@ IncidentLight directLight;
objectNormal += morphNormal2 * morphTargetInfluences[ 2 ];
objectNormal += morphNormal3 * morphTargetInfluences[ 3 ];
#endif
-#endif`,pO=`#ifdef USE_MORPHTARGETS
+#endif`,vO=`#ifdef USE_MORPHTARGETS
uniform float morphTargetBaseInfluence;
#ifdef MORPHTARGETS_TEXTURE
uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];
@@ -2490,7 +2490,7 @@ IncidentLight directLight;
uniform float morphTargetInfluences[ 4 ];
#endif
#endif
-#endif`,mO=`#ifdef USE_MORPHTARGETS
+#endif`,yO=`#ifdef USE_MORPHTARGETS
transformed *= morphTargetBaseInfluence;
#ifdef MORPHTARGETS_TEXTURE
for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
@@ -2508,7 +2508,7 @@ IncidentLight directLight;
transformed += morphTarget7 * morphTargetInfluences[ 7 ];
#endif
#endif
-#endif`,gO=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;
+#endif`,_O=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;
#ifdef FLAT_SHADED
vec3 fdx = dFdx( vViewPosition );
vec3 fdy = dFdy( vViewPosition );
@@ -2549,7 +2549,7 @@ IncidentLight directLight;
tbn2[1] *= faceDirection;
#endif
#endif
-vec3 nonPerturbedNormal = normal;`,vO=`#ifdef USE_NORMALMAP_OBJECTSPACE
+vec3 nonPerturbedNormal = normal;`,SO=`#ifdef USE_NORMALMAP_OBJECTSPACE
normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
#ifdef FLIP_SIDED
normal = - normal;
@@ -2564,25 +2564,25 @@ vec3 nonPerturbedNormal = normal;`,vO=`#ifdef USE_NORMALMAP_OBJECTSPACE
normal = normalize( tbn * mapN );
#elif defined( USE_BUMPMAP )
normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );
-#endif`,yO=`#ifndef FLAT_SHADED
+#endif`,bO=`#ifndef FLAT_SHADED
varying vec3 vNormal;
#ifdef USE_TANGENT
varying vec3 vTangent;
varying vec3 vBitangent;
#endif
-#endif`,_O=`#ifndef FLAT_SHADED
+#endif`,TO=`#ifndef FLAT_SHADED
varying vec3 vNormal;
#ifdef USE_TANGENT
varying vec3 vTangent;
varying vec3 vBitangent;
#endif
-#endif`,SO=`#ifndef FLAT_SHADED
+#endif`,wO=`#ifndef FLAT_SHADED
vNormal = normalize( transformedNormal );
#ifdef USE_TANGENT
vTangent = normalize( transformedTangent );
vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );
#endif
-#endif`,bO=`#ifdef USE_NORMALMAP
+#endif`,xO=`#ifdef USE_NORMALMAP
uniform sampler2D normalMap;
uniform vec2 normalScale;
#endif
@@ -2604,13 +2604,13 @@ vec3 nonPerturbedNormal = normal;`,vO=`#ifdef USE_NORMALMAP_OBJECTSPACE
float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );
return mat3( T * scale, B * scale, N );
}
-#endif`,TO=`#ifdef USE_CLEARCOAT
+#endif`,AO=`#ifdef USE_CLEARCOAT
vec3 clearcoatNormal = nonPerturbedNormal;
-#endif`,wO=`#ifdef USE_CLEARCOAT_NORMALMAP
+#endif`,CO=`#ifdef USE_CLEARCOAT_NORMALMAP
vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;
clearcoatMapN.xy *= clearcoatNormalScale;
clearcoatNormal = normalize( tbn2 * clearcoatMapN );
-#endif`,xO=`#ifdef USE_CLEARCOATMAP
+#endif`,MO=`#ifdef USE_CLEARCOATMAP
uniform sampler2D clearcoatMap;
#endif
#ifdef USE_CLEARCOAT_NORMALMAP
@@ -2619,18 +2619,18 @@ vec3 nonPerturbedNormal = normal;`,vO=`#ifdef USE_NORMALMAP_OBJECTSPACE
#endif
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
uniform sampler2D clearcoatRoughnessMap;
-#endif`,AO=`#ifdef USE_IRIDESCENCEMAP
+#endif`,EO=`#ifdef USE_IRIDESCENCEMAP
uniform sampler2D iridescenceMap;
#endif
#ifdef USE_IRIDESCENCE_THICKNESSMAP
uniform sampler2D iridescenceThicknessMap;
-#endif`,CO=`#ifdef OPAQUE
+#endif`,PO=`#ifdef OPAQUE
diffuseColor.a = 1.0;
#endif
#ifdef USE_TRANSMISSION
diffuseColor.a *= material.transmissionAlpha;
#endif
-gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,MO=`vec3 packNormalToRGB( const in vec3 normal ) {
+gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,RO=`vec3 packNormalToRGB( const in vec3 normal ) {
return normalize( normal ) * 0.5 + 0.5;
}
vec3 unpackRGBToNormal( const in vec3 rgb ) {
@@ -2671,9 +2671,9 @@ float viewZToPerspectiveDepth( const in float viewZ, const in float near, const
}
float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {
return ( near * far ) / ( ( far - near ) * depth - far );
-}`,EO=`#ifdef PREMULTIPLIED_ALPHA
+}`,NO=`#ifdef PREMULTIPLIED_ALPHA
gl_FragColor.rgb *= gl_FragColor.a;
-#endif`,PO=`vec4 mvPosition = vec4( transformed, 1.0 );
+#endif`,LO=`vec4 mvPosition = vec4( transformed, 1.0 );
#ifdef USE_BATCHING
mvPosition = batchingMatrix * mvPosition;
#endif
@@ -2681,22 +2681,22 @@ float perspectiveDepthToViewZ( const in float depth, const in float near, const
mvPosition = instanceMatrix * mvPosition;
#endif
mvPosition = modelViewMatrix * mvPosition;
-gl_Position = projectionMatrix * mvPosition;`,RO=`#ifdef DITHERING
+gl_Position = projectionMatrix * mvPosition;`,IO=`#ifdef DITHERING
gl_FragColor.rgb = dithering( gl_FragColor.rgb );
-#endif`,NO=`#ifdef DITHERING
+#endif`,kO=`#ifdef DITHERING
vec3 dithering( vec3 color ) {
float grid_position = rand( gl_FragCoord.xy );
vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );
dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );
return color + dither_shift_RGB;
}
-#endif`,LO=`float roughnessFactor = roughness;
+#endif`,FO=`float roughnessFactor = roughness;
#ifdef USE_ROUGHNESSMAP
vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );
roughnessFactor *= texelRoughness.g;
-#endif`,IO=`#ifdef USE_ROUGHNESSMAP
+#endif`,DO=`#ifdef USE_ROUGHNESSMAP
uniform sampler2D roughnessMap;
-#endif`,kO=`#if NUM_SPOT_LIGHT_COORDS > 0
+#endif`,UO=`#if NUM_SPOT_LIGHT_COORDS > 0
varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
#endif
#if NUM_SPOT_LIGHT_MAPS > 0
@@ -2873,7 +2873,7 @@ gl_Position = projectionMatrix * mvPosition;`,RO=`#ifdef DITHERING
return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );
#endif
}
-#endif`,FO=`#if NUM_SPOT_LIGHT_COORDS > 0
+#endif`,OO=`#if NUM_SPOT_LIGHT_COORDS > 0
uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];
varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
#endif
@@ -2911,7 +2911,7 @@ gl_Position = projectionMatrix * mvPosition;`,RO=`#ifdef DITHERING
};
uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
#endif
-#endif`,DO=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )
+#endif`,BO=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )
vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
vec4 shadowWorldPosition;
#endif
@@ -2943,7 +2943,7 @@ gl_Position = projectionMatrix * mvPosition;`,RO=`#ifdef DITHERING
vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;
}
#pragma unroll_loop_end
-#endif`,UO=`float getShadowMask() {
+#endif`,zO=`float getShadowMask() {
float shadow = 1.0;
#ifdef USE_SHADOWMAP
#if NUM_DIR_LIGHT_SHADOWS > 0
@@ -2975,12 +2975,12 @@ gl_Position = projectionMatrix * mvPosition;`,RO=`#ifdef DITHERING
#endif
#endif
return shadow;
-}`,OO=`#ifdef USE_SKINNING
+}`,GO=`#ifdef USE_SKINNING
mat4 boneMatX = getBoneMatrix( skinIndex.x );
mat4 boneMatY = getBoneMatrix( skinIndex.y );
mat4 boneMatZ = getBoneMatrix( skinIndex.z );
mat4 boneMatW = getBoneMatrix( skinIndex.w );
-#endif`,BO=`#ifdef USE_SKINNING
+#endif`,VO=`#ifdef USE_SKINNING
uniform mat4 bindMatrix;
uniform mat4 bindMatrixInverse;
uniform highp sampler2D boneTexture;
@@ -2995,7 +2995,7 @@ gl_Position = projectionMatrix * mvPosition;`,RO=`#ifdef DITHERING
vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );
return mat4( v1, v2, v3, v4 );
}
-#endif`,zO=`#ifdef USE_SKINNING
+#endif`,HO=`#ifdef USE_SKINNING
vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );
vec4 skinned = vec4( 0.0 );
skinned += boneMatX * skinVertex * skinWeight.x;
@@ -3003,7 +3003,7 @@ gl_Position = projectionMatrix * mvPosition;`,RO=`#ifdef DITHERING
skinned += boneMatZ * skinVertex * skinWeight.z;
skinned += boneMatW * skinVertex * skinWeight.w;
transformed = ( bindMatrixInverse * skinned ).xyz;
-#endif`,GO=`#ifdef USE_SKINNING
+#endif`,jO=`#ifdef USE_SKINNING
mat4 skinMatrix = mat4( 0.0 );
skinMatrix += skinWeight.x * boneMatX;
skinMatrix += skinWeight.y * boneMatY;
@@ -3014,17 +3014,17 @@ gl_Position = projectionMatrix * mvPosition;`,RO=`#ifdef DITHERING
#ifdef USE_TANGENT
objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;
#endif
-#endif`,VO=`float specularStrength;
+#endif`,WO=`float specularStrength;
#ifdef USE_SPECULARMAP
vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );
specularStrength = texelSpecular.r;
#else
specularStrength = 1.0;
-#endif`,HO=`#ifdef USE_SPECULARMAP
+#endif`,$O=`#ifdef USE_SPECULARMAP
uniform sampler2D specularMap;
-#endif`,jO=`#if defined( TONE_MAPPING )
+#endif`,YO=`#if defined( TONE_MAPPING )
gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );
-#endif`,WO=`#ifndef saturate
+#endif`,qO=`#ifndef saturate
#define saturate( a ) clamp( a, 0.0, 1.0 )
#endif
uniform float toneMappingExposure;
@@ -3106,7 +3106,7 @@ vec3 AgXToneMapping( vec3 color ) {
color = clamp( color, 0.0, 1.0 );
return color;
}
-vec3 CustomToneMapping( vec3 color ) { return color; }`,$O=`#ifdef USE_TRANSMISSION
+vec3 CustomToneMapping( vec3 color ) { return color; }`,KO=`#ifdef USE_TRANSMISSION
material.transmission = transmission;
material.transmissionAlpha = 1.0;
material.thickness = thickness;
@@ -3127,7 +3127,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,$O=`#ifdef USE_TRANSMISS
material.attenuationColor, material.attenuationDistance );
material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );
totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );
-#endif`,YO=`#ifdef USE_TRANSMISSION
+#endif`,XO=`#ifdef USE_TRANSMISSION
uniform float transmission;
uniform float thickness;
uniform float attenuationDistance;
@@ -3233,7 +3233,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,$O=`#ifdef USE_TRANSMISS
float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;
return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );
}
-#endif`,qO=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
+#endif`,JO=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
varying vec2 vUv;
#endif
#ifdef USE_MAP
@@ -3303,7 +3303,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,$O=`#ifdef USE_TRANSMISS
#ifdef USE_THICKNESSMAP
uniform mat3 thicknessMapTransform;
varying vec2 vThicknessMapUv;
-#endif`,KO=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
+#endif`,ZO=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
varying vec2 vUv;
#endif
#ifdef USE_MAP
@@ -3397,7 +3397,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,$O=`#ifdef USE_TRANSMISS
#ifdef USE_THICKNESSMAP
uniform mat3 thicknessMapTransform;
varying vec2 vThicknessMapUv;
-#endif`,XO=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
+#endif`,QO=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
vUv = vec3( uv, 1 ).xy;
#endif
#ifdef USE_MAP
@@ -3468,7 +3468,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,$O=`#ifdef USE_TRANSMISS
#endif
#ifdef USE_THICKNESSMAP
vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;
-#endif`,JO=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0
+#endif`,eB=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0
vec4 worldPosition = vec4( transformed, 1.0 );
#ifdef USE_BATCHING
worldPosition = batchingMatrix * worldPosition;
@@ -3477,12 +3477,12 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,$O=`#ifdef USE_TRANSMISS
worldPosition = instanceMatrix * worldPosition;
#endif
worldPosition = modelMatrix * worldPosition;
-#endif`;const ZO=`varying vec2 vUv;
+#endif`;const tB=`varying vec2 vUv;
uniform mat3 uvTransform;
void main() {
vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
gl_Position = vec4( position.xy, 1.0, 1.0 );
-}`,QO=`uniform sampler2D t2D;
+}`,nB=`uniform sampler2D t2D;
uniform float backgroundIntensity;
varying vec2 vUv;
void main() {
@@ -3494,14 +3494,14 @@ void main() {
gl_FragColor = texColor;
#include
#include
-}`,eB=`varying vec3 vWorldDirection;
+}`,iB=`varying vec3 vWorldDirection;
#include
void main() {
vWorldDirection = transformDirection( position, modelMatrix );
#include
#include
gl_Position.z = gl_Position.w;
-}`,tB=`#ifdef ENVMAP_TYPE_CUBE
+}`,rB=`#ifdef ENVMAP_TYPE_CUBE
uniform samplerCube envMap;
#elif defined( ENVMAP_TYPE_CUBE_UV )
uniform sampler2D envMap;
@@ -3523,14 +3523,14 @@ void main() {
gl_FragColor = texColor;
#include
#include
-}`,nB=`varying vec3 vWorldDirection;
+}`,aB=`varying vec3 vWorldDirection;
#include
void main() {
vWorldDirection = transformDirection( position, modelMatrix );
#include
#include
gl_Position.z = gl_Position.w;
-}`,iB=`uniform samplerCube tCube;
+}`,sB=`uniform samplerCube tCube;
uniform float tFlip;
uniform float opacity;
varying vec3 vWorldDirection;
@@ -3540,7 +3540,7 @@ void main() {
gl_FragColor.a *= opacity;
#include
#include
-}`,rB=`#include
+}`,oB=`#include
#include
#include
#include
@@ -3566,7 +3566,7 @@ void main() {
#include
#include
vHighPrecisionZW = gl_Position.zw;
-}`,aB=`#if DEPTH_PACKING == 3200
+}`,lB=`#if DEPTH_PACKING == 3200
uniform float opacity;
#endif
#include
@@ -3596,7 +3596,7 @@ void main() {
#elif DEPTH_PACKING == 3201
gl_FragColor = packDepthToRGBA( fragCoordZ );
#endif
-}`,sB=`#define DISTANCE
+}`,uB=`#define DISTANCE
varying vec3 vWorldPosition;
#include
#include
@@ -3622,7 +3622,7 @@ void main() {
#include
#include