ai-assistant-pro 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/demo/src/chat.vue +14 -12
- package/dist/ai-assistant-pro.common.js +11 -11
- package/dist/ai-assistant-pro.common.js.map +1 -1
- package/dist/ai-assistant-pro.css +1 -1
- package/dist/ai-assistant-pro.umd.js +11 -11
- package/dist/ai-assistant-pro.umd.js.map +1 -1
- package/dist/ai-assistant-pro.umd.min.js +1 -1
- package/dist/ai-assistant-pro.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();functio
|
|
|
12
12
|
- 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.
|
|
13
13
|
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.
|
|
14
14
|
*/
|
|
15
|
-
return function(){var t=e,n=t.lib,r=n.WordArray,s=n.Hasher,i=t.algo,o=r.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]),a=r.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]),c=r.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=r.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]),u=r.create([0,1518500249,1859775393,2400959708,2840853838]),h=r.create([1352829926,1548603684,1836072691,2053994217,0]),f=i.RIPEMD160=s.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,s=e[r];e[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var i,f,b,v,k,x,A,_,S,R,E,C=this._hash.words,B=u.words,O=h.words,T=o.words,I=a.words,z=c.words,D=l.words;x=i=C[0],A=f=C[1],_=b=C[2],S=v=C[3],R=k=C[4];for(n=0;n<80;n+=1)E=i+e[t+T[n]]|0,E+=n<16?d(f,b,v)+B[0]:n<32?p(f,b,v)+B[1]:n<48?g(f,b,v)+B[2]:n<64?m(f,b,v)+B[3]:y(f,b,v)+B[4],E|=0,E=w(E,z[n]),E=E+k|0,i=k,k=v,v=w(b,10),b=f,f=E,E=x+e[t+I[n]]|0,E+=n<16?y(A,_,S)+O[0]:n<32?m(A,_,S)+O[1]:n<48?g(A,_,S)+O[2]:n<64?p(A,_,S)+O[3]:d(A,_,S)+O[4],E|=0,E=w(E,D[n]),E=E+R|0,x=R,R=S,S=w(_,10),_=A,A=E;E=C[1]+b+S|0,C[1]=C[2]+v+R|0,C[2]=C[3]+k+x|0,C[3]=C[4]+i+A|0,C[4]=C[0]+f+_|0,C[0]=E},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var s=this._hash,i=s.words,o=0;o<5;o++){var a=i[o];i[o]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return s},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function d(e,t,n){return e^t^n}function p(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function m(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function w(e,t){return e<<t|e>>>32-t}t.RIPEMD160=s._createHelper(f),t.HmacRIPEMD160=s._createHmacHelper(f)}(Math),e.RIPEMD160}))},5:function(e,t,n){(function(t,r){e.exports=r(n(763))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,s=n.Hasher,i=t.algo,o=[],a=i.SHA1=s.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],s=n[1],i=n[2],a=n[3],c=n[4],l=0;l<80;l++){if(l<16)o[l]=0|e[t+l];else{var u=o[l-3]^o[l-8]^o[l-14]^o[l-16];o[l]=u<<1|u>>>31}var h=(r<<5|r>>>27)+c+o[l];h+=l<20?1518500249+(s&i|~s&a):l<40?1859775393+(s^i^a):l<60?(s&i|s&a|i&a)-1894007588:(s^i^a)-899497514,c=a,a=i,i=s<<30|s>>>2,s=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+s|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=s._createHelper(a),t.HmacSHA1=s._createHmacHelper(a)}(),e.SHA1}))},314:function(e,t,n){(function(t,r){e.exports=r(n(763),n(535))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,s=t.algo,i=s.SHA256,o=s.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=i._createHelper(o),t.HmacSHA224=i._createHmacHelper(o)}(),e.SHA224}))},535:function(e,t,n){(function(t,r){e.exports=r(n(763))})(0,(function(e){return function(t){var n=e,r=n.lib,s=r.WordArray,i=r.Hasher,o=n.algo,a=[],c=[];(function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}var r=2,s=0;while(s<64)e(r)&&(s<8&&(a[s]=n(t.pow(r,.5))),c[s]=n(t.pow(r,1/3)),s++),r++})();var l=[],u=o.SHA256=i.extend({_doReset:function(){this._hash=new s.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],s=n[1],i=n[2],o=n[3],a=n[4],u=n[5],h=n[6],f=n[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var p=l[d-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=l[d-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[d]=g+l[d-7]+y+l[d-16]}var w=a&u^~a&h,b=r&s^r&i^s&i,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),k=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),x=f+k+w+c[d]+l[d],A=v+b;f=h,h=u,u=a,a=o+x|0,o=i,i=s,s=r,r=x+A|0}n[0]=n[0]+r|0,n[1]=n[1]+s|0,n[2]=n[2]+i|0,n[3]=n[3]+o|0,n[4]=n[4]+a|0,n[5]=n[5]+u|0,n[6]=n[6]+h|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,s=8*e.sigBytes;return n[s>>>5]|=128<<24-s%32,n[14+(s+64>>>9<<4)]=t.floor(r/4294967296),n[15+(s+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(u),n.HmacSHA256=i._createHmacHelper(u)}(Math),e.SHA256}))},515:function(e,t,n){(function(t,r){e.exports=r(n(763),n(482))})(0,(function(e){return function(t){var n=e,r=n.lib,s=r.WordArray,i=r.Hasher,o=n.x64,a=o.Word,c=n.algo,l=[],u=[],h=[];(function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=t%5,s=(2*e+3*t)%5;e=r,t=s}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var c=0,f=0,d=0;d<7;d++){if(1&i){var p=(1<<d)-1;p<32?f^=1<<p:c^=1<<p-32}128&i?i=i<<1^113:i<<=1}h[o]=a.create(c,f)}})();var f=[];(function(){for(var e=0;e<25;e++)f[e]=a.create()})();var d=c.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,s=0;s<r;s++){var i=e[t+2*s],o=e[t+2*s+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var a=n[s];a.high^=o,a.low^=i}for(var c=0;c<24;c++){for(var d=0;d<5;d++){for(var p=0,g=0,m=0;m<5;m++){a=n[d+5*m];p^=a.high,g^=a.low}var y=f[d];y.high=p,y.low=g}for(d=0;d<5;d++){var w=f[(d+4)%5],b=f[(d+1)%5],v=b.high,k=b.low;for(p=w.high^(v<<1|k>>>31),g=w.low^(k<<1|v>>>31),m=0;m<5;m++){a=n[d+5*m];a.high^=p,a.low^=g}}for(var x=1;x<25;x++){a=n[x];var A=a.high,_=a.low,S=l[x];S<32?(p=A<<S|_>>>32-S,g=_<<S|A>>>32-S):(p=_<<S-32|A>>>64-S,g=A<<S-32|_>>>64-S);var R=f[u[x]];R.high=p,R.low=g}var E=f[0],C=n[0];E.high=C.high,E.low=C.low;for(d=0;d<5;d++)for(m=0;m<5;m++){x=d+5*m,a=n[x];var B=f[x],O=f[(d+1)%5+5*m],T=f[(d+2)%5+5*m];a.high=B.high^~O.high&T.high,a.low=B.low^~O.low&T.low}a=n[0];var I=h[c];a.high^=I.high,a.low^=I.low}},_doFinalize:function(){var e=this._data,n=e.words,r=(this._nDataBytes,8*e.sigBytes),i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var o=this._state,a=this.cfg.outputLength/8,c=a/8,l=[],u=0;u<c;u++){var h=o[u],f=h.high,d=h.low;f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(f)}return new s.init(l,a)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=i._createHelper(d),n.HmacSHA3=i._createHmacHelper(d)}(Math),e.SHA3}))},511:function(e,t,n){(function(t,r){e.exports=r(n(763),n(482),n(310))})(0,(function(e){return function(){var t=e,n=t.x64,r=n.Word,s=n.WordArray,i=t.algo,o=i.SHA512,a=i.SHA384=o.extend({_doReset:function(){this._hash=new s.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=o._createHelper(a),t.HmacSHA384=o._createHmacHelper(a)}(),e.SHA384}))},310:function(e,t,n){(function(t,r){e.exports=r(n(763),n(482))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.Hasher,s=t.x64,i=s.Word,o=s.WordArray,a=t.algo;function c(){return i.create.apply(i,arguments)}var l=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],u=[];(function(){for(var e=0;e<80;e++)u[e]=c()})();var h=a.SHA512=r.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],s=n[1],i=n[2],o=n[3],a=n[4],c=n[5],h=n[6],f=n[7],d=r.high,p=r.low,g=s.high,m=s.low,y=i.high,w=i.low,b=o.high,v=o.low,k=a.high,x=a.low,A=c.high,_=c.low,S=h.high,R=h.low,E=f.high,C=f.low,B=d,O=p,T=g,I=m,z=y,D=w,U=b,M=v,j=k,P=x,N=A,L=_,F=S,H=R,W=E,J=C,V=0;V<80;V++){var Z,G,Y=u[V];if(V<16)G=Y.high=0|e[t+2*V],Z=Y.low=0|e[t+2*V+1];else{var q=u[V-15],K=q.high,Q=q.low,X=(K>>>1|Q<<31)^(K>>>8|Q<<24)^K>>>7,$=(Q>>>1|K<<31)^(Q>>>8|K<<24)^(Q>>>7|K<<25),ee=u[V-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,se=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=u[V-7],oe=ie.high,ae=ie.low,ce=u[V-16],le=ce.high,ue=ce.low;Z=$+ae,G=X+oe+(Z>>>0<$>>>0?1:0),Z+=se,G=G+re+(Z>>>0<se>>>0?1:0),Z+=ue,G=G+le+(Z>>>0<ue>>>0?1:0),Y.high=G,Y.low=Z}var he=j&N^~j&F,fe=P&L^~P&H,de=B&T^B&z^T&z,pe=O&I^O&D^I&D,ge=(B>>>28|O<<4)^(B<<30|O>>>2)^(B<<25|O>>>7),me=(O>>>28|B<<4)^(O<<30|B>>>2)^(O<<25|B>>>7),ye=(j>>>14|P<<18)^(j>>>18|P<<14)^(j<<23|P>>>9),we=(P>>>14|j<<18)^(P>>>18|j<<14)^(P<<23|j>>>9),be=l[V],ve=be.high,ke=be.low,xe=J+we,Ae=W+ye+(xe>>>0<J>>>0?1:0),_e=(xe=xe+fe,Ae=Ae+he+(xe>>>0<fe>>>0?1:0),xe=xe+ke,Ae=Ae+ve+(xe>>>0<ke>>>0?1:0),xe=xe+Z,Ae=Ae+G+(xe>>>0<Z>>>0?1:0),me+pe),Se=ge+de+(_e>>>0<me>>>0?1:0);W=F,J=H,F=N,H=L,N=j,L=P,P=M+xe|0,j=U+Ae+(P>>>0<M>>>0?1:0)|0,U=z,M=D,z=T,D=I,T=B,I=O,O=xe+_e|0,B=Ae+Se+(O>>>0<xe>>>0?1:0)|0}p=r.low=p+O,r.high=d+B+(p>>>0<O>>>0?1:0),m=s.low=m+I,s.high=g+T+(m>>>0<I>>>0?1:0),w=i.low=w+D,i.high=y+z+(w>>>0<D>>>0?1:0),v=o.low=v+M,o.high=b+U+(v>>>0<M>>>0?1:0),x=a.low=x+P,a.high=k+j+(x>>>0<P>>>0?1:0),_=c.low=_+L,c.high=A+N+(_>>>0<L>>>0?1:0),R=h.low=R+H,h.high=S+F+(R>>>0<H>>>0?1:0),C=f.low=C+J,f.high=E+W+(C>>>0<J>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process();var s=this._hash.toX32();return s},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(h),t.HmacSHA512=r._createHmacHelper(h)}(),e.SHA512}))},634:function(e,t,n){(function(t,r){e.exports=r(n(763),n(360),n(490),n(568),n(796))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,s=n.BlockCipher,i=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=i.DES=s.extend({_doReset:function(){for(var e=this._key,t=e.words,n=[],r=0;r<56;r++){var s=o[r]-1;n[r]=t[s>>>5]>>>31-s%32&1}for(var i=this._subKeys=[],l=0;l<16;l++){var u=i[l]=[],h=c[l];for(r=0;r<24;r++)u[r/6|0]|=n[(a[r]-1+h)%28]<<31-r%6,u[4+(r/6|0)]|=n[28+(a[r+24]-1+h)%28]<<31-r%6;u[0]=u[0]<<1|u[0]>>>31;for(r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var f=this._invSubKeys=[];for(r=0;r<16;r++)f[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var s=n[r],i=this._lBlock,o=this._rBlock,a=0,c=0;c<8;c++)a|=l[c][((o^s[c])&u[c])>>>0];this._lBlock=o,this._rBlock=i^a}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function d(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=s._createHelper(h);var p=i.TripleDES=s.extend({_doReset:function(){var e=this._key,t=e.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=t.slice(0,2),s=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(r.create(n)),this._des2=h.createEncryptor(r.create(s)),this._des3=h.createEncryptor(r.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=s._createHelper(p)}(),e.TripleDES}))},482:function(e,t,n){(function(t,r){e.exports=r(n(763))})(0,(function(e){return function(t){var n=e,r=n.lib,s=r.Base,i=r.WordArray,o=n.x64={};o.Word=s.extend({init:function(e,t){this.high=e,this.low=t}}),o.WordArray=s.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var s=e[r];n.push(s.high),n.push(s.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=s.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}})}(),e}))},271:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OUU1NjJFMDc1OUU1MTFFRkE2QzRFMUZCM0YyQjE0MDUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OUU1NjJFMDg1OUU1MTFFRkE2QzRFMUZCM0YyQjE0MDUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5RTU2MkUwNTU5RTUxMUVGQTZDNEUxRkIzRjJCMTQwNSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5RTU2MkUwNjU5RTUxMUVGQTZDNEUxRkIzRjJCMTQwNSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PnYHytYAAADTSURBVHjapFPRDcIgEC3EPWQFXcA6ifVfZ6jO4ADqJGUCV6BOgnfJI70iJTRc8gIc8Lh3dyjvfVNjmzDZX5u+4PyXYD+PZgwOjcstDTeCEWMKB8Iwo2QJu4tvCQ5zRzA8j8F+7LfBp9folaHPJKw0SzjVEIzIxz8BJdOJhOUqMScgbRzWGbDIdk6CQeWmPgAJR2Gg8Y51FxFshZSJIHqhF/3xhE/aMVREpVqZLg6IgA85OqyW9OiSUhX9hcje/DKBJbyyDKmWFW3bLe0HqNrv/BNgANkfieaZ8+wxAAAAAElFTkSuQmCC"},554:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAOVJREFUOE+lk80VgyAQhMdKgjfKWCtJrMRYiekklMFN0kkcHpuHCkme7sUf5JvdGWxwshrdb6wMf7BeAFzwLui3EWCsCIDncvsAcEvXGk+Cd20JMHHBWJkBdLlK1qVJQn3wzvF93sFPQOqWAqcAE0HBu/5oBzSbPnQ7QJqVc9KDOOO2jBWaPKiReYxMgkUFRjVWABRQo90HkDlNhau2mBRz1mV5uANomVQJEKNKker52I4zrmIszMlDxRF44uZlnJ3Q6iAVAPSBnRByCKBGsQMaGjMvVbU1Y4UQ5s3/o1pVwLdN+dob2Bx9EVmMIDsAAAAASUVORK5CYII="},14:function(e){"use strict";e.exports="data:image/png;base64,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"},951:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAVNJREFUWEftltGRwjAMRKVOjko4KoGr5KCSu06gE+hkYTMyE5ATK2CTn3gmH5ko3peVvbHKzENn1pcF4CMOANiJyK+IXFR10297U4Ce8JeJEmDVHCAjnDTbAowIJ4BTkxYEhBPAv6r+VGvBBOGkuVfVw9sALwjXAQgIX0wprfrnoH3NgYAwhfYi8m3XUMJvVPUUbkFQmPMxXBg0BBgbMYAJwvwaruqtOVD6t61UNbWpq3VJCODvFpmMztLo+mmwfKc4bvVOLwdwjFoJgJazPjJcCmYdSDPZ5LxdGxBXNi0/0EYAvD9HlK1mGkBpYgAUH9puudddDI86EABAqebpuYvhTwO4EFoAajvAkw635NDCdClYE+De35Egawbg9jcA/heYpn03XAzXciC7ui3IGNEdRC6G3wVgv/n1D0es/t63tCQEQ+jhJJTqmh7LI0G1AMzuwBVqnaAhSR8MMgAAAABJRU5ErkJggg=="},793:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6M0YyMDhFRTY1OUUzMTFFRjlBN0NGODZCQ0M3RUY5QzAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6M0YyMDhFRTc1OUUzMTFFRjlBN0NGODZCQ0M3RUY5QzAiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDozRjIwOEVFNDU5RTMxMUVGOUE3Q0Y4NkJDQzdFRjlDMCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDozRjIwOEVFNTU5RTMxMUVGOUE3Q0Y4NkJDQzdFRjlDMCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Phk9awQAAADGSURBVHjaYvz//z8DJYAJl4RRLoMCECcQMoARmwtAmoHUfSB+AMLnJjM4kuqCeiBeAMQgjQ7keAGk6SAxYcCCQxzkhQNQGuSl/WjyB4DeasRqADTgFgAVPACyQSARTYk8EIPUNKIEIlCxA5L/4TbgCWBFkCUsSJr3Q0NdAWY6Hu+BYuYBeiCCBBVhUYfHAHto+OBPSATAA0oMAAXgQ6q5ABwL0ECcD5VwQPYjlgBkgIYVSkJ6gBTyC/FZDdS8gGBmIgUABBgAgktC2XC6NmEAAAAASUVORK5CYII="},632:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAOJJREFUOE+lk9sRwiAQRW8qkfzRhaSTpBLHSmInbhn8ZTvRXGZR8sCJykx+MuzZuwdo8OdqavXOBwcgaJTbpx67ACueACg/jdLVIDXAaAVXAJNGqSatAdidxfIr4AGgBUAPdwOVU8icig2wSeB86Oeis0YZssjV/KfZS69R2OANcD4E23hhx9xhLa8Q3GoUTQmsmFFpnbE7jcL5N8v2josE5U/nAwUSQNgegAkdR3yN8AMAC4lfAtIR5xtaOkhzHRiBgCE7WgBMIk9jV6AJZvx0hKWD9HCOPMz146re8SMw7nkC7MV4ERlYkdMAAAAASUVORK5CYII="},317:function(t){"use strict";t.exports=e},477:function(){}},n={};function r(e){var s=n[e];if(void 0!==s)return s.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,r),i.exports}!function(){r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,{a:t}),t}}(),function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){r.p=""}();var s={};return function(){"use strict";r.r(s),r.d(s,{default:function(){return Bi}});var e={};if(r.r(e),r.d(e,{hasBrowserEnv:function(){return We},hasStandardBrowserEnv:function(){return Ve},hasStandardBrowserWebWorkerEnv:function(){return Ze},navigator:function(){return Je},origin:function(){return Ge}}),"undefined"!==typeof window){var t=window.document.currentScript,n=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(r.p=n[1])}var i=function(){var e=this,t=e._self._c;return e.visible?t("div",{staticClass:"ai-contain"},[t("div",{staticClass:"bg-image"}),t("div",{staticClass:"ai-contain-header"},[t("div",{staticClass:"logo-title",on:{click:e.showHot}},[t("img",{staticStyle:{width:"48px",height:"48px"},attrs:{src:r(14),alt:""}}),t("span",{staticClass:"title-font"},[e._v("学习助手")])]),t("div",{staticClass:"icon-close",on:{click:e.closeMessage}},[t("i",{staticClass:"el-icon-close"})])]),e.courseFlag?[t("div",{staticClass:"ai-main-content"},[t("hot-search",{directives:[{name:"show",rawName:"v-show",value:!e.chatShow,expression:"!chatShow"}],attrs:{resId:e.resId},on:{"select-module":e.selectModule,"init-info":e.initInfo}}),e.chatShow?t("chat",{ref:"chatRef",attrs:{resId:e.resId,"open-course-id":e.openCourseId,chatId:e.chatId,"key-word":e.aiMessageKeyWord,"message-data":e.messageList,"chat-major-id":e.chatMajorId,"show-more-q-a":e.showMoreQA,"show-file":e.showFile},on:{"on-reanser":e.reanserMethod,"on-message-finish":e.messageFinish}}):e._e()],1),t("div",{staticClass:"tools-wrap"},[t("span",{on:{click:e.addNewChat}},[e._v("新增对话")]),t("span",{on:{click:e.clearChat}},[e._v("清空对话")])]),t("div",{staticClass:"ai-message-send",on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.goChat.apply(null,arguments)}}},[t("el-input",{attrs:{type:"textarea",rows:2,placeholder:"可以提出问题..."},model:{value:e.aiMessage,callback:function(t){e.aiMessage=t},expression:"aiMessage"}}),t("div",{staticClass:"ai-send-icon",on:{click:e.goChat}},[t("img",{staticStyle:{width:"24px",height:"24px"},attrs:{src:r(951),alt:""}})])],1)]:e._e(),e.courseFlag?e._e():t("div",{staticClass:"message-wrap"},[t("div",{staticClass:"message-line"},[e._v(e._s(e.message))]),t("div",{staticClass:"message-line"},[e._v("不能交流")])])],2):e._e()},o=[],a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"hot-search-contain"},[e._m(0),t("div",{staticClass:"robot-message"},[e.prologue?[t("p",[e._v(e._s(e.prologue))])]:[t("p",[e._v("Hi,我是你的专属学习助手")]),t("p",[e._v("欢迎随时向我提问。")])],e._l(e.aiMessage,(function(n,r){return t("div",{key:r,staticClass:"hot-list",on:{click:function(t){return e.selectModule(n)}}},[e._v(" "+e._s(n)+" "),t("i",{staticClass:"el-icon-arrow-right go-icon"})])}))],2)])},c=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"robot"},[t("div",{staticClass:"robot-image-div"})])}];function l(e,t){return function(){return e.apply(t,arguments)}}const{toString:u}=Object.prototype,{getPrototypeOf:h}=Object,f=(e=>t=>{const n=u.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),d=e=>(e=e.toLowerCase(),t=>f(t)===e),p=e=>t=>typeof t===e,{isArray:g}=Array,m=p("undefined");function y(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const w=d("ArrayBuffer");function b(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&w(e.buffer),t}const v=p("string"),k=p("function"),x=p("number"),A=e=>null!==e&&"object"===typeof e,_=e=>!0===e||!1===e,S=e=>{if("object"!==f(e))return!1;const t=h(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},R=d("Date"),E=d("File"),C=d("Blob"),B=d("FileList"),O=e=>A(e)&&k(e.pipe),T=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||k(e.append)&&("formdata"===(t=f(e))||"object"===t&&k(e.toString)&&"[object FormData]"===e.toString()))},I=d("URLSearchParams"),[z,D,U,M]=["ReadableStream","Request","Response","Headers"].map(d),j=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function P(e,t){let n,r,{allOwnKeys:s=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),g(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=s?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let o;for(n=0;n<i;n++)o=r[n],t.call(null,e[o],o,e)}}function N(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,s=n.length;while(s-- >0)if(r=n[s],t===r.toLowerCase())return r;return null}const L=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),F=e=>!m(e)&&e!==L;function H(){const{caseless:e}=F(this)&&this||{},t={},n=(n,r)=>{const s=e&&N(t,r)||r;S(t[s])&&S(n)?t[s]=H(t[s],n):S(n)?t[s]=H({},n):g(n)?t[s]=n.slice():t[s]=n};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&P(arguments[r],n);return t}const W=function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return P(t,((t,r)=>{n&&k(t)?e[r]=l(t,n):e[r]=t}),{allOwnKeys:r}),e},J=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),V=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Z=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},null==e)return t;do{s=Object.getOwnPropertyNames(e),i=s.length;while(i-- >0)o=s[i],r&&!r(o,e,t)||a[o]||(t[o]=e[o],a[o]=!0);e=!1!==n&&h(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},G=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},Y=e=>{if(!e)return null;if(g(e))return e;let t=e.length;if(!x(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},q=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&h(Uint8Array)),K=(e,t)=>{const n=e&&e[Symbol.iterator],r=n.call(e);let s;while((s=r.next())&&!s.done){const n=s.value;t.call(e,n[0],n[1])}},Q=(e,t)=>{let n;const r=[];while(null!==(n=e.exec(t)))r.push(n);return r},X=d("HTMLFormElement"),$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),ee=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),te=d("RegExp"),ne=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};P(n,((n,s)=>{let i;!1!==(i=t(n,s,e))&&(r[s]=i||n)})),Object.defineProperties(e,r)},re=e=>{ne(e,((t,n)=>{if(k(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];k(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},se=(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return g(e)?r(e):r(String(e).split(t)),n},ie=()=>{},oe=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,ae="abcdefghijklmnopqrstuvwxyz",ce="0123456789",le={DIGIT:ce,ALPHA:ae,ALPHA_DIGIT:ae+ae.toUpperCase()+ce},ue=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:le.ALPHA_DIGIT,n="";const{length:r}=t;while(e--)n+=t[Math.random()*r|0];return n};function he(e){return!!(e&&k(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const fe=e=>{const t=new Array(10),n=(e,r)=>{if(A(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const s=g(e)?[]:{};return P(e,((e,t)=>{const i=n(e,r+1);!m(i)&&(s[t]=i)})),t[r]=void 0,s}}return e};return n(e,0)},de=d("AsyncFunction"),pe=e=>e&&(A(e)||k(e))&&k(e.then)&&k(e.catch),ge=((e,t)=>e?setImmediate:t?((e,t)=>(L.addEventListener("message",(n=>{let{source:r,data:s}=n;r===L&&s===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),L.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"===typeof setImmediate,k(L.postMessage)),me="undefined"!==typeof queueMicrotask?queueMicrotask.bind(L):"undefined"!==typeof process&&process.nextTick||ge;var ye={isArray:g,isArrayBuffer:w,isBuffer:y,isFormData:T,isArrayBufferView:b,isString:v,isNumber:x,isBoolean:_,isObject:A,isPlainObject:S,isReadableStream:z,isRequest:D,isResponse:U,isHeaders:M,isUndefined:m,isDate:R,isFile:E,isBlob:C,isRegExp:te,isFunction:k,isStream:O,isURLSearchParams:I,isTypedArray:q,isFileList:B,forEach:P,merge:H,extend:W,trim:j,stripBOM:J,inherits:V,toFlatObject:Z,kindOf:f,kindOfTest:d,endsWith:G,toArray:Y,forEachEntry:K,matchAll:Q,isHTMLForm:X,hasOwnProperty:ee,hasOwnProp:ee,reduceDescriptors:ne,freezeMethods:re,toObjectSet:se,toCamelCase:$,noop:ie,toFiniteNumber:oe,findKey:N,global:L,isContextDefined:F,ALPHABET:le,generateString:ue,isSpecCompliantForm:he,toJSONObject:fe,isAsyncFn:de,isThenable:pe,setImmediate:ge,asap:me};function we(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}ye.inherits(we,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ye.toJSONObject(this.config),code:this.code,status:this.status}}});const be=we.prototype,ve={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ve[e]={value:e}})),Object.defineProperties(we,ve),Object.defineProperty(be,"isAxiosError",{value:!0}),we.from=(e,t,n,r,s,i)=>{const o=Object.create(be);return ye.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),we.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};var ke=we,xe=null;function Ae(e){return ye.isPlainObject(e)||ye.isArray(e)}function _e(e){return ye.endsWith(e,"[]")?e.slice(0,-2):e}function Se(e,t,n){return e?e.concat(t).map((function(e,t){return e=_e(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function Re(e){return ye.isArray(e)&&!e.some(Ae)}const Ee=ye.toFlatObject(ye,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Ce(e,t,n){if(!ye.isObject(e))throw new TypeError("target must be an object");t=t||new(xe||FormData),n=ye.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ye.isUndefined(t[e])}));const r=n.metaTokens,s=n.visitor||u,i=n.dots,o=n.indexes,a=n.Blob||"undefined"!==typeof Blob&&Blob,c=a&&ye.isSpecCompliantForm(t);if(!ye.isFunction(s))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ye.isDate(e))return e.toISOString();if(!c&&ye.isBlob(e))throw new ke("Blob is not supported. Use a Buffer instead.");return ye.isArrayBuffer(e)||ye.isTypedArray(e)?c&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,s){let a=e;if(e&&!s&&"object"===typeof e)if(ye.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ye.isArray(e)&&Re(e)||(ye.isFileList(e)||ye.endsWith(n,"[]"))&&(a=ye.toArray(e)))return n=_e(n),a.forEach((function(e,r){!ye.isUndefined(e)&&null!==e&&t.append(!0===o?Se([n],r,i):null===o?n:n+"[]",l(e))})),!1;return!!Ae(e)||(t.append(Se(s,n,i),l(e)),!1)}const h=[],f=Object.assign(Ee,{defaultVisitor:u,convertValue:l,isVisitable:Ae});function d(e,n){if(!ye.isUndefined(e)){if(-1!==h.indexOf(e))throw Error("Circular reference detected in "+n.join("."));h.push(e),ye.forEach(e,(function(e,r){const i=!(ye.isUndefined(e)||null===e)&&s.call(t,e,ye.isString(r)?r.trim():r,n,f);!0===i&&d(e,n?n.concat(r):[r])})),h.pop()}}if(!ye.isObject(e))throw new TypeError("data must be an object");return d(e),t}var Be=Ce;function Oe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Te(e,t){this._pairs=[],e&&Be(e,this,t)}const Ie=Te.prototype;Ie.append=function(e,t){this._pairs.push([e,t])},Ie.toString=function(e){const t=e?function(t){return e.call(this,t,Oe)}:Oe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ze=Te;function De(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ue(e,t,n){if(!t)return e;const r=n&&n.encode||De,s=n&&n.serialize;let i;if(i=s?s(t,n):ye.isURLSearchParams(t)?t.toString():new ze(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}class Me{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ye.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var je=Me,Pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ne="undefined"!==typeof URLSearchParams?URLSearchParams:ze,Le="undefined"!==typeof FormData?FormData:null,Fe="undefined"!==typeof Blob?Blob:null,He={isBrowser:!0,classes:{URLSearchParams:Ne,FormData:Le,Blob:Fe},protocols:["http","https","file","blob","url","data"]};const We="undefined"!==typeof window&&"undefined"!==typeof document,Je="object"===typeof navigator&&navigator||void 0,Ve=We&&(!Je||["ReactNative","NativeScript","NS"].indexOf(Je.product)<0),Ze=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Ge=We&&window.location.href||"http://localhost";var Ye={...e,...He};function qe(e,t){return Be(e,new Ye.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ye.isNode&&ye.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function Ke(e){return ye.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function Qe(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function Xe(e){function t(e,n,r,s){let i=e[s++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),a=s>=e.length;if(i=!i&&ye.isArray(r)?r.length:i,a)return ye.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!o;r[i]&&ye.isObject(r[i])||(r[i]=[]);const c=t(e,n,r[i],s);return c&&ye.isArray(r[i])&&(r[i]=Qe(r[i])),!o}if(ye.isFormData(e)&&ye.isFunction(e.entries)){const n={};return ye.forEachEntry(e,((e,r)=>{t(Ke(e),r,n,0)})),n}return null}var $e=Xe;function et(e,t,n){if(ye.isString(e))try{return(t||JSON.parse)(e),ye.trim(e)}catch(vr){if("SyntaxError"!==vr.name)throw vr}return(n||JSON.stringify)(e)}const tt={transitional:Pe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,s=ye.isObject(e);s&&ye.isHTMLForm(e)&&(e=new FormData(e));const i=ye.isFormData(e);if(i)return r?JSON.stringify($e(e)):e;if(ye.isArrayBuffer(e)||ye.isBuffer(e)||ye.isStream(e)||ye.isFile(e)||ye.isBlob(e)||ye.isReadableStream(e))return e;if(ye.isArrayBufferView(e))return e.buffer;if(ye.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return qe(e,this.formSerializer).toString();if((o=ye.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Be(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||r?(t.setContentType("application/json",!1),et(e)):e}],transformResponse:[function(e){const t=this.transitional||tt.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ye.isResponse(e)||ye.isReadableStream(e))return e;if(e&&ye.isString(e)&&(n&&!this.responseType||r)){const n=t&&t.silentJSONParsing,s=!n&&r;try{return JSON.parse(e)}catch(vr){if(s){if("SyntaxError"===vr.name)throw ke.from(vr,ke.ERR_BAD_RESPONSE,this,null,this.response);throw vr}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ye.classes.FormData,Blob:Ye.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ye.forEach(["delete","get","head","post","put","patch"],(e=>{tt.headers[e]={}}));var nt=tt;const rt=ye.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var st=e=>{const t={};let n,r,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),n=e.substring(0,s).trim().toLowerCase(),r=e.substring(s+1).trim(),!n||t[n]&&rt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t};const it=Symbol("internals");function ot(e){return e&&String(e).trim().toLowerCase()}function at(e){return!1===e||null==e?e:ye.isArray(e)?e.map(at):String(e)}function ct(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(e))t[r[1]]=r[2];return t}const lt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ut(e,t,n,r,s){return ye.isFunction(r)?r.call(this,t,n):(s&&(t=n),ye.isString(t)?ye.isString(r)?-1!==t.indexOf(r):ye.isRegExp(r)?r.test(t):void 0:void 0)}function ht(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function ft(e,t){const n=ye.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,s){return this[r].call(this,t,e,n,s)},configurable:!0})}))}class dt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function s(e,t,n){const s=ot(t);if(!s)throw new Error("header name must be a non-empty string");const i=ye.findKey(r,s);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=at(e))}const i=(e,t)=>ye.forEach(e,((e,n)=>s(e,n,t)));if(ye.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ye.isString(e)&&(e=e.trim())&&!lt(e))i(st(e),t);else if(ye.isHeaders(e))for(const[o,a]of e.entries())s(a,o,n);else null!=e&&s(t,e,n);return this}get(e,t){if(e=ot(e),e){const n=ye.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return ct(e);if(ye.isFunction(t))return t.call(this,e,n);if(ye.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ot(e),e){const n=ye.findKey(this,e);return!(!n||void 0===this[n]||t&&!ut(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function s(e){if(e=ot(e),e){const s=ye.findKey(n,e);!s||t&&!ut(n,n[s],s,t)||(delete n[s],r=!0)}}return ye.isArray(e)?e.forEach(s):s(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;while(n--){const s=t[n];e&&!ut(this,this[s],s,e,!0)||(delete this[s],r=!0)}return r}normalize(e){const t=this,n={};return ye.forEach(this,((r,s)=>{const i=ye.findKey(n,s);if(i)return t[i]=at(r),void delete t[s];const o=e?ht(s):String(s).trim();o!==s&&delete t[s],t[o]=at(r),n[o]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return ye.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ye.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=this[it]=this[it]={accessors:{}},n=t.accessors,r=this.prototype;function s(e){const t=ot(e);n[t]||(ft(r,e),n[t]=!0)}return ye.isArray(e)?e.forEach(s):s(e),this}}dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ye.reduceDescriptors(dt.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),ye.freezeMethods(dt);var pt=dt;function gt(e,t){const n=this||nt,r=t||n,s=pt.from(r.headers);let i=r.data;return ye.forEach(e,(function(e){i=e.call(n,i,s.normalize(),t?t.status:void 0)})),s.normalize(),i}function mt(e){return!(!e||!e.__CANCEL__)}function yt(e,t,n){ke.call(this,null==e?"canceled":e,ke.ERR_CANCELED,t,n),this.name="CanceledError"}ye.inherits(yt,ke,{__CANCEL__:!0});var wt=yt;function bt(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ke("Request failed with status code "+n.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function vt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s,i=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[o];s||(s=c),n[i]=a,r[i]=c;let u=o,h=0;while(u!==i)h+=n[u++],u%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const f=l&&c-l;return f?Math.round(1e3*h/f):void 0}}var xt=kt;function At(e,t){let n,r,s=0,i=1e3/t;const o=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();s=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)},a=function(){const e=Date.now(),t=e-s;for(var a=arguments.length,c=new Array(a),l=0;l<a;l++)c[l]=arguments[l];t>=i?o(c,e):(n=c,r||(r=setTimeout((()=>{r=null,o(n)}),i-t)))},c=()=>n&&o(n);return[a,c]}var _t=At;const St=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const s=xt(50,250);return _t((n=>{const i=n.loaded,o=n.lengthComputable?n.total:void 0,a=i-r,c=s(a),l=i<=o;r=i;const u={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&l?(o-i)/c:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0};e(u)}),n)},Rt=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Et=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ye.asap((()=>e(...n)))};var Ct=Ye.hasStandardBrowserEnv?function(){const e=Ye.navigator&&/(msie|trident)/i.test(Ye.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=ye.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),Bt=Ye.hasStandardBrowserEnv?{write(e,t,n,r,s,i){const o=[e+"="+encodeURIComponent(t)];ye.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),ye.isString(r)&&o.push("path="+r),ye.isString(s)&&o.push("domain="+s),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ot(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Tt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function It(e,t){return e&&!Ot(t)?Tt(e,t):t}const zt=e=>e instanceof pt?{...e}:e;function Dt(e,t){t=t||{};const n={};function r(e,t,n){return ye.isPlainObject(e)&&ye.isPlainObject(t)?ye.merge.call({caseless:n},e,t):ye.isPlainObject(t)?ye.merge({},t):ye.isArray(t)?t.slice():t}function s(e,t,n){return ye.isUndefined(t)?ye.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!ye.isUndefined(t))return r(void 0,t)}function o(e,t){return ye.isUndefined(t)?ye.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,s,i){return i in t?r(n,s):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t)=>s(zt(e),zt(t),!0)};return ye.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||s,o=i(e[r],t[r],r);ye.isUndefined(o)&&i!==a||(n[r]=o)})),n}var Ut=e=>{const t=Dt({},e);let n,{data:r,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:c}=t;if(t.headers=a=pt.from(a),t.url=Ue(It(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ye.isFormData(r))if(Ye.hasStandardBrowserEnv||Ye.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ye.hasStandardBrowserEnv&&(s&&ye.isFunction(s)&&(s=s(t)),s||!1!==s&&Ct(t.url))){const e=i&&o&&Bt.read(o);e&&a.set(i,e)}return t};const Mt="undefined"!==typeof XMLHttpRequest;var jt=Mt&&function(e){return new Promise((function(t,n){const r=Ut(e);let s=r.data;const i=pt.from(r.headers).normalize();let o,a,c,l,u,{responseType:h,onUploadProgress:f,onDownloadProgress:d}=r;function p(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(o),r.signal&&r.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=pt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),s=h&&"text"!==h&&"json"!==h?g.response:g.responseText,i={data:s,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};bt((function(e){t(e),p()}),(function(e){n(e),p()}),i),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new ke("Request aborted",ke.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new ke("Network Error",ke.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const s=r.transitional||Pe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ke(t,s.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,e,g)),g=null},void 0===s&&i.setContentType(null),"setRequestHeader"in g&&ye.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),ye.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),h&&"json"!==h&&(g.responseType=r.responseType),d&&([c,u]=St(d,!0),g.addEventListener("progress",c)),f&&g.upload&&([a,l]=St(f),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(o=t=>{g&&(n(!t||t.type?new wt(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(o),r.signal&&(r.signal.aborted?o():r.signal.addEventListener("abort",o)));const y=vt(r.url);y&&-1===Ye.protocols.indexOf(y)?n(new ke("Unsupported protocol "+y+":",ke.ERR_BAD_REQUEST,e)):g.send(s||null)}))};const Pt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const s=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ke?t:new wt(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,s(new ke(`timeout ${t} of ms exceeded`,ke.ETIMEDOUT))}),t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(s):e.removeEventListener("abort",s)})),e=null)};e.forEach((e=>e.addEventListener("abort",s)));const{signal:a}=r;return a.unsubscribe=()=>ye.asap(o),a}};var Nt=Pt;const Lt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,s=0;while(s<n)r=s+t,yield e.slice(s,r),s=r},Ft=async function*(e,t){for await(const n of Ht(e))yield*Lt(n,t)},Ht=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Wt=(e,t,n,r)=>{const s=Ft(e,t);let i,o=0,a=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await s.next();if(t)return a(),void e.close();let i=r.byteLength;if(n){let e=o+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw a(t),t}},cancel(e){return a(e),s.return()}},{highWaterMark:2})},Jt="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Vt=Jt&&"function"===typeof ReadableStream,Zt=Jt&&("function"===typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Gt=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(vr){return!1}},Yt=Vt&&Gt((()=>{let e=!1;const t=new Request(Ye.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),qt=65536,Kt=Vt&&Gt((()=>ye.isReadableStream(new Response("").body))),Qt={stream:Kt&&(e=>e.body)};Jt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Qt[t]&&(Qt[t]=ye.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new ke(`Response type '${t}' is not supported`,ke.ERR_NOT_SUPPORT,n)})}))})(new Response);const Xt=async e=>{if(null==e)return 0;if(ye.isBlob(e))return e.size;if(ye.isSpecCompliantForm(e)){const t=new Request(Ye.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ye.isArrayBufferView(e)||ye.isArrayBuffer(e)?e.byteLength:(ye.isURLSearchParams(e)&&(e+=""),ye.isString(e)?(await Zt(e)).byteLength:void 0)},$t=async(e,t)=>{const n=ye.toFiniteNumber(e.getContentLength());return null==n?Xt(t):n};var en=Jt&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:h="same-origin",fetchOptions:f}=Ut(e);l=l?(l+"").toLowerCase():"text";let d,p=Nt([s,i&&i.toAbortSignal()],o);const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let m;try{if(c&&Yt&&"get"!==n&&"head"!==n&&0!==(m=await $t(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(ye.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Rt(m,St(Et(c)));r=Wt(n.body,qt,e,t)}}ye.isString(h)||(h=h?"include":"omit");const s="credentials"in Request.prototype;d=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:s?h:void 0});let i=await fetch(d);const o=Kt&&("stream"===l||"response"===l);if(Kt&&(a||o&&g)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=ye.toFiniteNumber(i.headers.get("content-length")),[n,r]=a&&Rt(t,St(Et(a),!0))||[];i=new Response(Wt(i.body,qt,n,(()=>{r&&r(),g&&g()})),e)}l=l||"text";let y=await Qt[ye.findKey(Qt,l)||"text"](i,e);return!o&&g&&g(),await new Promise(((t,n)=>{bt(t,n,{data:y,headers:pt.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:d})}))}catch(y){if(g&&g(),y&&"TypeError"===y.name&&/fetch/i.test(y.message))throw Object.assign(new ke("Network Error",ke.ERR_NETWORK,e,d),{cause:y.cause||y});throw ke.from(y,y&&y.code,e,d)}});const tn={http:xe,xhr:jt,fetch:en};ye.forEach(tn,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(vr){}Object.defineProperty(e,"adapterName",{value:t})}}));const nn=e=>`- ${e}`,rn=e=>ye.isFunction(e)||null===e||!1===e;var sn={getAdapter:e=>{e=ye.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!rn(n)&&(r=tn[(t=String(n)).toLowerCase()],void 0===r))throw new ke(`Unknown adapter '${t}'`);if(r)break;s[t||"#"+i]=r}if(!r){const e=Object.entries(s).map((e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(nn).join("\n"):" "+nn(e[0]):"as no adapter specified";throw new ke("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r},adapters:tn};function on(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wt(null,e)}function an(e){on(e),e.headers=pt.from(e.headers),e.data=gt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=sn.getAdapter(e.adapter||nt.adapter);return t(e).then((function(t){return on(e),t.data=gt.call(e,e.transformResponse,t),t.headers=pt.from(t.headers),t}),(function(t){return mt(t)||(on(e),t&&t.response&&(t.response.data=gt.call(e,e.transformResponse,t.response),t.response.headers=pt.from(t.response.headers))),Promise.reject(t)}))}const cn="1.7.7",ln={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ln[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const un={};function hn(e,t,n){if("object"!==typeof e)throw new ke("options must be an object",ke.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;while(s-- >0){const i=r[s],o=t[i];if(o){const t=e[i],n=void 0===t||o(t,i,e);if(!0!==n)throw new ke("option "+i+" must be "+n,ke.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ke("Unknown option "+i,ke.ERR_BAD_OPTION)}}ln.transitional=function(e,t,n){function r(e,t){return"[Axios v"+cn+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,s,i)=>{if(!1===e)throw new ke(r(s," has been removed"+(t?" in "+t:"")),ke.ERR_DEPRECATED);return t&&!un[s]&&(un[s]=!0,console.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,s,i)}};var fn={assertOptions:hn,validators:ln};const dn=fn.validators;class pn{constructor(e){this.defaults=e,this.interceptors={request:new je,response:new je}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(vr){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Dt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:s}=t;void 0!==n&&fn.assertOptions(n,{silentJSONParsing:dn.transitional(dn.boolean),forcedJSONParsing:dn.transitional(dn.boolean),clarifyTimeoutError:dn.transitional(dn.boolean)},!1),null!=r&&(ye.isFunction(r)?t.paramsSerializer={serialize:r}:fn.assertOptions(r,{encode:dn.function,serialize:dn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=s&&ye.merge(s.common,s[t.method]);s&&ye.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=pt.concat(i,s);const o=[];let a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,h=0;if(!a){const e=[an.bind(this),void 0];e.unshift.apply(e,o),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);while(h<u)l=l.then(e[h++],e[h++]);return l}u=o.length;let f=t;h=0;while(h<u){const e=o[h++],t=o[h++];try{f=e(f)}catch(d){t.call(this,d);break}}try{l=an.call(this,f)}catch(d){return Promise.reject(d)}h=0,u=c.length;while(h<u)l=l.then(c[h++],c[h++]);return l}getUri(e){e=Dt(this.defaults,e);const t=It(e.baseURL,e.url);return Ue(t,e.params,e.paramsSerializer)}}ye.forEach(["delete","get","head","options"],(function(e){pn.prototype[e]=function(t,n){return this.request(Dt(n||{},{method:e,url:t,data:(n||{}).data}))}})),ye.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,s){return this.request(Dt(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}pn.prototype[e]=t(),pn.prototype[e+"Form"]=t(!0)}));var gn=pn;class mn{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,s){n.reason||(n.reason=new wt(e,r,s),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new mn((function(t){e=t}));return{token:t,cancel:e}}}var yn=mn;function wn(e){return function(t){return e.apply(null,t)}}function bn(e){return ye.isObject(e)&&!0===e.isAxiosError}const vn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vn).forEach((e=>{let[t,n]=e;vn[n]=t}));var kn=vn;function xn(e){const t=new gn(e),n=l(gn.prototype.request,t);return ye.extend(n,gn.prototype,t,{allOwnKeys:!0}),ye.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return xn(Dt(e,t))},n}const An=xn(nt);An.Axios=gn,An.CanceledError=wt,An.CancelToken=yn,An.isCancel=mt,An.VERSION=cn,An.toFormData=Be,An.AxiosError=ke,An.Cancel=An.CanceledError,An.all=function(e){return Promise.all(e)},An.spread=wn,An.isAxiosError=bn,An.mergeConfig=Dt,An.AxiosHeaders=pt,An.formToJSON=e=>$e(ye.isHTMLForm(e)?new FormData(e):e),An.getAdapter=sn.getAdapter,An.HttpStatusCode=kn,An.default=An;var _n=An;const Sn={set(e,t){sessionStorage&&null!=e&&null!=t&&sessionStorage.setItem(e,t)},get(e){return sessionStorage?null==e?null:sessionStorage.getItem(e):null},setJSON(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON(e){const t=this.get(e);if(null!=t)return JSON.parse(t)},remove(e){sessionStorage.removeItem(e)}},Rn={set(e,t){localStorage&&null!=e&&null!=t&&localStorage.setItem(e,t)},get(e){return localStorage?null==e?null:localStorage.getItem(e):null},setJSON(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON(e){const t=this.get(e);if(null!=t)return JSON.parse(t)},remove(e){localStorage.removeItem(e)}};var En={session:Sn,local:Rn},Cn=r(317),Bn=r(190),On=r.n(Bn);const Tn="3.7.7",In=Tn,zn="function"===typeof Buffer,Dn="function"===typeof TextDecoder?new TextDecoder:void 0,Un="function"===typeof TextEncoder?new TextEncoder:void 0,Mn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",jn=Array.prototype.slice.call(Mn),Pn=(e=>{let t={};return e.forEach(((e,n)=>t[e]=n)),t})(jn),Nn=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Ln=String.fromCharCode.bind(String),Fn="function"===typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Hn=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),Wn=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Jn=e=>{let t,n,r,s,i="";const o=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(s=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|s,i+=jn[t>>18&63]+jn[t>>12&63]+jn[t>>6&63]+jn[63&t]}return o?i.slice(0,o-3)+"===".substring(o):i},Vn="function"===typeof btoa?e=>btoa(e):zn?e=>Buffer.from(e,"binary").toString("base64"):Jn,Zn=zn?e=>Buffer.from(e).toString("base64"):e=>{const t=4096;let n=[];for(let r=0,s=e.length;r<s;r+=t)n.push(Ln.apply(null,e.subarray(r,r+t)));return Vn(n.join(""))},Gn=(e,t=!1)=>t?Hn(Zn(e)):Zn(e),Yn=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Ln(192|t>>>6)+Ln(128|63&t):Ln(224|t>>>12&15)+Ln(128|t>>>6&63)+Ln(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Ln(240|t>>>18&7)+Ln(128|t>>>12&63)+Ln(128|t>>>6&63)+Ln(128|63&t)},qn=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Kn=e=>e.replace(qn,Yn),Qn=zn?e=>Buffer.from(e,"utf8").toString("base64"):Un?e=>Zn(Un.encode(e)):e=>Vn(Kn(e)),Xn=(e,t=!1)=>t?Hn(Qn(e)):Qn(e),$n=e=>Xn(e,!0),er=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,tr=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return Ln(55296+(n>>>10))+Ln(56320+(1023&n));case 3:return Ln((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Ln((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},nr=e=>e.replace(er,tr),rr=e=>{if(e=e.replace(/\s+/g,""),!Nn.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n,r,s="";for(let i=0;i<e.length;)t=Pn[e.charAt(i++)]<<18|Pn[e.charAt(i++)]<<12|(n=Pn[e.charAt(i++)])<<6|(r=Pn[e.charAt(i++)]),s+=64===n?Ln(t>>16&255):64===r?Ln(t>>16&255,t>>8&255):Ln(t>>16&255,t>>8&255,255&t);return s},sr="function"===typeof atob?e=>atob(Wn(e)):zn?e=>Buffer.from(e,"base64").toString("binary"):rr,ir=zn?e=>Fn(Buffer.from(e,"base64")):e=>Fn(sr(e).split("").map((e=>e.charCodeAt(0)))),or=e=>ir(cr(e)),ar=zn?e=>Buffer.from(e,"base64").toString("utf8"):Dn?e=>Dn.decode(ir(e)):e=>nr(sr(e)),cr=e=>Wn(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))),lr=e=>ar(cr(e)),ur=e=>{if("string"!==typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},hr=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),fr=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,hr(t));e("fromBase64",(function(){return lr(this)})),e("toBase64",(function(e){return Xn(this,e)})),e("toBase64URI",(function(){return Xn(this,!0)})),e("toBase64URL",(function(){return Xn(this,!0)})),e("toUint8Array",(function(){return or(this)}))},dr=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,hr(t));e("toBase64",(function(e){return Gn(this,e)})),e("toBase64URI",(function(){return Gn(this,!0)})),e("toBase64URL",(function(){return Gn(this,!0)}))},pr=()=>{fr(),dr()},gr={version:Tn,VERSION:In,atob:sr,atobPolyfill:rr,btoa:Vn,btoaPolyfill:Jn,fromBase64:lr,toBase64:Xn,encode:Xn,encodeURI:$n,encodeURL:$n,utob:Kn,btou:nr,decode:lr,isValid:ur,fromUint8Array:Gn,toUint8Array:or,extendString:fr,extendUint8Array:dr,extendBuiltins:pr},mr="RU5D",yr="ODE",wr="AE",br="S_K",vr="RVkx",kr=gr.decode(mr).concat(yr,"_",wr,br,gr.decode(vr),"6"),xr="d3d3",Ar="w.e",_r="mru",Sr="bik",Rr="Y29t",Er=gr.decode(xr).concat(Ar,_r,Sr,".",gr.decode(Rr));On().enc.Utf8.parse(kr),On().enc.Utf8.parse(Er);let Cr="601a39a2a4a7cd88d5ddcef5";const Br=["/home","/overview"];"aliyun"==={NODE_ENV:"production",BASE_URL:""}.VITE_APP_BUILD_TYPE&&(Cr="6572ba195ec962924cc39951");var Or={"X-Enterprise-Id":"www.hep-zj.com.cn","X-App-Id":"90403a27c0704259ab7a3c8aab4489b3","X-App-Secret":"bc11ce7c44824fcaa23ff301a54b7094",appId:Cr,whiteList:Br,publicPath:"https://agent.icve.com.cn/heatp-portal/do/",publicPrefix:"/heatp"};const Tr=sessionStorage.getItem("AI-INTELLIGENT-TOOLS_BASE_URL");_n.defaults.headers["Content-Type"]="application/json;charset=utf-8";const Ir=_n.create({baseURL:Tr||Or.publicPath,timeout:8e4});Ir.interceptors.request.use((e=>{En.session.getJSON("SRKJ_TOKEN_CACHE")&&(e.params||(e.params={}),e.params.token=En.session.getJSON("SRKJ_TOKEN_CACHE"));const t=!1===(e.headers||{}).repeatSubmit;if(!t&&("post"===e.method||"put"===e.method)){const t={url:e.url,data:"object"===typeof e.data?JSON.stringify(e.data):e.data,time:(new Date).getTime()},n=En.session.getJSON("sessionObj");if(void 0===n||null===n||""===n)En.session.setJSON("sessionObj",t);else{const e=n.url,r=n.data,s=n.time,i=100;r===t.data&&t.time-s<i&&e===t.url||En.session.setJSON("sessionObj",t)}}return e}),(e=>{Promise.reject(e)})),Ir.interceptors.response.use((e=>{if("blob"===e.request.responseType||"arraybuffer"===e.request.responseType)return e.data;let t=e.data;if(401!==e.status)return t.resultCode.endsWith("0000")||Cn.Message.warning(t.message.description),t.queryData||t.data||t.token;Cn.Message.warning(t.message.description)}));var zr=Ir;async function Dr(e,t){const n=e.getReader();let r;while(!(r=await n.read()).done)t(r.value)}function Ur(e){let t,n,r,s=!1;return function(i){void 0===t?(t=i,n=0,r=-1):t=jr(t,i);const o=t.length;let a=0;while(n<o){s&&(10===t[n]&&(a=++n),s=!1);let i=-1;for(;n<o&&-1===i;++n)switch(t[n]){case 58:-1===r&&(r=n-a);break;case 13:s=!0;case 10:i=n;break}if(-1===i)break;e(t.subarray(a,i),r),a=n,r=-1}a===o?t=void 0:0!==a&&(t=t.subarray(a),n-=a)}}function Mr(e,t,n){let r=Pr();const s=new TextDecoder;return function(i,o){if(0===i.length)null===n||void 0===n||n(r),r=Pr();else if(o>0){const n=s.decode(i.subarray(0,o)),a=o+(32===i[o+1]?2:1),c=s.decode(i.subarray(a));switch(n){case"data":r.data=r.data?r.data+"\n"+c:c;break;case"event":r.event=c;break;case"id":e(r.id=c);break;case"retry":const n=parseInt(c,10);isNaN(n)||t(r.retry=n);break}}}}function jr(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Pr(){return{data:"",event:"",id:"",retry:void 0}}var Nr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n};const Lr="text/event-stream",Fr=1e3,Hr="last-event-id";function Wr(e,t){var{signal:n,headers:r,onopen:s,onmessage:i,onclose:o,onerror:a,openWhenHidden:c,fetch:l}=t,u=Nr(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise(((t,h)=>{const f=Object.assign({},r);let d;function p(){d.abort(),document.hidden||v()}f.accept||(f.accept=Lr),c||document.addEventListener("visibilitychange",p);let g=Fr,m=0;function y(){document.removeEventListener("visibilitychange",p),window.clearTimeout(m),d.abort()}null===n||void 0===n||n.addEventListener("abort",(()=>{y(),t()}));const w=null!==l&&void 0!==l?l:window.fetch,b=null!==s&&void 0!==s?s:Jr;async function v(){var n;d=new AbortController;try{const n=await w(e,Object.assign(Object.assign({},u),{headers:f,signal:d.signal}));await b(n),await Dr(n.body,Ur(Mr((e=>{e?f[Hr]=e:delete f[Hr]}),(e=>{g=e}),i))),null===o||void 0===o||o(),y(),t()}catch(r){if(!d.signal.aborted)try{const e=null!==(n=null===a||void 0===a?void 0:a(r))&&void 0!==n?n:g;window.clearTimeout(m),m=window.setTimeout(v,e)}catch(s){y(),h(s)}}}v()}))}function Jr(e){const t=e.headers.get("content-type");if(!(null===t||void 0===t?void 0:t.startsWith(Lr)))throw new Error(`Expected content-type to be ${Lr}, Actual: ${t}`)}const Vr=sessionStorage.getItem("AI-INTELLIGENT-TOOLS_BASE_URL")||Or.publicPath;let Zr=sessionStorage.getItem("AI-INTELLIGENT-TOOLS_PRE_FIX")||Or.publicPrefix;Zr+="/plugin/v2";const Gr="https://agent.icve.com.cn",Yr=Gr+"/ossurl",qr=e=>zr({url:Zr+"/sso/assistant",method:"get",params:{token:e,businessSource:3}}),Kr=e=>zr({url:Zr+"/assistant/addChat",method:"post",params:{resId:e}}),Qr=e=>zr({url:Zr+`/assistant/chartClear/${e}`,method:"post"}),Xr=e=>zr({url:Zr+`/assistant/stop/${e}`,method:"post"}),$r=e=>zr({url:Zr+"/assistant/chatEvaluateAdd",method:"post",data:e}),es=e=>zr({url:Zr+"/assistant/chatEvaluateCancel",method:"post",data:e}),ts=e=>zr({url:Zr+"/assistant/push",method:"post",data:e}),ns=e=>zr({url:Zr+`/assistant/detail/v2/${e}`,method:"get"}),rs=e=>zr({url:Zr+"/assistant/access",method:"post",params:{resId:e}}),ss=e=>zr({url:Zr+`/ia/hasPermission?courseId=${e}`,method:"get"}),is=e=>zr({url:Zr+`/ia/byCourseId?courseId=${e}`,method:"get"});async function os(e,t){return zr.post(`${Zr}/ia/autoFollowUp`,{iaId:e,messages:t})}async function as(e,t,n){return Wr(`${Vr}${Zr}/assistant/conversation?token=${En.session.getJSON("SRKJ_TOKEN_CACHE")}`,{method:"POST",signal:t,openWhenHidden:!0,headers:{"Content-Type":"application/json"},body:JSON.stringify(e),onmessage:n})}var cs={name:"HotSearch",props:{resId:{type:String,default:""}},data(){return{aiMessage:[],prologue:" "}},methods:{selectModule(e){this.$emit("select-module",e)}},async mounted(){const e=await is(this.resId);if(!e)return;const{guideExample:t,prologue:n}=e;t&&t.length>0&&(this.aiMessage=JSON.parse(t)),this.prologue=n,this.$emit("init-info",e)}},ls=cs;function us(e,t,n,r,s,i,o,a){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),o?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=c):s&&(c=a?function(){s.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:s),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:l}}var hs=us(ls,a,c,!1,null,"b701a940",null),fs=hs.exports,ds=function(){var e=this,t=e._self._c;return t("div",{ref:"chatContainer",staticClass:"chat-contain"},e._l(e.messageData,(function(n,r){return t("div",{key:r,staticClass:"message",class:{"user-list":"user"===n.type}},["robot"===n.type?t("div",{staticClass:"robot"},[t("div",{staticClass:"robot-image-div"})]):t("div",{staticClass:"robot user"},[e._v("user")]),t("div",{staticClass:"robot-message",class:{"user-info":"user"===n.type}},[t("div",{domProps:{innerHTML:e._s(n.message)}}),"robot"===n.type&&n.links.length>0&&e.showFile?t("div",{staticClass:"link"},[n.allIdWithStart?e._e():t("div",[t("div",{staticClass:"link-title"},[e._v("参考文件")]),t("div",{staticClass:"link-content"},[e._l(n.links,(function(n){return[n.title.startsWith(e.chatMajorId)?e._e():t("div",{staticClass:"links"},[t("span",[e._v(e._s(`《${n.title}》`)+" 共 "),t("span",{staticStyle:{"font-weight":"bold"}},[e._v(" "+e._s(n.fileDTOS.length)+" ")]),e._v(" 处引用 ")])]),e._l(n.fileDTOS,(function(r,s){return t("div",{key:s,staticClass:"link-part-container"},[t("span",{staticClass:"link-list-part"},[e._v(" "+e._s(r.matchContent)+" ")]),t("span",{staticClass:"link-list-button",on:{click:function(t){return e.seeDetail(r,n.documentUrl)}}},[e._v(" 点击查看 ")])])}))]}))],2)])]):e._e(),"robot"===n.type&&n.connectUrl.length>0?t("div",{staticClass:"link"},[t("div",{staticClass:"link-title"},[e._v("相关链接")]),t("div",{staticClass:"link-content"},[e._l(n.connectUrl,(function(n){return[t("div",{staticClass:"links"},[t("a",{attrs:{href:n.iaUrl,target:"_blank"}},[t("span",[e._v(e._s(n.iaUrlName))])])])]}))],2)]):e._e(),"robot"===n.type&&e.finish&&n.followUps&&n.followUps.length>0?t("div",[t("div",{staticClass:"link-title"},[e._v("智能追问")]),t("div",{staticClass:"link-content"},e._l(n.followUps,(function(n,r){return t("div",{key:r,staticClass:"hot-list",on:{click:function(t){return e.selectModule(n)}}},[e._v(" "+e._s(n)+" "),t("i",{staticClass:"el-icon-arrow-right go-icon"})])})),0)]):e._e(),"robot"===n.type?t("chat-tools",{attrs:{chatId:e.chatId,"detail-data":n,sending:n.sending,resId:e.resId,"open-course-id":e.openCourseId,"is-last":r===e.messageData.length-1},on:{"on-reanswer":t=>e.reanswer(t,r),"on-stop-chat":e.onStopChat}}):e._e()],1)])})),0)},ps=[];const gs=[{name:"格式问题",code:"1"},{name:"逻辑问题",code:"2"},{name:"有害信息",code:"3"},{name:"事实错误",code:"4"},{name:"没有帮助",code:"5"},{name:"答非所问",code:"6"}],ms=[{type:"user",message:"电磁感应定律是如何描述的?请给出相关公式并解释。"},{type:"robot",message:"电磁感应定律是描述磁场与电场之间关系的物理定律。具体来说,当导体回路中的磁通量发生变化时,会在回路中产生感应电动势。这个感应电动势的大小与磁通量变化的速率成正比,这就是法拉第电磁感应定律。\n 相关的公式是:ε = -dΦ/dt\n 其中,ε 表示感应电动势,Φ 表示磁通量,t 表示时间,dΦ/dt 则表示磁通量对时间的变化率。注意这里的负号,它表示感应电动势的方向与磁通量变化的方向相反,这是楞次定律的体现。\n 解释这个公式时,我们可以理解为:当穿过一个闭合导体回路的磁通量发生变化时,会在回路中产生感应电动势,其大小正比于磁通量变化的速率。这种感应电动势是由于磁场的变化而引发的,它是磁场变化对电场的直接影响,体现了磁场与电场之间的紧密联系。"}],ys=async e=>{await qr(e),En.session.setJSON("SRKJ_TOKEN_CACHE",e)};var ws=function(){var e=this,t=e._self._c;return t("div",{staticClass:"robot-tools"},[(e.listData.stop||e.listData.finish&&!e.sending)&&e.isLast?t("div",{staticClass:"robot-reanswer",staticStyle:{"margin-bottom":"8px"},on:{click:function(t){return e.reAnswer(e.listData)}}},[t("i",{staticClass:"el-icon-refresh-right"}),e._v(" 重新回答 ")]):e._e(),e.listData.stop?t("div",{staticClass:"stopMsg",staticStyle:{color:"#cfcfcf",cursor:"default"}},[e._v("已停止生成")]):e._e(),e.listData.stop||e.listData.finish||e.sending?e._e():t("div",{staticClass:"stopMsg",on:{click:function(t){return e.stopChat(e.listData)}}},[e._v("停止输出")]),t("div",{staticClass:"right-tools"},[t("el-tooltip",{attrs:{content:"赞",effect:"light",placement:"top"}},[t("div",{staticClass:"tools-icon",on:{click:function(t){return e.doZan(e.listData)}}},[e.listData.zan?t("img",{attrs:{alt:"",src:r(793)}}):t("img",{attrs:{src:r(632),alt:""}})])]),t("el-popover",{attrs:{placement:"top-start",trigger:"manual"},model:{value:e.popover,callback:function(t){e.popover=t},expression:"popover"}},[t("div",{attrs:{slot:"reference"},slot:"reference"},[t("el-tooltip",{attrs:{content:"踩",effect:"light",placement:"bottom"}},[e.listData.cai?t("div",{staticClass:"tools-icon",on:{click:function(t){return e.doCai(e.listData)}}},[t("img",{attrs:{alt:"",src:r(271)}})]):t("div",{staticClass:"tools-icon",on:{click:e.openPopover}},[t("img",{attrs:{alt:"",src:r(554)}})])])],1),t("div",{staticClass:"popover-box"},[t("div",{staticClass:"pop-title"},[e._v(" 你的反馈将 "),t("br"),e._v(" 帮助职教一问优化进步 ")]),t("i",{staticClass:"el-icon-close",staticStyle:{"font-size":"2rem"},on:{click:function(t){return e.cancelPopover()}}}),t("div",{staticClass:"error-list"},[t("el-checkbox-group",{model:{value:e.errors,callback:function(t){e.errors=t},expression:"errors"}},e._l(e.errorList,(function(n){return t("el-checkbox",{key:n.code,staticClass:"check",attrs:{label:n.code,border:""}},[e._v(" "+e._s(n.name)+" ")])})),1),t("el-input",{attrs:{rows:4,maxlength:"30",placeholder:"其他",resize:"none",type:"textarea"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}}),t("div",{staticClass:"sumit-button"},[t("el-button",{attrs:{disabled:e.canSubmit},on:{click:function(t){return e.doCai(e.listData)}}},[e._v("提交")])],1)],1)])])],1)])},bs=[],vs={name:"ChatTools",props:{detailData:{type:Object,default:()=>{}},chatId:{type:String,default:""},sending:{type:Boolean,default:!1},resId:{type:String,default:""},openCourseId:{type:String,default:""},isLast:{type:Boolean,default:!1}},data(){return{input:"",popover:!1,errors:[],errorList:gs}},computed:{canSubmit(){return 0===this.errors.length&&""===this.input},listData(){return this.detailData}},methods:{cancelPopover(){this.popover=!1},openPopover(){this.popover=!0},async stopChat(e){const{msgId:t}=e;await Xr(t),e.stop=!0,this.$emit("on-stop-chat",e)},async reAnswer(e){e.reAnswerCount+=1,e.reAnswerCount>=3&&this.$confirm("对于回答是否依旧不满意,是否需要给教师负责人发送请求信息,由老师进行回答?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((async()=>{await ts({chatId:this.chatId,msgId:e.msgId,parentMsgId:e.parentMsgId,courseId:this.resId,openCourseId:this.openCourseId}),this.$message.success("已发送给老师")})).catch((()=>{})),this.$emit("on-reanswer",e)},async doZan(e){const t={chatId:this.chatId,msgId:e.msgId,type:1};e.zan?await es(t):await $r(t),e.zan=!e.zan,e.cai=!1},async doCai(e){let t={};e.cai||(t={desc:this.input,tags:this.errors});const n={chatId:this.chatId,msgId:e.msgId,type:2,...t};e.cai?await es(n):await $r(n),e.cai=!e.cai,e.zan=!1,e.cai&&this.$message.success("感谢您的反馈"),this.popover=!1,this.input="",this.errors=[]}}},ks=vs,xs=us(ks,ws,bs,!1,null,"78eed5c6",null),As=xs.exports;function _s(e,t){Ss(e,t),t.add(e)}function Ss(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Rs(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Es(e,t,n){return(t=Cs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cs(e){var t=Bs(e,"string");return"symbol"==typeof t?t:t+""}function Bs(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Os(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Ts=Os();function Is(e){Ts=e}const zs=/[&<>"']/,Ds=new RegExp(zs.source,"g"),Us=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ms=new RegExp(Us.source,"g"),js={"&":"&","<":"<",">":">",'"':""","'":"'"},Ps=e=>js[e];function Ns(e,t){if(t){if(zs.test(e))return e.replace(Ds,Ps)}else if(Us.test(e))return e.replace(Ms,Ps);return e}const Ls=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Fs(e){return e.replace(Ls,((e,t)=>(t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")))}const Hs=/(^|[^\[])\^/g;function Ws(e,t){e="string"===typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r="object"===typeof r&&"source"in r?r.source:r,r=r.replace(Hs,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}function Js(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(vr){return null}return e}const Vs={exec:()=>null};function Zs(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,s=t;while(--s>=0&&"\\"===n[s])r=!r;return r?"|":" |"})),r=n.split(/ \|/);let s=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else while(r.length<t)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(/\\\|/g,"|");return r}function Gs(e,t,n){const r=e.length;if(0===r)return"";let s=0;while(s<r){const i=e.charAt(r-s-1);if(i!==t||n){if(i===t||!n)break;s++}else s++}return e.slice(0,r-s)}function Ys(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function qs(e,t,n,r){const s=t.href,i=t.title?Ns(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:s,title:i,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:s,title:i,text:Ns(o)}}function Ks(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}class Qs{constructor(e){Es(this,"options",void 0),Es(this,"rules",void 0),Es(this,"lexer",void 0),this.options=e||Ts}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Gs(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=Ks(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Gs(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=Gs(t[0].replace(/^ *>[ \t]?/gm,""),"\n"),n=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:r,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const i=new RegExp(`^( {0,3}${n})((?:[\t ][^\\n]*)?(?:\\n|$))`);let o="",a="",c=!1;while(e){let n=!1;if(!(t=i.exec(e)))break;if(this.rules.block.hr.test(e))break;o=t[0],e=e.substring(o.length);let r=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),l=e.split("\n",1)[0],u=0;this.options.pedantic?(u=2,a=r.trimStart()):(u=t[2].search(/[^ ]/),u=u>4?1:u,a=r.slice(u),u+=t[1].length);let h=!1;if(!r&&/^ *$/.test(l)&&(o+=l+"\n",e=e.substring(l.length+1),n=!0),!n){const t=new RegExp(`^ {0,${Math.min(3,u-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,u-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),s=new RegExp(`^ {0,${Math.min(3,u-1)}}(?:\`\`\`|~~~)`),i=new RegExp(`^ {0,${Math.min(3,u-1)}}#`);while(e){const c=e.split("\n",1)[0];if(l=c,this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),s.test(l))break;if(i.test(l))break;if(t.test(l))break;if(n.test(e))break;if(l.search(/[^ ]/)>=u||!l.trim())a+="\n"+l.slice(u);else{if(h)break;if(r.search(/[^ ]/)>=4)break;if(s.test(r))break;if(i.test(r))break;if(n.test(r))break;a+="\n"+l}h||l.trim()||(h=!0),o+=c+"\n",e=e.substring(c.length+1),r=l.slice(u)}}s.loose||(c?s.loose=!0:/\n *\n *$/.test(o)&&(c=!0));let f,d=null;this.options.gfm&&(d=/^\[[ xX]\] /.exec(a),d&&(f="[ ] "!==d[0],a=a.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:o,task:!!d,checked:f,loose:!1,text:a,tokens:[]}),s.raw+=o}s.items[s.items.length-1].raw=o.trimEnd(),s.items[s.items.length-1].text=a.trimEnd(),s.raw=s.raw.trimEnd();for(let e=0;e<s.items.length;e++)if(this.lexer.state.top=!1,s.items[e].tokens=this.lexer.blockTokens(s.items[e].text,[]),!s.loose){const t=s.items[e].tokens.filter((e=>"space"===e.type)),n=t.length>0&&t.some((e=>/\n.*\n/.test(e.raw)));s.loose=n}if(s.loose)for(let e=0;e<s.items.length;e++)s.items[e].loose=!0;return s}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]};return e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(t){if(!/[:|]/.test(t[2]))return;const e={type:"table",raw:t[0],header:Zs(t[1]).map((e=>({text:e,tokens:[]}))),align:t[2].replace(/^\||\| *$/g,"").split("|"),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){let t,n,r,s,i=e.align.length;for(t=0;t<i;t++){const n=e.align[t];n&&(/^ *-+: *$/.test(n)?e.align[t]="right":/^ *:-+: *$/.test(n)?e.align[t]="center":/^ *:-+ *$/.test(n)?e.align[t]="left":e.align[t]=null)}for(i=e.rows.length,t=0;t<i;t++)e.rows[t]=Zs(e.rows[t],e.header.length).map((e=>({text:e,tokens:[]})));for(i=e.header.length,n=0;n<i;n++)e.header[n].tokens=this.lexer.inline(e.header[n].text);for(i=e.rows.length,n=0;n<i;n++)for(s=e.rows[n],r=0;r<s.length;r++)s[r].tokens=this.lexer.inline(s[r].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Ns(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=Gs(e.slice(0,-1),"\\");if((e.length-t.length)%2===0)return}else{const e=Ys(t[2],"()");if(e>-1){const n=0===t[0].indexOf("!")?5:4,r=n+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),qs(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return qs(n,e,n[0],this.lexer)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const s=r[1]||r[2]||"";if(!s||!n||this.rules.inline.punctuation.exec(n)){const n=[...r[0]].length-1;let s,i,o=n,a=0;const c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;c.lastIndex=0,t=t.slice(-1*e.length+n);while(null!=(r=c.exec(t))){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s)continue;if(i=[...s].length,r[3]||r[4]){o+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){a+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+a);const t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+i);if(Math.min(n,i)%2){const e=c.slice(1,-1);return{type:"em",raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}const l=c.slice(2,-2);return{type:"strong",raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=Ns(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=Ns(t[1]),n="mailto:"+e):(e=Ns(t[1]),n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=Ns(t[0]),n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])[0]}while(r!==t[0]);e=Ns(t[0]),n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:Ns(t[0]),{type:"text",raw:t[0],text:e}}}}const Xs={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Vs,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Xs.def=Ws(Xs.def).replace("label",Xs._label).replace("title",Xs._title).getRegex(),Xs.bullet=/(?:[*+-]|\d{1,9}[.)])/,Xs.listItemStart=Ws(/^( *)(bull) */).replace("bull",Xs.bullet).getRegex(),Xs.list=Ws(Xs.list).replace(/bull/g,Xs.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Xs.def.source+")").getRegex(),Xs._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Xs._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Xs.html=Ws(Xs.html,"i").replace("comment",Xs._comment).replace("tag",Xs._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xs.lheading=Ws(Xs.lheading).replace(/bull/g,Xs.bullet).getRegex(),Xs.paragraph=Ws(Xs._paragraph).replace("hr",Xs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xs._tag).getRegex(),Xs.blockquote=Ws(Xs.blockquote).replace("paragraph",Xs.paragraph).getRegex(),Xs.normal={...Xs},Xs.gfm={...Xs.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Xs.gfm.table=Ws(Xs.gfm.table).replace("hr",Xs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xs._tag).getRegex(),Xs.gfm.paragraph=Ws(Xs._paragraph).replace("hr",Xs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Xs.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xs._tag).getRegex(),Xs.pedantic={...Xs.normal,html:Ws("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Xs._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Vs,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ws(Xs.normal._paragraph).replace("hr",Xs.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Xs.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const $s={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Vs,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Vs,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^((?![*_])[\spunctuation])/,_punctuation:"\\p{P}$+<=>`^|~"};$s.punctuation=Ws($s.punctuation,"u").replace(/punctuation/g,$s._punctuation).getRegex(),$s.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,$s.anyPunctuation=/\\[punct]/g,$s._escapes=/\\([punct])/g,$s._comment=Ws(Xs._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),$s.emStrong.lDelim=Ws($s.emStrong.lDelim,"u").replace(/punct/g,$s._punctuation).getRegex(),$s.emStrong.rDelimAst=Ws($s.emStrong.rDelimAst,"gu").replace(/punct/g,$s._punctuation).getRegex(),$s.emStrong.rDelimUnd=Ws($s.emStrong.rDelimUnd,"gu").replace(/punct/g,$s._punctuation).getRegex(),$s.anyPunctuation=Ws($s.anyPunctuation,"gu").replace(/punct/g,$s._punctuation).getRegex(),$s._escapes=Ws($s._escapes,"gu").replace(/punct/g,$s._punctuation).getRegex(),$s._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,$s._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,$s.autolink=Ws($s.autolink).replace("scheme",$s._scheme).replace("email",$s._email).getRegex(),$s._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,$s.tag=Ws($s.tag).replace("comment",$s._comment).replace("attribute",$s._attribute).getRegex(),$s._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,$s._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,$s._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,$s.link=Ws($s.link).replace("label",$s._label).replace("href",$s._href).replace("title",$s._title).getRegex(),$s.reflink=Ws($s.reflink).replace("label",$s._label).replace("ref",Xs._label).getRegex(),$s.nolink=Ws($s.nolink).replace("ref",Xs._label).getRegex(),$s.reflinkSearch=Ws($s.reflinkSearch,"g").replace("reflink",$s.reflink).replace("nolink",$s.nolink).getRegex(),$s.normal={...$s},$s.pedantic={...$s.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ws(/^!?\[(label)\]\((.*?)\)/).replace("label",$s._label).getRegex(),reflink:Ws(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$s._label).getRegex()},$s.gfm={...$s.normal,escape:Ws($s.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},$s.gfm.url=Ws($s.gfm.url,"i").replace("email",$s.gfm._extended_email).getRegex(),$s.breaks={...$s.gfm,br:Ws($s.br).replace("{2,}","*").getRegex(),text:Ws($s.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class ei{constructor(e){Es(this,"tokens",void 0),Es(this,"options",void 0),Es(this,"state",void 0),Es(this,"tokenizer",void 0),Es(this,"inlineQueue",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ts,this.options.tokenizer=this.options.tokenizer||new Qs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Xs.normal,inline:$s.normal};this.options.pedantic?(t.block=Xs.pedantic,t.inline=$s.pedantic):this.options.gfm&&(t.block=Xs.gfm,this.options.breaks?t.inline=$s.breaks:t.inline=$s.gfm),this.tokenizer.rules=t}static get rules(){return{block:Xs,inline:$s}}static lex(e,t){const n=new ei(t);return n.lex(e)}static lexInline(e,t){const n=new ei(t);return n.inlineTokens(e)}lex(e){let t;e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);while(t=this.inlineQueue.shift())this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e){let t,n,r,s,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));while(e)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(t=n.call({lexer:this},e,i))&&(e=e.substring(t.raw.length),i.push(t),!0)))))if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),1===t.raw.length&&i.length>0?i[i.length-1].raw+="\n":i.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),n=i[i.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?i.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.fences(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.list(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.def(e))e=e.substring(t.raw.length),n=i[i.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.table(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),i.push(t);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startBlock.forEach((e=>{s=e.call({lexer:this},n),"number"===typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(t=this.tokenizer.paragraph(r)))n=i[i.length-1],s&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):i.push(t),s=r.length!==e.length,e=e.substring(t.raw.length);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),n=i[i.length-1],n&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):i.push(t);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,i}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e){let t,n,r,s,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)while(null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(c)))e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}while(null!=(s=this.tokenizer.rules.inline.blockSkip.exec(c)))c=c.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while(null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(c)))c=c.slice(0,s.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);while(e)if(i||(o=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(t=n.call({lexer:this},e,a))&&(e=e.substring(t.raw.length),a.push(t),!0)))))if(t=this.tokenizer.escape(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.tag(e))e=e.substring(t.raw.length),n=a[a.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):a.push(t);else if(t=this.tokenizer.link(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(t.raw.length),n=a[a.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):a.push(t);else if(t=this.tokenizer.emStrong(e,c,o))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.codespan(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.br(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.del(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.autolink(e))e=e.substring(t.raw.length),a.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startInline.forEach((e=>{s=e.call({lexer:this},n),"number"===typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(r))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(o=t.raw.slice(-1)),i=!0,n=a[a.length-1],n&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):a.push(t);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(t.raw.length),a.push(t);return a}}class ti{constructor(e){Es(this,"options",void 0),this.options=e||Ts}code(e,t,n){var r;const s=null===(r=(t||"").match(/^\S*/))||void 0===r?void 0:r[0];return e=e.replace(/\n$/,"")+"\n",s?'<pre><code class="language-'+Ns(s)+'">'+(n?e:Ns(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Ns(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e,t){return e}heading(e,t,n){return`<h${t}>${e}</h${t}>\n`}hr(){return"<hr>\n"}list(e,t,n){const r=t?"ol":"ul",s=t&&1!==n?' start="'+n+'"':"";return"<"+r+s+">\n"+e+"</"+r+">\n"}listitem(e,t,n){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td",r=t.align?`<${n} align="${t.align}">`:`<${n}>`;return r+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){const r=Js(e);if(null===r)return n;e=r;let s='<a href="'+e+'"';return t&&(s+=' title="'+t+'"'),s+=">"+n+"</a>",s}image(e,t,n){const r=Js(e);if(null===r)return n;e=r;let s=`<img src="${e}" alt="${n}"`;return t&&(s+=` title="${t}"`),s+=">",s}text(e){return e}}class ni{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class ri{constructor(e){Es(this,"options",void 0),Es(this,"renderer",void 0),Es(this,"textRenderer",void 0),this.options=e||Ts,this.options.renderer=this.options.renderer||new ti,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ni}static parse(e,t){const n=new ri(t);return n.parse(e)}static parseInline(e,t){const n=new ri(t);return n.parseInline(e)}parse(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="";for(let r=0;r<e.length;r++){const s=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const e=s,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}switch(s.type){case"space":continue;case"hr":n+=this.renderer.hr();continue;case"heading":{const e=s;n+=this.renderer.heading(this.parseInline(e.tokens),e.depth,Fs(this.parseInline(e.tokens,this.textRenderer)));continue}case"code":{const e=s;n+=this.renderer.code(e.text,e.lang,!!e.escaped);continue}case"table":{const e=s;let t="",r="";for(let n=0;n<e.header.length;n++)r+=this.renderer.tablecell(this.parseInline(e.header[n].tokens),{header:!0,align:e.align[n]});t+=this.renderer.tablerow(r);let i="";for(let n=0;n<e.rows.length;n++){const t=e.rows[n];r="";for(let n=0;n<t.length;n++)r+=this.renderer.tablecell(this.parseInline(t[n].tokens),{header:!1,align:e.align[n]});i+=this.renderer.tablerow(r)}n+=this.renderer.table(t,i);continue}case"blockquote":{const e=s,t=this.parse(e.tokens);n+=this.renderer.blockquote(t);continue}case"list":{const e=s,t=e.ordered,r=e.start,i=e.loose;let o="";for(let n=0;n<e.items.length;n++){const t=e.items[n],r=t.checked,s=t.task;let a="";if(t.task){const e=this.renderer.checkbox(!!r);i?t.tokens.length>0&&"paragraph"===t.tokens[0].type?(t.tokens[0].text=e+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=e+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",text:e+" "}):a+=e+" "}a+=this.parse(t.tokens,i),o+=this.renderer.listitem(a,s,!!r)}n+=this.renderer.list(o,t,r);continue}case"html":{const e=s;n+=this.renderer.html(e.text,e.block);continue}case"paragraph":{const e=s;n+=this.renderer.paragraph(this.parseInline(e.tokens));continue}case"text":{let i=s,o=i.tokens?this.parseInline(i.tokens):i.text;while(r+1<e.length&&"text"===e[r+1].type)i=e[++r],o+="\n"+(i.tokens?this.parseInline(i.tokens):i.text);n+=t?this.renderer.paragraph(o):o;continue}default:{const e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t){t=t||this.renderer;let n="";for(let r=0;r<e.length;r++){const s=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const e=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=e||"";continue}}switch(s.type){case"escape":{const e=s;n+=t.text(e.text);break}case"html":{const e=s;n+=t.html(e.text);break}case"link":{const e=s;n+=t.link(e.href,e.title,this.parseInline(e.tokens,t));break}case"image":{const e=s;n+=t.image(e.href,e.title,e.text);break}case"strong":{const e=s;n+=t.strong(this.parseInline(e.tokens,t));break}case"em":{const e=s;n+=t.em(this.parseInline(e.tokens,t));break}case"codespan":{const e=s;n+=t.codespan(e.text);break}case"br":n+=t.br();break;case"del":{const e=s;n+=t.del(this.parseInline(e.tokens,t));break}case"text":{const e=s;n+=t.text(e.text);break}default:{const e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}}class si{constructor(e){Es(this,"options",void 0),this.options=e||Ts}preprocess(e){return e}postprocess(e){return e}}Es(si,"passThroughHooks",new Set(["preprocess","postprocess"]));var ii=new WeakSet;class oi{constructor(){_s(this,ii),Es(this,"defaults",Os()),Es(this,"options",this.setOptions),Es(this,"parse",Rs(ii,this,ai).call(this,ei.lex,ri.parse)),Es(this,"parseInline",Rs(ii,this,ai).call(this,ei.lexInline,ri.parseInline)),Es(this,"Parser",ri),Es(this,"Renderer",ti),Es(this,"TextRenderer",ni),Es(this,"Lexer",ei),Es(this,"Tokenizer",Qs),Es(this,"Hooks",si),this.use(...arguments)}walkTokens(e,t){let n=[];for(const i of e)switch(n=n.concat(t.call(this,i)),i.type){case"table":{const e=i;for(const r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(const r of e.rows)for(const e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=i;n=n.concat(this.walkTokens(e.items,t));break}default:{var r,s;const e=i;null!==(r=this.defaults.extensions)&&void 0!==r&&null!==(s=r.childTokens)&&void 0!==s&&s[e.type]?this.defaults.extensions.childTokens[e.type].forEach((r=>{n=n.concat(this.walkTokens(e[r],t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(){const e=this.defaults.extensions||{renderers:{},childTokens:{}};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((t=>{const n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){const n=e.renderers[t.name];e.renderers[t.name]=n?function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];let i=t.renderer.apply(this,r);return!1===i&&(i=n.apply(this,r)),i}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");const n=e[t.level];n?n.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),n.extensions=e),t.renderer){const e=this.defaults.renderer||new ti(this.defaults);for(const n in t.renderer){const r=t.renderer[n],s=n,i=e[s];e[s]=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];let o=r.apply(e,n);return!1===o&&(o=i.apply(e,n)),o||""}}n.renderer=e}if(t.tokenizer){const e=this.defaults.tokenizer||new Qs(this.defaults);for(const n in t.tokenizer){const r=t.tokenizer[n],s=n,i=e[s];e[s]=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];let o=r.apply(e,n);return!1===o&&(o=i.apply(e,n)),o}}n.tokenizer=e}if(t.hooks){const e=this.defaults.hooks||new si;for(const n in t.hooks){const r=t.hooks[n],s=n,i=e[s];si.passThroughHooks.has(n)?e[s]=t=>{if(this.defaults.async)return Promise.resolve(r.call(e,t)).then((t=>i.call(e,t)));const n=r.call(e,t);return i.call(e,n)}:e[s]=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];let o=r.apply(e,n);return!1===o&&(o=i.apply(e,n)),o}}n.hooks=e}if(t.walkTokens){const e=this.defaults.walkTokens,r=t.walkTokens;n.walkTokens=function(t){let n=[];return n.push(r.call(this,t)),e&&(n=n.concat(e.call(this,t))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ei.lex(e,null!==t&&void 0!==t?t:this.defaults)}parser(e,t){return ri.parse(e,null!==t&&void 0!==t?t:this.defaults)}}function ai(e,t){return(n,r)=>{const s={...r},i={...this.defaults,...s};!0===this.defaults.async&&!1===s.async&&(i.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),i.async=!0);const o=Rs(ii,this,ci).call(this,!!i.silent,!!i.async);if("undefined"===typeof n||null===n)return o(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof n)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(i.hooks&&(i.hooks.options=i),i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then((t=>e(t,i))).then((e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then((()=>e)):e)).then((e=>t(e,i))).then((e=>i.hooks?i.hooks.postprocess(e):e)).catch(o);try{i.hooks&&(n=i.hooks.preprocess(n));const r=e(n,i);i.walkTokens&&this.walkTokens(r,i.walkTokens);let s=t(r,i);return i.hooks&&(s=i.hooks.postprocess(s)),s}catch(vr){return o(vr)}}}function ci(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+Ns(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}const li=new oi;function ui(e,t){return li.parse(e,t)}ui.options=ui.setOptions=function(e){return li.setOptions(e),ui.defaults=li.defaults,Is(ui.defaults),ui},ui.getDefaults=Os,ui.defaults=Ts,ui.use=function(){return li.use(...arguments),ui.defaults=li.defaults,Is(ui.defaults),ui},ui.walkTokens=function(e,t){return li.walkTokens(e,t)},ui.parseInline=li.parseInline,ui.Parser=ri,ui.parser=ri.parse,ui.Renderer=ti,ui.TextRenderer=ni,ui.Lexer=ei,ui.lexer=ei.lex,ui.Tokenizer=Qs,ui.Hooks=si,ui.parse=ui;ui.options,ui.setOptions,ui.use,ui.walkTokens,ui.parseInline,ri.parse,ei.lex;const hi=new AbortController,fi=hi.signal;var di={name:"Chat",components:{ChatTools:As},props:{keyWord:{type:String,default:""},resId:{type:String,default:""},openCourseId:{type:String,default:""},chatId:{type:String,default:""},chatMajorId:{type:String,default:void 0},showMoreQA:{type:Boolean,default:!1},showFile:{type:Boolean,default:!1},messageData:{type:Array,default:ms}},data(){return{popover:!1,input:"",errors:[],errorList:gs,finish:!1,cacheKeyWord:""}},computed:{canSubmit(){return 0===this.errors.length&&""===this.input}},watch:{keyWord:{handler(){this.keyWord&&(this.cacheKeyWord=this.keyWord,this.postMessage())},immediate:!0}},methods:{cancelPopover(){this.popover=!1},openPopover(){this.popover=!0},scrollToBottom(){this.$refs.chatContainer.scrollTop=this.$refs.chatContainer.scrollHeight},async postMessage(e,t,n){let r={};this.finish=!1,e&&(e.sending=!0,r={reStatus:1,parentMsgId:e.parentMsgId,msgId:e.msgId,content:this.messageData[e.index-1].message},this.messageData[e.index].message="",this.messageData[e.index].cacheMessage="",this.makeAutoMessage());const s={messageList:[{content:this.keyWord||this.cacheKeyWord,resId:this.resId,chatId:this.chatId||void 0,commonKey:t||!1,parentMsgId:n||void 0,...r}]};if(!e&&!t){const e=this.keyWord||this.cacheKeyWord;this.messageData.push({type:"user",message:e.replace(/\n/g,"<br>")}),setTimeout((()=>{this.messageData.push({type:"robot",message:"",cacheMessage:"",zan:!1,cai:!1,stop:!1,finish:!1,sending:!0,links:[],connectUrl:[],reAnswerCount:0}),this.makeAutoMessage()}))}await as(s,fi,(t=>{this.makeMessageLine(t,e)}))},makeAutoMessage(){const e=[];for(let t=0;t<this.messageData.length;t++){const n=this.messageData[t];e.push({role:"robot"===n.type?"assistant":"user",content:n.message||"正在思考中。"})}this.showMoreQA&&this.makeAutoQuestioning(e)},makeMessageLine(e,t){const{content:n,status:r,chatId:s,msgId:i,parentMsgId:o,reference:a,commonKey:c,connectUrl:l}=JSON.parse(e.data);let u=t?t.index:this.messageData.length-1;const h=this.messageData[u];let f=!0;if(2===r||1===r)return c?(h.sending=!0,void this.postMessage(t,c,o)):(h.finish=!0,a&&(h.links=JSON.parse(a),h.links.map((e=>{e.title.startsWith(this.chatMajorId)||(f=!1)}))),l&&(h.connectUrl=JSON.parse(l)),h.allIdWithStart=f,this.cacheKeyWord="",this.finish=!0,void this.$emit("on-message-finish",s));h.cacheMessage+=n,h.message=ui.parse(h.cacheMessage),h.msgId=i,h.parentMsgId=o,h.chatId=s,setTimeout((()=>{t||this.scrollToBottom()}),100),setTimeout((()=>h.sending=!1),500)},async makeAutoQuestioning(e){if(e.length<=2)return;const t=await os(this.chatMajorId,e),{message:{content:{followUps:n}}}=t;this.messageData[this.messageData.length-1].followUps=[],this.messageData[this.messageData.length-1].followUps=n.length>3?n.splice(0,3):n},onStopChat(e){this.$emit("on-message-finish",e.chatId)},selectModule(e){this.cacheKeyWord=e,this.postMessage()},reanswer(e,t){e.index=t,e.stop=!1,e.finish=!1,e.links=[],e.connectUrl=[],this.postMessage(e),this.$emit("on-reanser")},seeDetail(e,t){const{pageIndex:n}=e,r=`${Gr}/#/pdf-view?documentUrl=${Yr}${encodeURIComponent(t)}&pageIndex=${n}`;window.open(r,"_blank")}}},pi=di,gi=us(pi,ds,ps,!1,null,"05077892",null),mi=gi.exports;
|
|
15
|
+
return function(){var t=e,n=t.lib,r=n.WordArray,s=n.Hasher,i=t.algo,o=r.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]),a=r.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]),c=r.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=r.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]),u=r.create([0,1518500249,1859775393,2400959708,2840853838]),h=r.create([1352829926,1548603684,1836072691,2053994217,0]),f=i.RIPEMD160=s.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,s=e[r];e[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var i,f,b,v,k,x,A,_,S,R,E,C=this._hash.words,B=u.words,O=h.words,T=o.words,I=a.words,z=c.words,D=l.words;x=i=C[0],A=f=C[1],_=b=C[2],S=v=C[3],R=k=C[4];for(n=0;n<80;n+=1)E=i+e[t+T[n]]|0,E+=n<16?d(f,b,v)+B[0]:n<32?p(f,b,v)+B[1]:n<48?g(f,b,v)+B[2]:n<64?m(f,b,v)+B[3]:y(f,b,v)+B[4],E|=0,E=w(E,z[n]),E=E+k|0,i=k,k=v,v=w(b,10),b=f,f=E,E=x+e[t+I[n]]|0,E+=n<16?y(A,_,S)+O[0]:n<32?m(A,_,S)+O[1]:n<48?g(A,_,S)+O[2]:n<64?p(A,_,S)+O[3]:d(A,_,S)+O[4],E|=0,E=w(E,D[n]),E=E+R|0,x=R,R=S,S=w(_,10),_=A,A=E;E=C[1]+b+S|0,C[1]=C[2]+v+R|0,C[2]=C[3]+k+x|0,C[3]=C[4]+i+A|0,C[4]=C[0]+f+_|0,C[0]=E},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var s=this._hash,i=s.words,o=0;o<5;o++){var a=i[o];i[o]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return s},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function d(e,t,n){return e^t^n}function p(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function m(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function w(e,t){return e<<t|e>>>32-t}t.RIPEMD160=s._createHelper(f),t.HmacRIPEMD160=s._createHmacHelper(f)}(Math),e.RIPEMD160}))},5:function(e,t,n){(function(t,r){e.exports=r(n(763))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,s=n.Hasher,i=t.algo,o=[],a=i.SHA1=s.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],s=n[1],i=n[2],a=n[3],c=n[4],l=0;l<80;l++){if(l<16)o[l]=0|e[t+l];else{var u=o[l-3]^o[l-8]^o[l-14]^o[l-16];o[l]=u<<1|u>>>31}var h=(r<<5|r>>>27)+c+o[l];h+=l<20?1518500249+(s&i|~s&a):l<40?1859775393+(s^i^a):l<60?(s&i|s&a|i&a)-1894007588:(s^i^a)-899497514,c=a,a=i,i=s<<30|s>>>2,s=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+s|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=s._createHelper(a),t.HmacSHA1=s._createHmacHelper(a)}(),e.SHA1}))},314:function(e,t,n){(function(t,r){e.exports=r(n(763),n(535))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,s=t.algo,i=s.SHA256,o=s.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=i._createHelper(o),t.HmacSHA224=i._createHmacHelper(o)}(),e.SHA224}))},535:function(e,t,n){(function(t,r){e.exports=r(n(763))})(0,(function(e){return function(t){var n=e,r=n.lib,s=r.WordArray,i=r.Hasher,o=n.algo,a=[],c=[];(function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}var r=2,s=0;while(s<64)e(r)&&(s<8&&(a[s]=n(t.pow(r,.5))),c[s]=n(t.pow(r,1/3)),s++),r++})();var l=[],u=o.SHA256=i.extend({_doReset:function(){this._hash=new s.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],s=n[1],i=n[2],o=n[3],a=n[4],u=n[5],h=n[6],f=n[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var p=l[d-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=l[d-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[d]=g+l[d-7]+y+l[d-16]}var w=a&u^~a&h,b=r&s^r&i^s&i,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),k=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),x=f+k+w+c[d]+l[d],A=v+b;f=h,h=u,u=a,a=o+x|0,o=i,i=s,s=r,r=x+A|0}n[0]=n[0]+r|0,n[1]=n[1]+s|0,n[2]=n[2]+i|0,n[3]=n[3]+o|0,n[4]=n[4]+a|0,n[5]=n[5]+u|0,n[6]=n[6]+h|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,s=8*e.sigBytes;return n[s>>>5]|=128<<24-s%32,n[14+(s+64>>>9<<4)]=t.floor(r/4294967296),n[15+(s+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(u),n.HmacSHA256=i._createHmacHelper(u)}(Math),e.SHA256}))},515:function(e,t,n){(function(t,r){e.exports=r(n(763),n(482))})(0,(function(e){return function(t){var n=e,r=n.lib,s=r.WordArray,i=r.Hasher,o=n.x64,a=o.Word,c=n.algo,l=[],u=[],h=[];(function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=t%5,s=(2*e+3*t)%5;e=r,t=s}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var c=0,f=0,d=0;d<7;d++){if(1&i){var p=(1<<d)-1;p<32?f^=1<<p:c^=1<<p-32}128&i?i=i<<1^113:i<<=1}h[o]=a.create(c,f)}})();var f=[];(function(){for(var e=0;e<25;e++)f[e]=a.create()})();var d=c.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,s=0;s<r;s++){var i=e[t+2*s],o=e[t+2*s+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var a=n[s];a.high^=o,a.low^=i}for(var c=0;c<24;c++){for(var d=0;d<5;d++){for(var p=0,g=0,m=0;m<5;m++){a=n[d+5*m];p^=a.high,g^=a.low}var y=f[d];y.high=p,y.low=g}for(d=0;d<5;d++){var w=f[(d+4)%5],b=f[(d+1)%5],v=b.high,k=b.low;for(p=w.high^(v<<1|k>>>31),g=w.low^(k<<1|v>>>31),m=0;m<5;m++){a=n[d+5*m];a.high^=p,a.low^=g}}for(var x=1;x<25;x++){a=n[x];var A=a.high,_=a.low,S=l[x];S<32?(p=A<<S|_>>>32-S,g=_<<S|A>>>32-S):(p=_<<S-32|A>>>64-S,g=A<<S-32|_>>>64-S);var R=f[u[x]];R.high=p,R.low=g}var E=f[0],C=n[0];E.high=C.high,E.low=C.low;for(d=0;d<5;d++)for(m=0;m<5;m++){x=d+5*m,a=n[x];var B=f[x],O=f[(d+1)%5+5*m],T=f[(d+2)%5+5*m];a.high=B.high^~O.high&T.high,a.low=B.low^~O.low&T.low}a=n[0];var I=h[c];a.high^=I.high,a.low^=I.low}},_doFinalize:function(){var e=this._data,n=e.words,r=(this._nDataBytes,8*e.sigBytes),i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var o=this._state,a=this.cfg.outputLength/8,c=a/8,l=[],u=0;u<c;u++){var h=o[u],f=h.high,d=h.low;f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(f)}return new s.init(l,a)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=i._createHelper(d),n.HmacSHA3=i._createHmacHelper(d)}(Math),e.SHA3}))},511:function(e,t,n){(function(t,r){e.exports=r(n(763),n(482),n(310))})(0,(function(e){return function(){var t=e,n=t.x64,r=n.Word,s=n.WordArray,i=t.algo,o=i.SHA512,a=i.SHA384=o.extend({_doReset:function(){this._hash=new s.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=o._createHelper(a),t.HmacSHA384=o._createHmacHelper(a)}(),e.SHA384}))},310:function(e,t,n){(function(t,r){e.exports=r(n(763),n(482))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.Hasher,s=t.x64,i=s.Word,o=s.WordArray,a=t.algo;function c(){return i.create.apply(i,arguments)}var l=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],u=[];(function(){for(var e=0;e<80;e++)u[e]=c()})();var h=a.SHA512=r.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],s=n[1],i=n[2],o=n[3],a=n[4],c=n[5],h=n[6],f=n[7],d=r.high,p=r.low,g=s.high,m=s.low,y=i.high,w=i.low,b=o.high,v=o.low,k=a.high,x=a.low,A=c.high,_=c.low,S=h.high,R=h.low,E=f.high,C=f.low,B=d,O=p,T=g,I=m,z=y,D=w,U=b,M=v,j=k,P=x,N=A,L=_,F=S,H=R,W=E,J=C,V=0;V<80;V++){var Z,G,Y=u[V];if(V<16)G=Y.high=0|e[t+2*V],Z=Y.low=0|e[t+2*V+1];else{var q=u[V-15],K=q.high,Q=q.low,X=(K>>>1|Q<<31)^(K>>>8|Q<<24)^K>>>7,$=(Q>>>1|K<<31)^(Q>>>8|K<<24)^(Q>>>7|K<<25),ee=u[V-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,se=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=u[V-7],oe=ie.high,ae=ie.low,ce=u[V-16],le=ce.high,ue=ce.low;Z=$+ae,G=X+oe+(Z>>>0<$>>>0?1:0),Z+=se,G=G+re+(Z>>>0<se>>>0?1:0),Z+=ue,G=G+le+(Z>>>0<ue>>>0?1:0),Y.high=G,Y.low=Z}var he=j&N^~j&F,fe=P&L^~P&H,de=B&T^B&z^T&z,pe=O&I^O&D^I&D,ge=(B>>>28|O<<4)^(B<<30|O>>>2)^(B<<25|O>>>7),me=(O>>>28|B<<4)^(O<<30|B>>>2)^(O<<25|B>>>7),ye=(j>>>14|P<<18)^(j>>>18|P<<14)^(j<<23|P>>>9),we=(P>>>14|j<<18)^(P>>>18|j<<14)^(P<<23|j>>>9),be=l[V],ve=be.high,ke=be.low,xe=J+we,Ae=W+ye+(xe>>>0<J>>>0?1:0),_e=(xe=xe+fe,Ae=Ae+he+(xe>>>0<fe>>>0?1:0),xe=xe+ke,Ae=Ae+ve+(xe>>>0<ke>>>0?1:0),xe=xe+Z,Ae=Ae+G+(xe>>>0<Z>>>0?1:0),me+pe),Se=ge+de+(_e>>>0<me>>>0?1:0);W=F,J=H,F=N,H=L,N=j,L=P,P=M+xe|0,j=U+Ae+(P>>>0<M>>>0?1:0)|0,U=z,M=D,z=T,D=I,T=B,I=O,O=xe+_e|0,B=Ae+Se+(O>>>0<xe>>>0?1:0)|0}p=r.low=p+O,r.high=d+B+(p>>>0<O>>>0?1:0),m=s.low=m+I,s.high=g+T+(m>>>0<I>>>0?1:0),w=i.low=w+D,i.high=y+z+(w>>>0<D>>>0?1:0),v=o.low=v+M,o.high=b+U+(v>>>0<M>>>0?1:0),x=a.low=x+P,a.high=k+j+(x>>>0<P>>>0?1:0),_=c.low=_+L,c.high=A+N+(_>>>0<L>>>0?1:0),R=h.low=R+H,h.high=S+F+(R>>>0<H>>>0?1:0),C=f.low=C+J,f.high=E+W+(C>>>0<J>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process();var s=this._hash.toX32();return s},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(h),t.HmacSHA512=r._createHmacHelper(h)}(),e.SHA512}))},634:function(e,t,n){(function(t,r){e.exports=r(n(763),n(360),n(490),n(568),n(796))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,s=n.BlockCipher,i=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=i.DES=s.extend({_doReset:function(){for(var e=this._key,t=e.words,n=[],r=0;r<56;r++){var s=o[r]-1;n[r]=t[s>>>5]>>>31-s%32&1}for(var i=this._subKeys=[],l=0;l<16;l++){var u=i[l]=[],h=c[l];for(r=0;r<24;r++)u[r/6|0]|=n[(a[r]-1+h)%28]<<31-r%6,u[4+(r/6|0)]|=n[28+(a[r+24]-1+h)%28]<<31-r%6;u[0]=u[0]<<1|u[0]>>>31;for(r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var f=this._invSubKeys=[];for(r=0;r<16;r++)f[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var s=n[r],i=this._lBlock,o=this._rBlock,a=0,c=0;c<8;c++)a|=l[c][((o^s[c])&u[c])>>>0];this._lBlock=o,this._rBlock=i^a}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function d(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=s._createHelper(h);var p=i.TripleDES=s.extend({_doReset:function(){var e=this._key,t=e.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=t.slice(0,2),s=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(r.create(n)),this._des2=h.createEncryptor(r.create(s)),this._des3=h.createEncryptor(r.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=s._createHelper(p)}(),e.TripleDES}))},482:function(e,t,n){(function(t,r){e.exports=r(n(763))})(0,(function(e){return function(t){var n=e,r=n.lib,s=r.Base,i=r.WordArray,o=n.x64={};o.Word=s.extend({init:function(e,t){this.high=e,this.low=t}}),o.WordArray=s.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var s=e[r];n.push(s.high),n.push(s.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=s.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}})}(),e}))},271:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OUU1NjJFMDc1OUU1MTFFRkE2QzRFMUZCM0YyQjE0MDUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OUU1NjJFMDg1OUU1MTFFRkE2QzRFMUZCM0YyQjE0MDUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5RTU2MkUwNTU5RTUxMUVGQTZDNEUxRkIzRjJCMTQwNSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5RTU2MkUwNjU5RTUxMUVGQTZDNEUxRkIzRjJCMTQwNSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PnYHytYAAADTSURBVHjapFPRDcIgEC3EPWQFXcA6ifVfZ6jO4ADqJGUCV6BOgnfJI70iJTRc8gIc8Lh3dyjvfVNjmzDZX5u+4PyXYD+PZgwOjcstDTeCEWMKB8Iwo2QJu4tvCQ5zRzA8j8F+7LfBp9folaHPJKw0SzjVEIzIxz8BJdOJhOUqMScgbRzWGbDIdk6CQeWmPgAJR2Gg8Y51FxFshZSJIHqhF/3xhE/aMVREpVqZLg6IgA85OqyW9OiSUhX9hcje/DKBJbyyDKmWFW3bLe0HqNrv/BNgANkfieaZ8+wxAAAAAElFTkSuQmCC"},554:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAOVJREFUOE+lk80VgyAQhMdKgjfKWCtJrMRYiekklMFN0kkcHpuHCkme7sUf5JvdGWxwshrdb6wMf7BeAFzwLui3EWCsCIDncvsAcEvXGk+Cd20JMHHBWJkBdLlK1qVJQn3wzvF93sFPQOqWAqcAE0HBu/5oBzSbPnQ7QJqVc9KDOOO2jBWaPKiReYxMgkUFRjVWABRQo90HkDlNhau2mBRz1mV5uANomVQJEKNKker52I4zrmIszMlDxRF44uZlnJ3Q6iAVAPSBnRByCKBGsQMaGjMvVbU1Y4UQ5s3/o1pVwLdN+dob2Bx9EVmMIDsAAAAASUVORK5CYII="},14:function(e){"use strict";e.exports="data:image/png;base64,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"},951:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAVNJREFUWEftltGRwjAMRKVOjko4KoGr5KCSu06gE+hkYTMyE5ATK2CTn3gmH5ko3peVvbHKzENn1pcF4CMOANiJyK+IXFR10297U4Ce8JeJEmDVHCAjnDTbAowIJ4BTkxYEhBPAv6r+VGvBBOGkuVfVw9sALwjXAQgIX0wprfrnoH3NgYAwhfYi8m3XUMJvVPUUbkFQmPMxXBg0BBgbMYAJwvwaruqtOVD6t61UNbWpq3VJCODvFpmMztLo+mmwfKc4bvVOLwdwjFoJgJazPjJcCmYdSDPZ5LxdGxBXNi0/0EYAvD9HlK1mGkBpYgAUH9puudddDI86EABAqebpuYvhTwO4EFoAajvAkw635NDCdClYE+De35Egawbg9jcA/heYpn03XAzXciC7ui3IGNEdRC6G3wVgv/n1D0es/t63tCQEQ+jhJJTqmh7LI0G1AMzuwBVqnaAhSR8MMgAAAABJRU5ErkJggg=="},793:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6M0YyMDhFRTY1OUUzMTFFRjlBN0NGODZCQ0M3RUY5QzAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6M0YyMDhFRTc1OUUzMTFFRjlBN0NGODZCQ0M3RUY5QzAiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDozRjIwOEVFNDU5RTMxMUVGOUE3Q0Y4NkJDQzdFRjlDMCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDozRjIwOEVFNTU5RTMxMUVGOUE3Q0Y4NkJDQzdFRjlDMCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Phk9awQAAADGSURBVHjaYvz//z8DJYAJl4RRLoMCECcQMoARmwtAmoHUfSB+AMLnJjM4kuqCeiBeAMQgjQ7keAGk6SAxYcCCQxzkhQNQGuSl/WjyB4DeasRqADTgFgAVPACyQSARTYk8EIPUNKIEIlCxA5L/4TbgCWBFkCUsSJr3Q0NdAWY6Hu+BYuYBeiCCBBVhUYfHAHto+OBPSATAA0oMAAXgQ6q5ABwL0ECcD5VwQPYjlgBkgIYVSkJ6gBTyC/FZDdS8gGBmIgUABBgAgktC2XC6NmEAAAAASUVORK5CYII="},632:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAOJJREFUOE+lk9sRwiAQRW8qkfzRhaSTpBLHSmInbhn8ZTvRXGZR8sCJykx+MuzZuwdo8OdqavXOBwcgaJTbpx67ACueACg/jdLVIDXAaAVXAJNGqSatAdidxfIr4AGgBUAPdwOVU8icig2wSeB86Oeis0YZssjV/KfZS69R2OANcD4E23hhx9xhLa8Q3GoUTQmsmFFpnbE7jcL5N8v2josE5U/nAwUSQNgegAkdR3yN8AMAC4lfAtIR5xtaOkhzHRiBgCE7WgBMIk9jV6AJZvx0hKWD9HCOPMz146re8SMw7nkC7MV4ERlYkdMAAAAASUVORK5CYII="},317:function(t){"use strict";t.exports=e},477:function(){}},n={};function r(e){var s=n[e];if(void 0!==s)return s.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,r),i.exports}!function(){r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,{a:t}),t}}(),function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){r.p=""}();var s={};return function(){"use strict";r.r(s),r.d(s,{default:function(){return Bi}});var e={};if(r.r(e),r.d(e,{hasBrowserEnv:function(){return We},hasStandardBrowserEnv:function(){return Ve},hasStandardBrowserWebWorkerEnv:function(){return Ze},navigator:function(){return Je},origin:function(){return Ge}}),"undefined"!==typeof window){var t=window.document.currentScript,n=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(r.p=n[1])}var i=function(){var e=this,t=e._self._c;return e.visible?t("div",{staticClass:"ai-contain"},[t("div",{staticClass:"bg-image"}),t("div",{staticClass:"ai-contain-header"},[t("div",{staticClass:"logo-title",on:{click:e.showHot}},[t("img",{staticStyle:{width:"48px",height:"48px"},attrs:{src:r(14),alt:""}}),t("span",{staticClass:"title-font"},[e._v("学习助手")])]),t("div",{staticClass:"icon-close",on:{click:e.closeMessage}},[t("i",{staticClass:"el-icon-close"})])]),e.courseFlag?[t("div",{staticClass:"ai-main-content"},[t("hot-search",{directives:[{name:"show",rawName:"v-show",value:!e.chatShow,expression:"!chatShow"}],attrs:{resId:e.resId},on:{"select-module":e.selectModule,"init-info":e.initInfo}}),e.chatShow?t("chat",{ref:"chatRef",attrs:{resId:e.resId,"open-course-id":e.openCourseId,chatId:e.chatId,"key-word":e.aiMessageKeyWord,"message-data":e.messageList,"chat-major-id":e.chatMajorId,"show-more-q-a":e.showMoreQA,"show-file":e.showFile},on:{"on-reanser":e.reanserMethod,"on-message-finish":e.messageFinish}}):e._e()],1),t("div",{staticClass:"tools-wrap"},[t("span",{on:{click:e.addNewChat}},[e._v("新增对话")]),t("span",{on:{click:e.clearChat}},[e._v("清空对话")])]),t("div",{staticClass:"ai-message-send",on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.goChat.apply(null,arguments)}}},[t("el-input",{attrs:{type:"textarea",rows:2,placeholder:"可以提出问题..."},model:{value:e.aiMessage,callback:function(t){e.aiMessage=t},expression:"aiMessage"}}),t("div",{staticClass:"ai-send-icon",on:{click:e.goChat}},[t("img",{staticStyle:{width:"24px",height:"24px"},attrs:{src:r(951),alt:""}})])],1)]:e._e(),e.courseFlag?e._e():t("div",{staticClass:"message-wrap"},[t("div",{staticClass:"message-line"},[e._v(e._s(e.message))]),t("div",{staticClass:"message-line"},[e._v("不能交流")])])],2):e._e()},o=[],a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"hot-search-contain"},[e._m(0),t("div",{staticClass:"robot-message"},[e.prologue?[t("p",[e._v(e._s(e.prologue))])]:[t("p",[e._v("Hi,我是你的专属学习助手")]),t("p",[e._v("欢迎随时向我提问。")])],e._l(e.aiMessage,(function(n,r){return t("div",{key:r,staticClass:"hot-list",on:{click:function(t){return e.selectModule(n)}}},[e._v(" "+e._s(n)+" "),t("i",{staticClass:"el-icon-arrow-right go-icon"})])}))],2)])},c=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"robot"},[t("div",{staticClass:"robot-image-div"})])}];function l(e,t){return function(){return e.apply(t,arguments)}}const{toString:u}=Object.prototype,{getPrototypeOf:h}=Object,f=(e=>t=>{const n=u.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),d=e=>(e=e.toLowerCase(),t=>f(t)===e),p=e=>t=>typeof t===e,{isArray:g}=Array,m=p("undefined");function y(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const w=d("ArrayBuffer");function b(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&w(e.buffer),t}const v=p("string"),k=p("function"),x=p("number"),A=e=>null!==e&&"object"===typeof e,_=e=>!0===e||!1===e,S=e=>{if("object"!==f(e))return!1;const t=h(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},R=d("Date"),E=d("File"),C=d("Blob"),B=d("FileList"),O=e=>A(e)&&k(e.pipe),T=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||k(e.append)&&("formdata"===(t=f(e))||"object"===t&&k(e.toString)&&"[object FormData]"===e.toString()))},I=d("URLSearchParams"),[z,D,U,M]=["ReadableStream","Request","Response","Headers"].map(d),j=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function P(e,t){let n,r,{allOwnKeys:s=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),g(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=s?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let o;for(n=0;n<i;n++)o=r[n],t.call(null,e[o],o,e)}}function N(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,s=n.length;while(s-- >0)if(r=n[s],t===r.toLowerCase())return r;return null}const L=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),F=e=>!m(e)&&e!==L;function H(){const{caseless:e}=F(this)&&this||{},t={},n=(n,r)=>{const s=e&&N(t,r)||r;S(t[s])&&S(n)?t[s]=H(t[s],n):S(n)?t[s]=H({},n):g(n)?t[s]=n.slice():t[s]=n};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&P(arguments[r],n);return t}const W=function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return P(t,((t,r)=>{n&&k(t)?e[r]=l(t,n):e[r]=t}),{allOwnKeys:r}),e},J=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),V=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Z=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},null==e)return t;do{s=Object.getOwnPropertyNames(e),i=s.length;while(i-- >0)o=s[i],r&&!r(o,e,t)||a[o]||(t[o]=e[o],a[o]=!0);e=!1!==n&&h(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},G=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},Y=e=>{if(!e)return null;if(g(e))return e;let t=e.length;if(!x(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},q=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&h(Uint8Array)),K=(e,t)=>{const n=e&&e[Symbol.iterator],r=n.call(e);let s;while((s=r.next())&&!s.done){const n=s.value;t.call(e,n[0],n[1])}},Q=(e,t)=>{let n;const r=[];while(null!==(n=e.exec(t)))r.push(n);return r},X=d("HTMLFormElement"),$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),ee=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),te=d("RegExp"),ne=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};P(n,((n,s)=>{let i;!1!==(i=t(n,s,e))&&(r[s]=i||n)})),Object.defineProperties(e,r)},re=e=>{ne(e,((t,n)=>{if(k(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];k(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},se=(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return g(e)?r(e):r(String(e).split(t)),n},ie=()=>{},oe=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,ae="abcdefghijklmnopqrstuvwxyz",ce="0123456789",le={DIGIT:ce,ALPHA:ae,ALPHA_DIGIT:ae+ae.toUpperCase()+ce},ue=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:le.ALPHA_DIGIT,n="";const{length:r}=t;while(e--)n+=t[Math.random()*r|0];return n};function he(e){return!!(e&&k(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const fe=e=>{const t=new Array(10),n=(e,r)=>{if(A(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const s=g(e)?[]:{};return P(e,((e,t)=>{const i=n(e,r+1);!m(i)&&(s[t]=i)})),t[r]=void 0,s}}return e};return n(e,0)},de=d("AsyncFunction"),pe=e=>e&&(A(e)||k(e))&&k(e.then)&&k(e.catch),ge=((e,t)=>e?setImmediate:t?((e,t)=>(L.addEventListener("message",(n=>{let{source:r,data:s}=n;r===L&&s===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),L.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"===typeof setImmediate,k(L.postMessage)),me="undefined"!==typeof queueMicrotask?queueMicrotask.bind(L):"undefined"!==typeof process&&process.nextTick||ge;var ye={isArray:g,isArrayBuffer:w,isBuffer:y,isFormData:T,isArrayBufferView:b,isString:v,isNumber:x,isBoolean:_,isObject:A,isPlainObject:S,isReadableStream:z,isRequest:D,isResponse:U,isHeaders:M,isUndefined:m,isDate:R,isFile:E,isBlob:C,isRegExp:te,isFunction:k,isStream:O,isURLSearchParams:I,isTypedArray:q,isFileList:B,forEach:P,merge:H,extend:W,trim:j,stripBOM:J,inherits:V,toFlatObject:Z,kindOf:f,kindOfTest:d,endsWith:G,toArray:Y,forEachEntry:K,matchAll:Q,isHTMLForm:X,hasOwnProperty:ee,hasOwnProp:ee,reduceDescriptors:ne,freezeMethods:re,toObjectSet:se,toCamelCase:$,noop:ie,toFiniteNumber:oe,findKey:N,global:L,isContextDefined:F,ALPHABET:le,generateString:ue,isSpecCompliantForm:he,toJSONObject:fe,isAsyncFn:de,isThenable:pe,setImmediate:ge,asap:me};function we(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}ye.inherits(we,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ye.toJSONObject(this.config),code:this.code,status:this.status}}});const be=we.prototype,ve={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ve[e]={value:e}})),Object.defineProperties(we,ve),Object.defineProperty(be,"isAxiosError",{value:!0}),we.from=(e,t,n,r,s,i)=>{const o=Object.create(be);return ye.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),we.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};var ke=we,xe=null;function Ae(e){return ye.isPlainObject(e)||ye.isArray(e)}function _e(e){return ye.endsWith(e,"[]")?e.slice(0,-2):e}function Se(e,t,n){return e?e.concat(t).map((function(e,t){return e=_e(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function Re(e){return ye.isArray(e)&&!e.some(Ae)}const Ee=ye.toFlatObject(ye,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Ce(e,t,n){if(!ye.isObject(e))throw new TypeError("target must be an object");t=t||new(xe||FormData),n=ye.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ye.isUndefined(t[e])}));const r=n.metaTokens,s=n.visitor||u,i=n.dots,o=n.indexes,a=n.Blob||"undefined"!==typeof Blob&&Blob,c=a&&ye.isSpecCompliantForm(t);if(!ye.isFunction(s))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ye.isDate(e))return e.toISOString();if(!c&&ye.isBlob(e))throw new ke("Blob is not supported. Use a Buffer instead.");return ye.isArrayBuffer(e)||ye.isTypedArray(e)?c&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,s){let a=e;if(e&&!s&&"object"===typeof e)if(ye.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ye.isArray(e)&&Re(e)||(ye.isFileList(e)||ye.endsWith(n,"[]"))&&(a=ye.toArray(e)))return n=_e(n),a.forEach((function(e,r){!ye.isUndefined(e)&&null!==e&&t.append(!0===o?Se([n],r,i):null===o?n:n+"[]",l(e))})),!1;return!!Ae(e)||(t.append(Se(s,n,i),l(e)),!1)}const h=[],f=Object.assign(Ee,{defaultVisitor:u,convertValue:l,isVisitable:Ae});function d(e,n){if(!ye.isUndefined(e)){if(-1!==h.indexOf(e))throw Error("Circular reference detected in "+n.join("."));h.push(e),ye.forEach(e,(function(e,r){const i=!(ye.isUndefined(e)||null===e)&&s.call(t,e,ye.isString(r)?r.trim():r,n,f);!0===i&&d(e,n?n.concat(r):[r])})),h.pop()}}if(!ye.isObject(e))throw new TypeError("data must be an object");return d(e),t}var Be=Ce;function Oe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Te(e,t){this._pairs=[],e&&Be(e,this,t)}const Ie=Te.prototype;Ie.append=function(e,t){this._pairs.push([e,t])},Ie.toString=function(e){const t=e?function(t){return e.call(this,t,Oe)}:Oe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ze=Te;function De(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ue(e,t,n){if(!t)return e;const r=n&&n.encode||De,s=n&&n.serialize;let i;if(i=s?s(t,n):ye.isURLSearchParams(t)?t.toString():new ze(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}class Me{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ye.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var je=Me,Pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ne="undefined"!==typeof URLSearchParams?URLSearchParams:ze,Le="undefined"!==typeof FormData?FormData:null,Fe="undefined"!==typeof Blob?Blob:null,He={isBrowser:!0,classes:{URLSearchParams:Ne,FormData:Le,Blob:Fe},protocols:["http","https","file","blob","url","data"]};const We="undefined"!==typeof window&&"undefined"!==typeof document,Je="object"===typeof navigator&&navigator||void 0,Ve=We&&(!Je||["ReactNative","NativeScript","NS"].indexOf(Je.product)<0),Ze=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Ge=We&&window.location.href||"http://localhost";var Ye={...e,...He};function qe(e,t){return Be(e,new Ye.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ye.isNode&&ye.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function Ke(e){return ye.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function Qe(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function Xe(e){function t(e,n,r,s){let i=e[s++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),a=s>=e.length;if(i=!i&&ye.isArray(r)?r.length:i,a)return ye.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!o;r[i]&&ye.isObject(r[i])||(r[i]=[]);const c=t(e,n,r[i],s);return c&&ye.isArray(r[i])&&(r[i]=Qe(r[i])),!o}if(ye.isFormData(e)&&ye.isFunction(e.entries)){const n={};return ye.forEachEntry(e,((e,r)=>{t(Ke(e),r,n,0)})),n}return null}var $e=Xe;function et(e,t,n){if(ye.isString(e))try{return(t||JSON.parse)(e),ye.trim(e)}catch(vr){if("SyntaxError"!==vr.name)throw vr}return(n||JSON.stringify)(e)}const tt={transitional:Pe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,s=ye.isObject(e);s&&ye.isHTMLForm(e)&&(e=new FormData(e));const i=ye.isFormData(e);if(i)return r?JSON.stringify($e(e)):e;if(ye.isArrayBuffer(e)||ye.isBuffer(e)||ye.isStream(e)||ye.isFile(e)||ye.isBlob(e)||ye.isReadableStream(e))return e;if(ye.isArrayBufferView(e))return e.buffer;if(ye.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return qe(e,this.formSerializer).toString();if((o=ye.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Be(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||r?(t.setContentType("application/json",!1),et(e)):e}],transformResponse:[function(e){const t=this.transitional||tt.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ye.isResponse(e)||ye.isReadableStream(e))return e;if(e&&ye.isString(e)&&(n&&!this.responseType||r)){const n=t&&t.silentJSONParsing,s=!n&&r;try{return JSON.parse(e)}catch(vr){if(s){if("SyntaxError"===vr.name)throw ke.from(vr,ke.ERR_BAD_RESPONSE,this,null,this.response);throw vr}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ye.classes.FormData,Blob:Ye.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ye.forEach(["delete","get","head","post","put","patch"],(e=>{tt.headers[e]={}}));var nt=tt;const rt=ye.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var st=e=>{const t={};let n,r,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),n=e.substring(0,s).trim().toLowerCase(),r=e.substring(s+1).trim(),!n||t[n]&&rt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t};const it=Symbol("internals");function ot(e){return e&&String(e).trim().toLowerCase()}function at(e){return!1===e||null==e?e:ye.isArray(e)?e.map(at):String(e)}function ct(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(e))t[r[1]]=r[2];return t}const lt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ut(e,t,n,r,s){return ye.isFunction(r)?r.call(this,t,n):(s&&(t=n),ye.isString(t)?ye.isString(r)?-1!==t.indexOf(r):ye.isRegExp(r)?r.test(t):void 0:void 0)}function ht(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function ft(e,t){const n=ye.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,s){return this[r].call(this,t,e,n,s)},configurable:!0})}))}class dt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function s(e,t,n){const s=ot(t);if(!s)throw new Error("header name must be a non-empty string");const i=ye.findKey(r,s);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=at(e))}const i=(e,t)=>ye.forEach(e,((e,n)=>s(e,n,t)));if(ye.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ye.isString(e)&&(e=e.trim())&&!lt(e))i(st(e),t);else if(ye.isHeaders(e))for(const[o,a]of e.entries())s(a,o,n);else null!=e&&s(t,e,n);return this}get(e,t){if(e=ot(e),e){const n=ye.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return ct(e);if(ye.isFunction(t))return t.call(this,e,n);if(ye.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ot(e),e){const n=ye.findKey(this,e);return!(!n||void 0===this[n]||t&&!ut(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function s(e){if(e=ot(e),e){const s=ye.findKey(n,e);!s||t&&!ut(n,n[s],s,t)||(delete n[s],r=!0)}}return ye.isArray(e)?e.forEach(s):s(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;while(n--){const s=t[n];e&&!ut(this,this[s],s,e,!0)||(delete this[s],r=!0)}return r}normalize(e){const t=this,n={};return ye.forEach(this,((r,s)=>{const i=ye.findKey(n,s);if(i)return t[i]=at(r),void delete t[s];const o=e?ht(s):String(s).trim();o!==s&&delete t[s],t[o]=at(r),n[o]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return ye.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ye.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=this[it]=this[it]={accessors:{}},n=t.accessors,r=this.prototype;function s(e){const t=ot(e);n[t]||(ft(r,e),n[t]=!0)}return ye.isArray(e)?e.forEach(s):s(e),this}}dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ye.reduceDescriptors(dt.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),ye.freezeMethods(dt);var pt=dt;function gt(e,t){const n=this||nt,r=t||n,s=pt.from(r.headers);let i=r.data;return ye.forEach(e,(function(e){i=e.call(n,i,s.normalize(),t?t.status:void 0)})),s.normalize(),i}function mt(e){return!(!e||!e.__CANCEL__)}function yt(e,t,n){ke.call(this,null==e?"canceled":e,ke.ERR_CANCELED,t,n),this.name="CanceledError"}ye.inherits(yt,ke,{__CANCEL__:!0});var wt=yt;function bt(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ke("Request failed with status code "+n.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function vt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s,i=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[o];s||(s=c),n[i]=a,r[i]=c;let u=o,h=0;while(u!==i)h+=n[u++],u%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const f=l&&c-l;return f?Math.round(1e3*h/f):void 0}}var xt=kt;function At(e,t){let n,r,s=0,i=1e3/t;const o=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();s=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)},a=function(){const e=Date.now(),t=e-s;for(var a=arguments.length,c=new Array(a),l=0;l<a;l++)c[l]=arguments[l];t>=i?o(c,e):(n=c,r||(r=setTimeout((()=>{r=null,o(n)}),i-t)))},c=()=>n&&o(n);return[a,c]}var _t=At;const St=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const s=xt(50,250);return _t((n=>{const i=n.loaded,o=n.lengthComputable?n.total:void 0,a=i-r,c=s(a),l=i<=o;r=i;const u={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&l?(o-i)/c:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0};e(u)}),n)},Rt=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Et=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ye.asap((()=>e(...n)))};var Ct=Ye.hasStandardBrowserEnv?function(){const e=Ye.navigator&&/(msie|trident)/i.test(Ye.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=ye.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),Bt=Ye.hasStandardBrowserEnv?{write(e,t,n,r,s,i){const o=[e+"="+encodeURIComponent(t)];ye.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),ye.isString(r)&&o.push("path="+r),ye.isString(s)&&o.push("domain="+s),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ot(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Tt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function It(e,t){return e&&!Ot(t)?Tt(e,t):t}const zt=e=>e instanceof pt?{...e}:e;function Dt(e,t){t=t||{};const n={};function r(e,t,n){return ye.isPlainObject(e)&&ye.isPlainObject(t)?ye.merge.call({caseless:n},e,t):ye.isPlainObject(t)?ye.merge({},t):ye.isArray(t)?t.slice():t}function s(e,t,n){return ye.isUndefined(t)?ye.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!ye.isUndefined(t))return r(void 0,t)}function o(e,t){return ye.isUndefined(t)?ye.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,s,i){return i in t?r(n,s):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t)=>s(zt(e),zt(t),!0)};return ye.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||s,o=i(e[r],t[r],r);ye.isUndefined(o)&&i!==a||(n[r]=o)})),n}var Ut=e=>{const t=Dt({},e);let n,{data:r,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:c}=t;if(t.headers=a=pt.from(a),t.url=Ue(It(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ye.isFormData(r))if(Ye.hasStandardBrowserEnv||Ye.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ye.hasStandardBrowserEnv&&(s&&ye.isFunction(s)&&(s=s(t)),s||!1!==s&&Ct(t.url))){const e=i&&o&&Bt.read(o);e&&a.set(i,e)}return t};const Mt="undefined"!==typeof XMLHttpRequest;var jt=Mt&&function(e){return new Promise((function(t,n){const r=Ut(e);let s=r.data;const i=pt.from(r.headers).normalize();let o,a,c,l,u,{responseType:h,onUploadProgress:f,onDownloadProgress:d}=r;function p(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(o),r.signal&&r.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=pt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),s=h&&"text"!==h&&"json"!==h?g.response:g.responseText,i={data:s,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};bt((function(e){t(e),p()}),(function(e){n(e),p()}),i),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new ke("Request aborted",ke.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new ke("Network Error",ke.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const s=r.transitional||Pe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ke(t,s.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,e,g)),g=null},void 0===s&&i.setContentType(null),"setRequestHeader"in g&&ye.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),ye.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),h&&"json"!==h&&(g.responseType=r.responseType),d&&([c,u]=St(d,!0),g.addEventListener("progress",c)),f&&g.upload&&([a,l]=St(f),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(o=t=>{g&&(n(!t||t.type?new wt(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(o),r.signal&&(r.signal.aborted?o():r.signal.addEventListener("abort",o)));const y=vt(r.url);y&&-1===Ye.protocols.indexOf(y)?n(new ke("Unsupported protocol "+y+":",ke.ERR_BAD_REQUEST,e)):g.send(s||null)}))};const Pt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const s=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ke?t:new wt(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,s(new ke(`timeout ${t} of ms exceeded`,ke.ETIMEDOUT))}),t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(s):e.removeEventListener("abort",s)})),e=null)};e.forEach((e=>e.addEventListener("abort",s)));const{signal:a}=r;return a.unsubscribe=()=>ye.asap(o),a}};var Nt=Pt;const Lt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,s=0;while(s<n)r=s+t,yield e.slice(s,r),s=r},Ft=async function*(e,t){for await(const n of Ht(e))yield*Lt(n,t)},Ht=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Wt=(e,t,n,r)=>{const s=Ft(e,t);let i,o=0,a=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await s.next();if(t)return a(),void e.close();let i=r.byteLength;if(n){let e=o+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw a(t),t}},cancel(e){return a(e),s.return()}},{highWaterMark:2})},Jt="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Vt=Jt&&"function"===typeof ReadableStream,Zt=Jt&&("function"===typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Gt=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(vr){return!1}},Yt=Vt&&Gt((()=>{let e=!1;const t=new Request(Ye.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),qt=65536,Kt=Vt&&Gt((()=>ye.isReadableStream(new Response("").body))),Qt={stream:Kt&&(e=>e.body)};Jt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Qt[t]&&(Qt[t]=ye.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new ke(`Response type '${t}' is not supported`,ke.ERR_NOT_SUPPORT,n)})}))})(new Response);const Xt=async e=>{if(null==e)return 0;if(ye.isBlob(e))return e.size;if(ye.isSpecCompliantForm(e)){const t=new Request(Ye.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ye.isArrayBufferView(e)||ye.isArrayBuffer(e)?e.byteLength:(ye.isURLSearchParams(e)&&(e+=""),ye.isString(e)?(await Zt(e)).byteLength:void 0)},$t=async(e,t)=>{const n=ye.toFiniteNumber(e.getContentLength());return null==n?Xt(t):n};var en=Jt&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:h="same-origin",fetchOptions:f}=Ut(e);l=l?(l+"").toLowerCase():"text";let d,p=Nt([s,i&&i.toAbortSignal()],o);const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let m;try{if(c&&Yt&&"get"!==n&&"head"!==n&&0!==(m=await $t(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(ye.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Rt(m,St(Et(c)));r=Wt(n.body,qt,e,t)}}ye.isString(h)||(h=h?"include":"omit");const s="credentials"in Request.prototype;d=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:s?h:void 0});let i=await fetch(d);const o=Kt&&("stream"===l||"response"===l);if(Kt&&(a||o&&g)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=ye.toFiniteNumber(i.headers.get("content-length")),[n,r]=a&&Rt(t,St(Et(a),!0))||[];i=new Response(Wt(i.body,qt,n,(()=>{r&&r(),g&&g()})),e)}l=l||"text";let y=await Qt[ye.findKey(Qt,l)||"text"](i,e);return!o&&g&&g(),await new Promise(((t,n)=>{bt(t,n,{data:y,headers:pt.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:d})}))}catch(y){if(g&&g(),y&&"TypeError"===y.name&&/fetch/i.test(y.message))throw Object.assign(new ke("Network Error",ke.ERR_NETWORK,e,d),{cause:y.cause||y});throw ke.from(y,y&&y.code,e,d)}});const tn={http:xe,xhr:jt,fetch:en};ye.forEach(tn,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(vr){}Object.defineProperty(e,"adapterName",{value:t})}}));const nn=e=>`- ${e}`,rn=e=>ye.isFunction(e)||null===e||!1===e;var sn={getAdapter:e=>{e=ye.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!rn(n)&&(r=tn[(t=String(n)).toLowerCase()],void 0===r))throw new ke(`Unknown adapter '${t}'`);if(r)break;s[t||"#"+i]=r}if(!r){const e=Object.entries(s).map((e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(nn).join("\n"):" "+nn(e[0]):"as no adapter specified";throw new ke("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r},adapters:tn};function on(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wt(null,e)}function an(e){on(e),e.headers=pt.from(e.headers),e.data=gt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=sn.getAdapter(e.adapter||nt.adapter);return t(e).then((function(t){return on(e),t.data=gt.call(e,e.transformResponse,t),t.headers=pt.from(t.headers),t}),(function(t){return mt(t)||(on(e),t&&t.response&&(t.response.data=gt.call(e,e.transformResponse,t.response),t.response.headers=pt.from(t.response.headers))),Promise.reject(t)}))}const cn="1.7.7",ln={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ln[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const un={};function hn(e,t,n){if("object"!==typeof e)throw new ke("options must be an object",ke.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;while(s-- >0){const i=r[s],o=t[i];if(o){const t=e[i],n=void 0===t||o(t,i,e);if(!0!==n)throw new ke("option "+i+" must be "+n,ke.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ke("Unknown option "+i,ke.ERR_BAD_OPTION)}}ln.transitional=function(e,t,n){function r(e,t){return"[Axios v"+cn+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,s,i)=>{if(!1===e)throw new ke(r(s," has been removed"+(t?" in "+t:"")),ke.ERR_DEPRECATED);return t&&!un[s]&&(un[s]=!0,console.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,s,i)}};var fn={assertOptions:hn,validators:ln};const dn=fn.validators;class pn{constructor(e){this.defaults=e,this.interceptors={request:new je,response:new je}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(vr){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Dt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:s}=t;void 0!==n&&fn.assertOptions(n,{silentJSONParsing:dn.transitional(dn.boolean),forcedJSONParsing:dn.transitional(dn.boolean),clarifyTimeoutError:dn.transitional(dn.boolean)},!1),null!=r&&(ye.isFunction(r)?t.paramsSerializer={serialize:r}:fn.assertOptions(r,{encode:dn.function,serialize:dn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=s&&ye.merge(s.common,s[t.method]);s&&ye.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=pt.concat(i,s);const o=[];let a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,h=0;if(!a){const e=[an.bind(this),void 0];e.unshift.apply(e,o),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);while(h<u)l=l.then(e[h++],e[h++]);return l}u=o.length;let f=t;h=0;while(h<u){const e=o[h++],t=o[h++];try{f=e(f)}catch(d){t.call(this,d);break}}try{l=an.call(this,f)}catch(d){return Promise.reject(d)}h=0,u=c.length;while(h<u)l=l.then(c[h++],c[h++]);return l}getUri(e){e=Dt(this.defaults,e);const t=It(e.baseURL,e.url);return Ue(t,e.params,e.paramsSerializer)}}ye.forEach(["delete","get","head","options"],(function(e){pn.prototype[e]=function(t,n){return this.request(Dt(n||{},{method:e,url:t,data:(n||{}).data}))}})),ye.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,s){return this.request(Dt(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}pn.prototype[e]=t(),pn.prototype[e+"Form"]=t(!0)}));var gn=pn;class mn{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,s){n.reason||(n.reason=new wt(e,r,s),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new mn((function(t){e=t}));return{token:t,cancel:e}}}var yn=mn;function wn(e){return function(t){return e.apply(null,t)}}function bn(e){return ye.isObject(e)&&!0===e.isAxiosError}const vn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vn).forEach((e=>{let[t,n]=e;vn[n]=t}));var kn=vn;function xn(e){const t=new gn(e),n=l(gn.prototype.request,t);return ye.extend(n,gn.prototype,t,{allOwnKeys:!0}),ye.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return xn(Dt(e,t))},n}const An=xn(nt);An.Axios=gn,An.CanceledError=wt,An.CancelToken=yn,An.isCancel=mt,An.VERSION=cn,An.toFormData=Be,An.AxiosError=ke,An.Cancel=An.CanceledError,An.all=function(e){return Promise.all(e)},An.spread=wn,An.isAxiosError=bn,An.mergeConfig=Dt,An.AxiosHeaders=pt,An.formToJSON=e=>$e(ye.isHTMLForm(e)?new FormData(e):e),An.getAdapter=sn.getAdapter,An.HttpStatusCode=kn,An.default=An;var _n=An;const Sn={set(e,t){sessionStorage&&null!=e&&null!=t&&sessionStorage.setItem(e,t)},get(e){return sessionStorage?null==e?null:sessionStorage.getItem(e):null},setJSON(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON(e){const t=this.get(e);if(null!=t)return JSON.parse(t)},remove(e){sessionStorage.removeItem(e)}},Rn={set(e,t){localStorage&&null!=e&&null!=t&&localStorage.setItem(e,t)},get(e){return localStorage?null==e?null:localStorage.getItem(e):null},setJSON(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON(e){const t=this.get(e);if(null!=t)return JSON.parse(t)},remove(e){localStorage.removeItem(e)}};var En={session:Sn,local:Rn},Cn=r(317),Bn=r(190),On=r.n(Bn);const Tn="3.7.7",In=Tn,zn="function"===typeof Buffer,Dn="function"===typeof TextDecoder?new TextDecoder:void 0,Un="function"===typeof TextEncoder?new TextEncoder:void 0,Mn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",jn=Array.prototype.slice.call(Mn),Pn=(e=>{let t={};return e.forEach(((e,n)=>t[e]=n)),t})(jn),Nn=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Ln=String.fromCharCode.bind(String),Fn="function"===typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Hn=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),Wn=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Jn=e=>{let t,n,r,s,i="";const o=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(s=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|s,i+=jn[t>>18&63]+jn[t>>12&63]+jn[t>>6&63]+jn[63&t]}return o?i.slice(0,o-3)+"===".substring(o):i},Vn="function"===typeof btoa?e=>btoa(e):zn?e=>Buffer.from(e,"binary").toString("base64"):Jn,Zn=zn?e=>Buffer.from(e).toString("base64"):e=>{const t=4096;let n=[];for(let r=0,s=e.length;r<s;r+=t)n.push(Ln.apply(null,e.subarray(r,r+t)));return Vn(n.join(""))},Gn=(e,t=!1)=>t?Hn(Zn(e)):Zn(e),Yn=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Ln(192|t>>>6)+Ln(128|63&t):Ln(224|t>>>12&15)+Ln(128|t>>>6&63)+Ln(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Ln(240|t>>>18&7)+Ln(128|t>>>12&63)+Ln(128|t>>>6&63)+Ln(128|63&t)},qn=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Kn=e=>e.replace(qn,Yn),Qn=zn?e=>Buffer.from(e,"utf8").toString("base64"):Un?e=>Zn(Un.encode(e)):e=>Vn(Kn(e)),Xn=(e,t=!1)=>t?Hn(Qn(e)):Qn(e),$n=e=>Xn(e,!0),er=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,tr=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return Ln(55296+(n>>>10))+Ln(56320+(1023&n));case 3:return Ln((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Ln((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},nr=e=>e.replace(er,tr),rr=e=>{if(e=e.replace(/\s+/g,""),!Nn.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n,r,s="";for(let i=0;i<e.length;)t=Pn[e.charAt(i++)]<<18|Pn[e.charAt(i++)]<<12|(n=Pn[e.charAt(i++)])<<6|(r=Pn[e.charAt(i++)]),s+=64===n?Ln(t>>16&255):64===r?Ln(t>>16&255,t>>8&255):Ln(t>>16&255,t>>8&255,255&t);return s},sr="function"===typeof atob?e=>atob(Wn(e)):zn?e=>Buffer.from(e,"base64").toString("binary"):rr,ir=zn?e=>Fn(Buffer.from(e,"base64")):e=>Fn(sr(e).split("").map((e=>e.charCodeAt(0)))),or=e=>ir(cr(e)),ar=zn?e=>Buffer.from(e,"base64").toString("utf8"):Dn?e=>Dn.decode(ir(e)):e=>nr(sr(e)),cr=e=>Wn(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))),lr=e=>ar(cr(e)),ur=e=>{if("string"!==typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},hr=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),fr=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,hr(t));e("fromBase64",(function(){return lr(this)})),e("toBase64",(function(e){return Xn(this,e)})),e("toBase64URI",(function(){return Xn(this,!0)})),e("toBase64URL",(function(){return Xn(this,!0)})),e("toUint8Array",(function(){return or(this)}))},dr=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,hr(t));e("toBase64",(function(e){return Gn(this,e)})),e("toBase64URI",(function(){return Gn(this,!0)})),e("toBase64URL",(function(){return Gn(this,!0)}))},pr=()=>{fr(),dr()},gr={version:Tn,VERSION:In,atob:sr,atobPolyfill:rr,btoa:Vn,btoaPolyfill:Jn,fromBase64:lr,toBase64:Xn,encode:Xn,encodeURI:$n,encodeURL:$n,utob:Kn,btou:nr,decode:lr,isValid:ur,fromUint8Array:Gn,toUint8Array:or,extendString:fr,extendUint8Array:dr,extendBuiltins:pr},mr="RU5D",yr="ODE",wr="AE",br="S_K",vr="RVkx",kr=gr.decode(mr).concat(yr,"_",wr,br,gr.decode(vr),"6"),xr="d3d3",Ar="w.e",_r="mru",Sr="bik",Rr="Y29t",Er=gr.decode(xr).concat(Ar,_r,Sr,".",gr.decode(Rr));On().enc.Utf8.parse(kr),On().enc.Utf8.parse(Er);let Cr="601a39a2a4a7cd88d5ddcef5";const Br=["/home","/overview"];"aliyun"==={NODE_ENV:"production",BASE_URL:""}.VITE_APP_BUILD_TYPE&&(Cr="6572ba195ec962924cc39951");var Or={"X-Enterprise-Id":"www.hep-zj.com.cn","X-App-Id":"90403a27c0704259ab7a3c8aab4489b3","X-App-Secret":"bc11ce7c44824fcaa23ff301a54b7094",appId:Cr,whiteList:Br,publicPath:"https://agent.icve.com.cn/heatp-portal/do/",publicPrefix:"/heatp"};const Tr=sessionStorage.getItem("AI-INTELLIGENT-TOOLS_BASE_URL");_n.defaults.headers["Content-Type"]="application/json;charset=utf-8";const Ir=_n.create({baseURL:Tr||Or.publicPath,timeout:8e4});Ir.interceptors.request.use((e=>{En.session.getJSON("SRKJ_TOKEN_CACHE")&&(e.params||(e.params={}),e.params.token=En.session.getJSON("SRKJ_TOKEN_CACHE"));const t=!1===(e.headers||{}).repeatSubmit;if(!t&&("post"===e.method||"put"===e.method)){const t={url:e.url,data:"object"===typeof e.data?JSON.stringify(e.data):e.data,time:(new Date).getTime()},n=En.session.getJSON("sessionObj");if(void 0===n||null===n||""===n)En.session.setJSON("sessionObj",t);else{const e=n.url,r=n.data,s=n.time,i=100;r===t.data&&t.time-s<i&&e===t.url||En.session.setJSON("sessionObj",t)}}return e}),(e=>{Promise.reject(e)})),Ir.interceptors.response.use((e=>{if("blob"===e.request.responseType||"arraybuffer"===e.request.responseType)return e.data;let t=e.data;if(401!==e.status)return t.resultCode.endsWith("0000")||Cn.Message.warning(t.message.description),t.queryData||t.data||t.token;Cn.Message.warning(t.message.description)}));var zr=Ir;async function Dr(e,t){const n=e.getReader();let r;while(!(r=await n.read()).done)t(r.value)}function Ur(e){let t,n,r,s=!1;return function(i){void 0===t?(t=i,n=0,r=-1):t=jr(t,i);const o=t.length;let a=0;while(n<o){s&&(10===t[n]&&(a=++n),s=!1);let i=-1;for(;n<o&&-1===i;++n)switch(t[n]){case 58:-1===r&&(r=n-a);break;case 13:s=!0;case 10:i=n;break}if(-1===i)break;e(t.subarray(a,i),r),a=n,r=-1}a===o?t=void 0:0!==a&&(t=t.subarray(a),n-=a)}}function Mr(e,t,n){let r=Pr();const s=new TextDecoder;return function(i,o){if(0===i.length)null===n||void 0===n||n(r),r=Pr();else if(o>0){const n=s.decode(i.subarray(0,o)),a=o+(32===i[o+1]?2:1),c=s.decode(i.subarray(a));switch(n){case"data":r.data=r.data?r.data+"\n"+c:c;break;case"event":r.event=c;break;case"id":e(r.id=c);break;case"retry":const n=parseInt(c,10);isNaN(n)||t(r.retry=n);break}}}}function jr(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Pr(){return{data:"",event:"",id:"",retry:void 0}}var Nr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n};const Lr="text/event-stream",Fr=1e3,Hr="last-event-id";function Wr(e,t){var{signal:n,headers:r,onopen:s,onmessage:i,onclose:o,onerror:a,openWhenHidden:c,fetch:l}=t,u=Nr(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise(((t,h)=>{const f=Object.assign({},r);let d;function p(){d.abort(),document.hidden||v()}f.accept||(f.accept=Lr),c||document.addEventListener("visibilitychange",p);let g=Fr,m=0;function y(){document.removeEventListener("visibilitychange",p),window.clearTimeout(m),d.abort()}null===n||void 0===n||n.addEventListener("abort",(()=>{y(),t()}));const w=null!==l&&void 0!==l?l:window.fetch,b=null!==s&&void 0!==s?s:Jr;async function v(){var n;d=new AbortController;try{const n=await w(e,Object.assign(Object.assign({},u),{headers:f,signal:d.signal}));await b(n),await Dr(n.body,Ur(Mr((e=>{e?f[Hr]=e:delete f[Hr]}),(e=>{g=e}),i))),null===o||void 0===o||o(),y(),t()}catch(r){if(!d.signal.aborted)try{const e=null!==(n=null===a||void 0===a?void 0:a(r))&&void 0!==n?n:g;window.clearTimeout(m),m=window.setTimeout(v,e)}catch(s){y(),h(s)}}}v()}))}function Jr(e){const t=e.headers.get("content-type");if(!(null===t||void 0===t?void 0:t.startsWith(Lr)))throw new Error(`Expected content-type to be ${Lr}, Actual: ${t}`)}const Vr=sessionStorage.getItem("AI-INTELLIGENT-TOOLS_BASE_URL")||Or.publicPath;let Zr=sessionStorage.getItem("AI-INTELLIGENT-TOOLS_PRE_FIX")||Or.publicPrefix;Zr+="/plugin/v2";const Gr="https://agent.icve.com.cn",Yr=Gr+"/ossurl",qr=e=>zr({url:Zr+"/sso/assistant",method:"get",params:{token:e,businessSource:3}}),Kr=e=>zr({url:Zr+"/assistant/addChat",method:"post",params:{resId:e}}),Qr=e=>zr({url:Zr+`/assistant/chartClear/${e}`,method:"post"}),Xr=e=>zr({url:Zr+`/assistant/stop/${e}`,method:"post"}),$r=e=>zr({url:Zr+"/assistant/chatEvaluateAdd",method:"post",data:e}),es=e=>zr({url:Zr+"/assistant/chatEvaluateCancel",method:"post",data:e}),ts=e=>zr({url:Zr+"/assistant/push",method:"post",data:e}),ns=e=>zr({url:Zr+`/assistant/detail/v2/${e}`,method:"get"}),rs=e=>zr({url:Zr+"/assistant/access",method:"post",params:{resId:e}}),ss=e=>zr({url:Zr+`/ia/hasPermission?courseId=${e}`,method:"get"}),is=e=>zr({url:Zr+`/ia/byCourseId?courseId=${e}`,method:"get"});async function os(e,t){return zr.post(`${Zr}/ia/autoFollowUp`,{iaId:e,messages:t})}async function as(e,t,n){return Wr(`${Vr}${Zr}/assistant/conversation?token=${En.session.getJSON("SRKJ_TOKEN_CACHE")}`,{method:"POST",signal:t,openWhenHidden:!0,headers:{"Content-Type":"application/json"},body:JSON.stringify(e),onmessage:n})}var cs={name:"HotSearch",props:{resId:{type:String,default:""}},data(){return{aiMessage:[],prologue:" "}},methods:{selectModule(e){this.$emit("select-module",e)}},async mounted(){const e=await is(this.resId);if(!e)return;const{guideExample:t,prologue:n}=e;t&&t.length>0&&(this.aiMessage=JSON.parse(t)),this.prologue=n,this.$emit("init-info",e)}},ls=cs;function us(e,t,n,r,s,i,o,a){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),o?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=c):s&&(c=a?function(){s.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:s),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:l}}var hs=us(ls,a,c,!1,null,"b701a940",null),fs=hs.exports,ds=function(){var e=this,t=e._self._c;return t("div",{ref:"chatContainer",staticClass:"chat-contain"},e._l(e.messageData,(function(n,r){return t("div",{key:r,staticClass:"message",class:{"user-list":"user"===n.type}},["robot"===n.type?t("div",{staticClass:"robot"},[t("div",{staticClass:"robot-image-div"})]):t("div",{staticClass:"robot user"},[e._v("user")]),t("div",{staticClass:"robot-message",class:{"user-info":"user"===n.type}},[t("div",{domProps:{innerHTML:e._s(n.message)}}),"robot"===n.type&&n.links.length>0&&e.showFile?t("div",{staticClass:"link"},[n.allIdWithStart?e._e():t("div",[t("div",{staticClass:"link-title"},[e._v("参考文件")]),t("div",{staticClass:"link-content"},[e._l(n.links,(function(n){return[n.title.startsWith(e.chatMajorId)?e._e():[t("div",{staticClass:"links"},[t("span",[e._v(e._s(`《${n.title}》`)+" 共 "),t("span",{staticStyle:{"font-weight":"bold"}},[e._v(" "+e._s(n.fileDTOS.length)+" ")]),e._v(" 处引用 ")])]),e._l(n.fileDTOS,(function(r,s){return t("div",{key:s,staticClass:"link-part-container"},[t("span",{staticClass:"link-list-part"},[e._v(" "+e._s(r.matchContent)+" ")]),t("span",{staticClass:"link-list-button",on:{click:function(t){return e.seeDetail(r,n.documentUrl)}}},[e._v(" 点击查看 ")])])}))]]}))],2)])]):e._e(),"robot"===n.type&&n.connectUrl.length>0?t("div",{staticClass:"link"},[t("div",{staticClass:"link-title"},[e._v("相关链接")]),t("div",{staticClass:"link-content"},[e._l(n.connectUrl,(function(n){return[t("div",{staticClass:"links"},[t("a",{attrs:{href:n.iaUrl,target:"_blank"}},[t("span",[e._v(e._s(n.iaUrlName))])])])]}))],2)]):e._e(),"robot"===n.type&&e.finish&&n.followUps&&n.followUps.length>0?t("div",[t("div",{staticClass:"link-title"},[e._v("智能追问")]),t("div",{staticClass:"link-content"},e._l(n.followUps,(function(n,r){return t("div",{key:r,staticClass:"hot-list",on:{click:function(t){return e.selectModule(n)}}},[e._v(" "+e._s(n)+" "),t("i",{staticClass:"el-icon-arrow-right go-icon"})])})),0)]):e._e(),"robot"===n.type?t("chat-tools",{attrs:{chatId:e.chatId,"detail-data":n,sending:n.sending,resId:e.resId,"open-course-id":e.openCourseId,"is-last":r===e.messageData.length-1},on:{"on-reanswer":t=>e.reanswer(t,r),"on-stop-chat":e.onStopChat}}):e._e()],1)])})),0)},ps=[];const gs=[{name:"格式问题",code:"1"},{name:"逻辑问题",code:"2"},{name:"有害信息",code:"3"},{name:"事实错误",code:"4"},{name:"没有帮助",code:"5"},{name:"答非所问",code:"6"}],ms=[{type:"user",message:"电磁感应定律是如何描述的?请给出相关公式并解释。"},{type:"robot",message:"电磁感应定律是描述磁场与电场之间关系的物理定律。具体来说,当导体回路中的磁通量发生变化时,会在回路中产生感应电动势。这个感应电动势的大小与磁通量变化的速率成正比,这就是法拉第电磁感应定律。\n 相关的公式是:ε = -dΦ/dt\n 其中,ε 表示感应电动势,Φ 表示磁通量,t 表示时间,dΦ/dt 则表示磁通量对时间的变化率。注意这里的负号,它表示感应电动势的方向与磁通量变化的方向相反,这是楞次定律的体现。\n 解释这个公式时,我们可以理解为:当穿过一个闭合导体回路的磁通量发生变化时,会在回路中产生感应电动势,其大小正比于磁通量变化的速率。这种感应电动势是由于磁场的变化而引发的,它是磁场变化对电场的直接影响,体现了磁场与电场之间的紧密联系。"}],ys=async e=>{await qr(e),En.session.setJSON("SRKJ_TOKEN_CACHE",e)};var ws=function(){var e=this,t=e._self._c;return t("div",{staticClass:"robot-tools"},[(e.listData.stop||e.listData.finish&&!e.sending)&&e.isLast?t("div",{staticClass:"robot-reanswer",staticStyle:{"margin-bottom":"8px"},on:{click:function(t){return e.reAnswer(e.listData)}}},[t("i",{staticClass:"el-icon-refresh-right"}),e._v(" 重新回答 ")]):e._e(),e.listData.stop?t("div",{staticClass:"stopMsg",staticStyle:{color:"#cfcfcf",cursor:"default"}},[e._v("已停止生成")]):e._e(),e.listData.stop||e.listData.finish||e.sending?e._e():t("div",{staticClass:"stopMsg",on:{click:function(t){return e.stopChat(e.listData)}}},[e._v("停止输出")]),t("div",{staticClass:"right-tools"},[t("el-tooltip",{attrs:{content:"赞",effect:"light",placement:"top"}},[t("div",{staticClass:"tools-icon",on:{click:function(t){return e.doZan(e.listData)}}},[e.listData.zan?t("img",{attrs:{alt:"",src:r(793)}}):t("img",{attrs:{src:r(632),alt:""}})])]),t("el-popover",{attrs:{placement:"top-start",trigger:"manual"},model:{value:e.popover,callback:function(t){e.popover=t},expression:"popover"}},[t("div",{attrs:{slot:"reference"},slot:"reference"},[t("el-tooltip",{attrs:{content:"踩",effect:"light",placement:"bottom"}},[e.listData.cai?t("div",{staticClass:"tools-icon",on:{click:function(t){return e.doCai(e.listData)}}},[t("img",{attrs:{alt:"",src:r(271)}})]):t("div",{staticClass:"tools-icon",on:{click:e.openPopover}},[t("img",{attrs:{alt:"",src:r(554)}})])])],1),t("div",{staticClass:"popover-box"},[t("div",{staticClass:"pop-title"},[e._v(" 你的反馈将 "),t("br"),e._v(" 帮助职教一问优化进步 ")]),t("i",{staticClass:"el-icon-close",staticStyle:{"font-size":"2rem"},on:{click:function(t){return e.cancelPopover()}}}),t("div",{staticClass:"error-list"},[t("el-checkbox-group",{model:{value:e.errors,callback:function(t){e.errors=t},expression:"errors"}},e._l(e.errorList,(function(n){return t("el-checkbox",{key:n.code,staticClass:"check",attrs:{label:n.code,border:""}},[e._v(" "+e._s(n.name)+" ")])})),1),t("el-input",{attrs:{rows:4,maxlength:"30",placeholder:"其他",resize:"none",type:"textarea"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}}),t("div",{staticClass:"sumit-button"},[t("el-button",{attrs:{disabled:e.canSubmit},on:{click:function(t){return e.doCai(e.listData)}}},[e._v("提交")])],1)],1)])])],1)])},bs=[],vs={name:"ChatTools",props:{detailData:{type:Object,default:()=>{}},chatId:{type:String,default:""},sending:{type:Boolean,default:!1},resId:{type:String,default:""},openCourseId:{type:String,default:""},isLast:{type:Boolean,default:!1}},data(){return{input:"",popover:!1,errors:[],errorList:gs}},computed:{canSubmit(){return 0===this.errors.length&&""===this.input},listData(){return this.detailData}},methods:{cancelPopover(){this.popover=!1},openPopover(){this.popover=!0},async stopChat(e){const{msgId:t}=e;await Xr(t),e.stop=!0,this.$emit("on-stop-chat",e)},async reAnswer(e){e.reAnswerCount+=1,e.reAnswerCount>=3&&this.$confirm("对于回答是否依旧不满意,是否需要给教师负责人发送请求信息,由老师进行回答?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((async()=>{await ts({chatId:this.chatId,msgId:e.msgId,parentMsgId:e.parentMsgId,courseId:this.resId,openCourseId:this.openCourseId}),this.$message.success("已发送给老师")})).catch((()=>{})),this.$emit("on-reanswer",e)},async doZan(e){const t={chatId:this.chatId,msgId:e.msgId,type:1};e.zan?await es(t):await $r(t),e.zan=!e.zan,e.cai=!1},async doCai(e){let t={};e.cai||(t={desc:this.input,tags:this.errors});const n={chatId:this.chatId,msgId:e.msgId,type:2,...t};e.cai?await es(n):await $r(n),e.cai=!e.cai,e.zan=!1,e.cai&&this.$message.success("感谢您的反馈"),this.popover=!1,this.input="",this.errors=[]}}},ks=vs,xs=us(ks,ws,bs,!1,null,"78eed5c6",null),As=xs.exports;function _s(e,t){Ss(e,t),t.add(e)}function Ss(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Rs(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Es(e,t,n){return(t=Cs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cs(e){var t=Bs(e,"string");return"symbol"==typeof t?t:t+""}function Bs(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Os(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Ts=Os();function Is(e){Ts=e}const zs=/[&<>"']/,Ds=new RegExp(zs.source,"g"),Us=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ms=new RegExp(Us.source,"g"),js={"&":"&","<":"<",">":">",'"':""","'":"'"},Ps=e=>js[e];function Ns(e,t){if(t){if(zs.test(e))return e.replace(Ds,Ps)}else if(Us.test(e))return e.replace(Ms,Ps);return e}const Ls=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Fs(e){return e.replace(Ls,((e,t)=>(t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")))}const Hs=/(^|[^\[])\^/g;function Ws(e,t){e="string"===typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r="object"===typeof r&&"source"in r?r.source:r,r=r.replace(Hs,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}function Js(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(vr){return null}return e}const Vs={exec:()=>null};function Zs(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,s=t;while(--s>=0&&"\\"===n[s])r=!r;return r?"|":" |"})),r=n.split(/ \|/);let s=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else while(r.length<t)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(/\\\|/g,"|");return r}function Gs(e,t,n){const r=e.length;if(0===r)return"";let s=0;while(s<r){const i=e.charAt(r-s-1);if(i!==t||n){if(i===t||!n)break;s++}else s++}return e.slice(0,r-s)}function Ys(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function qs(e,t,n,r){const s=t.href,i=t.title?Ns(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:s,title:i,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:s,title:i,text:Ns(o)}}function Ks(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}class Qs{constructor(e){Es(this,"options",void 0),Es(this,"rules",void 0),Es(this,"lexer",void 0),this.options=e||Ts}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Gs(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=Ks(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Gs(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=Gs(t[0].replace(/^ *>[ \t]?/gm,""),"\n"),n=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:r,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const i=new RegExp(`^( {0,3}${n})((?:[\t ][^\\n]*)?(?:\\n|$))`);let o="",a="",c=!1;while(e){let n=!1;if(!(t=i.exec(e)))break;if(this.rules.block.hr.test(e))break;o=t[0],e=e.substring(o.length);let r=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),l=e.split("\n",1)[0],u=0;this.options.pedantic?(u=2,a=r.trimStart()):(u=t[2].search(/[^ ]/),u=u>4?1:u,a=r.slice(u),u+=t[1].length);let h=!1;if(!r&&/^ *$/.test(l)&&(o+=l+"\n",e=e.substring(l.length+1),n=!0),!n){const t=new RegExp(`^ {0,${Math.min(3,u-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,u-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),s=new RegExp(`^ {0,${Math.min(3,u-1)}}(?:\`\`\`|~~~)`),i=new RegExp(`^ {0,${Math.min(3,u-1)}}#`);while(e){const c=e.split("\n",1)[0];if(l=c,this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),s.test(l))break;if(i.test(l))break;if(t.test(l))break;if(n.test(e))break;if(l.search(/[^ ]/)>=u||!l.trim())a+="\n"+l.slice(u);else{if(h)break;if(r.search(/[^ ]/)>=4)break;if(s.test(r))break;if(i.test(r))break;if(n.test(r))break;a+="\n"+l}h||l.trim()||(h=!0),o+=c+"\n",e=e.substring(c.length+1),r=l.slice(u)}}s.loose||(c?s.loose=!0:/\n *\n *$/.test(o)&&(c=!0));let f,d=null;this.options.gfm&&(d=/^\[[ xX]\] /.exec(a),d&&(f="[ ] "!==d[0],a=a.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:o,task:!!d,checked:f,loose:!1,text:a,tokens:[]}),s.raw+=o}s.items[s.items.length-1].raw=o.trimEnd(),s.items[s.items.length-1].text=a.trimEnd(),s.raw=s.raw.trimEnd();for(let e=0;e<s.items.length;e++)if(this.lexer.state.top=!1,s.items[e].tokens=this.lexer.blockTokens(s.items[e].text,[]),!s.loose){const t=s.items[e].tokens.filter((e=>"space"===e.type)),n=t.length>0&&t.some((e=>/\n.*\n/.test(e.raw)));s.loose=n}if(s.loose)for(let e=0;e<s.items.length;e++)s.items[e].loose=!0;return s}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]};return e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(t){if(!/[:|]/.test(t[2]))return;const e={type:"table",raw:t[0],header:Zs(t[1]).map((e=>({text:e,tokens:[]}))),align:t[2].replace(/^\||\| *$/g,"").split("|"),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){let t,n,r,s,i=e.align.length;for(t=0;t<i;t++){const n=e.align[t];n&&(/^ *-+: *$/.test(n)?e.align[t]="right":/^ *:-+: *$/.test(n)?e.align[t]="center":/^ *:-+ *$/.test(n)?e.align[t]="left":e.align[t]=null)}for(i=e.rows.length,t=0;t<i;t++)e.rows[t]=Zs(e.rows[t],e.header.length).map((e=>({text:e,tokens:[]})));for(i=e.header.length,n=0;n<i;n++)e.header[n].tokens=this.lexer.inline(e.header[n].text);for(i=e.rows.length,n=0;n<i;n++)for(s=e.rows[n],r=0;r<s.length;r++)s[r].tokens=this.lexer.inline(s[r].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Ns(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=Gs(e.slice(0,-1),"\\");if((e.length-t.length)%2===0)return}else{const e=Ys(t[2],"()");if(e>-1){const n=0===t[0].indexOf("!")?5:4,r=n+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),qs(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return qs(n,e,n[0],this.lexer)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const s=r[1]||r[2]||"";if(!s||!n||this.rules.inline.punctuation.exec(n)){const n=[...r[0]].length-1;let s,i,o=n,a=0;const c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;c.lastIndex=0,t=t.slice(-1*e.length+n);while(null!=(r=c.exec(t))){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s)continue;if(i=[...s].length,r[3]||r[4]){o+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){a+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+a);const t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+i);if(Math.min(n,i)%2){const e=c.slice(1,-1);return{type:"em",raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}const l=c.slice(2,-2);return{type:"strong",raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=Ns(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=Ns(t[1]),n="mailto:"+e):(e=Ns(t[1]),n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=Ns(t[0]),n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])[0]}while(r!==t[0]);e=Ns(t[0]),n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:Ns(t[0]),{type:"text",raw:t[0],text:e}}}}const Xs={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Vs,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Xs.def=Ws(Xs.def).replace("label",Xs._label).replace("title",Xs._title).getRegex(),Xs.bullet=/(?:[*+-]|\d{1,9}[.)])/,Xs.listItemStart=Ws(/^( *)(bull) */).replace("bull",Xs.bullet).getRegex(),Xs.list=Ws(Xs.list).replace(/bull/g,Xs.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Xs.def.source+")").getRegex(),Xs._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Xs._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Xs.html=Ws(Xs.html,"i").replace("comment",Xs._comment).replace("tag",Xs._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xs.lheading=Ws(Xs.lheading).replace(/bull/g,Xs.bullet).getRegex(),Xs.paragraph=Ws(Xs._paragraph).replace("hr",Xs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xs._tag).getRegex(),Xs.blockquote=Ws(Xs.blockquote).replace("paragraph",Xs.paragraph).getRegex(),Xs.normal={...Xs},Xs.gfm={...Xs.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Xs.gfm.table=Ws(Xs.gfm.table).replace("hr",Xs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xs._tag).getRegex(),Xs.gfm.paragraph=Ws(Xs._paragraph).replace("hr",Xs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Xs.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xs._tag).getRegex(),Xs.pedantic={...Xs.normal,html:Ws("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Xs._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Vs,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ws(Xs.normal._paragraph).replace("hr",Xs.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Xs.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const $s={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Vs,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Vs,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^((?![*_])[\spunctuation])/,_punctuation:"\\p{P}$+<=>`^|~"};$s.punctuation=Ws($s.punctuation,"u").replace(/punctuation/g,$s._punctuation).getRegex(),$s.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,$s.anyPunctuation=/\\[punct]/g,$s._escapes=/\\([punct])/g,$s._comment=Ws(Xs._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),$s.emStrong.lDelim=Ws($s.emStrong.lDelim,"u").replace(/punct/g,$s._punctuation).getRegex(),$s.emStrong.rDelimAst=Ws($s.emStrong.rDelimAst,"gu").replace(/punct/g,$s._punctuation).getRegex(),$s.emStrong.rDelimUnd=Ws($s.emStrong.rDelimUnd,"gu").replace(/punct/g,$s._punctuation).getRegex(),$s.anyPunctuation=Ws($s.anyPunctuation,"gu").replace(/punct/g,$s._punctuation).getRegex(),$s._escapes=Ws($s._escapes,"gu").replace(/punct/g,$s._punctuation).getRegex(),$s._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,$s._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,$s.autolink=Ws($s.autolink).replace("scheme",$s._scheme).replace("email",$s._email).getRegex(),$s._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,$s.tag=Ws($s.tag).replace("comment",$s._comment).replace("attribute",$s._attribute).getRegex(),$s._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,$s._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,$s._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,$s.link=Ws($s.link).replace("label",$s._label).replace("href",$s._href).replace("title",$s._title).getRegex(),$s.reflink=Ws($s.reflink).replace("label",$s._label).replace("ref",Xs._label).getRegex(),$s.nolink=Ws($s.nolink).replace("ref",Xs._label).getRegex(),$s.reflinkSearch=Ws($s.reflinkSearch,"g").replace("reflink",$s.reflink).replace("nolink",$s.nolink).getRegex(),$s.normal={...$s},$s.pedantic={...$s.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ws(/^!?\[(label)\]\((.*?)\)/).replace("label",$s._label).getRegex(),reflink:Ws(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$s._label).getRegex()},$s.gfm={...$s.normal,escape:Ws($s.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},$s.gfm.url=Ws($s.gfm.url,"i").replace("email",$s.gfm._extended_email).getRegex(),$s.breaks={...$s.gfm,br:Ws($s.br).replace("{2,}","*").getRegex(),text:Ws($s.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class ei{constructor(e){Es(this,"tokens",void 0),Es(this,"options",void 0),Es(this,"state",void 0),Es(this,"tokenizer",void 0),Es(this,"inlineQueue",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ts,this.options.tokenizer=this.options.tokenizer||new Qs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Xs.normal,inline:$s.normal};this.options.pedantic?(t.block=Xs.pedantic,t.inline=$s.pedantic):this.options.gfm&&(t.block=Xs.gfm,this.options.breaks?t.inline=$s.breaks:t.inline=$s.gfm),this.tokenizer.rules=t}static get rules(){return{block:Xs,inline:$s}}static lex(e,t){const n=new ei(t);return n.lex(e)}static lexInline(e,t){const n=new ei(t);return n.inlineTokens(e)}lex(e){let t;e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);while(t=this.inlineQueue.shift())this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e){let t,n,r,s,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));while(e)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(t=n.call({lexer:this},e,i))&&(e=e.substring(t.raw.length),i.push(t),!0)))))if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),1===t.raw.length&&i.length>0?i[i.length-1].raw+="\n":i.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),n=i[i.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?i.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.fences(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.list(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.def(e))e=e.substring(t.raw.length),n=i[i.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.table(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),i.push(t);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startBlock.forEach((e=>{s=e.call({lexer:this},n),"number"===typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(t=this.tokenizer.paragraph(r)))n=i[i.length-1],s&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):i.push(t),s=r.length!==e.length,e=e.substring(t.raw.length);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),n=i[i.length-1],n&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):i.push(t);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,i}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e){let t,n,r,s,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)while(null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(c)))e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}while(null!=(s=this.tokenizer.rules.inline.blockSkip.exec(c)))c=c.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while(null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(c)))c=c.slice(0,s.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);while(e)if(i||(o=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(t=n.call({lexer:this},e,a))&&(e=e.substring(t.raw.length),a.push(t),!0)))))if(t=this.tokenizer.escape(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.tag(e))e=e.substring(t.raw.length),n=a[a.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):a.push(t);else if(t=this.tokenizer.link(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(t.raw.length),n=a[a.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):a.push(t);else if(t=this.tokenizer.emStrong(e,c,o))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.codespan(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.br(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.del(e))e=e.substring(t.raw.length),a.push(t);else if(t=this.tokenizer.autolink(e))e=e.substring(t.raw.length),a.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startInline.forEach((e=>{s=e.call({lexer:this},n),"number"===typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(r))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(o=t.raw.slice(-1)),i=!0,n=a[a.length-1],n&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):a.push(t);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(t.raw.length),a.push(t);return a}}class ti{constructor(e){Es(this,"options",void 0),this.options=e||Ts}code(e,t,n){var r;const s=null===(r=(t||"").match(/^\S*/))||void 0===r?void 0:r[0];return e=e.replace(/\n$/,"")+"\n",s?'<pre><code class="language-'+Ns(s)+'">'+(n?e:Ns(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Ns(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e,t){return e}heading(e,t,n){return`<h${t}>${e}</h${t}>\n`}hr(){return"<hr>\n"}list(e,t,n){const r=t?"ol":"ul",s=t&&1!==n?' start="'+n+'"':"";return"<"+r+s+">\n"+e+"</"+r+">\n"}listitem(e,t,n){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td",r=t.align?`<${n} align="${t.align}">`:`<${n}>`;return r+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){const r=Js(e);if(null===r)return n;e=r;let s='<a href="'+e+'"';return t&&(s+=' title="'+t+'"'),s+=">"+n+"</a>",s}image(e,t,n){const r=Js(e);if(null===r)return n;e=r;let s=`<img src="${e}" alt="${n}"`;return t&&(s+=` title="${t}"`),s+=">",s}text(e){return e}}class ni{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class ri{constructor(e){Es(this,"options",void 0),Es(this,"renderer",void 0),Es(this,"textRenderer",void 0),this.options=e||Ts,this.options.renderer=this.options.renderer||new ti,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ni}static parse(e,t){const n=new ri(t);return n.parse(e)}static parseInline(e,t){const n=new ri(t);return n.parseInline(e)}parse(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="";for(let r=0;r<e.length;r++){const s=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const e=s,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}switch(s.type){case"space":continue;case"hr":n+=this.renderer.hr();continue;case"heading":{const e=s;n+=this.renderer.heading(this.parseInline(e.tokens),e.depth,Fs(this.parseInline(e.tokens,this.textRenderer)));continue}case"code":{const e=s;n+=this.renderer.code(e.text,e.lang,!!e.escaped);continue}case"table":{const e=s;let t="",r="";for(let n=0;n<e.header.length;n++)r+=this.renderer.tablecell(this.parseInline(e.header[n].tokens),{header:!0,align:e.align[n]});t+=this.renderer.tablerow(r);let i="";for(let n=0;n<e.rows.length;n++){const t=e.rows[n];r="";for(let n=0;n<t.length;n++)r+=this.renderer.tablecell(this.parseInline(t[n].tokens),{header:!1,align:e.align[n]});i+=this.renderer.tablerow(r)}n+=this.renderer.table(t,i);continue}case"blockquote":{const e=s,t=this.parse(e.tokens);n+=this.renderer.blockquote(t);continue}case"list":{const e=s,t=e.ordered,r=e.start,i=e.loose;let o="";for(let n=0;n<e.items.length;n++){const t=e.items[n],r=t.checked,s=t.task;let a="";if(t.task){const e=this.renderer.checkbox(!!r);i?t.tokens.length>0&&"paragraph"===t.tokens[0].type?(t.tokens[0].text=e+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=e+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",text:e+" "}):a+=e+" "}a+=this.parse(t.tokens,i),o+=this.renderer.listitem(a,s,!!r)}n+=this.renderer.list(o,t,r);continue}case"html":{const e=s;n+=this.renderer.html(e.text,e.block);continue}case"paragraph":{const e=s;n+=this.renderer.paragraph(this.parseInline(e.tokens));continue}case"text":{let i=s,o=i.tokens?this.parseInline(i.tokens):i.text;while(r+1<e.length&&"text"===e[r+1].type)i=e[++r],o+="\n"+(i.tokens?this.parseInline(i.tokens):i.text);n+=t?this.renderer.paragraph(o):o;continue}default:{const e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t){t=t||this.renderer;let n="";for(let r=0;r<e.length;r++){const s=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const e=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=e||"";continue}}switch(s.type){case"escape":{const e=s;n+=t.text(e.text);break}case"html":{const e=s;n+=t.html(e.text);break}case"link":{const e=s;n+=t.link(e.href,e.title,this.parseInline(e.tokens,t));break}case"image":{const e=s;n+=t.image(e.href,e.title,e.text);break}case"strong":{const e=s;n+=t.strong(this.parseInline(e.tokens,t));break}case"em":{const e=s;n+=t.em(this.parseInline(e.tokens,t));break}case"codespan":{const e=s;n+=t.codespan(e.text);break}case"br":n+=t.br();break;case"del":{const e=s;n+=t.del(this.parseInline(e.tokens,t));break}case"text":{const e=s;n+=t.text(e.text);break}default:{const e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}}class si{constructor(e){Es(this,"options",void 0),this.options=e||Ts}preprocess(e){return e}postprocess(e){return e}}Es(si,"passThroughHooks",new Set(["preprocess","postprocess"]));var ii=new WeakSet;class oi{constructor(){_s(this,ii),Es(this,"defaults",Os()),Es(this,"options",this.setOptions),Es(this,"parse",Rs(ii,this,ai).call(this,ei.lex,ri.parse)),Es(this,"parseInline",Rs(ii,this,ai).call(this,ei.lexInline,ri.parseInline)),Es(this,"Parser",ri),Es(this,"Renderer",ti),Es(this,"TextRenderer",ni),Es(this,"Lexer",ei),Es(this,"Tokenizer",Qs),Es(this,"Hooks",si),this.use(...arguments)}walkTokens(e,t){let n=[];for(const i of e)switch(n=n.concat(t.call(this,i)),i.type){case"table":{const e=i;for(const r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(const r of e.rows)for(const e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=i;n=n.concat(this.walkTokens(e.items,t));break}default:{var r,s;const e=i;null!==(r=this.defaults.extensions)&&void 0!==r&&null!==(s=r.childTokens)&&void 0!==s&&s[e.type]?this.defaults.extensions.childTokens[e.type].forEach((r=>{n=n.concat(this.walkTokens(e[r],t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(){const e=this.defaults.extensions||{renderers:{},childTokens:{}};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((t=>{const n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){const n=e.renderers[t.name];e.renderers[t.name]=n?function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];let i=t.renderer.apply(this,r);return!1===i&&(i=n.apply(this,r)),i}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");const n=e[t.level];n?n.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),n.extensions=e),t.renderer){const e=this.defaults.renderer||new ti(this.defaults);for(const n in t.renderer){const r=t.renderer[n],s=n,i=e[s];e[s]=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];let o=r.apply(e,n);return!1===o&&(o=i.apply(e,n)),o||""}}n.renderer=e}if(t.tokenizer){const e=this.defaults.tokenizer||new Qs(this.defaults);for(const n in t.tokenizer){const r=t.tokenizer[n],s=n,i=e[s];e[s]=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];let o=r.apply(e,n);return!1===o&&(o=i.apply(e,n)),o}}n.tokenizer=e}if(t.hooks){const e=this.defaults.hooks||new si;for(const n in t.hooks){const r=t.hooks[n],s=n,i=e[s];si.passThroughHooks.has(n)?e[s]=t=>{if(this.defaults.async)return Promise.resolve(r.call(e,t)).then((t=>i.call(e,t)));const n=r.call(e,t);return i.call(e,n)}:e[s]=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];let o=r.apply(e,n);return!1===o&&(o=i.apply(e,n)),o}}n.hooks=e}if(t.walkTokens){const e=this.defaults.walkTokens,r=t.walkTokens;n.walkTokens=function(t){let n=[];return n.push(r.call(this,t)),e&&(n=n.concat(e.call(this,t))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ei.lex(e,null!==t&&void 0!==t?t:this.defaults)}parser(e,t){return ri.parse(e,null!==t&&void 0!==t?t:this.defaults)}}function ai(e,t){return(n,r)=>{const s={...r},i={...this.defaults,...s};!0===this.defaults.async&&!1===s.async&&(i.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),i.async=!0);const o=Rs(ii,this,ci).call(this,!!i.silent,!!i.async);if("undefined"===typeof n||null===n)return o(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof n)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(i.hooks&&(i.hooks.options=i),i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then((t=>e(t,i))).then((e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then((()=>e)):e)).then((e=>t(e,i))).then((e=>i.hooks?i.hooks.postprocess(e):e)).catch(o);try{i.hooks&&(n=i.hooks.preprocess(n));const r=e(n,i);i.walkTokens&&this.walkTokens(r,i.walkTokens);let s=t(r,i);return i.hooks&&(s=i.hooks.postprocess(s)),s}catch(vr){return o(vr)}}}function ci(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+Ns(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}const li=new oi;function ui(e,t){return li.parse(e,t)}ui.options=ui.setOptions=function(e){return li.setOptions(e),ui.defaults=li.defaults,Is(ui.defaults),ui},ui.getDefaults=Os,ui.defaults=Ts,ui.use=function(){return li.use(...arguments),ui.defaults=li.defaults,Is(ui.defaults),ui},ui.walkTokens=function(e,t){return li.walkTokens(e,t)},ui.parseInline=li.parseInline,ui.Parser=ri,ui.parser=ri.parse,ui.Renderer=ti,ui.TextRenderer=ni,ui.Lexer=ei,ui.lexer=ei.lex,ui.Tokenizer=Qs,ui.Hooks=si,ui.parse=ui;ui.options,ui.setOptions,ui.use,ui.walkTokens,ui.parseInline,ri.parse,ei.lex;const hi=new AbortController,fi=hi.signal;var di={name:"Chat",components:{ChatTools:As},props:{keyWord:{type:String,default:""},resId:{type:String,default:""},openCourseId:{type:String,default:""},chatId:{type:String,default:""},chatMajorId:{type:String,default:void 0},showMoreQA:{type:Boolean,default:!1},showFile:{type:Boolean,default:!1},messageData:{type:Array,default:ms}},data(){return{popover:!1,input:"",errors:[],errorList:gs,finish:!1,cacheKeyWord:""}},computed:{canSubmit(){return 0===this.errors.length&&""===this.input}},watch:{keyWord:{handler(){this.keyWord&&(this.cacheKeyWord=this.keyWord,this.postMessage())},immediate:!0}},methods:{cancelPopover(){this.popover=!1},openPopover(){this.popover=!0},scrollToBottom(){this.$refs.chatContainer.scrollTop=this.$refs.chatContainer.scrollHeight},async postMessage(e,t,n){let r={};this.finish=!1,e&&(e.sending=!0,r={reStatus:1,parentMsgId:e.parentMsgId,msgId:e.msgId,content:this.messageData[e.index-1].message},this.messageData[e.index].message="",this.messageData[e.index].cacheMessage="",this.makeAutoMessage());const s={messageList:[{content:this.keyWord||this.cacheKeyWord,resId:this.resId,chatId:this.chatId||void 0,commonKey:t||!1,parentMsgId:n||void 0,...r}]};if(!e&&!t){const e=this.keyWord||this.cacheKeyWord;this.messageData.push({type:"user",message:e.replace(/\n/g,"<br>")}),setTimeout((()=>{this.messageData.push({type:"robot",message:"",cacheMessage:"",zan:!1,cai:!1,stop:!1,finish:!1,sending:!0,links:[],connectUrl:[],reAnswerCount:0}),this.makeAutoMessage()}))}await as(s,fi,(t=>{this.makeMessageLine(t,e)}))},makeAutoMessage(){const e=[];for(let t=0;t<this.messageData.length;t++){const n=this.messageData[t];e.push({role:"robot"===n.type?"assistant":"user",content:n.message||"正在思考中。"})}this.showMoreQA&&this.makeAutoQuestioning(e)},makeMessageLine(e,t){const{content:n,status:r,chatId:s,msgId:i,parentMsgId:o,reference:a,commonKey:c,connectUrl:l}=JSON.parse(e.data);let u=t?t.index:this.messageData.length-1;const h=this.messageData[u];let f=!0;if(2===r||1===r)return c?(h.sending=!0,void this.postMessage(t,c,o)):(h.finish=!0,a&&(h.links=JSON.parse(a),h.links.map((e=>{e.title.startsWith(this.chatMajorId)||(f=!1)}))),l&&(h.connectUrl=JSON.parse(l)),h.allIdWithStart=f,this.cacheKeyWord="",this.finish=!0,void this.$emit("on-message-finish",s));h.cacheMessage+=n,h.message=ui.parse(h.cacheMessage),h.msgId=i,h.parentMsgId=o,h.chatId=s,setTimeout((()=>{t||this.scrollToBottom()}),100),setTimeout((()=>h.sending=!1),500)},async makeAutoQuestioning(e){if(e.length<=2)return;const t=await os(this.chatMajorId,e),{message:{content:{followUps:n}}}=t;this.messageData[this.messageData.length-1].followUps=[],this.messageData[this.messageData.length-1].followUps=n.length>3?n.splice(0,3):n},onStopChat(e){this.$emit("on-message-finish",e.chatId)},selectModule(e){this.cacheKeyWord=e,this.postMessage()},reanswer(e,t){e.index=t,e.stop=!1,e.finish=!1,e.links=[],e.connectUrl=[],this.postMessage(e),this.$emit("on-reanser")},seeDetail(e,t){const{pageIndex:n}=e,r=`${Gr}/#/pdf-view?documentUrl=${Yr}${encodeURIComponent(t)}&pageIndex=${n}`;window.open(r,"_blank")}}},pi=di,gi=us(pi,ds,ps,!1,null,"56b82e9f",null),mi=gi.exports;
|
|
16
16
|
/*! js-cookie v3.0.5 | MIT */
|
|
17
17
|
function yi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var wi={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function bi(e,t){function n(n,r,s){if("undefined"!==typeof document){s=yi({},t,s),"number"===typeof s.expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var o in s)s[o]&&(i+="; "+o,!0!==s[o]&&(i+="="+s[o].split(";")[0]));return document.cookie=n+"="+e.write(r,n)+i}}function r(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},s=0;s<n.length;s++){var i=n[s].split("="),o=i.slice(1).join("=");try{var a=decodeURIComponent(i[0]);if(r[a]=e.read(o,a),t===a)break}catch(vr){}}return t?r[t]:r}}return Object.create({set:n,get:r,remove:function(e,t){n(e,"",yi({},t,{expires:-1}))},withAttributes:function(e){return bi(this.converter,yi({},this.attributes,e))},withConverter:function(e){return bi(yi({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var vi=bi(wi,{path:"/"}),ki={name:"AiAssistant",components:{HotSearch:fs,Chat:mi},props:{visible:!0,resId:{type:String,default:""},openCourseId:{type:String,default:""}},watch:{visible(){this.visible&&ss(this.resId).then((e=>{1==e.flag?(this.courseFlag=!0,this.queryList()):(this.courseFlag=!1,this.message=e.message)}))}},data(){return{aiMessage:"",aiMessageKeyWord:"",chatShow:!1,courseFlag:!1,message:"",messageList:[],chatId:void 0,stop:!1,chatMajorId:"",showMoreQA:!1,showFile:!1}},mounted(){if(!vi.get("token"))return this.$message.warning("未获取到登录信息,请重新登录");this.messageList=[],ys(vi.get("token"))},methods:{closeMessage(){this.stopMessage()&&this.$emit("close")},selectModule(e){this.chatShow=!0,this.aiMessage=e,this.goChat({})},showHot(){this.chatShow=!1},async queryList(){rs(this.resId);const e=await ns(this.resId);if(!e||e.length<1)return;let t=e[0].contents.reverse();const{chatMajorId:n}=e[0];this.chatMajorId=n&&n.toString();const r=[];t.map((e=>{let t=!0;this.chatMajorId&&e.references&&e.references.map((e=>{e.title.startsWith(this.chatMajorId)||(t=!1)}));const n={type:"assistant"===e.role?"robot":"user",message:"assistant"===e.role?ui.parse(e.content||""):e.content.replace(/\n/g,"<br>"),zan:1===e.type,cai:2===e.type,stop:1===e.status,finish:!0,links:e.references||[],connectUrl:e.connectUrls||[],reAnswerCount:0,msgId:e.contentId,parentMsgId:e.parentMsgId,allIdWithStart:t};r.push(n)})),t[0]&&(this.chatId=t[0].chatId),this.messageList=r,this.messageList.length>0&&(this.chatShow=!0,setTimeout((()=>{this.$refs.chatRef.scrollToBottom()})))},async addNewChat(){if(!this.stopMessage())return;const e=await Kr(this.resId);this.chatId=e.chatId,this.resizeChat(),this.$message.success("创建新对话成功!")},async clearChat(){this.stopMessage()&&(!this.chatId||this.messageList.length<1?this.$message.warning("当前对话为最新对话"):(await Qr(this.chatId),this.resizeChat(),this.$message.success("对话清除成功!"),this.chatId=void 0))},goChat(e){e.shiftKey||this.stopMessage()&&(this.aiMessage.length>6e3?this.$message.warning("文字长度不能超过3000字"):this.aiMessage.trim()?(this.aiMessageKeyWord=this.aiMessage,this.chatShow=!0,this.stop=!0,setTimeout((()=>{this.aiMessageKeyWord=this.aiMessage=""}),300)):this.$message.error("输入内容为空"))},reanserMethod(){this.stop=!0},stopMessage(){return!this.stop||(this.$message.warning("对话正在进行中,请稍后重试"),!1)},resizeChat(){this.messageList=[],this.chatShow=!1},messageFinish(e){this.stop=!1,this.chatId=e},initInfo(e){const{ifProbe:t,isShowFile:n}=e;this.showMoreQA=!!t,this.showFile=!!n}}},xi=ki,Ai=us(xi,i,o,!1,null,"77cbb80a",null),_i=Ai.exports;_i.install=function(e){e.component(_i.name,_i)};var Si=_i;const Ri={AiAssistant:Si},Ei=function(e){Ei.installed||Object.keys(Ri).forEach((t=>{e.component(Ri[t].name,Ri[t])}))};var Ci={install:Ei},Bi=Ci}(),s}()}));
|
|
18
18
|
//# sourceMappingURL=ai-assistant-pro.umd.min.js.map
|