Agriculture-front-end/dist/assets/imouplayer.11688c87.js

16 lines
132 KiB
JavaScript
Raw Normal View History

2023-09-21 17:37:29 +08:00
var ft=(U,te)=>()=>(te||U((te={exports:{}}).exports,te),te.exports);import{$ as ae}from"./index.57224d07.js";import{r as dt,g as ht}from"./VideoSurveillance.2739de5e.js";var $t=ft((be,r0)=>{var xt={exports:{}};function vt(U){throw new Error('Could not dynamically require "'+U+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var we={exports:{}},p0;function ie(){return p0||(p0=1,function(U,te){(function(P,p){U.exports=p()})(ae,function(){var P=P||function(p,O){var H;if(typeof window<"u"&&window.crypto&&(H=window.crypto),typeof self<"u"&&self.crypto&&(H=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(H=globalThis.crypto),!H&&typeof window<"u"&&window.msCrypto&&(H=window.msCrypto),!H&&typeof ae<"u"&&ae.crypto&&(H=ae.crypto),!H&&typeof vt=="function")try{H=dt}catch{}var q=function(){if(H){if(typeof H.getRandomValues=="function")try{return H.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof H.randomBytes=="function")try{return H.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},M=Object.create||function(){function v(){}return function(y){var B;return v.prototype=y,B=new v,v.prototype=null,B}}(),S={},c=S.lib={},u=c.Base=function(){return{extend:function(v){var y=M(this);return v&&y.mixIn(v),(!y.hasOwnProperty("init")||this.init===y.init)&&(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var y in v)v.hasOwnProperty(y)&&(this[y]=v[y]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),E=c.WordArray=u.extend({init:function(v,y){v=this.words=v||[],y!=O?this.sigBytes=y:this.sigBytes=v.length*4},toString:function(v){return(v||d).stringify(this)},concat:function(v){var y=this.words,B=v.words,g=this.sigBytes,k=v.sigBytes;if(this.clamp(),g%4)for(var w=0;w<k;w++){var m=B[w>>>2]>>>24-w%4*8&255;y[g+w>>>2]|=m<<24-(g+w)%4*8}else for(var o=0;o<k;o+=4)y[g+o>>>2]=B[o>>>2];return this.sigBytes+=k,this},clamp:function(){var v=this.words,y=this.sigBytes;v[y>>>2]&=4294967295<<32-y%4*8,v.length=p.ceil(y/4)},clone:function(){var v=u.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var y=[],B=0;B<v;B+=4)y.push(q());return new E.init(y,v)}}),l=S.enc={},d=l.Hex={stringify:function(v){for(var y=v.words,B=v.sigBytes,g=[],k=0;k<B;k++){var w=y[k>>>2]>>>24-k%4*8&255;g.push((w>>>4).toString(16)),g.push((w&15).toString(16))}return g.join("")},parse:function(v){for(var y=v.length,B=[],g=0;g<y;g+=2)B[g>>>3]|=parseInt(v.substr(g,2),16)<<24-g%8*4;return new E.init(B,y/2)}},x=l.Latin1={stringify:function(v){for(var y=v.words,B=v.sigBytes,g=[],k=0;k<B;k++){var w=y[k>>>2]>>>24-k%4*8&255;g.push(String.fromCharCode(w))}return g.join("")},parse:function(v){for(var y=v.length,B=[],g=0;g<y;g++)B[g>>>2]|=(v.charCodeAt(g)&255)<<24-g%4*8;return new E.init(B,y)}},b=l.Utf8={stringify:function(v){try{return decodeURIComponent(escape(x.stringify(v)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(v){return x.parse(unescape(encodeURIComponent(v)))}},T=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new E.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=b.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var y,B=this._data,g=B.words,k=B.sigBytes,w=this.blockSize,m=w*4,o=k/m;v?o=p.ceil(o):o=p.max((o|0)-this._minBufferSize,0);var e=o*w,r=p.min(e*4,k);if(e){for(var s=0;s<e;s+=w)this._doProcessBlock(g,s);y=g.splice(0,e),B.sigBytes-=r}return new E.init(y,r)},clone:function(){var v=u.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0});c.Hasher=T.extend({cfg:u.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){T.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this}
2023-09-11 21:56:39 +08:00
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(p){var O=P,H=O.lib,q=H.WordArray,M=H.Hasher,S=O.algo,c=q.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=q.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),E=q.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=q.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=q.create([0,1518500249,1859775393,2400959708,2840853838]),x=q.create([1352829926,1548603684,1836072691,2053994217,0]),b=S.RIPEMD160=M.extend({_doReset:function(){this._hash=q.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(k,w){for(var m=0;m<16;m++){var o=w+m,e=k[o];k[o]=(e<<8|e>>>24)&16711935|(e<<24|e>>>8)&4278255360}var r=this._hash.words,s=d.words,t=x.words,n=c.words,a=u.words,i=E.words,f=l.words,L,_,R,h,D,z,A,K,W,Z;z=L=r[0],A=_=r[1],K=R=r[2],W=h=r[3],Z=D=r[4];for(var I,m=0;m<80;m+=1)I=L+k[w+n[m]]|0,m<16?I+=T(_,R,h)+s[0]:m<32?I+=$(_,R,h)+s[1]:m<48?I+=v(_,R,h)+s[2]:m<64?I+=y(_,R,h)+s[3]:I+=B(_,R,h)+s[4],I=I|0,I=g(I,i[m]),I=I+D|0,L=D,D=h,h=g(R,10),R=_,_=I,I=z+k[w+a[m]]|0,m<16?I+=B(A,K,W)+t[0]:m<32?I+=y(A,K,W)+t[1]:m<48?I+=v(A,K,W)+t[2]:m<64?I+=$(A,K,W)+t[3]:I+=T(A,K,W)+t[4],I=I|0,I=g(I,f[m]),I=I+Z|0,z=Z,Z=W,W=g(K,10),K=A,A=I;I=r[1]+R+W|0,r[1]=r[2]+h+Z|0,r[2]=r[3]+D+z|0,r[3]=r[4]+L+A|0,r[4]=r[0]+_+K|0,r[0]=I},_doFinalize:function(){var k=this._data,w=k.words,m=this._nDataBytes*8,o=k.sigBytes*8;w[o>>>5]|=128<<24-o%32,w[(o+64>>>9<<4)+14]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,k.sigBytes=(w.length+1)*4,this._process();for(var e=this._hash,r=e.words,s=0;s<5;s++){var t=r[s];r[s]=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360}return e},clone:function(){var k=M.clone.call(this);return k._hash=this._hash.clone(),k}});function T(k,w,m){return k^w^m}function $(k,w,m){return k&w|~k&m}function v(k,w,m){return(k|~w)^m}function y(k,w,m){return k&m|w&~m}function B(k,w,m){return k^(w|~m)}function g(k,w){return k<<w|k>>>32-w}O.RIPEMD160=M._createHelper(b),O.HmacRIPEMD160=M._createHmacHelper(b)}(),P.RIPEMD160})}(Me)),Me.exports}var Re={exports:{}},H0;function a0(){return H0||(H0=1,function(U,te){(function(P,p){U.exports=p(ie())})(ae,function(P){(function(){var p=P,O=p.lib,H=O.Base,q=p.enc,M=q.Utf8,S=p.algo;S.HMAC=H.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=M.parse(u));var E=c.blockSize,l=E*4;u.sigBytes>l&&(u=c.finalize(u)),u.clamp();for(var d=this._oKey=u.clone(),x=this._iKey=u.clone(),b=d.words,T=x.words,$=0;$<E;$++)b[$]^=1549556828,T[$]^=909522486;d.sigBytes=x.sigBytes=l,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,E=u.finalize(c);u.reset();var l=u.finalize(this._oKey.clone().concat(E));return l}})})()})}(Re)),Re.exports}var ze={exports:{}},L0;function kt(){return L0||(L0=1,function(U,te){(function(P,p,O){U.exports=p(ie(),n0(),a0())})(ae,function(P){return function(){var p=P,O=p.lib,H=O.Base,q=O.WordArray,M=p.algo,S=M.SHA1,c=M.HMAC,u=M.PBKDF2=H.extend({cfg:H.extend({keySize:128/32,hasher:S,iterations:1}),init:function(E){this.cfg=this.cfg.extend(E)},compute:function(E,l){for(var d=this.cfg,x=c.create(d.hasher,E),b=q.create(),T=q.create([1]),$=b.words,v=T.words,y=d.keySize,B=d.iterations;$.length<y;){var g=x.update(l).finalize(T);x.reset();for(var k=g.words,w=k.length,m=g,o=1;o<B;o++){m=x.finalize(m),x.reset();for(var e=m.words,r=0;r<w;r++)k[r]^=e[r]}b.concat(g),v[0]++}return b.sigBytes=y*4,b}});p.PBKDF2=function(E,l,d){return u
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return P.mode.CTRGladman=function(){var p=P.lib.BlockCipherMode.extend();function O(M){if((M>>24&255)===255){var S=M>>16&255,c=M>>8&255,u=M&255;S===255?(S=0,c===255?(c=0,u===255?u=0:++u):++c):++S,M=0,M+=S<<16,M+=c<<8,M+=u}else M+=1<<24;return M}function H(M){return(M[0]=O(M[0]))===0&&(M[1]=O(M[1])),M}var q=p.Encryptor=p.extend({processBlock:function(M,S){var c=this._cipher,u=c.blockSize,E=this._iv,l=this._counter;E&&(l=this._counter=E.slice(0),this._iv=void 0),H(l);var d=l.slice(0);c.encryptBlock(d,0);for(var x=0;x<u;x++)M[S+x]^=d[x]}});return p.Decryptor=q,p}(),P.mode.CTRGladman})}(Ye)),Ye.exports}var We={exports:{}},z0;function Et(){return z0||(z0=1,function(U,te){(function(P,p,O){U.exports=p(ie(),se())})(ae,function(P){return P.mode.OFB=function(){var p=P.lib.BlockCipherMode.extend(),O=p.Encryptor=p.extend({processBlock:function(H,q){var M=this._cipher,S=M.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),M.encryptBlock(u,0);for(var E=0;E<S;E++)H[q+E]^=u[E]}});return p.Decryptor=O,p}(),P.mode.OFB})}(We)),We.exports}var je={exports:{}},F0;function St(){return F0||(F0=1,function(U,te){(function(P,p,O){U.exports=p(ie(),se())})(ae,function(P){return P.mode.ECB=function(){var p=P.lib.BlockCipherMode.extend();return p.Encryptor=p.extend({processBlock:function(O,H){this._cipher.encryptBlock(O,H)}}),p.Decryptor=p.extend({processBlock:function(O,H){this._cipher.decryptBlock(O,H)}}),p}(),P.mode.ECB})}(je)),je.exports}var Ne={exports:{}},O0;function Dt(){return O0||(O0=1,function(U,te){(function(P,p,O){U.exports=p(ie(),se())})(ae,function(P){return P.pad.AnsiX923={pad:function(p,O){var H=p.sigBytes,q=O*4,M=q-H%q,S=H+M-1;p.clamp(),p.words[S>>>2]|=M<<24-S%4*8,p.sigBytes+=M},unpad:function(p){var O=p.words[p.sigBytes-1>>>2]&255;p.sigBytes-=O}},P.pad.Ansix923})}(Ne)),Ne.exports}var Xe={exports:{}},$0;function Ht(){return $0||($0=1,function(U,te){(function(P,p,O){U.exports=p(ie(),se())})(ae,function(P){return P.pad.Iso10126={pad:function(p,O){var H=O*4,q=H-p.sigBytes%H;p.concat(P.lib.WordArray.random(q-1)).concat(P.lib.WordArray.create([q<<24],1))},unpad:function(p){var O=p.words[p.sigBytes-1>>>2]&255;p.sigBytes-=O}},P.pad.Iso10126})}(Xe)),Xe.exports}var Ue={exports:{}},q0;function Lt(){return q0||(q0=1,function(U,te){(function(P,p,O){U.exports=p(ie(),se())})(ae,function(P){return P.pad.Iso97971={pad:function(p,O){p.concat(P.lib.WordArray.create([2147483648],1)),P.pad.ZeroPadding.pad(p,O)},unpad:function(p){P.pad.ZeroPadding.unpad(p),p.sigBytes--}},P.pad.Iso97971})}(Ue)),Ue.exports}var Ge={exports:{}},Y0;function At(){return Y0||(Y0=1,function(U,te){(function(P,p,O){U.exports=p(ie(),se())})(ae,function(P){return P.pad.ZeroPadding={pad:function(p,O){var H=O*4;p.clamp(),p.sigBytes+=H-(p.sigBytes%H||H)},unpad:function(p){for(var O=p.words,H=p.sigBytes-1,H=p.sigBytes-1;H>=0;H--)if(O[H>>>2]>>>24-H%4*8&255){p.sigBytes=H+1;break}}},P.pad.ZeroPadding})}(Ge)),Ge.exports}var Ke={exports:{}},W0;function It(){return W0||(W0=1,function(U,te){(function(P,p,O){U.exports=p(ie(),se())})(ae,function(P){return P.pad.NoPadding={pad:function(){},unpad:function(){}},P.pad.NoPadding})}(Ke)),Ke.exports}var Ze={exports:{}},j0;function Pt(){return j0||(j0=1,function(U,te){(function(P,p,O){U.exports=p(ie(),se())})(ae,function(P){return function(p){var O=P,H=O.lib,q=H.CipherParams,M=O.enc,S=M.Hex,c=O.format;c.Hex={stringify:function(u){return u.ciphertext.toString(S)},parse:function(u){var E=S.parse(u);return q.create({ciphertext:E})}}}(),P.format.Hex})}(Ze)),Ze.exports}var Ve={exports:{}},N0;function Mt(){return N0||(N0=1,function(U,te){(function(P,p,O){U.exports=p(ie(),pe(),ye(),he(),se())})(ae,function(P){return function(){var p=P,O=p.lib,H=O.BlockCipher,q=p.algo,M=[],S=[],c=[],u=[],E=[],l=[],d=[],x=[],b=[],T=[];(function(){for(var y=[],B=0;B<256;B++)B<128?y[B]=B<<1:y[B]=B<<1^283;for(var g=0,k=0,B=0;B<256;B++){var w=k^k<<1^k<<2^k<<3^k<<4;w=w>>>8^w&255^99,M[g]=w,S[w]=g;var m=y[g],o=y[m],e=y[o],r=y[w]*257^w*16843008;c[g]=r<<24|r>>>8,u[g]=r<<16|r>>>16,E[g]=r<<8|r>>>24,l[g]=r;var r=e*16843009^o*65537^m*257^g*16843008;d[
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V,J=!0,ne=!1;return{s:function(){Y=Y.call(C)},n:function(){var ee=Y.next();return J=ee.done,ee},e:function(ee){ne=!0,V=ee},f:function(){try{J||Y.return==null||Y.return()}finally{if(ne)throw V}}}}(I);try{for(G.s();!(Q=G.n()).done;){var F=Q.value;F.contentRect&&function(){var C=F.contentRect,j=C.width,Y=C.height;document.documentElement.clientWidth!==j&&(r.status.width=j,r.status.height=Y),setTimeout(function(){r.timeLine&&r.timeLine.changeProp("width",j)},50)}()}}catch(C){G.e(C)}finally{G.f()}}),this.resizeObserver.observe(this.root)}var k,w,m,o;return k=g,w=[{key:"crateIframe",value:function(e,r,s){var t=this,n="url=".concat(e,"&kitToken=").concat(r,"&code=").concat(encodeURIComponent(s)),a=encodeURI("".concat(this.domain,"?").concat(n));this.iframeUrl=a;var i=document.createElement("iframe");i.id=this.iframeId,i.src=a,i.width="100%",i.height="100%",i.style="border:0;position:absolute;",i.setAttribute("allow","autoplay;microphone;fullscreen;midi;encrypted-media;"),i.setAttribute("frameborder",0),this.root.appendChild(i),this.iframe=i,this.iframeId=i.id,this.status.message!==""&&this.status.message!=="\u64AD\u653E\u7ED3\u675F"||(this.status.message="\u52A0\u8F7D\u4E2D\xB7\xB7\xB7"),this.addMessageListen=this.addMessageListen.bind(this),window.addEventListener("message",this.addMessageListen),i.onload=function(){t.emitMessage({id:i.id,type:"init"})};var f=function(){document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||(t.status.fullPage=!1)};this.exitHandler=f,document.addEventListener("webkitfullscreenchange",f,!1),document.addEventListener("mozfullscreenchange",f,!1),document.addEventListener("fullscreenchange",f,!1),document.addEventListener("MSFullscreenChange",f,!1)}},{key:"addMessageListen",value:function(e){var r=this,s=e.data,t=s.id,n=s.code,a=s.msg;if(t===this.iframe.id)switch(n){case"6001":this.timeLine&&this.timeLine.changeProp("timestamp",e.data.timestamp);break;case"2000":if(this.playing)return;this.status.message="",this.playing=!0,this.status.playing=!0,this.status.type===2&&(this.timeLine&&this.timeLine.start(),this.requestRecordList()),this.listener.play(),setTimeout(function(){!/Mobi|Android|iPhone/i.test(navigator.userAgent)&&r.status.volume&&r.volume(1)},1e3),this.mouseleaveFunc=function(i){var f=this;q(this.iframeId,!1),this.buttonShowOrHiddenFlag&&clearTimeout(this.buttonShowOrHiddenFlag),this.buttonShowOrHiddenFlag=setTimeout(function(){q(f.iframeId)},3e3)},this.mouseleaveFunc=this.mouseleaveFunc.bind(this),this.root.addEventListener("mouseover",this.mouseleaveFunc),this.buttonShowOrHiddenFlag=setTimeout(function(){q(r.iframeId)},3e3);break;case"2001":this.status.playing=!0,this.listener.play&&this.listener.play(e.data);break;case"2002":this.status.playing=!1,this.listener.pause&&this.listener.pause(e.data);break;case"2003":this.status.volume=!0,this.listener.volume(e.data);break;case"4209":this.listener.volume(e.data);break;case"2004":this.status.volume=!1,this.listener.volume(e.data);break;case"2005":this.status.talk=!0,this.listener.talk(e.data);break;case"4000":case"4102":case"4104":case"4105":case"4107":q(this.iframeId,!1),this.status.message=a,this.listener.error(e.data);break;case"2006":case"4201":case"4202":case"4203":case"4204":case"4205":case"4206":case"4207":case"4208":this.status.talk=!1,this.listener.talk(e.data);break;case"6002":this.doRequestRecordList(e.data.recordList)}}},{key:"emitMessage",value:function(e){this.iframe.contentWindow.postMessage(e,this.domain)}},{key:"on",value:function(e,r){this.listener[e]&&(this.listener[e]=r)}},{key:"emit",value:(m=b().mark(function e(r,s){return b().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.listener[r]){t.next=2;break}return t.abrupt("return");case 2:this.listener[r].forEach(function(n){return n()});case 3:case"end":return t.stop()}},e,this)}),o=function(){var e=this,r=arguments;return new Promise(function(s,t){var n=m.apply(e,r);function a(f){T(n,s,t,a,i,"next",f)}function i(f){T(n,s,t,a,i,"throw",f)}a(void