@shrfe/assets 1.0.22 → 1.0.23-alpha.2

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.
@@ -15,7 +15,7 @@ return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();functio
15
15
 
16
16
  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.
17
17
  */
18
- return function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,s=n.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=n.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=n.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]),u=n.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]),l=n.create([0,1518500249,1859775393,2400959708,2840853838]),h=n.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,d,w,b,_,k,S,x,C,E,A,O=this._hash.words,I=l.words,T=h.words,M=s.words,R=a.words,P=c.words,D=u.words;k=o=O[0],S=d=O[1],x=w=O[2],C=b=O[3],E=_=O[4];for(r=0;r<80;r+=1)A=o+e[t+M[r]]|0,A+=r<16?p(d,w,b)+I[0]:r<32?f(d,w,b)+I[1]:r<48?m(d,w,b)+I[2]:r<64?g(d,w,b)+I[3]:v(d,w,b)+I[4],A|=0,A=y(A,P[r]),A=A+_|0,o=_,_=b,b=y(w,10),w=d,d=A,A=k+e[t+R[r]]|0,A+=r<16?v(S,x,C)+T[0]:r<32?g(S,x,C)+T[1]:r<48?m(S,x,C)+T[2]:r<64?f(S,x,C)+T[3]:p(S,x,C)+T[4],A|=0,A=y(A,D[r]),A=A+E|0,k=E,E=C,C=y(x,10),x=S,S=A;A=O[1]+w+C|0,O[1]=O[2]+b+E|0,O[2]=O[3]+_+k|0,O[3]=O[4]+o+S|0,O[4]=O[0]+d+x|0,O[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function f(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function y(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(d),t.HmacRIPEMD160=i._createHmacHelper(d)}(Math),e.RIPEMD160})},648:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,s=[],a=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],c=r[4],u=0;u<80;u++){if(u<16)s[u]=0|e[t+u];else{var l=s[u-3]^s[u-8]^s[u-14]^s[u-16];s[u]=l<<1|l>>>31}var h=(n<<5|n>>>27)+c+s[u];h+=u<20?1518500249+(i&o|~i&a):u<40?1859775393+(i^o^a):u<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,c=a,a=o,o=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(a),t.HmacSHA1=i._createHmacHelper(a)}(),e.SHA1})},8623:function(e,t,r){(function(t,n){e.exports=n(r(518),r(2110))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.algo,o=i.SHA256,s=i.SHA224=o.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=o._createHelper(s),t.HmacSHA224=o._createHmacHelper(s)}(),e.SHA224})},2110:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=[],c=[];(function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}var n=2,i=0;while(i<64)e(n)&&(i<8&&(a[i]=r(t.pow(n,.5))),c[i]=r(t.pow(n,1/3)),i++),n++})();var u=[],l=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],l=r[5],h=r[6],d=r[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var f=u[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=u[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[p]=m+u[p-7]+v+u[p-16]}var y=a&l^~a&h,w=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),k=d+_+y+c[p]+u[p],S=b+w;d=h,h=l,l=a,a=s+k|0,s=o,o=i,i=n,n=k+S|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+l|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(l),r.HmacSHA256=o._createHmacHelper(l)}(Math),e.SHA256})},6882:function(e,t,r){(function(t,n){e.exports=n(r(518),r(5703))})(0,function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.x64,a=s.Word,c=r.algo,u=[],l=[],h=[];(function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var n=t%5,i=(2*e+3*t)%5;e=n,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,s=0;s<24;s++){for(var c=0,d=0,p=0;p<7;p++){if(1&o){var f=(1<<p)-1;f<32?d^=1<<f:c^=1<<f-32}128&o?o=o<<1^113:o<<=1}h[s]=a.create(c,d)}})();var d=[];(function(){for(var e=0;e<25;e++)d[e]=a.create()})();var p=c.SHA3=o.extend({cfg:o.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 r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=e[t+2*i],s=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);var a=r[i];a.high^=s,a.low^=o}for(var c=0;c<24;c++){for(var p=0;p<5;p++){for(var f=0,m=0,g=0;g<5;g++){a=r[p+5*g];f^=a.high,m^=a.low}var v=d[p];v.high=f,v.low=m}for(p=0;p<5;p++){var y=d[(p+4)%5],w=d[(p+1)%5],b=w.high,_=w.low;for(f=y.high^(b<<1|_>>>31),m=y.low^(_<<1|b>>>31),g=0;g<5;g++){a=r[p+5*g];a.high^=f,a.low^=m}}for(var k=1;k<25;k++){a=r[k];var S=a.high,x=a.low,C=u[k];C<32?(f=S<<C|x>>>32-C,m=x<<C|S>>>32-C):(f=x<<C-32|S>>>64-C,m=S<<C-32|x>>>64-C);var E=d[l[k]];E.high=f,E.low=m}var A=d[0],O=r[0];A.high=O.high,A.low=O.low;for(p=0;p<5;p++)for(g=0;g<5;g++){k=p+5*g,a=r[k];var I=d[k],T=d[(p+1)%5+5*g],M=d[(p+2)%5+5*g];a.high=I.high^~T.high&M.high,a.low=I.low^~T.low&M.low}a=r[0];var R=h[c];a.high^=R.high,a.low^=R.low}},_doFinalize:function(){var e=this._data,r=e.words,n=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,c=a/8,u=[],l=0;l<c;l++){var h=s[l],d=h.high,p=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),u.push(p),u.push(d)}return new i.init(u,a)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=o._createHelper(p),r.HmacSHA3=o._createHmacHelper(p)}(Math),e.SHA3})},2078:function(e,t,r){(function(t,n){e.exports=n(r(518),r(5703),r(1759))})(0,function(e){return function(){var t=e,r=t.x64,n=r.Word,i=r.WordArray,o=t.algo,s=o.SHA512,a=o.SHA384=s.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=s._createHelper(a),t.HmacSHA384=s._createHmacHelper(a)}(),e.SHA384})},1759:function(e,t,r){(function(t,n){e.exports=n(r(518),r(5703))})(0,function(e){return function(){var t=e,r=t.lib,n=r.Hasher,i=t.x64,o=i.Word,s=i.WordArray,a=t.algo;function c(){return o.create.apply(o,arguments)}var u=[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)],l=[];(function(){for(var e=0;e<80;e++)l[e]=c()})();var h=a.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],c=r[5],h=r[6],d=r[7],p=n.high,f=n.low,m=i.high,g=i.low,v=o.high,y=o.low,w=s.high,b=s.low,_=a.high,k=a.low,S=c.high,x=c.low,C=h.high,E=h.low,A=d.high,O=d.low,I=p,T=f,M=m,R=g,P=v,D=y,L=w,B=b,N=_,j=k,F=S,U=x,z=C,q=E,H=A,$=O,W=0;W<80;W++){var V,X,Y=l[W];if(W<16)X=Y.high=0|e[t+2*W],V=Y.low=0|e[t+2*W+1];else{var G=l[W-15],J=G.high,K=G.low,Z=(J>>>1|K<<31)^(J>>>8|K<<24)^J>>>7,Q=(K>>>1|J<<31)^(K>>>8|J<<24)^(K>>>7|J<<25),ee=l[W-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=l[W-7],se=oe.high,ae=oe.low,ce=l[W-16],ue=ce.high,le=ce.low;V=Q+ae,X=Z+se+(V>>>0<Q>>>0?1:0),V+=ie,X=X+ne+(V>>>0<ie>>>0?1:0),V+=le,X=X+ue+(V>>>0<le>>>0?1:0),Y.high=X,Y.low=V}var he=N&F^~N&z,de=j&U^~j&q,pe=I&M^I&P^M&P,fe=T&R^T&D^R&D,me=(I>>>28|T<<4)^(I<<30|T>>>2)^(I<<25|T>>>7),ge=(T>>>28|I<<4)^(T<<30|I>>>2)^(T<<25|I>>>7),ve=(N>>>14|j<<18)^(N>>>18|j<<14)^(N<<23|j>>>9),ye=(j>>>14|N<<18)^(j>>>18|N<<14)^(j<<23|N>>>9),we=u[W],be=we.high,_e=we.low,ke=$+ye,Se=H+ve+(ke>>>0<$>>>0?1:0),xe=(ke=ke+de,Se=Se+he+(ke>>>0<de>>>0?1:0),ke=ke+_e,Se=Se+be+(ke>>>0<_e>>>0?1:0),ke=ke+V,Se=Se+X+(ke>>>0<V>>>0?1:0),ge+fe),Ce=me+pe+(xe>>>0<ge>>>0?1:0);H=z,$=q,z=F,q=U,F=N,U=j,j=B+ke|0,N=L+Se+(j>>>0<B>>>0?1:0)|0,L=P,B=D,P=M,D=R,M=I,R=T,T=ke+xe|0,I=Se+Ce+(T>>>0<ke>>>0?1:0)|0}f=n.low=f+T,n.high=p+I+(f>>>0<T>>>0?1:0),g=i.low=g+R,i.high=m+M+(g>>>0<R>>>0?1:0),y=o.low=y+D,o.high=v+P+(y>>>0<D>>>0?1:0),b=s.low=b+B,s.high=w+L+(b>>>0<B>>>0?1:0),k=a.low=k+j,a.high=_+N+(k>>>0<j>>>0?1:0),x=c.low=x+U,c.high=S+F+(x>>>0<U>>>0?1:0),E=h.low=E+q,h.high=C+z+(E>>>0<q>>>0?1:0),O=d.low=O+$,d.high=A+H+(O>>>0<$>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process();var i=this._hash.toX32();return i},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(h),t.HmacSHA512=n._createHmacHelper(h)}(),e.SHA512})},3865:function(e,t,r){(function(t,n){e.exports=n(r(518),r(2201),r(2989),r(953),r(4768))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=r.BlockCipher,o=t.algo,s=[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],u=[{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}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=i.extend({_doReset:function(){for(var e=this._key,t=e.words,r=[],n=0;n<56;n++){var i=s[n]-1;r[n]=t[i>>>5]>>>31-i%32&1}for(var o=this._subKeys=[],u=0;u<16;u++){var l=o[u]=[],h=c[u];for(n=0;n<24;n++)l[n/6|0]|=r[(a[n]-1+h)%28]<<31-n%6,l[4+(n/6|0)]|=r[28+(a[n+24]-1+h)%28]<<31-n%6;l[0]=l[0]<<1|l[0]>>>31;for(n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=u[c][((s^i[c])&l[c])>>>0];this._lBlock=s,this._rBlock=o^a}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function p(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}t.DES=i._createHelper(h);var f=o.TripleDES=i.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 r=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),o=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(n.create(r)),this._des2=h.createEncryptor(n.create(i)),this._des3=h.createEncryptor(n.create(o))},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=i._createHelper(f)}(),e.TripleDES})},5703:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,s=r.x64={};s.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=i.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return o.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}})}(),e})},7833:function(e,t,r){"use strict";r.d(t,{A:function(){return W}});var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=function(e,t,r){var i,o=n[e];return i="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i},o=i;function s(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},c={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},u={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:s({formats:a,defaultWidth:"full"}),time:s({formats:c,defaultWidth:"full"}),dateTime:s({formats:u,defaultWidth:"full"})},h=l,d={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},p=function(e,t,r,n){return d[e]},f=p;function m(e){return function(t,r){var n,i=null!==r&&void 0!==r&&r.context?String(r.context):"standalone";if("formatting"===i&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=null!==r&&void 0!==r&&r.width?String(r.width):o;n=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,c=null!==r&&void 0!==r&&r.width?String(r.width):e.defaultWidth;n=e.values[c]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return n[u]}}var g={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},v={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},y={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},w={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},b={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},k=function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},S={ordinalNumber:k,era:m({values:g,defaultWidth:"wide"}),quarter:m({values:v,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:m({values:y,defaultWidth:"wide"}),day:m({values:w,defaultWidth:"wide"}),dayPeriod:m({values:b,defaultWidth:"wide",formattingValues:_,defaultFormattingWidth:"wide"})},x=S;function C(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s,a=o[0],c=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?A(c,function(e){return e.test(a)}):E(c,function(e){return e.test(a)});s=e.valueCallback?e.valueCallback(u):u,s=r.valueCallback?r.valueCallback(s):s;var l=t.slice(a.length);return{value:s,rest:l}}}function E(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function A(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function O(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=r.valueCallback?r.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var I=/^(\d+)(th|st|nd|rd)?/i,T=/\d+/i,M={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},R={any:[/^b/i,/^(a|c)/i]},P={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},D={any:[/1/i,/2/i,/3/i,/4/i]},L={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},B={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},N={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},j={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},F={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},U={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},z={ordinalNumber:O({matchPattern:I,parsePattern:T,valueCallback:function(e){return parseInt(e,10)}}),era:C({matchPatterns:M,defaultMatchWidth:"wide",parsePatterns:R,defaultParseWidth:"any"}),quarter:C({matchPatterns:P,defaultMatchWidth:"wide",parsePatterns:D,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:C({matchPatterns:L,defaultMatchWidth:"wide",parsePatterns:B,defaultParseWidth:"any"}),day:C({matchPatterns:N,defaultMatchWidth:"wide",parsePatterns:j,defaultParseWidth:"any"}),dayPeriod:C({matchPatterns:F,defaultMatchWidth:"any",parsePatterns:U,defaultParseWidth:"any"})},q=z,H={code:"en-US",formatDistance:o,formatLong:h,formatRelative:f,localize:x,match:q,options:{weekStartsOn:0,firstWeekContainsDate:1}},$=H,W=$},6017:function(e,t,r){"use strict";r.d(t,{q:function(){return i}});var n={};function i(){return n}},7641:function(e,t,r){"use strict";function n(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}r.d(t,{A:function(){return n}})},1092:function(e,t,r){"use strict";function n(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{A:function(){return n}})},2775:function(e,t,r){"use strict";r.d(t,{A:function(){return J}});var n=r(7545),i=r(1092);function o(e){return(0,i.A)(1,arguments),e instanceof Date||"object"===(0,n.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}var s=r(5286);function a(e){if((0,i.A)(1,arguments),!o(e)&&"number"!==typeof e)return!1;var t=(0,s.A)(e);return!isNaN(Number(t))}function c(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function u(e,t){(0,i.A)(2,arguments);var r=(0,s.A)(e).getTime(),n=c(t);return new Date(r+n)}function l(e,t){(0,i.A)(2,arguments);var r=c(t);return u(e,-r)}var h=864e5;function d(e){(0,i.A)(1,arguments);var t=(0,s.A)(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),o=r-n;return Math.floor(o/h)+1}function p(e){(0,i.A)(1,arguments);var t=1,r=(0,s.A)(e),n=r.getUTCDay(),o=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-o),r.setUTCHours(0,0,0,0),r}function f(e){(0,i.A)(1,arguments);var t=(0,s.A)(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var o=p(n),a=new Date(0);a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0);var c=p(a);return t.getTime()>=o.getTime()?r+1:t.getTime()>=c.getTime()?r:r-1}function m(e){(0,i.A)(1,arguments);var t=f(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=p(r);return n}var g=6048e5;function v(e){(0,i.A)(1,arguments);var t=(0,s.A)(e),r=p(t).getTime()-m(t).getTime();return Math.round(r/g)+1}var y=r(6017);function w(e,t){var r,n,o,a,u,l,h,d;(0,i.A)(1,arguments);var p=(0,y.q)(),f=c(null!==(r=null!==(n=null!==(o=null!==(a=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==a?a:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:p.weekStartsOn)&&void 0!==n?n:null===(h=p.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==r?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,s.A)(e),g=m.getUTCDay(),v=(g<f?7:0)+g-f;return m.setUTCDate(m.getUTCDate()-v),m.setUTCHours(0,0,0,0),m}function b(e,t){var r,n,o,a,u,l,h,d;(0,i.A)(1,arguments);var p=(0,s.A)(e),f=p.getUTCFullYear(),m=(0,y.q)(),g=c(null!==(r=null!==(n=null!==(o=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:m.firstWeekContainsDate)&&void 0!==n?n:null===(h=m.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==r?r:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(f+1,0,g),v.setUTCHours(0,0,0,0);var b=w(v,t),_=new Date(0);_.setUTCFullYear(f,0,g),_.setUTCHours(0,0,0,0);var k=w(_,t);return p.getTime()>=b.getTime()?f+1:p.getTime()>=k.getTime()?f:f-1}function _(e,t){var r,n,o,s,a,u,l,h;(0,i.A)(1,arguments);var d=(0,y.q)(),p=c(null!==(r=null!==(n=null!==(o=null!==(s=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null===t||void 0===t||null===(a=t.locale)||void 0===a||null===(u=a.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==n?n:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==r?r:1),f=b(e,t),m=new Date(0);m.setUTCFullYear(f,0,p),m.setUTCHours(0,0,0,0);var g=w(m,t);return g}var k=6048e5;function S(e,t){(0,i.A)(1,arguments);var r=(0,s.A)(e),n=w(r,t).getTime()-_(r,t).getTime();return Math.round(n/k)+1}function x(e,t){var r=e<0?"-":"",n=Math.abs(e).toString();while(n.length<t)n="0"+n;return r+n}var C={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return x("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):x(r+1,2)},d:function(e,t){return x(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return x(e.getUTCHours()%12||12,t.length)},H:function(e,t){return x(e.getUTCHours(),t.length)},m:function(e,t){return x(e.getUTCMinutes(),t.length)},s:function(e,t){return x(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,r-3));return x(i,t.length)}},E=C,A={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},O={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return E.y(e,t)},Y:function(e,t,r,n){var i=b(e,n),o=i>0?i:1-i;if("YY"===t){var s=o%100;return x(s,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):x(o,t.length)},R:function(e,t){var r=f(e);return x(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return x(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return x(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return x(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return E.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return x(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var i=S(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):x(i,t.length)},I:function(e,t,r){var n=v(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):x(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):E.d(e,t)},D:function(e,t,r){var n=d(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):x(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return x(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return x(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return x(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours(),i=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,i=e.getUTCHours();switch(n=12===i?A.noon:0===i?A.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,i=e.getUTCHours();switch(n=i>=17?A.evening:i>=12?A.afternoon:i>=4?A.morning:A.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return E.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):E.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):x(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):x(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):E.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):E.s(e,t)},S:function(e,t){return E.S(e,t)},X:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return T(o);case"XXXX":case"XX":return M(o);case"XXXXX":case"XXX":default:return M(o,":")}},x:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return T(o);case"xxxx":case"xx":return M(o);case"xxxxx":case"xxx":default:return M(o,":")}},O:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+I(o,":");case"OOOO":default:return"GMT"+M(o,":")}},z:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+I(o,":");case"zzzz":default:return"GMT"+M(o,":")}},t:function(e,t,r,n){var i=n._originalDate||e,o=Math.floor(i.getTime()/1e3);return x(o,t.length)},T:function(e,t,r,n){var i=n._originalDate||e,o=i.getTime();return x(o,t.length)}};function I(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(0===o)return r+String(i);var s=t||"";return r+String(i)+s+x(o,2)}function T(e,t){if(e%60===0){var r=e>0?"-":"+";return r+x(Math.abs(e)/60,2)}return M(e,t)}function M(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),o=x(Math.floor(i/60),2),s=x(i%60,2);return n+o+r+s}var R=O,P=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},D=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},L=function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return P(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;case"PPPP":default:r=t.dateTime({width:"full"});break}return r.replace("{{date}}",P(i,t)).replace("{{time}}",D(o,t))},B={p:D,P:L},N=B,j=r(7641),F=["D","DD"],U=["YY","YYYY"];function z(e){return-1!==F.indexOf(e)}function q(e){return-1!==U.indexOf(e)}function H(e,t,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var $=r(7833),W=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,V=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,X=/^'([^]*?)'?$/,Y=/''/g,G=/[a-zA-Z]/;function J(e,t,r){var n,o,u,h,d,p,f,m,g,v,w,b,_,k,S,x,C,E;(0,i.A)(2,arguments);var A=String(t),O=(0,y.q)(),I=null!==(n=null!==(o=null===r||void 0===r?void 0:r.locale)&&void 0!==o?o:O.locale)&&void 0!==n?n:$.A,T=c(null!==(u=null!==(h=null!==(d=null!==(p=null===r||void 0===r?void 0:r.firstWeekContainsDate)&&void 0!==p?p:null===r||void 0===r||null===(f=r.locale)||void 0===f||null===(m=f.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==d?d:O.firstWeekContainsDate)&&void 0!==h?h:null===(g=O.locale)||void 0===g||null===(v=g.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==u?u:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=c(null!==(w=null!==(b=null!==(_=null!==(k=null===r||void 0===r?void 0:r.weekStartsOn)&&void 0!==k?k:null===r||void 0===r||null===(S=r.locale)||void 0===S||null===(x=S.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==_?_:O.weekStartsOn)&&void 0!==b?b:null===(C=O.locale)||void 0===C||null===(E=C.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==w?w:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var P=(0,s.A)(e);if(!a(P))throw new RangeError("Invalid time value");var D=(0,j.A)(P),L=l(P,D),B={firstWeekContainsDate:T,weekStartsOn:M,locale:I,_originalDate:P},F=A.match(V).map(function(e){var t=e[0];if("p"===t||"P"===t){var r=N[t];return r(e,I.formatLong)}return e}).join("").match(W).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return K(n);var o=R[i];if(o)return null!==r&&void 0!==r&&r.useAdditionalWeekYearTokens||!q(n)||H(n,t,String(e)),null!==r&&void 0!==r&&r.useAdditionalDayOfYearTokens||!z(n)||H(n,t,String(e)),o(L,n,I.localize,B);if(i.match(G))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("");return F}function K(e){var t=e.match(X);return t?t[1].replace(Y,"'"):e}},129:function(e,t,r){"use strict";r.d(t,{A:function(){return E}});var n=r(6017),i=r(5286),o=r(1092);function s(e,t){(0,o.A)(2,arguments);var r=(0,i.A)(e),n=(0,i.A)(t),s=r.getTime()-n.getTime();return s<0?-1:s>0?1:s}function a(e,t){(0,o.A)(2,arguments);var r=(0,i.A)(e),n=(0,i.A)(t),s=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return 12*s+a}function c(e){(0,o.A)(1,arguments);var t=(0,i.A)(e);return t.setHours(23,59,59,999),t}function u(e){(0,o.A)(1,arguments);var t=(0,i.A)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function l(e){(0,o.A)(1,arguments);var t=(0,i.A)(e);return c(t).getTime()===u(t).getTime()}function h(e,t){(0,o.A)(2,arguments);var r,n=(0,i.A)(e),c=(0,i.A)(t),u=s(n,c),h=Math.abs(a(n,c));if(h<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-u*h);var d=s(n,c)===-u;l((0,i.A)(e))&&1===h&&1===s(e,c)&&(d=!1),r=u*(h-Number(d))}return 0===r?0:r}function d(e,t){return(0,o.A)(2,arguments),(0,i.A)(e).getTime()-(0,i.A)(t).getTime()}var p={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},f="trunc";function m(e){return e?p[e]:p[f]}function g(e,t,r){(0,o.A)(2,arguments);var n=d(e,t)/1e3;return m(null===r||void 0===r?void 0:r.roundingMethod)(n)}var v=r(7833);function y(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function w(e){return y({},e)}var b=r(7641),_=1440,k=2520,S=43200,x=86400;function C(e,t,r){var a,c;(0,o.A)(2,arguments);var u=(0,n.q)(),l=null!==(a=null!==(c=null===r||void 0===r?void 0:r.locale)&&void 0!==c?c:u.locale)&&void 0!==a?a:v.A;if(!l.formatDistance)throw new RangeError("locale must contain formatDistance property");var d=s(e,t);if(isNaN(d))throw new RangeError("Invalid time value");var p,f,m=y(w(r),{addSuffix:Boolean(null===r||void 0===r?void 0:r.addSuffix),comparison:d});d>0?(p=(0,i.A)(t),f=(0,i.A)(e)):(p=(0,i.A)(e),f=(0,i.A)(t));var C,E=g(f,p),A=((0,b.A)(f)-(0,b.A)(p))/1e3,O=Math.round((E-A)/60);if(O<2)return null!==r&&void 0!==r&&r.includeSeconds?E<5?l.formatDistance("lessThanXSeconds",5,m):E<10?l.formatDistance("lessThanXSeconds",10,m):E<20?l.formatDistance("lessThanXSeconds",20,m):E<40?l.formatDistance("halfAMinute",0,m):E<60?l.formatDistance("lessThanXMinutes",1,m):l.formatDistance("xMinutes",1,m):0===O?l.formatDistance("lessThanXMinutes",1,m):l.formatDistance("xMinutes",O,m);if(O<45)return l.formatDistance("xMinutes",O,m);if(O<90)return l.formatDistance("aboutXHours",1,m);if(O<_){var I=Math.round(O/60);return l.formatDistance("aboutXHours",I,m)}if(O<k)return l.formatDistance("xDays",1,m);if(O<S){var T=Math.round(O/_);return l.formatDistance("xDays",T,m)}if(O<x)return C=Math.round(O/S),l.formatDistance("aboutXMonths",C,m);if(C=h(f,p),C<12){var M=Math.round(O/S);return l.formatDistance("xMonths",M,m)}var R=C%12,P=Math.floor(C/12);return R<3?l.formatDistance("aboutXYears",P,m):R<9?l.formatDistance("overXYears",P,m):l.formatDistance("almostXYears",P+1,m)}function E(e,t){return(0,o.A)(1,arguments),C(e,Date.now(),t)}},5286:function(e,t,r){"use strict";r.d(t,{A:function(){return o}});var n=r(7545),i=r(1092);function o(e){(0,i.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,n.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},2242:function(e){
18
+ return function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,s=n.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=n.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=n.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]),u=n.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]),l=n.create([0,1518500249,1859775393,2400959708,2840853838]),h=n.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,d,w,b,_,k,S,x,C,E,A,O=this._hash.words,I=l.words,T=h.words,M=s.words,R=a.words,P=c.words,D=u.words;k=o=O[0],S=d=O[1],x=w=O[2],C=b=O[3],E=_=O[4];for(r=0;r<80;r+=1)A=o+e[t+M[r]]|0,A+=r<16?p(d,w,b)+I[0]:r<32?f(d,w,b)+I[1]:r<48?m(d,w,b)+I[2]:r<64?g(d,w,b)+I[3]:v(d,w,b)+I[4],A|=0,A=y(A,P[r]),A=A+_|0,o=_,_=b,b=y(w,10),w=d,d=A,A=k+e[t+R[r]]|0,A+=r<16?v(S,x,C)+T[0]:r<32?g(S,x,C)+T[1]:r<48?m(S,x,C)+T[2]:r<64?f(S,x,C)+T[3]:p(S,x,C)+T[4],A|=0,A=y(A,D[r]),A=A+E|0,k=E,E=C,C=y(x,10),x=S,S=A;A=O[1]+w+C|0,O[1]=O[2]+b+E|0,O[2]=O[3]+_+k|0,O[3]=O[4]+o+S|0,O[4]=O[0]+d+x|0,O[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function f(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function y(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(d),t.HmacRIPEMD160=i._createHmacHelper(d)}(Math),e.RIPEMD160})},648:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,s=[],a=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],c=r[4],u=0;u<80;u++){if(u<16)s[u]=0|e[t+u];else{var l=s[u-3]^s[u-8]^s[u-14]^s[u-16];s[u]=l<<1|l>>>31}var h=(n<<5|n>>>27)+c+s[u];h+=u<20?1518500249+(i&o|~i&a):u<40?1859775393+(i^o^a):u<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,c=a,a=o,o=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(a),t.HmacSHA1=i._createHmacHelper(a)}(),e.SHA1})},8623:function(e,t,r){(function(t,n){e.exports=n(r(518),r(2110))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.algo,o=i.SHA256,s=i.SHA224=o.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=o._createHelper(s),t.HmacSHA224=o._createHmacHelper(s)}(),e.SHA224})},2110:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=[],c=[];(function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}var n=2,i=0;while(i<64)e(n)&&(i<8&&(a[i]=r(t.pow(n,.5))),c[i]=r(t.pow(n,1/3)),i++),n++})();var u=[],l=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],l=r[5],h=r[6],d=r[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var f=u[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=u[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[p]=m+u[p-7]+v+u[p-16]}var y=a&l^~a&h,w=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),k=d+_+y+c[p]+u[p],S=b+w;d=h,h=l,l=a,a=s+k|0,s=o,o=i,i=n,n=k+S|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+l|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(l),r.HmacSHA256=o._createHmacHelper(l)}(Math),e.SHA256})},6882:function(e,t,r){(function(t,n){e.exports=n(r(518),r(5703))})(0,function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.x64,a=s.Word,c=r.algo,u=[],l=[],h=[];(function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var n=t%5,i=(2*e+3*t)%5;e=n,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,s=0;s<24;s++){for(var c=0,d=0,p=0;p<7;p++){if(1&o){var f=(1<<p)-1;f<32?d^=1<<f:c^=1<<f-32}128&o?o=o<<1^113:o<<=1}h[s]=a.create(c,d)}})();var d=[];(function(){for(var e=0;e<25;e++)d[e]=a.create()})();var p=c.SHA3=o.extend({cfg:o.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 r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=e[t+2*i],s=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);var a=r[i];a.high^=s,a.low^=o}for(var c=0;c<24;c++){for(var p=0;p<5;p++){for(var f=0,m=0,g=0;g<5;g++){a=r[p+5*g];f^=a.high,m^=a.low}var v=d[p];v.high=f,v.low=m}for(p=0;p<5;p++){var y=d[(p+4)%5],w=d[(p+1)%5],b=w.high,_=w.low;for(f=y.high^(b<<1|_>>>31),m=y.low^(_<<1|b>>>31),g=0;g<5;g++){a=r[p+5*g];a.high^=f,a.low^=m}}for(var k=1;k<25;k++){a=r[k];var S=a.high,x=a.low,C=u[k];C<32?(f=S<<C|x>>>32-C,m=x<<C|S>>>32-C):(f=x<<C-32|S>>>64-C,m=S<<C-32|x>>>64-C);var E=d[l[k]];E.high=f,E.low=m}var A=d[0],O=r[0];A.high=O.high,A.low=O.low;for(p=0;p<5;p++)for(g=0;g<5;g++){k=p+5*g,a=r[k];var I=d[k],T=d[(p+1)%5+5*g],M=d[(p+2)%5+5*g];a.high=I.high^~T.high&M.high,a.low=I.low^~T.low&M.low}a=r[0];var R=h[c];a.high^=R.high,a.low^=R.low}},_doFinalize:function(){var e=this._data,r=e.words,n=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,c=a/8,u=[],l=0;l<c;l++){var h=s[l],d=h.high,p=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),u.push(p),u.push(d)}return new i.init(u,a)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=o._createHelper(p),r.HmacSHA3=o._createHmacHelper(p)}(Math),e.SHA3})},2078:function(e,t,r){(function(t,n){e.exports=n(r(518),r(5703),r(1759))})(0,function(e){return function(){var t=e,r=t.x64,n=r.Word,i=r.WordArray,o=t.algo,s=o.SHA512,a=o.SHA384=s.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=s._createHelper(a),t.HmacSHA384=s._createHmacHelper(a)}(),e.SHA384})},1759:function(e,t,r){(function(t,n){e.exports=n(r(518),r(5703))})(0,function(e){return function(){var t=e,r=t.lib,n=r.Hasher,i=t.x64,o=i.Word,s=i.WordArray,a=t.algo;function c(){return o.create.apply(o,arguments)}var u=[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)],l=[];(function(){for(var e=0;e<80;e++)l[e]=c()})();var h=a.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],c=r[5],h=r[6],d=r[7],p=n.high,f=n.low,m=i.high,g=i.low,v=o.high,y=o.low,w=s.high,b=s.low,_=a.high,k=a.low,S=c.high,x=c.low,C=h.high,E=h.low,A=d.high,O=d.low,I=p,T=f,M=m,R=g,P=v,D=y,L=w,B=b,N=_,j=k,F=S,U=x,z=C,q=E,H=A,$=O,W=0;W<80;W++){var V,Y,X=l[W];if(W<16)Y=X.high=0|e[t+2*W],V=X.low=0|e[t+2*W+1];else{var J=l[W-15],G=J.high,K=J.low,Z=(G>>>1|K<<31)^(G>>>8|K<<24)^G>>>7,Q=(K>>>1|G<<31)^(K>>>8|G<<24)^(K>>>7|G<<25),ee=l[W-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=l[W-7],se=oe.high,ae=oe.low,ce=l[W-16],ue=ce.high,le=ce.low;V=Q+ae,Y=Z+se+(V>>>0<Q>>>0?1:0),V+=ie,Y=Y+ne+(V>>>0<ie>>>0?1:0),V+=le,Y=Y+ue+(V>>>0<le>>>0?1:0),X.high=Y,X.low=V}var he=N&F^~N&z,de=j&U^~j&q,pe=I&M^I&P^M&P,fe=T&R^T&D^R&D,me=(I>>>28|T<<4)^(I<<30|T>>>2)^(I<<25|T>>>7),ge=(T>>>28|I<<4)^(T<<30|I>>>2)^(T<<25|I>>>7),ve=(N>>>14|j<<18)^(N>>>18|j<<14)^(N<<23|j>>>9),ye=(j>>>14|N<<18)^(j>>>18|N<<14)^(j<<23|N>>>9),we=u[W],be=we.high,_e=we.low,ke=$+ye,Se=H+ve+(ke>>>0<$>>>0?1:0),xe=(ke=ke+de,Se=Se+he+(ke>>>0<de>>>0?1:0),ke=ke+_e,Se=Se+be+(ke>>>0<_e>>>0?1:0),ke=ke+V,Se=Se+Y+(ke>>>0<V>>>0?1:0),ge+fe),Ce=me+pe+(xe>>>0<ge>>>0?1:0);H=z,$=q,z=F,q=U,F=N,U=j,j=B+ke|0,N=L+Se+(j>>>0<B>>>0?1:0)|0,L=P,B=D,P=M,D=R,M=I,R=T,T=ke+xe|0,I=Se+Ce+(T>>>0<ke>>>0?1:0)|0}f=n.low=f+T,n.high=p+I+(f>>>0<T>>>0?1:0),g=i.low=g+R,i.high=m+M+(g>>>0<R>>>0?1:0),y=o.low=y+D,o.high=v+P+(y>>>0<D>>>0?1:0),b=s.low=b+B,s.high=w+L+(b>>>0<B>>>0?1:0),k=a.low=k+j,a.high=_+N+(k>>>0<j>>>0?1:0),x=c.low=x+U,c.high=S+F+(x>>>0<U>>>0?1:0),E=h.low=E+q,h.high=C+z+(E>>>0<q>>>0?1:0),O=d.low=O+$,d.high=A+H+(O>>>0<$>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process();var i=this._hash.toX32();return i},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(h),t.HmacSHA512=n._createHmacHelper(h)}(),e.SHA512})},3865:function(e,t,r){(function(t,n){e.exports=n(r(518),r(2201),r(2989),r(953),r(4768))})(0,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=r.BlockCipher,o=t.algo,s=[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],u=[{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}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=i.extend({_doReset:function(){for(var e=this._key,t=e.words,r=[],n=0;n<56;n++){var i=s[n]-1;r[n]=t[i>>>5]>>>31-i%32&1}for(var o=this._subKeys=[],u=0;u<16;u++){var l=o[u]=[],h=c[u];for(n=0;n<24;n++)l[n/6|0]|=r[(a[n]-1+h)%28]<<31-n%6,l[4+(n/6|0)]|=r[28+(a[n+24]-1+h)%28]<<31-n%6;l[0]=l[0]<<1|l[0]>>>31;for(n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=u[c][((s^i[c])&l[c])>>>0];this._lBlock=s,this._rBlock=o^a}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function p(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}t.DES=i._createHelper(h);var f=o.TripleDES=i.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 r=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),o=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(n.create(r)),this._des2=h.createEncryptor(n.create(i)),this._des3=h.createEncryptor(n.create(o))},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=i._createHelper(f)}(),e.TripleDES})},5703:function(e,t,r){(function(t,n){e.exports=n(r(518))})(0,function(e){return function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,s=r.x64={};s.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=i.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return o.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}})}(),e})},7833:function(e,t,r){"use strict";r.d(t,{A:function(){return W}});var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=function(e,t,r){var i,o=n[e];return i="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i},o=i;function s(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},c={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},u={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:s({formats:a,defaultWidth:"full"}),time:s({formats:c,defaultWidth:"full"}),dateTime:s({formats:u,defaultWidth:"full"})},h=l,d={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},p=function(e,t,r,n){return d[e]},f=p;function m(e){return function(t,r){var n,i=null!==r&&void 0!==r&&r.context?String(r.context):"standalone";if("formatting"===i&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=null!==r&&void 0!==r&&r.width?String(r.width):o;n=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,c=null!==r&&void 0!==r&&r.width?String(r.width):e.defaultWidth;n=e.values[c]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return n[u]}}var g={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},v={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},y={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},w={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},b={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},k=function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},S={ordinalNumber:k,era:m({values:g,defaultWidth:"wide"}),quarter:m({values:v,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:m({values:y,defaultWidth:"wide"}),day:m({values:w,defaultWidth:"wide"}),dayPeriod:m({values:b,defaultWidth:"wide",formattingValues:_,defaultFormattingWidth:"wide"})},x=S;function C(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s,a=o[0],c=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?A(c,function(e){return e.test(a)}):E(c,function(e){return e.test(a)});s=e.valueCallback?e.valueCallback(u):u,s=r.valueCallback?r.valueCallback(s):s;var l=t.slice(a.length);return{value:s,rest:l}}}function E(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function A(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function O(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=r.valueCallback?r.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var I=/^(\d+)(th|st|nd|rd)?/i,T=/\d+/i,M={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},R={any:[/^b/i,/^(a|c)/i]},P={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},D={any:[/1/i,/2/i,/3/i,/4/i]},L={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},B={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},N={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},j={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},F={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},U={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},z={ordinalNumber:O({matchPattern:I,parsePattern:T,valueCallback:function(e){return parseInt(e,10)}}),era:C({matchPatterns:M,defaultMatchWidth:"wide",parsePatterns:R,defaultParseWidth:"any"}),quarter:C({matchPatterns:P,defaultMatchWidth:"wide",parsePatterns:D,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:C({matchPatterns:L,defaultMatchWidth:"wide",parsePatterns:B,defaultParseWidth:"any"}),day:C({matchPatterns:N,defaultMatchWidth:"wide",parsePatterns:j,defaultParseWidth:"any"}),dayPeriod:C({matchPatterns:F,defaultMatchWidth:"any",parsePatterns:U,defaultParseWidth:"any"})},q=z,H={code:"en-US",formatDistance:o,formatLong:h,formatRelative:f,localize:x,match:q,options:{weekStartsOn:0,firstWeekContainsDate:1}},$=H,W=$},6017:function(e,t,r){"use strict";r.d(t,{q:function(){return i}});var n={};function i(){return n}},7641:function(e,t,r){"use strict";function n(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}r.d(t,{A:function(){return n}})},1092:function(e,t,r){"use strict";function n(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{A:function(){return n}})},2775:function(e,t,r){"use strict";r.d(t,{A:function(){return G}});var n=r(7545),i=r(1092);function o(e){return(0,i.A)(1,arguments),e instanceof Date||"object"===(0,n.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}var s=r(5286);function a(e){if((0,i.A)(1,arguments),!o(e)&&"number"!==typeof e)return!1;var t=(0,s.A)(e);return!isNaN(Number(t))}function c(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function u(e,t){(0,i.A)(2,arguments);var r=(0,s.A)(e).getTime(),n=c(t);return new Date(r+n)}function l(e,t){(0,i.A)(2,arguments);var r=c(t);return u(e,-r)}var h=864e5;function d(e){(0,i.A)(1,arguments);var t=(0,s.A)(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),o=r-n;return Math.floor(o/h)+1}function p(e){(0,i.A)(1,arguments);var t=1,r=(0,s.A)(e),n=r.getUTCDay(),o=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-o),r.setUTCHours(0,0,0,0),r}function f(e){(0,i.A)(1,arguments);var t=(0,s.A)(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var o=p(n),a=new Date(0);a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0);var c=p(a);return t.getTime()>=o.getTime()?r+1:t.getTime()>=c.getTime()?r:r-1}function m(e){(0,i.A)(1,arguments);var t=f(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=p(r);return n}var g=6048e5;function v(e){(0,i.A)(1,arguments);var t=(0,s.A)(e),r=p(t).getTime()-m(t).getTime();return Math.round(r/g)+1}var y=r(6017);function w(e,t){var r,n,o,a,u,l,h,d;(0,i.A)(1,arguments);var p=(0,y.q)(),f=c(null!==(r=null!==(n=null!==(o=null!==(a=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==a?a:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:p.weekStartsOn)&&void 0!==n?n:null===(h=p.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==r?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,s.A)(e),g=m.getUTCDay(),v=(g<f?7:0)+g-f;return m.setUTCDate(m.getUTCDate()-v),m.setUTCHours(0,0,0,0),m}function b(e,t){var r,n,o,a,u,l,h,d;(0,i.A)(1,arguments);var p=(0,s.A)(e),f=p.getUTCFullYear(),m=(0,y.q)(),g=c(null!==(r=null!==(n=null!==(o=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:m.firstWeekContainsDate)&&void 0!==n?n:null===(h=m.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==r?r:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(f+1,0,g),v.setUTCHours(0,0,0,0);var b=w(v,t),_=new Date(0);_.setUTCFullYear(f,0,g),_.setUTCHours(0,0,0,0);var k=w(_,t);return p.getTime()>=b.getTime()?f+1:p.getTime()>=k.getTime()?f:f-1}function _(e,t){var r,n,o,s,a,u,l,h;(0,i.A)(1,arguments);var d=(0,y.q)(),p=c(null!==(r=null!==(n=null!==(o=null!==(s=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null===t||void 0===t||null===(a=t.locale)||void 0===a||null===(u=a.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==n?n:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==r?r:1),f=b(e,t),m=new Date(0);m.setUTCFullYear(f,0,p),m.setUTCHours(0,0,0,0);var g=w(m,t);return g}var k=6048e5;function S(e,t){(0,i.A)(1,arguments);var r=(0,s.A)(e),n=w(r,t).getTime()-_(r,t).getTime();return Math.round(n/k)+1}function x(e,t){var r=e<0?"-":"",n=Math.abs(e).toString();while(n.length<t)n="0"+n;return r+n}var C={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return x("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):x(r+1,2)},d:function(e,t){return x(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return x(e.getUTCHours()%12||12,t.length)},H:function(e,t){return x(e.getUTCHours(),t.length)},m:function(e,t){return x(e.getUTCMinutes(),t.length)},s:function(e,t){return x(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,r-3));return x(i,t.length)}},E=C,A={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},O={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return E.y(e,t)},Y:function(e,t,r,n){var i=b(e,n),o=i>0?i:1-i;if("YY"===t){var s=o%100;return x(s,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):x(o,t.length)},R:function(e,t){var r=f(e);return x(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return x(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return x(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return x(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return E.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return x(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var i=S(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):x(i,t.length)},I:function(e,t,r){var n=v(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):x(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):E.d(e,t)},D:function(e,t,r){var n=d(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):x(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return x(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return x(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return x(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours(),i=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,i=e.getUTCHours();switch(n=12===i?A.noon:0===i?A.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,i=e.getUTCHours();switch(n=i>=17?A.evening:i>=12?A.afternoon:i>=4?A.morning:A.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return E.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):E.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):x(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):x(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):E.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):E.s(e,t)},S:function(e,t){return E.S(e,t)},X:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return T(o);case"XXXX":case"XX":return M(o);case"XXXXX":case"XXX":default:return M(o,":")}},x:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return T(o);case"xxxx":case"xx":return M(o);case"xxxxx":case"xxx":default:return M(o,":")}},O:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+I(o,":");case"OOOO":default:return"GMT"+M(o,":")}},z:function(e,t,r,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+I(o,":");case"zzzz":default:return"GMT"+M(o,":")}},t:function(e,t,r,n){var i=n._originalDate||e,o=Math.floor(i.getTime()/1e3);return x(o,t.length)},T:function(e,t,r,n){var i=n._originalDate||e,o=i.getTime();return x(o,t.length)}};function I(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(0===o)return r+String(i);var s=t||"";return r+String(i)+s+x(o,2)}function T(e,t){if(e%60===0){var r=e>0?"-":"+";return r+x(Math.abs(e)/60,2)}return M(e,t)}function M(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),o=x(Math.floor(i/60),2),s=x(i%60,2);return n+o+r+s}var R=O,P=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},D=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},L=function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return P(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;case"PPPP":default:r=t.dateTime({width:"full"});break}return r.replace("{{date}}",P(i,t)).replace("{{time}}",D(o,t))},B={p:D,P:L},N=B,j=r(7641),F=["D","DD"],U=["YY","YYYY"];function z(e){return-1!==F.indexOf(e)}function q(e){return-1!==U.indexOf(e)}function H(e,t,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var $=r(7833),W=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,V=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Y=/^'([^]*?)'?$/,X=/''/g,J=/[a-zA-Z]/;function G(e,t,r){var n,o,u,h,d,p,f,m,g,v,w,b,_,k,S,x,C,E;(0,i.A)(2,arguments);var A=String(t),O=(0,y.q)(),I=null!==(n=null!==(o=null===r||void 0===r?void 0:r.locale)&&void 0!==o?o:O.locale)&&void 0!==n?n:$.A,T=c(null!==(u=null!==(h=null!==(d=null!==(p=null===r||void 0===r?void 0:r.firstWeekContainsDate)&&void 0!==p?p:null===r||void 0===r||null===(f=r.locale)||void 0===f||null===(m=f.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==d?d:O.firstWeekContainsDate)&&void 0!==h?h:null===(g=O.locale)||void 0===g||null===(v=g.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==u?u:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=c(null!==(w=null!==(b=null!==(_=null!==(k=null===r||void 0===r?void 0:r.weekStartsOn)&&void 0!==k?k:null===r||void 0===r||null===(S=r.locale)||void 0===S||null===(x=S.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==_?_:O.weekStartsOn)&&void 0!==b?b:null===(C=O.locale)||void 0===C||null===(E=C.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==w?w:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var P=(0,s.A)(e);if(!a(P))throw new RangeError("Invalid time value");var D=(0,j.A)(P),L=l(P,D),B={firstWeekContainsDate:T,weekStartsOn:M,locale:I,_originalDate:P},F=A.match(V).map(function(e){var t=e[0];if("p"===t||"P"===t){var r=N[t];return r(e,I.formatLong)}return e}).join("").match(W).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return K(n);var o=R[i];if(o)return null!==r&&void 0!==r&&r.useAdditionalWeekYearTokens||!q(n)||H(n,t,String(e)),null!==r&&void 0!==r&&r.useAdditionalDayOfYearTokens||!z(n)||H(n,t,String(e)),o(L,n,I.localize,B);if(i.match(J))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("");return F}function K(e){var t=e.match(Y);return t?t[1].replace(X,"'"):e}},129:function(e,t,r){"use strict";r.d(t,{A:function(){return E}});var n=r(6017),i=r(5286),o=r(1092);function s(e,t){(0,o.A)(2,arguments);var r=(0,i.A)(e),n=(0,i.A)(t),s=r.getTime()-n.getTime();return s<0?-1:s>0?1:s}function a(e,t){(0,o.A)(2,arguments);var r=(0,i.A)(e),n=(0,i.A)(t),s=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return 12*s+a}function c(e){(0,o.A)(1,arguments);var t=(0,i.A)(e);return t.setHours(23,59,59,999),t}function u(e){(0,o.A)(1,arguments);var t=(0,i.A)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function l(e){(0,o.A)(1,arguments);var t=(0,i.A)(e);return c(t).getTime()===u(t).getTime()}function h(e,t){(0,o.A)(2,arguments);var r,n=(0,i.A)(e),c=(0,i.A)(t),u=s(n,c),h=Math.abs(a(n,c));if(h<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-u*h);var d=s(n,c)===-u;l((0,i.A)(e))&&1===h&&1===s(e,c)&&(d=!1),r=u*(h-Number(d))}return 0===r?0:r}function d(e,t){return(0,o.A)(2,arguments),(0,i.A)(e).getTime()-(0,i.A)(t).getTime()}var p={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},f="trunc";function m(e){return e?p[e]:p[f]}function g(e,t,r){(0,o.A)(2,arguments);var n=d(e,t)/1e3;return m(null===r||void 0===r?void 0:r.roundingMethod)(n)}var v=r(7833);function y(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function w(e){return y({},e)}var b=r(7641),_=1440,k=2520,S=43200,x=86400;function C(e,t,r){var a,c;(0,o.A)(2,arguments);var u=(0,n.q)(),l=null!==(a=null!==(c=null===r||void 0===r?void 0:r.locale)&&void 0!==c?c:u.locale)&&void 0!==a?a:v.A;if(!l.formatDistance)throw new RangeError("locale must contain formatDistance property");var d=s(e,t);if(isNaN(d))throw new RangeError("Invalid time value");var p,f,m=y(w(r),{addSuffix:Boolean(null===r||void 0===r?void 0:r.addSuffix),comparison:d});d>0?(p=(0,i.A)(t),f=(0,i.A)(e)):(p=(0,i.A)(e),f=(0,i.A)(t));var C,E=g(f,p),A=((0,b.A)(f)-(0,b.A)(p))/1e3,O=Math.round((E-A)/60);if(O<2)return null!==r&&void 0!==r&&r.includeSeconds?E<5?l.formatDistance("lessThanXSeconds",5,m):E<10?l.formatDistance("lessThanXSeconds",10,m):E<20?l.formatDistance("lessThanXSeconds",20,m):E<40?l.formatDistance("halfAMinute",0,m):E<60?l.formatDistance("lessThanXMinutes",1,m):l.formatDistance("xMinutes",1,m):0===O?l.formatDistance("lessThanXMinutes",1,m):l.formatDistance("xMinutes",O,m);if(O<45)return l.formatDistance("xMinutes",O,m);if(O<90)return l.formatDistance("aboutXHours",1,m);if(O<_){var I=Math.round(O/60);return l.formatDistance("aboutXHours",I,m)}if(O<k)return l.formatDistance("xDays",1,m);if(O<S){var T=Math.round(O/_);return l.formatDistance("xDays",T,m)}if(O<x)return C=Math.round(O/S),l.formatDistance("aboutXMonths",C,m);if(C=h(f,p),C<12){var M=Math.round(O/S);return l.formatDistance("xMonths",M,m)}var R=C%12,P=Math.floor(C/12);return R<3?l.formatDistance("aboutXYears",P,m):R<9?l.formatDistance("overXYears",P,m):l.formatDistance("almostXYears",P+1,m)}function E(e,t){return(0,o.A)(1,arguments),C(e,Date.now(),t)}},5286:function(e,t,r){"use strict";r.d(t,{A:function(){return o}});var n=r(7545),i=r(1092);function o(e){(0,i.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,n.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},2242:function(e){
19
19
  /*!
20
20
  * Pusher JavaScript Library v8.4.0
21
21
  * https://pusher.com/
@@ -23,17 +23,17 @@ return function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,s=n.create([
23
23
  * Copyright 2020, Pusher
24
24
  * Released under the MIT licence.
25
25
  */
26
- (function(t,r){e.exports=r()})(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=256,o=function(){function e(e){void 0===e&&(e="="),this._paddingCharacter=e}return e.prototype.encodedLength=function(e){return this._paddingCharacter?(e+2)/3*4|0:(8*e+5)/6|0},e.prototype.encode=function(e){for(var t="",r=0;r<e.length-2;r+=3){var n=e[r]<<16|e[r+1]<<8|e[r+2];t+=this._encodeByte(n>>>18&63),t+=this._encodeByte(n>>>12&63),t+=this._encodeByte(n>>>6&63),t+=this._encodeByte(n>>>0&63)}var i=e.length-r;if(i>0){n=e[r]<<16|(2===i?e[r+1]<<8:0);t+=this._encodeByte(n>>>18&63),t+=this._encodeByte(n>>>12&63),t+=2===i?this._encodeByte(n>>>6&63):this._paddingCharacter||"",t+=this._paddingCharacter||""}return t},e.prototype.maxDecodedLength=function(e){return this._paddingCharacter?e/4*3|0:(6*e+7)/8|0},e.prototype.decodedLength=function(e){return this.maxDecodedLength(e.length-this._getPaddingLength(e))},e.prototype.decode=function(e){if(0===e.length)return new Uint8Array(0);for(var t=this._getPaddingLength(e),r=e.length-t,n=new Uint8Array(this.maxDecodedLength(r)),o=0,s=0,a=0,c=0,u=0,l=0,h=0;s<r-4;s+=4)c=this._decodeChar(e.charCodeAt(s+0)),u=this._decodeChar(e.charCodeAt(s+1)),l=this._decodeChar(e.charCodeAt(s+2)),h=this._decodeChar(e.charCodeAt(s+3)),n[o++]=c<<2|u>>>4,n[o++]=u<<4|l>>>2,n[o++]=l<<6|h,a|=c&i,a|=u&i,a|=l&i,a|=h&i;if(s<r-1&&(c=this._decodeChar(e.charCodeAt(s)),u=this._decodeChar(e.charCodeAt(s+1)),n[o++]=c<<2|u>>>4,a|=c&i,a|=u&i),s<r-2&&(l=this._decodeChar(e.charCodeAt(s+2)),n[o++]=u<<4|l>>>2,a|=l&i),s<r-3&&(h=this._decodeChar(e.charCodeAt(s+3)),n[o++]=l<<6|h,a|=h&i),0!==a)throw new Error("Base64Coder: incorrect characters for decoding");return n},e.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-15,t+=62-e>>>8&3,String.fromCharCode(t)},e.prototype._decodeChar=function(e){var t=i;return t+=(42-e&e-44)>>>8&-i+e-43+62,t+=(46-e&e-48)>>>8&-i+e-47+63,t+=(47-e&e-58)>>>8&-i+e-48+52,t+=(64-e&e-91)>>>8&-i+e-65+0,t+=(96-e&e-123)>>>8&-i+e-97+26,t},e.prototype._getPaddingLength=function(e){var t=0;if(this._paddingCharacter){for(var r=e.length-1;r>=0;r--){if(e[r]!==this._paddingCharacter)break;t++}if(e.length<4||t>2)throw new Error("Base64Coder: incorrect padding")}return t},e}();t.Coder=o;var s=new o;function a(e){return s.encode(e)}function c(e){return s.decode(e)}t.encode=a,t.decode=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-13,t+=62-e>>>8&49,String.fromCharCode(t)},t.prototype._decodeChar=function(e){var t=i;return t+=(44-e&e-46)>>>8&-i+e-45+62,t+=(94-e&e-96)>>>8&-i+e-95+63,t+=(47-e&e-58)>>>8&-i+e-48+52,t+=(64-e&e-91)>>>8&-i+e-65+0,t+=(96-e&e-123)>>>8&-i+e-97+26,t},t}(o);t.URLSafeCoder=u;var l=new u;function h(e){return l.encode(e)}function d(e){return l.decode(e)}t.encodeURLSafe=h,t.decodeURLSafe=d,t.encodedLength=function(e){return s.encodedLength(e)},t.maxDecodedLength=function(e){return s.maxDecodedLength(e)},t.decodedLength=function(e){return s.decodedLength(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="utf8: invalid string",i="utf8: invalid source encoding";function o(e){for(var t=new Uint8Array(s(e)),r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t[r++]=i:i<2048?(t[r++]=192|i>>6,t[r++]=128|63&i):i<55296?(t[r++]=224|i>>12,t[r++]=128|i>>6&63,t[r++]=128|63&i):(n++,i=(1023&i)<<10,i|=1023&e.charCodeAt(n),i+=65536,t[r++]=240|i>>18,t[r++]=128|i>>12&63,t[r++]=128|i>>6&63,t[r++]=128|63&i)}return t}function s(e){for(var t=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i<128)t+=1;else if(i<2048)t+=2;else if(i<55296)t+=3;else{if(!(i<=57343))throw new Error(n);if(r>=e.length-1)throw new Error(n);r++,t+=4}}return t}function a(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(128&n){var o=void 0;if(n<224){if(r>=e.length)throw new Error(i);var s=e[++r];if(128!==(192&s))throw new Error(i);n=(31&n)<<6|63&s,o=128}else if(n<240){if(r>=e.length-1)throw new Error(i);s=e[++r];var a=e[++r];if(128!==(192&s)||128!==(192&a))throw new Error(i);n=(15&n)<<12|(63&s)<<6|63&a,o=2048}else{if(!(n<248))throw new Error(i);if(r>=e.length-2)throw new Error(i);s=e[++r],a=e[++r];var c=e[++r];if(128!==(192&s)||128!==(192&a)||128!==(192&c))throw new Error(i);n=(15&n)<<18|(63&s)<<12|(63&a)<<6|63&c,o=65536}if(n<o||n>=55296&&n<=57343)throw new Error(i);if(n>=65536){if(n>1114111)throw new Error(i);n-=65536,t.push(String.fromCharCode(55296|n>>10)),n=56320|1023&n}}t.push(String.fromCharCode(n))}return t.join("")}t.encode=o,t.encodedLength=s,t.decode=a},function(e,t,r){e.exports=r(3).default},function(e,t,r){"use strict";r.r(t);class n{constructor(e,t){this.lastId=0,this.prefix=e,this.name=t}create(e){this.lastId++;var t=this.lastId,r=this.prefix+t,n=this.name+"["+t+"]",i=!1,o=function(){i||(e.apply(null,arguments),i=!0)};return this[t]=o,{number:t,id:r,name:n,callback:o}}remove(e){delete this[e.number]}}var i=new n("_pusher_script_","Pusher.ScriptReceivers"),o={VERSION:"8.4.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},s=o;class a{constructor(e){this.options=e,this.receivers=e.receivers||i,this.loading={}}load(e,t,r){var n=this;if(n.loading[e]&&n.loading[e].length>0)n.loading[e].push(r);else{n.loading[e]=[r];var i=Kt.createScriptRequest(n.getPath(e,t)),o=n.receivers.create(function(t){if(n.receivers.remove(o),n.loading[e]){var r=n.loading[e];delete n.loading[e];for(var s=function(e){e||i.cleanup()},a=0;a<r.length;a++)r[a](t,s)}});i.send(o)}}getRoot(e){var t,r=Kt.getDocument().location.protocol;return t=e&&e.useTLS||"https:"===r?this.options.cdn_https:this.options.cdn_http,t.replace(/\/*$/,"")+"/"+this.options.version}getPath(e,t){return this.getRoot(t)+"/"+e+this.options.suffix+".js"}}var c=new n("_pusher_dependencies","Pusher.DependenciesReceivers"),u=new a({cdn_http:s.cdn_http,cdn_https:s.cdn_https,version:s.VERSION,suffix:s.dependency_suffix,receivers:c});const l={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}},h=function(e){const t="See:",r=l.urls[e];if(!r)return"";let n;return r.fullUrl?n=r.fullUrl:r.path&&(n=l.baseUrl+r.path),n?`${t} ${n}`:""};var d,p={buildLogSuffix:h};(function(e){e["UserAuthentication"]="user-authentication",e["ChannelAuthorization"]="channel-authorization"})(d||(d={}));class f extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class m extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class g extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class v extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class y extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class w extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class b extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class k extends Error{constructor(e,t){super(t),this.status=e,Object.setPrototypeOf(this,new.target.prototype)}}const S=function(e,t,r,n,i){const o=Kt.createXHR();for(var s in o.open("POST",r.endpoint,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.headers)o.setRequestHeader(s,r.headers[s]);if(null!=r.headersProvider){let e=r.headersProvider();for(var s in e)o.setRequestHeader(s,e[s])}return o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status){let t,r=!1;try{t=JSON.parse(o.responseText),r=!0}catch(e){i(new k(200,`JSON returned from ${n.toString()} endpoint was invalid, yet status code was 200. Data was: ${o.responseText}`),null)}r&&i(null,t)}else{let e="";switch(n){case d.UserAuthentication:e=p.buildLogSuffix("authenticationEndpoint");break;case d.ChannelAuthorization:e=`Clients must be authorized to join private or presence channels. ${p.buildLogSuffix("authorizationEndpoint")}`;break}i(new k(o.status,`Unable to retrieve auth string from ${n.toString()} endpoint - received status: ${o.status} from ${r.endpoint}. ${e}`),null)}},o.send(t),o};var x=S;function C(e){return D(R(e))}for(var E=String.fromCharCode,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O={},I=0,T=A.length;I<T;I++)O[A.charAt(I)]=I;var M=function(e){var t=e.charCodeAt(0);return t<128?e:t<2048?E(192|t>>>6)+E(128|63&t):E(224|t>>>12&15)+E(128|t>>>6&63)+E(128|63&t)},R=function(e){return e.replace(/[^\x00-\x7F]/g,M)},P=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),n=[A.charAt(r>>>18),A.charAt(r>>>12&63),t>=2?"=":A.charAt(r>>>6&63),t>=1?"=":A.charAt(63&r)];return n.join("")},D=window.btoa||function(e){return e.replace(/[\s\S]{1,3}/g,P)};class L{constructor(e,t,r,n){this.clear=t,this.timer=e(()=>{this.timer&&(this.timer=n(this.timer))},r)}isRunning(){return null!==this.timer}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var B=L;function N(e){window.clearTimeout(e)}function j(e){window.clearInterval(e)}class F extends B{constructor(e,t){super(setTimeout,N,e,function(e){return t(),null})}}class U extends B{constructor(e,t){super(setInterval,j,e,function(e){return t(),e})}}var z={now(){return Date.now?Date.now():(new Date).valueOf()},defer(e){return new F(0,e)},method(e,...t){var r=Array.prototype.slice.call(arguments,1);return function(t){return t[e].apply(t,r.concat(arguments))}}},q=z;function H(e,...t){for(var r=0;r<t.length;r++){var n=t[r];for(var i in n)n[i]&&n[i].constructor&&n[i].constructor===Object?e[i]=H(e[i]||{},n[i]):e[i]=n[i]}return e}function $(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"===typeof arguments[t]?e.push(arguments[t]):e.push(se(arguments[t]));return e.join(" : ")}function W(e,t){var r=Array.prototype.indexOf;if(null===e)return-1;if(r&&e.indexOf===r)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}function V(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t(e[r],r,e)}function X(e){var t=[];return V(e,function(e,r){t.push(r)}),t}function Y(e){var t=[];return V(e,function(e){t.push(e)}),t}function G(e,t,r){for(var n=0;n<e.length;n++)t.call(r||window,e[n],n,e)}function J(e,t){for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n,e,r));return r}function K(e,t){var r={};return V(e,function(e,n){r[n]=t(e)}),r}function Z(e,t){t=t||function(e){return!!e};for(var r=[],n=0;n<e.length;n++)t(e[n],n,e,r)&&r.push(e[n]);return r}function Q(e,t){var r={};return V(e,function(n,i){(t&&t(n,i,e,r)||Boolean(n))&&(r[i]=n)}),r}function ee(e){var t=[];return V(e,function(e,r){t.push([r,e])}),t}function te(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return!0;return!1}function re(e,t){for(var r=0;r<e.length;r++)if(!t(e[r],r,e))return!1;return!0}function ne(e){return K(e,function(e){return"object"===typeof e&&(e=se(e)),encodeURIComponent(C(e.toString()))})}function ie(e){var t=Q(e,function(e){return void 0!==e}),r=J(ee(ne(t)),q.method("join","=")).join("&");return r}function oe(e){var t=[],r=[];return function e(n,i){var o,s,a;switch(typeof n){case"object":if(!n)return null;for(o=0;o<t.length;o+=1)if(t[o]===n)return{$ref:r[o]};if(t.push(n),r.push(i),"[object Array]"===Object.prototype.toString.apply(n))for(a=[],o=0;o<n.length;o+=1)a[o]=e(n[o],i+"["+o+"]");else for(s in a={},n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=e(n[s],i+"["+JSON.stringify(s)+"]"));return a;case"number":case"string":case"boolean":return n}}(e,"$")}function se(e){try{return JSON.stringify(e)}catch(t){return JSON.stringify(oe(e))}}class ae{constructor(){this.globalLog=e=>{window.console&&window.console.log&&window.console.log(e)}}debug(...e){this.log(this.globalLog,e)}warn(...e){this.log(this.globalLogWarn,e)}error(...e){this.log(this.globalLogError,e)}globalLogWarn(e){window.console&&window.console.warn?window.console.warn(e):this.globalLog(e)}globalLogError(e){window.console&&window.console.error?window.console.error(e):this.globalLogWarn(e)}log(e,...t){var r=$.apply(this,arguments);if(Ar.log)Ar.log(r);else if(Ar.logToConsole){const t=e.bind(this);t(r)}}}var ce=new ae,ue=function(e,t,r,n,i){void 0===r.headers&&null==r.headersProvider||ce.warn(`To send headers with the ${n.toString()} request, you must use AJAX, rather than JSONP.`);var o=e.nextAuthCallbackID.toString();e.nextAuthCallbackID++;var s=e.getDocument(),a=s.createElement("script");e.auth_callbacks[o]=function(e){i(null,e)};var c="Pusher.auth_callbacks['"+o+"']";a.src=r.endpoint+"?callback="+encodeURIComponent(c)+"&"+t;var u=s.getElementsByTagName("head")[0]||s.documentElement;u.insertBefore(a,u.firstChild)},le=ue;class he{constructor(e){this.src=e}send(e){var t=this,r="Error loading "+t.src;t.script=document.createElement("script"),t.script.id=e.id,t.script.src=t.src,t.script.type="text/javascript",t.script.charset="UTF-8",t.script.addEventListener?(t.script.onerror=function(){e.callback(r)},t.script.onload=function(){e.callback(null)}):t.script.onreadystatechange=function(){"loaded"!==t.script.readyState&&"complete"!==t.script.readyState||e.callback(null)},void 0===t.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(t.errorScript=document.createElement("script"),t.errorScript.id=e.id+"_error",t.errorScript.text=e.name+"('"+r+"');",t.script.async=t.errorScript.async=!1):t.script.async=!0;var n=document.getElementsByTagName("head")[0];n.insertBefore(t.script,n.firstChild),t.errorScript&&n.insertBefore(t.errorScript,t.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class de{constructor(e,t){this.url=e,this.data=t}send(e){if(!this.request){var t=ie(this.data),r=this.url+"/"+e.number+"?"+t;this.request=Kt.createScriptRequest(r),this.request.send(e)}}cleanup(){this.request&&this.request.cleanup()}}var pe=function(e,t){return function(r,n){var o="http"+(t?"s":"")+"://",s=o+(e.host||e.options.host)+e.options.path,a=Kt.createJSONPRequest(s,r),c=Kt.ScriptReceivers.create(function(t,r){i.remove(c),a.cleanup(),r&&r.host&&(e.host=r.host),n&&n(t,r)});a.send(c)}},fe={name:"jsonp",getAgent:pe},me=fe;function ge(e,t,r){var n=e+(t.useTLS?"s":""),i=t.useTLS?t.hostTLS:t.hostNonTLS;return n+"://"+i+r}function ve(e,t){var r="/app/"+e,n="?protocol="+s.PROTOCOL+"&client=js&version="+s.VERSION+(t?"&"+t:"");return r+n}var ye={getInitial:function(e,t){var r=(t.httpPath||"")+ve(e,"flash=false");return ge("ws",t,r)}},we={getInitial:function(e,t){var r=(t.httpPath||"/pusher")+ve(e);return ge("http",t,r)}},be={getInitial:function(e,t){return ge("http",t,t.httpPath||"/pusher")},getPath:function(e,t){return ve(e)}};class _e{constructor(){this._callbacks={}}get(e){return this._callbacks[ke(e)]}add(e,t,r){var n=ke(e);this._callbacks[n]=this._callbacks[n]||[],this._callbacks[n].push({fn:t,context:r})}remove(e,t,r){if(e||t||r){var n=e?[ke(e)]:X(this._callbacks);t||r?this.removeCallback(n,t,r):this.removeAllCallbacks(n)}else this._callbacks={}}removeCallback(e,t,r){G(e,function(e){this._callbacks[e]=Z(this._callbacks[e]||[],function(e){return t&&t!==e.fn||r&&r!==e.context}),0===this._callbacks[e].length&&delete this._callbacks[e]},this)}removeAllCallbacks(e){G(e,function(e){delete this._callbacks[e]},this)}}function ke(e){return"_"+e}class Se{constructor(e){this.callbacks=new _e,this.global_callbacks=[],this.failThrough=e}bind(e,t,r){return this.callbacks.add(e,t,r),this}bind_global(e){return this.global_callbacks.push(e),this}unbind(e,t,r){return this.callbacks.remove(e,t,r),this}unbind_global(e){return e?(this.global_callbacks=Z(this.global_callbacks||[],t=>t!==e),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(e,t,r){for(var n=0;n<this.global_callbacks.length;n++)this.global_callbacks[n](e,t);var i=this.callbacks.get(e),o=[];if(r?o.push(t,r):t&&o.push(t),i&&i.length>0)for(n=0;n<i.length;n++)i[n].fn.apply(i[n].context||window,o);else this.failThrough&&this.failThrough(e,t);return this}}class xe extends Se{constructor(e,t,r,n,i){super(),this.initialize=Kt.transportConnectionInitializer,this.hooks=e,this.name=t,this.priority=r,this.key=n,this.options=i,this.state="new",this.timeline=i.timeline,this.activityTimeout=i.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return Boolean(this.hooks.handlesActivityChecks)}supportsPing(){return Boolean(this.hooks.supportsPing)}connect(){if(this.socket||"initialized"!==this.state)return!1;var e=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(e,this.options)}catch(t){return q.defer(()=>{this.onError(t),this.changeState("closed")}),!1}return this.bindListeners(),ce.debug("Connecting",{transport:this.name,url:e}),this.changeState("connecting"),!0}close(){return!!this.socket&&(this.socket.close(),!0)}send(e){return"open"===this.state&&(q.defer(()=>{this.socket&&this.socket.send(e)}),!0)}ping(){"open"===this.state&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))}onClose(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(e){this.emit("message",e)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=e=>{this.onError(e)},this.socket.onclose=e=>{this.onClose(e)},this.socket.onmessage=e=>{this.onMessage(e)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(e,t){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:t})),this.emit(e,t)}buildTimelineMessage(e){return H({cid:this.id},e)}}class Ce{constructor(e){this.hooks=e}isSupported(e){return this.hooks.isSupported(e)}createConnection(e,t,r,n){return new xe(this.hooks,e,t,r,n)}}var Ee=new Ce({urls:ye,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return Boolean(Kt.getWebSocketAPI())},isSupported:function(){return Boolean(Kt.getWebSocketAPI())},getSocket:function(e){return Kt.createWebSocket(e)}}),Ae={urls:we,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Oe=H({getSocket:function(e){return Kt.HTTPFactory.createStreamingSocket(e)}},Ae),Ie=H({getSocket:function(e){return Kt.HTTPFactory.createPollingSocket(e)}},Ae),Te={isSupported:function(){return Kt.isXHRSupported()}},Me=new Ce(H({},Oe,Te)),Re=new Ce(H({},Ie,Te)),Pe={ws:Ee,xhr_streaming:Me,xhr_polling:Re},De=Pe,Le=new Ce({file:"sockjs",urls:be,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(e,t){return new window.SockJS(e,null,{js_path:u.getPath("sockjs",{useTLS:t.useTLS}),ignore_null_origin:t.ignoreNullOrigin})},beforeOpen:function(e,t){e.send(JSON.stringify({path:t}))}}),Be={isSupported:function(e){var t=Kt.isXDRSupported(e.useTLS);return t}},Ne=new Ce(H({},Oe,Be)),je=new Ce(H({},Ie,Be));De.xdr_streaming=Ne,De.xdr_polling=je,De.sockjs=Le;var Fe=De;class Ue extends Se{constructor(){super();var e=this;void 0!==window.addEventListener&&(window.addEventListener("online",function(){e.emit("online")},!1),window.addEventListener("offline",function(){e.emit("offline")},!1))}isOnline(){return void 0===window.navigator.onLine||window.navigator.onLine}}var ze=new Ue;class qe{constructor(e,t,r){this.manager=e,this.transport=t,this.minPingDelay=r.minPingDelay,this.maxPingDelay=r.maxPingDelay,this.pingDelay=void 0}createConnection(e,t,r,n){n=H({},n,{activityTimeout:this.pingDelay});var i=this.transport.createConnection(e,t,r,n),o=null,s=function(){i.unbind("open",s),i.bind("closed",a),o=q.now()},a=e=>{if(i.unbind("closed",a),1002===e.code||1003===e.code)this.manager.reportDeath();else if(!e.wasClean&&o){var t=q.now()-o;t<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(t/2,this.minPingDelay))}};return i.bind("open",s),i}isSupported(e){return this.manager.isAlive()&&this.transport.isSupported(e)}}const He={decodeMessage:function(e){try{var t=JSON.parse(e.data),r=t.data;if("string"===typeof r)try{r=JSON.parse(t.data)}catch(i){}var n={event:t.event,channel:t.channel,data:r};return t.user_id&&(n.user_id=t.user_id),n}catch(i){throw{type:"MessageParseError",error:i,data:e.data}}},encodeMessage:function(e){return JSON.stringify(e)},processHandshake:function(e){var t=He.decodeMessage(e);if("pusher:connection_established"===t.event){if(!t.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:t.data.socket_id,activityTimeout:1e3*t.data.activity_timeout}}if("pusher:error"===t.event)return{action:this.getCloseAction(t.data),error:this.getCloseError(t.data)};throw"Invalid handshake"},getCloseAction:function(e){return e.code<4e3?e.code>=1002&&e.code<=1004?"backoff":null:4e3===e.code?"tls_only":e.code<4100?"refused":e.code<4200?"backoff":e.code<4300?"retry":"refused"},getCloseError:function(e){return 1e3!==e.code&&1001!==e.code?{type:"PusherError",data:{code:e.code,message:e.reason||e.message}}:null}};var $e=He;class We extends Se{constructor(e,t){super(),this.id=e,this.transport=t,this.activityTimeout=t.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(e){return this.transport.send(e)}send_event(e,t,r){var n={event:e,data:t};return r&&(n.channel=r),ce.debug("Event sent",n),this.send($e.encodeMessage(n))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var e={message:e=>{var t;try{t=$e.decodeMessage(e)}catch(r){this.emit("error",{type:"MessageParseError",error:r,data:e.data})}if(void 0!==t){switch(ce.debug("Event recd",t),t.event){case"pusher:error":this.emit("error",{type:"PusherError",data:t.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",t)}},activity:()=>{this.emit("activity")},error:e=>{this.emit("error",e)},closed:e=>{t(),e&&e.code&&this.handleCloseEvent(e),this.transport=null,this.emit("closed")}},t=()=>{V(e,(e,t)=>{this.transport.unbind(t,e)})};V(e,(e,t)=>{this.transport.bind(t,e)})}handleCloseEvent(e){var t=$e.getCloseAction(e),r=$e.getCloseError(e);r&&this.emit("error",r),t&&this.emit(t,{action:t,error:r})}}class Ve{constructor(e,t){this.transport=e,this.callback=t,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=e=>{var t;this.unbindListeners();try{t=$e.processHandshake(e)}catch(r){return this.finish("error",{error:r}),void this.transport.close()}"connected"===t.action?this.finish("connected",{connection:new We(t.id,this.transport),activityTimeout:t.activityTimeout}):(this.finish(t.action,{error:t.error}),this.transport.close())},this.onClosed=e=>{this.unbindListeners();var t=$e.getCloseAction(e)||"backoff",r=$e.getCloseError(e);this.finish(t,{error:r})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(e,t){this.callback(H({transport:this.transport,action:e},t))}}class Xe{constructor(e,t){this.timeline=e,this.options=t||{}}send(e,t){this.timeline.isEmpty()||this.timeline.send(Kt.TimelineTransport.getAgent(this,e),t)}}class Ye extends Se{constructor(e,t){super(function(t,r){ce.debug("No callbacks on "+e+" for "+t)}),this.name=e,this.pusher=t,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(e,t){return t(null,{auth:""})}trigger(e,t){if(0!==e.indexOf("client-"))throw new f("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var r=p.buildLogSuffix("triggeringClientEvents");ce.warn(`Client event triggered before channel 'subscription_succeeded' event . ${r}`)}return this.pusher.send_event(e,t,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(e){var t=e.event,r=e.data;if("pusher_internal:subscription_succeeded"===t)this.handleSubscriptionSucceededEvent(e);else if("pusher_internal:subscription_count"===t)this.handleSubscriptionCountEvent(e);else if(0!==t.indexOf("pusher_internal:")){var n={};this.emit(t,r,n)}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)}handleSubscriptionCountEvent(e){e.data.subscription_count&&(this.subscriptionCount=e.data.subscription_count),this.emit("pusher:subscription_count",e.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(e,t)=>{e?(this.subscriptionPending=!1,ce.error(e.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof k?{status:e.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:t.auth,channel_data:t.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class Ge extends Ye{authorize(e,t){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:e},t)}}class Je{constructor(){this.reset()}get(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null}each(e){V(this.members,(t,r)=>{e(this.get(r))})}setMyID(e){this.myID=e}onSubscription(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)}addMember(e){return null===this.get(e.user_id)&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)}removeMember(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var Ke=function(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{c(n.next(e))}catch(t){o(t)}}function a(e){try{c(n["throw"](e))}catch(t){o(t)}}function c(e){e.done?r(e.value):i(e.value).then(s,a)}c((n=n.apply(e,t||[])).next())})};class Ze extends Ge{constructor(e,t){super(e,t),this.members=new Je}authorize(e,t){super.authorize(e,(e,r)=>Ke(this,void 0,void 0,function*(){if(!e)if(null!=r.channel_data){var n=JSON.parse(r.channel_data);this.members.setMyID(n.user_id)}else{if(yield this.pusher.user.signinDonePromise,null==this.pusher.user.user_data){let e=p.buildLogSuffix("authorizationEndpoint");return ce.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${e}, or the user should be signed in.`),void t("Invalid auth response")}this.members.setMyID(this.pusher.user.user_data.id)}t(e,r)}))}handleEvent(e){var t=e.event;if(0===t.indexOf("pusher_internal:"))this.handleInternalEvent(e);else{var r=e.data,n={};e.user_id&&(n.user_id=e.user_id),this.emit(t,r,n)}}handleInternalEvent(e){var t=e.event,r=e.data;switch(t){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(e);break;case"pusher_internal:member_added":var n=this.members.addMember(r);this.emit("pusher:member_added",n);break;case"pusher_internal:member_removed":var i=this.members.removeMember(r);i&&this.emit("pusher:member_removed",i);break}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var Qe=r(1),et=r(0);class tt extends Ge{constructor(e,t,r){super(e,t),this.key=null,this.nacl=r}authorize(e,t){super.authorize(e,(e,r)=>{if(e)return void t(e,r);let n=r["shared_secret"];n?(this.key=Object(et["decode"])(n),delete r["shared_secret"],t(null,r)):t(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null)})}trigger(e,t){throw new w("Client events are not currently supported for encrypted channels")}handleEvent(e){var t=e.event,r=e.data;0!==t.indexOf("pusher_internal:")&&0!==t.indexOf("pusher:")?this.handleEncryptedEvent(t,r):super.handleEvent(e)}handleEncryptedEvent(e,t){if(!this.key)return void ce.debug("Received encrypted event before key has been retrieved from the authEndpoint");if(!t.ciphertext||!t.nonce)return void ce.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+t);let r=Object(et["decode"])(t.ciphertext);if(r.length<this.nacl.secretbox.overheadLength)return void ce.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${r.length}`);let n=Object(et["decode"])(t.nonce);if(n.length<this.nacl.secretbox.nonceLength)return void ce.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${n.length}`);let i=this.nacl.secretbox.open(r,n,this.key);if(null===i)return ce.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),void this.authorize(this.pusher.connection.socket_id,(t,o)=>{t?ce.error(`Failed to make a request to the authEndpoint: ${o}. Unable to fetch new key, so dropping encrypted event`):(i=this.nacl.secretbox.open(r,n,this.key),null!==i?this.emit(e,this.getDataToEmit(i)):ce.error("Failed to decrypt event with new key. Dropping encrypted event"))});this.emit(e,this.getDataToEmit(i))}getDataToEmit(e){let t=Object(Qe["decode"])(e);try{return JSON.parse(t)}catch(r){return t}}}class rt extends Se{constructor(e,t){super(),this.state="initialized",this.connection=null,this.key=e,this.options=t,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var r=Kt.getNetwork();r.bind("online",()=>{this.timeline.info({netinfo:"online"}),"connecting"!==this.state&&"unavailable"!==this.state||this.retryIn(0)}),r.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){this.connection||this.runner||(this.strategy.isSupported()?(this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()):this.updateState("failed"))}send(e){return!!this.connection&&this.connection.send(e)}send_event(e,t,r){return!!this.connection&&this.connection.send_event(e,t,r)}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var e=(t,r)=>{t?this.runner=this.strategy.connect(0,e):"error"===r.action?(this.emit("error",{type:"HandshakeError",error:r.error}),this.timeline.error({handshakeError:r.error})):(this.abortConnecting(),this.handshakeCallbacks[r.action](r))};this.runner=this.strategy.connect(0,e)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var e=this.abandonConnection();e.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(e){this.timeline.info({action:"retry",delay:e}),e>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new F(e||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new F(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new F(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new F(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(e){return H({},e,{message:e=>{this.resetActivityCheck(),this.emit("message",e)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:e=>{this.emit("error",e)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(e){return H({},e,{connected:e=>{this.activityTimeout=Math.min(this.options.activityTimeout,e.activityTimeout,e.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(e.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let e=e=>t=>{t.error&&this.emit("error",{type:"WebSocketError",error:t.error}),e(t)};return{tls_only:e(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:e(()=>{this.disconnect()}),backoff:e(()=>{this.retryIn(1e3)}),retry:e(()=>{this.retryIn(0)})}}setConnection(e){for(var t in this.connection=e,this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()}abandonConnection(){if(this.connection){for(var e in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}}updateState(e,t){var r=this.state;if(this.state=e,r!==e){var n=e;"connected"===n&&(n+=" with new socket ID "+t.socket_id),ce.debug("State changed",r+" -> "+n),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:r,current:e}),this.emit(e,t)}}shouldRetry(){return"connecting"===this.state||"connected"===this.state}}class nt{constructor(){this.channels={}}add(e,t){return this.channels[e]||(this.channels[e]=it(e,t)),this.channels[e]}all(){return Y(this.channels)}find(e){return this.channels[e]}remove(e){var t=this.channels[e];return delete this.channels[e],t}disconnect(){V(this.channels,function(e){e.disconnect()})}}function it(e,t){if(0===e.indexOf("private-encrypted-")){if(t.config.nacl)return st.createEncryptedChannel(e,t,t.config.nacl);let r="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",n=p.buildLogSuffix("encryptedChannelSupport");throw new w(`${r}. ${n}`)}if(0===e.indexOf("private-"))return st.createPrivateChannel(e,t);if(0===e.indexOf("presence-"))return st.createPresenceChannel(e,t);if(0===e.indexOf("#"))throw new m('Cannot create a channel with name "'+e+'".');return st.createChannel(e,t)}var ot={createChannels(){return new nt},createConnectionManager(e,t){return new rt(e,t)},createChannel(e,t){return new Ye(e,t)},createPrivateChannel(e,t){return new Ge(e,t)},createPresenceChannel(e,t){return new Ze(e,t)},createEncryptedChannel(e,t,r){return new tt(e,t,r)},createTimelineSender(e,t){return new Xe(e,t)},createHandshake(e,t){return new Ve(e,t)},createAssistantToTheTransportManager(e,t,r){return new qe(e,t,r)}},st=ot;class at{constructor(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}getAssistant(e){return st.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class ct{constructor(e,t){this.strategies=e,this.loop=Boolean(t.loop),this.failFast=Boolean(t.failFast),this.timeout=t.timeout,this.timeoutLimit=t.timeoutLimit}isSupported(){return te(this.strategies,q.method("isSupported"))}connect(e,t){var r=this.strategies,n=0,i=this.timeout,o=null,s=(a,c)=>{c?t(null,c):(n+=1,this.loop&&(n%=r.length),n<r.length?(i&&(i*=2,this.timeoutLimit&&(i=Math.min(i,this.timeoutLimit))),o=this.tryStrategy(r[n],e,{timeout:i,failFast:this.failFast},s)):t(!0))};return o=this.tryStrategy(r[n],e,{timeout:i,failFast:this.failFast},s),{abort:function(){o.abort()},forceMinPriority:function(t){e=t,o&&o.forceMinPriority(t)}}}tryStrategy(e,t,r,n){var i=null,o=null;return r.timeout>0&&(i=new F(r.timeout,function(){o.abort(),n(!0)})),o=e.connect(t,function(e,t){e&&i&&i.isRunning()&&!r.failFast||(i&&i.ensureAborted(),n(e,t))}),{abort:function(){i&&i.ensureAborted(),o.abort()},forceMinPriority:function(e){o.forceMinPriority(e)}}}}class ut{constructor(e){this.strategies=e}isSupported(){return te(this.strategies,q.method("isSupported"))}connect(e,t){return lt(this.strategies,e,function(e,r){return function(n,i){r[e].error=n,n?ht(r)&&t(!0):(G(r,function(e){e.forceMinPriority(i.transport.priority)}),t(null,i))}})}}function lt(e,t,r){var n=J(e,function(e,n,i,o){return e.connect(t,r(n,o))});return{abort:function(){G(n,dt)},forceMinPriority:function(e){G(n,function(t){t.forceMinPriority(e)})}}}function ht(e){return re(e,function(e){return Boolean(e.error)})}function dt(e){e.error||e.aborted||(e.abort(),e.aborted=!0)}class pt{constructor(e,t,r){this.strategy=e,this.transports=t,this.ttl=r.ttl||18e5,this.usingTLS=r.useTLS,this.timeline=r.timeline}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.usingTLS,n=mt(r),i=n&&n.cacheSkipCount?n.cacheSkipCount:0,o=[this.strategy];if(n&&n.timestamp+this.ttl>=q.now()){var s=this.transports[n.transport];s&&(["ws","wss"].includes(n.transport)||i>3?(this.timeline.info({cached:!0,transport:n.transport,latency:n.latency}),o.push(new ct([s],{timeout:2*n.latency+1e3,failFast:!0}))):i++)}var a=q.now(),c=o.pop().connect(e,function n(s,u){s?(vt(r),o.length>0?(a=q.now(),c=o.pop().connect(e,n)):t(s)):(gt(r,u.transport.name,q.now()-a,i),t(null,u))});return{abort:function(){c.abort()},forceMinPriority:function(t){e=t,c&&c.forceMinPriority(t)}}}}function ft(e){return"pusherTransport"+(e?"TLS":"NonTLS")}function mt(e){var t=Kt.getLocalStorage();if(t)try{var r=t[ft(e)];if(r)return JSON.parse(r)}catch(n){vt(e)}return null}function gt(e,t,r,n){var i=Kt.getLocalStorage();if(i)try{i[ft(e)]=se({timestamp:q.now(),transport:t,latency:r,cacheSkipCount:n})}catch(o){}}function vt(e){var t=Kt.getLocalStorage();if(t)try{delete t[ft(e)]}catch(r){}}class yt{constructor(e,{delay:t}){this.strategy=e,this.options={delay:t}}isSupported(){return this.strategy.isSupported()}connect(e,t){var r,n=this.strategy,i=new F(this.options.delay,function(){r=n.connect(e,t)});return{abort:function(){i.ensureAborted(),r&&r.abort()},forceMinPriority:function(t){e=t,r&&r.forceMinPriority(t)}}}}class wt{constructor(e,t,r){this.test=e,this.trueBranch=t,this.falseBranch=r}isSupported(){var e=this.test()?this.trueBranch:this.falseBranch;return e.isSupported()}connect(e,t){var r=this.test()?this.trueBranch:this.falseBranch;return r.connect(e,t)}}class bt{constructor(e){this.strategy=e}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.strategy.connect(e,function(e,n){n&&r.abort(),t(e,n)});return r}}function _t(e){return function(){return e.isSupported()}}var kt=function(e,t,r){var n={};function i(t,i,o,s,a){var c=r(e,t,i,o,s,a);return n[t]=c,c}var o,s=Object.assign({},t,{hostNonTLS:e.wsHost+":"+e.wsPort,hostTLS:e.wsHost+":"+e.wssPort,httpPath:e.wsPath}),a=Object.assign({},s,{useTLS:!0}),c=Object.assign({},t,{hostNonTLS:e.httpHost+":"+e.httpPort,hostTLS:e.httpHost+":"+e.httpsPort,httpPath:e.httpPath}),u={loop:!0,timeout:15e3,timeoutLimit:6e4},l=new at({minPingDelay:1e4,maxPingDelay:e.activityTimeout}),h=new at({lives:2,minPingDelay:1e4,maxPingDelay:e.activityTimeout}),d=i("ws","ws",3,s,l),p=i("wss","ws",3,a,l),f=i("sockjs","sockjs",1,c),m=i("xhr_streaming","xhr_streaming",1,c,h),g=i("xdr_streaming","xdr_streaming",1,c,h),v=i("xhr_polling","xhr_polling",1,c),y=i("xdr_polling","xdr_polling",1,c),w=new ct([d],u),b=new ct([p],u),_=new ct([f],u),k=new ct([new wt(_t(m),m,g)],u),S=new ct([new wt(_t(v),v,y)],u),x=new ct([new wt(_t(k),new ut([k,new yt(S,{delay:4e3})]),S)],u),C=new wt(_t(x),x,_);return o=t.useTLS?new ut([w,new yt(C,{delay:2e3})]):new ut([w,new yt(b,{delay:2e3}),new yt(C,{delay:5e3})]),new pt(new bt(new wt(_t(d),o,C)),n,{ttl:18e5,timeline:t.timeline,useTLS:t.useTLS})},St=kt,xt=function(){var e=this;e.timeline.info(e.buildTimelineMessage({transport:e.name+(e.options.useTLS?"s":"")})),e.hooks.isInitialized()?e.changeState("initialized"):e.hooks.file?(e.changeState("initializing"),u.load(e.hooks.file,{useTLS:e.options.useTLS},function(t,r){e.hooks.isInitialized()?(e.changeState("initialized"),r(!0)):(t&&e.onError(t),e.onClose(),r(!1))})):e.onClose()},Ct={getRequest:function(e){var t=new window.XDomainRequest;return t.ontimeout=function(){e.emit("error",new g),e.close()},t.onerror=function(t){e.emit("error",t),e.close()},t.onprogress=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText)},t.onload=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText),e.emit("finished",200),e.close()},t},abortRequest:function(e){e.ontimeout=e.onerror=e.onprogress=e.onload=null,e.abort()}},Et=Ct;const At=262144;class Ot extends Se{constructor(e,t,r){super(),this.hooks=e,this.method=t,this.url=r}start(e){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},Kt.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)}close(){this.unloader&&(Kt.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(e,t){while(1){var r=this.advanceBuffer(t);if(!r)break;this.emit("chunk",{status:e,data:r})}this.isBufferTooLong(t)&&this.emit("buffer_too_long")}advanceBuffer(e){var t=e.slice(this.position),r=t.indexOf("\n");return-1!==r?(this.position+=r+1,t.slice(0,r)):null}isBufferTooLong(e){return this.position===e.length&&e.length>At}}var It;(function(e){e[e["CONNECTING"]=0]="CONNECTING",e[e["OPEN"]=1]="OPEN",e[e["CLOSED"]=3]="CLOSED"})(It||(It={}));var Tt=It,Mt=1;class Rt{constructor(e,t){this.hooks=e,this.session=Nt(1e3)+"/"+jt(8),this.location=Pt(t),this.readyState=Tt.CONNECTING,this.openStream()}send(e){return this.sendRaw(JSON.stringify([e]))}ping(){this.hooks.sendHeartbeat(this)}close(e,t){this.onClose(e,t,!0)}sendRaw(e){if(this.readyState!==Tt.OPEN)return!1;try{return Kt.createSocketRequest("POST",Lt(Dt(this.location,this.session))).start(e),!0}catch(t){return!1}}reconnect(){this.closeStream(),this.openStream()}onClose(e,t,r){this.closeStream(),this.readyState=Tt.CLOSED,this.onclose&&this.onclose({code:e,reason:t,wasClean:r})}onChunk(e){if(200===e.status){var t;this.readyState===Tt.OPEN&&this.onActivity();var r=e.data.slice(0,1);switch(r){case"o":t=JSON.parse(e.data.slice(1)||"{}"),this.onOpen(t);break;case"a":t=JSON.parse(e.data.slice(1)||"[]");for(var n=0;n<t.length;n++)this.onEvent(t[n]);break;case"m":t=JSON.parse(e.data.slice(1)||"null"),this.onEvent(t);break;case"h":this.hooks.onHeartbeat(this);break;case"c":t=JSON.parse(e.data.slice(1)||"[]"),this.onClose(t[0],t[1],!0);break}}}onOpen(e){this.readyState===Tt.CONNECTING?(e&&e.hostname&&(this.location.base=Bt(this.location.base,e.hostname)),this.readyState=Tt.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(e){this.readyState===Tt.OPEN&&this.onmessage&&this.onmessage({data:e})}onActivity(){this.onactivity&&this.onactivity()}onError(e){this.onerror&&this.onerror(e)}openStream(){this.stream=Kt.createSocketRequest("POST",Lt(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",e=>{this.onChunk(e)}),this.stream.bind("finished",e=>{this.hooks.onFinished(this,e)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(e){q.defer(()=>{this.onError(e),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function Pt(e){var t=/([^\?]*)\/*(\??.*)/.exec(e);return{base:t[1],queryString:t[2]}}function Dt(e,t){return e.base+"/"+t+"/xhr_send"}function Lt(e){var t=-1===e.indexOf("?")?"?":"&";return e+t+"t="+ +new Date+"&n="+Mt++}function Bt(e,t){var r=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(e);return r[1]+t+r[3]}function Nt(e){return Kt.randomInt(e)}function jt(e){for(var t=[],r=0;r<e;r++)t.push(Nt(32).toString(32));return t.join("")}var Ft=Rt,Ut={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr_streaming"+e.queryString},onHeartbeat:function(e){e.sendRaw("[]")},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){e.onClose(1006,"Connection interrupted ("+t+")",!1)}},zt=Ut,qt={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr"+e.queryString},onHeartbeat:function(){},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){200===t?e.reconnect():e.onClose(1006,"Connection interrupted ("+t+")",!1)}},Ht=qt,$t={getRequest:function(e){var t=Kt.getXHRAPI(),r=new t;return r.onreadystatechange=r.onprogress=function(){switch(r.readyState){case 3:r.responseText&&r.responseText.length>0&&e.onChunk(r.status,r.responseText);break;case 4:r.responseText&&r.responseText.length>0&&e.onChunk(r.status,r.responseText),e.emit("finished",r.status),e.close();break}},r},abortRequest:function(e){e.onreadystatechange=null,e.abort()}},Wt=$t,Vt={createStreamingSocket(e){return this.createSocket(zt,e)},createPollingSocket(e){return this.createSocket(Ht,e)},createSocket(e,t){return new Ft(e,t)},createXHR(e,t){return this.createRequest(Wt,e,t)},createRequest(e,t,r){return new Ot(e,t,r)}},Xt=Vt;Xt.createXDR=function(e,t){return this.createRequest(Et,e,t)};var Yt,Gt=Xt,Jt={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:i,DependenciesReceivers:c,getDefaultStrategy:St,Transports:Fe,transportConnectionInitializer:xt,HTTPFactory:Gt,TimelineTransport:me,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(e){window.Pusher=e;var t=()=>{this.onDocumentBody(e.ready)};window.JSON?t():u.load("json2",{},t)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:x,jsonp:le}},onDocumentBody(e){document.body?e():setTimeout(()=>{this.onDocumentBody(e)},0)},createJSONPRequest(e,t){return new de(e,t)},createScriptRequest(e){return new he(e)},getLocalStorage(){try{return window.localStorage}catch(e){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var e=this.getXHRAPI();return new e},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return ze},createWebSocket(e){var t=this.getWebSocketAPI();return new t(e)},createSocketRequest(e,t){if(this.isXHRSupported())return this.HTTPFactory.createXHR(e,t);if(this.isXDRSupported(0===t.indexOf("https:")))return this.HTTPFactory.createXDR(e,t);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var e=this.getXHRAPI();return Boolean(e)&&void 0!==(new e).withCredentials},isXDRSupported(e){var t=e?"https:":"http:",r=this.getProtocol();return Boolean(window["XDomainRequest"])&&r===t},addUnloadListener(e){void 0!==window.addEventListener?window.addEventListener("unload",e,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",e)},removeUnloadListener(e){void 0!==window.addEventListener?window.removeEventListener("unload",e,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",e)},randomInt(e){const t=function(){const e=window.crypto||window["msCrypto"],t=e.getRandomValues(new Uint32Array(1))[0];return t/Math.pow(2,32)};return Math.floor(t()*e)}},Kt=Jt;(function(e){e[e["ERROR"]=3]="ERROR",e[e["INFO"]=6]="INFO",e[e["DEBUG"]=7]="DEBUG"})(Yt||(Yt={}));var Zt=Yt;class Qt{constructor(e,t,r){this.key=e,this.session=t,this.events=[],this.options=r||{},this.sent=0,this.uniqueID=0}log(e,t){e<=this.options.level&&(this.events.push(H({},t,{timestamp:q.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(e){this.log(Zt.ERROR,e)}info(e){this.log(Zt.INFO,e)}debug(e){this.log(Zt.DEBUG,e)}isEmpty(){return 0===this.events.length}send(e,t){var r=H({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(r,(e,r)=>{e||this.sent++,t&&t(e,r)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class er{constructor(e,t,r,n){this.name=e,this.priority=t,this.transport=r,this.options=n||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(e,t){if(!this.isSupported())return tr(new _,t);if(this.priority<e)return tr(new v,t);var r=!1,n=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),i=null,o=function(){n.unbind("initialized",o),n.connect()},s=function(){i=st.createHandshake(n,function(e){r=!0,u(),t(null,e)})},a=function(e){u(),t(e)},c=function(){var e;u(),e=se(n),t(new y(e))},u=function(){n.unbind("initialized",o),n.unbind("open",s),n.unbind("error",a),n.unbind("closed",c)};return n.bind("initialized",o),n.bind("open",s),n.bind("error",a),n.bind("closed",c),n.initialize(),{abort:()=>{r||(u(),i?i.close():n.close())},forceMinPriority:e=>{r||this.priority<e&&(i?i.close():n.close())}}}}function tr(e,t){return q.defer(function(){t(e)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:rr}=Kt;var nr=function(e,t,r,n,i,o){var s=rr[r];if(!s)throw new b(r);var a,c=(!e.enabledTransports||-1!==W(e.enabledTransports,t))&&(!e.disabledTransports||-1===W(e.disabledTransports,t));return c?(i=Object.assign({ignoreNullOrigin:e.ignoreNullOrigin},i),a=new er(t,n,o?o.getAssistant(s):s,i)):a=ir,a},ir={isSupported:function(){return!1},connect:function(e,t){var r=q.defer(function(){t(new _)});return{abort:function(){r.ensureAborted()},forceMinPriority:function(){}}}};function or(e){if(null==e)throw"You must pass an options object";if(null==e.cluster)throw"Options object must provide a cluster";"disableStats"in e&&ce.warn("The disableStats option is deprecated in favor of enableStats")}const sr=(e,t)=>{var r="socket_id="+encodeURIComponent(e.socketId);for(var n in t.params)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(t.params[n]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var n in e)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n])}return r},ar=e=>{if("undefined"===typeof Kt.getAuthorizers()[e.transport])throw`'${e.transport}' is not a recognized auth transport`;return(t,r)=>{const n=sr(t,e);Kt.getAuthorizers()[e.transport](Kt,n,e,d.UserAuthentication,r)}};var cr=ar;const ur=(e,t)=>{var r="socket_id="+encodeURIComponent(e.socketId);for(var n in r+="&channel_name="+encodeURIComponent(e.channelName),t.params)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(t.params[n]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var n in e)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n])}return r},lr=e=>{if("undefined"===typeof Kt.getAuthorizers()[e.transport])throw`'${e.transport}' is not a recognized auth transport`;return(t,r)=>{const n=ur(t,e);Kt.getAuthorizers()[e.transport](Kt,n,e,d.ChannelAuthorization,r)}};var hr=lr;const dr=(e,t,r)=>{const n={authTransport:t.transport,authEndpoint:t.endpoint,auth:{params:t.params,headers:t.headers}};return(t,i)=>{const o=e.channel(t.channelName),s=r(o,n);s.authorize(t.socketId,i)}};function pr(e,t){let r={activityTimeout:e.activityTimeout||s.activityTimeout,cluster:e.cluster,httpPath:e.httpPath||s.httpPath,httpPort:e.httpPort||s.httpPort,httpsPort:e.httpsPort||s.httpsPort,pongTimeout:e.pongTimeout||s.pongTimeout,statsHost:e.statsHost||s.stats_host,unavailableTimeout:e.unavailableTimeout||s.unavailableTimeout,wsPath:e.wsPath||s.wsPath,wsPort:e.wsPort||s.wsPort,wssPort:e.wssPort||s.wssPort,enableStats:yr(e),httpHost:fr(e),useTLS:vr(e),wsHost:mr(e),userAuthenticator:wr(e),channelAuthorizer:_r(e,t)};return"disabledTransports"in e&&(r.disabledTransports=e.disabledTransports),"enabledTransports"in e&&(r.enabledTransports=e.enabledTransports),"ignoreNullOrigin"in e&&(r.ignoreNullOrigin=e.ignoreNullOrigin),"timelineParams"in e&&(r.timelineParams=e.timelineParams),"nacl"in e&&(r.nacl=e.nacl),r}function fr(e){return e.httpHost?e.httpHost:e.cluster?`sockjs-${e.cluster}.pusher.com`:s.httpHost}function mr(e){return e.wsHost?e.wsHost:gr(e.cluster)}function gr(e){return`ws-${e}.pusher.com`}function vr(e){return"https:"===Kt.getProtocol()||!1!==e.forceTLS}function yr(e){return"enableStats"in e?e.enableStats:"disableStats"in e&&!e.disableStats}function wr(e){const t=Object.assign(Object.assign({},s.userAuthentication),e.userAuthentication);return"customHandler"in t&&null!=t["customHandler"]?t["customHandler"]:cr(t)}function br(e,t){let r;return"channelAuthorization"in e?r=Object.assign(Object.assign({},s.channelAuthorization),e.channelAuthorization):(r={transport:e.authTransport||s.authTransport,endpoint:e.authEndpoint||s.authEndpoint},"auth"in e&&("params"in e.auth&&(r.params=e.auth.params),"headers"in e.auth&&(r.headers=e.auth.headers)),"authorizer"in e&&(r.customHandler=dr(t,r,e.authorizer))),r}function _r(e,t){const r=br(e,t);return"customHandler"in r&&null!=r["customHandler"]?r["customHandler"]:hr(r)}class kr extends Se{constructor(e){super(function(e,t){ce.debug(`No callbacks on watchlist events for ${e}`)}),this.pusher=e,this.bindWatchlistInternalEvent()}handleEvent(e){e.data.events.forEach(e=>{this.emit(e.name,e)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",e=>{var t=e.event;"pusher_internal:watchlist_events"===t&&this.handleEvent(e)})}}function Sr(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});return{promise:r,resolve:e,reject:t}}var xr=Sr;class Cr extends Se{constructor(e){super(function(e,t){ce.debug("No callbacks on user for "+e)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(e,t)=>{if(e)return ce.warn(`Error during signin: ${e}`),void this._cleanup();this.pusher.send_event("pusher:signin",{auth:t.auth,user_data:t.user_data})},this.pusher=e,this.pusher.connection.bind("state_change",({previous:e,current:t})=>{"connected"!==e&&"connected"===t&&this._signin(),"connected"===e&&"connected"!==t&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new kr(e),this.pusher.connection.bind("message",e=>{var t=e.event;"pusher:signin_success"===t&&this._onSigninSuccess(e.data),this.serverToUserChannel&&this.serverToUserChannel.name===e.channel&&this.serverToUserChannel.handleEvent(e)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),"connected"===this.pusher.connection.state&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(e){try{this.user_data=JSON.parse(e.user_data)}catch(t){return ce.error(`Failed parsing user data after signin: ${e.user_data}`),void this._cleanup()}if("string"!==typeof this.user_data.id||""===this.user_data.id)return ce.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),void this._cleanup();this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const e=e=>{e.subscriptionPending&&e.subscriptionCancelled?e.reinstateSubscription():e.subscriptionPending||"connected"!==this.pusher.connection.state||e.subscribe()};this.serverToUserChannel=new Ye(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((e,t)=>{0!==e.indexOf("pusher_internal:")&&0!==e.indexOf("pusher:")&&this.emit(e,t)}),e(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested)return;if(this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:e,resolve:t,reject:r}=xr();e.done=!1;const n=()=>{e.done=!0};e.then(n).catch(n),this.signinDonePromise=e,this._signinDoneResolve=t}}class Er{static ready(){Er.isReady=!0;for(var e=0,t=Er.instances.length;e<t;e++)Er.instances[e].connect()}static getClientFeatures(){return X(Q({ws:Kt.Transports.ws},function(e){return e.isSupported({})}))}constructor(e,t){Or(e),or(t),this.key=e,this.config=pr(t,this),this.channels=st.createChannels(),this.global_emitter=new Se,this.sessionID=Kt.randomInt(1e9),this.timeline=new Qt(this.key,this.sessionID,{cluster:this.config.cluster,features:Er.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:Zt.INFO,version:s.VERSION}),this.config.enableStats&&(this.timelineSender=st.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+Kt.TimelineTransport.name}));var r=e=>Kt.getDefaultStrategy(this.config,e,nr);this.connection=st.createConnectionManager(this.key,{getStrategy:r,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:Boolean(this.config.useTLS)}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",e=>{var t=e.event,r=0===t.indexOf("pusher_internal:");if(e.channel){var n=this.channel(e.channel);n&&n.handleEvent(e)}r||this.global_emitter.emit(e.event,e.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",e=>{ce.warn(e)}),Er.instances.push(this),this.timeline.info({instances:Er.instances.length}),this.user=new Cr(this),Er.isReady&&this.connect()}channel(e){return this.channels.find(e)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),t=this.timelineSender;this.timelineSenderTimer=new U(6e4,function(){t.send(e)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(e,t,r){return this.global_emitter.bind(e,t,r),this}unbind(e,t,r){return this.global_emitter.unbind(e,t,r),this}bind_global(e){return this.global_emitter.bind_global(e),this}unbind_global(e){return this.global_emitter.unbind_global(e),this}unbind_all(e){return this.global_emitter.unbind_all(),this}subscribeAll(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)}subscribe(e){var t=this.channels.add(e,this);return t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():t.subscriptionPending||"connected"!==this.connection.state||t.subscribe(),t}unsubscribe(e){var t=this.channels.find(e);t&&t.subscriptionPending?t.cancelSubscription():(t=this.channels.remove(e),t&&t.subscribed&&t.unsubscribe())}send_event(e,t,r){return this.connection.send_event(e,t,r)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}Er.instances=[],Er.isReady=!1,Er.logToConsole=!1,Er.Runtime=Kt,Er.ScriptReceivers=Kt.ScriptReceivers,Er.DependenciesReceivers=Kt.DependenciesReceivers,Er.auth_callbacks=Kt.auth_callbacks;var Ar=t["default"]=Er;function Or(e){if(null===e||void 0===e)throw"You must pass your app key when you instantiate Pusher."}Kt.setup(Er)}])})},6586:function(e){
26
+ (function(t,r){e.exports=r()})(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=256,o=function(){function e(e){void 0===e&&(e="="),this._paddingCharacter=e}return e.prototype.encodedLength=function(e){return this._paddingCharacter?(e+2)/3*4|0:(8*e+5)/6|0},e.prototype.encode=function(e){for(var t="",r=0;r<e.length-2;r+=3){var n=e[r]<<16|e[r+1]<<8|e[r+2];t+=this._encodeByte(n>>>18&63),t+=this._encodeByte(n>>>12&63),t+=this._encodeByte(n>>>6&63),t+=this._encodeByte(n>>>0&63)}var i=e.length-r;if(i>0){n=e[r]<<16|(2===i?e[r+1]<<8:0);t+=this._encodeByte(n>>>18&63),t+=this._encodeByte(n>>>12&63),t+=2===i?this._encodeByte(n>>>6&63):this._paddingCharacter||"",t+=this._paddingCharacter||""}return t},e.prototype.maxDecodedLength=function(e){return this._paddingCharacter?e/4*3|0:(6*e+7)/8|0},e.prototype.decodedLength=function(e){return this.maxDecodedLength(e.length-this._getPaddingLength(e))},e.prototype.decode=function(e){if(0===e.length)return new Uint8Array(0);for(var t=this._getPaddingLength(e),r=e.length-t,n=new Uint8Array(this.maxDecodedLength(r)),o=0,s=0,a=0,c=0,u=0,l=0,h=0;s<r-4;s+=4)c=this._decodeChar(e.charCodeAt(s+0)),u=this._decodeChar(e.charCodeAt(s+1)),l=this._decodeChar(e.charCodeAt(s+2)),h=this._decodeChar(e.charCodeAt(s+3)),n[o++]=c<<2|u>>>4,n[o++]=u<<4|l>>>2,n[o++]=l<<6|h,a|=c&i,a|=u&i,a|=l&i,a|=h&i;if(s<r-1&&(c=this._decodeChar(e.charCodeAt(s)),u=this._decodeChar(e.charCodeAt(s+1)),n[o++]=c<<2|u>>>4,a|=c&i,a|=u&i),s<r-2&&(l=this._decodeChar(e.charCodeAt(s+2)),n[o++]=u<<4|l>>>2,a|=l&i),s<r-3&&(h=this._decodeChar(e.charCodeAt(s+3)),n[o++]=l<<6|h,a|=h&i),0!==a)throw new Error("Base64Coder: incorrect characters for decoding");return n},e.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-15,t+=62-e>>>8&3,String.fromCharCode(t)},e.prototype._decodeChar=function(e){var t=i;return t+=(42-e&e-44)>>>8&-i+e-43+62,t+=(46-e&e-48)>>>8&-i+e-47+63,t+=(47-e&e-58)>>>8&-i+e-48+52,t+=(64-e&e-91)>>>8&-i+e-65+0,t+=(96-e&e-123)>>>8&-i+e-97+26,t},e.prototype._getPaddingLength=function(e){var t=0;if(this._paddingCharacter){for(var r=e.length-1;r>=0;r--){if(e[r]!==this._paddingCharacter)break;t++}if(e.length<4||t>2)throw new Error("Base64Coder: incorrect padding")}return t},e}();t.Coder=o;var s=new o;function a(e){return s.encode(e)}function c(e){return s.decode(e)}t.encode=a,t.decode=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-13,t+=62-e>>>8&49,String.fromCharCode(t)},t.prototype._decodeChar=function(e){var t=i;return t+=(44-e&e-46)>>>8&-i+e-45+62,t+=(94-e&e-96)>>>8&-i+e-95+63,t+=(47-e&e-58)>>>8&-i+e-48+52,t+=(64-e&e-91)>>>8&-i+e-65+0,t+=(96-e&e-123)>>>8&-i+e-97+26,t},t}(o);t.URLSafeCoder=u;var l=new u;function h(e){return l.encode(e)}function d(e){return l.decode(e)}t.encodeURLSafe=h,t.decodeURLSafe=d,t.encodedLength=function(e){return s.encodedLength(e)},t.maxDecodedLength=function(e){return s.maxDecodedLength(e)},t.decodedLength=function(e){return s.decodedLength(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="utf8: invalid string",i="utf8: invalid source encoding";function o(e){for(var t=new Uint8Array(s(e)),r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t[r++]=i:i<2048?(t[r++]=192|i>>6,t[r++]=128|63&i):i<55296?(t[r++]=224|i>>12,t[r++]=128|i>>6&63,t[r++]=128|63&i):(n++,i=(1023&i)<<10,i|=1023&e.charCodeAt(n),i+=65536,t[r++]=240|i>>18,t[r++]=128|i>>12&63,t[r++]=128|i>>6&63,t[r++]=128|63&i)}return t}function s(e){for(var t=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i<128)t+=1;else if(i<2048)t+=2;else if(i<55296)t+=3;else{if(!(i<=57343))throw new Error(n);if(r>=e.length-1)throw new Error(n);r++,t+=4}}return t}function a(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(128&n){var o=void 0;if(n<224){if(r>=e.length)throw new Error(i);var s=e[++r];if(128!==(192&s))throw new Error(i);n=(31&n)<<6|63&s,o=128}else if(n<240){if(r>=e.length-1)throw new Error(i);s=e[++r];var a=e[++r];if(128!==(192&s)||128!==(192&a))throw new Error(i);n=(15&n)<<12|(63&s)<<6|63&a,o=2048}else{if(!(n<248))throw new Error(i);if(r>=e.length-2)throw new Error(i);s=e[++r],a=e[++r];var c=e[++r];if(128!==(192&s)||128!==(192&a)||128!==(192&c))throw new Error(i);n=(15&n)<<18|(63&s)<<12|(63&a)<<6|63&c,o=65536}if(n<o||n>=55296&&n<=57343)throw new Error(i);if(n>=65536){if(n>1114111)throw new Error(i);n-=65536,t.push(String.fromCharCode(55296|n>>10)),n=56320|1023&n}}t.push(String.fromCharCode(n))}return t.join("")}t.encode=o,t.encodedLength=s,t.decode=a},function(e,t,r){e.exports=r(3).default},function(e,t,r){"use strict";r.r(t);class n{constructor(e,t){this.lastId=0,this.prefix=e,this.name=t}create(e){this.lastId++;var t=this.lastId,r=this.prefix+t,n=this.name+"["+t+"]",i=!1,o=function(){i||(e.apply(null,arguments),i=!0)};return this[t]=o,{number:t,id:r,name:n,callback:o}}remove(e){delete this[e.number]}}var i=new n("_pusher_script_","Pusher.ScriptReceivers"),o={VERSION:"8.4.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},s=o;class a{constructor(e){this.options=e,this.receivers=e.receivers||i,this.loading={}}load(e,t,r){var n=this;if(n.loading[e]&&n.loading[e].length>0)n.loading[e].push(r);else{n.loading[e]=[r];var i=Kt.createScriptRequest(n.getPath(e,t)),o=n.receivers.create(function(t){if(n.receivers.remove(o),n.loading[e]){var r=n.loading[e];delete n.loading[e];for(var s=function(e){e||i.cleanup()},a=0;a<r.length;a++)r[a](t,s)}});i.send(o)}}getRoot(e){var t,r=Kt.getDocument().location.protocol;return t=e&&e.useTLS||"https:"===r?this.options.cdn_https:this.options.cdn_http,t.replace(/\/*$/,"")+"/"+this.options.version}getPath(e,t){return this.getRoot(t)+"/"+e+this.options.suffix+".js"}}var c=new n("_pusher_dependencies","Pusher.DependenciesReceivers"),u=new a({cdn_http:s.cdn_http,cdn_https:s.cdn_https,version:s.VERSION,suffix:s.dependency_suffix,receivers:c});const l={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}},h=function(e){const t="See:",r=l.urls[e];if(!r)return"";let n;return r.fullUrl?n=r.fullUrl:r.path&&(n=l.baseUrl+r.path),n?`${t} ${n}`:""};var d,p={buildLogSuffix:h};(function(e){e["UserAuthentication"]="user-authentication",e["ChannelAuthorization"]="channel-authorization"})(d||(d={}));class f extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class m extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class g extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class v extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class y extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class w extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class b extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class k extends Error{constructor(e,t){super(t),this.status=e,Object.setPrototypeOf(this,new.target.prototype)}}const S=function(e,t,r,n,i){const o=Kt.createXHR();for(var s in o.open("POST",r.endpoint,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.headers)o.setRequestHeader(s,r.headers[s]);if(null!=r.headersProvider){let e=r.headersProvider();for(var s in e)o.setRequestHeader(s,e[s])}return o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status){let t,r=!1;try{t=JSON.parse(o.responseText),r=!0}catch(e){i(new k(200,`JSON returned from ${n.toString()} endpoint was invalid, yet status code was 200. Data was: ${o.responseText}`),null)}r&&i(null,t)}else{let e="";switch(n){case d.UserAuthentication:e=p.buildLogSuffix("authenticationEndpoint");break;case d.ChannelAuthorization:e=`Clients must be authorized to join private or presence channels. ${p.buildLogSuffix("authorizationEndpoint")}`;break}i(new k(o.status,`Unable to retrieve auth string from ${n.toString()} endpoint - received status: ${o.status} from ${r.endpoint}. ${e}`),null)}},o.send(t),o};var x=S;function C(e){return D(R(e))}for(var E=String.fromCharCode,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O={},I=0,T=A.length;I<T;I++)O[A.charAt(I)]=I;var M=function(e){var t=e.charCodeAt(0);return t<128?e:t<2048?E(192|t>>>6)+E(128|63&t):E(224|t>>>12&15)+E(128|t>>>6&63)+E(128|63&t)},R=function(e){return e.replace(/[^\x00-\x7F]/g,M)},P=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),n=[A.charAt(r>>>18),A.charAt(r>>>12&63),t>=2?"=":A.charAt(r>>>6&63),t>=1?"=":A.charAt(63&r)];return n.join("")},D=window.btoa||function(e){return e.replace(/[\s\S]{1,3}/g,P)};class L{constructor(e,t,r,n){this.clear=t,this.timer=e(()=>{this.timer&&(this.timer=n(this.timer))},r)}isRunning(){return null!==this.timer}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var B=L;function N(e){window.clearTimeout(e)}function j(e){window.clearInterval(e)}class F extends B{constructor(e,t){super(setTimeout,N,e,function(e){return t(),null})}}class U extends B{constructor(e,t){super(setInterval,j,e,function(e){return t(),e})}}var z={now(){return Date.now?Date.now():(new Date).valueOf()},defer(e){return new F(0,e)},method(e,...t){var r=Array.prototype.slice.call(arguments,1);return function(t){return t[e].apply(t,r.concat(arguments))}}},q=z;function H(e,...t){for(var r=0;r<t.length;r++){var n=t[r];for(var i in n)n[i]&&n[i].constructor&&n[i].constructor===Object?e[i]=H(e[i]||{},n[i]):e[i]=n[i]}return e}function $(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"===typeof arguments[t]?e.push(arguments[t]):e.push(se(arguments[t]));return e.join(" : ")}function W(e,t){var r=Array.prototype.indexOf;if(null===e)return-1;if(r&&e.indexOf===r)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}function V(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t(e[r],r,e)}function Y(e){var t=[];return V(e,function(e,r){t.push(r)}),t}function X(e){var t=[];return V(e,function(e){t.push(e)}),t}function J(e,t,r){for(var n=0;n<e.length;n++)t.call(r||window,e[n],n,e)}function G(e,t){for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n,e,r));return r}function K(e,t){var r={};return V(e,function(e,n){r[n]=t(e)}),r}function Z(e,t){t=t||function(e){return!!e};for(var r=[],n=0;n<e.length;n++)t(e[n],n,e,r)&&r.push(e[n]);return r}function Q(e,t){var r={};return V(e,function(n,i){(t&&t(n,i,e,r)||Boolean(n))&&(r[i]=n)}),r}function ee(e){var t=[];return V(e,function(e,r){t.push([r,e])}),t}function te(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return!0;return!1}function re(e,t){for(var r=0;r<e.length;r++)if(!t(e[r],r,e))return!1;return!0}function ne(e){return K(e,function(e){return"object"===typeof e&&(e=se(e)),encodeURIComponent(C(e.toString()))})}function ie(e){var t=Q(e,function(e){return void 0!==e}),r=G(ee(ne(t)),q.method("join","=")).join("&");return r}function oe(e){var t=[],r=[];return function e(n,i){var o,s,a;switch(typeof n){case"object":if(!n)return null;for(o=0;o<t.length;o+=1)if(t[o]===n)return{$ref:r[o]};if(t.push(n),r.push(i),"[object Array]"===Object.prototype.toString.apply(n))for(a=[],o=0;o<n.length;o+=1)a[o]=e(n[o],i+"["+o+"]");else for(s in a={},n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=e(n[s],i+"["+JSON.stringify(s)+"]"));return a;case"number":case"string":case"boolean":return n}}(e,"$")}function se(e){try{return JSON.stringify(e)}catch(t){return JSON.stringify(oe(e))}}class ae{constructor(){this.globalLog=e=>{window.console&&window.console.log&&window.console.log(e)}}debug(...e){this.log(this.globalLog,e)}warn(...e){this.log(this.globalLogWarn,e)}error(...e){this.log(this.globalLogError,e)}globalLogWarn(e){window.console&&window.console.warn?window.console.warn(e):this.globalLog(e)}globalLogError(e){window.console&&window.console.error?window.console.error(e):this.globalLogWarn(e)}log(e,...t){var r=$.apply(this,arguments);if(Ar.log)Ar.log(r);else if(Ar.logToConsole){const t=e.bind(this);t(r)}}}var ce=new ae,ue=function(e,t,r,n,i){void 0===r.headers&&null==r.headersProvider||ce.warn(`To send headers with the ${n.toString()} request, you must use AJAX, rather than JSONP.`);var o=e.nextAuthCallbackID.toString();e.nextAuthCallbackID++;var s=e.getDocument(),a=s.createElement("script");e.auth_callbacks[o]=function(e){i(null,e)};var c="Pusher.auth_callbacks['"+o+"']";a.src=r.endpoint+"?callback="+encodeURIComponent(c)+"&"+t;var u=s.getElementsByTagName("head")[0]||s.documentElement;u.insertBefore(a,u.firstChild)},le=ue;class he{constructor(e){this.src=e}send(e){var t=this,r="Error loading "+t.src;t.script=document.createElement("script"),t.script.id=e.id,t.script.src=t.src,t.script.type="text/javascript",t.script.charset="UTF-8",t.script.addEventListener?(t.script.onerror=function(){e.callback(r)},t.script.onload=function(){e.callback(null)}):t.script.onreadystatechange=function(){"loaded"!==t.script.readyState&&"complete"!==t.script.readyState||e.callback(null)},void 0===t.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(t.errorScript=document.createElement("script"),t.errorScript.id=e.id+"_error",t.errorScript.text=e.name+"('"+r+"');",t.script.async=t.errorScript.async=!1):t.script.async=!0;var n=document.getElementsByTagName("head")[0];n.insertBefore(t.script,n.firstChild),t.errorScript&&n.insertBefore(t.errorScript,t.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class de{constructor(e,t){this.url=e,this.data=t}send(e){if(!this.request){var t=ie(this.data),r=this.url+"/"+e.number+"?"+t;this.request=Kt.createScriptRequest(r),this.request.send(e)}}cleanup(){this.request&&this.request.cleanup()}}var pe=function(e,t){return function(r,n){var o="http"+(t?"s":"")+"://",s=o+(e.host||e.options.host)+e.options.path,a=Kt.createJSONPRequest(s,r),c=Kt.ScriptReceivers.create(function(t,r){i.remove(c),a.cleanup(),r&&r.host&&(e.host=r.host),n&&n(t,r)});a.send(c)}},fe={name:"jsonp",getAgent:pe},me=fe;function ge(e,t,r){var n=e+(t.useTLS?"s":""),i=t.useTLS?t.hostTLS:t.hostNonTLS;return n+"://"+i+r}function ve(e,t){var r="/app/"+e,n="?protocol="+s.PROTOCOL+"&client=js&version="+s.VERSION+(t?"&"+t:"");return r+n}var ye={getInitial:function(e,t){var r=(t.httpPath||"")+ve(e,"flash=false");return ge("ws",t,r)}},we={getInitial:function(e,t){var r=(t.httpPath||"/pusher")+ve(e);return ge("http",t,r)}},be={getInitial:function(e,t){return ge("http",t,t.httpPath||"/pusher")},getPath:function(e,t){return ve(e)}};class _e{constructor(){this._callbacks={}}get(e){return this._callbacks[ke(e)]}add(e,t,r){var n=ke(e);this._callbacks[n]=this._callbacks[n]||[],this._callbacks[n].push({fn:t,context:r})}remove(e,t,r){if(e||t||r){var n=e?[ke(e)]:Y(this._callbacks);t||r?this.removeCallback(n,t,r):this.removeAllCallbacks(n)}else this._callbacks={}}removeCallback(e,t,r){J(e,function(e){this._callbacks[e]=Z(this._callbacks[e]||[],function(e){return t&&t!==e.fn||r&&r!==e.context}),0===this._callbacks[e].length&&delete this._callbacks[e]},this)}removeAllCallbacks(e){J(e,function(e){delete this._callbacks[e]},this)}}function ke(e){return"_"+e}class Se{constructor(e){this.callbacks=new _e,this.global_callbacks=[],this.failThrough=e}bind(e,t,r){return this.callbacks.add(e,t,r),this}bind_global(e){return this.global_callbacks.push(e),this}unbind(e,t,r){return this.callbacks.remove(e,t,r),this}unbind_global(e){return e?(this.global_callbacks=Z(this.global_callbacks||[],t=>t!==e),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(e,t,r){for(var n=0;n<this.global_callbacks.length;n++)this.global_callbacks[n](e,t);var i=this.callbacks.get(e),o=[];if(r?o.push(t,r):t&&o.push(t),i&&i.length>0)for(n=0;n<i.length;n++)i[n].fn.apply(i[n].context||window,o);else this.failThrough&&this.failThrough(e,t);return this}}class xe extends Se{constructor(e,t,r,n,i){super(),this.initialize=Kt.transportConnectionInitializer,this.hooks=e,this.name=t,this.priority=r,this.key=n,this.options=i,this.state="new",this.timeline=i.timeline,this.activityTimeout=i.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return Boolean(this.hooks.handlesActivityChecks)}supportsPing(){return Boolean(this.hooks.supportsPing)}connect(){if(this.socket||"initialized"!==this.state)return!1;var e=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(e,this.options)}catch(t){return q.defer(()=>{this.onError(t),this.changeState("closed")}),!1}return this.bindListeners(),ce.debug("Connecting",{transport:this.name,url:e}),this.changeState("connecting"),!0}close(){return!!this.socket&&(this.socket.close(),!0)}send(e){return"open"===this.state&&(q.defer(()=>{this.socket&&this.socket.send(e)}),!0)}ping(){"open"===this.state&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))}onClose(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(e){this.emit("message",e)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=e=>{this.onError(e)},this.socket.onclose=e=>{this.onClose(e)},this.socket.onmessage=e=>{this.onMessage(e)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(e,t){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:t})),this.emit(e,t)}buildTimelineMessage(e){return H({cid:this.id},e)}}class Ce{constructor(e){this.hooks=e}isSupported(e){return this.hooks.isSupported(e)}createConnection(e,t,r,n){return new xe(this.hooks,e,t,r,n)}}var Ee=new Ce({urls:ye,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return Boolean(Kt.getWebSocketAPI())},isSupported:function(){return Boolean(Kt.getWebSocketAPI())},getSocket:function(e){return Kt.createWebSocket(e)}}),Ae={urls:we,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Oe=H({getSocket:function(e){return Kt.HTTPFactory.createStreamingSocket(e)}},Ae),Ie=H({getSocket:function(e){return Kt.HTTPFactory.createPollingSocket(e)}},Ae),Te={isSupported:function(){return Kt.isXHRSupported()}},Me=new Ce(H({},Oe,Te)),Re=new Ce(H({},Ie,Te)),Pe={ws:Ee,xhr_streaming:Me,xhr_polling:Re},De=Pe,Le=new Ce({file:"sockjs",urls:be,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(e,t){return new window.SockJS(e,null,{js_path:u.getPath("sockjs",{useTLS:t.useTLS}),ignore_null_origin:t.ignoreNullOrigin})},beforeOpen:function(e,t){e.send(JSON.stringify({path:t}))}}),Be={isSupported:function(e){var t=Kt.isXDRSupported(e.useTLS);return t}},Ne=new Ce(H({},Oe,Be)),je=new Ce(H({},Ie,Be));De.xdr_streaming=Ne,De.xdr_polling=je,De.sockjs=Le;var Fe=De;class Ue extends Se{constructor(){super();var e=this;void 0!==window.addEventListener&&(window.addEventListener("online",function(){e.emit("online")},!1),window.addEventListener("offline",function(){e.emit("offline")},!1))}isOnline(){return void 0===window.navigator.onLine||window.navigator.onLine}}var ze=new Ue;class qe{constructor(e,t,r){this.manager=e,this.transport=t,this.minPingDelay=r.minPingDelay,this.maxPingDelay=r.maxPingDelay,this.pingDelay=void 0}createConnection(e,t,r,n){n=H({},n,{activityTimeout:this.pingDelay});var i=this.transport.createConnection(e,t,r,n),o=null,s=function(){i.unbind("open",s),i.bind("closed",a),o=q.now()},a=e=>{if(i.unbind("closed",a),1002===e.code||1003===e.code)this.manager.reportDeath();else if(!e.wasClean&&o){var t=q.now()-o;t<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(t/2,this.minPingDelay))}};return i.bind("open",s),i}isSupported(e){return this.manager.isAlive()&&this.transport.isSupported(e)}}const He={decodeMessage:function(e){try{var t=JSON.parse(e.data),r=t.data;if("string"===typeof r)try{r=JSON.parse(t.data)}catch(i){}var n={event:t.event,channel:t.channel,data:r};return t.user_id&&(n.user_id=t.user_id),n}catch(i){throw{type:"MessageParseError",error:i,data:e.data}}},encodeMessage:function(e){return JSON.stringify(e)},processHandshake:function(e){var t=He.decodeMessage(e);if("pusher:connection_established"===t.event){if(!t.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:t.data.socket_id,activityTimeout:1e3*t.data.activity_timeout}}if("pusher:error"===t.event)return{action:this.getCloseAction(t.data),error:this.getCloseError(t.data)};throw"Invalid handshake"},getCloseAction:function(e){return e.code<4e3?e.code>=1002&&e.code<=1004?"backoff":null:4e3===e.code?"tls_only":e.code<4100?"refused":e.code<4200?"backoff":e.code<4300?"retry":"refused"},getCloseError:function(e){return 1e3!==e.code&&1001!==e.code?{type:"PusherError",data:{code:e.code,message:e.reason||e.message}}:null}};var $e=He;class We extends Se{constructor(e,t){super(),this.id=e,this.transport=t,this.activityTimeout=t.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(e){return this.transport.send(e)}send_event(e,t,r){var n={event:e,data:t};return r&&(n.channel=r),ce.debug("Event sent",n),this.send($e.encodeMessage(n))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var e={message:e=>{var t;try{t=$e.decodeMessage(e)}catch(r){this.emit("error",{type:"MessageParseError",error:r,data:e.data})}if(void 0!==t){switch(ce.debug("Event recd",t),t.event){case"pusher:error":this.emit("error",{type:"PusherError",data:t.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",t)}},activity:()=>{this.emit("activity")},error:e=>{this.emit("error",e)},closed:e=>{t(),e&&e.code&&this.handleCloseEvent(e),this.transport=null,this.emit("closed")}},t=()=>{V(e,(e,t)=>{this.transport.unbind(t,e)})};V(e,(e,t)=>{this.transport.bind(t,e)})}handleCloseEvent(e){var t=$e.getCloseAction(e),r=$e.getCloseError(e);r&&this.emit("error",r),t&&this.emit(t,{action:t,error:r})}}class Ve{constructor(e,t){this.transport=e,this.callback=t,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=e=>{var t;this.unbindListeners();try{t=$e.processHandshake(e)}catch(r){return this.finish("error",{error:r}),void this.transport.close()}"connected"===t.action?this.finish("connected",{connection:new We(t.id,this.transport),activityTimeout:t.activityTimeout}):(this.finish(t.action,{error:t.error}),this.transport.close())},this.onClosed=e=>{this.unbindListeners();var t=$e.getCloseAction(e)||"backoff",r=$e.getCloseError(e);this.finish(t,{error:r})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(e,t){this.callback(H({transport:this.transport,action:e},t))}}class Ye{constructor(e,t){this.timeline=e,this.options=t||{}}send(e,t){this.timeline.isEmpty()||this.timeline.send(Kt.TimelineTransport.getAgent(this,e),t)}}class Xe extends Se{constructor(e,t){super(function(t,r){ce.debug("No callbacks on "+e+" for "+t)}),this.name=e,this.pusher=t,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(e,t){return t(null,{auth:""})}trigger(e,t){if(0!==e.indexOf("client-"))throw new f("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var r=p.buildLogSuffix("triggeringClientEvents");ce.warn(`Client event triggered before channel 'subscription_succeeded' event . ${r}`)}return this.pusher.send_event(e,t,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(e){var t=e.event,r=e.data;if("pusher_internal:subscription_succeeded"===t)this.handleSubscriptionSucceededEvent(e);else if("pusher_internal:subscription_count"===t)this.handleSubscriptionCountEvent(e);else if(0!==t.indexOf("pusher_internal:")){var n={};this.emit(t,r,n)}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)}handleSubscriptionCountEvent(e){e.data.subscription_count&&(this.subscriptionCount=e.data.subscription_count),this.emit("pusher:subscription_count",e.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(e,t)=>{e?(this.subscriptionPending=!1,ce.error(e.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof k?{status:e.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:t.auth,channel_data:t.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class Je extends Xe{authorize(e,t){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:e},t)}}class Ge{constructor(){this.reset()}get(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null}each(e){V(this.members,(t,r)=>{e(this.get(r))})}setMyID(e){this.myID=e}onSubscription(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)}addMember(e){return null===this.get(e.user_id)&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)}removeMember(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var Ke=function(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{c(n.next(e))}catch(t){o(t)}}function a(e){try{c(n["throw"](e))}catch(t){o(t)}}function c(e){e.done?r(e.value):i(e.value).then(s,a)}c((n=n.apply(e,t||[])).next())})};class Ze extends Je{constructor(e,t){super(e,t),this.members=new Ge}authorize(e,t){super.authorize(e,(e,r)=>Ke(this,void 0,void 0,function*(){if(!e)if(null!=r.channel_data){var n=JSON.parse(r.channel_data);this.members.setMyID(n.user_id)}else{if(yield this.pusher.user.signinDonePromise,null==this.pusher.user.user_data){let e=p.buildLogSuffix("authorizationEndpoint");return ce.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${e}, or the user should be signed in.`),void t("Invalid auth response")}this.members.setMyID(this.pusher.user.user_data.id)}t(e,r)}))}handleEvent(e){var t=e.event;if(0===t.indexOf("pusher_internal:"))this.handleInternalEvent(e);else{var r=e.data,n={};e.user_id&&(n.user_id=e.user_id),this.emit(t,r,n)}}handleInternalEvent(e){var t=e.event,r=e.data;switch(t){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(e);break;case"pusher_internal:member_added":var n=this.members.addMember(r);this.emit("pusher:member_added",n);break;case"pusher_internal:member_removed":var i=this.members.removeMember(r);i&&this.emit("pusher:member_removed",i);break}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var Qe=r(1),et=r(0);class tt extends Je{constructor(e,t,r){super(e,t),this.key=null,this.nacl=r}authorize(e,t){super.authorize(e,(e,r)=>{if(e)return void t(e,r);let n=r["shared_secret"];n?(this.key=Object(et["decode"])(n),delete r["shared_secret"],t(null,r)):t(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null)})}trigger(e,t){throw new w("Client events are not currently supported for encrypted channels")}handleEvent(e){var t=e.event,r=e.data;0!==t.indexOf("pusher_internal:")&&0!==t.indexOf("pusher:")?this.handleEncryptedEvent(t,r):super.handleEvent(e)}handleEncryptedEvent(e,t){if(!this.key)return void ce.debug("Received encrypted event before key has been retrieved from the authEndpoint");if(!t.ciphertext||!t.nonce)return void ce.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+t);let r=Object(et["decode"])(t.ciphertext);if(r.length<this.nacl.secretbox.overheadLength)return void ce.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${r.length}`);let n=Object(et["decode"])(t.nonce);if(n.length<this.nacl.secretbox.nonceLength)return void ce.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${n.length}`);let i=this.nacl.secretbox.open(r,n,this.key);if(null===i)return ce.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),void this.authorize(this.pusher.connection.socket_id,(t,o)=>{t?ce.error(`Failed to make a request to the authEndpoint: ${o}. Unable to fetch new key, so dropping encrypted event`):(i=this.nacl.secretbox.open(r,n,this.key),null!==i?this.emit(e,this.getDataToEmit(i)):ce.error("Failed to decrypt event with new key. Dropping encrypted event"))});this.emit(e,this.getDataToEmit(i))}getDataToEmit(e){let t=Object(Qe["decode"])(e);try{return JSON.parse(t)}catch(r){return t}}}class rt extends Se{constructor(e,t){super(),this.state="initialized",this.connection=null,this.key=e,this.options=t,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var r=Kt.getNetwork();r.bind("online",()=>{this.timeline.info({netinfo:"online"}),"connecting"!==this.state&&"unavailable"!==this.state||this.retryIn(0)}),r.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){this.connection||this.runner||(this.strategy.isSupported()?(this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()):this.updateState("failed"))}send(e){return!!this.connection&&this.connection.send(e)}send_event(e,t,r){return!!this.connection&&this.connection.send_event(e,t,r)}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var e=(t,r)=>{t?this.runner=this.strategy.connect(0,e):"error"===r.action?(this.emit("error",{type:"HandshakeError",error:r.error}),this.timeline.error({handshakeError:r.error})):(this.abortConnecting(),this.handshakeCallbacks[r.action](r))};this.runner=this.strategy.connect(0,e)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var e=this.abandonConnection();e.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(e){this.timeline.info({action:"retry",delay:e}),e>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new F(e||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new F(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new F(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new F(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(e){return H({},e,{message:e=>{this.resetActivityCheck(),this.emit("message",e)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:e=>{this.emit("error",e)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(e){return H({},e,{connected:e=>{this.activityTimeout=Math.min(this.options.activityTimeout,e.activityTimeout,e.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(e.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let e=e=>t=>{t.error&&this.emit("error",{type:"WebSocketError",error:t.error}),e(t)};return{tls_only:e(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:e(()=>{this.disconnect()}),backoff:e(()=>{this.retryIn(1e3)}),retry:e(()=>{this.retryIn(0)})}}setConnection(e){for(var t in this.connection=e,this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()}abandonConnection(){if(this.connection){for(var e in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}}updateState(e,t){var r=this.state;if(this.state=e,r!==e){var n=e;"connected"===n&&(n+=" with new socket ID "+t.socket_id),ce.debug("State changed",r+" -> "+n),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:r,current:e}),this.emit(e,t)}}shouldRetry(){return"connecting"===this.state||"connected"===this.state}}class nt{constructor(){this.channels={}}add(e,t){return this.channels[e]||(this.channels[e]=it(e,t)),this.channels[e]}all(){return X(this.channels)}find(e){return this.channels[e]}remove(e){var t=this.channels[e];return delete this.channels[e],t}disconnect(){V(this.channels,function(e){e.disconnect()})}}function it(e,t){if(0===e.indexOf("private-encrypted-")){if(t.config.nacl)return st.createEncryptedChannel(e,t,t.config.nacl);let r="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",n=p.buildLogSuffix("encryptedChannelSupport");throw new w(`${r}. ${n}`)}if(0===e.indexOf("private-"))return st.createPrivateChannel(e,t);if(0===e.indexOf("presence-"))return st.createPresenceChannel(e,t);if(0===e.indexOf("#"))throw new m('Cannot create a channel with name "'+e+'".');return st.createChannel(e,t)}var ot={createChannels(){return new nt},createConnectionManager(e,t){return new rt(e,t)},createChannel(e,t){return new Xe(e,t)},createPrivateChannel(e,t){return new Je(e,t)},createPresenceChannel(e,t){return new Ze(e,t)},createEncryptedChannel(e,t,r){return new tt(e,t,r)},createTimelineSender(e,t){return new Ye(e,t)},createHandshake(e,t){return new Ve(e,t)},createAssistantToTheTransportManager(e,t,r){return new qe(e,t,r)}},st=ot;class at{constructor(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}getAssistant(e){return st.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class ct{constructor(e,t){this.strategies=e,this.loop=Boolean(t.loop),this.failFast=Boolean(t.failFast),this.timeout=t.timeout,this.timeoutLimit=t.timeoutLimit}isSupported(){return te(this.strategies,q.method("isSupported"))}connect(e,t){var r=this.strategies,n=0,i=this.timeout,o=null,s=(a,c)=>{c?t(null,c):(n+=1,this.loop&&(n%=r.length),n<r.length?(i&&(i*=2,this.timeoutLimit&&(i=Math.min(i,this.timeoutLimit))),o=this.tryStrategy(r[n],e,{timeout:i,failFast:this.failFast},s)):t(!0))};return o=this.tryStrategy(r[n],e,{timeout:i,failFast:this.failFast},s),{abort:function(){o.abort()},forceMinPriority:function(t){e=t,o&&o.forceMinPriority(t)}}}tryStrategy(e,t,r,n){var i=null,o=null;return r.timeout>0&&(i=new F(r.timeout,function(){o.abort(),n(!0)})),o=e.connect(t,function(e,t){e&&i&&i.isRunning()&&!r.failFast||(i&&i.ensureAborted(),n(e,t))}),{abort:function(){i&&i.ensureAborted(),o.abort()},forceMinPriority:function(e){o.forceMinPriority(e)}}}}class ut{constructor(e){this.strategies=e}isSupported(){return te(this.strategies,q.method("isSupported"))}connect(e,t){return lt(this.strategies,e,function(e,r){return function(n,i){r[e].error=n,n?ht(r)&&t(!0):(J(r,function(e){e.forceMinPriority(i.transport.priority)}),t(null,i))}})}}function lt(e,t,r){var n=G(e,function(e,n,i,o){return e.connect(t,r(n,o))});return{abort:function(){J(n,dt)},forceMinPriority:function(e){J(n,function(t){t.forceMinPriority(e)})}}}function ht(e){return re(e,function(e){return Boolean(e.error)})}function dt(e){e.error||e.aborted||(e.abort(),e.aborted=!0)}class pt{constructor(e,t,r){this.strategy=e,this.transports=t,this.ttl=r.ttl||18e5,this.usingTLS=r.useTLS,this.timeline=r.timeline}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.usingTLS,n=mt(r),i=n&&n.cacheSkipCount?n.cacheSkipCount:0,o=[this.strategy];if(n&&n.timestamp+this.ttl>=q.now()){var s=this.transports[n.transport];s&&(["ws","wss"].includes(n.transport)||i>3?(this.timeline.info({cached:!0,transport:n.transport,latency:n.latency}),o.push(new ct([s],{timeout:2*n.latency+1e3,failFast:!0}))):i++)}var a=q.now(),c=o.pop().connect(e,function n(s,u){s?(vt(r),o.length>0?(a=q.now(),c=o.pop().connect(e,n)):t(s)):(gt(r,u.transport.name,q.now()-a,i),t(null,u))});return{abort:function(){c.abort()},forceMinPriority:function(t){e=t,c&&c.forceMinPriority(t)}}}}function ft(e){return"pusherTransport"+(e?"TLS":"NonTLS")}function mt(e){var t=Kt.getLocalStorage();if(t)try{var r=t[ft(e)];if(r)return JSON.parse(r)}catch(n){vt(e)}return null}function gt(e,t,r,n){var i=Kt.getLocalStorage();if(i)try{i[ft(e)]=se({timestamp:q.now(),transport:t,latency:r,cacheSkipCount:n})}catch(o){}}function vt(e){var t=Kt.getLocalStorage();if(t)try{delete t[ft(e)]}catch(r){}}class yt{constructor(e,{delay:t}){this.strategy=e,this.options={delay:t}}isSupported(){return this.strategy.isSupported()}connect(e,t){var r,n=this.strategy,i=new F(this.options.delay,function(){r=n.connect(e,t)});return{abort:function(){i.ensureAborted(),r&&r.abort()},forceMinPriority:function(t){e=t,r&&r.forceMinPriority(t)}}}}class wt{constructor(e,t,r){this.test=e,this.trueBranch=t,this.falseBranch=r}isSupported(){var e=this.test()?this.trueBranch:this.falseBranch;return e.isSupported()}connect(e,t){var r=this.test()?this.trueBranch:this.falseBranch;return r.connect(e,t)}}class bt{constructor(e){this.strategy=e}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.strategy.connect(e,function(e,n){n&&r.abort(),t(e,n)});return r}}function _t(e){return function(){return e.isSupported()}}var kt=function(e,t,r){var n={};function i(t,i,o,s,a){var c=r(e,t,i,o,s,a);return n[t]=c,c}var o,s=Object.assign({},t,{hostNonTLS:e.wsHost+":"+e.wsPort,hostTLS:e.wsHost+":"+e.wssPort,httpPath:e.wsPath}),a=Object.assign({},s,{useTLS:!0}),c=Object.assign({},t,{hostNonTLS:e.httpHost+":"+e.httpPort,hostTLS:e.httpHost+":"+e.httpsPort,httpPath:e.httpPath}),u={loop:!0,timeout:15e3,timeoutLimit:6e4},l=new at({minPingDelay:1e4,maxPingDelay:e.activityTimeout}),h=new at({lives:2,minPingDelay:1e4,maxPingDelay:e.activityTimeout}),d=i("ws","ws",3,s,l),p=i("wss","ws",3,a,l),f=i("sockjs","sockjs",1,c),m=i("xhr_streaming","xhr_streaming",1,c,h),g=i("xdr_streaming","xdr_streaming",1,c,h),v=i("xhr_polling","xhr_polling",1,c),y=i("xdr_polling","xdr_polling",1,c),w=new ct([d],u),b=new ct([p],u),_=new ct([f],u),k=new ct([new wt(_t(m),m,g)],u),S=new ct([new wt(_t(v),v,y)],u),x=new ct([new wt(_t(k),new ut([k,new yt(S,{delay:4e3})]),S)],u),C=new wt(_t(x),x,_);return o=t.useTLS?new ut([w,new yt(C,{delay:2e3})]):new ut([w,new yt(b,{delay:2e3}),new yt(C,{delay:5e3})]),new pt(new bt(new wt(_t(d),o,C)),n,{ttl:18e5,timeline:t.timeline,useTLS:t.useTLS})},St=kt,xt=function(){var e=this;e.timeline.info(e.buildTimelineMessage({transport:e.name+(e.options.useTLS?"s":"")})),e.hooks.isInitialized()?e.changeState("initialized"):e.hooks.file?(e.changeState("initializing"),u.load(e.hooks.file,{useTLS:e.options.useTLS},function(t,r){e.hooks.isInitialized()?(e.changeState("initialized"),r(!0)):(t&&e.onError(t),e.onClose(),r(!1))})):e.onClose()},Ct={getRequest:function(e){var t=new window.XDomainRequest;return t.ontimeout=function(){e.emit("error",new g),e.close()},t.onerror=function(t){e.emit("error",t),e.close()},t.onprogress=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText)},t.onload=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText),e.emit("finished",200),e.close()},t},abortRequest:function(e){e.ontimeout=e.onerror=e.onprogress=e.onload=null,e.abort()}},Et=Ct;const At=262144;class Ot extends Se{constructor(e,t,r){super(),this.hooks=e,this.method=t,this.url=r}start(e){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},Kt.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)}close(){this.unloader&&(Kt.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(e,t){while(1){var r=this.advanceBuffer(t);if(!r)break;this.emit("chunk",{status:e,data:r})}this.isBufferTooLong(t)&&this.emit("buffer_too_long")}advanceBuffer(e){var t=e.slice(this.position),r=t.indexOf("\n");return-1!==r?(this.position+=r+1,t.slice(0,r)):null}isBufferTooLong(e){return this.position===e.length&&e.length>At}}var It;(function(e){e[e["CONNECTING"]=0]="CONNECTING",e[e["OPEN"]=1]="OPEN",e[e["CLOSED"]=3]="CLOSED"})(It||(It={}));var Tt=It,Mt=1;class Rt{constructor(e,t){this.hooks=e,this.session=Nt(1e3)+"/"+jt(8),this.location=Pt(t),this.readyState=Tt.CONNECTING,this.openStream()}send(e){return this.sendRaw(JSON.stringify([e]))}ping(){this.hooks.sendHeartbeat(this)}close(e,t){this.onClose(e,t,!0)}sendRaw(e){if(this.readyState!==Tt.OPEN)return!1;try{return Kt.createSocketRequest("POST",Lt(Dt(this.location,this.session))).start(e),!0}catch(t){return!1}}reconnect(){this.closeStream(),this.openStream()}onClose(e,t,r){this.closeStream(),this.readyState=Tt.CLOSED,this.onclose&&this.onclose({code:e,reason:t,wasClean:r})}onChunk(e){if(200===e.status){var t;this.readyState===Tt.OPEN&&this.onActivity();var r=e.data.slice(0,1);switch(r){case"o":t=JSON.parse(e.data.slice(1)||"{}"),this.onOpen(t);break;case"a":t=JSON.parse(e.data.slice(1)||"[]");for(var n=0;n<t.length;n++)this.onEvent(t[n]);break;case"m":t=JSON.parse(e.data.slice(1)||"null"),this.onEvent(t);break;case"h":this.hooks.onHeartbeat(this);break;case"c":t=JSON.parse(e.data.slice(1)||"[]"),this.onClose(t[0],t[1],!0);break}}}onOpen(e){this.readyState===Tt.CONNECTING?(e&&e.hostname&&(this.location.base=Bt(this.location.base,e.hostname)),this.readyState=Tt.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(e){this.readyState===Tt.OPEN&&this.onmessage&&this.onmessage({data:e})}onActivity(){this.onactivity&&this.onactivity()}onError(e){this.onerror&&this.onerror(e)}openStream(){this.stream=Kt.createSocketRequest("POST",Lt(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",e=>{this.onChunk(e)}),this.stream.bind("finished",e=>{this.hooks.onFinished(this,e)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(e){q.defer(()=>{this.onError(e),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function Pt(e){var t=/([^\?]*)\/*(\??.*)/.exec(e);return{base:t[1],queryString:t[2]}}function Dt(e,t){return e.base+"/"+t+"/xhr_send"}function Lt(e){var t=-1===e.indexOf("?")?"?":"&";return e+t+"t="+ +new Date+"&n="+Mt++}function Bt(e,t){var r=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(e);return r[1]+t+r[3]}function Nt(e){return Kt.randomInt(e)}function jt(e){for(var t=[],r=0;r<e;r++)t.push(Nt(32).toString(32));return t.join("")}var Ft=Rt,Ut={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr_streaming"+e.queryString},onHeartbeat:function(e){e.sendRaw("[]")},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){e.onClose(1006,"Connection interrupted ("+t+")",!1)}},zt=Ut,qt={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr"+e.queryString},onHeartbeat:function(){},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){200===t?e.reconnect():e.onClose(1006,"Connection interrupted ("+t+")",!1)}},Ht=qt,$t={getRequest:function(e){var t=Kt.getXHRAPI(),r=new t;return r.onreadystatechange=r.onprogress=function(){switch(r.readyState){case 3:r.responseText&&r.responseText.length>0&&e.onChunk(r.status,r.responseText);break;case 4:r.responseText&&r.responseText.length>0&&e.onChunk(r.status,r.responseText),e.emit("finished",r.status),e.close();break}},r},abortRequest:function(e){e.onreadystatechange=null,e.abort()}},Wt=$t,Vt={createStreamingSocket(e){return this.createSocket(zt,e)},createPollingSocket(e){return this.createSocket(Ht,e)},createSocket(e,t){return new Ft(e,t)},createXHR(e,t){return this.createRequest(Wt,e,t)},createRequest(e,t,r){return new Ot(e,t,r)}},Yt=Vt;Yt.createXDR=function(e,t){return this.createRequest(Et,e,t)};var Xt,Jt=Yt,Gt={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:i,DependenciesReceivers:c,getDefaultStrategy:St,Transports:Fe,transportConnectionInitializer:xt,HTTPFactory:Jt,TimelineTransport:me,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(e){window.Pusher=e;var t=()=>{this.onDocumentBody(e.ready)};window.JSON?t():u.load("json2",{},t)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:x,jsonp:le}},onDocumentBody(e){document.body?e():setTimeout(()=>{this.onDocumentBody(e)},0)},createJSONPRequest(e,t){return new de(e,t)},createScriptRequest(e){return new he(e)},getLocalStorage(){try{return window.localStorage}catch(e){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var e=this.getXHRAPI();return new e},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return ze},createWebSocket(e){var t=this.getWebSocketAPI();return new t(e)},createSocketRequest(e,t){if(this.isXHRSupported())return this.HTTPFactory.createXHR(e,t);if(this.isXDRSupported(0===t.indexOf("https:")))return this.HTTPFactory.createXDR(e,t);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var e=this.getXHRAPI();return Boolean(e)&&void 0!==(new e).withCredentials},isXDRSupported(e){var t=e?"https:":"http:",r=this.getProtocol();return Boolean(window["XDomainRequest"])&&r===t},addUnloadListener(e){void 0!==window.addEventListener?window.addEventListener("unload",e,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",e)},removeUnloadListener(e){void 0!==window.addEventListener?window.removeEventListener("unload",e,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",e)},randomInt(e){const t=function(){const e=window.crypto||window["msCrypto"],t=e.getRandomValues(new Uint32Array(1))[0];return t/Math.pow(2,32)};return Math.floor(t()*e)}},Kt=Gt;(function(e){e[e["ERROR"]=3]="ERROR",e[e["INFO"]=6]="INFO",e[e["DEBUG"]=7]="DEBUG"})(Xt||(Xt={}));var Zt=Xt;class Qt{constructor(e,t,r){this.key=e,this.session=t,this.events=[],this.options=r||{},this.sent=0,this.uniqueID=0}log(e,t){e<=this.options.level&&(this.events.push(H({},t,{timestamp:q.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(e){this.log(Zt.ERROR,e)}info(e){this.log(Zt.INFO,e)}debug(e){this.log(Zt.DEBUG,e)}isEmpty(){return 0===this.events.length}send(e,t){var r=H({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(r,(e,r)=>{e||this.sent++,t&&t(e,r)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class er{constructor(e,t,r,n){this.name=e,this.priority=t,this.transport=r,this.options=n||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(e,t){if(!this.isSupported())return tr(new _,t);if(this.priority<e)return tr(new v,t);var r=!1,n=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),i=null,o=function(){n.unbind("initialized",o),n.connect()},s=function(){i=st.createHandshake(n,function(e){r=!0,u(),t(null,e)})},a=function(e){u(),t(e)},c=function(){var e;u(),e=se(n),t(new y(e))},u=function(){n.unbind("initialized",o),n.unbind("open",s),n.unbind("error",a),n.unbind("closed",c)};return n.bind("initialized",o),n.bind("open",s),n.bind("error",a),n.bind("closed",c),n.initialize(),{abort:()=>{r||(u(),i?i.close():n.close())},forceMinPriority:e=>{r||this.priority<e&&(i?i.close():n.close())}}}}function tr(e,t){return q.defer(function(){t(e)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:rr}=Kt;var nr=function(e,t,r,n,i,o){var s=rr[r];if(!s)throw new b(r);var a,c=(!e.enabledTransports||-1!==W(e.enabledTransports,t))&&(!e.disabledTransports||-1===W(e.disabledTransports,t));return c?(i=Object.assign({ignoreNullOrigin:e.ignoreNullOrigin},i),a=new er(t,n,o?o.getAssistant(s):s,i)):a=ir,a},ir={isSupported:function(){return!1},connect:function(e,t){var r=q.defer(function(){t(new _)});return{abort:function(){r.ensureAborted()},forceMinPriority:function(){}}}};function or(e){if(null==e)throw"You must pass an options object";if(null==e.cluster)throw"Options object must provide a cluster";"disableStats"in e&&ce.warn("The disableStats option is deprecated in favor of enableStats")}const sr=(e,t)=>{var r="socket_id="+encodeURIComponent(e.socketId);for(var n in t.params)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(t.params[n]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var n in e)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n])}return r},ar=e=>{if("undefined"===typeof Kt.getAuthorizers()[e.transport])throw`'${e.transport}' is not a recognized auth transport`;return(t,r)=>{const n=sr(t,e);Kt.getAuthorizers()[e.transport](Kt,n,e,d.UserAuthentication,r)}};var cr=ar;const ur=(e,t)=>{var r="socket_id="+encodeURIComponent(e.socketId);for(var n in r+="&channel_name="+encodeURIComponent(e.channelName),t.params)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(t.params[n]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var n in e)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n])}return r},lr=e=>{if("undefined"===typeof Kt.getAuthorizers()[e.transport])throw`'${e.transport}' is not a recognized auth transport`;return(t,r)=>{const n=ur(t,e);Kt.getAuthorizers()[e.transport](Kt,n,e,d.ChannelAuthorization,r)}};var hr=lr;const dr=(e,t,r)=>{const n={authTransport:t.transport,authEndpoint:t.endpoint,auth:{params:t.params,headers:t.headers}};return(t,i)=>{const o=e.channel(t.channelName),s=r(o,n);s.authorize(t.socketId,i)}};function pr(e,t){let r={activityTimeout:e.activityTimeout||s.activityTimeout,cluster:e.cluster,httpPath:e.httpPath||s.httpPath,httpPort:e.httpPort||s.httpPort,httpsPort:e.httpsPort||s.httpsPort,pongTimeout:e.pongTimeout||s.pongTimeout,statsHost:e.statsHost||s.stats_host,unavailableTimeout:e.unavailableTimeout||s.unavailableTimeout,wsPath:e.wsPath||s.wsPath,wsPort:e.wsPort||s.wsPort,wssPort:e.wssPort||s.wssPort,enableStats:yr(e),httpHost:fr(e),useTLS:vr(e),wsHost:mr(e),userAuthenticator:wr(e),channelAuthorizer:_r(e,t)};return"disabledTransports"in e&&(r.disabledTransports=e.disabledTransports),"enabledTransports"in e&&(r.enabledTransports=e.enabledTransports),"ignoreNullOrigin"in e&&(r.ignoreNullOrigin=e.ignoreNullOrigin),"timelineParams"in e&&(r.timelineParams=e.timelineParams),"nacl"in e&&(r.nacl=e.nacl),r}function fr(e){return e.httpHost?e.httpHost:e.cluster?`sockjs-${e.cluster}.pusher.com`:s.httpHost}function mr(e){return e.wsHost?e.wsHost:gr(e.cluster)}function gr(e){return`ws-${e}.pusher.com`}function vr(e){return"https:"===Kt.getProtocol()||!1!==e.forceTLS}function yr(e){return"enableStats"in e?e.enableStats:"disableStats"in e&&!e.disableStats}function wr(e){const t=Object.assign(Object.assign({},s.userAuthentication),e.userAuthentication);return"customHandler"in t&&null!=t["customHandler"]?t["customHandler"]:cr(t)}function br(e,t){let r;return"channelAuthorization"in e?r=Object.assign(Object.assign({},s.channelAuthorization),e.channelAuthorization):(r={transport:e.authTransport||s.authTransport,endpoint:e.authEndpoint||s.authEndpoint},"auth"in e&&("params"in e.auth&&(r.params=e.auth.params),"headers"in e.auth&&(r.headers=e.auth.headers)),"authorizer"in e&&(r.customHandler=dr(t,r,e.authorizer))),r}function _r(e,t){const r=br(e,t);return"customHandler"in r&&null!=r["customHandler"]?r["customHandler"]:hr(r)}class kr extends Se{constructor(e){super(function(e,t){ce.debug(`No callbacks on watchlist events for ${e}`)}),this.pusher=e,this.bindWatchlistInternalEvent()}handleEvent(e){e.data.events.forEach(e=>{this.emit(e.name,e)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",e=>{var t=e.event;"pusher_internal:watchlist_events"===t&&this.handleEvent(e)})}}function Sr(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});return{promise:r,resolve:e,reject:t}}var xr=Sr;class Cr extends Se{constructor(e){super(function(e,t){ce.debug("No callbacks on user for "+e)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(e,t)=>{if(e)return ce.warn(`Error during signin: ${e}`),void this._cleanup();this.pusher.send_event("pusher:signin",{auth:t.auth,user_data:t.user_data})},this.pusher=e,this.pusher.connection.bind("state_change",({previous:e,current:t})=>{"connected"!==e&&"connected"===t&&this._signin(),"connected"===e&&"connected"!==t&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new kr(e),this.pusher.connection.bind("message",e=>{var t=e.event;"pusher:signin_success"===t&&this._onSigninSuccess(e.data),this.serverToUserChannel&&this.serverToUserChannel.name===e.channel&&this.serverToUserChannel.handleEvent(e)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),"connected"===this.pusher.connection.state&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(e){try{this.user_data=JSON.parse(e.user_data)}catch(t){return ce.error(`Failed parsing user data after signin: ${e.user_data}`),void this._cleanup()}if("string"!==typeof this.user_data.id||""===this.user_data.id)return ce.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),void this._cleanup();this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const e=e=>{e.subscriptionPending&&e.subscriptionCancelled?e.reinstateSubscription():e.subscriptionPending||"connected"!==this.pusher.connection.state||e.subscribe()};this.serverToUserChannel=new Xe(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((e,t)=>{0!==e.indexOf("pusher_internal:")&&0!==e.indexOf("pusher:")&&this.emit(e,t)}),e(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested)return;if(this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:e,resolve:t,reject:r}=xr();e.done=!1;const n=()=>{e.done=!0};e.then(n).catch(n),this.signinDonePromise=e,this._signinDoneResolve=t}}class Er{static ready(){Er.isReady=!0;for(var e=0,t=Er.instances.length;e<t;e++)Er.instances[e].connect()}static getClientFeatures(){return Y(Q({ws:Kt.Transports.ws},function(e){return e.isSupported({})}))}constructor(e,t){Or(e),or(t),this.key=e,this.config=pr(t,this),this.channels=st.createChannels(),this.global_emitter=new Se,this.sessionID=Kt.randomInt(1e9),this.timeline=new Qt(this.key,this.sessionID,{cluster:this.config.cluster,features:Er.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:Zt.INFO,version:s.VERSION}),this.config.enableStats&&(this.timelineSender=st.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+Kt.TimelineTransport.name}));var r=e=>Kt.getDefaultStrategy(this.config,e,nr);this.connection=st.createConnectionManager(this.key,{getStrategy:r,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:Boolean(this.config.useTLS)}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",e=>{var t=e.event,r=0===t.indexOf("pusher_internal:");if(e.channel){var n=this.channel(e.channel);n&&n.handleEvent(e)}r||this.global_emitter.emit(e.event,e.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",e=>{ce.warn(e)}),Er.instances.push(this),this.timeline.info({instances:Er.instances.length}),this.user=new Cr(this),Er.isReady&&this.connect()}channel(e){return this.channels.find(e)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),t=this.timelineSender;this.timelineSenderTimer=new U(6e4,function(){t.send(e)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(e,t,r){return this.global_emitter.bind(e,t,r),this}unbind(e,t,r){return this.global_emitter.unbind(e,t,r),this}bind_global(e){return this.global_emitter.bind_global(e),this}unbind_global(e){return this.global_emitter.unbind_global(e),this}unbind_all(e){return this.global_emitter.unbind_all(),this}subscribeAll(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)}subscribe(e){var t=this.channels.add(e,this);return t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():t.subscriptionPending||"connected"!==this.connection.state||t.subscribe(),t}unsubscribe(e){var t=this.channels.find(e);t&&t.subscriptionPending?t.cancelSubscription():(t=this.channels.remove(e),t&&t.subscribed&&t.unsubscribe())}send_event(e,t,r){return this.connection.send_event(e,t,r)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}Er.instances=[],Er.isReady=!1,Er.logToConsole=!1,Er.Runtime=Kt,Er.ScriptReceivers=Kt.ScriptReceivers,Er.DependenciesReceivers=Kt.DependenciesReceivers,Er.auth_callbacks=Kt.auth_callbacks;var Ar=t["default"]=Er;function Or(e){if(null===e||void 0===e)throw"You must pass your app key when you instantiate Pusher."}Kt.setup(Er)}])})},6586:function(e){
27
27
  /*!
28
28
  * sweetalert2 v11.26.24
29
29
  * Released under the MIT License.
30
30
  */
31
- (function(t,r){e.exports=r()})(0,function(){"use strict";function e(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function t(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(t,r){return t.get(e(t,r))}function n(e,r,n){t(e,r),r.set(e,n)}function i(t,r,n){return t.set(e(t,r),n),n}const o=100,s={},a=()=>{s.previousActiveElement instanceof HTMLElement?(s.previousActiveElement.focus(),s.previousActiveElement=null):document.body&&document.body.focus()},c=e=>new Promise(t=>{if(!e)return t();const r=window.scrollX,n=window.scrollY;s.restoreFocusTimeout=setTimeout(()=>{a(),t()},o),window.scrollTo(r,n)}),u="swal2-",l=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],h=l.reduce((e,t)=>(e[t]=u+t,e),{}),d=["success","warning","info","question","error"],p=d.reduce((e,t)=>(e[t]=u+t,e),{}),f="SweetAlert2:",m=e=>e.charAt(0).toUpperCase()+e.slice(1),g=e=>{console.warn(`${f} ${"object"===typeof e?e.join(" "):e}`)},v=e=>{console.error(`${f} ${e}`)},y=[],w=e=>{y.includes(e)||(y.push(e),g(e))},b=(e,t=null)=>{w(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},_=e=>"function"===typeof e?e():e,k=e=>e&&"function"===typeof e.toPromise,S=e=>k(e)?e.toPromise():Promise.resolve(e),x=e=>e&&Promise.resolve(e)===e,C=()=>navigator.userAgent.includes("Firefox"),E=()=>document.body.querySelector(`.${h.container}`),A=e=>{const t=E();return t?t.querySelector(e):null},O=e=>A(`.${e}`),I=()=>O(h.popup),T=()=>O(h.icon),M=()=>O(h["icon-content"]),R=()=>O(h.title),P=()=>O(h["html-container"]),D=()=>O(h.image),L=()=>O(h["progress-steps"]),B=()=>O(h["validation-message"]),N=()=>A(`.${h.actions} .${h.confirm}`),j=()=>A(`.${h.actions} .${h.cancel}`),F=()=>A(`.${h.actions} .${h.deny}`),U=()=>O(h["input-label"]),z=()=>A(`.${h.loader}`),q=()=>O(h.actions),H=()=>O(h.footer),$=()=>O(h["timer-progress-bar"]),W=()=>O(h.close),V='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',X=()=>{const e=I();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),r=Array.from(t).sort((e,t)=>{const r=parseInt(e.getAttribute("tabindex")||"0"),n=parseInt(t.getAttribute("tabindex")||"0");return r>n?1:r<n?-1:0}),n=e.querySelectorAll(V),i=Array.from(n).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(r.concat(i))].filter(e=>pe(e))},Y=()=>Z(document.body,h.shown)&&!Z(document.body,h["toast-shown"])&&!Z(document.body,h["no-backdrop"]),G=()=>{const e=I();return!!e&&Z(e,h.toast)},J=()=>{const e=I();return!!e&&e.hasAttribute("data-loading")},K=(e,t)=>{if(e.textContent="",t){const r=new DOMParser,n=r.parseFromString(t,"text/html"),i=n.querySelector("head");i&&Array.from(i.childNodes).forEach(t=>{e.appendChild(t)});const o=n.querySelector("body");o&&Array.from(o.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},Z=(e,t)=>{if(!t)return!1;const r=t.split(/\s+/);for(let n=0;n<r.length;n++)if(!e.classList.contains(r[n]))return!1;return!0},Q=(e,t)=>{Array.from(e.classList).forEach(r=>{Object.values(h).includes(r)||Object.values(p).includes(r)||Object.values(t.showClass||{}).includes(r)||e.classList.remove(r)})},ee=(e,t,r)=>{if(Q(e,t),!t.customClass)return;const n=t.customClass[r];n&&("string"===typeof n||n.forEach?ie(e,n):g(`Invalid type of customClass.${r}! Expected string or iterable object, got "${typeof n}"`))},te=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${h.popup} > .${h[t]}`);case"checkbox":return e.querySelector(`.${h.popup} > .${h.checkbox} input`);case"radio":return e.querySelector(`.${h.popup} > .${h.radio} input:checked`)||e.querySelector(`.${h.popup} > .${h.radio} input:first-child`);case"range":return e.querySelector(`.${h.popup} > .${h.range} input`);default:return e.querySelector(`.${h.popup} > .${h.input}`)}},re=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},ne=(e,t,r)=>{if(!e||!t)return;const n="string"===typeof t?t.split(/\s+/).filter(Boolean):t,i=Array.isArray(e)?e:[e];i.forEach(e=>{n.forEach(t=>{r?e.classList.add(t):e.classList.remove(t)})})},ie=(e,t)=>{ne(e,t,!0)},oe=(e,t)=>{ne(e,t,!1)},se=(e,t)=>{const r=Array.from(e.children);for(let n=0;n<r.length;n++){const e=r[n];if(e instanceof HTMLElement&&Z(e,t))return e}},ae=(e,t,r)=>{r===`${parseInt(`${r}`)}`&&(r=parseInt(r)),r||0===r?e.style.setProperty(t,"number"===typeof r?`${r}px`:r):e.style.removeProperty(t)},ce=(e,t="flex")=>{e&&(e.style.display=t)},ue=e=>{e&&(e.style.display="none")},le=(e,t="block")=>{e&&new MutationObserver(()=>{de(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},he=(e,t,r,n)=>{const i=e.querySelector(t);i&&i.style.setProperty(r,n)},de=(e,t,r="flex")=>{t?ce(e,r):ue(e)},pe=e=>Boolean(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),fe=()=>!pe(N())&&!pe(F())&&!pe(j()),me=e=>Boolean(e.scrollHeight>e.clientHeight),ge=(e,t)=>{let r=e;while(r&&r!==t){if(me(r))return!0;r=r.parentElement}return!1},ve=e=>{const t=window.getComputedStyle(e),r=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return r>0||n>0},ye=(e,t=!1)=>{const r=$();r&&pe(r)&&(t&&(r.style.transition="none",r.style.width="100%"),setTimeout(()=>{r.style.transition=`width ${e/1e3}s linear`,r.style.width="0%"},10))},we=()=>{const e=$();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const r=parseInt(window.getComputedStyle(e).width),n=t/r*100;e.style.width=`${n}%`},be=()=>"undefined"===typeof window||"undefined"===typeof document,_e=`\n <div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">\n <button type="button" class="${h.close}"></button>\n <ul class="${h["progress-steps"]}"></ul>\n <div class="${h.icon}"></div>\n <img class="${h.image}" />\n <h2 class="${h.title}" id="${h.title}"></h2>\n <div class="${h["html-container"]}" id="${h["html-container"]}"></div>\n <input class="${h.input}" id="${h.input}" />\n <input type="file" class="${h.file}" />\n <div class="${h.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${h.select}" id="${h.select}"></select>\n <div class="${h.radio}"></div>\n <label class="${h.checkbox}">\n <input type="checkbox" id="${h.checkbox}" />\n <span class="${h.label}"></span>\n </label>\n <textarea class="${h.textarea}" id="${h.textarea}"></textarea>\n <div class="${h["validation-message"]}" id="${h["validation-message"]}"></div>\n <div class="${h.actions}">\n <div class="${h.loader}"></div>\n <button type="button" class="${h.confirm}"></button>\n <button type="button" class="${h.deny}"></button>\n <button type="button" class="${h.cancel}"></button>\n </div>\n <div class="${h.footer}"></div>\n <div class="${h["timer-progress-bar-container"]}">\n <div class="${h["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),ke=()=>{const e=E();return!!e&&(e.remove(),oe([document.documentElement,document.body],[h["no-backdrop"],h["toast-shown"],h["has-column"]]),!0)},Se=()=>{s.currentInstance&&s.currentInstance.resetValidationMessage()},xe=()=>{const e=I();if(!e)return;const t=se(e,h.input),r=se(e,h.file),n=e.querySelector(`.${h.range} input`),i=e.querySelector(`.${h.range} output`),o=se(e,h.select),s=e.querySelector(`.${h.checkbox} input`),a=se(e,h.textarea);t&&(t.oninput=Se),r&&(r.onchange=Se),o&&(o.onchange=Se),s&&(s.onchange=Se),a&&(a.oninput=Se),n&&i&&(n.oninput=()=>{Se(),i.value=n.value},n.onchange=()=>{Se(),i.value=n.value})},Ce=e=>{if("string"===typeof e){const t=document.querySelector(e);if(!t)throw new Error(`Target element "${e}" not found`);return t}return e},Ee=e=>{const t=I();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))},Ae=e=>{"rtl"===window.getComputedStyle(e).direction&&(ie(E(),h.rtl),s.isRTL=!0)},Oe=e=>{const t=ke();if(be())return void v("SweetAlert2 requires document to initialize");const r=document.createElement("div");r.className=h.container,t&&ie(r,h["no-transition"]),K(r,_e),r.dataset["swal2Theme"]=e.theme;const n=Ce(e.target||"body");n.appendChild(r),e.topLayer&&(r.setAttribute("popover",""),r.showPopover()),Ee(e),Ae(n),xe()},Ie=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"===typeof e?Te(e,t):e&&K(t,e)},Te=(e,t)=>{"jquery"in e?Me(t,e):K(t,e.toString())},Me=(e,t)=>{if(e.textContent="",0 in t)for(let r=0;r in t;r++)e.appendChild(t[r].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Re=(e,t)=>{const r=q(),n=z();r&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?ce(r):ue(r),ee(r,t,"actions"),Pe(r,n,t),K(n,t.loaderHtml||""),ee(n,t,"loader"))};function Pe(e,t,r){const n=N(),i=F(),o=j();n&&i&&o&&(Be(n,"confirm",r),Be(i,"deny",r),Be(o,"cancel",r),De(n,i,o,r),r.reverseButtons&&(r.toast?(e.insertBefore(o,n),e.insertBefore(i,n)):(e.insertBefore(o,t),e.insertBefore(i,t),e.insertBefore(n,t))))}function De(e,t,r,n){if(!n.buttonsStyling)return void oe([e,t,r],h.styled);ie([e,t,r],h.styled);const i=[[e,"confirm",n.confirmButtonColor],[t,"deny",n.denyButtonColor],[r,"cancel",n.cancelButtonColor]];i.forEach(([e,t,r])=>{r&&e.style.setProperty(`--swal2-${t}-button-background-color`,r),Le(e)})}function Le(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const r=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${r}`))}function Be(e,t,r){const n=m(t);de(e,r[`show${n}Button`],"inline-block"),K(e,r[`${t}ButtonText`]||""),e.setAttribute("aria-label",r[`${t}ButtonAriaLabel`]||""),e.className=h[t],ee(e,r,`${t}Button`)}const Ne=(e,t)=>{const r=W();r&&(K(r,t.closeButtonHtml||""),ee(r,t,"closeButton"),de(r,t.showCloseButton),r.setAttribute("aria-label",t.closeButtonAriaLabel||""))},je=(e,t)=>{const r=E();r&&(Fe(r,t.backdrop),Ue(r,t.position),ze(r,t.grow),ee(r,t,"container"))};function Fe(e,t){"string"===typeof t?e.style.background=t:t||ie([document.documentElement,document.body],h["no-backdrop"])}function Ue(e,t){t&&(t in h?ie(e,h[t]):(g('The "position" parameter is not valid, defaulting to "center"'),ie(e,h.center)))}function ze(e,t){t&&ie(e,h[`grow-${t}`])}var qe={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};const He=["input","file","range","select","radio","checkbox","textarea"],$e=(e,t)=>{const r=I();if(!r)return;const n=qe.innerParams.get(e),i=!n||t.input!==n.input;He.forEach(e=>{const n=se(r,h[e]);n&&(Xe(e,t.inputAttributes),n.className=h[e],i&&ue(n))}),t.input&&(i&&We(t),Ye(t))},We=e=>{if(!e.input)return;if(!Qe[e.input])return void v(`Unexpected type of input! Expected ${Object.keys(Qe).join(" | ")}, got "${e.input}"`);const t=Ke(e.input);if(!t)return;const r=Qe[e.input](t,e);ce(t),e.inputAutoFocus&&setTimeout(()=>{re(r)})},Ve=e=>{for(let t=0;t<e.attributes.length;t++){const r=e.attributes[t].name;["id","type","value","style"].includes(r)||e.removeAttribute(r)}},Xe=(e,t)=>{const r=I();if(!r)return;const n=te(r,e);if(n){Ve(n);for(const e in t)n.setAttribute(e,t[e])}},Ye=e=>{if(!e.input)return;const t=Ke(e.input);t&&ee(t,e,"input")},Ge=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},Je=(e,t,r)=>{if(r.inputLabel){const n=document.createElement("label"),i=h["input-label"];n.setAttribute("for",e.id),n.className=i,"object"===typeof r.customClass&&ie(n,r.customClass.inputLabel),n.innerText=r.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ke=e=>{const t=I();if(t)return se(t,h[e]||h.input)},Ze=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:x(t)||g(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Qe={};Qe.text=Qe.email=Qe.password=Qe.number=Qe.tel=Qe.url=Qe.search=Qe.date=Qe["datetime-local"]=Qe.time=Qe.week=Qe.month=(e,t)=>{const r=e;return Ze(r,t.inputValue),Je(r,r,t),Ge(r,t),r.type=t.input,r},Qe.file=(e,t)=>{const r=e;return Je(r,r,t),Ge(r,t),r},Qe.range=(e,t)=>{const r=e,n=r.querySelector("input"),i=r.querySelector("output");return n&&(Ze(n,t.inputValue),n.type=t.input,Je(n,e,t)),i&&Ze(i,t.inputValue),e},Qe.select=(e,t)=>{const r=e;if(r.textContent="",t.inputPlaceholder){const e=document.createElement("option");K(e,t.inputPlaceholder),e.value="",e.disabled=!0,e.selected=!0,r.appendChild(e)}return Je(r,r,t),r},Qe.radio=e=>{const t=e;return t.textContent="",e},Qe.checkbox=(e,t)=>{const r=I();if(!r)throw new Error("Popup not found");const n=te(r,"checkbox");if(!n)throw new Error("Checkbox input not found");n.value="1",n.checked=Boolean(t.inputValue);const i=e,o=i.querySelector("span");if(o){const e=t.inputPlaceholder||t.inputLabel;e&&K(o,e)}return n},Qe.textarea=(e,t)=>{const r=e;Ze(r,t.inputValue),Ge(r,t),Je(r,r,t);const n=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const e=I();if(!e)return;const i=parseInt(window.getComputedStyle(e).width),o=()=>{if(!document.body.contains(r))return;const e=r.offsetWidth+n(r),o=I();o&&(e>i?o.style.width=`${e}px`:ae(o,"width",t.width))};new MutationObserver(o).observe(r,{attributes:!0,attributeFilter:["style"]})}}),r};const et=(e,t)=>{const r=P();r&&(le(r),ee(r,t,"htmlContainer"),t.html?(Ie(t.html,r),ce(r,"block")):t.text?(r.textContent=t.text,ce(r,"block")):ue(r),$e(e,t))},tt=(e,t)=>{const r=H();r&&(le(r),de(r,Boolean(t.footer),"block"),t.footer&&Ie(t.footer,r),ee(r,t,"footer"))},rt=(e,t)=>{const r=qe.innerParams.get(e),n=T();if(!n)return;if(r&&t.icon===r.icon)return at(n,t),void nt(n,t);if(!t.icon&&!t.iconHtml)return void ue(n);if(t.icon&&-1===Object.keys(p).indexOf(t.icon))return v(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void ue(n);ce(n),at(n,t),nt(n,t),ie(n,t.showClass&&t.showClass.icon);const i=window.matchMedia("(prefers-color-scheme: dark)");i.addEventListener("change",it)},nt=(e,t)=>{for(const[r,n]of Object.entries(p))t.icon!==r&&oe(e,n);ie(e,t.icon&&p[t.icon]),ct(e,t),it(),ee(e,t,"icon")},it=()=>{const e=I();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),r=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let n=0;n<r.length;n++)r[n].style.backgroundColor=t},ot=e=>`\n ${e.animation?'<div class="swal2-success-circular-line-left"></div>':""}\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div>\n ${e.animation?'<div class="swal2-success-fix"></div>':""}\n ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`,st='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n',at=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let r=e.innerHTML,n="";if(t.iconHtml)n=ut(t.iconHtml);else if("success"===t.icon)n=ot(t),r=r.replace(/ style=".*?"/g,"");else if("error"===t.icon)n=st;else if(t.icon){const e={question:"?",warning:"!",info:"i"};n=ut(e[t.icon])}r.trim()!==n.trim()&&K(e,n)},ct=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const r of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])he(e,r,"background-color",t.iconColor);he(e,".swal2-success-ring","border-color",t.iconColor)}},ut=e=>`<div class="${h["icon-content"]}">${e}</div>`,lt=(e,t)=>{const r=D();r&&(t.imageUrl?(ce(r,""),r.setAttribute("src",t.imageUrl),r.setAttribute("alt",t.imageAlt||""),ae(r,"width",t.imageWidth),ae(r,"height",t.imageHeight),r.className=h.image,ee(r,t,"image")):ue(r))};let ht=!1,dt=0,pt=0,ft=0,mt=0;const gt=e=>{e.addEventListener("mousedown",yt),document.body.addEventListener("mousemove",wt),e.addEventListener("mouseup",bt),e.addEventListener("touchstart",yt),document.body.addEventListener("touchmove",wt),e.addEventListener("touchend",bt)},vt=e=>{e.removeEventListener("mousedown",yt),document.body.removeEventListener("mousemove",wt),e.removeEventListener("mouseup",bt),e.removeEventListener("touchstart",yt),document.body.removeEventListener("touchmove",wt),e.removeEventListener("touchend",bt)},yt=e=>{const t=I();if(!t)return;const r=T();if(e.target===t||r&&r.contains(e.target)){ht=!0;const r=_t(e);dt=r.clientX,pt=r.clientY,ft=parseInt(t.style.insetInlineStart)||0,mt=parseInt(t.style.insetBlockStart)||0,ie(t,"swal2-dragging")}},wt=e=>{const t=I();if(t&&ht){let{clientX:r,clientY:n}=_t(e);const i=r-dt;t.style.insetInlineStart=`${ft+(s.isRTL?-i:i)}px`,t.style.insetBlockStart=`${mt+(n-pt)}px`}},bt=()=>{const e=I();ht=!1,oe(e,"swal2-dragging")},_t=e=>{const t=e.type.startsWith("touch")?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},kt=(e,t)=>{const r=E(),n=I();if(r&&n){if(t.toast){ae(r,"width",t.width),n.style.width="100%";const e=z();e&&n.insertBefore(e,T())}else ae(n,"width",t.width);ae(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),ue(B()),St(n,t),t.draggable&&!t.toast?(ie(n,h.draggable),gt(n)):(oe(n,h.draggable),vt(n))}},St=(e,t)=>{const r=t.showClass||{};e.className=`${h.popup} ${pe(e)?r.popup:""}`,t.toast?(ie([document.documentElement,document.body],h["toast-shown"]),ie(e,h.toast)):ie(e,h.modal),ee(e,t,"popup"),"string"===typeof t.customClass&&ie(e,t.customClass),t.icon&&ie(e,h[`icon-${t.icon}`])},xt=(e,t)=>{const r=L();if(!r)return;const{progressSteps:n,currentProgressStep:i}=t;n&&0!==n.length&&void 0!==i?(ce(r),r.textContent="",i>=n.length&&g("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((e,o)=>{const s=Ct(e);if(r.appendChild(s),o===i&&ie(s,h["active-progress-step"]),o!==n.length-1){const e=Et(t);r.appendChild(e)}})):ue(r)},Ct=e=>{const t=document.createElement("li");return ie(t,h["progress-step"]),K(t,e),t},Et=e=>{const t=document.createElement("li");return ie(t,h["progress-step-line"]),e.progressStepsDistance&&ae(t,"width",e.progressStepsDistance),t},At=(e,t)=>{const r=R();r&&(le(r),de(r,Boolean(t.title||t.titleText),"block"),t.title&&Ie(t.title,r),t.titleText&&(r.innerText=t.titleText),ee(r,t,"title"))},Ot=(e,t)=>{var r;kt(e,t),je(e,t),xt(e,t),rt(e,t),lt(e,t),At(e,t),Ne(e,t),et(e,t),Re(e,t),tt(e,t);const n=I();"function"===typeof t.didRender&&n&&t.didRender(n),null===(r=s.eventEmitter)||void 0===r||r.emit("didRender",n)},It=()=>pe(I()),Tt=()=>{var e;return null===(e=N())||void 0===e?void 0:e.click()},Mt=()=>{var e;return null===(e=F())||void 0===e?void 0:e.click()},Rt=()=>{var e;return null===(e=j())||void 0===e?void 0:e.click()},Pt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Dt=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){const t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},Lt=(e,t,r)=>{if(Dt(e),!t.toast){const n=e=>Ft(t,e,r);e.keydownHandler=n;const i=t.keydownListenerCapture?window:I();if(i){e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture;const r=n;e.keydownTarget.addEventListener("keydown",r,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},Bt=(e,t)=>{var r;const n=X();return n.length?(e+=t,-2===e&&(e=n.length-1),e===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus(),!(C()&&n[e]instanceof HTMLIFrameElement)):(null===(r=I())||void 0===r||r.focus(),!0)},Nt=["ArrowRight","ArrowDown"],jt=["ArrowLeft","ArrowUp"],Ft=(e,t,r)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ut(t,e):"Tab"===t.key?zt(t):[...Nt,...jt].includes(t.key)?qt(t.key):"Escape"===t.key&&Ht(t,e,r)))},Ut=(e,t)=>{if(!_(t.allowEnterKey))return;const r=I();if(!r||!t.input)return;const n=te(r,t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Tt(),e.preventDefault()}},zt=e=>{const t=e.target,r=X();let n=-1;for(let o=0;o<r.length;o++)if(t===r[o]){n=o;break}let i=!0;i=e.shiftKey?Bt(n,-1):Bt(n,1),e.stopPropagation(),i&&e.preventDefault()},qt=e=>{const t=q(),r=N(),n=F(),i=j();if(!t||!r||!n||!i)return;const o=[r,n,i];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;const s=Nt.includes(e)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;if(a){for(let e=0;e<t.children.length;e++){if(a=a[s],!a)return;if(a instanceof HTMLButtonElement&&pe(a))break}a instanceof HTMLButtonElement&&a.focus()}},Ht=(e,t,r)=>{e.preventDefault(),_(t.allowEscapeKey)&&r(Pt.esc)};var $t={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Wt=()=>{const e=E(),t=Array.from(document.body.children);t.forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},Vt=()=>{const e=Array.from(document.body.children);e.forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},Xt="undefined"!==typeof window&&Boolean(window.GestureEvent),Yt=Xt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Gt=()=>{if(Xt&&!Z(document.body,h.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",ie(document.body,h.iosfix),Jt()}},Jt=()=>{const e=E();if(!e)return;let t;e.ontouchstart=e=>{t=Kt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Kt=e=>{const t=e.target,r=E(),n=P();return!(!r||!n)&&(!Zt(e)&&!Qt(e)&&(t===r||!(me(r)||!(t instanceof HTMLElement)||ge(t,n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||me(n)&&n.contains(t))))},Zt=e=>Boolean(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),Qt=e=>e.touches&&e.touches.length>1,er=()=>{if(Z(document.body,h.iosfix)){const e=parseInt(document.body.style.top,10);oe(document.body,h.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},tr=()=>{const e=document.createElement("div");e.className=h["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let rr=null;const nr=e=>{null===rr&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(rr=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${rr+tr()}px`)},ir=()=>{null!==rr&&(document.body.style.paddingRight=`${rr}px`,rr=null)};function or(e,t,r,n){G()?fr(e,n):(c(r).then(()=>fr(e,n)),Dt(s)),Xt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),Y()&&(ir(),er(),Vt()),sr()}function sr(){oe([document.documentElement,document.body],[h.shown,h["height-auto"],h["no-backdrop"],h["toast-shown"]])}function ar(e){e=hr(e);const t=$t.swalPromiseResolve.get(this),r=cr(this);this.isAwaitingPromise?e.isDismissed||(lr(this),t(e)):r&&t(e)}const cr=e=>{const t=I();if(!t)return!1;const r=qe.innerParams.get(e);if(!r||Z(t,r.hideClass.popup))return!1;oe(t,r.showClass.popup),ie(t,r.hideClass.popup);const n=E();return oe(n,r.showClass.backdrop),ie(n,r.hideClass.backdrop),dr(e,t,r),!0};function ur(e){const t=$t.swalPromiseReject.get(this);lr(this),t&&t(e)}const lr=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,qe.innerParams.get(e)||e._destroy())},hr=e=>"undefined"===typeof e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),dr=(e,t,r)=>{var n;const i=E(),o=ve(t);"function"===typeof r.willClose&&r.willClose(t),null===(n=s.eventEmitter)||void 0===n||n.emit("willClose",t),o&&i?pr(e,t,i,Boolean(r.returnFocus),r.didClose):i&&or(e,i,Boolean(r.returnFocus),r.didClose)},pr=(e,t,r,n,i)=>{s.swalCloseEventFinishedCallback=or.bind(null,e,r,n,i);const o=function(e){var r;e.target===t&&(null===(r=s.swalCloseEventFinishedCallback)||void 0===r||r.call(s),delete s.swalCloseEventFinishedCallback,t.removeEventListener("animationend",o),t.removeEventListener("transitionend",o))};t.addEventListener("animationend",o),t.addEventListener("transitionend",o)},fr=(e,t)=>{setTimeout(()=>{var r;"function"===typeof t&&t.bind(e.params)(),null===(r=s.eventEmitter)||void 0===r||r.emit("didClose"),e._destroy&&e._destroy()})},mr=e=>{let t=I();if(t||new yi,t=I(),!t)return;const r=z();G()?ue(T()):gr(t,e),ce(r),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},gr=(e,t)=>{const r=q(),n=z();r&&n&&(!t&&pe(N())&&(t=N()),ce(r),t&&(ue(t),n.setAttribute("data-button-to-replace",t.className),r.insertBefore(n,t)),ie([e,r],h.loading))},vr=(e,t)=>{"select"===t.input||"radio"===t.input?kr(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(k(t.inputValue)||x(t.inputValue))&&(mr(N()),Sr(e,t))},yr=(e,t)=>{const r=e.getInput();if(!r)return null;switch(t.input){case"checkbox":return wr(r);case"radio":return br(r);case"file":return _r(r);default:return t.inputAutoTrim?r.value.trim():r.value}},wr=e=>e.checked?1:0,br=e=>e.checked?e.value:null,_r=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,kr=(e,t)=>{const r=I();if(!r)return;const n=e=>{"select"===t.input?xr(r,Er(e),t):"radio"===t.input&&Cr(r,Er(e),t)};k(t.inputOptions)||x(t.inputOptions)?(mr(N()),S(t.inputOptions).then(t=>{e.hideLoading(),n(t)})):"object"===typeof t.inputOptions?n(t.inputOptions):v("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},Sr=(e,t)=>{const r=e.getInput();r&&(ue(r),S(t.inputValue).then(n=>{r.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,ce(r),r.focus(),e.hideLoading()}).catch(t=>{v(`Error in inputValue promise: ${t}`),r.value="",ce(r),r.focus(),e.hideLoading()}))};function xr(e,t,r){const n=se(e,h.select);if(!n)return;const i=(e,t,n)=>{const i=document.createElement("option");i.value=n,K(i,t),i.selected=Ar(n,r.inputValue),e.appendChild(i)};t.forEach(e=>{const t=e[0],r=e[1];if(Array.isArray(r)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),r.forEach(t=>i(e,t[1],t[0]))}else i(n,r,t)}),n.focus()}function Cr(e,t,r){const n=se(e,h.radio);if(!n)return;t.forEach(e=>{const t=e[0],i=e[1],o=document.createElement("input"),s=document.createElement("label");o.type="radio",o.name=h.radio,o.value=t,Ar(t,r.inputValue)&&(o.checked=!0);const a=document.createElement("span");K(a,i),a.className=h.label,s.appendChild(o),s.appendChild(a),n.appendChild(s)});const i=n.querySelectorAll("input");i.length&&i[0].focus()}const Er=e=>{const t=e instanceof Map?Array.from(e):Object.entries(e);return t.map(([e,t])=>[e,"object"===typeof t?Er(t):t])},Ar=(e,t)=>Boolean(t)&&null!==t&&void 0!==t&&t.toString()===e.toString(),Or=e=>{const t=qe.innerParams.get(e);e.disableButtons(),t.input?Mr(e,"confirm"):Br(e,!0)},Ir=e=>{const t=qe.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Mr(e,"deny"):Pr(e,!1)},Tr=(e,t)=>{e.disableButtons(),t(Pt.cancel)},Mr=(e,t)=>{const r=qe.innerParams.get(e);if(!r.input)return void v(`The "input" parameter is needed to be set when using returnInputValueOn${m(t)}`);const n=e.getInput(),i=yr(e,r);r.inputValidator?Rr(e,i,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(r.validationMessage||n.validationMessage)):"deny"===t?Pr(e,i):Br(e,i)},Rr=(e,t,r)=>{const n=qe.innerParams.get(e);e.disableInput();const i=Promise.resolve().then(()=>S(n.inputValidator(t,n.validationMessage)));i.then(n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===r?Pr(e,t):Br(e,t)})},Pr=(e,t)=>{const r=qe.innerParams.get(e);if(r.showLoaderOnDeny&&mr(F()),r.preDeny){e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preDeny(t,r.validationMessage)));n.then(r=>{!1===r?(e.hideLoading(),lr(e)):e.close({isDenied:!0,value:"undefined"===typeof r?t:r})}).catch(t=>Lr(e,t))}else e.close({isDenied:!0,value:t})},Dr=(e,t)=>{e.close({isConfirmed:!0,value:t})},Lr=(e,t)=>{e.rejectPromise(t)},Br=(e,t)=>{const r=qe.innerParams.get(e);if(r.showLoaderOnConfirm&&mr(),r.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preConfirm(t,r.validationMessage)));n.then(r=>{pe(B())||!1===r?(e.hideLoading(),lr(e)):Dr(e,"undefined"===typeof r?t:r)}).catch(t=>Lr(e,t))}else Dr(e,t)};function Nr(){const e=qe.innerParams.get(this);if(!e)return;const t=qe.domCache.get(this);ue(t.loader),G()?e.icon&&ce(T()):jr(t),oe([t.popup,t.actions],h.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1;const r=qe.focusedElement.get(this);r instanceof HTMLElement&&document.activeElement===document.body&&r.focus(),qe.focusedElement.delete(this)}const jr=e=>{const t=e.loader.getAttribute("data-button-to-replace"),r=t?e.popup.getElementsByClassName(t):[];r.length?ce(r[0],"inline-block"):fe()&&ue(e.actions)};function Fr(){const e=qe.innerParams.get(this),t=qe.domCache.get(this);return t?te(t.popup,e.input):null}function Ur(e,t,r){const n=qe.domCache.get(e);t.forEach(e=>{n[e].disabled=r})}function zr(e,t){const r=I();if(r&&e)if("radio"===e.type){const e=r.querySelectorAll(`[name="${h.radio}"]`);for(let r=0;r<e.length;r++)e[r].disabled=t}else e.disabled=t}function qr(){Ur(this,["confirmButton","denyButton","cancelButton"],!1);const e=qe.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),qe.focusedElement.delete(this)}function Hr(){qe.focusedElement.set(this,document.activeElement),Ur(this,["confirmButton","denyButton","cancelButton"],!0)}function $r(){zr(this.getInput(),!1)}function Wr(){zr(this.getInput(),!0)}function Vr(e){const t=qe.domCache.get(this),r=qe.innerParams.get(this);K(t.validationMessage,e),t.validationMessage.className=h["validation-message"],r.customClass&&r.customClass.validationMessage&&ie(t.validationMessage,r.customClass.validationMessage),ce(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",h["validation-message"]),re(n),ie(n,h.inputerror))}function Xr(){const e=qe.domCache.get(this);e.validationMessage&&ue(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),oe(t,h.inputerror))}const Yr={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},Gr=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Jr={allowEnterKey:void 0},Kr=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Zr=e=>Object.prototype.hasOwnProperty.call(Yr,e),Qr=e=>-1!==Gr.indexOf(e),en=e=>Jr[e],tn=e=>{Zr(e)||g(`Unknown parameter "${e}"`)},rn=e=>{Kr.includes(e)&&g(`The parameter "${e}" is incompatible with toasts`)},nn=e=>{const t=en(e);t&&b(e,t)},on=e=>{!1===e.backdrop&&e.allowOutsideClick&&g('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&g(`Invalid theme "${e.theme}"`);for(const t in e)tn(t),e.toast&&rn(t),nn(t)};function sn(e){const t=E(),r=I(),n=qe.innerParams.get(this);if(!r||Z(r,n.hideClass.popup))return void g("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const i=an(e),o=Object.assign({},n,i);on(o),t&&(t.dataset["swal2Theme"]=o.theme),Ot(this,o),qe.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const an=e=>{const t={};return Object.keys(e).forEach(r=>{if(Qr(r)){const n=e;t[r]=n[r]}else g(`Invalid parameter to update: ${r}`)}),t};function cn(){var e;const t=qe.domCache.get(this),r=qe.innerParams.get(this);r?(t.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"===typeof r.didDestroy&&r.didDestroy(),null===(e=s.eventEmitter)||void 0===e||e.emit("didDestroy"),un(this)):ln(this)}const un=e=>{ln(e),delete e.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},ln=e=>{e.isAwaitingPromise?(hn(qe,e),e.isAwaitingPromise=!0):(hn($t,e),hn(qe,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},hn=(e,t)=>{for(const r in e)e[r].delete(t)};var dn=Object.freeze({__proto__:null,_destroy:cn,close:ar,closeModal:ar,closePopup:ar,closeToast:ar,disableButtons:Hr,disableInput:Wr,disableLoading:Nr,enableButtons:qr,enableInput:$r,getInput:Fr,handleAwaitingPromise:lr,hideLoading:Nr,rejectPromise:ur,resetValidationMessage:Xr,showValidationMessage:Vr,update:sn});const pn=(e,t,r)=>{e.toast?fn(e,t,r):(vn(t),yn(t),wn(e,t,r))},fn=(e,t,r)=>{t.popup.onclick=()=>{e&&(mn(e)||e.timer||e.input)||r(Pt.close)}},mn=e=>Boolean(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let gn=!1;const vn=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(gn=!0)}}},yn=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(gn=!0)}}},wn=(e,t,r)=>{t.container.onclick=n=>{gn?gn=!1:n.target===t.container&&_(e.allowOutsideClick)&&r(Pt.backdrop)}},bn=e=>"object"===typeof e&&null!==e&&"jquery"in e,_n=e=>e instanceof Element||bn(e),kn=e=>{const t={};return"object"!==typeof e[0]||_n(e[0])?["title","html","icon"].forEach((r,n)=>{const i=e[n];"string"===typeof i||_n(i)?t[r]=i:void 0!==i&&v(`Unexpected type of ${r}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(t,e[0]),t};function Sn(...e){return new this(...e)}function xn(e){class t extends(this){_main(t,r){return super._main(t,Object.assign({},e,r))}}return t}const Cn=()=>s.timeout&&s.timeout.getTimerLeft(),En=()=>{if(s.timeout)return we(),s.timeout.stop()},An=()=>{if(s.timeout){const e=s.timeout.start();return ye(e),e}},On=()=>{const e=s.timeout;return e&&(e.running?En():An())},In=e=>{if(s.timeout){const t=s.timeout.increase(e);return ye(t,!0),t}},Tn=()=>Boolean(s.timeout&&s.timeout.isRunning());let Mn=!1;const Rn={};function Pn(e="data-swal-template"){Rn[e]=this,Mn||(document.body.addEventListener("click",Dn),Mn=!0)}const Dn=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Rn){const r=t.getAttribute&&t.getAttribute(e);if(r)return void Rn[e].fire({template:r})}};class Ln{constructor(){this.events={}}_getHandlersByEventName(e){return"undefined"===typeof this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const r=this._getHandlersByEventName(e);r.includes(t)||r.push(t)}once(e,t){const r=(...n)=>{this.removeListener(e,r),t.apply(this,n)};this.on(e,r)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(v){console.error(v)}})}removeListener(e,t){const r=this._getHandlersByEventName(e),n=r.indexOf(t);n>-1&&r.splice(n,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}s.eventEmitter=new Ln;const Bn=(e,t)=>{s.eventEmitter&&s.eventEmitter.on(e,t)},Nn=(e,t)=>{s.eventEmitter&&s.eventEmitter.once(e,t)},jn=(e,t)=>{s.eventEmitter&&(e?t?s.eventEmitter.removeListener(e,t):s.eventEmitter.removeAllListeners(e):s.eventEmitter.reset())};var Fn=Object.freeze({__proto__:null,argsToParams:kn,bindClickHandler:Pn,clickCancel:Rt,clickConfirm:Tt,clickDeny:Mt,enableLoading:mr,fire:Sn,getActions:q,getCancelButton:j,getCloseButton:W,getConfirmButton:N,getContainer:E,getDenyButton:F,getFocusableElements:X,getFooter:H,getHtmlContainer:P,getIcon:T,getIconContent:M,getImage:D,getInputLabel:U,getLoader:z,getPopup:I,getProgressSteps:L,getTimerLeft:Cn,getTimerProgressBar:$,getTitle:R,getValidationMessage:B,increaseTimer:In,isDeprecatedParameter:en,isLoading:J,isTimerRunning:Tn,isUpdatableParameter:Qr,isValidParameter:Zr,isVisible:It,mixin:xn,off:jn,on:Bn,once:Nn,resumeTimer:An,showLoading:mr,stopTimer:En,toggleTimer:On});class Un{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const zn=["swal-title","swal-html","swal-footer"],qn=e=>{const t="string"===typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const r=t.content;Jn(r);const n=Object.assign(Hn(r),$n(r),Wn(r),Vn(r),Xn(r),Yn(r),Gn(r,zn));return n},Hn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-param"));return r.forEach(e=>{Kn(e,["name","value"]);const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(r in Yr&&"boolean"===typeof Yr[r]?t[r]="false"!==n:r in Yr&&"object"===typeof Yr[r]?t[r]=JSON.parse(n):t[r]=n)}),t},$n=e=>{const t={},r=Array.from(e.querySelectorAll("swal-function-param"));return r.forEach(e=>{const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(t[r]=new Function(`return ${n}`)())}),t},Wn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-button"));return r.forEach(e=>{Kn(e,["type","color","aria-label"]);const r=e.getAttribute("type");if(!r||!["confirm","cancel","deny"].includes(r))return;t[`${r}ButtonText`]=e.innerHTML,t[`show${m(r)}Button`]=!0;const n=e.getAttribute("color");null!==n&&(t[`${r}ButtonColor`]=n);const i=e.getAttribute("aria-label");null!==i&&(t[`${r}ButtonAriaLabel`]=i)}),t},Vn=e=>{const t={},r=e.querySelector("swal-image");if(r){Kn(r,["src","width","height","alt"]);const e=r.getAttribute("src");null!==e&&(t.imageUrl=e||void 0);const n=r.getAttribute("width");null!==n&&(t.imageWidth=n||void 0);const i=r.getAttribute("height");null!==i&&(t.imageHeight=i||void 0);const o=r.getAttribute("alt");null!==o&&(t.imageAlt=o||void 0)}return t},Xn=e=>{const t={},r=e.querySelector("swal-icon");return r&&(Kn(r,["type","color"]),r.hasAttribute("type")&&(t.icon=r.getAttribute("type")),r.hasAttribute("color")&&(t.iconColor=r.getAttribute("color")),t.iconHtml=r.innerHTML),t},Yn=e=>{const t={},r=e.querySelector("swal-input");r&&(Kn(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(e=>{Kn(e,["value"]);const r=e.getAttribute("value");if(!r)return;const n=e.innerHTML;t.inputOptions[r]=n})),t},Gn=(e,t)=>{const r={};for(const n in t){const i=t[n],o=e.querySelector(i);o&&(Kn(o,[]),r[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return r},Jn=e=>{const t=zn.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const r=e.tagName.toLowerCase();t.includes(r)||g(`Unrecognized element <${r}>`)})},Kn=(e,t)=>{Array.from(e.attributes).forEach(r=>{-1===t.indexOf(r.name)&&g([`Unrecognized attribute "${r.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])})},Zn=10,Qn=e=>{var t,r;const n=E(),i=I();if(!n||!i)return;"function"===typeof e.willOpen&&e.willOpen(i),null===(t=s.eventEmitter)||void 0===t||t.emit("willOpen",i);const o=window.getComputedStyle(document.body),a=o.overflowY;if(ni(n,i,e),setTimeout(()=>{ti(n,i)},Zn),Y()&&(ri(n,void 0!==e.scrollbarPadding&&e.scrollbarPadding,a),Wt()),Yt&&!1===e.backdrop&&i.scrollHeight>n.clientHeight&&(n.style.pointerEvents="auto"),G()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"===typeof e.didOpen){const t=e.didOpen;setTimeout(()=>t(i))}null===(r=s.eventEmitter)||void 0===r||r.emit("didOpen",i)},ei=e=>{const t=I();if(!t||e.target!==t)return;const r=E();r&&(t.removeEventListener("animationend",ei),t.removeEventListener("transitionend",ei),r.style.overflowY="auto",oe(r,h["no-transition"]))},ti=(e,t)=>{ve(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",ei),t.addEventListener("transitionend",ei)):e.style.overflowY="auto"},ri=(e,t,r)=>{Gt(),t&&"hidden"!==r&&nr(r),setTimeout(()=>{e.scrollTop=0})},ni=(e,t,r)=>{var n;null!==(n=r.showClass)&&void 0!==n&&n.backdrop&&ie(e,r.showClass.backdrop),r.animation?(t.style.setProperty("opacity","0","important"),ce(t,"grid"),setTimeout(()=>{var e;null!==(e=r.showClass)&&void 0!==e&&e.popup&&ie(t,r.showClass.popup),t.style.removeProperty("opacity")},Zn)):ce(t,"grid"),ie([document.documentElement,document.body],h.shown),r.heightAuto&&r.backdrop&&!r.toast&&ie([document.documentElement,document.body],h["height-auto"])};var ii={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function oi(e){e.inputValidator||("email"===e.input&&(e.inputValidator=ii["email"]),"url"===e.input&&(e.inputValidator=ii["url"]))}function si(e){(!e.target||"string"===typeof e.target&&!document.querySelector(e.target)||"string"!==typeof e.target&&!e.target.appendChild)&&(g('Target parameter is not valid, defaulting to "body"'),e.target="body")}function ai(e){oi(e),e.showLoaderOnConfirm&&!e.preConfirm&&g("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),si(e),"string"===typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Oe(e)}let ci;var ui=new WeakMap;class li{constructor(...e){if(n(this,ui,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"undefined"===typeof window)return;ci=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,i(ui,this,this._main(ci.params))}_main(e,t={}){if(on(Object.assign({},t,e)),s.currentInstance){const e=$t.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:t}=s.currentInstance;s.currentInstance._destroy(),t||e({isDismissed:!0}),Y()&&Vt()}s.currentInstance=ci;const r=di(e,t);ai(r),Object.freeze(r),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);const n=pi(ci);return Ot(ci,r),qe.innerParams.set(ci,r),hi(ci,n,r)}then(e){return r(ui,this).then(e)}finally(e){return r(ui,this).finally(e)}}const hi=(e,t,r)=>new Promise((n,i)=>{const o=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};$t.swalPromiseResolve.set(e,n),$t.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{Or(e)},t.denyButton.onclick=()=>{Ir(e)},t.cancelButton.onclick=()=>{Tr(e,o)},t.closeButton.onclick=()=>{o(Pt.close)},pn(r,t,o),Lt(s,r,o),vr(e,r),Qn(r),fi(s,r,o),mi(t,r),setTimeout(()=>{t.container.scrollTop=0})}),di=(e,t)=>{const r=qn(e),n=Object.assign({},Yr,t,r,e);return n.showClass=Object.assign({},Yr.showClass,n.showClass),n.hideClass=Object.assign({},Yr.hideClass,n.hideClass),!1===n.animation&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},pi=e=>{const t={popup:I(),container:E(),actions:q(),confirmButton:N(),denyButton:F(),cancelButton:j(),loader:z(),closeButton:W(),validationMessage:B(),progressSteps:L()};return qe.domCache.set(e,t),t},fi=(e,t,r)=>{const n=$();ue(n),t.timer&&(e.timeout=new Un(()=>{r("timer"),delete e.timeout},t.timer),t.timerProgressBar&&n&&(ce(n),ee(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ye(t.timer)})))},mi=(e,t)=>{if(!t.toast)return _(t.allowEnterKey)?void(gi(e)||vi(e,t)||Bt(-1,1)):(b("allowEnterKey","preConfirm: () => false"),void e.popup.focus())},gi=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const r of t)if(r instanceof HTMLElement&&pe(r))return r.focus(),!0;return!1},vi=(e,t)=>t.focusDeny&&pe(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&pe(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!pe(e.confirmButton))&&(e.confirmButton.focus(),!0);li.prototype.disableButtons=Hr,li.prototype.enableButtons=qr,li.prototype.getInput=Fr,li.prototype.disableInput=Wr,li.prototype.enableInput=$r,li.prototype.hideLoading=Nr,li.prototype.disableLoading=Nr,li.prototype.showValidationMessage=Vr,li.prototype.resetValidationMessage=Xr,li.prototype.close=ar,li.prototype.closePopup=ar,li.prototype.closeModal=ar,li.prototype.closeToast=ar,li.prototype.rejectPromise=ur,li.prototype.update=sn,li.prototype._destroy=cn,Object.assign(li,Fn),Object.keys(dn).forEach(e=>{li[e]=function(...t){if(ci&&ci[e])return ci[e](...t)}}),li.DismissReason=Pt,li.version="11.26.24";const yi=li;return yi.default=yi,yi}),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var r=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=t);else try{r.innerHTML=t}catch(e){r.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:auto}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:auto}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}')},6253:function(e,t,r){"use strict";var n=r(8705);const i="AES-256-CBC",o=parseInt(i.match(/\d+/)?.[0]),s=(e,t)=>{const r=n.lib.WordArray.random(16),i=n.lib.WordArray.random(256),s=999,a=o/4,c=n.PBKDF2(t,i,{hasher:n.algo.SHA512,keySize:a/8,iterations:s}),u=n.AES.encrypt(e,c,{mode:n.mode.CBC,iv:r}),l=n.enc.Base64.stringify(u.ciphertext),h={ciphertext:l,iv:n.enc.Hex.stringify(r),salt:n.enc.Hex.stringify(i),iterations:s};return n.enc.Base64.stringify(n.enc.Utf8.parse(JSON.stringify(h)))},a=(e,t)=>{const r=JSON.parse(n.enc.Utf8.stringify(n.enc.Base64.parse(e))),i=n.enc.Hex.parse(r.salt),s=n.enc.Hex.parse(r.iv),a=r.ciphertext;let c=parseInt(r.iterations);c<=0&&(c=999);const u=o/4,l=n.PBKDF2(t,i,{hasher:n.algo.SHA512,keySize:u/8,iterations:c}),h=n.AES.decrypt(a,l,{mode:n.mode.CBC,iv:s});return h.toString(n.enc.Utf8)};t.A={encrypt:s,decrypt:a}},6448:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{allowOnlyNumber:function(){return allowOnlyNumber},allowedDecimalPlaces:function(){return allowedDecimalPlaces},customPasswordValidator:function(){return customPasswordValidator},dateFormatter:function(){return dateFormatter},decrypt:function(){return decrypt},encrypt:function(){return encrypt},fromNow:function(){return fromNow},getBgColorFromName:function(){return getBgColorFromName},getLocalStorageItem:function(){return getLocalStorageItem},getObjectProperty:function(){return getObjectProperty},getSessionStorageItem:function(){return getSessionStorageItem},getTextColorFromName:function(){return getTextColorFromName},highlightText:function(){return highlightText},httpBuildQuery:function(){return httpBuildQuery},imageExists:function(){return imageExists},isArray:function(){return isArray},isEmptyObj:function(){return isEmptyObj},isFunction:function(){return isFunction},isObject:function(){return isObject},isString:function(){return isString},loadRemoteEmbeddable:function(){return loadRemoteEmbeddable},numberFormat:function(){return numberFormat},setLocalStorageItem:function(){return setLocalStorageItem},setObjectProperty:function(){return setObjectProperty},setSessionStorageItem:function(){return setSessionStorageItem},ucFirst:function(){return ucFirst},uuid:function(){return uuid}});var lodash_es__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(8552),lodash_es__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8938),lodash_es__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4441),_encryption_service__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6253),date_fns__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2775),date_fns__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(129);const isString=e=>"string"===typeof e||e instanceof String,isArray=e=>Array.isArray(e),isFunction=e=>"function"===typeof e,isObject=e=>!!e&&e.constructor===Object,ucFirst=e=>e[0].toUpperCase()+e.substring(1).toLowerCase(),isEmptyObj=e=>(0,lodash_es__WEBPACK_IMPORTED_MODULE_1__.A)(e)&&!Object.keys(e).length,getObjectProperty=(e,t,r)=>{const n=(0,lodash_es__WEBPACK_IMPORTED_MODULE_0__.A)(e,t,r);return n||r},setObjectProperty=(e,t,r)=>(0,lodash_es__WEBPACK_IMPORTED_MODULE_2__.A)(e,t,r),getBgColorFromName=e=>{let t=0;e.split("").forEach(e=>{t=e.charCodeAt(0)+((t<<5)-t)});let r="#";for(let n=0;n<3;n++){const e=t>>8*n&255;r+=e.toString(16).padStart(2,"0")}return r},getTextColorFromName=(e,t="#FFFFFF",r="#000000")=>{const n=getBgColorFromName(e),i="#"===n.charAt(0)?n.substring(1,7):n,o=parseInt(i.substring(0,2),16),s=parseInt(i.substring(2,4),16),a=parseInt(i.substring(4,6),16),c=[o/255,s/255,a/255],u=c.map(e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)),l=.2126*u[0]+.7152*u[1]+.0722*u[2];return l>.179?r:t},encrypt=(e,t="")=>_encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.encrypt(e,t),decrypt=(e,t="")=>_encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.decrypt(e,t),setLocalStorageItem=(e,t,r="production")=>{"production"===r?localStorage.setItem(e,encrypt(JSON.stringify(t))):localStorage.setItem(e,JSON.stringify(t))},getLocalStorageItem=(e,t="production")=>{if(localStorage.getItem(e))return"production"===t?JSON.parse(decrypt(localStorage.getItem(e))):JSON.parse(localStorage.getItem(e))},setSessionStorageItem=(e,t,r="production")=>{"production"===r?sessionStorage.setItem(e,encrypt(JSON.stringify(t))):sessionStorage.setItem(e,JSON.stringify(t))},getSessionStorageItem=(e,t="production")=>{if(sessionStorage.getItem(e))return"production"===t?JSON.parse(decrypt(sessionStorage.getItem(e))):JSON.parse(sessionStorage.getItem(e))},customPasswordValidator=e=>{const t=/[A-Z]/.test(e),r=/[a-z]/.test(e),n=/[0-9]/.test(e),i=/[#?!@$%^&*-]/.test(e);return t&&r&&n&&i},allowOnlyNumber=e=>{if(e=e||window.event,"paste"==e.type){const t=e,r=t.clipboardData?.getData("Text");return!isNaN(r)||t.preventDefault()}{const t=e,r=t.which?t.which:t.keyCode;return!(r>31&&(r<48||r>57)&&46!==r)||t.preventDefault()}},allowedDecimalPlaces=(e,t)=>{if(e=e||window.event,"paste"==e.type){const r=e,n=r.clipboardData?.getData("Text"),i=n?.indexOf(".");return!(n.split(".").length>2||t<=0&&2===n.split(".").length||2===n.split(".").length&&i+1!=n.length-t)||r.preventDefault()}{const r=e,n=r.which?r.which:r.keyCode;if(t<=0)return!(["keyup","keydown"].includes(e.type)&&190===n||"keypress"==r.type&&46===n)||r.preventDefault();{const e=r.target,i=e.value,o=i.indexOf(".");return!(o>=0&&o<i.length-t||46===n&&2===i.split(".").length)||r.preventDefault()}}},highlightText=(e,t,r="success")=>e.replace(new RegExp(t,"gi"),e=>`<span class='text-${r}'>${e}</span>`),imageExists=(e,t)=>{const r=new Image;if(r.src=e,r.complete)return void 0!=t&&t(!0),!0;r.onload=()=>(void 0!=t&&t(!0),!0),r.onerror=()=>(void 0!=t&&t(!1),!1)},httpBuildQuery=e=>{const t=encodeURIComponent,r=Object.keys(e).map(r=>t(r)+"="+t(e[r])).join("&");return r},uuid=(e,t)=>{let r=e||"";return r+=Math.random().toString(36).substring(2,8)+Math.random().toString(36).substring(2,8),r+=t||"",r},dateFormatter=(e,t="dd-MM-yyyy")=>(0,date_fns__WEBPACK_IMPORTED_MODULE_4__.A)(new Date(e),t),loadRemoteEmbeddable=url=>(window.__LOADED_EMBEDDABLES__||(window.__LOADED_EMBEDDABLES__=new Set),window.__LOADED_EMBEDDABLES__.has(url)?Promise.resolve({}):eval(`import("${url}")`).then(e=>(window.__LOADED_EMBEDDABLES__.add(url),e))),fromNow=e=>(0,date_fns__WEBPACK_IMPORTED_MODULE_5__.A)(new Date(e),{addSuffix:!0}),numberFormat=(e,t,r,n)=>{t=t||0,"string"===typeof e&&(e=parseFloat(e)),r&&n||(r=".",n=",");let i=Math.round(Math.abs(e)*Math.pow(10,t))+"";i=1>e&&-1<e&&i.length<=t?Array(t-i.length+1).join("0")+i:i;let o=t?i.slice(0,-1*t):i.slice(0);const s=parseInt(o)||0;o=0==s?"0":o;const a=t?i.slice(-1*t):"";let c="";while(o.length>3)c=n+o.slice(-3)+c,o=o.slice(0,-3);return(e<0?"-":"")+o+c+(a?r+a:"")}},5156:function(){},7545:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:function(){return n}})},6096:function(e,t,r){"use strict";function n(){this.__data__=[],this.size=0}r.d(t,{A:function(){return w}});var i=n,o=r(6979);function s(e,t){var r=e.length;while(r--)if((0,o.A)(e[r][0],t))return r;return-1}var a=s,c=Array.prototype,u=c.splice;function l(e){var t=this.__data__,r=a(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():u.call(t,r,1),--this.size,!0}var h=l;function d(e){var t=this.__data__,r=a(t,e);return r<0?void 0:t[r][1]}var p=d;function f(e){return a(this.__data__,e)>-1}var m=f;function g(e,t){var r=this.__data__,n=a(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var v=g;function y(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}y.prototype.clear=i,y.prototype["delete"]=h,y.prototype.get=p,y.prototype.has=m,y.prototype.set=v;var w=y},5436:function(e,t,r){"use strict";var n=r(8869),i=r(9600),o=(0,n.A)(i.A,"Map");t.A=o},3269:function(e,t,r){"use strict";r.d(t,{A:function(){return z}});var n=r(8869),i=(0,n.A)(Object,"create"),o=i;function s(){this.__data__=o?o(null):{},this.size=0}var a=s;function c(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u=c,l="__lodash_hash_undefined__",h=Object.prototype,d=h.hasOwnProperty;function p(e){var t=this.__data__;if(o){var r=t[e];return r===l?void 0:r}return d.call(t,e)?t[e]:void 0}var f=p,m=Object.prototype,g=m.hasOwnProperty;function v(e){var t=this.__data__;return o?void 0!==t[e]:g.call(t,e)}var y=v,w="__lodash_hash_undefined__";function b(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=o&&void 0===t?w:t,this}var _=b;function k(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}k.prototype.clear=a,k.prototype["delete"]=u,k.prototype.get=f,k.prototype.has=y,k.prototype.set=_;var S=k,x=r(6096),C=r(5436);function E(){this.size=0,this.__data__={hash:new S,map:new(C.A||x.A),string:new S}}var A=E;function O(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var I=O;function T(e,t){var r=e.__data__;return I(t)?r["string"==typeof t?"string":"hash"]:r.map}var M=T;function R(e){var t=M(this,e)["delete"](e);return this.size-=t?1:0,t}var P=R;function D(e){return M(this,e).get(e)}var L=D;function B(e){return M(this,e).has(e)}var N=B;function j(e,t){var r=M(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var F=j;function U(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}U.prototype.clear=A,U.prototype["delete"]=P,U.prototype.get=L,U.prototype.has=N,U.prototype.set=F;var z=U},3516:function(e,t,r){"use strict";var n=r(9600),i=n.A.Symbol;t.A=i},6124:function(e,t,r){"use strict";var n=r(9271),i=r(6979),o=Object.prototype,s=o.hasOwnProperty;function a(e,t,r){var o=e[t];s.call(e,t)&&(0,i.A)(o,r)&&(void 0!==r||t in e)||(0,n.A)(e,t,r)}t.A=a},9271:function(e,t,r){"use strict";var n=r(1758);function i(e,t,r){"__proto__"==t&&n.A?(0,n.A)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.A=i},4044:function(e,t,r){"use strict";r.d(t,{A:function(){return y}});var n=r(3516),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n.A?n.A.toStringTag:void 0;function c(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(c){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}var u=c,l=Object.prototype,h=l.toString;function d(e){return h.call(e)}var p=d,f="[object Null]",m="[object Undefined]",g=n.A?n.A.toStringTag:void 0;function v(e){return null==e?void 0===e?m:f:g&&g in Object(e)?u(e):p(e)}var y=v},5118:function(e,t,r){"use strict";r.d(t,{A:function(){return M}});var n=r(6956),i=r(4089),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function a(e,t){if((0,n.A)(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!(0,i.A)(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}var c=a,u=r(3269),l="Expected a function";function h(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(l);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(h.Cache||u.A),r}h.Cache=u.A;var d=h,p=500;function f(e){var t=d(e,function(e){return r.size===p&&r.clear(),e}),r=t.cache;return t}var m=f,g=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g,y=m(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(g,function(e,r,n,i){t.push(n?i.replace(v,"$1"):r||e)}),t}),w=y,b=r(3516);function _(e,t){var r=-1,n=null==e?0:e.length,i=Array(n);while(++r<n)i[r]=t(e[r],r,e);return i}var k=_,S=1/0,x=b.A?b.A.prototype:void 0,C=x?x.toString:void 0;function E(e){if("string"==typeof e)return e;if((0,n.A)(e))return k(e,E)+"";if((0,i.A)(e))return C?C.call(e):"";var t=e+"";return"0"==t&&1/e==-S?"-0":t}var A=E;function O(e){return null==e?"":A(e)}var I=O;function T(e,t){return(0,n.A)(e)?e:c(e,t)?[e]:w(I(e))}var M=T},1758:function(e,t,r){"use strict";var n=r(8869),i=function(){try{var e=(0,n.A)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.A=i},6713:function(e,t,r){"use strict";var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.A=n},8869:function(e,t,r){"use strict";r.d(t,{A:function(){return A}});var n=r(405),i=r(9600),o=i.A["__core-js_shared__"],s=o,a=function(){var e=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function c(e){return!!a&&a in e}var u=c,l=r(7942),h=Function.prototype,d=h.toString;function p(e){if(null!=e){try{return d.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var f=p,m=/[\\^$.*+?()[\]{}|]/g,g=/^\[object .+?Constructor\]$/,v=Function.prototype,y=Object.prototype,w=v.toString,b=y.hasOwnProperty,_=RegExp("^"+w.call(b).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function k(e){if(!(0,l.A)(e)||u(e))return!1;var t=(0,n.A)(e)?_:g;return t.test(f(e))}var S=k;function x(e,t){return null==e?void 0:e[t]}var C=x;function E(e,t){var r=C(e,t);return S(r)?r:void 0}var A=E},7902:function(e,t,r){"use strict";function n(e,t){return function(r){return e(t(r))}}r.d(t,{A:function(){return s}});var i=n,o=i(Object.getPrototypeOf,Object),s=o},5378:function(e,t){"use strict";var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t=null==t?r:t,!!t&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<t}t.A=i},9600:function(e,t,r){"use strict";var n=r(6713),i="object"==typeof self&&self&&self.Object===Object&&self,o=n.A||i||Function("return this")();t.A=o},9322:function(e,t,r){"use strict";var n=r(4089),i=1/0;function o(e){if("string"==typeof e||(0,n.A)(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}t.A=o},6979:function(e,t){"use strict";function r(e,t){return e===t||e!==e&&t!==t}t.A=r},8552:function(e,t,r){"use strict";r.d(t,{A:function(){return c}});var n=r(5118),i=r(9322);function o(e,t){t=(0,n.A)(t,e);var r=0,o=t.length;while(null!=e&&r<o)e=e[(0,i.A)(t[r++])];return r&&r==o?e:void 0}var s=o;function a(e,t,r){var n=null==e?void 0:s(e,t);return void 0===n?r:n}var c=a},6956:function(e,t){"use strict";var r=Array.isArray;t.A=r},405:function(e,t,r){"use strict";var n=r(4044),i=r(7942),o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";function u(e){if(!(0,i.A)(e))return!1;var t=(0,n.A)(e);return t==s||t==a||t==o||t==c}t.A=u},7942:function(e,t){"use strict";function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.A=r},7313:function(e,t){"use strict";function r(e){return null!=e&&"object"==typeof e}t.A=r},8938:function(e,t,r){"use strict";var n=r(4044),i=r(7902),o=r(7313),s="[object Object]",a=Function.prototype,c=Object.prototype,u=a.toString,l=c.hasOwnProperty,h=u.call(Object);function d(e){if(!(0,o.A)(e)||(0,n.A)(e)!=s)return!1;var t=(0,i.A)(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==h}t.A=d},4089:function(e,t,r){"use strict";var n=r(4044),i=r(7313),o="[object Symbol]";function s(e){return"symbol"==typeof e||(0,i.A)(e)&&(0,n.A)(e)==o}t.A=s},4441:function(e,t,r){"use strict";r.d(t,{A:function(){return h}});var n=r(6124),i=r(5118),o=r(5378),s=r(7942),a=r(9322);function c(e,t,r,c){if(!(0,s.A)(e))return e;t=(0,i.A)(t,e);var u=-1,l=t.length,h=l-1,d=e;while(null!=d&&++u<l){var p=(0,a.A)(t[u]),f=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=h){var m=d[p];f=c?c(m,p,d):void 0,void 0===f&&(f=(0,s.A)(m)?m:(0,o.A)(t[u+1])?[]:{})}(0,n.A)(d,p,f),d=d[p]}return e}var u=c;function l(e,t,r){return null==e?e:u(e,t,r)}var h=l}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}!function(){__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return __webpack_require__.d(t,{a:t}),t}}(),function(){__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var __webpack_exports__={};return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AlertService:function(){return e},DataModifierService:function(){return r},DraggableService:function(){return i},EventBus:function(){return wi},HTTPBaseService:function(){return Nr},HelperService:function(){return h},HttpProcess:function(){return t},MixpanelService:function(){return pA},ShrEventBus:function(){return bi},ShrPusherService:function(){return Ci},default:function(){return fA}});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{alert:function(){return Dr},fire:function(){return Pr},toast:function(){return Lr}});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{makeRequest:function(){return gi},makeRequestToExecute:function(){return vi}});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{alterUsersForProfileStrip:function(){return yi}});const n={enableDragSort:e=>{window.onload=()=>{const t=document.querySelectorAll(e);Array.prototype.map.call(t,r=>{n.enableDragList(r),shrSafeLog(e,t)})}},enableDragList:e=>{Array.prototype.map.call(e.children,e=>{n.enableDragItem(e)})},enableDragItem:e=>{e.setAttribute("draggable",new Boolean(!0).toString()),e.ondrag=n.handleDrag,e.ondragend=n.handleDrop},handleDrag:e=>{const t=e.target,r=t.parentNode,n=e.clientX,i=e.clientY;t.classList.add("drag-sort-active");let o=null===document.elementFromPoint(n,i)?t:document.elementFromPoint(n,i);r===o?.parentNode&&(o=o!==t.nextSibling?o:o.nextSibling,r?.insertBefore(t,o))},handleDrop:e=>{e.target?.classList.remove("drag-sort-active")}};var i=n,o=__webpack_require__(6660),s=__webpack_require__.n(o);
31
+ (function(t,r){e.exports=r()})(0,function(){"use strict";function e(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function t(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(t,r){return t.get(e(t,r))}function n(e,r,n){t(e,r),r.set(e,n)}function i(t,r,n){return t.set(e(t,r),n),n}const o=100,s={},a=()=>{s.previousActiveElement instanceof HTMLElement?(s.previousActiveElement.focus(),s.previousActiveElement=null):document.body&&document.body.focus()},c=e=>new Promise(t=>{if(!e)return t();const r=window.scrollX,n=window.scrollY;s.restoreFocusTimeout=setTimeout(()=>{a(),t()},o),window.scrollTo(r,n)}),u="swal2-",l=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],h=l.reduce((e,t)=>(e[t]=u+t,e),{}),d=["success","warning","info","question","error"],p=d.reduce((e,t)=>(e[t]=u+t,e),{}),f="SweetAlert2:",m=e=>e.charAt(0).toUpperCase()+e.slice(1),g=e=>{console.warn(`${f} ${"object"===typeof e?e.join(" "):e}`)},v=e=>{console.error(`${f} ${e}`)},y=[],w=e=>{y.includes(e)||(y.push(e),g(e))},b=(e,t=null)=>{w(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},_=e=>"function"===typeof e?e():e,k=e=>e&&"function"===typeof e.toPromise,S=e=>k(e)?e.toPromise():Promise.resolve(e),x=e=>e&&Promise.resolve(e)===e,C=()=>navigator.userAgent.includes("Firefox"),E=()=>document.body.querySelector(`.${h.container}`),A=e=>{const t=E();return t?t.querySelector(e):null},O=e=>A(`.${e}`),I=()=>O(h.popup),T=()=>O(h.icon),M=()=>O(h["icon-content"]),R=()=>O(h.title),P=()=>O(h["html-container"]),D=()=>O(h.image),L=()=>O(h["progress-steps"]),B=()=>O(h["validation-message"]),N=()=>A(`.${h.actions} .${h.confirm}`),j=()=>A(`.${h.actions} .${h.cancel}`),F=()=>A(`.${h.actions} .${h.deny}`),U=()=>O(h["input-label"]),z=()=>A(`.${h.loader}`),q=()=>O(h.actions),H=()=>O(h.footer),$=()=>O(h["timer-progress-bar"]),W=()=>O(h.close),V='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',Y=()=>{const e=I();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),r=Array.from(t).sort((e,t)=>{const r=parseInt(e.getAttribute("tabindex")||"0"),n=parseInt(t.getAttribute("tabindex")||"0");return r>n?1:r<n?-1:0}),n=e.querySelectorAll(V),i=Array.from(n).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(r.concat(i))].filter(e=>pe(e))},X=()=>Z(document.body,h.shown)&&!Z(document.body,h["toast-shown"])&&!Z(document.body,h["no-backdrop"]),J=()=>{const e=I();return!!e&&Z(e,h.toast)},G=()=>{const e=I();return!!e&&e.hasAttribute("data-loading")},K=(e,t)=>{if(e.textContent="",t){const r=new DOMParser,n=r.parseFromString(t,"text/html"),i=n.querySelector("head");i&&Array.from(i.childNodes).forEach(t=>{e.appendChild(t)});const o=n.querySelector("body");o&&Array.from(o.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},Z=(e,t)=>{if(!t)return!1;const r=t.split(/\s+/);for(let n=0;n<r.length;n++)if(!e.classList.contains(r[n]))return!1;return!0},Q=(e,t)=>{Array.from(e.classList).forEach(r=>{Object.values(h).includes(r)||Object.values(p).includes(r)||Object.values(t.showClass||{}).includes(r)||e.classList.remove(r)})},ee=(e,t,r)=>{if(Q(e,t),!t.customClass)return;const n=t.customClass[r];n&&("string"===typeof n||n.forEach?ie(e,n):g(`Invalid type of customClass.${r}! Expected string or iterable object, got "${typeof n}"`))},te=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${h.popup} > .${h[t]}`);case"checkbox":return e.querySelector(`.${h.popup} > .${h.checkbox} input`);case"radio":return e.querySelector(`.${h.popup} > .${h.radio} input:checked`)||e.querySelector(`.${h.popup} > .${h.radio} input:first-child`);case"range":return e.querySelector(`.${h.popup} > .${h.range} input`);default:return e.querySelector(`.${h.popup} > .${h.input}`)}},re=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},ne=(e,t,r)=>{if(!e||!t)return;const n="string"===typeof t?t.split(/\s+/).filter(Boolean):t,i=Array.isArray(e)?e:[e];i.forEach(e=>{n.forEach(t=>{r?e.classList.add(t):e.classList.remove(t)})})},ie=(e,t)=>{ne(e,t,!0)},oe=(e,t)=>{ne(e,t,!1)},se=(e,t)=>{const r=Array.from(e.children);for(let n=0;n<r.length;n++){const e=r[n];if(e instanceof HTMLElement&&Z(e,t))return e}},ae=(e,t,r)=>{r===`${parseInt(`${r}`)}`&&(r=parseInt(r)),r||0===r?e.style.setProperty(t,"number"===typeof r?`${r}px`:r):e.style.removeProperty(t)},ce=(e,t="flex")=>{e&&(e.style.display=t)},ue=e=>{e&&(e.style.display="none")},le=(e,t="block")=>{e&&new MutationObserver(()=>{de(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},he=(e,t,r,n)=>{const i=e.querySelector(t);i&&i.style.setProperty(r,n)},de=(e,t,r="flex")=>{t?ce(e,r):ue(e)},pe=e=>Boolean(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),fe=()=>!pe(N())&&!pe(F())&&!pe(j()),me=e=>Boolean(e.scrollHeight>e.clientHeight),ge=(e,t)=>{let r=e;while(r&&r!==t){if(me(r))return!0;r=r.parentElement}return!1},ve=e=>{const t=window.getComputedStyle(e),r=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return r>0||n>0},ye=(e,t=!1)=>{const r=$();r&&pe(r)&&(t&&(r.style.transition="none",r.style.width="100%"),setTimeout(()=>{r.style.transition=`width ${e/1e3}s linear`,r.style.width="0%"},10))},we=()=>{const e=$();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const r=parseInt(window.getComputedStyle(e).width),n=t/r*100;e.style.width=`${n}%`},be=()=>"undefined"===typeof window||"undefined"===typeof document,_e=`\n <div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">\n <button type="button" class="${h.close}"></button>\n <ul class="${h["progress-steps"]}"></ul>\n <div class="${h.icon}"></div>\n <img class="${h.image}" />\n <h2 class="${h.title}" id="${h.title}"></h2>\n <div class="${h["html-container"]}" id="${h["html-container"]}"></div>\n <input class="${h.input}" id="${h.input}" />\n <input type="file" class="${h.file}" />\n <div class="${h.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${h.select}" id="${h.select}"></select>\n <div class="${h.radio}"></div>\n <label class="${h.checkbox}">\n <input type="checkbox" id="${h.checkbox}" />\n <span class="${h.label}"></span>\n </label>\n <textarea class="${h.textarea}" id="${h.textarea}"></textarea>\n <div class="${h["validation-message"]}" id="${h["validation-message"]}"></div>\n <div class="${h.actions}">\n <div class="${h.loader}"></div>\n <button type="button" class="${h.confirm}"></button>\n <button type="button" class="${h.deny}"></button>\n <button type="button" class="${h.cancel}"></button>\n </div>\n <div class="${h.footer}"></div>\n <div class="${h["timer-progress-bar-container"]}">\n <div class="${h["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),ke=()=>{const e=E();return!!e&&(e.remove(),oe([document.documentElement,document.body],[h["no-backdrop"],h["toast-shown"],h["has-column"]]),!0)},Se=()=>{s.currentInstance&&s.currentInstance.resetValidationMessage()},xe=()=>{const e=I();if(!e)return;const t=se(e,h.input),r=se(e,h.file),n=e.querySelector(`.${h.range} input`),i=e.querySelector(`.${h.range} output`),o=se(e,h.select),s=e.querySelector(`.${h.checkbox} input`),a=se(e,h.textarea);t&&(t.oninput=Se),r&&(r.onchange=Se),o&&(o.onchange=Se),s&&(s.onchange=Se),a&&(a.oninput=Se),n&&i&&(n.oninput=()=>{Se(),i.value=n.value},n.onchange=()=>{Se(),i.value=n.value})},Ce=e=>{if("string"===typeof e){const t=document.querySelector(e);if(!t)throw new Error(`Target element "${e}" not found`);return t}return e},Ee=e=>{const t=I();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))},Ae=e=>{"rtl"===window.getComputedStyle(e).direction&&(ie(E(),h.rtl),s.isRTL=!0)},Oe=e=>{const t=ke();if(be())return void v("SweetAlert2 requires document to initialize");const r=document.createElement("div");r.className=h.container,t&&ie(r,h["no-transition"]),K(r,_e),r.dataset["swal2Theme"]=e.theme;const n=Ce(e.target||"body");n.appendChild(r),e.topLayer&&(r.setAttribute("popover",""),r.showPopover()),Ee(e),Ae(n),xe()},Ie=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"===typeof e?Te(e,t):e&&K(t,e)},Te=(e,t)=>{"jquery"in e?Me(t,e):K(t,e.toString())},Me=(e,t)=>{if(e.textContent="",0 in t)for(let r=0;r in t;r++)e.appendChild(t[r].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Re=(e,t)=>{const r=q(),n=z();r&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?ce(r):ue(r),ee(r,t,"actions"),Pe(r,n,t),K(n,t.loaderHtml||""),ee(n,t,"loader"))};function Pe(e,t,r){const n=N(),i=F(),o=j();n&&i&&o&&(Be(n,"confirm",r),Be(i,"deny",r),Be(o,"cancel",r),De(n,i,o,r),r.reverseButtons&&(r.toast?(e.insertBefore(o,n),e.insertBefore(i,n)):(e.insertBefore(o,t),e.insertBefore(i,t),e.insertBefore(n,t))))}function De(e,t,r,n){if(!n.buttonsStyling)return void oe([e,t,r],h.styled);ie([e,t,r],h.styled);const i=[[e,"confirm",n.confirmButtonColor],[t,"deny",n.denyButtonColor],[r,"cancel",n.cancelButtonColor]];i.forEach(([e,t,r])=>{r&&e.style.setProperty(`--swal2-${t}-button-background-color`,r),Le(e)})}function Le(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const r=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${r}`))}function Be(e,t,r){const n=m(t);de(e,r[`show${n}Button`],"inline-block"),K(e,r[`${t}ButtonText`]||""),e.setAttribute("aria-label",r[`${t}ButtonAriaLabel`]||""),e.className=h[t],ee(e,r,`${t}Button`)}const Ne=(e,t)=>{const r=W();r&&(K(r,t.closeButtonHtml||""),ee(r,t,"closeButton"),de(r,t.showCloseButton),r.setAttribute("aria-label",t.closeButtonAriaLabel||""))},je=(e,t)=>{const r=E();r&&(Fe(r,t.backdrop),Ue(r,t.position),ze(r,t.grow),ee(r,t,"container"))};function Fe(e,t){"string"===typeof t?e.style.background=t:t||ie([document.documentElement,document.body],h["no-backdrop"])}function Ue(e,t){t&&(t in h?ie(e,h[t]):(g('The "position" parameter is not valid, defaulting to "center"'),ie(e,h.center)))}function ze(e,t){t&&ie(e,h[`grow-${t}`])}var qe={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};const He=["input","file","range","select","radio","checkbox","textarea"],$e=(e,t)=>{const r=I();if(!r)return;const n=qe.innerParams.get(e),i=!n||t.input!==n.input;He.forEach(e=>{const n=se(r,h[e]);n&&(Ye(e,t.inputAttributes),n.className=h[e],i&&ue(n))}),t.input&&(i&&We(t),Xe(t))},We=e=>{if(!e.input)return;if(!Qe[e.input])return void v(`Unexpected type of input! Expected ${Object.keys(Qe).join(" | ")}, got "${e.input}"`);const t=Ke(e.input);if(!t)return;const r=Qe[e.input](t,e);ce(t),e.inputAutoFocus&&setTimeout(()=>{re(r)})},Ve=e=>{for(let t=0;t<e.attributes.length;t++){const r=e.attributes[t].name;["id","type","value","style"].includes(r)||e.removeAttribute(r)}},Ye=(e,t)=>{const r=I();if(!r)return;const n=te(r,e);if(n){Ve(n);for(const e in t)n.setAttribute(e,t[e])}},Xe=e=>{if(!e.input)return;const t=Ke(e.input);t&&ee(t,e,"input")},Je=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},Ge=(e,t,r)=>{if(r.inputLabel){const n=document.createElement("label"),i=h["input-label"];n.setAttribute("for",e.id),n.className=i,"object"===typeof r.customClass&&ie(n,r.customClass.inputLabel),n.innerText=r.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ke=e=>{const t=I();if(t)return se(t,h[e]||h.input)},Ze=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:x(t)||g(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Qe={};Qe.text=Qe.email=Qe.password=Qe.number=Qe.tel=Qe.url=Qe.search=Qe.date=Qe["datetime-local"]=Qe.time=Qe.week=Qe.month=(e,t)=>{const r=e;return Ze(r,t.inputValue),Ge(r,r,t),Je(r,t),r.type=t.input,r},Qe.file=(e,t)=>{const r=e;return Ge(r,r,t),Je(r,t),r},Qe.range=(e,t)=>{const r=e,n=r.querySelector("input"),i=r.querySelector("output");return n&&(Ze(n,t.inputValue),n.type=t.input,Ge(n,e,t)),i&&Ze(i,t.inputValue),e},Qe.select=(e,t)=>{const r=e;if(r.textContent="",t.inputPlaceholder){const e=document.createElement("option");K(e,t.inputPlaceholder),e.value="",e.disabled=!0,e.selected=!0,r.appendChild(e)}return Ge(r,r,t),r},Qe.radio=e=>{const t=e;return t.textContent="",e},Qe.checkbox=(e,t)=>{const r=I();if(!r)throw new Error("Popup not found");const n=te(r,"checkbox");if(!n)throw new Error("Checkbox input not found");n.value="1",n.checked=Boolean(t.inputValue);const i=e,o=i.querySelector("span");if(o){const e=t.inputPlaceholder||t.inputLabel;e&&K(o,e)}return n},Qe.textarea=(e,t)=>{const r=e;Ze(r,t.inputValue),Je(r,t),Ge(r,r,t);const n=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const e=I();if(!e)return;const i=parseInt(window.getComputedStyle(e).width),o=()=>{if(!document.body.contains(r))return;const e=r.offsetWidth+n(r),o=I();o&&(e>i?o.style.width=`${e}px`:ae(o,"width",t.width))};new MutationObserver(o).observe(r,{attributes:!0,attributeFilter:["style"]})}}),r};const et=(e,t)=>{const r=P();r&&(le(r),ee(r,t,"htmlContainer"),t.html?(Ie(t.html,r),ce(r,"block")):t.text?(r.textContent=t.text,ce(r,"block")):ue(r),$e(e,t))},tt=(e,t)=>{const r=H();r&&(le(r),de(r,Boolean(t.footer),"block"),t.footer&&Ie(t.footer,r),ee(r,t,"footer"))},rt=(e,t)=>{const r=qe.innerParams.get(e),n=T();if(!n)return;if(r&&t.icon===r.icon)return at(n,t),void nt(n,t);if(!t.icon&&!t.iconHtml)return void ue(n);if(t.icon&&-1===Object.keys(p).indexOf(t.icon))return v(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void ue(n);ce(n),at(n,t),nt(n,t),ie(n,t.showClass&&t.showClass.icon);const i=window.matchMedia("(prefers-color-scheme: dark)");i.addEventListener("change",it)},nt=(e,t)=>{for(const[r,n]of Object.entries(p))t.icon!==r&&oe(e,n);ie(e,t.icon&&p[t.icon]),ct(e,t),it(),ee(e,t,"icon")},it=()=>{const e=I();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),r=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let n=0;n<r.length;n++)r[n].style.backgroundColor=t},ot=e=>`\n ${e.animation?'<div class="swal2-success-circular-line-left"></div>':""}\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div>\n ${e.animation?'<div class="swal2-success-fix"></div>':""}\n ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`,st='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n',at=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let r=e.innerHTML,n="";if(t.iconHtml)n=ut(t.iconHtml);else if("success"===t.icon)n=ot(t),r=r.replace(/ style=".*?"/g,"");else if("error"===t.icon)n=st;else if(t.icon){const e={question:"?",warning:"!",info:"i"};n=ut(e[t.icon])}r.trim()!==n.trim()&&K(e,n)},ct=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const r of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])he(e,r,"background-color",t.iconColor);he(e,".swal2-success-ring","border-color",t.iconColor)}},ut=e=>`<div class="${h["icon-content"]}">${e}</div>`,lt=(e,t)=>{const r=D();r&&(t.imageUrl?(ce(r,""),r.setAttribute("src",t.imageUrl),r.setAttribute("alt",t.imageAlt||""),ae(r,"width",t.imageWidth),ae(r,"height",t.imageHeight),r.className=h.image,ee(r,t,"image")):ue(r))};let ht=!1,dt=0,pt=0,ft=0,mt=0;const gt=e=>{e.addEventListener("mousedown",yt),document.body.addEventListener("mousemove",wt),e.addEventListener("mouseup",bt),e.addEventListener("touchstart",yt),document.body.addEventListener("touchmove",wt),e.addEventListener("touchend",bt)},vt=e=>{e.removeEventListener("mousedown",yt),document.body.removeEventListener("mousemove",wt),e.removeEventListener("mouseup",bt),e.removeEventListener("touchstart",yt),document.body.removeEventListener("touchmove",wt),e.removeEventListener("touchend",bt)},yt=e=>{const t=I();if(!t)return;const r=T();if(e.target===t||r&&r.contains(e.target)){ht=!0;const r=_t(e);dt=r.clientX,pt=r.clientY,ft=parseInt(t.style.insetInlineStart)||0,mt=parseInt(t.style.insetBlockStart)||0,ie(t,"swal2-dragging")}},wt=e=>{const t=I();if(t&&ht){let{clientX:r,clientY:n}=_t(e);const i=r-dt;t.style.insetInlineStart=`${ft+(s.isRTL?-i:i)}px`,t.style.insetBlockStart=`${mt+(n-pt)}px`}},bt=()=>{const e=I();ht=!1,oe(e,"swal2-dragging")},_t=e=>{const t=e.type.startsWith("touch")?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},kt=(e,t)=>{const r=E(),n=I();if(r&&n){if(t.toast){ae(r,"width",t.width),n.style.width="100%";const e=z();e&&n.insertBefore(e,T())}else ae(n,"width",t.width);ae(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),ue(B()),St(n,t),t.draggable&&!t.toast?(ie(n,h.draggable),gt(n)):(oe(n,h.draggable),vt(n))}},St=(e,t)=>{const r=t.showClass||{};e.className=`${h.popup} ${pe(e)?r.popup:""}`,t.toast?(ie([document.documentElement,document.body],h["toast-shown"]),ie(e,h.toast)):ie(e,h.modal),ee(e,t,"popup"),"string"===typeof t.customClass&&ie(e,t.customClass),t.icon&&ie(e,h[`icon-${t.icon}`])},xt=(e,t)=>{const r=L();if(!r)return;const{progressSteps:n,currentProgressStep:i}=t;n&&0!==n.length&&void 0!==i?(ce(r),r.textContent="",i>=n.length&&g("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((e,o)=>{const s=Ct(e);if(r.appendChild(s),o===i&&ie(s,h["active-progress-step"]),o!==n.length-1){const e=Et(t);r.appendChild(e)}})):ue(r)},Ct=e=>{const t=document.createElement("li");return ie(t,h["progress-step"]),K(t,e),t},Et=e=>{const t=document.createElement("li");return ie(t,h["progress-step-line"]),e.progressStepsDistance&&ae(t,"width",e.progressStepsDistance),t},At=(e,t)=>{const r=R();r&&(le(r),de(r,Boolean(t.title||t.titleText),"block"),t.title&&Ie(t.title,r),t.titleText&&(r.innerText=t.titleText),ee(r,t,"title"))},Ot=(e,t)=>{var r;kt(e,t),je(e,t),xt(e,t),rt(e,t),lt(e,t),At(e,t),Ne(e,t),et(e,t),Re(e,t),tt(e,t);const n=I();"function"===typeof t.didRender&&n&&t.didRender(n),null===(r=s.eventEmitter)||void 0===r||r.emit("didRender",n)},It=()=>pe(I()),Tt=()=>{var e;return null===(e=N())||void 0===e?void 0:e.click()},Mt=()=>{var e;return null===(e=F())||void 0===e?void 0:e.click()},Rt=()=>{var e;return null===(e=j())||void 0===e?void 0:e.click()},Pt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Dt=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){const t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},Lt=(e,t,r)=>{if(Dt(e),!t.toast){const n=e=>Ft(t,e,r);e.keydownHandler=n;const i=t.keydownListenerCapture?window:I();if(i){e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture;const r=n;e.keydownTarget.addEventListener("keydown",r,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},Bt=(e,t)=>{var r;const n=Y();return n.length?(e+=t,-2===e&&(e=n.length-1),e===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus(),!(C()&&n[e]instanceof HTMLIFrameElement)):(null===(r=I())||void 0===r||r.focus(),!0)},Nt=["ArrowRight","ArrowDown"],jt=["ArrowLeft","ArrowUp"],Ft=(e,t,r)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ut(t,e):"Tab"===t.key?zt(t):[...Nt,...jt].includes(t.key)?qt(t.key):"Escape"===t.key&&Ht(t,e,r)))},Ut=(e,t)=>{if(!_(t.allowEnterKey))return;const r=I();if(!r||!t.input)return;const n=te(r,t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Tt(),e.preventDefault()}},zt=e=>{const t=e.target,r=Y();let n=-1;for(let o=0;o<r.length;o++)if(t===r[o]){n=o;break}let i=!0;i=e.shiftKey?Bt(n,-1):Bt(n,1),e.stopPropagation(),i&&e.preventDefault()},qt=e=>{const t=q(),r=N(),n=F(),i=j();if(!t||!r||!n||!i)return;const o=[r,n,i];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;const s=Nt.includes(e)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;if(a){for(let e=0;e<t.children.length;e++){if(a=a[s],!a)return;if(a instanceof HTMLButtonElement&&pe(a))break}a instanceof HTMLButtonElement&&a.focus()}},Ht=(e,t,r)=>{e.preventDefault(),_(t.allowEscapeKey)&&r(Pt.esc)};var $t={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Wt=()=>{const e=E(),t=Array.from(document.body.children);t.forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},Vt=()=>{const e=Array.from(document.body.children);e.forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},Yt="undefined"!==typeof window&&Boolean(window.GestureEvent),Xt=Yt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Jt=()=>{if(Yt&&!Z(document.body,h.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",ie(document.body,h.iosfix),Gt()}},Gt=()=>{const e=E();if(!e)return;let t;e.ontouchstart=e=>{t=Kt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Kt=e=>{const t=e.target,r=E(),n=P();return!(!r||!n)&&(!Zt(e)&&!Qt(e)&&(t===r||!(me(r)||!(t instanceof HTMLElement)||ge(t,n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||me(n)&&n.contains(t))))},Zt=e=>Boolean(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),Qt=e=>e.touches&&e.touches.length>1,er=()=>{if(Z(document.body,h.iosfix)){const e=parseInt(document.body.style.top,10);oe(document.body,h.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},tr=()=>{const e=document.createElement("div");e.className=h["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let rr=null;const nr=e=>{null===rr&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(rr=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${rr+tr()}px`)},ir=()=>{null!==rr&&(document.body.style.paddingRight=`${rr}px`,rr=null)};function or(e,t,r,n){J()?fr(e,n):(c(r).then(()=>fr(e,n)),Dt(s)),Yt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),X()&&(ir(),er(),Vt()),sr()}function sr(){oe([document.documentElement,document.body],[h.shown,h["height-auto"],h["no-backdrop"],h["toast-shown"]])}function ar(e){e=hr(e);const t=$t.swalPromiseResolve.get(this),r=cr(this);this.isAwaitingPromise?e.isDismissed||(lr(this),t(e)):r&&t(e)}const cr=e=>{const t=I();if(!t)return!1;const r=qe.innerParams.get(e);if(!r||Z(t,r.hideClass.popup))return!1;oe(t,r.showClass.popup),ie(t,r.hideClass.popup);const n=E();return oe(n,r.showClass.backdrop),ie(n,r.hideClass.backdrop),dr(e,t,r),!0};function ur(e){const t=$t.swalPromiseReject.get(this);lr(this),t&&t(e)}const lr=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,qe.innerParams.get(e)||e._destroy())},hr=e=>"undefined"===typeof e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),dr=(e,t,r)=>{var n;const i=E(),o=ve(t);"function"===typeof r.willClose&&r.willClose(t),null===(n=s.eventEmitter)||void 0===n||n.emit("willClose",t),o&&i?pr(e,t,i,Boolean(r.returnFocus),r.didClose):i&&or(e,i,Boolean(r.returnFocus),r.didClose)},pr=(e,t,r,n,i)=>{s.swalCloseEventFinishedCallback=or.bind(null,e,r,n,i);const o=function(e){var r;e.target===t&&(null===(r=s.swalCloseEventFinishedCallback)||void 0===r||r.call(s),delete s.swalCloseEventFinishedCallback,t.removeEventListener("animationend",o),t.removeEventListener("transitionend",o))};t.addEventListener("animationend",o),t.addEventListener("transitionend",o)},fr=(e,t)=>{setTimeout(()=>{var r;"function"===typeof t&&t.bind(e.params)(),null===(r=s.eventEmitter)||void 0===r||r.emit("didClose"),e._destroy&&e._destroy()})},mr=e=>{let t=I();if(t||new yi,t=I(),!t)return;const r=z();J()?ue(T()):gr(t,e),ce(r),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},gr=(e,t)=>{const r=q(),n=z();r&&n&&(!t&&pe(N())&&(t=N()),ce(r),t&&(ue(t),n.setAttribute("data-button-to-replace",t.className),r.insertBefore(n,t)),ie([e,r],h.loading))},vr=(e,t)=>{"select"===t.input||"radio"===t.input?kr(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(k(t.inputValue)||x(t.inputValue))&&(mr(N()),Sr(e,t))},yr=(e,t)=>{const r=e.getInput();if(!r)return null;switch(t.input){case"checkbox":return wr(r);case"radio":return br(r);case"file":return _r(r);default:return t.inputAutoTrim?r.value.trim():r.value}},wr=e=>e.checked?1:0,br=e=>e.checked?e.value:null,_r=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,kr=(e,t)=>{const r=I();if(!r)return;const n=e=>{"select"===t.input?xr(r,Er(e),t):"radio"===t.input&&Cr(r,Er(e),t)};k(t.inputOptions)||x(t.inputOptions)?(mr(N()),S(t.inputOptions).then(t=>{e.hideLoading(),n(t)})):"object"===typeof t.inputOptions?n(t.inputOptions):v("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},Sr=(e,t)=>{const r=e.getInput();r&&(ue(r),S(t.inputValue).then(n=>{r.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,ce(r),r.focus(),e.hideLoading()}).catch(t=>{v(`Error in inputValue promise: ${t}`),r.value="",ce(r),r.focus(),e.hideLoading()}))};function xr(e,t,r){const n=se(e,h.select);if(!n)return;const i=(e,t,n)=>{const i=document.createElement("option");i.value=n,K(i,t),i.selected=Ar(n,r.inputValue),e.appendChild(i)};t.forEach(e=>{const t=e[0],r=e[1];if(Array.isArray(r)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),r.forEach(t=>i(e,t[1],t[0]))}else i(n,r,t)}),n.focus()}function Cr(e,t,r){const n=se(e,h.radio);if(!n)return;t.forEach(e=>{const t=e[0],i=e[1],o=document.createElement("input"),s=document.createElement("label");o.type="radio",o.name=h.radio,o.value=t,Ar(t,r.inputValue)&&(o.checked=!0);const a=document.createElement("span");K(a,i),a.className=h.label,s.appendChild(o),s.appendChild(a),n.appendChild(s)});const i=n.querySelectorAll("input");i.length&&i[0].focus()}const Er=e=>{const t=e instanceof Map?Array.from(e):Object.entries(e);return t.map(([e,t])=>[e,"object"===typeof t?Er(t):t])},Ar=(e,t)=>Boolean(t)&&null!==t&&void 0!==t&&t.toString()===e.toString(),Or=e=>{const t=qe.innerParams.get(e);e.disableButtons(),t.input?Mr(e,"confirm"):Br(e,!0)},Ir=e=>{const t=qe.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Mr(e,"deny"):Pr(e,!1)},Tr=(e,t)=>{e.disableButtons(),t(Pt.cancel)},Mr=(e,t)=>{const r=qe.innerParams.get(e);if(!r.input)return void v(`The "input" parameter is needed to be set when using returnInputValueOn${m(t)}`);const n=e.getInput(),i=yr(e,r);r.inputValidator?Rr(e,i,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(r.validationMessage||n.validationMessage)):"deny"===t?Pr(e,i):Br(e,i)},Rr=(e,t,r)=>{const n=qe.innerParams.get(e);e.disableInput();const i=Promise.resolve().then(()=>S(n.inputValidator(t,n.validationMessage)));i.then(n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===r?Pr(e,t):Br(e,t)})},Pr=(e,t)=>{const r=qe.innerParams.get(e);if(r.showLoaderOnDeny&&mr(F()),r.preDeny){e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preDeny(t,r.validationMessage)));n.then(r=>{!1===r?(e.hideLoading(),lr(e)):e.close({isDenied:!0,value:"undefined"===typeof r?t:r})}).catch(t=>Lr(e,t))}else e.close({isDenied:!0,value:t})},Dr=(e,t)=>{e.close({isConfirmed:!0,value:t})},Lr=(e,t)=>{e.rejectPromise(t)},Br=(e,t)=>{const r=qe.innerParams.get(e);if(r.showLoaderOnConfirm&&mr(),r.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preConfirm(t,r.validationMessage)));n.then(r=>{pe(B())||!1===r?(e.hideLoading(),lr(e)):Dr(e,"undefined"===typeof r?t:r)}).catch(t=>Lr(e,t))}else Dr(e,t)};function Nr(){const e=qe.innerParams.get(this);if(!e)return;const t=qe.domCache.get(this);ue(t.loader),J()?e.icon&&ce(T()):jr(t),oe([t.popup,t.actions],h.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1;const r=qe.focusedElement.get(this);r instanceof HTMLElement&&document.activeElement===document.body&&r.focus(),qe.focusedElement.delete(this)}const jr=e=>{const t=e.loader.getAttribute("data-button-to-replace"),r=t?e.popup.getElementsByClassName(t):[];r.length?ce(r[0],"inline-block"):fe()&&ue(e.actions)};function Fr(){const e=qe.innerParams.get(this),t=qe.domCache.get(this);return t?te(t.popup,e.input):null}function Ur(e,t,r){const n=qe.domCache.get(e);t.forEach(e=>{n[e].disabled=r})}function zr(e,t){const r=I();if(r&&e)if("radio"===e.type){const e=r.querySelectorAll(`[name="${h.radio}"]`);for(let r=0;r<e.length;r++)e[r].disabled=t}else e.disabled=t}function qr(){Ur(this,["confirmButton","denyButton","cancelButton"],!1);const e=qe.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),qe.focusedElement.delete(this)}function Hr(){qe.focusedElement.set(this,document.activeElement),Ur(this,["confirmButton","denyButton","cancelButton"],!0)}function $r(){zr(this.getInput(),!1)}function Wr(){zr(this.getInput(),!0)}function Vr(e){const t=qe.domCache.get(this),r=qe.innerParams.get(this);K(t.validationMessage,e),t.validationMessage.className=h["validation-message"],r.customClass&&r.customClass.validationMessage&&ie(t.validationMessage,r.customClass.validationMessage),ce(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",h["validation-message"]),re(n),ie(n,h.inputerror))}function Yr(){const e=qe.domCache.get(this);e.validationMessage&&ue(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),oe(t,h.inputerror))}const Xr={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},Jr=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Gr={allowEnterKey:void 0},Kr=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Zr=e=>Object.prototype.hasOwnProperty.call(Xr,e),Qr=e=>-1!==Jr.indexOf(e),en=e=>Gr[e],tn=e=>{Zr(e)||g(`Unknown parameter "${e}"`)},rn=e=>{Kr.includes(e)&&g(`The parameter "${e}" is incompatible with toasts`)},nn=e=>{const t=en(e);t&&b(e,t)},on=e=>{!1===e.backdrop&&e.allowOutsideClick&&g('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&g(`Invalid theme "${e.theme}"`);for(const t in e)tn(t),e.toast&&rn(t),nn(t)};function sn(e){const t=E(),r=I(),n=qe.innerParams.get(this);if(!r||Z(r,n.hideClass.popup))return void g("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const i=an(e),o=Object.assign({},n,i);on(o),t&&(t.dataset["swal2Theme"]=o.theme),Ot(this,o),qe.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const an=e=>{const t={};return Object.keys(e).forEach(r=>{if(Qr(r)){const n=e;t[r]=n[r]}else g(`Invalid parameter to update: ${r}`)}),t};function cn(){var e;const t=qe.domCache.get(this),r=qe.innerParams.get(this);r?(t.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"===typeof r.didDestroy&&r.didDestroy(),null===(e=s.eventEmitter)||void 0===e||e.emit("didDestroy"),un(this)):ln(this)}const un=e=>{ln(e),delete e.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},ln=e=>{e.isAwaitingPromise?(hn(qe,e),e.isAwaitingPromise=!0):(hn($t,e),hn(qe,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},hn=(e,t)=>{for(const r in e)e[r].delete(t)};var dn=Object.freeze({__proto__:null,_destroy:cn,close:ar,closeModal:ar,closePopup:ar,closeToast:ar,disableButtons:Hr,disableInput:Wr,disableLoading:Nr,enableButtons:qr,enableInput:$r,getInput:Fr,handleAwaitingPromise:lr,hideLoading:Nr,rejectPromise:ur,resetValidationMessage:Yr,showValidationMessage:Vr,update:sn});const pn=(e,t,r)=>{e.toast?fn(e,t,r):(vn(t),yn(t),wn(e,t,r))},fn=(e,t,r)=>{t.popup.onclick=()=>{e&&(mn(e)||e.timer||e.input)||r(Pt.close)}},mn=e=>Boolean(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let gn=!1;const vn=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(gn=!0)}}},yn=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(gn=!0)}}},wn=(e,t,r)=>{t.container.onclick=n=>{gn?gn=!1:n.target===t.container&&_(e.allowOutsideClick)&&r(Pt.backdrop)}},bn=e=>"object"===typeof e&&null!==e&&"jquery"in e,_n=e=>e instanceof Element||bn(e),kn=e=>{const t={};return"object"!==typeof e[0]||_n(e[0])?["title","html","icon"].forEach((r,n)=>{const i=e[n];"string"===typeof i||_n(i)?t[r]=i:void 0!==i&&v(`Unexpected type of ${r}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(t,e[0]),t};function Sn(...e){return new this(...e)}function xn(e){class t extends(this){_main(t,r){return super._main(t,Object.assign({},e,r))}}return t}const Cn=()=>s.timeout&&s.timeout.getTimerLeft(),En=()=>{if(s.timeout)return we(),s.timeout.stop()},An=()=>{if(s.timeout){const e=s.timeout.start();return ye(e),e}},On=()=>{const e=s.timeout;return e&&(e.running?En():An())},In=e=>{if(s.timeout){const t=s.timeout.increase(e);return ye(t,!0),t}},Tn=()=>Boolean(s.timeout&&s.timeout.isRunning());let Mn=!1;const Rn={};function Pn(e="data-swal-template"){Rn[e]=this,Mn||(document.body.addEventListener("click",Dn),Mn=!0)}const Dn=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Rn){const r=t.getAttribute&&t.getAttribute(e);if(r)return void Rn[e].fire({template:r})}};class Ln{constructor(){this.events={}}_getHandlersByEventName(e){return"undefined"===typeof this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const r=this._getHandlersByEventName(e);r.includes(t)||r.push(t)}once(e,t){const r=(...n)=>{this.removeListener(e,r),t.apply(this,n)};this.on(e,r)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(v){console.error(v)}})}removeListener(e,t){const r=this._getHandlersByEventName(e),n=r.indexOf(t);n>-1&&r.splice(n,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}s.eventEmitter=new Ln;const Bn=(e,t)=>{s.eventEmitter&&s.eventEmitter.on(e,t)},Nn=(e,t)=>{s.eventEmitter&&s.eventEmitter.once(e,t)},jn=(e,t)=>{s.eventEmitter&&(e?t?s.eventEmitter.removeListener(e,t):s.eventEmitter.removeAllListeners(e):s.eventEmitter.reset())};var Fn=Object.freeze({__proto__:null,argsToParams:kn,bindClickHandler:Pn,clickCancel:Rt,clickConfirm:Tt,clickDeny:Mt,enableLoading:mr,fire:Sn,getActions:q,getCancelButton:j,getCloseButton:W,getConfirmButton:N,getContainer:E,getDenyButton:F,getFocusableElements:Y,getFooter:H,getHtmlContainer:P,getIcon:T,getIconContent:M,getImage:D,getInputLabel:U,getLoader:z,getPopup:I,getProgressSteps:L,getTimerLeft:Cn,getTimerProgressBar:$,getTitle:R,getValidationMessage:B,increaseTimer:In,isDeprecatedParameter:en,isLoading:G,isTimerRunning:Tn,isUpdatableParameter:Qr,isValidParameter:Zr,isVisible:It,mixin:xn,off:jn,on:Bn,once:Nn,resumeTimer:An,showLoading:mr,stopTimer:En,toggleTimer:On});class Un{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const zn=["swal-title","swal-html","swal-footer"],qn=e=>{const t="string"===typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const r=t.content;Gn(r);const n=Object.assign(Hn(r),$n(r),Wn(r),Vn(r),Yn(r),Xn(r),Jn(r,zn));return n},Hn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-param"));return r.forEach(e=>{Kn(e,["name","value"]);const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(r in Xr&&"boolean"===typeof Xr[r]?t[r]="false"!==n:r in Xr&&"object"===typeof Xr[r]?t[r]=JSON.parse(n):t[r]=n)}),t},$n=e=>{const t={},r=Array.from(e.querySelectorAll("swal-function-param"));return r.forEach(e=>{const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(t[r]=new Function(`return ${n}`)())}),t},Wn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-button"));return r.forEach(e=>{Kn(e,["type","color","aria-label"]);const r=e.getAttribute("type");if(!r||!["confirm","cancel","deny"].includes(r))return;t[`${r}ButtonText`]=e.innerHTML,t[`show${m(r)}Button`]=!0;const n=e.getAttribute("color");null!==n&&(t[`${r}ButtonColor`]=n);const i=e.getAttribute("aria-label");null!==i&&(t[`${r}ButtonAriaLabel`]=i)}),t},Vn=e=>{const t={},r=e.querySelector("swal-image");if(r){Kn(r,["src","width","height","alt"]);const e=r.getAttribute("src");null!==e&&(t.imageUrl=e||void 0);const n=r.getAttribute("width");null!==n&&(t.imageWidth=n||void 0);const i=r.getAttribute("height");null!==i&&(t.imageHeight=i||void 0);const o=r.getAttribute("alt");null!==o&&(t.imageAlt=o||void 0)}return t},Yn=e=>{const t={},r=e.querySelector("swal-icon");return r&&(Kn(r,["type","color"]),r.hasAttribute("type")&&(t.icon=r.getAttribute("type")),r.hasAttribute("color")&&(t.iconColor=r.getAttribute("color")),t.iconHtml=r.innerHTML),t},Xn=e=>{const t={},r=e.querySelector("swal-input");r&&(Kn(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(e=>{Kn(e,["value"]);const r=e.getAttribute("value");if(!r)return;const n=e.innerHTML;t.inputOptions[r]=n})),t},Jn=(e,t)=>{const r={};for(const n in t){const i=t[n],o=e.querySelector(i);o&&(Kn(o,[]),r[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return r},Gn=e=>{const t=zn.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const r=e.tagName.toLowerCase();t.includes(r)||g(`Unrecognized element <${r}>`)})},Kn=(e,t)=>{Array.from(e.attributes).forEach(r=>{-1===t.indexOf(r.name)&&g([`Unrecognized attribute "${r.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])})},Zn=10,Qn=e=>{var t,r;const n=E(),i=I();if(!n||!i)return;"function"===typeof e.willOpen&&e.willOpen(i),null===(t=s.eventEmitter)||void 0===t||t.emit("willOpen",i);const o=window.getComputedStyle(document.body),a=o.overflowY;if(ni(n,i,e),setTimeout(()=>{ti(n,i)},Zn),X()&&(ri(n,void 0!==e.scrollbarPadding&&e.scrollbarPadding,a),Wt()),Xt&&!1===e.backdrop&&i.scrollHeight>n.clientHeight&&(n.style.pointerEvents="auto"),J()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"===typeof e.didOpen){const t=e.didOpen;setTimeout(()=>t(i))}null===(r=s.eventEmitter)||void 0===r||r.emit("didOpen",i)},ei=e=>{const t=I();if(!t||e.target!==t)return;const r=E();r&&(t.removeEventListener("animationend",ei),t.removeEventListener("transitionend",ei),r.style.overflowY="auto",oe(r,h["no-transition"]))},ti=(e,t)=>{ve(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",ei),t.addEventListener("transitionend",ei)):e.style.overflowY="auto"},ri=(e,t,r)=>{Jt(),t&&"hidden"!==r&&nr(r),setTimeout(()=>{e.scrollTop=0})},ni=(e,t,r)=>{var n;null!==(n=r.showClass)&&void 0!==n&&n.backdrop&&ie(e,r.showClass.backdrop),r.animation?(t.style.setProperty("opacity","0","important"),ce(t,"grid"),setTimeout(()=>{var e;null!==(e=r.showClass)&&void 0!==e&&e.popup&&ie(t,r.showClass.popup),t.style.removeProperty("opacity")},Zn)):ce(t,"grid"),ie([document.documentElement,document.body],h.shown),r.heightAuto&&r.backdrop&&!r.toast&&ie([document.documentElement,document.body],h["height-auto"])};var ii={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function oi(e){e.inputValidator||("email"===e.input&&(e.inputValidator=ii["email"]),"url"===e.input&&(e.inputValidator=ii["url"]))}function si(e){(!e.target||"string"===typeof e.target&&!document.querySelector(e.target)||"string"!==typeof e.target&&!e.target.appendChild)&&(g('Target parameter is not valid, defaulting to "body"'),e.target="body")}function ai(e){oi(e),e.showLoaderOnConfirm&&!e.preConfirm&&g("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),si(e),"string"===typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Oe(e)}let ci;var ui=new WeakMap;class li{constructor(...e){if(n(this,ui,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"undefined"===typeof window)return;ci=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,i(ui,this,this._main(ci.params))}_main(e,t={}){if(on(Object.assign({},t,e)),s.currentInstance){const e=$t.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:t}=s.currentInstance;s.currentInstance._destroy(),t||e({isDismissed:!0}),X()&&Vt()}s.currentInstance=ci;const r=di(e,t);ai(r),Object.freeze(r),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);const n=pi(ci);return Ot(ci,r),qe.innerParams.set(ci,r),hi(ci,n,r)}then(e){return r(ui,this).then(e)}finally(e){return r(ui,this).finally(e)}}const hi=(e,t,r)=>new Promise((n,i)=>{const o=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};$t.swalPromiseResolve.set(e,n),$t.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{Or(e)},t.denyButton.onclick=()=>{Ir(e)},t.cancelButton.onclick=()=>{Tr(e,o)},t.closeButton.onclick=()=>{o(Pt.close)},pn(r,t,o),Lt(s,r,o),vr(e,r),Qn(r),fi(s,r,o),mi(t,r),setTimeout(()=>{t.container.scrollTop=0})}),di=(e,t)=>{const r=qn(e),n=Object.assign({},Xr,t,r,e);return n.showClass=Object.assign({},Xr.showClass,n.showClass),n.hideClass=Object.assign({},Xr.hideClass,n.hideClass),!1===n.animation&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},pi=e=>{const t={popup:I(),container:E(),actions:q(),confirmButton:N(),denyButton:F(),cancelButton:j(),loader:z(),closeButton:W(),validationMessage:B(),progressSteps:L()};return qe.domCache.set(e,t),t},fi=(e,t,r)=>{const n=$();ue(n),t.timer&&(e.timeout=new Un(()=>{r("timer"),delete e.timeout},t.timer),t.timerProgressBar&&n&&(ce(n),ee(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ye(t.timer)})))},mi=(e,t)=>{if(!t.toast)return _(t.allowEnterKey)?void(gi(e)||vi(e,t)||Bt(-1,1)):(b("allowEnterKey","preConfirm: () => false"),void e.popup.focus())},gi=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const r of t)if(r instanceof HTMLElement&&pe(r))return r.focus(),!0;return!1},vi=(e,t)=>t.focusDeny&&pe(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&pe(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!pe(e.confirmButton))&&(e.confirmButton.focus(),!0);li.prototype.disableButtons=Hr,li.prototype.enableButtons=qr,li.prototype.getInput=Fr,li.prototype.disableInput=Wr,li.prototype.enableInput=$r,li.prototype.hideLoading=Nr,li.prototype.disableLoading=Nr,li.prototype.showValidationMessage=Vr,li.prototype.resetValidationMessage=Yr,li.prototype.close=ar,li.prototype.closePopup=ar,li.prototype.closeModal=ar,li.prototype.closeToast=ar,li.prototype.rejectPromise=ur,li.prototype.update=sn,li.prototype._destroy=cn,Object.assign(li,Fn),Object.keys(dn).forEach(e=>{li[e]=function(...t){if(ci&&ci[e])return ci[e](...t)}}),li.DismissReason=Pt,li.version="11.26.24";const yi=li;return yi.default=yi,yi}),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var r=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=t);else try{r.innerHTML=t}catch(e){r.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:auto}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:auto}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}')},6253:function(e,t,r){"use strict";var n=r(8705);const i="AES-256-CBC",o=parseInt(i.match(/\d+/)?.[0]),s="-----BEGIN PUBLIC KEY-----",a="-----END PUBLIC KEY-----",c="-----BEGIN PRIVATE KEY-----",u="-----END PRIVATE KEY-----",l=()=>{if("undefined"!==typeof globalThis&&globalThis.crypto?.subtle)return globalThis.crypto.subtle;throw new Error("Web Crypto API is not available in this environment")},h=(e,t,r,n)=>{if(!e.includes(t)||!e.includes(r))throw new Error(`Invalid ${n} key format: expected PEM`);const i=e.replace(t,"").replace(r,"").replace(/\s+/g,"");if("function"!==typeof atob)throw new Error("Base64 decoding is not available in this environment");const o=atob(i),s=new Uint8Array(o.length);for(let a=0;a<o.length;a++)s[a]=o.charCodeAt(a);return s.buffer},d=e=>{let t="";const r=new Uint8Array(e);if(r.forEach(e=>{t+=String.fromCharCode(e)}),"function"!==typeof btoa)throw new Error("Base64 encoding is not available in this environment");return btoa(t)},p=e=>{if("function"!==typeof atob)throw new Error("Base64 decoding is not available in this environment");const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r.buffer},f=async(e,t)=>{const r=l(),n="public"===t?h(e,s,a,"public"):h(e,c,u,"private");return r.importKey("public"===t?"spki":"pkcs8",n,{name:"RSA-OAEP",hash:"SHA-256"},!1,"public"===t?["encrypt"]:["decrypt"])},m=(e,t)=>{const r=n.lib.WordArray.random(16),i=n.lib.WordArray.random(256),s=999,a=o/4,c=n.PBKDF2(t,i,{hasher:n.algo.SHA512,keySize:a/8,iterations:s}),u=n.AES.encrypt(e,c,{mode:n.mode.CBC,iv:r}),l=n.enc.Base64.stringify(u.ciphertext),h={ciphertext:l,iv:n.enc.Hex.stringify(r),salt:n.enc.Hex.stringify(i),iterations:s};return n.enc.Base64.stringify(n.enc.Utf8.parse(JSON.stringify(h)))},g=(e,t)=>{const r=JSON.parse(n.enc.Utf8.stringify(n.enc.Base64.parse(e))),i=n.enc.Hex.parse(r.salt),s=n.enc.Hex.parse(r.iv),a=r.ciphertext;let c=parseInt(r.iterations);c<=0&&(c=999);const u=o/4,l=n.PBKDF2(t,i,{hasher:n.algo.SHA512,keySize:u/8,iterations:c}),h=n.AES.decrypt(a,l,{mode:n.mode.CBC,iv:s});return h.toString(n.enc.Utf8)},v=async(e,t)=>{const r=l(),n=await f(t,"public"),i=(new TextEncoder).encode(e),o=await r.encrypt({name:"RSA-OAEP"},n,i);return d(o)},y=async(e,t)=>{const r=l(),n=await f(t,"private"),i=p(e),o=await r.decrypt({name:"RSA-OAEP"},n,i);return(new TextDecoder).decode(o)};t.A={encrypt:m,decrypt:g,encryptWithPublicKey:v,decryptWithPrivateKey:y}},6448:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{allowOnlyNumber:function(){return allowOnlyNumber},allowedDecimalPlaces:function(){return allowedDecimalPlaces},customPasswordValidator:function(){return customPasswordValidator},dateFormatter:function(){return dateFormatter},decrypt:function(){return decrypt},decryptWithPrivateKey:function(){return decryptWithPrivateKey},encrypt:function(){return encrypt},encryptWithPublicKey:function(){return encryptWithPublicKey},fromNow:function(){return fromNow},getBgColorFromName:function(){return getBgColorFromName},getLocalStorageItem:function(){return getLocalStorageItem},getObjectProperty:function(){return getObjectProperty},getSessionStorageItem:function(){return getSessionStorageItem},getTextColorFromName:function(){return getTextColorFromName},highlightText:function(){return highlightText},httpBuildQuery:function(){return httpBuildQuery},imageExists:function(){return imageExists},isArray:function(){return isArray},isEmptyObj:function(){return isEmptyObj},isFunction:function(){return isFunction},isObject:function(){return isObject},isString:function(){return isString},loadRemoteEmbeddable:function(){return loadRemoteEmbeddable},numberFormat:function(){return numberFormat},removeLocalStorageItem:function(){return removeLocalStorageItem},removeSessionStorageItem:function(){return removeSessionStorageItem},setLocalStorageItem:function(){return setLocalStorageItem},setObjectProperty:function(){return setObjectProperty},setSessionStorageItem:function(){return setSessionStorageItem},ucFirst:function(){return ucFirst},uuid:function(){return uuid}});var lodash_es__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(8552),lodash_es__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8938),lodash_es__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4441),_encryption_service__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6253),date_fns__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2775),date_fns__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(129);const localCache=new Map,sessionCache=new Map,isString=e=>"string"===typeof e||e instanceof String,isArray=e=>Array.isArray(e),isFunction=e=>"function"===typeof e,isObject=e=>!!e&&e.constructor===Object,ucFirst=e=>e[0].toUpperCase()+e.substring(1).toLowerCase(),isEmptyObj=e=>(0,lodash_es__WEBPACK_IMPORTED_MODULE_1__.A)(e)&&!Object.keys(e).length,getObjectProperty=(e,t,r)=>{const n=(0,lodash_es__WEBPACK_IMPORTED_MODULE_0__.A)(e,t,r);return n||r},setObjectProperty=(e,t,r)=>(0,lodash_es__WEBPACK_IMPORTED_MODULE_2__.A)(e,t,r),getBgColorFromName=e=>{let t=0;e.split("").forEach(e=>{t=e.charCodeAt(0)+((t<<5)-t)});let r="#";for(let n=0;n<3;n++){const e=t>>8*n&255;r+=e.toString(16).padStart(2,"0")}return r},getTextColorFromName=(e,t="#FFFFFF",r="#000000")=>{const n=getBgColorFromName(e),i="#"===n.charAt(0)?n.substring(1,7):n,o=parseInt(i.substring(0,2),16),s=parseInt(i.substring(2,4),16),a=parseInt(i.substring(4,6),16),c=[o/255,s/255,a/255],u=c.map(e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)),l=.2126*u[0]+.7152*u[1]+.0722*u[2];return l>.179?r:t},encrypt=(e,t="")=>_encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.encrypt(e,t),decrypt=(e,t="")=>_encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.decrypt(e,t),encryptWithPublicKey=async(e,t)=>await _encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.encryptWithPublicKey(e,t),decryptWithPrivateKey=async(e,t)=>await _encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.decryptWithPrivateKey(e,t),setLocalStorageItem=(e,t,r="production")=>{localCache.set(e,JSON.stringify(t)),"production"===r?localStorage.setItem(e,encrypt(JSON.stringify(t))):localStorage.setItem(e,JSON.stringify(t))},getLocalStorageItem=(e,t="production")=>{if(localCache.has(e))return JSON.parse(localCache.get(e));const r=localStorage.getItem(e);if(null==r)return null;try{const n="production"===t?JSON.parse(decrypt(r)):JSON.parse(r);return localCache.set(e,JSON.stringify(n)),n}catch{return localStorage.removeItem(e),null}},removeLocalStorageItem=e=>{localCache.delete(e),localStorage.removeItem(e)},setSessionStorageItem=(e,t,r="production")=>{sessionCache.set(e,JSON.stringify(t)),"production"===r?sessionStorage.setItem(e,encrypt(JSON.stringify(t))):sessionStorage.setItem(e,JSON.stringify(t))},getSessionStorageItem=(e,t="production")=>{if(sessionCache.has(e))return JSON.parse(sessionCache.get(e));const r=sessionStorage.getItem(e);if(null==r)return null;try{const n="production"===t?JSON.parse(decrypt(r)):JSON.parse(r);return sessionCache.set(e,JSON.stringify(n)),n}catch{return sessionStorage.removeItem(e),null}},removeSessionStorageItem=e=>{sessionCache.delete(e),sessionStorage.removeItem(e)},customPasswordValidator=e=>{const t=/[A-Z]/.test(e),r=/[a-z]/.test(e),n=/[0-9]/.test(e),i=/[#?!@$%^&*-]/.test(e);return t&&r&&n&&i},allowOnlyNumber=e=>{if(e=e||window.event,"paste"==e.type){const t=e,r=t.clipboardData?.getData("Text");return!isNaN(r)||t.preventDefault()}{const t=e,r=t.which?t.which:t.keyCode;return!(r>31&&(r<48||r>57)&&46!==r)||t.preventDefault()}},allowedDecimalPlaces=(e,t)=>{if(e=e||window.event,"paste"==e.type){const r=e,n=r.clipboardData?.getData("Text"),i=n?.indexOf(".");return!(n.split(".").length>2||t<=0&&2===n.split(".").length||2===n.split(".").length&&i+1!=n.length-t)||r.preventDefault()}{const r=e,n=r.which?r.which:r.keyCode;if(t<=0)return!(["keyup","keydown"].includes(e.type)&&190===n||"keypress"==r.type&&46===n)||r.preventDefault();{const e=r.target,i=e.value,o=i.indexOf(".");return!(o>=0&&o<i.length-t||46===n&&2===i.split(".").length)||r.preventDefault()}}},highlightText=(e,t,r="success")=>e.replace(new RegExp(t,"gi"),e=>`<span class='text-${r}'>${e}</span>`),imageExists=(e,t)=>{const r=new Image;if(r.src=e,r.complete)return void 0!=t&&t(!0),!0;r.onload=()=>(void 0!=t&&t(!0),!0),r.onerror=()=>(void 0!=t&&t(!1),!1)},httpBuildQuery=e=>{const t=encodeURIComponent,r=Object.keys(e).map(r=>t(r)+"="+t(e[r])).join("&");return r},uuid=(e,t)=>{let r=e||"";return r+=Math.random().toString(36).substring(2,8)+Math.random().toString(36).substring(2,8),r+=t||"",r},dateFormatter=(e,t="dd-MM-yyyy")=>(0,date_fns__WEBPACK_IMPORTED_MODULE_4__.A)(new Date(e),t),loadRemoteEmbeddable=url=>(window.__LOADED_EMBEDDABLES__||(window.__LOADED_EMBEDDABLES__=new Set),window.__LOADED_EMBEDDABLES__.has(url)?Promise.resolve({}):eval(`import("${url}")`).then(e=>(window.__LOADED_EMBEDDABLES__.add(url),e))),fromNow=e=>(0,date_fns__WEBPACK_IMPORTED_MODULE_5__.A)(new Date(e),{addSuffix:!0}),numberFormat=(e,t,r,n)=>{t=t||0,"string"===typeof e&&(e=parseFloat(e)),r&&n||(r=".",n=",");let i=Math.round(Math.abs(e)*Math.pow(10,t))+"";i=1>e&&-1<e&&i.length<=t?Array(t-i.length+1).join("0")+i:i;let o=t?i.slice(0,-1*t):i.slice(0);const s=parseInt(o)||0;o=0==s?"0":o;const a=t?i.slice(-1*t):"";let c="";while(o.length>3)c=n+o.slice(-3)+c,o=o.slice(0,-3);return(e<0?"-":"")+o+c+(a?r+a:"")}},5156:function(){},7545:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:function(){return n}})},6096:function(e,t,r){"use strict";function n(){this.__data__=[],this.size=0}r.d(t,{A:function(){return w}});var i=n,o=r(6979);function s(e,t){var r=e.length;while(r--)if((0,o.A)(e[r][0],t))return r;return-1}var a=s,c=Array.prototype,u=c.splice;function l(e){var t=this.__data__,r=a(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():u.call(t,r,1),--this.size,!0}var h=l;function d(e){var t=this.__data__,r=a(t,e);return r<0?void 0:t[r][1]}var p=d;function f(e){return a(this.__data__,e)>-1}var m=f;function g(e,t){var r=this.__data__,n=a(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var v=g;function y(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}y.prototype.clear=i,y.prototype["delete"]=h,y.prototype.get=p,y.prototype.has=m,y.prototype.set=v;var w=y},5436:function(e,t,r){"use strict";var n=r(8869),i=r(9600),o=(0,n.A)(i.A,"Map");t.A=o},3269:function(e,t,r){"use strict";r.d(t,{A:function(){return z}});var n=r(8869),i=(0,n.A)(Object,"create"),o=i;function s(){this.__data__=o?o(null):{},this.size=0}var a=s;function c(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u=c,l="__lodash_hash_undefined__",h=Object.prototype,d=h.hasOwnProperty;function p(e){var t=this.__data__;if(o){var r=t[e];return r===l?void 0:r}return d.call(t,e)?t[e]:void 0}var f=p,m=Object.prototype,g=m.hasOwnProperty;function v(e){var t=this.__data__;return o?void 0!==t[e]:g.call(t,e)}var y=v,w="__lodash_hash_undefined__";function b(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=o&&void 0===t?w:t,this}var _=b;function k(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}k.prototype.clear=a,k.prototype["delete"]=u,k.prototype.get=f,k.prototype.has=y,k.prototype.set=_;var S=k,x=r(6096),C=r(5436);function E(){this.size=0,this.__data__={hash:new S,map:new(C.A||x.A),string:new S}}var A=E;function O(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var I=O;function T(e,t){var r=e.__data__;return I(t)?r["string"==typeof t?"string":"hash"]:r.map}var M=T;function R(e){var t=M(this,e)["delete"](e);return this.size-=t?1:0,t}var P=R;function D(e){return M(this,e).get(e)}var L=D;function B(e){return M(this,e).has(e)}var N=B;function j(e,t){var r=M(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var F=j;function U(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}U.prototype.clear=A,U.prototype["delete"]=P,U.prototype.get=L,U.prototype.has=N,U.prototype.set=F;var z=U},3516:function(e,t,r){"use strict";var n=r(9600),i=n.A.Symbol;t.A=i},6124:function(e,t,r){"use strict";var n=r(9271),i=r(6979),o=Object.prototype,s=o.hasOwnProperty;function a(e,t,r){var o=e[t];s.call(e,t)&&(0,i.A)(o,r)&&(void 0!==r||t in e)||(0,n.A)(e,t,r)}t.A=a},9271:function(e,t,r){"use strict";var n=r(1758);function i(e,t,r){"__proto__"==t&&n.A?(0,n.A)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.A=i},4044:function(e,t,r){"use strict";r.d(t,{A:function(){return y}});var n=r(3516),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n.A?n.A.toStringTag:void 0;function c(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(c){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}var u=c,l=Object.prototype,h=l.toString;function d(e){return h.call(e)}var p=d,f="[object Null]",m="[object Undefined]",g=n.A?n.A.toStringTag:void 0;function v(e){return null==e?void 0===e?m:f:g&&g in Object(e)?u(e):p(e)}var y=v},5118:function(e,t,r){"use strict";r.d(t,{A:function(){return M}});var n=r(6956),i=r(4089),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function a(e,t){if((0,n.A)(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!(0,i.A)(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}var c=a,u=r(3269),l="Expected a function";function h(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(l);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(h.Cache||u.A),r}h.Cache=u.A;var d=h,p=500;function f(e){var t=d(e,function(e){return r.size===p&&r.clear(),e}),r=t.cache;return t}var m=f,g=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g,y=m(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(g,function(e,r,n,i){t.push(n?i.replace(v,"$1"):r||e)}),t}),w=y,b=r(3516);function _(e,t){var r=-1,n=null==e?0:e.length,i=Array(n);while(++r<n)i[r]=t(e[r],r,e);return i}var k=_,S=1/0,x=b.A?b.A.prototype:void 0,C=x?x.toString:void 0;function E(e){if("string"==typeof e)return e;if((0,n.A)(e))return k(e,E)+"";if((0,i.A)(e))return C?C.call(e):"";var t=e+"";return"0"==t&&1/e==-S?"-0":t}var A=E;function O(e){return null==e?"":A(e)}var I=O;function T(e,t){return(0,n.A)(e)?e:c(e,t)?[e]:w(I(e))}var M=T},1758:function(e,t,r){"use strict";var n=r(8869),i=function(){try{var e=(0,n.A)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.A=i},6713:function(e,t,r){"use strict";var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.A=n},8869:function(e,t,r){"use strict";r.d(t,{A:function(){return A}});var n=r(405),i=r(9600),o=i.A["__core-js_shared__"],s=o,a=function(){var e=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function c(e){return!!a&&a in e}var u=c,l=r(7942),h=Function.prototype,d=h.toString;function p(e){if(null!=e){try{return d.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var f=p,m=/[\\^$.*+?()[\]{}|]/g,g=/^\[object .+?Constructor\]$/,v=Function.prototype,y=Object.prototype,w=v.toString,b=y.hasOwnProperty,_=RegExp("^"+w.call(b).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function k(e){if(!(0,l.A)(e)||u(e))return!1;var t=(0,n.A)(e)?_:g;return t.test(f(e))}var S=k;function x(e,t){return null==e?void 0:e[t]}var C=x;function E(e,t){var r=C(e,t);return S(r)?r:void 0}var A=E},7902:function(e,t,r){"use strict";function n(e,t){return function(r){return e(t(r))}}r.d(t,{A:function(){return s}});var i=n,o=i(Object.getPrototypeOf,Object),s=o},5378:function(e,t){"use strict";var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t=null==t?r:t,!!t&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<t}t.A=i},9600:function(e,t,r){"use strict";var n=r(6713),i="object"==typeof self&&self&&self.Object===Object&&self,o=n.A||i||Function("return this")();t.A=o},9322:function(e,t,r){"use strict";var n=r(4089),i=1/0;function o(e){if("string"==typeof e||(0,n.A)(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}t.A=o},6979:function(e,t){"use strict";function r(e,t){return e===t||e!==e&&t!==t}t.A=r},8552:function(e,t,r){"use strict";r.d(t,{A:function(){return c}});var n=r(5118),i=r(9322);function o(e,t){t=(0,n.A)(t,e);var r=0,o=t.length;while(null!=e&&r<o)e=e[(0,i.A)(t[r++])];return r&&r==o?e:void 0}var s=o;function a(e,t,r){var n=null==e?void 0:s(e,t);return void 0===n?r:n}var c=a},6956:function(e,t){"use strict";var r=Array.isArray;t.A=r},405:function(e,t,r){"use strict";var n=r(4044),i=r(7942),o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";function u(e){if(!(0,i.A)(e))return!1;var t=(0,n.A)(e);return t==s||t==a||t==o||t==c}t.A=u},7942:function(e,t){"use strict";function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.A=r},7313:function(e,t){"use strict";function r(e){return null!=e&&"object"==typeof e}t.A=r},8938:function(e,t,r){"use strict";var n=r(4044),i=r(7902),o=r(7313),s="[object Object]",a=Function.prototype,c=Object.prototype,u=a.toString,l=c.hasOwnProperty,h=u.call(Object);function d(e){if(!(0,o.A)(e)||(0,n.A)(e)!=s)return!1;var t=(0,i.A)(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==h}t.A=d},4089:function(e,t,r){"use strict";var n=r(4044),i=r(7313),o="[object Symbol]";function s(e){return"symbol"==typeof e||(0,i.A)(e)&&(0,n.A)(e)==o}t.A=s},4441:function(e,t,r){"use strict";r.d(t,{A:function(){return h}});var n=r(6124),i=r(5118),o=r(5378),s=r(7942),a=r(9322);function c(e,t,r,c){if(!(0,s.A)(e))return e;t=(0,i.A)(t,e);var u=-1,l=t.length,h=l-1,d=e;while(null!=d&&++u<l){var p=(0,a.A)(t[u]),f=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=h){var m=d[p];f=c?c(m,p,d):void 0,void 0===f&&(f=(0,s.A)(m)?m:(0,o.A)(t[u+1])?[]:{})}(0,n.A)(d,p,f),d=d[p]}return e}var u=c;function l(e,t,r){return null==e?e:u(e,t,r)}var h=l}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}!function(){__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return __webpack_require__.d(t,{a:t}),t}}(),function(){__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var __webpack_exports__={};return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AlertService:function(){return e},DataModifierService:function(){return r},DraggableService:function(){return i},EventBus:function(){return ki},HTTPBaseService:function(){return Ur},HelperService:function(){return h},HttpProcess:function(){return t},MixpanelService:function(){return gA},ShrEventBus:function(){return Si},ShrPusherService:function(){return Oi},default:function(){return vA}});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{alert:function(){return Nr},fire:function(){return Br},toast:function(){return jr}});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{makeRequest:function(){return wi},makeRequestToExecute:function(){return bi}});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{alterUsersForProfileStrip:function(){return _i}});const n={enableDragSort:e=>{window.onload=()=>{const t=document.querySelectorAll(e);Array.prototype.map.call(t,r=>{n.enableDragList(r),shrSafeLog(e,t)})}},enableDragList:e=>{Array.prototype.map.call(e.children,e=>{n.enableDragItem(e)})},enableDragItem:e=>{e.setAttribute("draggable",new Boolean(!0).toString()),e.ondrag=n.handleDrag,e.ondragend=n.handleDrop},handleDrag:e=>{const t=e.target,r=t.parentNode,n=e.clientX,i=e.clientY;t.classList.add("drag-sort-active");let o=null===document.elementFromPoint(n,i)?t:document.elementFromPoint(n,i);r===o?.parentNode&&(o=o!==t.nextSibling?o:o.nextSibling,r?.insertBefore(t,o))},handleDrop:e=>{e.target?.classList.remove("drag-sort-active")}};var i=n,o=__webpack_require__(6660),s=__webpack_require__.n(o);
32
32
  /*! js-cookie v3.0.5 | MIT */
33
- function a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var c={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 u(e,t){function r(r,n,i){if("undefined"!==typeof document){i=a({},t,i),"number"===typeof i.expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=r+"="+e.write(n,r)+o}}function n(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(n[a]=e.read(s,a),t===a)break}catch(c){}}return t?n[t]:n}}return Object.create({set:r,get:n,remove:function(e,t){r(e,"",a({},t,{expires:-1}))},withAttributes:function(e){return u(this.converter,a({},this.attributes,e))},withConverter:function(e){return u(a({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var l=u(c,{path:"/"}),h=__webpack_require__(6448);const d="@accessBreezeToken",p="@accessToken",f="idms_token",m="@refreshToken";class g{encryptionKey;constructor(e){this.encryptionKey=e}get(e){return l.get(e)?JSON.parse(h.decrypt(l.get(e),this.encryptionKey)):""}set(e,t,r){let n="";n=h.encrypt(JSON.stringify(t),this.encryptionKey),l.set(e,n,r)}getBreezeTokenKey(){return d}getBreezeToken(){return this.get(d)}saveBreezeToken(e,t){const r=e.expires?Date.parse(e.expires):void 0;e.expires=r,this.set(d,e,t)}removeBreezeToken(e){l.remove(d,e)}getTokenKey(){return p}getToken(){return this.get(p)}saveToken(e,t){this.set(p,e,t)}removeToken(e){l.remove(p,e)}removeLocalStorageToken(){localStorage.removeItem(f)}getRefreshTokenKey(){return m}getRefreshToken(){return this.get(m)}saveRefreshToken(e){this.set(m,e)}removeRefreshToken(){l.remove(m)}}var v=g;const y="@appClient",w="@loggedInUser";class b{encryptionKey;tokenService;constructor(e){this.encryptionKey=e,this.tokenService=new v(e)}setClientDetails(e){h.setLocalStorageItem(y,e)}getClientDetails(){return h.getLocalStorageItem(y)}removeClientDetails(){localStorage.removeItem(y)}setLoggedInUser(e){h.setLocalStorageItem(w,e)}getLoggedInUser(){return h.getLocalStorageItem(w)}removeLoggedInUser(){localStorage.removeItem(w)}isLoggedIn(){return!!this.hasLoggedIn()}logOut(){this.tokenService.removeLocalStorageToken(),this.tokenService.removeToken(),this.tokenService.removeBreezeToken(),this.removeLoggedInUser()}hasLoggedIn(){const e=this.getLoggedInUser();return e?.id}}var _=b,k=__webpack_require__(6586),S=__webpack_require__.n(k),x=__webpack_require__(6096);function C(){this.__data__=new x.A,this.size=0}var E=C;function A(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}var O=A;function I(e){return this.__data__.get(e)}var T=I;function M(e){return this.__data__.has(e)}var R=M,P=__webpack_require__(5436),D=__webpack_require__(3269),L=200;function B(e,t){var r=this.__data__;if(r instanceof x.A){var n=r.__data__;if(!P.A||n.length<L-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new D.A(n)}return r.set(e,t),this.size=r.size,this}var N=B;function j(e){var t=this.__data__=new x.A(e);this.size=t.size}j.prototype.clear=E,j.prototype["delete"]=O,j.prototype.get=T,j.prototype.has=R,j.prototype.set=N;var F=j,U=__webpack_require__(9271),z=__webpack_require__(6979);function q(e,t,r){(void 0!==r&&!(0,z.A)(e[t],r)||void 0===r&&!(t in e))&&(0,U.A)(e,t,r)}var H=q;function $(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var c=s[e?a:++i];if(!1===r(o[c],c,o))break}return t}}var W=$,V=W(),X=V,Y=__webpack_require__(9600),G="object"==typeof exports&&exports&&!exports.nodeType&&exports,J=G&&"object"==typeof module&&module&&!module.nodeType&&module,K=J&&J.exports===G,Z=K?Y.A.Buffer:void 0,Q=Z?Z.allocUnsafe:void 0;function ee(e,t){if(t)return e.slice();var r=e.length,n=Q?Q(r):new e.constructor(r);return e.copy(n),n}var te=ee,re=Y.A.Uint8Array,ne=re;function ie(e){var t=new e.constructor(e.byteLength);return new ne(t).set(new ne(e)),t}var oe=ie;function se(e,t){var r=t?oe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ae=se;function ce(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}var ue=ce,le=__webpack_require__(7942),he=Object.create,de=function(){function e(){}return function(t){if(!(0,le.A)(t))return{};if(he)return he(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),pe=de,fe=__webpack_require__(7902),me=Object.prototype;function ge(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||me;return e===r}var ve=ge;function ye(e){return"function"!=typeof e.constructor||ve(e)?{}:pe((0,fe.A)(e))}var we=ye,be=__webpack_require__(4044),_e=__webpack_require__(7313),ke="[object Arguments]";function Se(e){return(0,_e.A)(e)&&(0,be.A)(e)==ke}var xe=Se,Ce=Object.prototype,Ee=Ce.hasOwnProperty,Ae=Ce.propertyIsEnumerable,Oe=xe(function(){return arguments}())?xe:function(e){return(0,_e.A)(e)&&Ee.call(e,"callee")&&!Ae.call(e,"callee")},Ie=Oe,Te=__webpack_require__(6956),Me=__webpack_require__(405),Re=9007199254740991;function Pe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Re}var De=Pe;function Le(e){return null!=e&&De(e.length)&&!(0,Me.A)(e)}var Be=Le;function Ne(e){return(0,_e.A)(e)&&Be(e)}var je=Ne;function Fe(){return!1}var Ue=Fe,ze="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=ze&&"object"==typeof module&&module&&!module.nodeType&&module,He=qe&&qe.exports===ze,$e=He?Y.A.Buffer:void 0,We=$e?$e.isBuffer:void 0,Ve=We||Ue,Xe=Ve,Ye=__webpack_require__(8938),Ge="[object Arguments]",Je="[object Array]",Ke="[object Boolean]",Ze="[object Date]",Qe="[object Error]",et="[object Function]",tt="[object Map]",rt="[object Number]",nt="[object Object]",it="[object RegExp]",ot="[object Set]",st="[object String]",at="[object WeakMap]",ct="[object ArrayBuffer]",ut="[object DataView]",lt="[object Float32Array]",ht="[object Float64Array]",dt="[object Int8Array]",pt="[object Int16Array]",ft="[object Int32Array]",mt="[object Uint8Array]",gt="[object Uint8ClampedArray]",vt="[object Uint16Array]",yt="[object Uint32Array]",wt={};function bt(e){return(0,_e.A)(e)&&De(e.length)&&!!wt[(0,be.A)(e)]}wt[lt]=wt[ht]=wt[dt]=wt[pt]=wt[ft]=wt[mt]=wt[gt]=wt[vt]=wt[yt]=!0,wt[Ge]=wt[Je]=wt[ct]=wt[Ke]=wt[ut]=wt[Ze]=wt[Qe]=wt[et]=wt[tt]=wt[rt]=wt[nt]=wt[it]=wt[ot]=wt[st]=wt[at]=!1;var _t=bt;function kt(e){return function(t){return e(t)}}var St=kt,xt=__webpack_require__(6713),Ct="object"==typeof exports&&exports&&!exports.nodeType&&exports,Et=Ct&&"object"==typeof module&&module&&!module.nodeType&&module,At=Et&&Et.exports===Ct,Ot=At&&xt.A.process,It=function(){try{var e=Et&&Et.require&&Et.require("util").types;return e||Ot&&Ot.binding&&Ot.binding("util")}catch(t){}}(),Tt=It,Mt=Tt&&Tt.isTypedArray,Rt=Mt?St(Mt):_t,Pt=Rt;function Dt(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Lt=Dt,Bt=__webpack_require__(6124);function Nt(e,t,r,n){var i=!r;r||(r={});var o=-1,s=t.length;while(++o<s){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;void 0===c&&(c=e[a]),i?(0,U.A)(r,a,c):(0,Bt.A)(r,a,c)}return r}var jt=Nt;function Ft(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}var Ut=Ft,zt=__webpack_require__(5378),qt=Object.prototype,Ht=qt.hasOwnProperty;function $t(e,t){var r=(0,Te.A)(e),n=!r&&Ie(e),i=!r&&!n&&Xe(e),o=!r&&!n&&!i&&Pt(e),s=r||n||i||o,a=s?Ut(e.length,String):[],c=a.length;for(var u in e)!t&&!Ht.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||(0,zt.A)(u,c))||a.push(u);return a}var Wt=$t;function Vt(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}var Xt=Vt,Yt=Object.prototype,Gt=Yt.hasOwnProperty;function Jt(e){if(!(0,le.A)(e))return Xt(e);var t=ve(e),r=[];for(var n in e)("constructor"!=n||!t&&Gt.call(e,n))&&r.push(n);return r}var Kt=Jt;function Zt(e){return Be(e)?Wt(e,!0):Kt(e)}var Qt=Zt;function er(e){return jt(e,Qt(e))}var tr=er;function rr(e,t,r,n,i,o,s){var a=Lt(e,r),c=Lt(t,r),u=s.get(c);if(u)H(e,r,u);else{var l=o?o(a,c,r+"",e,t,s):void 0,h=void 0===l;if(h){var d=(0,Te.A)(c),p=!d&&Xe(c),f=!d&&!p&&Pt(c);l=c,d||p||f?(0,Te.A)(a)?l=a:je(a)?l=ue(a):p?(h=!1,l=te(c,!0)):f?(h=!1,l=ae(c,!0)):l=[]:(0,Ye.A)(c)||Ie(c)?(l=a,Ie(a)?l=tr(a):(0,le.A)(a)&&!(0,Me.A)(a)||(l=we(c))):h=!1}h&&(s.set(c,l),i(l,c,n,o,s),s["delete"](c)),H(e,r,l)}}var nr=rr;function ir(e,t,r,n,i){e!==t&&X(t,function(o,s){if(i||(i=new F),(0,le.A)(o))nr(e,t,s,r,ir,n,i);else{var a=n?n(Lt(e,s),o,s+"",e,t,i):void 0;void 0===a&&(a=o),H(e,s,a)}},Qt)}var or=ir;function sr(e){return e}var ar=sr;function cr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var ur=cr,lr=Math.max;function hr(e,t,r){return t=lr(void 0===t?e.length-1:t,0),function(){var n=arguments,i=-1,o=lr(n.length-t,0),s=Array(o);while(++i<o)s[i]=n[t+i];i=-1;var a=Array(t+1);while(++i<t)a[i]=n[i];return a[t]=r(s),ur(e,this,a)}}var dr=hr;function pr(e){return function(){return e}}var fr=pr,mr=__webpack_require__(1758),gr=mr.A?function(e,t){return(0,mr.A)(e,"toString",{configurable:!0,enumerable:!1,value:fr(t),writable:!0})}:ar,vr=gr,yr=800,wr=16,br=Date.now;function _r(e){var t=0,r=0;return function(){var n=br(),i=wr-(n-r);if(r=n,i>0){if(++t>=yr)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var kr=_r,Sr=kr(vr),xr=Sr;function Cr(e,t){return xr(dr(e,t,ar),e+"")}var Er=Cr;function Ar(e,t,r){if(!(0,le.A)(r))return!1;var n=typeof t;return!!("number"==n?Be(r)&&(0,zt.A)(t,r.length):"string"==n&&t in r)&&(0,z.A)(r[t],e)}var Or=Ar;function Ir(e){return Er(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&Or(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++n<i){var a=r[n];a&&e(t,a,n,o)}return t})}var Tr=Ir,Mr=Tr(function(e,t,r){or(e,t,r)}),Rr=Mr;const Pr=e=>S().fire(e),Dr=(e,t)=>{const r={confirmButtonText:"Yes",cancelButtonText:"No",customClass:{confirmButton:"btn btn-primary",cancelButton:"btn btn-danger"},reverseButtons:!0},n={showCancelButton:!t,showCloseButton:!1,buttonsStyling:!1},i=Rr(r,e,n);return Pr({html:`<div class="d-flex flex-column">\n <div class="icon d-flex wpx-76 hpx-76 bg-${i.iconColor}-lt-2 rounded-circle mx-auto mt-4">\n <span class="material-icons fw-700 fs-40 text-${i.iconColor}-dk-1 my-auto mx-auto">\n ${i.iconName}\n </span>\n </div>\n <div class="title text-secondary fw-500 fs-20 lh-24 mx-auto mt-4 px-4 text-center">${i.subject}</div>\n <div class="message text-secondary-muted fw-400 fs-15 lh-23 mx-auto mt-2 px-4">${i.message}</div>\n </div>`,...i})},Lr=(e,t,r)=>{let n,i;switch(e){case"success":n="check_circle",i="success";break;case"warning":n="error",i="warning";break;case"error":n="cancel",i="danger";break;case"info":default:n="help",i="primary";break}Pr({toast:!0,position:"top",showConfirmButton:!1,timer:5e3,timerProgressBar:!1,showCancelButton:!1,didOpen:e=>{e.addEventListener("mouseenter",S().stopTimer),e.addEventListener("mouseleave",S().resumeTimer)},html:`<div class="d-flex justify-content-between">\n <div class="d-flex flex-grow-1 align-items-start">\n <div class="me-2 mt-1">\n <span class="material-icons text-${i} fs-18">\n ${n}\n </span>\n </div>\n <div class="flex-grow-1 me-2 text-left mt-1 mb-2">\n <p class="text-${i} mb-1 fs-16 fw-500">${t}</p>\n <small class="m-0 text-secondary-muted fs-15 fw-normal">${r}</small>\n </div>\n </div>\n <span class="swal2-cancel material-icons small cursor-pointer text-secondary-lt-1"">clear</span>\n </div>`})},Br={"X-Requested-With":"XMLHttpRequest","SHR-Client-URL":`${window?.location?.host}`};class Nr{tokenService;authService;instance;token;apiBaseUrl;refreshTokenPath;loginUrl;timeout;projectType;httpHeaders;showError;constructor(e){this.tokenService=new v(e?.encryptionKey),this.authService=new _(e?.encryptionKey),this.apiBaseUrl=e?.apiBaseUrl||"/",this.refreshTokenPath=e?.refreshTokenPath||"",this.loginUrl=e?.loginUrl,this.timeout=e?.timeout||2e4,this.projectType=e?.projectType,this.httpHeaders=e?.httpHeaders||{},this.showError=Object.assign({},{error500:!0,error400:!0,error422:!0,error404:!0,error401:!0,error403:!0},e?.showError),this.instance=s().create({baseURL:this.apiBaseUrl}),this.token=this.tokenService.getToken(),this.initializeRequestInterceptor(),this.initializeResponseInterceptor()}getInstance=()=>this.instance;interceptorCallbacks=(e,t)=>{if(!t||!Array.isArray(t))throw new Error("callbacks should be an array of functions");t.forEach(t=>{if("function"!==typeof t)throw new Error("callback should be a function");t(e)})};initializeRequestInterceptor=()=>{this.instance.interceptors.request.use(this.handleRequest,e=>{Promise.reject(e)})};handleRequest=e=>{this.token="breeze"===this.projectType?this.tokenService.getBreezeToken()?.token:this.tokenService.getToken();const t=Object.assign({},e.headers?.common||{},this.httpHeaders,{Authorization:`Bearer ${this.token}`},Br);return e.timeout=this.timeout,this.token&&(e.headers=Object.assign({},e.headers,{Authorization:`Bearer ${this.token}`},{common:t})),navigator.onLine?e:(Lr("error","Error","No internet access!"),Promise.reject(new Error("No internet access!")))};initializeResponseInterceptor=()=>{this.instance.interceptors.response.use(e=>{if(e.headers&&e.headers.authorization){const t=e.headers.authorization.split(" ")[1];this.token=t,this.tokenService.saveToken(this.token)}return e.headers&&e.headers["X-IDMS-TOKEN"]&&e.headers["X-IDMS-TOKEN-EXPIRY"]&&this.tokenService.saveBreezeToken({token:e.headers["X-IDMS-TOKEN"],expires:e.headers["X-IDMS-TOKEN-EXPIRY"]}),e},this.handleError)};handleError=async e=>{const t=e.config;if(this.showError?.error403&&403===e.response?.status&&!t?._retry){t._retry=!0;const e=await this.refreshToken();if(200===e.status)return this.token=e.data.jwt,this.tokenService.saveToken(this.token),this.tokenService.saveRefreshToken(e.data.jwt_refresh),navigator.onLine?this.instance(t):(Lr("error","Error","No internet access!"),Promise.reject(new Error("No internet access!")))}return this.showError?.error500&&500==e.response?.status&&(e.response.data.message?Lr("error","Error",e.response.data.message):Lr("error","Error","Unable to process request at this time, please try again")),this.showError?.error400&&400==e.response?.status&&(e.response.data.message?Lr("error","Error",e.response.data.message):Lr("error","Error","Bad Request")),this.showError?.error422&&422===e.response?.status&&(e.response.data.message?Lr("error","Error",e.response.data.message):Lr("error","Error",Object.values(e?.response?.data?.error)[0][0])),this.showError?.error404&&404===e.response?.status&&Lr("error","Error",`${e.config.url} not found`),this.showError?.error401&&401===e.response?.status&&(this.authService.logOut(),Lr("error","Error","Your session has expired, you need to sign in again."),setTimeout(()=>{const e="function"===typeof this.loginUrl?this.loginUrl():this.loginUrl;location.href=e},1e3)),Promise.reject(e.response)};async refreshToken(){const e={jwt_refresh:this.tokenService.getRefreshToken()};return s().post(`${this.apiBaseUrl}${this.refreshTokenPath}`,e)}}
33
+ function a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var c={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 u(e,t){function r(r,n,i){if("undefined"!==typeof document){i=a({},t,i),"number"===typeof i.expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=r+"="+e.write(n,r)+o}}function n(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(n[a]=e.read(s,a),t===a)break}catch(c){}}return t?n[t]:n}}return Object.create({set:r,get:n,remove:function(e,t){r(e,"",a({},t,{expires:-1}))},withAttributes:function(e){return u(this.converter,a({},this.attributes,e))},withConverter:function(e){return u(a({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var l=u(c,{path:"/"}),h=__webpack_require__(6448);const d=new Map,p="@accessBreezeToken",f="@accessToken",m="idms_token",g="@refreshToken";class v{encryptionKey;constructor(e){this.encryptionKey=e}get(e){if(d.has(e))return JSON.parse(d.get(e));const t=l.get(e);if(!t)return"";let r="";try{r=JSON.parse(h.decrypt(t,this.encryptionKey))}catch{return l.remove(e),""}return d.set(e,JSON.stringify(r)),r}set(e,t,r){d.set(e,JSON.stringify(t)),t=h.encrypt(JSON.stringify(t),this.encryptionKey),l.set(e,t,r)}remove(e,t){d.delete(e),l.remove(e,t)}getBreezeTokenKey(){return p}getBreezeToken(){return this.get(p)}saveBreezeToken(e,t){const r=e.expires?Date.parse(e.expires):void 0;e.expires=r,this.set(p,e,t)}removeBreezeToken(e){this.remove(p,e)}getTokenKey(){return f}getToken(){return this.get(f)}saveToken(e,t){this.set(f,e,t)}removeToken(e){this.remove(f,e)}removeLocalStorageToken(){h.removeLocalStorageItem(m)}getRefreshTokenKey(){return g}getRefreshToken(){return this.get(g)}saveRefreshToken(e){this.set(g,e)}removeRefreshToken(e){this.remove(g,e)}}var y=v;const w="@appClient",b="@loggedInUser";class _{encryptionKey;tokenService;constructor(e){this.encryptionKey=e,this.tokenService=new y(e)}setClientDetails(e){h.setLocalStorageItem(w,e)}getClientDetails(){return h.getLocalStorageItem(w)}removeClientDetails(){h.removeLocalStorageItem(w)}setLoggedInUser(e){h.setLocalStorageItem(b,e)}getLoggedInUser(){return h.getLocalStorageItem(b)}removeLoggedInUser(){h.removeLocalStorageItem(b)}isLoggedIn(){return!!this.hasLoggedIn()}logOut(){this.tokenService.removeLocalStorageToken(),this.tokenService.removeToken(),this.tokenService.removeBreezeToken(),this.removeLoggedInUser()}hasLoggedIn(){const e=this.getLoggedInUser();return!!e?.id}}var k=_,S=__webpack_require__(6586),x=__webpack_require__.n(S),C=__webpack_require__(6096);function E(){this.__data__=new C.A,this.size=0}var A=E;function O(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}var I=O;function T(e){return this.__data__.get(e)}var M=T;function R(e){return this.__data__.has(e)}var P=R,D=__webpack_require__(5436),L=__webpack_require__(3269),B=200;function N(e,t){var r=this.__data__;if(r instanceof C.A){var n=r.__data__;if(!D.A||n.length<B-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new L.A(n)}return r.set(e,t),this.size=r.size,this}var j=N;function F(e){var t=this.__data__=new C.A(e);this.size=t.size}F.prototype.clear=A,F.prototype["delete"]=I,F.prototype.get=M,F.prototype.has=P,F.prototype.set=j;var U=F,z=__webpack_require__(9271),q=__webpack_require__(6979);function H(e,t,r){(void 0!==r&&!(0,q.A)(e[t],r)||void 0===r&&!(t in e))&&(0,z.A)(e,t,r)}var $=H;function W(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var c=s[e?a:++i];if(!1===r(o[c],c,o))break}return t}}var V=W,Y=V(),X=Y,J=__webpack_require__(9600),G="object"==typeof exports&&exports&&!exports.nodeType&&exports,K=G&&"object"==typeof module&&module&&!module.nodeType&&module,Z=K&&K.exports===G,Q=Z?J.A.Buffer:void 0,ee=Q?Q.allocUnsafe:void 0;function te(e,t){if(t)return e.slice();var r=e.length,n=ee?ee(r):new e.constructor(r);return e.copy(n),n}var re=te,ne=J.A.Uint8Array,ie=ne;function oe(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}var se=oe;function ae(e,t){var r=t?se(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ce=ae;function ue(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}var le=ue,he=__webpack_require__(7942),de=Object.create,pe=function(){function e(){}return function(t){if(!(0,he.A)(t))return{};if(de)return de(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),fe=pe,me=__webpack_require__(7902),ge=Object.prototype;function ve(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||ge;return e===r}var ye=ve;function we(e){return"function"!=typeof e.constructor||ye(e)?{}:fe((0,me.A)(e))}var be=we,_e=__webpack_require__(4044),ke=__webpack_require__(7313),Se="[object Arguments]";function xe(e){return(0,ke.A)(e)&&(0,_e.A)(e)==Se}var Ce=xe,Ee=Object.prototype,Ae=Ee.hasOwnProperty,Oe=Ee.propertyIsEnumerable,Ie=Ce(function(){return arguments}())?Ce:function(e){return(0,ke.A)(e)&&Ae.call(e,"callee")&&!Oe.call(e,"callee")},Te=Ie,Me=__webpack_require__(6956),Re=__webpack_require__(405),Pe=9007199254740991;function De(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Pe}var Le=De;function Be(e){return null!=e&&Le(e.length)&&!(0,Re.A)(e)}var Ne=Be;function je(e){return(0,ke.A)(e)&&Ne(e)}var Fe=je;function Ue(){return!1}var ze=Ue,qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,He=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=He&&He.exports===qe,We=$e?J.A.Buffer:void 0,Ve=We?We.isBuffer:void 0,Ye=Ve||ze,Xe=Ye,Je=__webpack_require__(8938),Ge="[object Arguments]",Ke="[object Array]",Ze="[object Boolean]",Qe="[object Date]",et="[object Error]",tt="[object Function]",rt="[object Map]",nt="[object Number]",it="[object Object]",ot="[object RegExp]",st="[object Set]",at="[object String]",ct="[object WeakMap]",ut="[object ArrayBuffer]",lt="[object DataView]",ht="[object Float32Array]",dt="[object Float64Array]",pt="[object Int8Array]",ft="[object Int16Array]",mt="[object Int32Array]",gt="[object Uint8Array]",vt="[object Uint8ClampedArray]",yt="[object Uint16Array]",wt="[object Uint32Array]",bt={};function _t(e){return(0,ke.A)(e)&&Le(e.length)&&!!bt[(0,_e.A)(e)]}bt[ht]=bt[dt]=bt[pt]=bt[ft]=bt[mt]=bt[gt]=bt[vt]=bt[yt]=bt[wt]=!0,bt[Ge]=bt[Ke]=bt[ut]=bt[Ze]=bt[lt]=bt[Qe]=bt[et]=bt[tt]=bt[rt]=bt[nt]=bt[it]=bt[ot]=bt[st]=bt[at]=bt[ct]=!1;var kt=_t;function St(e){return function(t){return e(t)}}var xt=St,Ct=__webpack_require__(6713),Et="object"==typeof exports&&exports&&!exports.nodeType&&exports,At=Et&&"object"==typeof module&&module&&!module.nodeType&&module,Ot=At&&At.exports===Et,It=Ot&&Ct.A.process,Tt=function(){try{var e=At&&At.require&&At.require("util").types;return e||It&&It.binding&&It.binding("util")}catch(t){}}(),Mt=Tt,Rt=Mt&&Mt.isTypedArray,Pt=Rt?xt(Rt):kt,Dt=Pt;function Lt(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Bt=Lt,Nt=__webpack_require__(6124);function jt(e,t,r,n){var i=!r;r||(r={});var o=-1,s=t.length;while(++o<s){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;void 0===c&&(c=e[a]),i?(0,z.A)(r,a,c):(0,Nt.A)(r,a,c)}return r}var Ft=jt;function Ut(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}var zt=Ut,qt=__webpack_require__(5378),Ht=Object.prototype,$t=Ht.hasOwnProperty;function Wt(e,t){var r=(0,Me.A)(e),n=!r&&Te(e),i=!r&&!n&&Xe(e),o=!r&&!n&&!i&&Dt(e),s=r||n||i||o,a=s?zt(e.length,String):[],c=a.length;for(var u in e)!t&&!$t.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||(0,qt.A)(u,c))||a.push(u);return a}var Vt=Wt;function Yt(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}var Xt=Yt,Jt=Object.prototype,Gt=Jt.hasOwnProperty;function Kt(e){if(!(0,he.A)(e))return Xt(e);var t=ye(e),r=[];for(var n in e)("constructor"!=n||!t&&Gt.call(e,n))&&r.push(n);return r}var Zt=Kt;function Qt(e){return Ne(e)?Vt(e,!0):Zt(e)}var er=Qt;function tr(e){return Ft(e,er(e))}var rr=tr;function nr(e,t,r,n,i,o,s){var a=Bt(e,r),c=Bt(t,r),u=s.get(c);if(u)$(e,r,u);else{var l=o?o(a,c,r+"",e,t,s):void 0,h=void 0===l;if(h){var d=(0,Me.A)(c),p=!d&&Xe(c),f=!d&&!p&&Dt(c);l=c,d||p||f?(0,Me.A)(a)?l=a:Fe(a)?l=le(a):p?(h=!1,l=re(c,!0)):f?(h=!1,l=ce(c,!0)):l=[]:(0,Je.A)(c)||Te(c)?(l=a,Te(a)?l=rr(a):(0,he.A)(a)&&!(0,Re.A)(a)||(l=be(c))):h=!1}h&&(s.set(c,l),i(l,c,n,o,s),s["delete"](c)),$(e,r,l)}}var ir=nr;function or(e,t,r,n,i){e!==t&&X(t,function(o,s){if(i||(i=new U),(0,he.A)(o))ir(e,t,s,r,or,n,i);else{var a=n?n(Bt(e,s),o,s+"",e,t,i):void 0;void 0===a&&(a=o),$(e,s,a)}},er)}var sr=or;function ar(e){return e}var cr=ar;function ur(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var lr=ur,hr=Math.max;function dr(e,t,r){return t=hr(void 0===t?e.length-1:t,0),function(){var n=arguments,i=-1,o=hr(n.length-t,0),s=Array(o);while(++i<o)s[i]=n[t+i];i=-1;var a=Array(t+1);while(++i<t)a[i]=n[i];return a[t]=r(s),lr(e,this,a)}}var pr=dr;function fr(e){return function(){return e}}var mr=fr,gr=__webpack_require__(1758),vr=gr.A?function(e,t){return(0,gr.A)(e,"toString",{configurable:!0,enumerable:!1,value:mr(t),writable:!0})}:cr,yr=vr,wr=800,br=16,_r=Date.now;function kr(e){var t=0,r=0;return function(){var n=_r(),i=br-(n-r);if(r=n,i>0){if(++t>=wr)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Sr=kr,xr=Sr(yr),Cr=xr;function Er(e,t){return Cr(pr(e,t,cr),e+"")}var Ar=Er;function Or(e,t,r){if(!(0,he.A)(r))return!1;var n=typeof t;return!!("number"==n?Ne(r)&&(0,qt.A)(t,r.length):"string"==n&&t in r)&&(0,q.A)(r[t],e)}var Ir=Or;function Tr(e){return Ar(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&Ir(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++n<i){var a=r[n];a&&e(t,a,n,o)}return t})}var Mr=Tr,Rr=Mr(function(e,t,r){sr(e,t,r)}),Pr=Rr;const Dr="calc(var(--sfe-stack-level-alert) + 1)",Lr=e=>{const t=e.closest(".swal2-container");t?.style.setProperty("z-index",Dr)},Br=e=>{const t=e.didOpen;return x().fire({...e,didOpen:e=>{Lr(e),t?.(e)}})},Nr=(e,t)=>{const r={confirmButtonText:"Yes",cancelButtonText:"No",customClass:{confirmButton:"btn btn-primary",cancelButton:"btn btn-danger"},reverseButtons:!0},n={showCancelButton:!t,showCloseButton:!1,buttonsStyling:!1},i=Pr(r,e,n);return Br({html:`<div class="d-flex flex-column">\n <div class="icon d-flex wpx-76 hpx-76 bg-${i.iconColor}-lt-2 rounded-circle mx-auto mt-4">\n <span class="material-icons fw-700 fs-40 text-${i.iconColor}-dk-1 my-auto mx-auto">\n ${i.iconName}\n </span>\n </div>\n <div class="title text-secondary fw-500 fs-20 lh-24 mx-auto mt-4 px-4 text-center">${i.subject}</div>\n <div class="message text-secondary-muted fw-400 fs-15 lh-23 mx-auto mt-2 px-4">${i.message}</div>\n </div>`,...i})},jr=(e,t,r)=>{let n,i;switch(e){case"success":n="check_circle",i="success";break;case"warning":n="error",i="warning";break;case"error":n="cancel",i="danger";break;case"info":default:n="help",i="primary";break}Br({toast:!0,position:"top",showConfirmButton:!1,timer:5e3,timerProgressBar:!1,showCancelButton:!1,didOpen:e=>{e.addEventListener("mouseenter",x().stopTimer),e.addEventListener("mouseleave",x().resumeTimer),e.querySelector(".swal2-cancel")?.addEventListener("click",()=>{x().close()})},html:`<div class="d-flex justify-content-between">\n <div class="d-flex flex-grow-1 align-items-start">\n <div class="me-2 mt-1">\n <span class="material-icons text-${i} fs-18">\n ${n}\n </span>\n </div>\n <div class="flex-grow-1 me-2 text-left mt-1 mb-2">\n <p class="text-${i} mb-1 fs-16 fw-500">${t}</p>\n <small class="m-0 text-secondary-muted fs-15 fw-normal">${r}</small>\n </div>\n </div>\n <span class="swal2-cancel material-icons small cursor-pointer text-secondary-lt-1"">clear</span>\n </div>`})},Fr={"X-Requested-With":"XMLHttpRequest","SHR-Client-URL":`${window?.location?.host}`};class Ur{tokenService;authService;instance;token;apiBaseUrl;refreshTokenPath;loginUrl;timeout;projectType;httpHeaders;showError;constructor(e){this.tokenService=new y(e?.encryptionKey),this.authService=new k(e?.encryptionKey),this.apiBaseUrl=e?.apiBaseUrl||"/",this.refreshTokenPath=e?.refreshTokenPath||"",this.loginUrl=e?.loginUrl,this.timeout=e?.timeout||2e4,this.projectType=e?.projectType,this.httpHeaders=e?.httpHeaders||{},this.showError=Object.assign({},{error500:!0,error400:!0,error422:!0,error404:!0,error401:!0,error403:!0},e?.showError),this.instance=s().create({baseURL:this.apiBaseUrl}),this.token=this.tokenService.getToken(),this.initializeRequestInterceptor(),this.initializeResponseInterceptor()}getInstance=()=>this.instance;interceptorCallbacks=(e,t)=>{if(!t||!Array.isArray(t))throw new Error("callbacks should be an array of functions");t.forEach(t=>{if("function"!==typeof t)throw new Error("callback should be a function");t(e)})};initializeRequestInterceptor=()=>{this.instance.interceptors.request.use(this.handleRequest,e=>{Promise.reject(e)})};handleRequest=e=>{this.token="breeze"===this.projectType?this.tokenService.getBreezeToken()?.token:this.tokenService.getToken();const t=Object.assign({},e.headers?.common||{},this.httpHeaders,{Authorization:`Bearer ${this.token}`},Fr);return e.timeout=this.timeout,this.token&&(e.headers=Object.assign({},e.headers,{Authorization:`Bearer ${this.token}`},{common:t})),navigator.onLine?e:(jr("error","Error","No internet access!"),Promise.reject(new Error("No internet access!")))};initializeResponseInterceptor=()=>{this.instance.interceptors.response.use(e=>{if(e.headers&&e.headers.authorization){const t=e.headers.authorization.split(" ")[1];this.token=t,this.tokenService.saveToken(this.token)}return e.headers&&e.headers["X-IDMS-TOKEN"]&&e.headers["X-IDMS-TOKEN-EXPIRY"]&&this.tokenService.saveBreezeToken({token:e.headers["X-IDMS-TOKEN"],expires:e.headers["X-IDMS-TOKEN-EXPIRY"]}),e},this.handleError)};handleError=async e=>{const t=e.config;if(this.showError?.error403&&403===e.response?.status&&!t?._retry){t._retry=!0;const e=await this.refreshToken();if(200===e.status)return this.token=e.data.jwt,this.tokenService.saveToken(this.token),this.tokenService.saveRefreshToken(e.data.jwt_refresh),navigator.onLine?this.instance(t):(jr("error","Error","No internet access!"),Promise.reject(new Error("No internet access!")))}return this.showError?.error500&&500==e.response?.status&&(e.response.data.message?jr("error","Error",e.response.data.message):jr("error","Error","Unable to process request at this time, please try again")),this.showError?.error400&&400==e.response?.status&&(e.response.data.message?jr("error","Error",e.response.data.message):jr("error","Error","Bad Request")),this.showError?.error422&&422===e.response?.status&&(e.response.data.message?jr("error","Error",e.response.data.message):jr("error","Error",Object.values(e?.response?.data?.error)[0][0])),this.showError?.error404&&404===e.response?.status&&jr("error","Error",`${e.config.url} not found`),this.showError?.error401&&401===e.response?.status&&(this.authService.logOut(),jr("error","Error","Your session has expired, you need to sign in again."),setTimeout(()=>{const e="function"===typeof this.loginUrl?this.loginUrl():this.loginUrl;location.href=e},1e3)),Promise.reject(e.response)};async refreshToken(){const e={jwt_refresh:this.tokenService.getRefreshToken()};return s().post(`${this.apiBaseUrl}${this.refreshTokenPath}`,e)}}
34
34
  /**
35
35
  * @vue/shared v3.5.30
36
36
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
37
37
  * @license MIT
38
38
  **/
39
- function jr(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return e=>e in t}const Fr=Object.assign,Ur=Object.prototype.hasOwnProperty,zr=(e,t)=>Ur.call(e,t),qr=Array.isArray,Hr=e=>"[object Map]"===Yr(e),$r=e=>"string"===typeof e,Wr=e=>"symbol"===typeof e,Vr=e=>null!==e&&"object"===typeof e,Xr=Object.prototype.toString,Yr=e=>Xr.call(e),Gr=e=>Yr(e).slice(8,-1),Jr=e=>$r(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Kr=e=>{const t=Object.create(null);return r=>{const n=t[r];return n||(t[r]=e(r))}},Zr=/-\w/g,Qr=(Kr(e=>e.replace(Zr,e=>e.slice(1).toUpperCase())),/\B([A-Z])/g),en=(Kr(e=>e.replace(Qr,"-$1").toLowerCase()),Kr(e=>e.charAt(0).toUpperCase()+e.slice(1))),tn=(Kr(e=>{const t=e?`on${en(e)}`:"";return t}),(e,t)=>!Object.is(e,t));let rn;let nn,on,sn=0;function an(){sn++}function cn(){if(--sn>0)return;if(on){let e=on;on=void 0;while(e){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;while(nn){let r=nn;nn=void 0;while(r){const n=r.next;if(r.next=void 0,r.flags&=-9,1&r.flags)try{r.trigger()}catch(t){e||(e=t)}r=n}}if(e)throw e}let un=!0;const ln=[];function hn(){ln.push(un),un=!1}function dn(){const e=ln.pop();un=void 0===e||e}class pn{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class fn{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!rn||!un||rn===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==rn)t=this.activeLink=new pn(rn,this),rn.deps?(t.prevDep=rn.depsTail,rn.depsTail.nextDep=t,rn.depsTail=t):rn.deps=rn.depsTail=t,mn(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=rn.depsTail,t.nextDep=void 0,rn.depsTail.nextDep=t,rn.depsTail=t,rn.deps===t&&(rn.deps=e)}return t}trigger(e){this.version++,this.notify(e)}notify(e){an();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{cn()}}}function mn(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)mn(e)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const gn=new WeakMap,vn=Symbol(""),yn=Symbol(""),wn=Symbol("");function bn(e,t,r){if(un&&rn){let t=gn.get(e);t||gn.set(e,t=new Map);let n=t.get(r);n||(t.set(r,n=new fn),n.map=t,n.key=r),n.track()}}function _n(e,t,r,n,i,o){const s=gn.get(e);if(!s)return void 0;const a=e=>{e&&e.trigger()};if(an(),"clear"===t)s.forEach(a);else{const i=qr(e),o=i&&Jr(r);if(i&&"length"===r){const e=Number(n);s.forEach((t,r)=>{("length"===r||r===wn||!Wr(r)&&r>=e)&&a(t)})}else switch((void 0!==r||s.has(void 0))&&a(s.get(r)),o&&a(s.get(wn)),t){case"add":i?o&&a(s.get("length")):(a(s.get(vn)),Hr(e)&&a(s.get(yn)));break;case"delete":i||(a(s.get(vn)),Hr(e)&&a(s.get(yn)));break;case"set":Hr(e)&&a(s.get(vn));break}}cn()}function kn(e,t){const r=gn.get(e);return r&&r.get(t)}function Sn(e){const t=ci(e);return t===e?t:(bn(t,"iterate",wn),si(e)?t:t.map(ui))}function xn(e){return bn(e=ci(e),"iterate",wn),e}function Cn(e,t){return oi(e)?ii(e)?li(ui(t)):li(t):ui(t)}const En={__proto__:null,[Symbol.iterator](){return An(this,Symbol.iterator,e=>Cn(this,e))},concat(...e){return Sn(this).concat(...e.map(e=>qr(e)?Sn(e):e))},entries(){return An(this,"entries",e=>(e[1]=Cn(this,e[1]),e))},every(e,t){return In(this,"every",e,t,void 0,arguments)},filter(e,t){return In(this,"filter",e,t,e=>e.map(e=>Cn(this,e)),arguments)},find(e,t){return In(this,"find",e,t,e=>Cn(this,e),arguments)},findIndex(e,t){return In(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return In(this,"findLast",e,t,e=>Cn(this,e),arguments)},findLastIndex(e,t){return In(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return In(this,"forEach",e,t,void 0,arguments)},includes(...e){return Mn(this,"includes",e)},indexOf(...e){return Mn(this,"indexOf",e)},join(e){return Sn(this).join(e)},lastIndexOf(...e){return Mn(this,"lastIndexOf",e)},map(e,t){return In(this,"map",e,t,void 0,arguments)},pop(){return Rn(this,"pop")},push(...e){return Rn(this,"push",e)},reduce(e,...t){return Tn(this,"reduce",e,t)},reduceRight(e,...t){return Tn(this,"reduceRight",e,t)},shift(){return Rn(this,"shift")},some(e,t){return In(this,"some",e,t,void 0,arguments)},splice(...e){return Rn(this,"splice",e)},toReversed(){return Sn(this).toReversed()},toSorted(e){return Sn(this).toSorted(e)},toSpliced(...e){return Sn(this).toSpliced(...e)},unshift(...e){return Rn(this,"unshift",e)},values(){return An(this,"values",e=>Cn(this,e))}};function An(e,t,r){const n=xn(e),i=n[t]();return n===e||si(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.done||(e.value=r(e.value)),e}),i}const On=Array.prototype;function In(e,t,r,n,i,o){const s=xn(e),a=s!==e&&!si(e),c=s[t];if(c!==On[t]){const t=c.apply(e,o);return a?ui(t):t}let u=r;s!==e&&(a?u=function(t,n){return r.call(this,Cn(e,t),n,e)}:r.length>2&&(u=function(t,n){return r.call(this,t,n,e)}));const l=c.call(s,u,n);return a&&i?i(l):l}function Tn(e,t,r,n){const i=xn(e),o=i!==e&&!si(e);let s=r,a=!1;i!==e&&(o?(a=0===n.length,s=function(t,n,i){return a&&(a=!1,t=Cn(e,t)),r.call(this,t,Cn(e,n),i,e)}):r.length>3&&(s=function(t,n,i){return r.call(this,t,n,i,e)}));const c=i[t](s,...n);return a?Cn(e,c):c}function Mn(e,t,r){const n=ci(e);bn(n,"iterate",wn);const i=n[t](...r);return-1!==i&&!1!==i||!ai(r[0])?i:(r[0]=ci(r[0]),n[t](...r))}function Rn(e,t,r=[]){hn(),an();const n=ci(e)[t].apply(e,r);return cn(),dn(),n}const Pn=jr("__proto__,__v_isRef,__isVue"),Dn=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(Wr));function Ln(e){Wr(e)||(e=String(e));const t=ci(this);return bn(t,"has",e),t.hasOwnProperty(e)}class Bn{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if("__v_skip"===t)return e["__v_skip"];const n=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!n;if("__v_isReadonly"===t)return n;if("__v_isShallow"===t)return i;if("__v_raw"===t)return r===(n?i?Zn:Kn:i?Jn:Gn).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=qr(e);if(!n){let e;if(o&&(e=En[t]))return e;if("hasOwnProperty"===t)return Ln}const s=Reflect.get(e,t,hi(e)?e:r);if(Wr(t)?Dn.has(t):Pn(t))return s;if(n||bn(e,"get",t),i)return s;if(hi(s)){const e=o&&Jr(t)?s:s.value;return n&&Vr(e)?ri(e):e}return Vr(s)?n?ri(s):ti(s):s}}class Nn extends Bn{constructor(e=!1){super(!1,e)}set(e,t,r,n){let i=e[t];const o=qr(e)&&Jr(t);if(!this._isShallow){const e=oi(i);if(si(r)||oi(r)||(i=ci(i),r=ci(r)),!o&&hi(i)&&!hi(r))return e||(i.value=r),!0}const s=o?Number(t)<e.length:zr(e,t),a=Reflect.set(e,t,r,hi(e)?e:n);return e===ci(n)&&(s?tn(r,i)&&_n(e,"set",t,r,i):_n(e,"add",t,r)),a}deleteProperty(e,t){const r=zr(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&_n(e,"delete",t,void 0,n),i}has(e,t){const r=Reflect.has(e,t);return Wr(t)&&Dn.has(t)||bn(e,"has",t),r}ownKeys(e){return bn(e,"iterate",qr(e)?"length":vn),Reflect.ownKeys(e)}}class jn extends Bn{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Fn=new Nn,Un=new jn,zn=e=>e,qn=e=>Reflect.getPrototypeOf(e);function Hn(e,t,r){return function(...n){const i=this["__v_raw"],o=ci(i),s=Hr(o),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=i[e](...n),l=r?zn:t?li:ui;return!t&&bn(o,"iterate",c?yn:vn),Fr(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[l(e[0]),l(e[1])]:l(e),done:t}}})}}function $n(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Wn(e,t){const r={get(r){const n=this["__v_raw"],i=ci(n),o=ci(r);e||(tn(r,o)&&bn(i,"get",r),bn(i,"get",o));const{has:s}=qn(i),a=t?zn:e?li:ui;return s.call(i,r)?a(n.get(r)):s.call(i,o)?a(n.get(o)):void(n!==i&&n.get(r))},get size(){const t=this["__v_raw"];return!e&&bn(ci(t),"iterate",vn),t.size},has(t){const r=this["__v_raw"],n=ci(r),i=ci(t);return e||(tn(t,i)&&bn(n,"has",t),bn(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)},forEach(r,n){const i=this,o=i["__v_raw"],s=ci(o),a=t?zn:e?li:ui;return!e&&bn(s,"iterate",vn),o.forEach((e,t)=>r.call(n,a(e),a(t),i))}};Fr(r,e?{add:$n("add"),set:$n("set"),delete:$n("delete"),clear:$n("clear")}:{add(e){const r=ci(this),n=qn(r),i=ci(e),o=t||si(e)||oi(e)?e:i,s=n.has.call(r,o)||tn(e,o)&&n.has.call(r,e)||tn(i,o)&&n.has.call(r,i);return s||(r.add(o),_n(r,"add",o,o)),this},set(e,r){t||si(r)||oi(r)||(r=ci(r));const n=ci(this),{has:i,get:o}=qn(n);let s=i.call(n,e);s||(e=ci(e),s=i.call(n,e));const a=o.call(n,e);return n.set(e,r),s?tn(r,a)&&_n(n,"set",e,r,a):_n(n,"add",e,r),this},delete(e){const t=ci(this),{has:r,get:n}=qn(t);let i=r.call(t,e);i||(e=ci(e),i=r.call(t,e));const o=n?n.call(t,e):void 0,s=t.delete(e);return i&&_n(t,"delete",e,void 0,o),s},clear(){const e=ci(this),t=0!==e.size,r=void 0,n=e.clear();return t&&_n(e,"clear",void 0,void 0,r),n}});const n=["keys","values","entries",Symbol.iterator];return n.forEach(n=>{r[n]=Hn(n,e,t)}),r}function Vn(e,t){const r=Wn(e,t);return(t,n,i)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(zr(r,n)&&n in t?r:t,n,i)}const Xn={get:Vn(!1,!1)},Yn={get:Vn(!0,!1)};const Gn=new WeakMap,Jn=new WeakMap,Kn=new WeakMap,Zn=new WeakMap;function Qn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ei(e){return e["__v_skip"]||!Object.isExtensible(e)?0:Qn(Gr(e))}function ti(e){return oi(e)?e:ni(e,!1,Fn,Xn,Gn)}function ri(e){return ni(e,!0,Un,Yn,Kn)}function ni(e,t,r,n,i){if(!Vr(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const o=ei(e);if(0===o)return e;const s=i.get(e);if(s)return s;const a=new Proxy(e,2===o?n:r);return i.set(e,a),a}function ii(e){return oi(e)?ii(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function oi(e){return!(!e||!e["__v_isReadonly"])}function si(e){return!(!e||!e["__v_isShallow"])}function ai(e){return!!e&&!!e["__v_raw"]}function ci(e){const t=e&&e["__v_raw"];return t?ci(t):e}const ui=e=>Vr(e)?ti(e):e,li=e=>Vr(e)?ri(e):e;function hi(e){return!!e&&!0===e["__v_isRef"]}function di(e){return hi(e)?e.value:e}function pi(e){const t=qr(e)?new Array(e.length):{};for(const r in e)t[r]=mi(e,r);return t}class fi{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this["__v_isRef"]=!0,this._value=void 0,this._raw=ci(e);let n=!0,i=e;if(!qr(e)||!Jr(String(t)))do{n=!ai(i)||si(i)}while(n&&(i=i["__v_raw"]));this._shallow=n}get value(){let e=this._object[this._key];return this._shallow&&(e=di(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&hi(this._raw[this._key])){const t=this._object[this._key];if(hi(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return kn(this._raw,this._key)}}function mi(e,t,r){return new fi(e,t,r)}function gi(e,t,r){const n=ti({isLoading:!1,isSuccessful:!1,hasError:!1,response:null,error:null});return n.isLoading=!0,n.error=null,e.request(t).then(r).then(e=>{n.response=e,n.isSuccessful=!0}).catch(e=>{n.error=e?.data,n.hasError=!0}).finally(()=>{n.isLoading=!1}),n}function vi(e,t,r){const n=ti({response:null,error:null,isLoading:!1,isSuccessful:!1,hasError:!1}),i=async i=>{const o=e.request(i?{...t,...i}:t);n.isLoading=!0;try{const e=await o.then(r);return n.response=e,n.error=null,n.isSuccessful=!0,n.hasError=!1,e}catch(s){throw n.response=null,n.error=s?.data,n.isSuccessful=!1,n.hasError=!0,new Error(s?.data)}finally{n.isLoading=!1}};return{...pi(n),execute:i}}const yi=(e,t,r)=>{if(Array.isArray(e)){const n=[];return e.forEach(e=>{n.push(yi(e,t,r))}),n}return e.___group_name=h.getObjectProperty(e,t,""),e.___identity=h.getObjectProperty(e,r,""),e};class wi{eventTarget;constructor(e=""){this.eventTarget=document.appendChild(document.createComment(e))}on(e,t){this.eventTarget.addEventListener(e,t)}once(e,t){this.eventTarget.addEventListener(e,t,{once:!0})}off(e,t){this.eventTarget.removeEventListener(e,t)}emit(e,t){const r=new CustomEvent(e,{detail:t});return this.eventTarget.dispatchEvent(r)}}const bi=new wi("shr-event-bus");var _i=__webpack_require__(2242),ki=__webpack_require__.n(_i);class Si{pusher;setupPusherConnection(e,t){this.pusher=new(ki())(e,t)}}var xi,Ci=new Si;if("undefined"===typeof window){var Ei={hostname:""};xi={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Ei,referrer:""},screen:{width:0,height:0},location:Ei,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else xi=window;var Ai={DEBUG:!1,LIB_VERSION:"2.76.0"},Oi="__mp_targeting",Ii="__mp_recorder",Ti="__MP_RECORDER_FILENAME__",Mi="__MP_TARGETING_FILENAME__";function Ri(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pi(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(u){return void r(u)}a.done?t(c):Promise.resolve(c).then(n,i)}function Di(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){Pi(o,n,i,s,a,"next",e)}function a(e){Pi(o,n,i,s,a,"throw",e)}s(void 0)})}}function Li(e,t,r){return Li=Yi()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=Function.bind.apply(e,n),o=new i;return r&&$i(o,r.prototype),o},Li.apply(null,arguments)}function Bi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ni(e,t,r){return t&&Bi(e.prototype,t),e}function ji(){return ji=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ji.apply(this,arguments)}function Fi(e){return Fi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fi(e)}function Ui(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$i(e,t)}function zi(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function qi(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function Hi(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function $i(e,t){return $i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$i(e,t)}function Wi(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Vi(e,t){if(e){if("string"===typeof e)return Ri(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ri(e,t):void 0}}function Xi(e){var t="function"===typeof Map?new Map:void 0;return Xi=function(e){if(null===e||!qi(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Li(e,arguments,Fi(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),$i(r,e)},Xi(e)}function Yi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(pk){}return(Yi=function(){return!!e})()}function Gi(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Vi(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ji(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return c([e,t])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function Ki(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var Zi,Qi=Object.defineProperty,eo=function(e,t,r){return t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},to=function(e,t,r){return eo(e,"symbol"!==("undefined"===typeof t?"undefined":Wi(t))?t+"":t,r)},ro=Object.defineProperty,no=function(e,t,r){return t in e?ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},io=function(e,t,r){return no(e,"symbol"!==("undefined"===typeof t?"undefined":Wi(t))?t+"":t,r)},oo=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(oo||{}),so={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ao={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},co={},uo=function(){return!!globalThis.Zone};function lo(e){if(co[e])return co[e];var t=globalThis[e],r=t.prototype,n=e in so?so[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in ao?ao[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"===typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!uo())return co[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?co[e]=u:r}catch(l){return r}}var ho={};function po(e,t,r){var n,i=e+"."+String(r);if(ho[i])return ho[i].call(t);var o=lo(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(ho[i]=s,s.call(t)):t[r]}var fo={};function mo(e,t,r){var n=e+"."+String(r);if(fo[n])return fo[n].bind(t);var i=lo(e),o=i[r];return"function"!==typeof o?t[r]:(fo[n]=o,o.bind(t))}function go(e){return po("Node",e,"childNodes")}function vo(e){return po("Node",e,"parentNode")}function yo(e){return po("Node",e,"parentElement")}function wo(e){return po("Node",e,"textContent")}function bo(e,t){return mo("Node",e,"contains")(t)}function _o(e){return mo("Node",e,"getRootNode")()}function ko(e){return e&&"host"in e?po("ShadowRoot",e,"host"):null}function So(e){return e.styleSheets}function xo(e){return e&&"shadowRoot"in e?po("Element",e,"shadowRoot"):null}function Co(e,t){return po("Element",e,"querySelector")(t)}function Eo(e,t){return po("Element",e,"querySelectorAll")(t)}function Ao(){return lo("MutationObserver").constructor}function Oo(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var Io={childNodes:go,parentNode:vo,parentElement:yo,textContent:wo,contains:bo,getRootNode:_o,host:ko,styleSheets:So,shadowRoot:xo,querySelector:Co,querySelectorAll:Eo,mutationObserver:Ao,patch:Oo};function To(e){return e.nodeType===e.ELEMENT_NODE}function Mo(e){var t=e&&"host"in e&&"mode"in e&&Io.host(e)||null;return Boolean(t&&"shadowRoot"in t&&Io.shadowRoot(t)===e)}function Ro(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Po(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Do(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Lo(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,function(e){return Bo(e,r)}).join("");return Po(n)}catch(i){return null}}function Bo(e,t){if(jo(e)){var r;try{r=Lo(e.styleSheet)||Do(e)}catch(i){r=e.cssText}return e.styleSheet.href?Qo(r,e.styleSheet.href):r}var n=e.cssText;return Fo(e)&&e.selectorText.includes(":")&&(n=No(n)),t?Qo(n,t):n}function No(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function jo(e){return"styleSheet"in e}function Fo(e){return"selectorText"in e}var Uo=function(){function e(){io(this,"idNodeMap",new Map),io(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function zo(){return new Uo}function qo(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&Ho(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function Ho(e){return e.toLowerCase()}var $o="__rrweb_original__";function Wo(e){var t=e.getContext("2d");if(!t)return!0;for(var r=50,n=0;n<e.width;n+=r)for(var i=0;i<e.height;i+=r){var o=t.getImageData,s=$o in o?o[$o]:o,a=new Uint32Array(s.call(t,n,i,Math.min(r,e.width-n),Math.min(r,e.height-i)).data.buffer);if(a.some(function(e){return 0!==e}))return!1}return!0}function Vo(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ho(t):null}function Xo(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(s){return null}var n,i=/\.([0-9a-z]+)(?:$)/i,o=r.pathname.match(i);return null!=(n=null==o?void 0:o[1])?n:null}function Yo(e){var t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}var Go=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Jo=/^(?:[a-z+]+:)?\/\//i,Ko=/^www\..*/i,Zo=/^(data:)([^,]*),(.*)/i;function Qo(e,t){return(e||"").replace(Go,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;if(Jo.test(a)||Ko.test(a))return"url("+c+a+c+")";if(Zo.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+(Yo(t)+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h,d=Gi(l);!(h=d()).done;){var p=h.value;"."!==p&&(".."===p?u.pop():u.push(p))}return"url("+c+u.join("/")+c+")"})}function es(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function ts(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"===typeof e)for(var s=es(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"===typeof n[c].textContent){for(var u=es(n[c].textContent,r),l=100,h=3;h<u.length;h++)if(!u[h].match(/[a-zA-Z0-9]/)&&-1===u.indexOf(u.substring(0,h),1))break;for(;h<u.length;h++){var d=u.substring(0,h),p=s.split(d),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)f=s.indexOf(d,1);else if(1===p.length){if(d=d.substring(0,d.length-1),p=s.split(d),p.length<=1)return i.push(e),i;h=l+1}else h===u.length-1&&(f=s.indexOf(d));if(p.length>=2&&h>l){var m=n[c-1].textContent;if(m&&"string"===typeof m){var g=es(m).length;f=s.indexOf(d,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var v=Math.floor(f/a);v>0&&v<e.length;){if(o+=1,o>50*n.length)return i.push(e),i;var y=es(e.substring(0,v),r);if(y.length===f){i.push(e.substring(0,v)),e=e.substring(v),s=s.substring(f);break}y.length<f?v+=Math.max(1,Math.floor((f-y.length)/a)):v-=Math.max(1,Math.floor((y.length-f)*a))}break}}}return i.push(e),i}function rs(e,t){return ts(e,t).join("/* rr_split */")}var ns,is,os=1,ss=new RegExp("[^a-z0-9-_:]"),as=-2;function cs(){return os++}function us(e){if(zi(e,HTMLFormElement))return"form";var t=Ho(e.tagName);return ss.test(t)?"div":t}var ls=/^[^ \t\n\r\u000c]+/,hs=/^[, \t\n\r\u000c]+/;function ds(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}var i=[];while(1){if(n(hs),r>=t.length)break;var o=n(ls);if(","===o.slice(-1))o=fs(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=fs(e,o);var a=!1;while(1){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){r+=1,i.push((o+s).trim());break}"("===c&&(a=!0)}s+=c,r+=1}}}return i.join(", ")}var ps=new WeakMap;function fs(e,t){return t&&""!==t.trim()?gs(e,t):t}function ms(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function gs(e,t){var r=ps.get(e);if(r||(r=e.createElement("a"),ps.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function vs(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?fs(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?ds(e,n):"style"===r?Qo(n,gs(e)):"object"===t&&"data"===r?fs(e,n):n:fs(e,n):n}function ys(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ws(e,t,r){try{if("string"===typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(o){}return!1}function bs(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&bs(Io.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&bs(Io.parentNode(e),t,r)}function _s(e,t,r,n){var i;if(To(e)){if(i=e,!Io.childNodes(i).length)return!1}else{if(null===Io.parentElement(e))return!1;i=Io.parentElement(e)}try{if("string"===typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(bs(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(o){}return!1}function ks(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(c){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}function Ss(e,t,r){var n,i=!1;try{n=e.sheet}catch(s){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}function xs(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskTextFn,h=t.maskInputFn,d=t.dataURLOptions,p=void 0===d?{}:d,f=t.inlineImages,m=t.recordCanvas,g=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,w=t.cssCaptured,b=void 0!==w&&w,_=Cs(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:oo.Document,childNodes:[],compatMode:e.compatMode}:{type:oo.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:oo.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return As(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:p,inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y,rootId:_});case e.TEXT_NODE:return Es(e,{doc:r,needsMask:s,maskTextFn:l,rootId:_,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:oo.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:oo.Comment,textContent:Io.textContent(e)||"",rootId:_};default:return!1}}function Cs(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}function Es(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=Io.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":o||(c=Io.textContent(e),u&&c&&(c=Qo(c,gs(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,Io.parentElement(e)):c.replace(/[\S]/g,"*")),{type:oo.Text,textContent:c||"",rootId:i}}function As(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,d=t.inlineImages,p=t.recordCanvas,f=t.keepIframeSrcFn,m=t.newlyAddedElement,g=void 0!==m&&m,v=t.rootId,y=ws(e,i,o),w=us(e),b={},_=e.attributes.length,k=0;k<_;k++){var S=e.attributes[k];ys(w,S.name,S.value)||(b[S.name]=vs(n,w,Ho(S.name),S.value))}if("link"===w&&s){var x=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),C=null;x&&(C=Lo(x)),C&&(delete b.rel,delete b.href,b._cssText=C)}if("style"===w&&e.sheet){var E=Lo(e.sheet);E&&(e.childNodes.length>1&&(E=rs(E,e)),b._cssText=E)}if("input"===w||"textarea"===w||"select"===w){var A=e.value,O=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&A?b.value=qo({element:e,type:Vo(e),tagName:w,value:A,maskInputOptions:c,maskInputFn:u}):O&&(b.checked=O)}if("option"===w&&(e.selected&&!c["select"]?b.selected=!0:delete b.selected),"dialog"===w&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===w&&p)if("2d"===e.__context)Wo(e)||(b.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var I=e.toDataURL(h.type,h.quality),T=n.createElement("canvas");T.width=e.width,T.height=e.height;var M=T.toDataURL(h.type,h.quality);I!==M&&(b.rr_dataURL=I)}if("img"===w&&d){ns||(ns=n.createElement("canvas"),is=ns.getContext("2d"));var R=e,P=R.currentSrc||R.getAttribute("src")||"<unknown-src>",D=R.crossOrigin,L=function(){R.removeEventListener("load",L);try{ns.width=R.naturalWidth,ns.height=R.naturalHeight,is.drawImage(R,0,0),b.rr_dataURL=ns.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==R.crossOrigin)return R.crossOrigin="anonymous",void(R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L));console.warn("Cannot inline img src="+P+"! Error: "+e)}"anonymous"===R.crossOrigin&&(D?b.crossOrigin=D:R.removeAttribute("crossorigin"))};R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L)}if("audio"===w||"video"===w){var B=b;B.rr_mediaState=e.paused?"paused":"played",B.rr_mediaCurrentTime=e.currentTime,B.rr_mediaPlaybackRate=e.playbackRate,B.rr_mediaMuted=e.muted,B.rr_mediaLoop=e.loop,B.rr_mediaVolume=e.volume}if(g||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),y){var N=e.getBoundingClientRect(),j=N.width,F=N.height;b={class:b.class,rr_width:j+"px",rr_height:F+"px"}}"iframe"!==w||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(w)&&(r=!0)}catch(U){}return{type:oo.Element,tagName:w,attributes:b,childNodes:[],isSVG:ms(e)||void 0,needBlock:y,rootId:v,isCustom:r}}function Os(e){return void 0===e||null===e?"":e.toLowerCase()}function Is(e,t){if(t.comment&&e.type===oo.Comment)return!0;if(e.type===oo.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"===typeof e.attributes.href&&"js"===Xo(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Os(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Os(e.attributes.name)||"icon"===Os(e.attributes.rel)||"apple-touch-icon"===Os(e.attributes.rel)||"shortcut icon"===Os(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Os(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Os(e.attributes.property).match(/^(og|twitter|fb):/)||Os(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Os(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Os(e.attributes.name)||"googlebot"===Os(e.attributes.name)||"bingbot"===Os(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Os(e.attributes.name)||"generator"===Os(e.attributes.name)||"framework"===Os(e.attributes.name)||"publisher"===Os(e.attributes.name)||"progid"===Os(e.attributes.name)||Os(e.attributes.property).match(/^article:/)||Os(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Os(e.attributes.name)||"yandex-verification"===Os(e.attributes.name)||"csrf-token"===Os(e.attributes.name)||"p:domain_verify"===Os(e.attributes.name)||"verify-v1"===Os(e.attributes.name)||"verification"===Os(e.attributes.name)||"shopify-checkout-api-token"===Os(e.attributes.name)))return!0}}return!1}function Ts(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,d=t.maskInputOptions,p=void 0===d?{}:d,f=t.maskTextFn,m=t.maskInputFn,g=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,w=t.inlineImages,b=void 0!==w&&w,_=t.recordCanvas,k=void 0!==_&&_,S=t.onSerialize,x=t.onIframeLoad,C=t.iframeLoadTimeout,E=void 0===C?5e3:C,A=t.onStylesheetLoad,O=t.stylesheetLoadTimeout,I=void 0===O?5e3:O,T=t.keepIframeSrcFn,M=void 0===T?function(){return!1}:T,R=t.newlyAddedElement,P=void 0!==R&&R,D=t.cssCaptured,L=void 0!==D&&D,B=t.needsMask,N=t.preserveWhiteSpace,j=void 0===N||N;if(!B){var F=void 0===B;B=_s(e,s,a,F)}var U,z=xs(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:M,newlyAddedElement:P,cssCaptured:L});if(!z)return console.warn(e,"not serialized"),null;U=n.hasNode(e)?n.getId(e):Is(z,g)||!j&&z.type===oo.Text&&!z.textContent.replace(/^\s+|\s+$/gm,"").length?as:cs();var q=Object.assign(z,{id:U});if(n.add(e,q),U===as)return null;S&&S(e);var H=!u;if(q.type===oo.Element){H=H&&!q.needBlock,delete q.needBlock;var $=Io.shadowRoot(e);$&&Ro($)&&(q.isShadowHost=!0)}if((q.type===oo.Document||q.type===oo.Element)&&H){g.headWhitespace&&q.type===oo.Element&&"head"===q.tagName&&(j=!1);var W={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M,cssCaptured:!1};if(q.type===oo.Element&&"textarea"===q.tagName&&void 0!==q.attributes.value);else{q.type===oo.Element&&void 0!==q.attributes._cssText&&"string"===typeof q.attributes._cssText&&(W.cssCaptured=!0);for(var V,X=Gi(Array.from(Io.childNodes(e)));!(V=X()).done;){var Y=V.value,G=Ts(Y,W);G&&q.childNodes.push(G)}}var J=null;if(To(e)&&(J=Io.shadowRoot(e)))for(var K,Z=Gi(Array.from(Io.childNodes(J)));!(K=Z()).done;){var Q=K.value,ee=Ts(Q,W);ee&&(Ro(J)&&(ee.isShadow=!0),q.childNodes.push(ee))}}var te=Io.parentNode(e);return te&&Mo(te)&&Ro(te)&&(q.isShadow=!0),q.type===oo.Element&&"iframe"===q.tagName&&ks(e,function(){var t=e.contentDocument;if(t&&x){var r=Ts(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M});r&&x(e,r)}},E),q.type===oo.Element&&"link"===q.tagName&&"string"===typeof q.attributes.rel&&("stylesheet"===q.attributes.rel||"preload"===q.attributes.rel&&"string"===typeof q.attributes.href&&"css"===Xo(q.attributes.href))&&Ss(e,function(){if(A){var t=Ts(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M});t&&A(e,t)}},I),q}function Ms(e,t){var r=t||{},n=r.mirror,i=void 0===n?new Uo:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,c=void 0===a?null:a,u=r.maskTextClass,l=void 0===u?"rr-mask":u,h=r.maskTextSelector,d=void 0===h?null:h,p=r.inlineStylesheet,f=void 0===p||p,m=r.inlineImages,g=void 0!==m&&m,v=r.recordCanvas,y=void 0!==v&&v,w=r.maskAllInputs,b=void 0!==w&&w,_=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,x=void 0!==S&&S,C=r.dataURLOptions,E=r.preserveWhiteSpace,A=r.onSerialize,O=r.onIframeLoad,I=r.iframeLoadTimeout,T=r.onStylesheetLoad,M=r.stylesheetLoadTimeout,R=r.keepIframeSrcFn,P=void 0===R?function(){return!1}:R,D=!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===b?{password:!0}:b,L=!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x;return Ts(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:D,maskTextFn:_,maskInputFn:k,slimDOMOptions:L,dataURLOptions:C,inlineImages:g,recordCanvas:y,preserveWhiteSpace:E,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:I,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:P,newlyAddedElement:!1})}function Rs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Ps(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return zi(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var Ds={exports:{}},Ls=String,Bs=function(){return{isColorSupported:!1,reset:Ls,bold:Ls,dim:Ls,italic:Ls,underline:Ls,inverse:Ls,hidden:Ls,strikethrough:Ls,black:Ls,red:Ls,green:Ls,yellow:Ls,blue:Ls,magenta:Ls,cyan:Ls,white:Ls,gray:Ls,bgBlack:Ls,bgRed:Ls,bgGreen:Ls,bgYellow:Ls,bgBlue:Ls,bgMagenta:Ls,bgCyan:Ls,bgWhite:Ls}};Ds.exports=Bs(),Ds.exports.createColors=Bs;var Ns=Ds.exports,js={},Fs=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),Us=Ps(Fs),zs=Ns,qs=Us,Hs=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof i&&("number"===typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}Ui(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=zs.isColorSupported),qs&&e&&(r=qs(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=zs.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Xi(Error)),$s=Hs;Hs.default=Hs;var Ws={};Ws.isClean=Symbol("isClean"),Ws.my=Symbol("my");var Vs={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Xs(e){return e[0].toUpperCase()+e.slice(1)}var Ys=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if("undefined"!==typeof e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&(n=e.raws[t],"undefined"!==typeof n))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Vs[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Xs(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Vs[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!==typeof t))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!==typeof t))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Gs=Ys;Ys.default=Ys;var Js=Gs;function Ks(e,t){var r=new Js(t);r.stringify(e)}var Zs=Ks;Ks.default=Ks;var Qs=Ws.isClean,ea=Ws.my,ta=$s,ra=Gs,na=Zs;function ia(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o="undefined"===typeof i?"undefined":Wi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return ia(e,r)}):("object"===o&&null!==i&&(i=ia(i)),r[n]=i)}return r}var oa=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Qs]=!1,this[ea]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Gi(e[t]);!(r=n()).done;){var i=r.value;"function"===typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=ia(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new ta(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Qs]){this[Qs]=!1;var e=this;while(e=e.parent)e[Qs]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"===typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new ra;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Gi(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Wi(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=na),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Ni(e,[{key:"proxyOf",get:function(){return this}}]),e}(),sa=oa;oa.default=oa;var aa=sa,ca=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=ji({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Ui(t,e),Ni(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(aa),ua=ca;ca.default=ca;var la="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ha=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=la[64*Math.random()|0];return t},da={nanoid:ha},pa=Us.SourceMapConsumer,fa=Us.SourceMapGenerator,ma=Us.existsSync,ga=Us.readFileSync,va=Us.dirname,ya=Us.join;function wa(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var ba=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=va(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new pa(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return wa(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&("string"===typeof e.mappings||"string"===typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=va(e),ma(e))return this.mapFile=e,ga(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if(zi(t,pa))return fa.fromSourceMap(t).toString();if(zi(t,fa))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=ya(va(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),_a=ba;ba.default=ba;var ka=Us.SourceMapConsumer,Sa=Us.SourceMapGenerator,xa=Us.fileURLToPath,Ca=Us.pathToFileURL,Ea=Us.isAbsolute,Aa=Us.resolve,Oa=da.nanoid,Ia=Us,Ta=$s,Ma=_a,Ra=Symbol("fromOffsetCache"),Pa=Boolean(ka&&Sa),Da=Boolean(Aa&&Ea),La=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Wi(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Da||/^\w+:\/\//.test(t.from)||Ea(t.from)?this.file=t.from:this.file=Aa(t.from)),Da&&Pa){var r=new Ma(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Oa(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===("undefined"===typeof t?"undefined":Wi(t))){var a=t,c=r;if("number"===typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"===typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return i=d?new Ta(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new Ta(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Ca&&(i.input.url=Ca(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Ra])r=this[Ra];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[Ra]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Aa(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"===typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Ea(a.source)?Ca(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ca(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!xa)throw new Error("file: protocol is not available in this PostCSS build");c.file=xa(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=ji({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ni(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Ba=La;La.default=La,Ia&&Ia.registerInput&&Ia.registerInput(La);var Na=Us.SourceMapConsumer,ja=Us.SourceMapGenerator,Fa=Us.dirname,Ua=Us.relative,za=Us.resolve,qa=Us.sep,Ha=Us.pathToFileURL,$a=Ba,Wa=Boolean(Na&&ja),Va=Boolean(Fa&&za&&Ua&&qa),Xa=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"===typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"===typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Gi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Fa(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Na(r.text),o.sourcesContent&&(o.sourcesContent=null)):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Va&&Wa&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ja.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ja({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new ja({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),t=a.match(/\n/g),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Fa(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=Fa(za(r,this.mapOpts.annotation)));var n=Ua(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new $a(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Ha){var r=Ha(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===qa&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ya=Xa,Ga=sa,Ja=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Ui(t,e),t}(Ga),Ka=Ja;Ja.default=Ja;var Za,Qa,ec,tc,rc=Ws.isClean,nc=Ws.my,ic=ua,oc=Ka,sc=sa;function ac(e){return e.map(function(e){return e.nodes&&(e.nodes=ac(e.nodes)),delete e.source,e})}function cc(e){if(e[rc]=!1,e.proxyOf.nodes)for(var t,r=Gi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;cc(n)}}var uc=function(e){function t(){return e.apply(this,arguments)||this}Ui(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Gi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Gi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Gi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;this.indexes[n]+=1}return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"===typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"===typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"===typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Gi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Gi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=ac(Za(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Gi(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=Gi(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new ic(e)]}else if(e.selector)e=[new Qa(e)];else if(e.name)e=[new ec(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new oc(e)]}var l=e.map(function(e){return e[nc]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[rc]&&cc(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=Gi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Gi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Gi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?zi(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?zi(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?zi(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Ni(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(sc);uc.registerParse=function(e){Za=e},uc.registerRule=function(e){Qa=e},uc.registerAtRule=function(e){ec=e},uc.registerRoot=function(e){tc=e};var lc=uc;uc.default=uc,uc.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,ec.prototype):"rule"===e.type?Object.setPrototypeOf(e,Qa.prototype):"decl"===e.type?Object.setPrototypeOf(e,ic.prototype):"comment"===e.type?Object.setPrototypeOf(e,oc.prototype):"root"===e.type&&Object.setPrototypeOf(e,tc.prototype),e[nc]=!0,e.nodes&&e.nodes.forEach(function(e){uc.rebuild(e)})};var hc,dc,pc=lc,fc=function(e){function t(t){var r;return r=e.call(this,ji({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Ui(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new hc(new dc,this,e);return t.stringify()},t}(pc);fc.registerLazyResult=function(e){hc=e},fc.registerProcessor=function(e){dc=e};var mc=fc;fc.default=fc;var gc=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),vc=gc;gc.default=gc;var yc=vc,wc=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new yc(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Ni(e,[{key:"content",get:function(){return this.css}}]),e}(),bc=wc;wc.default=wc;var _c="'".charCodeAt(0),kc='"'.charCodeAt(0),Sc="\\".charCodeAt(0),xc="/".charCodeAt(0),Cc="\n".charCodeAt(0),Ec=" ".charCodeAt(0),Ac="\f".charCodeAt(0),Oc="\t".charCodeAt(0),Ic="\r".charCodeAt(0),Tc="[".charCodeAt(0),Mc="]".charCodeAt(0),Rc="(".charCodeAt(0),Pc=")".charCodeAt(0),Dc="{".charCodeAt(0),Lc="}".charCodeAt(0),Bc=";".charCodeAt(0),Nc="*".charCodeAt(0),jc=":".charCodeAt(0),Fc="@".charCodeAt(0),Uc=/[\t\n\f\r "#'()/;[\\\]{}]/g,zc=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,qc=/.[\r\n"'(/\\]/,Hc=/[\da-f]/i,$c=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case Cc:case Ec:case Oc:case Ic:case Ac:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===Ec||r===Cc||r===Oc||r===Ic||r===Ac);h=["space",d.slice(m,n)],m=n-1;break;case Tc:case Mc:case Dc:case Lc:case jc:case Bc:case Pc:var y=String.fromCharCode(r);h=[y,y,m];break;case Rc:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==_c&&l!==kc&&l!==Ec&&l!==Cc&&l!==Oc&&l!==Ac&&l!==Ic){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===Sc)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||qc.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case _c:case kc:i=r===_c?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===Sc)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case Fc:Uc.lastIndex=m+1,Uc.test(d),n=0===Uc.lastIndex?d.length-1:Uc.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case Sc:n=m,s=!0;while(d.charCodeAt(n+1)===Sc)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==xc&&r!==Ec&&r!==Cc&&r!==Oc&&r!==Ic&&r!==Ac&&(n+=1,Hc.test(d.charAt(n)))){while(Hc.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===Ec&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===xc&&d.charCodeAt(m+1)===Nc?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):(zc.lastIndex=m+1,zc.test(d),n=0===zc.lastIndex?d.length-1:zc.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Wc=lc,Vc=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Ui(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Wc),Xc=Vc;Vc.default=Vc,Wc.registerAtRule(Vc);var Yc,Gc,Jc=lc,Kc=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Ui(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Gi(i);!(o=s()).done;){var a=o.value;a.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new Yc(new Gc,this,e);return t.stringify()},t}(Jc);Kc.registerLazyResult=function(e){Yc=e},Kc.registerProcessor=function(e){Gc=e};var Zc=Kc;Kc.default=Kc,Jc.registerRoot(Kc);var Qc={comma:function(e){return Qc.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return Qc.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Gi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},eu=Qc;Qc.default=Qc;var tu=lc,ru=eu,nu=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Ui(t,e),Ni(t,[{key:"selectors",get:function(){return ru.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(tu),iu=nu;nu.default=nu,tu.registerRule(nu);var ou=ua,su=$c,au=Ka,cu=Xc,uu=Zc,lu=iu,hu={empty:!0,space:!0};function du(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var pu=function(){function e(e){this.input=e,this.root=new uu,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new cu;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){n=a.length-1,r=a[n];while(r&&"space"===r[0])r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Gi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new au;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=su(this.input)},t.decl=function(e,t){var r=new ou;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||du(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new lu;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",hu[a]||hu[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new lu;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),fu=pu,mu=lc,gu=fu,vu=Ba;function yu(e,t){var r=new vu(e,t),n=new gu(r);try{n.parse()}catch(i){throw i}return n.root}var wu=yu;yu.default=yu,mu.registerParse(yu);var bu=Ws.isClean,_u=Ws.my,ku=Ya,Su=Zs,xu=lc,Cu=mc,Eu=bc,Au=wu,Ou=Zc,Iu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Tu={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Mu={Once:!0,postcssPlugin:!0,prepare:!0},Ru=0;function Pu(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&"function"===typeof e.then}function Du(e){var t=!1,r=Iu[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Ru,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Ru,r+"Exit"]:[r,r+"Exit"]}function Lu(e){var t;return t="document"===e.type?["Document",Ru,"DocumentExit"]:"root"===e.type?["Root",Ru,"RootExit"]:Du(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Bu(e){return e[bu]=!1,e.nodes&&e.nodes.forEach(function(e){return Bu(e)}),e}var Nu={},ju=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Wi(r))||null===r||"root"!==r.type&&"document"!==r.type)if(zi(r,e)||zi(r,Eu))i=Bu(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Au;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[_u]&&xu.rebuild(i)}else i=Bu(r);this.result=new Eu(t,i,n),this.helpers=ji({},Nu,{postcss:Nu,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&e.prepare?ji({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Gi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Wi(i)))for(var o in i){if(!Tu[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Mu[o])if("object"===Wi(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"===typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return Di(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return Ji(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!Pu(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[bu])return[3,14];o[bu]=!0,s=[Lu(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Pu(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return Ji(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Gi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,Ki(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===("undefined"===typeof e?"undefined":Wi(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Pu(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"===typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Su;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new ku(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Gi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Pu(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[bu])i[bu]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Gi(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Gi(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Pu(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[bu])return a[bu]=!0,void e.push(Lu(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===Ru)return void(r.nodes&&r.nodes.length&&(r[bu]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[bu]=!0;for(var r,n=Du(e),i=Gi(n);!(r=i()).done;){var o=r.value;if(o===Ru)e.nodes&&e.each(function(e){e[bu]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ni(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();ju.registerPostcss=function(e){Nu=e};var Fu=ju;ju.default=ju,Ou.registerLazyResult(ju),Cu.registerLazyResult(ju);var Uu=Ya,zu=Zs,qu=wu,Hu=bc,$u=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=zu;this.result=new Hu(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Uu(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ni(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=qu;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Wu=$u;$u.default=$u;var Vu=Wu,Xu=Fu,Yu=mc,Gu=Zc,Ju=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Gi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Wi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Wi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Wi(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Xu(this,e,t):new Vu(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Ku=Ju;Ju.default=Ju,Gu.registerProcessor(Ju),Yu.registerProcessor(Ju);var Zu=ua,Qu=_a,el=Ka,tl=Xc,rl=Ba,nl=Zc,il=iu;function ol(e,t){if(Array.isArray(e))return e.map(function(e){return ol(e)});var r=e.inputs,n=Hi(e,["inputs"]);if(r){t=[];for(var i,o=Gi(r);!(i=o()).done;){var s=i.value,a=ji({},s,{__proto__:rl.prototype});a.map&&(a.map=ji({},a.map,{__proto__:Qu.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return ol(e,t)})),n.source){var c=n.source,u=c.inputId,l=Hi(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new nl(n);if("decl"===n.type)return new Zu(n);if("rule"===n.type)return new il(n);if("comment"===n.type)return new el(n);if("atrule"===n.type)return new tl(n);throw new Error("Unknown node type: "+e.type)}var sl=ol;ol.default=ol;var al=$s,cl=ua,ul=Fu,ll=lc,hl=Ku,dl=Zs,pl=sl,fl=mc,ml=vc,gl=Ka,vl=Xc,yl=bc,wl=Ba,bl=wu,_l=eu,kl=iu,Sl=Zc,xl=sa;function Cl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new hl(t)}Cl.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new hl).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Cl([i(r)]).process(e,t)},i},Cl.stringify=dl,Cl.parse=bl,Cl.fromJSON=pl,Cl.list=_l,Cl.comment=function(e){return new gl(e)},Cl.atRule=function(e){return new vl(e)},Cl.decl=function(e){return new cl(e)},Cl.rule=function(e){return new kl(e)},Cl.root=function(e){return new Sl(e)},Cl.document=function(e){return new fl(e)},Cl.CssSyntaxError=al,Cl.Declaration=cl,Cl.Container=ll,Cl.Processor=hl,Cl.Document=fl,Cl.Comment=gl,Cl.Warning=ml,Cl.AtRule=vl,Cl.Result=yl,Cl.Input=wl,Cl.Rule=kl,Cl.Root=Sl,Cl.Node=xl,ul.registerPostcss(Cl);var El=Cl;Cl.default=Cl;var Al=Rs(El);Al.stringify,Al.fromJSON,Al.plugin,Al.parse,Al.list,Al.document,Al.comment,Al.atRule,Al.rule,Al.decl,Al.root,Al.CssSyntaxError,Al.Declaration,Al.Container,Al.Processor,Al.Document,Al.Comment,Al.Warning,Al.AtRule,Al.Result,Al.Input,Al.Rule,Al.Root,Al.Node;var Ol=Object.defineProperty,Il=function(e,t,r){return t in e?Ol(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Tl=function(e,t,r){return Il(e,"symbol"!==("undefined"===typeof t?"undefined":Wi(t))?t+"":t,r)};function Ml(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Rl(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return zi(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var Pl={exports:{}},Dl=String,Ll=function(){return{isColorSupported:!1,reset:Dl,bold:Dl,dim:Dl,italic:Dl,underline:Dl,inverse:Dl,hidden:Dl,strikethrough:Dl,black:Dl,red:Dl,green:Dl,yellow:Dl,blue:Dl,magenta:Dl,cyan:Dl,white:Dl,gray:Dl,bgBlack:Dl,bgRed:Dl,bgGreen:Dl,bgYellow:Dl,bgBlue:Dl,bgMagenta:Dl,bgCyan:Dl,bgWhite:Dl}};Pl.exports=Ll(),Pl.exports.createColors=Ll;var Bl=Pl.exports,Nl={},jl=Object.freeze(Object.defineProperty({__proto__:null,default:Nl},Symbol.toStringTag,{value:"Module"})),Fl=Rl(jl),Ul=Bl,zl=Fl,ql=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof i&&("number"===typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}Ui(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Ul.isColorSupported),zl&&e&&(r=zl(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=Ul.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Xi(Error)),Hl=ql;ql.default=ql;var $l={};$l.isClean=Symbol("isClean"),$l.my=Symbol("my");var Wl={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Vl(e){return e[0].toUpperCase()+e.slice(1)}var Xl=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if("undefined"!==typeof e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&(n=e.raws[t],"undefined"!==typeof n))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Wl[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Vl(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Wl[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!==typeof t))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!==typeof t))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Yl=Xl;Xl.default=Xl;var Gl=Yl;function Jl(e,t){var r=new Gl(t);r.stringify(e)}var Kl=Jl;Jl.default=Jl;var Zl=$l.isClean,Ql=$l.my,eh=Hl,th=Yl,rh=Kl;function nh(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o="undefined"===typeof i?"undefined":Wi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return nh(e,r)}):("object"===o&&null!==i&&(i=nh(i)),r[n]=i)}return r}var ih=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Zl]=!1,this[Ql]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Gi(e[t]);!(r=n()).done;){var i=r.value;"function"===typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=nh(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new eh(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Zl]){this[Zl]=!1;var e=this;while(e=e.parent)e[Zl]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"===typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new th;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Gi(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Wi(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=rh),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Ni(e,[{key:"proxyOf",get:function(){return this}}]),e}(),oh=ih;ih.default=ih;var sh=oh,ah=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=ji({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Ui(t,e),Ni(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(sh),ch=ah;ah.default=ah;var uh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",lh=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=uh[64*Math.random()|0];return t},hh={nanoid:lh},dh=Fl.SourceMapConsumer,ph=Fl.SourceMapGenerator,fh=Fl.existsSync,mh=Fl.readFileSync,gh=Fl.dirname,vh=Fl.join;function yh(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var wh=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=gh(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new dh(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return yh(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&("string"===typeof e.mappings||"string"===typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=gh(e),fh(e))return this.mapFile=e,mh(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if(zi(t,dh))return ph.fromSourceMap(t).toString();if(zi(t,ph))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=vh(gh(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),bh=wh;wh.default=wh;var _h=Fl.SourceMapConsumer,kh=Fl.SourceMapGenerator,Sh=Fl.fileURLToPath,xh=Fl.pathToFileURL,Ch=Fl.isAbsolute,Eh=Fl.resolve,Ah=hh.nanoid,Oh=Fl,Ih=Hl,Th=bh,Mh=Symbol("fromOffsetCache"),Rh=Boolean(_h&&kh),Ph=Boolean(Eh&&Ch),Dh=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Wi(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Ph||/^\w+:\/\//.test(t.from)||Ch(t.from)?this.file=t.from:this.file=Eh(t.from)),Ph&&Rh){var r=new Th(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Ah(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===("undefined"===typeof t?"undefined":Wi(t))){var a=t,c=r;if("number"===typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"===typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return i=d?new Ih(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new Ih(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(xh&&(i.input.url=xh(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Mh])r=this[Mh];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[Mh]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Eh(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"===typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Ch(a.source)?xh(a.source):new URL(a.source,this.map.consumer().sourceRoot||xh(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Sh)throw new Error("file: protocol is not available in this PostCSS build");c.file=Sh(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=ji({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ni(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Lh=Dh;Dh.default=Dh,Oh&&Oh.registerInput&&Oh.registerInput(Dh);var Bh=Fl.SourceMapConsumer,Nh=Fl.SourceMapGenerator,jh=Fl.dirname,Fh=Fl.relative,Uh=Fl.resolve,zh=Fl.sep,qh=Fl.pathToFileURL,Hh=Lh,$h=Boolean(Bh&&Nh),Wh=Boolean(jh&&Uh&&Fh&&zh),Vh=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"===typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"===typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Gi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||jh(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Bh(r.text),o.sourcesContent&&(o.sourcesContent=null)):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Wh&&$h&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Nh.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Nh({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Nh({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),t=a.match(/\n/g),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?jh(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=jh(Uh(r,this.mapOpts.annotation)));var n=Fh(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Hh(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(qh){var r=qh(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===zh&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Xh=Vh,Yh=oh,Gh=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Ui(t,e),t}(Yh),Jh=Gh;Gh.default=Gh;var Kh,Zh,Qh,ed,td=$l.isClean,rd=$l.my,nd=ch,id=Jh,od=oh;function sd(e){return e.map(function(e){return e.nodes&&(e.nodes=sd(e.nodes)),delete e.source,e})}function ad(e){if(e[td]=!1,e.proxyOf.nodes)for(var t,r=Gi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;ad(n)}}var cd=function(e){function t(){return e.apply(this,arguments)||this}Ui(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Gi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Gi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Gi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;this.indexes[n]+=1}return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"===typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"===typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"===typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Gi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Gi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=sd(Kh(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Gi(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=Gi(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new nd(e)]}else if(e.selector)e=[new Zh(e)];else if(e.name)e=[new Qh(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new id(e)]}var l=e.map(function(e){return e[rd]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[td]&&ad(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=Gi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Gi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Gi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?zi(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?zi(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?zi(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Ni(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(od);cd.registerParse=function(e){Kh=e},cd.registerRule=function(e){Zh=e},cd.registerAtRule=function(e){Qh=e},cd.registerRoot=function(e){ed=e};var ud=cd;cd.default=cd,cd.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Qh.prototype):"rule"===e.type?Object.setPrototypeOf(e,Zh.prototype):"decl"===e.type?Object.setPrototypeOf(e,nd.prototype):"comment"===e.type?Object.setPrototypeOf(e,id.prototype):"root"===e.type&&Object.setPrototypeOf(e,ed.prototype),e[rd]=!0,e.nodes&&e.nodes.forEach(function(e){cd.rebuild(e)})};var ld,hd,dd=ud,pd=function(e){function t(t){var r;return r=e.call(this,ji({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Ui(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new ld(new hd,this,e);return t.stringify()},t}(dd);pd.registerLazyResult=function(e){ld=e},pd.registerProcessor=function(e){hd=e};var fd=pd;pd.default=pd;var md=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),gd=md;md.default=md;var vd=gd,yd=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new vd(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Ni(e,[{key:"content",get:function(){return this.css}}]),e}(),wd=yd;yd.default=yd;var bd="'".charCodeAt(0),_d='"'.charCodeAt(0),kd="\\".charCodeAt(0),Sd="/".charCodeAt(0),xd="\n".charCodeAt(0),Cd=" ".charCodeAt(0),Ed="\f".charCodeAt(0),Ad="\t".charCodeAt(0),Od="\r".charCodeAt(0),Id="[".charCodeAt(0),Td="]".charCodeAt(0),Md="(".charCodeAt(0),Rd=")".charCodeAt(0),Pd="{".charCodeAt(0),Dd="}".charCodeAt(0),Ld=";".charCodeAt(0),Bd="*".charCodeAt(0),Nd=":".charCodeAt(0),jd="@".charCodeAt(0),Fd=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ud=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,zd=/.[\r\n"'(/\\]/,qd=/[\da-f]/i,Hd=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case xd:case Cd:case Ad:case Od:case Ed:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===Cd||r===xd||r===Ad||r===Od||r===Ed);h=["space",d.slice(m,n)],m=n-1;break;case Id:case Td:case Pd:case Dd:case Nd:case Ld:case Rd:var y=String.fromCharCode(r);h=[y,y,m];break;case Md:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==bd&&l!==_d&&l!==Cd&&l!==xd&&l!==Ad&&l!==Ed&&l!==Od){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===kd)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||zd.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case bd:case _d:i=r===bd?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===kd)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case jd:Fd.lastIndex=m+1,Fd.test(d),n=0===Fd.lastIndex?d.length-1:Fd.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case kd:n=m,s=!0;while(d.charCodeAt(n+1)===kd)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==Sd&&r!==Cd&&r!==xd&&r!==Ad&&r!==Od&&r!==Ed&&(n+=1,qd.test(d.charAt(n)))){while(qd.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===Cd&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===Sd&&d.charCodeAt(m+1)===Bd?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):(Ud.lastIndex=m+1,Ud.test(d),n=0===Ud.lastIndex?d.length-1:Ud.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},$d=ud,Wd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Ui(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}($d),Vd=Wd;Wd.default=Wd,$d.registerAtRule(Wd);var Xd,Yd,Gd=ud,Jd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Ui(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Gi(i);!(o=s()).done;){var a=o.value;a.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new Xd(new Yd,this,e);return t.stringify()},t}(Gd);Jd.registerLazyResult=function(e){Xd=e},Jd.registerProcessor=function(e){Yd=e};var Kd=Jd;Jd.default=Jd,Gd.registerRoot(Jd);var Zd={comma:function(e){return Zd.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return Zd.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Gi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},Qd=Zd;Zd.default=Zd;var ep=ud,tp=Qd,rp=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Ui(t,e),Ni(t,[{key:"selectors",get:function(){return tp.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(ep),np=rp;rp.default=rp,ep.registerRule(rp);var ip=ch,op=Hd,sp=Jh,ap=Vd,cp=Kd,up=np,lp={empty:!0,space:!0};function hp(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var dp=function(){function e(e){this.input=e,this.root=new cp,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new ap;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){n=a.length-1,r=a[n];while(r&&"space"===r[0])r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Gi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new sp;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=op(this.input)},t.decl=function(e,t){var r=new ip;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||hp(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new up;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",lp[a]||lp[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new up;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),pp=dp,fp=ud,mp=pp,gp=Lh;function vp(e,t){var r=new gp(e,t),n=new mp(r);try{n.parse()}catch(i){throw i}return n.root}var yp=vp;vp.default=vp,fp.registerParse(vp);var wp=$l.isClean,bp=$l.my,_p=Xh,kp=Kl,Sp=ud,xp=fd,Cp=wd,Ep=yp,Ap=Kd,Op={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ip={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Tp={Once:!0,postcssPlugin:!0,prepare:!0},Mp=0;function Rp(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&"function"===typeof e.then}function Pp(e){var t=!1,r=Op[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Mp,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Mp,r+"Exit"]:[r,r+"Exit"]}function Dp(e){var t;return t="document"===e.type?["Document",Mp,"DocumentExit"]:"root"===e.type?["Root",Mp,"RootExit"]:Pp(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Lp(e){return e[wp]=!1,e.nodes&&e.nodes.forEach(function(e){return Lp(e)}),e}var Bp={},Np=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Wi(r))||null===r||"root"!==r.type&&"document"!==r.type)if(zi(r,e)||zi(r,Cp))i=Lp(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Ep;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[bp]&&Sp.rebuild(i)}else i=Lp(r);this.result=new Cp(t,i,n),this.helpers=ji({},Bp,{postcss:Bp,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&e.prepare?ji({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Gi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Wi(i)))for(var o in i){if(!Ip[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Tp[o])if("object"===Wi(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"===typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return Di(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return Ji(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!Rp(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[wp])return[3,14];o[wp]=!0,s=[Dp(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Rp(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return Ji(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Gi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,Ki(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===("undefined"===typeof e?"undefined":Wi(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Rp(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"===typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=kp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new _p(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Gi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Rp(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[wp])i[wp]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Gi(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Gi(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Rp(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[wp])return a[wp]=!0,void e.push(Dp(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===Mp)return void(r.nodes&&r.nodes.length&&(r[wp]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[wp]=!0;for(var r,n=Pp(e),i=Gi(n);!(r=i()).done;){var o=r.value;if(o===Mp)e.nodes&&e.each(function(e){e[wp]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ni(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Np.registerPostcss=function(e){Bp=e};var jp=Np;Np.default=Np,Ap.registerLazyResult(Np),xp.registerLazyResult(Np);var Fp=Xh,Up=Kl,zp=yp,qp=wd,Hp=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Up;this.result=new qp(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Fp(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ni(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=zp;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),$p=Hp;Hp.default=Hp;var Wp=$p,Vp=jp,Xp=fd,Yp=Kd,Gp=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Gi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Wi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Wi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Wi(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Vp(this,e,t):new Wp(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Jp=Gp;Gp.default=Gp,Yp.registerProcessor(Gp),Xp.registerProcessor(Gp);var Kp=ch,Zp=bh,Qp=Jh,ef=Vd,tf=Lh,rf=Kd,nf=np;function of(e,t){if(Array.isArray(e))return e.map(function(e){return of(e)});var r=e.inputs,n=Hi(e,["inputs"]);if(r){t=[];for(var i,o=Gi(r);!(i=o()).done;){var s=i.value,a=ji({},s,{__proto__:tf.prototype});a.map&&(a.map=ji({},a.map,{__proto__:Zp.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return of(e,t)})),n.source){var c=n.source,u=c.inputId,l=Hi(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new rf(n);if("decl"===n.type)return new Kp(n);if("rule"===n.type)return new nf(n);if("comment"===n.type)return new Qp(n);if("atrule"===n.type)return new ef(n);throw new Error("Unknown node type: "+e.type)}var sf=of;of.default=of;var af=Hl,cf=ch,uf=jp,lf=ud,hf=Jp,df=Kl,pf=sf,ff=fd,mf=gd,gf=Jh,vf=Vd,yf=wd,wf=Lh,bf=yp,_f=Qd,kf=np,Sf=Kd,xf=oh;function Cf(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new hf(t)}Cf.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new hf).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Cf([i(r)]).process(e,t)},i},Cf.stringify=df,Cf.parse=bf,Cf.fromJSON=pf,Cf.list=_f,Cf.comment=function(e){return new gf(e)},Cf.atRule=function(e){return new vf(e)},Cf.decl=function(e){return new cf(e)},Cf.rule=function(e){return new kf(e)},Cf.root=function(e){return new Sf(e)},Cf.document=function(e){return new ff(e)},Cf.CssSyntaxError=af,Cf.Declaration=cf,Cf.Container=lf,Cf.Processor=hf,Cf.Document=ff,Cf.Comment=gf,Cf.Warning=mf,Cf.AtRule=vf,Cf.Result=yf,Cf.Input=wf,Cf.Rule=kf,Cf.Root=Sf,Cf.Node=xf,uf.registerPostcss(Cf);var Ef=Cf;Cf.default=Cf;var Af=Ml(Ef);Af.stringify,Af.fromJSON,Af.plugin,Af.parse,Af.list,Af.document,Af.comment,Af.atRule,Af.rule,Af.decl,Af.root,Af.CssSyntaxError,Af.Declaration,Af.Container,Af.Processor,Af.Document,Af.Comment,Af.Warning,Af.AtRule,Af.Result,Af.Input,Af.Rule,Af.Root,Af.Node;var Of=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Tl(this,"parentElement",null),Tl(this,"parentNode",null),Tl(this,"ownerDocument"),Tl(this,"firstChild",null),Tl(this,"lastChild",null),Tl(this,"previousSibling",null),Tl(this,"nextSibling",null),Tl(this,"ELEMENT_NODE",1),Tl(this,"TEXT_NODE",3),Tl(this,"nodeType"),Tl(this,"nodeName"),Tl(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!zi(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;while(t.parentNode){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},Ni(e,[{key:"childNodes",get:function(){var e=[],t=this.firstChild;while(t)e.push(t),t=t.nextSibling;return e}}]),e}(),If={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Tf={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Mf={},Rf=function(){return!!globalThis.Zone};function Pf(e){if(Mf[e])return Mf[e];var t=globalThis[e],r=t.prototype,n=e in If?If[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Tf?Tf[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"===typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!Rf())return Mf[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?Mf[e]=u:r}catch(l){return r}}var Df={};function Lf(e,t,r){var n,i=e+"."+String(r);if(Df[i])return Df[i].call(t);var o=Pf(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Df[i]=s,s.call(t)):t[r]}var Bf={};function Nf(e,t,r){var n=e+"."+String(r);if(Bf[n])return Bf[n].bind(t);var i=Pf(e),o=i[r];return"function"!==typeof o?t[r]:(Bf[n]=o,o.bind(t))}function jf(e){return Lf("Node",e,"childNodes")}function Ff(e){return Lf("Node",e,"parentNode")}function Uf(e){return Lf("Node",e,"parentElement")}function zf(e){return Lf("Node",e,"textContent")}function qf(e,t){return Nf("Node",e,"contains")(t)}function Hf(e){return Nf("Node",e,"getRootNode")()}function $f(e){return e&&"host"in e?Lf("ShadowRoot",e,"host"):null}function Wf(e){return e.styleSheets}function Vf(e){return e&&"shadowRoot"in e?Lf("Element",e,"shadowRoot"):null}function Xf(e,t){return Lf("Element",e,"querySelector")(t)}function Yf(e,t){return Lf("Element",e,"querySelectorAll")(t)}function Gf(){return Pf("MutationObserver").constructor}function Jf(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var Kf={childNodes:jf,parentNode:Ff,parentElement:Uf,textContent:zf,contains:qf,getRootNode:Hf,host:$f,styleSheets:Wf,shadowRoot:Vf,querySelector:Xf,querySelectorAll:Yf,mutationObserver:Gf,patch:Jf};function Zf(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var Qf="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",em={map:{},getId:function(){return console.error(Qf),-1},getNode:function(){return console.error(Qf),null},removeNodeFromMap:function(){console.error(Qf)},has:function(){return console.error(Qf),!1},reset:function(){console.error(Qf)}};function tm(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>t?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},u))}}function rm(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return rm(e,t,o||{},!0)}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(em=new Proxy(em,{get:function(e,t,r){return"map"===t&&console.error(Qf),Reflect.get(e,t,r)}}));var nm=Date.now;function im(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=Kf.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=Kf.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function om(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function sm(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function am(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:Kf.parentElement(e);return t}function cm(e,t,r,n){if(!e)return!1;var i=am(e);if(!i)return!1;try{if("string"===typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(bs(i,t,n))return!0}catch(o){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function um(e,t){return-1!==t.getId(e)}function lm(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===as}function hm(e,t){if(Mo(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=Kf.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||hm(n,t))}function dm(e){return Boolean(e.changedTouches)}function pm(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function fm(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function mm(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function gm(e){return!!e&&(zi(e,Of)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Kf.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(nm=function(){return(new Date).getTime()});var vm=function(){function e(){to(this,"id",1),to(this,"styleIDMap",new WeakMap),to(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function ym(e){var t,r=null;return"getRootNode"in e&&(null==(t=Kf.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Kf.host(Kf.getRootNode(e))&&(r=Kf.host(Kf.getRootNode(e))),r}function wm(e){var t,r=e;while(t=ym(r))r=t;return r}function bm(e){var t=e.ownerDocument;if(!t)return!1;var r=wm(e);return Kf.contains(t,r)}function _m(e){var t=e.ownerDocument;return!!t&&(Kf.contains(t,e)||bm(e))}var km=function(e){return e[e["DomContentLoaded"]=0]="DomContentLoaded",e[e["Load"]=1]="Load",e[e["FullSnapshot"]=2]="FullSnapshot",e[e["IncrementalSnapshot"]=3]="IncrementalSnapshot",e[e["Meta"]=4]="Meta",e[e["Custom"]=5]="Custom",e[e["Plugin"]=6]="Plugin",e}(km||{}),Sm=function(e){return e[e["Mutation"]=0]="Mutation",e[e["MouseMove"]=1]="MouseMove",e[e["MouseInteraction"]=2]="MouseInteraction",e[e["Scroll"]=3]="Scroll",e[e["ViewportResize"]=4]="ViewportResize",e[e["Input"]=5]="Input",e[e["TouchMove"]=6]="TouchMove",e[e["MediaInteraction"]=7]="MediaInteraction",e[e["StyleSheetRule"]=8]="StyleSheetRule",e[e["CanvasMutation"]=9]="CanvasMutation",e[e["Font"]=10]="Font",e[e["Log"]=11]="Log",e[e["Drag"]=12]="Drag",e[e["StyleDeclaration"]=13]="StyleDeclaration",e[e["Selection"]=14]="Selection",e[e["AdoptedStyleSheet"]=15]="AdoptedStyleSheet",e[e["CustomElement"]=16]="CustomElement",e}(Sm||{}),xm=function(e){return e[e["MouseUp"]=0]="MouseUp",e[e["MouseDown"]=1]="MouseDown",e[e["Click"]=2]="Click",e[e["ContextMenu"]=3]="ContextMenu",e[e["DblClick"]=4]="DblClick",e[e["Focus"]=5]="Focus",e[e["Blur"]=6]="Blur",e[e["TouchStart"]=7]="TouchStart",e[e["TouchMove_Departed"]=8]="TouchMove_Departed",e[e["TouchEnd"]=9]="TouchEnd",e[e["TouchCancel"]=10]="TouchCancel",e}(xm||{}),Cm=function(e){return e[e["Mouse"]=0]="Mouse",e[e["Pen"]=1]="Pen",e[e["Touch"]=2]="Touch",e}(Cm||{}),Em=function(e){return e[e["2D"]=0]="2D",e[e["WebGL"]=1]="WebGL",e[e["WebGL2"]=2]="WebGL2",e}(Em||{}),Am=function(e){return e[e["Play"]=0]="Play",e[e["Pause"]=1]="Pause",e[e["Seeked"]=2]="Seeked",e[e["VolumeChange"]=3]="VolumeChange",e[e["RateChange"]=4]="RateChange",e}(Am||{}),Om=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(Om||{});function Im(e){return"__ln"in e}var Tm,Mm=function(){function e(){to(this,"length",0),to(this,"head",null),to(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Im(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Im(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),Rm=function(e,t){return e+"@"+t},Pm=function(){function e(){var e=this;to(this,"frozen",!1),to(this,"locked",!1),to(this,"texts",[]),to(this,"attributes",[]),to(this,"attributeMap",new WeakMap),to(this,"removes",[]),to(this,"mapRemoves",[]),to(this,"movedMap",{}),to(this,"addedSet",new Set),to(this,"movedSet",new Set),to(this,"droppedSet",new Set),to(this,"removesSubTreeCache",new Set),to(this,"mutationCb"),to(this,"blockClass"),to(this,"blockSelector"),to(this,"maskTextClass"),to(this,"maskTextSelector"),to(this,"inlineStylesheet"),to(this,"maskInputOptions"),to(this,"maskTextFn"),to(this,"maskInputFn"),to(this,"keepIframeSrcFn"),to(this,"recordCanvas"),to(this,"inlineImages"),to(this,"slimDOMOptions"),to(this,"dataURLOptions"),to(this,"doc"),to(this,"mirror"),to(this,"iframeManager"),to(this,"stylesheetManager"),to(this,"shadowDomManager"),to(this,"canvasManager"),to(this,"processedNodeManager"),to(this,"unattachedDoc"),to(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),to(this,"emit",function(){if(!e.frozen&&!e.locked){var t=[],r=new Set,n=new Mm,i=function(t){var r=t,n=as;while(n===as)r=r&&r.nextSibling,n=r&&e.mirror.getId(r);return n},o=function(o){var s=Kf.parentNode(o);if(s&&_m(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var c=s.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(s)&&(a=!0)}var u=Mo(s)?e.mirror.getId(ym(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=Ts(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){fm(t,e.mirror)&&e.iframeManager.addIframe(t),mm(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),gm(o)&&e.shadowDomManager.addShadowRoot(Kf.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};while(e.mapRemoves.length){var s=e.mapRemoves.shift();if("IFRAME"===s.nodeName)try{e.iframeManager.removeIframe(s)}catch(E){}else e.stylesheetManager.cleanupStylesheetsForRemovedNode(s);e.mirror.removeNodeFromMap(s)}for(var a,c=Gi(e.movedSet);!(a=c()).done;){var u=a.value;Bm(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(Kf.parentNode(u))||o(u)}for(var l,h=Gi(e.addedSet);!(l=h()).done;){var d=l.value;jm(e.droppedSet,d)||Bm(e.removesSubTreeCache,d,e.mirror)?jm(e.movedSet,d)?o(d):e.droppedSet.add(d):o(d)}var p=null;while(n.length){var f=null;if(p){var m=e.mirror.getId(Kf.parentNode(p.value)),g=i(p.value);-1!==m&&-1!==g&&(f=p)}if(!f){var v=n.tail;while(v){var y=v;if(v=v.previous,y){var w=e.mirror.getId(Kf.parentNode(y.value)),b=i(y.value);if(-1===b)continue;if(-1!==w){f=y;break}var _=y.value,k=Kf.parentNode(_);if(k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var S=Kf.host(k),x=e.mirror.getId(S);if(-1!==x){f=y;break}}}}}if(!f){while(n.head)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),o(f.value)}var C={texts:e.texts.map(function(t){var r=t.node,n=Kf.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"===typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(C.texts.length||C.attributes.length||C.removes.length||C.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(C))}}),to(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(Kf.childNodes(t),function(e){return Kf.textContent(e)||""}).join("");r.attributes.value=qo({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:Vo(t),value:n,maskInputFn:e.maskInputFn})}),to(this,"processMutation",function(t){if(!lm(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=Kf.textContent(t.target);cm(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:_s(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,am(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=Vo(n);o=qo({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(cm(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!ys(n.tagName,i))if(a.attributes[i]=vs(e.doc,Ho(n.tagName),Ho(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(v){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u,l=Gi(Array.from(n.style));!(u=l()).done;){var h=u.value,d=n.style.getPropertyValue(h),p=n.style.getPropertyPriority(h);d!==c.style.getPropertyValue(h)||p!==c.style.getPropertyPriority(h)?a.styleDiff[h]=""===p?d:[d,p]:a._unchangedStyles[h]=[d,p]}for(var f,m=Gi(Array.from(c.style));!(f=m()).done;){var g=f.value;""===n.style.getPropertyValue(g)&&(a.styleDiff[g]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes["rr_open_mode"]="modal":a.attributes["rr_open_mode"]="non-modal");break;case"childList":if(cm(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=Mo(t.target)?e.mirror.getId(Kf.host(t.target)):e.mirror.getId(t.target);cm(t.target,e.blockClass,e.blockSelector,!1)||lm(r,e.mirror,e.slimDOMOptions)||!um(r,e.mirror)||(e.addedSet.has(r)?(Dm(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||hm(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[Rm(n,i)]?Dm(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!Mo(t.target)||!Ro(t.target))||void 0}),Lm(r,e.removesSubTreeCache))),e.mapRemoves.push(r))});break}}),to(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(lm(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[Rm(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);cm(t,e.blockClass,e.blockSelector,!1)||(Kf.childNodes(t).forEach(function(t){return e.genAdds(t)}),gm(t)&&Kf.childNodes(Kf.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function Dm(e,t){e.delete(t),Kf.childNodes(t).forEach(function(t){return Dm(e,t)})}function Lm(e,t){var r=[e];while(r.length){var n=r.pop();t.has(n)||(t.add(n),Kf.childNodes(n).forEach(function(e){return r.push(e)}))}}function Bm(e,t,r){return 0!==e.size&&Nm(e,t)}function Nm(e,t,r){var n=Kf.parentNode(t);return!!n&&e.has(n)}function jm(e,t){return 0!==e.size&&Fm(e,t)}function Fm(e,t){var r=Kf.parentNode(t);return!!r&&(!!e.has(r)||Fm(e,r))}function Um(e){Tm=e}function zm(){Tm=void 0}var qm=function(e){if(!Tm)return e;var t=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(i){if(Tm&&!0===Tm(i))return;throw i}};return t},Hm=[];function $m(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(r){}return e&&e.target}function Wm(e,t){var r=new Pm;Hm.push(r),r.init(e);var n=new(Gf())(qm(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function Vm(e){for(var t=Hm.length-1;t>=0;t--){var r=Hm[t];r.getDoc()===e&&Hm.splice(t,1)}}function Xm(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"===typeof r.mousemove?r.mousemove:50,a="number"===typeof r.mousemoveCallback?r.mousemoveCallback:500,c=[],u=tm(qm(function(e){var r=Date.now()-o;t(c.map(function(e){return e.timeOffset-=r,e}),e),c=[],o=null}),a),l=qm(tm(qm(function(e){var t=$m(e),r=dm(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=nm()),c.push({x:n,y:s,id:i.getId(t),timeOffset:nm()-o}),u("undefined"!==typeof DragEvent&&zi(e,DragEvent)?Sm.Drag:zi(e,MouseEvent)?Sm.MouseMove:Sm.TouchMove)}),s,{trailing:!1})),h=[Zf("mousemove",l,n),Zf("touchmove",l,n),Zf("drag",l,n)];return qm(function(){h.forEach(function(e){return e()})})}function Ym(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null,l=function(e){return function(r){var s=$m(r);if(!cm(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=Cm.Mouse;break;case"touch":a=Cm.Touch;break;case"pen":a=Cm.Pen;break}a===Cm.Touch?xm[e]===xm.MouseDown?c="TouchStart":xm[e]===xm.MouseUp&&(c="TouchEnd"):Cm.Pen}else dm(r)&&(a=Cm.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===Cm.Touch||c.startsWith("Mouse")&&a===Cm.Mouse)&&(a=null)):xm[e]===xm.Click&&(a=u,u=null);var l=dm(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),d=l.clientX,p=l.clientY;qm(t)(ji({type:xm[c],id:h,x:d,y:p},null!==a&&{pointerType:a}))}}}};return Object.keys(xm).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var t=Ho(e),n=l(e);if(window.PointerEvent)switch(xm[e]){case xm.MouseDown:case xm.MouseUp:t=t.replace("mouse","pointer");break;case xm.TouchStart:case xm.TouchEnd:return}c.push(Zf(t,n,r))}),qm(function(){c.forEach(function(e){return e()})})}function Gm(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=qm(tm(qm(function(e){var s=$m(e);if(s&&!cm(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=im(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100));return Zf("scroll",a,r)}function Jm(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1,s=qm(tm(qm(function(){var e=om(),t=sm();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200));return Zf("resize",s,n)}var Km=["INPUT","TEXTAREA","SELECT"],Zm=new WeakMap;function Qm(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function d(e){var t=$m(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=Kf.parentElement(t)),t&&l&&!(Km.indexOf(l)<0)&&!cm(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var d=t.value,f=!1,m=Vo(t)||"";"radio"===m||"checkbox"===m?f=t.checked:(c[l.toLowerCase()]||c[m])&&(d=qo({element:t,maskInputOptions:c,tagName:l,type:m,value:d,maskInputFn:u})),p(t,h?{text:d,isChecked:f,userTriggered:n}:{text:d,isChecked:f});var g=t.name;"radio"===m&&g&&f&&r.querySelectorAll('input[type="radio"][name="'+g+'"]').forEach(function(e){if(e!==t){var r=e.value;p(e,h?{text:r,isChecked:!f,userTriggered:!1}:{text:r,isChecked:!f})}})}}function p(e,r){var i=Zm.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Zm.set(e,r);var o=n.getId(e);qm(t)(ji({},r,{id:o}))}}var f="last"===l.input?["change"]:["input","change"],m=f.map(function(e){return Zf(e,qm(d),r)}),g=r.defaultView;if(!g)return function(){m.forEach(function(e){return e()})};var v,y=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),w=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];y&&y.set&&(v=m).push.apply(v,[].concat(w.map(function(e){return rm(e[0],e[1],{set:function(){qm(d)({target:this,isTrusted:!1})}},!1,g)})));return qm(function(){m.forEach(function(e){return e()})})}function eg(e){var t=[];function r(e,t){if(hg("CSSGroupingRule")&&zi(e.parentRule,CSSGroupingRule)||hg("CSSMediaRule")&&zi(e.parentRule,CSSMediaRule)||hg("CSSSupportsRule")&&zi(e.parentRule,CSSSupportsRule)||hg("CSSConditionRule")&&zi(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules),n=r.indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var i=Array.from(e.parentStyleSheet.cssRules),o=i.indexOf(e);t.unshift(o)}return t}return r(e,t)}function tg(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function rg(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:qm(function(e,t,o){var s=o[0],a=o[1],c=tg(t,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,c,u=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:qm(function(e,t,o){var s=o[0],a=tg(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:qm(function(e,t,o){var s=o[0],a=tg(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replace:s}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:qm(function(e,t,o){var s=o[0],a=tg(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replaceSync:s}),e.apply(t,o)})}));var l={};dg("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(dg("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),dg("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),dg("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:qm(function(e,t,o){var s=o[0],a=o[1],c=tg(t.parentStyleSheet,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:[].concat(eg(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:qm(function(e,t,o){var s=o[0],a=tg(t.parentStyleSheet,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:[].concat(eg(t),[s])}]}),e.apply(t,o)})})}),qm(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=u,a&&(o.CSSStyleSheet.prototype.replace=a),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}function ng(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(Kf.host(t));var c="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(n){}return r}}),qm(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function ig(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:qm(function(e,t,s){var c,u=s[0],l=s[1],h=s[2];if(i.has(u))return a.apply(t,[u,l,h]);var d=tg(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),p=d.id,f=d.styleId;return(p&&-1!==p||f&&-1!==f)&&r({id:p,styleId:f,set:{property:u,value:l,priority:h},index:eg(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:qm(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=tg(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,d=l.styleId;return(h&&-1!==h||d&&-1!==d)&&r({id:h,styleId:d,remove:{property:u},index:eg(t.parentRule)}),e.apply(t,s)})}),qm(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}function og(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=qm(function(e){return tm(qm(function(o){var s=$m(o);if(s&&!cm(s,r,n,!0)){var a=s.currentTime,c=s.volume,u=s.muted,l=s.playbackRate,h=s.loop;t({type:e,id:i.getId(s),currentTime:a,volume:c,muted:u,playbackRate:l,loop:h})}}),o.media||500)}),c=[Zf("play",a(Am.Play),s),Zf("pause",a(Am.Pause),s),Zf("seeked",a(Am.Seeked),s),Zf("volumechange",a(Am.VolumeChange),s),Zf("ratechange",a(Am.RateChange),s)];return qm(function(){c.forEach(function(e){return e()})})}function sg(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!==typeof t,descriptors:r,fontSource:"string"===typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=Jf(r.fonts,"add",function(e){return function(r){return setTimeout(qm(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),qm(function(){i.forEach(function(e){return e()})})}function ag(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=qm(function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],c=e.rangeCount||0,u=0;u<c;u++){var l=e.getRangeAt(u),h=l.startContainer,d=l.startOffset,p=l.endContainer,f=l.endOffset,m=cm(h,n,i,!0)||cm(p,n,i,!0);m||a.push({start:r.getId(h),startOffset:d,end:r.getId(p),endOffset:f})}o({ranges:a})}});return a(),Zf("selectionchange",a)}function cg(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;if(!n||!n.customElements)return function(){};var i=Jf(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(o){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}});return i}function ug(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,d=e.fontCb,p=e.selectionCb,f=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n));r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r));n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r));i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r));o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r));s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r));a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r));c.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r));u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r));l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r));h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r));d.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r));p.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r));f.apply(void 0,[].concat(r))}}function lg(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};ug(e,t),e.recordDOM&&(r=Wm(e,e.doc));var i=Xm(e),o=Ym(e),s=Gm(e),a=Jm(e,{win:n}),c=Qm(e),u=og(e),l=function(){},h=function(){},d=function(){},p=function(){};e.recordDOM&&(l=rg(e,{win:n}),h=ng(e,e.doc),d=ig(e,{win:n}),e.collectFonts&&(p=sg(e)));for(var f,m=ag(e),g=cg(e),v=[],y=Gi(e.plugins);!(f=y()).done;){var w=f.value;v.push(w.observer(w.callback,n,w.options))}return qm(function(){Hm.forEach(function(e){return e.reset()}),null==r||r.disconnect(),i(),o(),s(),a(),c(),u(),l(),h(),d(),p(),m(),g(),v.forEach(function(e){return e()})})}function hg(e){return"undefined"!==typeof window[e]}function dg(e){return Boolean("undefined"!==typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var pg=function(){function e(e){to(this,"iframeIdToRemoteIdMap",new WeakMap),to(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!==typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),fg=function(){function e(e){to(this,"iframes",new WeakMap),to(this,"crossOriginIframeMap",new WeakMap),to(this,"crossOriginIframeMirror",new pg(cs)),to(this,"crossOriginIframeStyleMirror"),to(this,"crossOriginIframeRootIdMap",new WeakMap),to(this,"iframeContentDocumentMap",new WeakMap),to(this,"iframeObserverCleanupMap",new WeakMap),to(this,"mirror"),to(this,"mutationCb"),to(this,"wrappedEmit"),to(this,"loadListener"),to(this,"stylesheetManager"),to(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new pg(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(n){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin){var r=e.source;if(r){var n=this.crossOriginIframeMap.get(e.source);if(n){var i=this.transformCrossOriginEvent(n,t.data.event);i&&this.wrappedEmit(i,t.data.isCheckout)}}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case km.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:km.IncrementalSnapshot,data:{source:Sm.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case km.Meta:case km.Load:case km.DomContentLoaded:return!1;case km.Plugin:return t;case km.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case km.IncrementalSnapshot:switch(t.data.source){case Sm.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Sm.Drag:case Sm.TouchMove:case Sm.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Sm.ViewportResize:return!1;case Sm.MediaInteraction:case Sm.MouseInteraction:case Sm.Scroll:case Sm.CanvasMutation:case Sm.Input:return this.replaceIds(t.data,e,["id"]),t;case Sm.StyleSheetRule:case Sm.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Sm.Font:return t;case Sm.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case Sm.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=Gi(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"===typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===Om.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),mg=function(){function e(e){to(this,"shadowDoms",new WeakSet),to(this,"mutationCb"),to(this,"scrollCb"),to(this,"bypassOptions"),to(this,"mirror"),to(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(Ro(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=Wm(ji({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Gm(ji({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(Kf.host(e))),r.restoreHandlers.push(ng({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(Jf(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=Kf.shadowRoot(this);return o&&_m(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),gg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vg="undefined"===typeof Uint8Array?[]:new Uint8Array(256),yg=0;yg<gg.length;yg++)vg[gg.charCodeAt(yg)]=yg;var wg=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=gg[r[t]>>2],i+=gg[(3&r[t])<<4|r[t+1]>>4],i+=gg[(15&r[t+1])<<2|r[t+2]>>6],i+=gg[63&r[t+2]];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i},bg=new Map;function _g(e,t){var r=bg.get(e);return r||(r=new Map,bg.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var kg=function(e,t,r){if(e&&(Cg(e,t)||"object"===("undefined"===typeof e?"undefined":Wi(e)))){var n=e.constructor.name,i=_g(r,n),o=i.indexOf(e);return-1===o&&(o=i.length,i.push(e)),o}};function Sg(e,t,r){if(zi(e,Array))return e.map(function(e){return Sg(e,t,r)});if(null===e)return e;if(zi(e,Float32Array)||zi(e,Float64Array)||zi(e,Int32Array)||zi(e,Uint32Array)||zi(e,Uint8Array)||zi(e,Uint16Array)||zi(e,Int16Array)||zi(e,Int8Array)||zi(e,Uint8ClampedArray)){var n=e.constructor.name;return{rr_type:n,args:[Object.values(e)]}}if(zi(e,ArrayBuffer)){var i=e.constructor.name,o=wg(e);return{rr_type:i,base64:o}}if(zi(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[Sg(e.buffer,t,r),e.byteOffset,e.byteLength]}}if(zi(e,HTMLImageElement)){var a=e.constructor.name,c=e.src;return{rr_type:a,src:c}}if(zi(e,HTMLCanvasElement)){var u="HTMLImageElement",l=e.toDataURL();return{rr_type:u,src:l}}if(zi(e,ImageData)){var h=e.constructor.name;return{rr_type:h,args:[Sg(e.data,t,r),e.width,e.height]}}if(Cg(e,t)||"object"===("undefined"===typeof e?"undefined":Wi(e))){var d=e.constructor.name,p=kg(e,t,r);return{rr_type:d,index:p}}return e}var xg=function(e,t,r){return e.map(function(e){return Sg(e,t,r)})},Cg=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],n=r.filter(function(e){return"function"===typeof t[e]});return Boolean(n.find(function(r){return zi(e,t[r])}))};function Eg(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!==typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=Jf(t.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var s=this,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return cm(this.canvas,r,n,!0)||setTimeout(function(){var r=xg(c,t,s);e(s.canvas,{type:Em["2D"],property:o,args:r})},0),i.apply(this,c)}});s.push(a)}catch(u){var c=rm(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:Em["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),c=Gi(a);!(i=c()).done;)o();return function(){s.forEach(function(e){return e()})}}function Ag(e){return"experimental-webgl"===e?"webgl":e}function Og(e,t,r,n){var i=[];try{var o=Jf(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!cm(this,t,r,!0)){var c=Ag(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===Wi(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function Ig(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!==typeof e[a])return"continue";var u=Jf(e,a,function(e){return function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=e.apply(this,c);if(kg(l,o,this),"tagName"in this.canvas&&!cm(this.canvas,n,i,!0)){var h=xg(c,o,this),d={type:t,property:a,args:h};r(this.canvas,d)}return l}});c.push(u)}catch(h){var l=rm(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});c.push(l)}},c=[],u=Object.getOwnPropertyNames(e),l=Gi(u);!(s=l()).done;)a();return c}function Tg(e,t,r,n){var i,o,s=[];((i=s).push.apply(i,[].concat(Ig(t.WebGLRenderingContext.prototype,Em.WebGL,e,r,n,t))),"undefined"!==typeof t.WebGL2RenderingContext)&&(o=s).push.apply(o,[].concat(Ig(t.WebGL2RenderingContext.prototype,Em.WebGL2,e,r,n,t)));return function(){s.forEach(function(e){return e()})}}var Mg="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Rg=function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})},Pg="undefined"!==typeof window&&window.Blob&&new Blob([Rg(Mg)],{type:"text/javascript;charset=utf-8"});function Dg(e){var t;try{if(t=Pg&&(window.URL||window.webkitURL).createObjectURL(Pg),!t)throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(n){return new Worker("data:text/javascript;base64,"+Mg,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var Lg,Bg,Ng,jg=function(){function e(e){var t=this;to(this,"pendingCanvasMutations",new Map),to(this,"rafStamps",{latestId:0,invokeId:null}),to(this,"mirror"),to(this,"mutationCb"),to(this,"resetObservers"),to(this,"frozen",!1),to(this,"locked",!1),to(this,"processMutation",function(e,r){var n=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;!n&&t.rafStamps.invokeId||(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"===typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=Og(t,r,n,!0),a=new Map,c=new Dg;c.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,c=r.height;o.mutationCb({id:t,type:Em["2D"],commands:[{property:"clearRect",args:[0,0,s,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var u,l=1e3/e,h=0,d=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){cm(t,r,n,!0)||e.push(t)}),e},p=function(e){if(h&&e-h<l)u=requestAnimationFrame(p);else{h=e;var t=o;d().forEach(Di(function(e){var r,n,o,s;return Ji(this,function(u){switch(u.label){case 0:return n=t.mirror.getId(e),a.get(n)?[2]:0===e.width||0===e.height?[2]:(a.set(n,!0),["webgl","webgl2"].includes(e.__context)&&(o=e.getContext(e.__context),!1===(null==(r=null==o?void 0:o.getContextAttributes())?void 0:r.preserveDrawingBuffer)&&o.clear(o.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return s=u.sent(),c.postMessage({id:n,bitmap:s,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[s]),[2]}})})),u=requestAnimationFrame(p)}};u=requestAnimationFrame(p),this.resetObservers=function(){s(),cancelAnimationFrame(u)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=Og(e,t,r,!1),i=Eg(this.processMutation.bind(this),e,t,r),o=Tg(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){e.type;var t=Hi(e,["type"]);return t}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),Fg=function(){function e(e){to(this,"trackedLinkElements",new WeakSet),to(this,"mutationCb"),to(this,"adoptedStyleSheetCb"),to(this,"styleMirror",new vm),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:Bo(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=Gi(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n,i=Gi(r.adoptedStyleSheets);!(n=i()).done;){var o=n.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(c){}},t.trackStylesheetInLinkElement=function(e){},e}(),Ug=function(){function e(){to(this,"nodeMap",new WeakMap),to(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),zg=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var qg=document.createElement("iframe");document.body.appendChild(qg),Array.from=(null==(Zi=qg.contentWindow)?void 0:Zi.Array.from)||Array.from,document.body.removeChild(qg)}}catch(mA){console.debug("Unable to override Array.from",mA)}var Hg,$g=zo();function Wg(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,l=e.ignoreSelector,h=void 0===l?null:l,d=e.maskTextClass,p=void 0===d?"rr-mask":d,f=e.maskTextSelector,m=void 0===f?null:f,g=e.inlineStylesheet,v=void 0===g||g,y=e.maskAllInputs,w=e.maskInputOptions,b=e.slimDOMOptions,_=e.maskInputFn,k=e.maskTextFn,S=e.hooks,x=e.packFn,C=e.sampling,E=void 0===C?{}:C,A=e.dataURLOptions,O=void 0===A?{}:A,I=e.mousemoveWait,T=e.recordDOM,M=void 0===T||T,R=e.recordCanvas,P=void 0!==R&&R,D=e.recordCrossOriginIframes,L=void 0!==D&&D,B=e.recordAfter,N=void 0===B?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":B,j=e.userTriggeredOnInput,F=void 0!==j&&j,U=e.collectFonts,z=void 0!==U&&U,q=e.inlineImages,H=void 0!==q&&q,$=e.plugins,W=e.keepIframeSrcFn,V=void 0===W?function(){return!1}:W,X=e.ignoreCSSAttributes,Y=void 0===X?new Set([]):X,G=e.errorHandler;Um(G);var J=!L||window.parent===window,K=!1;if(!J)try{window.parent.document&&(K=!1)}catch(ve){K=!0}if(J&&!t)throw new Error("emit function is required");if(!J&&!K)return function(){};void 0!==I&&void 0===E.mousemove&&(E.mousemove=I),$g.reset();var Z,Q=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==w?w:{password:!0},ee=!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===b,headMetaDescKeywords:"all"===b,headTitleMutations:"all"===b}:b||{};pm();var te=0,re=function(e){for(var t,r=Gi($||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return x&&!K&&(e=x(e)),e};Lg=function(e,i){var o,s=e;if(s.timestamp=nm(),!(null==(o=Hm[0])?void 0:o.isFrozen())||s.type===km.FullSnapshot||s.type===km.IncrementalSnapshot&&s.data.source===Sm.Mutation||Hm.forEach(function(e){return e.unfreeze()}),J)null==t||t(re(s),i);else if(K){var a={type:"rrweb",event:re(s),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(s.type===km.FullSnapshot)Z=s,te=0;else if(s.type===km.IncrementalSnapshot){if(s.data.source===Sm.Mutation&&s.data.isAttachIframe)return;te++;var c=n&&te>=n,u=r&&s.timestamp-Z.timestamp>r;(c||u)&&Bg(!0)}};for(var ne,ie=function(e){Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.Mutation},e)})},oe=function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.Scroll},e)})},se=function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.CanvasMutation},e)})},ae=function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.AdoptedStyleSheet},e)})},ce=new Fg({mutationCb:ie,adoptedStyleSheetCb:ae}),ue=new fg({mirror:$g,mutationCb:ie,stylesheetManager:ce,recordCrossOriginIframes:L,wrappedEmit:Lg}),le=Gi($||[]);!(ne=le()).done;){var he=ne.value;he.getMirror&&he.getMirror({nodeMirror:$g,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}var de=new Ug;Ng=new jg({recordCanvas:P,mutationCb:se,win:window,blockClass:o,blockSelector:a,mirror:$g,sampling:E.canvas,dataURLOptions:O});var pe=new mg({mutationCb:ie,scrollCb:oe,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:p,maskTextSelector:m,inlineStylesheet:v,maskInputOptions:Q,dataURLOptions:O,maskTextFn:k,maskInputFn:_,recordCanvas:P,inlineImages:H,sampling:E,slimDOMOptions:ee,iframeManager:ue,stylesheetManager:ce,canvasManager:Ng,keepIframeSrcFn:V,processedNodeManager:de},mirror:$g});Bg=function(e){if(void 0===e&&(e=!1),M){Lg({type:km.Meta,data:{href:window.location.href,width:sm(),height:om()}},e),ce.reset(),pe.init(),Hm.forEach(function(e){return e.lock()});var t=Ms(document,{mirror:$g,blockClass:o,blockSelector:a,maskTextClass:p,maskTextSelector:m,inlineStylesheet:v,maskAllInputs:Q,maskTextFn:k,maskInputFn:_,slimDOM:ee,dataURLOptions:O,recordCanvas:P,inlineImages:H,onSerialize:function(e){fm(e,$g)&&ue.addIframe(e),mm(e,$g)&&ce.trackLinkElement(e),gm(e)&&pe.addShadowRoot(Kf.shadowRoot(e),document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),pe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ce.attachLinkElement(e,t)},keepIframeSrcFn:V});if(!t)return console.warn("Failed to snapshot the document");Lg({type:km.FullSnapshot,data:{node:t,initialOffset:im(window)}},e),Hm.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ce.adoptStyleSheets(document.adoptedStyleSheets,$g.getId(document))}};try{var fe=[],me=function(e){var t;return qm(lg)({mutationCb:ie,mousemoveCb:function(e,t){return Lg({type:km.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.MouseInteraction},e)})},scrollCb:oe,viewportResizeCb:function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.ViewportResize},e)})},inputCb:function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.Input},e)})},mediaInteractionCb:function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.MediaInteraction},e)})},styleSheetRuleCb:function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.StyleSheetRule},e)})},styleDeclarationCb:function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.StyleDeclaration},e)})},canvasMutationCb:se,fontCb:function(e){return Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.Font},e)})},selectionCb:function(e){Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.Selection},e)})},customElementCb:function(e){Lg({type:km.IncrementalSnapshot,data:ji({source:Sm.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:h,maskTextClass:p,maskTextSelector:m,maskInputOptions:Q,inlineStylesheet:v,sampling:E,recordDOM:M,recordCanvas:P,inlineImages:H,userTriggeredOnInput:F,collectFonts:z,doc:e,maskInputFn:_,maskTextFn:k,keepIframeSrcFn:V,blockSelector:a,slimDOMOptions:ee,dataURLOptions:O,mirror:$g,iframeManager:ue,stylesheetManager:ce,shadowDomManager:pe,processedNodeManager:de,canvasManager:Ng,ignoreCSSAttributes:Y,plugins:(null==(t=null==$?void 0:$.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return Lg({type:km.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},S)};ue.addLoadListener(function(e){try{var t=e.contentDocument,r=me(t);fe.push(r);var n=ue.getObserverCleanup(e);ue.setObserverCleanup(e,function(){if(n)try{n()}catch(ve){}try{r();var e=fe.indexOf(r);-1!==e&&fe.splice(e,1),Vm(t)}catch(ve){}})}catch(i){console.warn(i)}});var ge=function(){Bg(),fe.push(me(document)),zg=!0};return"interactive"===document.readyState||"complete"===document.readyState?ge():(fe.push(Zf("DOMContentLoaded",function(){Lg({type:km.DomContentLoaded,data:{}}),"DOMContentLoaded"===N&&ge()})),fe.push(Zf("load",function(){Lg({type:km.Load,data:{}}),"load"===N&&ge()},window))),function(){fe.forEach(function(e){try{e()}catch(r){var t=String(r).toLowerCase();t.includes("cross-origin")||console.warn(r)}}),de.destroy(),zg=!1,zm()}}catch(ye){console.warn(ye)}}Wg.addCustomEvent=function(e,t){if(!zg)throw new Error("please add custom event after start recording");Lg({type:km.Custom,data:{tag:e,payload:t}})},Wg.freezePage=function(){Hm.forEach(function(e){return e.freeze()})},Wg.takeFullSnapshot=function(e){if(!zg)throw new Error("please take full snapshot after start recording");Bg(e)},Wg.mirror=$g,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(Hg||(Hg={})),Wg.addCustomEvent,Wg.freezePage,Wg.takeFullSnapshot;var Vg={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Xg={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Yg={},Gg=function(){return!!globalThis.Zone};function Jg(e){if(Yg[e])return Yg[e];var t=globalThis[e],r=t.prototype,n=e in Vg?Vg[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Xg?Xg[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"===typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!Gg())return Yg[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?Yg[e]=u:r}catch(l){return r}}var Kg={};function Zg(e,t,r){var n,i=e+"."+String(r);if(Kg[i])return Kg[i].call(t);var o=Jg(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Kg[i]=s,s.call(t)):t[r]}var Qg={};function ev(e,t,r){var n=e+"."+String(r);if(Qg[n])return Qg[n].bind(t);var i=Jg(e),o=i[r];return"function"!==typeof o?t[r]:(Qg[n]=o,o.bind(t))}function tv(e){return Zg("Node",e,"childNodes")}function rv(e){return Zg("Node",e,"parentNode")}function nv(e){return Zg("Node",e,"parentElement")}function iv(e){return Zg("Node",e,"textContent")}function ov(e,t){return ev("Node",e,"contains")(t)}function sv(e){return ev("Node",e,"getRootNode")()}function av(e){return e&&"host"in e?Zg("ShadowRoot",e,"host"):null}function cv(e){return e.styleSheets}function uv(e){return e&&"shadowRoot"in e?Zg("Element",e,"shadowRoot"):null}function lv(e,t){return Zg("Element",e,"querySelector")(t)}function hv(e,t){return Zg("Element",e,"querySelectorAll")(t)}function dv(){return Jg("MutationObserver").constructor}function pv(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var fv={childNodes:tv,parentNode:rv,parentElement:nv,textContent:iv,contains:ov,getRootNode:sv,host:av,styleSheets:cv,shadowRoot:uv,querySelector:lv,querySelectorAll:hv,mutationObserver:dv,patch:pv};function mv(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return mv(fv.parentNode(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return mv(fv.parentNode(e),t)}function gv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function vv(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return zi(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var yv={exports:{}},wv=String,bv=function(){return{isColorSupported:!1,reset:wv,bold:wv,dim:wv,italic:wv,underline:wv,inverse:wv,hidden:wv,strikethrough:wv,black:wv,red:wv,green:wv,yellow:wv,blue:wv,magenta:wv,cyan:wv,white:wv,gray:wv,bgBlack:wv,bgRed:wv,bgGreen:wv,bgYellow:wv,bgBlue:wv,bgMagenta:wv,bgCyan:wv,bgWhite:wv}};yv.exports=bv(),yv.exports.createColors=bv;var _v=yv.exports,kv={},Sv=Object.freeze(Object.defineProperty({__proto__:null,default:kv},Symbol.toStringTag,{value:"Module"})),xv=vv(Sv),Cv=_v,Ev=xv,Av=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof i&&("number"===typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}Ui(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Cv.isColorSupported),Ev&&e&&(r=Ev(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=Cv.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Xi(Error)),Ov=Av;Av.default=Av;var Iv={};Iv.isClean=Symbol("isClean"),Iv.my=Symbol("my");var Tv={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Mv(e){return e[0].toUpperCase()+e.slice(1)}var Rv=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if("undefined"!==typeof e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&(n=e.raws[t],"undefined"!==typeof n))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Tv[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Mv(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Tv[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!==typeof t))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!==typeof t))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Pv=Rv;Rv.default=Rv;var Dv=Pv;function Lv(e,t){var r=new Dv(t);r.stringify(e)}var Bv=Lv;Lv.default=Lv;var Nv=Iv.isClean,jv=Iv.my,Fv=Ov,Uv=Pv,zv=Bv;function qv(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o="undefined"===typeof i?"undefined":Wi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return qv(e,r)}):("object"===o&&null!==i&&(i=qv(i)),r[n]=i)}return r}var Hv=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Nv]=!1,this[jv]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Gi(e[t]);!(r=n()).done;){var i=r.value;"function"===typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=qv(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new Fv(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Nv]){this[Nv]=!1;var e=this;while(e=e.parent)e[Nv]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"===typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new Uv;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Gi(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Wi(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=zv),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Ni(e,[{key:"proxyOf",get:function(){return this}}]),e}(),$v=Hv;Hv.default=Hv;var Wv=$v,Vv=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=ji({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Ui(t,e),Ni(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Wv),Xv=Vv;Vv.default=Vv;var Yv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Gv=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=Yv[64*Math.random()|0];return t},Jv={nanoid:Gv},Kv=xv.SourceMapConsumer,Zv=xv.SourceMapGenerator,Qv=xv.existsSync,ey=xv.readFileSync,ty=xv.dirname,ry=xv.join;function ny(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var iy=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ty(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Kv(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return ny(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&("string"===typeof e.mappings||"string"===typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=ty(e),Qv(e))return this.mapFile=e,ey(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if(zi(t,Kv))return Zv.fromSourceMap(t).toString();if(zi(t,Zv))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=ry(ty(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),oy=iy;iy.default=iy;var sy=xv.SourceMapConsumer,ay=xv.SourceMapGenerator,cy=xv.fileURLToPath,uy=xv.pathToFileURL,ly=xv.isAbsolute,hy=xv.resolve,dy=Jv.nanoid,py=xv,fy=Ov,my=oy,gy=Symbol("fromOffsetCache"),vy=Boolean(sy&&ay),yy=Boolean(hy&&ly),wy=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Wi(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!yy||/^\w+:\/\//.test(t.from)||ly(t.from)?this.file=t.from:this.file=hy(t.from)),yy&&vy){var r=new my(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+dy(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===("undefined"===typeof t?"undefined":Wi(t))){var a=t,c=r;if("number"===typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"===typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return i=d?new fy(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new fy(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(uy&&(i.input.url=uy(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[gy])r=this[gy];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[gy]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:hy(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"===typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=ly(a.source)?uy(a.source):new URL(a.source,this.map.consumer().sourceRoot||uy(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!cy)throw new Error("file: protocol is not available in this PostCSS build");c.file=cy(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=ji({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ni(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),by=wy;wy.default=wy,py&&py.registerInput&&py.registerInput(wy);var _y=xv.SourceMapConsumer,ky=xv.SourceMapGenerator,Sy=xv.dirname,xy=xv.relative,Cy=xv.resolve,Ey=xv.sep,Ay=xv.pathToFileURL,Oy=by,Iy=Boolean(_y&&ky),Ty=Boolean(Sy&&Cy&&xy&&Ey),My=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"===typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"===typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Gi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Sy(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new _y(r.text),o.sourcesContent&&(o.sourcesContent=null)):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Ty&&Iy&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ky.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ky({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new ky({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),t=a.match(/\n/g),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Sy(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=Sy(Cy(r,this.mapOpts.annotation)));var n=xy(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Oy(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Ay){var r=Ay(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Ey&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ry=My,Py=$v,Dy=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Ui(t,e),t}(Py),Ly=Dy;Dy.default=Dy;var By,Ny,jy,Fy,Uy=Iv.isClean,zy=Iv.my,qy=Xv,Hy=Ly,$y=$v;function Wy(e){return e.map(function(e){return e.nodes&&(e.nodes=Wy(e.nodes)),delete e.source,e})}function Vy(e){if(e[Uy]=!1,e.proxyOf.nodes)for(var t,r=Gi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;Vy(n)}}var Xy=function(e){function t(){return e.apply(this,arguments)||this}Ui(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Gi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Gi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Gi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;this.indexes[n]+=1}return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"===typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"===typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"===typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Gi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Gi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=Wy(By(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Gi(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=Gi(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new qy(e)]}else if(e.selector)e=[new Ny(e)];else if(e.name)e=[new jy(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Hy(e)]}var l=e.map(function(e){return e[zy]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Uy]&&Vy(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=Gi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Gi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Gi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?zi(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?zi(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?zi(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Ni(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}($y);Xy.registerParse=function(e){By=e},Xy.registerRule=function(e){Ny=e},Xy.registerAtRule=function(e){jy=e},Xy.registerRoot=function(e){Fy=e};var Yy=Xy;Xy.default=Xy,Xy.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,jy.prototype):"rule"===e.type?Object.setPrototypeOf(e,Ny.prototype):"decl"===e.type?Object.setPrototypeOf(e,qy.prototype):"comment"===e.type?Object.setPrototypeOf(e,Hy.prototype):"root"===e.type&&Object.setPrototypeOf(e,Fy.prototype),e[zy]=!0,e.nodes&&e.nodes.forEach(function(e){Xy.rebuild(e)})};var Gy,Jy,Ky=Yy,Zy=function(e){function t(t){var r;return r=e.call(this,ji({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Ui(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new Gy(new Jy,this,e);return t.stringify()},t}(Ky);Zy.registerLazyResult=function(e){Gy=e},Zy.registerProcessor=function(e){Jy=e};var Qy=Zy;Zy.default=Zy;var ew=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),tw=ew;ew.default=ew;var rw=tw,nw=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new rw(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Ni(e,[{key:"content",get:function(){return this.css}}]),e}(),iw=nw;nw.default=nw;var ow="'".charCodeAt(0),sw='"'.charCodeAt(0),aw="\\".charCodeAt(0),cw="/".charCodeAt(0),uw="\n".charCodeAt(0),lw=" ".charCodeAt(0),hw="\f".charCodeAt(0),dw="\t".charCodeAt(0),pw="\r".charCodeAt(0),fw="[".charCodeAt(0),mw="]".charCodeAt(0),gw="(".charCodeAt(0),vw=")".charCodeAt(0),yw="{".charCodeAt(0),ww="}".charCodeAt(0),bw=";".charCodeAt(0),_w="*".charCodeAt(0),kw=":".charCodeAt(0),Sw="@".charCodeAt(0),xw=/[\t\n\f\r "#'()/;[\\\]{}]/g,Cw=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ew=/.[\r\n"'(/\\]/,Aw=/[\da-f]/i,Ow=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case uw:case lw:case dw:case pw:case hw:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===lw||r===uw||r===dw||r===pw||r===hw);h=["space",d.slice(m,n)],m=n-1;break;case fw:case mw:case yw:case ww:case kw:case bw:case vw:var y=String.fromCharCode(r);h=[y,y,m];break;case gw:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==ow&&l!==sw&&l!==lw&&l!==uw&&l!==dw&&l!==hw&&l!==pw){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===aw)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||Ew.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case ow:case sw:i=r===ow?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===aw)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case Sw:xw.lastIndex=m+1,xw.test(d),n=0===xw.lastIndex?d.length-1:xw.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case aw:n=m,s=!0;while(d.charCodeAt(n+1)===aw)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==cw&&r!==lw&&r!==uw&&r!==dw&&r!==pw&&r!==hw&&(n+=1,Aw.test(d.charAt(n)))){while(Aw.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===lw&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===cw&&d.charCodeAt(m+1)===_w?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):(Cw.lastIndex=m+1,Cw.test(d),n=0===Cw.lastIndex?d.length-1:Cw.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Iw=Yy,Tw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Ui(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Iw),Mw=Tw;Tw.default=Tw,Iw.registerAtRule(Tw);var Rw,Pw,Dw=Yy,Lw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Ui(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Gi(i);!(o=s()).done;){var a=o.value;a.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new Rw(new Pw,this,e);return t.stringify()},t}(Dw);Lw.registerLazyResult=function(e){Rw=e},Lw.registerProcessor=function(e){Pw=e};var Bw=Lw;Lw.default=Lw,Dw.registerRoot(Lw);var Nw={comma:function(e){return Nw.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return Nw.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Gi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},jw=Nw;Nw.default=Nw;var Fw=Yy,Uw=jw,zw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Ui(t,e),Ni(t,[{key:"selectors",get:function(){return Uw.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(Fw),qw=zw;zw.default=zw,Fw.registerRule(zw);var Hw=Xv,$w=Ow,Ww=Ly,Vw=Mw,Xw=Bw,Yw=qw,Gw={empty:!0,space:!0};function Jw(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var Kw=function(){function e(e){this.input=e,this.root=new Xw,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new Vw;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){n=a.length-1,r=a[n];while(r&&"space"===r[0])r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Gi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Ww;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=$w(this.input)},t.decl=function(e,t){var r=new Hw;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||Jw(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Yw;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",Gw[a]||Gw[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new Yw;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Zw=Kw,Qw=Yy,eb=Zw,tb=by;function rb(e,t){var r=new tb(e,t),n=new eb(r);try{n.parse()}catch(i){throw i}return n.root}var nb=rb;rb.default=rb,Qw.registerParse(rb);var ib=Iv.isClean,ob=Iv.my,sb=Ry,ab=Bv,cb=Yy,ub=Qy,lb=iw,hb=nb,db=Bw,pb={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},fb={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},mb={Once:!0,postcssPlugin:!0,prepare:!0},gb=0;function vb(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&"function"===typeof e.then}function yb(e){var t=!1,r=pb[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,gb,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,gb,r+"Exit"]:[r,r+"Exit"]}function wb(e){var t;return t="document"===e.type?["Document",gb,"DocumentExit"]:"root"===e.type?["Root",gb,"RootExit"]:yb(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function bb(e){return e[ib]=!1,e.nodes&&e.nodes.forEach(function(e){return bb(e)}),e}var _b={},kb=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Wi(r))||null===r||"root"!==r.type&&"document"!==r.type)if(zi(r,e)||zi(r,lb))i=bb(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=hb;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[ob]&&cb.rebuild(i)}else i=bb(r);this.result=new lb(t,i,n),this.helpers=ji({},_b,{postcss:_b,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Wi(e))&&e.prepare?ji({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(mA){console&&console.error&&console.error(mA)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Gi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Wi(i)))for(var o in i){if(!fb[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!mb[o])if("object"===Wi(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"===typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return Di(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return Ji(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!vb(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[ib])return[3,14];o[ib]=!0,s=[wb(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!vb(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return Ji(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Gi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,Ki(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===("undefined"===typeof e?"undefined":Wi(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return vb(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"===typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=ab;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new sb(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Gi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(vb(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[ib])i[ib]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Gi(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Gi(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(vb(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[ib])return a[ib]=!0,void e.push(wb(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===gb)return void(r.nodes&&r.nodes.length&&(r[ib]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[ib]=!0;for(var r,n=yb(e),i=Gi(n);!(r=i()).done;){var o=r.value;if(o===gb)e.nodes&&e.each(function(e){e[ib]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ni(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();kb.registerPostcss=function(e){_b=e};var Sb=kb;kb.default=kb,db.registerLazyResult(kb),ub.registerLazyResult(kb);var xb=Ry,Cb=Bv,Eb=nb,Ab=iw,Ob=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Cb;this.result=new Ab(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new xb(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ni(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Eb;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Ib=Ob;Ob.default=Ob;var Tb=Ib,Mb=Sb,Rb=Qy,Pb=Bw,Db=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Gi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Wi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Wi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Wi(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Mb(this,e,t):new Tb(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Lb=Db;Db.default=Db,Pb.registerProcessor(Db),Rb.registerProcessor(Db);var Bb=Xv,Nb=oy,jb=Ly,Fb=Mw,Ub=by,zb=Bw,qb=qw;function Hb(e,t){if(Array.isArray(e))return e.map(function(e){return Hb(e)});var r=e.inputs,n=Hi(e,["inputs"]);if(r){t=[];for(var i,o=Gi(r);!(i=o()).done;){var s=i.value,a=ji({},s,{__proto__:Ub.prototype});a.map&&(a.map=ji({},a.map,{__proto__:Nb.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Hb(e,t)})),n.source){var c=n.source,u=c.inputId,l=Hi(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new zb(n);if("decl"===n.type)return new Bb(n);if("rule"===n.type)return new qb(n);if("comment"===n.type)return new jb(n);if("atrule"===n.type)return new Fb(n);throw new Error("Unknown node type: "+e.type)}var $b=Hb;Hb.default=Hb;var Wb=Ov,Vb=Xv,Xb=Sb,Yb=Yy,Gb=Lb,Jb=Bv,Kb=$b,Zb=Qy,Qb=tw,e_=Ly,t_=Mw,r_=iw,n_=by,i_=nb,o_=jw,s_=qw,a_=Bw,c_=$v;function u_(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Gb(t)}u_.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new Gb).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return u_([i(r)]).process(e,t)},i},u_.stringify=Jb,u_.parse=i_,u_.fromJSON=Kb,u_.list=o_,u_.comment=function(e){return new e_(e)},u_.atRule=function(e){return new t_(e)},u_.decl=function(e){return new Vb(e)},u_.rule=function(e){return new s_(e)},u_.root=function(e){return new a_(e)},u_.document=function(e){return new Zb(e)},u_.CssSyntaxError=Wb,u_.Declaration=Vb,u_.Container=Yb,u_.Processor=Gb,u_.Document=Zb,u_.Comment=e_,u_.Warning=Qb,u_.AtRule=t_,u_.Result=r_,u_.Input=n_,u_.Rule=s_,u_.Root=a_,u_.Node=c_,Xb.registerPostcss(u_);var l_=u_;u_.default=u_;var h_=gv(l_);h_.stringify,h_.fromJSON,h_.plugin,h_.parse,h_.list,h_.document,h_.comment,h_.atRule,h_.rule,h_.decl,h_.root,h_.CssSyntaxError,h_.Declaration,h_.Container,h_.Processor,h_.Document,h_.Comment,h_.Warning,h_.AtRule,h_.Result,h_.Input,h_.Rule,h_.Root,h_.Node;var d_=Object.defineProperty,p_=function(e,t,r){return t in e?d_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},f_=function(e,t,r){return p_(e,"symbol"!==("undefined"===typeof t?"undefined":Wi(t))?t+"":t,r)};function m_(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var g_=function(){function e(e){f_(this,"fileName"),f_(this,"functionName"),f_(this,"lineNumber"),f_(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}var t=e.prototype;return t.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),v_=/(^|@)\S+:\d+/,y_=/^\s*at .*(\S+:\d+|\(native\))/m,w_=/^(eval@)?(\[native code])?$/,b_={parse:function(e){return e?"undefined"!==typeof e.stacktrace||"undefined"!==typeof e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(y_)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/,r=t.exec(e.replace(/[()]/g,""));if(!r)throw new Error("Cannot parse given url: "+e);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(y_)},this);return t.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=r?t.replace(r[0],""):t;var n=t.split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new g_({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){var t=e.stack.split("\n").filter(function(e){return!e.match(w_)},this);return t.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new g_({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new g_({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new g_({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new g_({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(v_)&&!e.match(/^Error created at/)},this);return t.map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=t.shift()||"",i=n.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new g_({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function __(e){if(!e||!e.outerHTML)return"";var t="";while(e.parentElement){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function k_(e){return"[object Object]"===Object.prototype.toString.call(e)}function S_(e,t){if(0===t)return!0;for(var r,n=Object.keys(e),i=Gi(n);!(r=i()).done;){var o=r.value;if(k_(e[o])&&S_(e[o],t-1))return!0}return!1}function x_(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var r=n.indexOf(this);~r?n.splice(r+1):n.push(this),~r?i.splice(r,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(o(t))return s(t);if("bigint"===("undefined"===typeof t?"undefined":Wi(t)))return t.toString()+"n";if(zi(t,Event)){var a={};for(var c in t){var u=t[c];Array.isArray(u)?a[c]=__(u.length?u[0]:null):a[c]=u}return a}return zi(t,Node)?zi(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:zi(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t});function o(e){return!!(k_(e)&&Object.keys(e).length>r.numOfKeysLimit)||("function"===typeof e||!(!k_(e)||!S_(e,r.depthOfLimit)))}function s(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}}var C_={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function E_(e,t,r){var n,i=r?Object.assign({},C_,r):C_,o=i.logger;if(!o)return function(){};n="string"===typeof o?t[o]:o;var s=0,a=!1,c=[];if(i.level.includes("error")){var u=function(t){var r=t.message,n=t.error,o=b_.parse(n).map(function(e){return e.toString()}),s=[x_(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",u),c.push(function(){t.removeEventListener("error",u)});var l=function(t){var r,n;zi(t.reason,Error)?(r=t.reason,n=[x_("Uncaught (in promise) "+r.name+": "+r.message,i.stringifyOptions)]):(r=new Error,n=[x_("Uncaught (in promise)",i.stringifyOptions),x_(t.reason,i.stringifyOptions)]);var o=b_.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",l),c.push(function(){t.removeEventListener("unhandledrejection",l)})}for(var h,d=Gi(i.level);!(h=d()).done;){var p=h.value;c.push(f(n,p))}return function(){c.forEach(function(e){return e()})};function f(t,r){var n=this;return t[r]?m_(t,r,function(t){var o=n;return function(){for(var n=arguments.length,c=new Array(n),u=0;u<n;u++)c[u]=arguments[u];if(t.apply(o,c),("assert"!==r||!c[0])&&!a){a=!0;try{var l=b_.parse(new Error).map(function(e){return e.toString()}).splice(1),h="assert"===r?c.slice(1):c,d=h.map(function(e){return x_(e,i.stringifyOptions)});s++,s<i.lengthThreshold?e({level:r,trace:l,payload:d}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[x_("The number of log records reached the threshold.")]})}catch(p){t.apply(void 0,[].concat(["rrweb logger error:",p],c))}finally{a=!1}}}}):function(){}}}var A_,O_,I_,T_="rrweb/console@1",M_=function(e){return{name:T_,observer:E_,options:e}},R_=xi["setImmediate"],P_=Object.prototype.toString,D_="undefined"!==typeof R_?function(e){return R_(e)}:setTimeout;try{Object.defineProperty({},"x",{}),A_=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(mA){A_=function(e,t,r){return e[t]=r,e}}function L_(e,t){I_.add(e,t),O_||(O_=D_(I_.drain))}function B_(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"===typeof t&&t}function N_(){for(var e=0;e<this.chain.length;e++)j_(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function j_(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg),n===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=B_(n))?i.call(n,r.resolve,r.reject):r.resolve(n))}catch(mA){r.reject(mA)}}function F_(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=B_(e))?L_(function(){var n=new q_(r);try{t.call(e,function(){F_.apply(n,arguments)},function(){U_.apply(n,arguments)})}catch(mA){U_.call(n,mA)}}):(r.msg=e,r.state=1,r.chain.length>0&&L_(N_,r))}catch(mA){U_.call(new q_(r),mA)}}}function U_(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&L_(N_,t))}function z_(e,t,r,n){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)})(i)}function q_(e){this.def=e,this.triggered=!1}function H_(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function $_(e){if("function"!==typeof e)throw TypeError("Not a function");if(0!==this["__NPO__"])throw TypeError("Not a promise");this["__NPO__"]=1;var t=new H_(this);this["then"]=function(e,r){var n={success:"function"!==typeof e||e,failure:"function"===typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!==typeof e||"function"!==typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&L_(N_,t),n.promise},this["catch"]=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){F_.call(t,e)},function(e){U_.call(t,e)})}catch(mA){U_.call(t,mA)}}I_=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;e=t=O_=void 0;while(r)r.fn.call(r.self),r=r.next}}}();var W_,V_=A_({},"constructor",$_,!1);$_.prototype=V_,A_(V_,"__NPO__",0,!1),A_($_,"resolve",function(e){var t=this;return e&&"object"===typeof e&&1===e["__NPO__"]?e:new t(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");t(e)})}),A_($_,"reject",function(e){return new this(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");r(e)})}),A_($_,"all",function(e){var t=this;return"[object Array]"!==P_.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!==typeof r||"function"!==typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;z_(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),A_($_,"race",function(e){var t=this;return"[object Array]"!==P_.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!==typeof r||"function"!==typeof n)throw TypeError("Not a function");z_(t,e,function(e,t){r(t)},n)})}),W_="undefined"!==typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:$_;var X_=864e5,Y_=8e3,G_=Array.prototype,J_=Function.prototype,K_=Object.prototype,Z_=G_.slice,Q_=K_.toString,ek=K_.hasOwnProperty,tk=xi.console,rk=xi.navigator,nk=xi.document,ik=xi.opera,ok=xi.screen,sk=rk.userAgent,ak=J_.bind,ck=G_.forEach,uk=G_.indexOf,lk=G_.map,hk=Array.isArray,dk={},pk={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},fk={log:function(){if(Ai.DEBUG&&!pk.isUndefined(tk)&&tk)try{tk.log.apply(tk,arguments)}catch(mA){pk.each(arguments,function(e){tk.log(e)})}},warn:function(){if(Ai.DEBUG&&!pk.isUndefined(tk)&&tk){var e=["Mixpanel warning:"].concat(pk.toArray(arguments));try{tk.warn.apply(tk,e)}catch(mA){pk.each(e,function(e){tk.warn(e)})}}},error:function(){if(Ai.DEBUG&&!pk.isUndefined(tk)&&tk){var e=["Mixpanel error:"].concat(pk.toArray(arguments));try{tk.error.apply(tk,e)}catch(mA){pk.each(e,function(e){tk.error(e)})}}},critical:function(){if(!pk.isUndefined(tk)&&tk){var e=["Mixpanel error:"].concat(pk.toArray(arguments));try{tk.error.apply(tk,e)}catch(mA){pk.each(e,function(e){tk.error(e)})}}}},mk=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(fk,arguments)}},gk=function(e){return{log:mk(fk.log,e),error:mk(fk.error,e),critical:mk(fk.critical,e)}},vk=function(e){return function(){try{return e.apply(this,arguments)}catch(t){fk.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Ai.DEBUG&&fk.critical(t)}}},yk=function(e){var t=e.prototype;for(var r in t)"function"===typeof t[r]&&(t[r]=vk(t[r]))};pk.bind=function(e,t){var r,n;if(ak&&e.bind===ak)return ak.apply(e,Z_.call(arguments,1));if(!pk.isFunction(e))throw new TypeError;return r=Z_.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(Z_.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(Z_.call(arguments)));return Object(s)===s?s:o},n},pk.each=function(e,t,r){if(null!==e&&void 0!==e)if(ck&&e.forEach===ck)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===dk)return}else for(var o in e)if(ek.call(e,o)&&t.call(r,e[o],o,e)===dk)return},pk.extend=function(e){return pk.each(Z_.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},pk.isArray=hk||function(e){return"[object Array]"===Q_.call(e)},pk.isFunction=function(e){return"function"===typeof e},pk.isArguments=function(e){return!(!e||!ek.call(e,"callee"))},pk.toArray=function(e){return e?e.toArray?e.toArray():pk.isArray(e)||pk.isArguments(e)?Z_.call(e):pk.values(e):[]},pk.map=function(e,t,r){if(lk&&e.map===lk)return e.map(t,r);var n=[];return pk.each(e,function(e){n.push(t.call(r,e))}),n},pk.keys=function(e){var t=[];return null===e||pk.each(e,function(e,r){t[t.length]=r}),t},pk.values=function(e){var t=[];return null===e||pk.each(e,function(e){t[t.length]=e}),t},pk.include=function(e,t){var r=!1;return null===e?r:uk&&e.indexOf===uk?-1!=e.indexOf(t):(pk.each(e,function(e){if(r||(r=e===t))return dk}),r)},pk.includes=function(e,t){return-1!==e.indexOf(t)},pk.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},pk.isObject=function(e){return e===Object(e)&&!pk.isArray(e)},pk.isEmptyObject=function(e){if(pk.isObject(e)){for(var t in e)if(ek.call(e,t))return!1;return!0}return!1},pk.isUndefined=function(e){return void 0===e},pk.isString=function(e){return"[object String]"==Q_.call(e)},pk.isDate=function(e){return"[object Date]"==Q_.call(e)},pk.isNumber=function(e){return"[object Number]"==Q_.call(e)},pk.isElement=function(e){return!(!e||1!==e.nodeType)},pk.encodeDates=function(e){return pk.each(e,function(t,r){pk.isDate(t)?e[r]=pk.formatDate(t):pk.isObject(t)&&(e[r]=pk.encodeDates(t))}),e},pk.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},pk.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},pk.strip_empty_properties=function(e){var t={};return pk.each(e,function(e,r){pk.isString(e)&&e.length>0&&(t[r]=e)}),t},pk.truncate=function(e,t){var r;return"string"===typeof e?r=e.slice(0,t):pk.isArray(e)?(r=[],pk.each(e,function(e){r.push(pk.truncate(e,t))})):pk.isObject(e)?(r={},pk.each(e,function(e,n){r[n]=pk.truncate(e,t)})):r=e,r},pk.JSONEncode=function(){return function(e){var t=e,r=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},n=function(e,t){var i="",o=" ",s=0,a="",c="",u=0,l=i,h=[],d=t[e];switch(d&&"object"===typeof d&&"function"===typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return r(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i+=o,h=[],"[object Array]"===Q_.apply(d)){for(u=d.length,s=0;s<u;s+=1)h[s]=n(s,d)||"null";return c=0===h.length?"[]":i?"[\n"+i+h.join(",\n"+i)+"\n"+l+"]":"["+h.join(",")+"]",i=l,c}for(a in d)ek.call(d,a)&&(c=n(a,d),c&&h.push(r(a)+(i?": ":":")+c));return c=0===h.length?"{}":i?"{"+h.join(",")+l+"}":"{"+h.join(",")+"}",i=l,c}};return n("",{"":t})}}(),pk.JSONDecode=function(){var e,t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},o=function(t){var n=new SyntaxError(t);throw n.at=e,n.text=r,n},s=function(n){return n&&n!==t&&o("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";"-"===t&&(r="-",s("-"));while(t>="0"&&t<="9")r+=t,s();if("."===t){r+=".";while(s()&&t>="0"&&t<="9")r+=t}if("e"===t||"E"===t){r+=t,s(),"-"!==t&&"+"!==t||(r+=t,s());while(t>="0"&&t<="9")r+=t,s()}if(e=+r,isFinite(e))return e;o("Bad number")},c=function(){var e,r,n,a="";if('"'===t)while(s()){if('"'===t)return s(),a;if("\\"===t)if(s(),"u"===t){for(n=0,r=0;r<4;r+=1){if(e=parseInt(s(),16),!isFinite(e))break;n=16*n+e}a+=String.fromCharCode(n)}else{if("string"!==typeof i[t])break;a+=i[t]}else a+=t}o("Bad string")},u=function(){while(t&&t<=" ")s()},l=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')},h=function(){var e=[];if("["===t){if(s("["),u(),"]"===t)return s("]"),e;while(t){if(e.push(n()),u(),"]"===t)return s("]"),e;s(","),u()}}o("Bad array")},d=function(){var e,r={};if("{"===t){if(s("{"),u(),"}"===t)return s("}"),r;while(t){if(e=c(),u(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),u(),"}"===t)return s("}"),r;s(","),u()}}o("Bad object")};return n=function(){switch(u(),t){case"{":return d();case"[":return h();case'"':return c();case"-":return a();default:return t>="0"&&t<="9"?a():l()}},function(i){var s;return r=i,e=0,t=" ",s=n(),u(),t&&o("Syntax error"),s}}(),pk.base64Encode=function(e){var t,r,n,i,o,s,a,c,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,h=0,d="",p=[];if(!e)return e;e=pk.utf8Encode(e);do{t=e.charCodeAt(l++),r=e.charCodeAt(l++),n=e.charCodeAt(l++),c=t<<16|r<<8|n,i=c>>18&63,o=c>>12&63,s=c>>6&63,a=63&c,p[h++]=u.charAt(i)+u.charAt(o)+u.charAt(s)+u.charAt(a)}while(l<e.length);switch(d=p.join(""),e.length%3){case 1:d=d.slice(0,-2)+"==";break;case 2:d=d.slice(0,-1)+"=";break}return d},pk.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",o=0;for(t=r=0,o=e.length,n=0;n<o;n++){var s=e.charCodeAt(n),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},pk.UUID=function(){try{return xi["crypto"]["randomUUID"]()}catch(mA){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",pk.map(e,function(e){return e.toString(16)}).join("")}};var wk=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];pk.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<wk.length;t++)if(-1!==e.indexOf(wk[t]))return!0;return!1},pk.HTTPBuildQuery=function(e,t){var r,n,i=[];return pk.isUndefined(t)&&(t="&"),pk.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},pk.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r="[\\?&]"+t+"=([^&#]*)",n=new RegExp(r),i=n.exec(e);if(null===i||i&&"string"!==typeof i[1]&&i[1].length)return"";var o=i[1];try{o=decodeURIComponent(o)}catch(mA){fk.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},pk.cookie={get:function(e){for(var t=e+"=",r=nk.cookie.split(";"),n=0;n<r.length;n++){var i=r[n];while(" "==i.charAt(0))i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=pk.JSONDecode(pk.cookie.get(e))||{}}catch(mA){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=Bk(nk.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),nk.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=Bk(nk.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*60*60*1e3),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return nk.cookie=d,d},remove:function(e,t,r){pk.cookie.set(e,"",-1,t,!1,!1,r)}};var bk=function(e){var t=!0;try{var r="__mplss_"+Rk(8),n="xyz";e.setItem(r,n),e.getItem(r)!==n&&(t=!1),e.removeItem(r)}catch(mA){t=!1}return t},_k=null,kk=function(e,t){return null===_k||t?_k=bk(e||xi.localStorage):_k},Sk=null,xk=function(e,t){return null===Sk||t?Sk=bk(e||xi.sessionStorage):Sk};function Ck(e,t,r){var n=function(e){fk.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||fk.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(mA){n(mA)}return null},parse:function(t){try{return pk.JSONDecode(e.getItem(t))||{}}catch(mA){}return null},set:function(t,r){try{e.setItem(t,r)}catch(mA){n(mA)}},remove:function(t){try{e.removeItem(t)}catch(mA){n(mA)}}}}var Ek=null,Ak=null;try{Ek=xi.localStorage,Ak=xi.sessionStorage}catch(gA){}pk.localStorage=Ck(Ek,"localStorage",kk),pk.sessionStorage=Ck(Ak,"sessionStorage",xk),pk.register_event=function(){var e=function(e,r,n,i,o){if(e)if(e.addEventListener&&!i)e.addEventListener(r,n,!!o);else{var s="on"+r,a=e[s];e[s]=t(e,n,a)}else fk.error("No valid element provided to register_event")};function t(e,t,n){var i=function(i){if(i=i||r(xi.event),i){var o,s,a=!0;return pk.isFunction(n)&&(o=n(i)),s=t.call(e,i),!1!==o&&!1!==s||(a=!1),a}};return i}function r(e){return e&&(e.preventDefault=r.preventDefault,e.stopPropagation=r.stopPropagation),e}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},e}();var Ok=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');pk.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!nk.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,d,p=t.split(" "),f=[nk];for(c=0;c<p.length;c++)if(n=p[c].replace(/^\s+/,"").replace(/\s+$/,""),n.indexOf("#")>-1){i=n.split("#"),o=i[0];var m=i[1],g=nk.getElementById(m);if(!g||o&&g.nodeName.toLowerCase()!=o)return[];f=[g]}else if(n.indexOf(".")>-1){i=n.split("."),o=i[0];var v=i[1];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(f=[],d=0,u=0;u<s.length;u++)s[u].className&&pk.isString(s[u].className)&&r(s[u],v)&&(f[d++]=s[u])}else{var y=n.match(Ok);if(y){o=y[1];var w,b=y[2],_=y[3],k=y[4];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(f=[],d=0,_){case"=":w=function(e){return e.getAttribute(b)==k};break;case"~":w=function(e){return e.getAttribute(b).match(new RegExp("\\b"+k+"\\b"))};break;case"|":w=function(e){return e.getAttribute(b).match(new RegExp("^"+k+"-?"))};break;case"^":w=function(e){return 0===e.getAttribute(b).indexOf(k)};break;case"$":w=function(e){return e.getAttribute(b).lastIndexOf(k)==e.getAttribute(b).length-k.length};break;case"*":w=function(e){return e.getAttribute(b).indexOf(k)>-1};break;default:w=function(e){return e.getAttribute(b)}}for(f=[],d=0,u=0;u<s.length;u++)w(s[u])&&(f[d++]=s[u])}else{for(o=n,s=[],a=0,u=0;u<f.length;u++)for(h=f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];f=s}}return f}return function(e){return pk.isElement(e)?[e]:pk.isObject(e)&&!pk.isUndefined(e.length)?e:n.call(this,e)}}();var Ik=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Tk=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];pk.info={campaignParams:function(e){var t="",r={};return pk.each(Ik,function(n){t=pk.getQueryParam(nk.URL,n),t.length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return pk.each(Tk,function(r){e=pk.getQueryParam(nk.URL,r),e.length&&(t[r]=e)}),t},marketingParams:function(){return pk.extend(pk.info.campaignParams(),pk.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=pk.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n["$search_engine"]=t;var i=pk.getQueryParam(e,r);i.length&&(n["mp_keyword"]=i)}return n},browser:function(e,t,r){return t=t||"",r||pk.includes(e," OPR/")?pk.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":pk.includes(e,"IEMobile")||pk.includes(e,"WPDesktop")?"Internet Explorer Mobile":pk.includes(e,"SamsungBrowser/")?"Samsung Internet":pk.includes(e,"Edge")||pk.includes(e,"Edg/")?"Microsoft Edge":pk.includes(e,"FBIOS")?"Facebook Mobile":pk.includes(e,"Whale/")?"Whale Browser":pk.includes(e,"Chrome")?"Chrome":pk.includes(e,"CriOS")?"Chrome iOS":pk.includes(e,"UCWEB")||pk.includes(e,"UCBrowser")?"UC Browser":pk.includes(e,"FxiOS")?"Firefox iOS":pk.includes(t,"Apple")?pk.includes(e,"Mobile")?"Mobile Safari":"Safari":pk.includes(e,"Android")?"Android Mobile":pk.includes(e,"Konqueror")?"Konqueror":pk.includes(e,"Firefox")?"Firefox":pk.includes(e,"MSIE")||pk.includes(e,"Trident/")?"Internet Explorer":pk.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n=pk.info.browser(e,t,r),i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},o=i[n];if(void 0===o)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=sk;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return xi.location.href},properties:function(e){return"object"!==typeof e&&(e={}),pk.extend(pk.strip_empty_properties({$os:pk.info.os(),$browser:pk.info.browser(sk,rk.vendor,ik),$referrer:nk.referrer,$referring_domain:pk.info.referringDomain(nk.referrer),$device:pk.info.device(sk)}),{$current_url:pk.info.currentUrl(),$browser_version:pk.info.browserVersion(sk,rk.vendor,ik),$screen_height:ok.height,$screen_width:ok.width,mp_lib:"web",$lib_version:Ai.LIB_VERSION,$insert_id:Rk(),time:pk.timestamp()/1e3},pk.strip_empty_properties(e))},people_properties:function(){return pk.extend(pk.strip_empty_properties({$os:pk.info.os(),$browser:pk.info.browser(sk,rk.vendor,ik)}),{$browser_version:pk.info.browserVersion(sk,rk.vendor,ik)})},mpPageViewProperties:function(){return pk.strip_empty_properties({current_page_title:nk.title,current_domain:xi.location.hostname,current_url_path:xi.location.pathname,current_url_protocol:xi.location.protocol,current_url_search:xi.location.search})}};var Mk=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new W_(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)})),r}},Rk=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Pk=function(){var e=pk.UUID().replace(/-/g,""),t=pk.UUID().replace(/-/g,"").substring(0,16),r="01";return"00-"+e+"-"+t+"-"+r},Dk=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Lk=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Bk=function(e){var t=Lk,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Dk);var i=e.match(t);return i?i[0]:""},Nk=function(){var e=xi.navigator["onLine"];return pk.isUndefined(e)||e},jk=function(){},Fk=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},Uk=null,zk=null;"undefined"!==typeof JSON&&(Uk=JSON.stringify,zk=JSON.parse),Uk=Uk||pk.JSONEncode,zk=zk||pk.JSONDecode;var qk=function(e,t,r){if(!xi.CompressionStream)return!1;var n=pk.info.browser(e,t,r),i=pk.info.browserVersion(e,t,r);return!(("Safari"===n||"Mobile Safari"===n)&&i>=16.4&&i<16.6)};pk["info"]=pk.info,pk["info"]["browser"]=pk.info.browser,pk["info"]["browserVersion"]=pk.info.browserVersion,pk["info"]["device"]=pk.info.device,pk["info"]["properties"]=pk.info.properties,pk["isBlockedUA"]=pk.isBlockedUA,pk["isEmptyObject"]=pk.isEmptyObject,pk["isObject"]=pk.isObject,pk["JSONDecode"]=pk.JSONDecode,pk["JSONEncode"]=pk.JSONEncode,pk["toArray"]=pk.toArray,pk["NPO"]=$_;var Hk="mixpanelBrowserDb",$k="mixpanelRecordingEvents",Wk="mixpanelRecordingRegistry",Vk=1,Xk=[$k,Wk],Yk=function(e){this.dbPromise=null,this.storeName=e};Yk.prototype._openDb=function(){return new W_(function(e,t){var r=xi.indexedDB.open(Hk,Vk);r["onerror"]=function(){t(r.error)},r["onsuccess"]=function(){e(r.result)},r["onupgradeneeded"]=function(e){var t=e.target.result;Xk.forEach(function(e){t.createObjectStore(e)})}})},Yk.prototype.init=function(){return xi.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof xi["IDBDatabase"]?W_.resolve():W_.reject(e)})):W_.reject("indexedDB is not supported in this browser")},Yk.prototype.isInitialized=function(){return!!this.dbPromise},Yk.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new W_(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e["name"]?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):W_.reject(e)}.bind(this))},Yk.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},Yk.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},Yk.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},Yk.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var Gk="__mp_opt_in_out_";function Jk(e,t){cS(!0,e,t)}function Kk(e,t){cS(!1,e,t)}function Zk(e,t){return"1"===sS(e,t)}function Qk(e,t){if(aS(t))return fk.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===sS(e,t);return r&&fk.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function eS(e){return uS(e,function(e){return this.get_config(e)})}function tS(e){return uS(e,function(e){return this._get_config(e)})}function rS(e){return uS(e,function(e){return this._get_config(e)})}function nS(e,t){t=t||{},iS(t).remove(oS(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function iS(e){return e=e||{},"localStorage"===e.persistenceType?pk.localStorage:pk.cookie}function oS(e,t){return t=t||{},(t.persistencePrefix||Gk)+e}function sS(e,t){return iS(t).get(oS(e,t))}function aS(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||xi,r=t["navigator"]||{},n=!1;return pk.each([r["doNotTrack"],r["msDoNotTrack"],t["doNotTrack"]],function(e){pk.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}function cS(e,t,r){pk.isString(t)&&t.length?(r=r||{},iS(r).set(oS(t,r),e?1:0,pk.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):fk.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function uS(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=Qk(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(mA){fk.error("Unexpected error when checking tracking opt-out status: "+mA)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"===typeof c&&c(0)}}var lS=gk("lock"),hS=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||xi.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||W_};hS.prototype.withLock=function(e,t){var r=this.promiseImpl;return new r(pk.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",h=s+":Y",d=s+":Z",p=function(e){if((new Date).getTime()-o>c)return lS.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(d),u.removeItem(h),void g();setTimeout(function(){try{e()}catch(mA){n(mA)}},a*(Math.random()+.1))},f=function(e,t){e()?t():p(function(){f(e,t)})},m=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(kk(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){u.setItem(l,i),f(m,function(){u.getItem(l)!==i?p(function(){u.getItem(h)===i?f(function(){return!u.getItem(d)},v):g()}):v()})},v=function(){u.setItem(d,"1");var t=function(){u.removeItem(d),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!kk(u,!0))throw new Error("localStorage support check failed");g()}catch(mA){n(mA)}},this))};var dS=function(e){this.storage=e||xi.localStorage};dS.prototype.init=function(){return W_.resolve()},dS.prototype.isInitialized=function(){return!0},dS.prototype.setItem=function(e,t){return new W_(pk.bind(function(r,n){try{this.storage.setItem(e,Uk(t))}catch(i){n(i)}r()},this))},dS.prototype.getItem=function(e){return new W_(pk.bind(function(t,r){var n;try{n=zk(this.storage.getItem(e))}catch(i){r(i)}t(n)},this))},dS.prototype.removeItem=function(e){return new W_(pk.bind(function(t,r){try{this.storage.removeItem(e)}catch(n){r(n)}t()},this))};var pS=gk("batch"),fS=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new dS,this.lock=new hS(e,{storage:t.sharedLockStorage||xi.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||pk.bind(pS.error,pS),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=Mk(pk.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=pk.bind(function(e){return this._enqueuePersisted([e])},this)};fS.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?W_.resolve():this.queueStorage.init().then(pk.bind(function(){this.initialized=!0},this)).catch(pk.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},fS.prototype.enqueue=function(e,t){var r={id:Rk(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),W_.resolve(!0))},fS.prototype._enqueuePersisted=function(e){var t=pk.bind(function(){return this.ensureInit().then(pk.bind(function(){return this.readFromStorage()},this)).then(pk.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(pk.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(pk.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(pk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},fS.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(pk.bind(function(){return this.readFromStorage()},this)).then(pk.bind(function(r){if(r.length){var n={};pk.each(t,function(e){n[e["id"]]=!0});for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o["flushAfter"]&&!n[o["id"]]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):W_.resolve(t)};var mS=function(e,t){var r=[];return pk.each(e,function(e){e["id"]&&!t[e["id"]]&&r.push(e)}),r};fS.prototype.removeItemsByID=function(e){var t={};if(pk.each(e,function(e){t[e]=!0}),this.memQueue=mS(this.memQueue,t),this.usePersistence){var r=pk.bind(function(){return this.ensureInit().then(pk.bind(function(){return this.readFromStorage()},this)).then(pk.bind(function(e){return e=mS(e,t),this.saveToStorage(e)},this)).then(pk.bind(function(){return this.readFromStorage()},this)).then(pk.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n["id"]&&t[n["id"]])throw new Error("Item not removed from storage")}return!0},this)).catch(pk.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(pk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!kk(this.lock.storage,!0)&&r().then(pk.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(pk.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return W_.resolve(!0)};var gS=function(e,t){var r=[];return pk.each(e,function(e){var n=e["id"];if(n in t){var i=t[n];null!==i&&(e["payload"]=i,r.push(e))}else r.push(e)}),r};fS.prototype.updatePayloads=function(e){return this.memQueue=gS(this.memQueue,e),this.usePersistence?this.lock.withLock(pk.bind(function(){return this.ensureInit().then(pk.bind(function(){return this.readFromStorage()},this)).then(pk.bind(function(t){return t=gS(t,e),this.saveToStorage(t)},this)).catch(pk.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(pk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):W_.resolve(!0)},fS.prototype.readFromStorage=function(){return this.ensureInit().then(pk.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(pk.bind(function(e){return e&&(pk.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(pk.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},fS.prototype.saveToStorage=function(e){return this.ensureInit().then(pk.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(pk.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},fS.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(pk.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):W_.resolve()};var vS=6e5,yS=gk("batch"),wS=function(e,t){this.errorReporter=t.errorReporter,this.queue=new fS(e,{errorReporter:pk.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig["batch_size"],this.flushInterval=this.libConfig["batch_flush_interval_ms"],this.stopped=!this.libConfig["batch_autostart"],this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};wS.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},wS.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},wS.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},wS.prototype.clear=function(){return this.queue.clear()},wS.prototype.resetBatchSize=function(){this.batchSize=this.libConfig["batch_size"]},wS.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig["batch_flush_interval_ms"])},wS.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(pk.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},wS.prototype.sendRequestPromise=function(e,t){return new W_(pk.bind(function(r){this.sendRequest(e,t,r)},this))},wS.prototype.flush=function(e){if(this.requestInProgress)return yS.log("Flush: Request already in progress"),W_.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig["batch_request_timeout_ms"],r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(pk.bind(function(i){var o=i.length===n,s=[],a={};if(pk.each(i,function(e){var t=e["payload"];if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t["event"]&&t["properties"]&&(t["properties"]=pk.extend({},t["properties"],{mp_sent_by_lib_version:Ai.LIB_VERSION}));var r=!0,n=e["id"];n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e["id"]]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),W_.resolve();var c=pk.bind(function(){return this.queue.removeItemsByID(pk.map(i,function(e){return e["id"]})).then(pk.bind(function(e){return pk.each(i,pk.bind(function(e){var t=e["id"];t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),W_.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),W_.resolve())},this))},this),u=pk.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(pk.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(pk.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!Nk()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(vS,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),W_.resolve()}if(pk.isObject(o)&&413===o.httpStatusCode){if(i.length>1){var u=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),W_.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(mA){this.reportError("Error handling API response",mA),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),yS.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(pk.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},wS.prototype.reportError=function(e,t){if(yS.error.apply(yS.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){yS.error(t)}};var bS=function(e){var t=Date.now();return!e||t>e["maxExpires"]||t>e["idleExpires"]},_S=250,kS="change",SS="click",xS="hashchange",CS="input",ES="load",AS="mp_locationchange",OS="popstate",IS="scrollend",TS="scroll",MS="select",RS="submit",PS="toggle",DS="visibilitychange",LS=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],BS=["mp-include"],NS=["mp-no-track"],jS=NS.concat(["mp-sensitive"]),FS=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],US={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},zS={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},qS={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},HS=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],$S=5,WS=gk("autocapture");function VS(e){for(var t={},r=XS(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function XS(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function YS(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!tx(e));return e}function GS(e,t,r,n,i,o){var s={$classes:XS(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s["$id"]=a),cx(e,t,i,o)&&pk.each(FS.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);ux(n)&&(s["$attr-"+t]=n)}});var c=1,u=1,l=e;while(l=YS(l))c++,l.tagName===e.tagName&&u++;return s["$nth_child"]=c,s["$nth_of_type"]=u,s}function JS(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};pk.each(i,function(e){l[e]=!0});var h=null,d="undefined"===typeof e.target?e.srcElement:e.target;if(nx(d)&&(d=d.parentNode),sx(d,e)&&QS(d,e,r,n)&&!ex(d,e,o,s)){var p=[d],f=d;while(f.parentNode&&!rx(f,"body"))p.push(f.parentNode),f=f.parentNode;var m,g=[],v=!1;if(pk.each(p,function(t){var i=cx(t,e,r,n);l["href"]||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&ux(m)&&m),ex(t,e,o,s)&&(v=!0),g.push(GS(t,e,l,c,r,n))},this),!v){var y=nk["documentElement"];if(h={$event_type:e.type,$host:xi.location.host,$pathname:xi.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y["clientHeight"],xi["innerHeight"]||0),$viewportWidth:Math.max(y["clientWidth"],xi["innerWidth"]||0),$pageHeight:nk["body"]["offsetHeight"]||0,$pageWidth:nk["body"]["offsetWidth"]||0},pk.each(c,function(e){if(!l[e]&&d.hasAttribute(e)){var t=d.getAttribute(e);ux(t)&&(h["$el_attr__"+e]=t)}}),a&&(w=KS(d,e,r,n),w&&w.length&&(h["$el_text"]=w)),e.type===SS&&(pk.each(LS,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h["$captured_for_heatmap"]=!0),d=ZS(e)),a){var w=KS(d,e,r,n);w&&w.length&&(h["$el_text"]=w)}if(d){if(!QS(d,e,r,n)||ex(d,e,o,s))return null;var b=GS(d,e,l,c,r,n);h["$target"]=b,h["$el_classes"]=b["$classes"],pk.extend(h,pk.strip_empty_properties({$el_id:b["$id"],$el_tag_name:b["$tag_name"]}))}}}return h}function KS(e,t,r,n){var i="";return cx(e,t,r,n)&&e.childNodes&&e.childNodes.length&&pk.each(e.childNodes,function(e){nx(e)&&e.textContent&&(i+=pk.trim(e.textContent).split(/(\s+)/).filter(ux).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),pk.trim(i)}function ZS(e){for(var t=e.target,r=e["composedPath"](),n=0;n<r.length;n++){var i=r[n];if(rx(i,"a")||rx(i,"button")||rx(i,"input")||rx(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}function QS(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(mA){return WS.critical("Error while checking element in allowElementCallback",mA),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(mA){WS.critical("Error while checking selector: "+o,mA)}}return!1}function ex(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(mA){return WS.critical("Error while checking element in blockElementCallback",mA),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(mA){WS.critical("Error while checking selector: "+o,mA)}}var s=VS(e);for(i=0;i<NS.length;i++)if(s[NS[i]])return!0;return!1}function tx(e){return e&&1===e.nodeType}function rx(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function nx(e){return e&&3===e.nodeType}function ix(){try{var e=nk.createElement("div");return!!e["matches"]}catch(mA){return!1}}function ox(){return"undefined"!==typeof WeakSet}function sx(e,t){if(!e||rx(e,"html")||!tx(e))return!1;var r=e.tagName.toLowerCase();switch(r){case"form":return t.type===RS;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===kS:t.type===SS;case"select":case"textarea":return t.type===kS;default:return t.type===SS}}function ax(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"===typeof t){var r=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(r.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function cx(e,t,r,n){var i;if(!QS(e,t,r,n))return!1;for(var o=e;o.parentNode&&!rx(o,"body");o=o.parentNode){var s=VS(o);for(i=0;i<jS.length;i++)if(s[jS[i]])return!1}var a=VS(e);for(i=0;i<BS.length;i++)if(a[BS[i]])return!0;if(rx(e,"input")||rx(e,"select")||rx(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"===typeof c)switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}return!ax(e)}function ux(e){if(null===e||pk.isUndefined(e))return!1;if("string"===typeof e){e=pk.trim(e);var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var r=/(^\d{3}-?\d{2}-?\d{4}$)/;if(r.test(e))return!1}return!0}function lx(e){var t="onscrollend"in xi,r=vk(e),n=IS;if(!t){var i=null,o=100;r=vk(function(){clearTimeout(i),i=setTimeout(e,o)}),n=TS}return{listener:r,eventType:n}}function hx(e){for(var t=0;t<HS.length;t++)if(e.hasAttribute(HS[t]))return!0;return!1}function dx(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return US[r]}function px(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||(!!e.isContentEditable||(!!(e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend)||(!!hx(e)||(!!dx(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function fx(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(zS[t])return!0;if(px(e))return!1;var r=e.parentElement,n=0;while(r&&n<$S){if(px(r))return!1;if(r.getRootNode&&r.getRootNode()!==nk){var i=r.getRootNode();if(i.host&&px(i.host))return!1}r=r.parentElement,n++}return!!qS[t]}function mx(e){return"composedPath"in e?e["composedPath"]():[]}function gx(e){var t=mx(e);return t&&t.length>0?t[0]:e["target"]||e["srcElement"]}var vx=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",yx="data-rr-is-password",wx=["password","email","tel","hidden"];function bx(e){return e?Array.isArray(e)?e:[e]:[]}function _x(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=bx(r).join(","),t.input.unmaskingSelector=bx(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=bx(o);if(c)if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=bx(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}function kx(e,t){return!!t&&!!e.closest(t)}function Sx(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==wx.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!(!n||""===n||"off"===n)||(!!e.hasAttribute(yx)||(!!ax(e)||(t.input.maskAll?!kx(e,t.input.unmaskingSelector):!!kx(e,t.input.maskingSelector)||!!kx(e,vx))))}function xx(e,t){return!!e&&(!(!t.text._legacyClassRegex||!mv(e,t.text._legacyClassRegex))||(t.text.maskAll?!kx(e,t.text.unmaskingSelector):!!kx(e,t.text.maskingSelector)||!!kx(e,vx)))}var Cx=gk("network-plugin");function Ex(e){return Math.round(Date.now()-e.performance.now())}var Ax={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function Ox(e){return"navigation"===e.entryType}function Ix(e){return"resource"===e.entryType}function Tx(e,t){for(var r=e.length,n=r-1;n>=0;n-=1)if(t(e[n]))return e[n]}function Mx(e,t,r){if(!(t in e)||"function"!==typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}var Rx=1048576;function Px(e){return e&&"string"===typeof e&&e.length>Rx?(Cx.error("Body truncated from "+e.length+" to "+Rx+" characters"),e.substring(0,Rx)+"... [truncated]"):e}function Dx(e,t,r){if(!t.PerformanceObserver)return Cx.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return Ox(e)||Ix(e)&&r.initiatorTypes.includes(e.initiatorType)});e({requests:n.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:Ex(t)}}),isInitial:!0})}var i=new t.PerformanceObserver(function(n){var i=n.getEntries().filter(function(e){return Ix(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType});e({requests:i.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:Ex(t)}})})});return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}function Lx(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())}function Bx(e,t,r){return!(!t[e]||0===t[e].length)&&Fk(r,t[e])}function Nx(e){if(null===e||void 0===e)return null;var t;if("string"===typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=pk.HTTPBuildQuery(e);else{if(!pk.isObject(e))return"Cannot read body of type "+typeof e;try{t=JSON.stringify(e)}catch(r){return"Failed to stringify response object"}}return Px(t)}function jx(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(Px(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(n){clearTimeout(r),t("Failed to read body: "+String(n))}})}function Fx(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return Cx.error("Cannot find performance entry"),Promise.resolve(null);var s=e.performance.getEntriesByName(r),a=Tx(s,function(e){return Ix(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return a?Promise.resolve(a):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return Fx(e,t,r,n,i,o+1)})}function Ux(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=Mx(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,c){void 0===s&&(s=!0);var u,l,h=this,d=new Request(o,{method:i}),p={},f={},m=h.setRequestHeader.bind(h);h.setRequestHeader=function(e,t){return Lx("request",r.recordHeaders,e)&&(f[e]=t),m(e,t)},p.requestHeaders=f;var g=h.send.bind(h);h.send=function(e){return Bx("request",r.recordBodyUrls,d.url)&&(p.requestBody=Nx(e)),u=t.performance.now(),g(e)},h.addEventListener("readystatechange",function(){if(h.readyState===h.DONE){l=t.performance.now();var n={},i=h.getAllResponseHeaders();if(i){var o=i.trim().split(/[\r\n]+/);o.forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&Lx("response",r.recordHeaders,i)&&(n[i]=o)}}})}p.responseHeaders=n,Bx("response",r.recordBodyUrls,d.url)&&(p.responseBody=Nx(h.response)),Fx(t,"xmlhttprequest",d.url,u,l).then(function(r){if(r){var n={url:r.name,method:d.method,initiatorType:r.initiatorType,status:h.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:Ex(t),requestHeaders:p.requestHeaders,requestBody:p.requestBody,responseHeaders:p.responseHeaders,responseBody:p.responseBody};e({requests:[n]})}else Cx.error("Failed to get performance entry for XHR request to "+d.url)}).catch(function(e){Cx.error("Error recording XHR request to "+d.url+": "+String(e))})}}),n.call(h,i,o,s,a,c)}});return function(){n()}}function zx(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=Mx(t,"fetch",function(n){return function(){var i,o,s,a,c=new Request(arguments[0],arguments[1]),u={},l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var d={};c.headers.forEach(function(e,t){Lx("request",r.recordHeaders,t)&&(d[t]=e)}),u.requestHeaders=d,Bx("request",r.recordBodyUrls,c.url)&&(l=jx(c).then(function(e){u.requestBody=e})),o=t.performance.now(),a=n.apply(t,arguments).then(function(e){i=e,s=t.performance.now();var n={};return i.headers.forEach(function(e,t){Lx("response",r.recordHeaders,t)&&(n[t]=e)}),u.responseHeaders=n,Bx("response",r.recordBodyUrls,c.url)&&(h=jx(i).then(function(e){u.responseBody=e})),i})}catch(p){a=Promise.reject(p)}return Promise.all([l,h,a]).then(function(){return Fx(t,"fetch",c.url,o,s)}).then(function(r){if(r){var n={url:r.name,method:c.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:Ex(t),requestHeaders:u.requestHeaders,requestBody:u.requestBody,responseHeaders:u.responseHeaders,responseBody:u.responseBody};e({requests:[n]})}else Cx.error("Failed to get performance entry for fetch request to "+c.url)}).catch(function(e){Cx.error("Error recording fetch request to "+c.url+": "+String(e))}),a}});return function(){n()}}function qx(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},Ax.recordHeaders,r.recordHeaders||{}),i=Object.assign({},Ax.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},Ax,r),s=function(t){var r=t.requests.filter(function(e){var t=Fk(e.url,o.ignoreRequestUrls||[]);return!t&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=Dx(s,t,o),c=Ux(s,t,o),u=zx(s,t,o);return function(){a(),c(),u()}}var Hx="rrweb/network@1.mp",$x=function(e){return{name:Hx,observer:qx,options:e}},Wx=gk("recorder"),Vx=xi["CompressionStream"],Xx={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Yx=new Set([Sm.MouseMove,Sm.MouseInteraction,Sm.Scroll,Sm.ViewportResize,Sm.Input,Sm.TouchMove,Sm.MediaInteraction,Sm.Drag,Sm.Selection]);function Gx(e){return e.type===km.IncrementalSnapshot&&Yx.has(e.data.source)}var Jx=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||jk,this._onMaxLengthReached=e.onMaxLengthReached||jk,this._onBatchSent=e.onBatchSent||jk,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=X_,this.recordMinMs=0;var t=kk(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Yk($k),this.batcher=new wS(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Xx,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:_S,sharedLockTimeoutMS:1e4})};Jx.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e["$device_id"]=t);var r=this._mixpanel.get_property("$user_id");return r&&(e["$user_id"]=r),e},Jx.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},Jx.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Jx.prototype.get_config=function(e){return this.getConfig(e)},Jx.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>X_&&(this.recordMaxMs=X_,Wx.critical("record_max_ms cannot be greater than "+X_+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=pk.info.currentUrl(),this.replayStartUrl=pk.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=_x(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push($x(o))}this.getConfig("record_console")&&i.push(M_({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(Gx(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(Sx,n),maskTextFn:this._getMaskFn(xx,n),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(mA){this.reportError("Unexpected error when starting rrweb recording.",mA)}if("function"!==typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var a=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),a)}else Wx.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Jx.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(mA){this.reportError("Error with rrweb stopRecording",mA)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Jx.prototype.isRrwebStopped=function(){return null===this._stopRecording},Jx.prototype.flushEventsWithOptOut=function(e,t,r){var n=function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,r,n)},Jx.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},Jx.deserialize=function(e,t){var r=new Jx(pk.extend({},t,{replayId:e["replayId"],batchStartUrl:e["batchStartUrl"],replayStartUrl:e["replayStartUrl"],idleExpires:e["idleExpires"],maxExpires:e["maxExpires"],replayStartTime:e["replayStartTime"],lastEventTimestamp:e["lastEventTimestamp"],seqNo:e["seqNo"],sharedLockStorage:t.sharedLockStorage}));return r},Jx.prototype._getApiRoute=function(){return this.getConfig("api_routes")["record"]},Jx.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=pk.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");xi["fetch"](o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},Jx.prototype._flushEvents=eS(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,c=0;c<n;c++)o=Math.min(o,e[c].timestamp),s=Math.max(s,e[c].timestamp),e[c].type===km.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var u=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:Ai.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),qk(sk,rk.vendor,ik)){var d=new Blob([h],{type:"application/json"}).stream(),p=d.pipeThrough(new Vx("gzip"));new Response(p).blob().then(function(e){l["format"]="gzip",this._sendRequest(i,l,e,r)}.bind(this))}else l["format"]="body",this._sendRequest(i,l,h,r)}}),Jx.prototype.reportError=function(e,t){Wx.error.apply(Wx.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Wx.error(t)}},Jx.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Jx.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>Y_?(Wx.critical("record_min_ms cannot be greater than "+Y_+"ms. Capping value."),Y_):e},Jx.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(mA){this.reportError("Error checking if text should be masked, defaulting to masked",mA)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};var Kx=function(e){this.idb=new Yk(Wk),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Kx.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Kx.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Kx.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return W_.resolve();var t=e["tabId"];return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),W_.resolve())},Kx.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return bS(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):W_.resolve(null)},Kx.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Kx.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e["maxExpires"]=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},Kx.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):W_.resolve()},Kx.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return bS(e)}).map(function(e){var t=Jx.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return t.unloadPersistedData().then(function(){return this.idb.removeItem(e["tabId"])}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return W_.all(t)}.bind(this)).catch(this.handleError.bind(this)):W_.resolve([])};var Zx=gk("recorder"),Qx=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Wg,this.sharedLockStorage=r,this.recordingRegistry=new Kx({mixpanelInstance:this.mixpanelInstance,errorReporter:Zx.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function eC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}Qx.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Zx.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Zx.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this["__flushPromise"]=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:pk.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Jx.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Jx(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Zx.log("Recording already in progress, skipping startRecording.")},Qx.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},Qx.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Qx.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return W_.resolve()},Qx.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),W_.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Zx.log("No resumable recording found."),null)}.bind(this))},Qx.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Qx.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},Qx.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(Qx.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),xi[Ii]=Qx;var tC,rC={exports:{}};rC.exports;function nC(){return tC||(tC=1,function(e){(function(t,r){e.exports=r()})(0,function(){function e(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var t={},r={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||"undefined"===typeof t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if("undefined"===typeof e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null===n||void 0===n)return r;if(n=n[i[o]],void 0===n)return r}return n},missing:function(){for(var e=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=t.apply({var:i},this);null!==o&&""!==o||e.push(i)}return e},missing_some:function(e,r){var n=t.apply({missing:r},this);return r.length-n.length>=e?[]:n}};return t.is_logic=function(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},t.truthy=function(e){return(!Array.isArray(e)||0!==e.length)&&!!e},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,n){if(Array.isArray(e))return e.map(function(e){return t.apply(e,n)});if(!t.is_logic(e))return e;var i,o,s,a,c,u=t.get_operator(e),l=e[u];if(Array.isArray(l)||(l=[l]),"if"===u||"?:"==u){for(i=0;i<l.length-1;i+=2)if(t.truthy(t.apply(l[i],n)))return t.apply(l[i+1],n);return l.length===i+1?t.apply(l[i],n):null}if("and"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),!t.truthy(o))return o;return o}if("or"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),t.truthy(o))return o;return o}if("filter"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.filter(function(e){return t.truthy(t.apply(s,e))}):[];if("map"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.map(function(e){return t.apply(s,e)}):[];if("reduce"===u)return a=t.apply(l[0],n),s=l[1],c="undefined"!==typeof l[2]?t.apply(l[2],n):null,Array.isArray(a)?a.reduce(function(e,r){return t.apply(s,{current:r,accumulator:e})},c):c;if("all"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!t.truthy(t.apply(s,a[i])))return!1;return!0}if("none"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!1;return!0}if("some"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!0;return!1}if(l=l.map(function(e){return t.apply(e,n)}),r.hasOwnProperty(u)&&"function"===typeof r[u])return r[u].apply(n,l);if(u.indexOf(".")>0){var h=String(u).split("."),d=r;for(i=0;i<h.length;i++){if(!d.hasOwnProperty(h[i]))throw new Error("Unrecognized operation "+u+" (failed at "+h.slice(0,i+1).join(".")+")");d=d[h[i]]}return d.apply(n,l)}throw new Error("Unrecognized operation "+u)},t.uses_data=function(r){var n=[];if(t.is_logic(r)){var i=t.get_operator(r),o=r[i];Array.isArray(o)||(o=[o]),"var"===i?n.push(o[0]):o.forEach(function(e){n.push.apply(n,t.uses_data(e))})}return e(n)},t.add_operation=function(e,t){r[e]=t},t.rm_operation=function(e){delete r[e]},t.rule_like=function(e,r){if(r===e)return!0;if("@"===r)return!0;if("number"===r)return"number"===typeof e;if("string"===r)return"string"===typeof e;if("array"===r)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(r)){if(t.is_logic(e)){var n=t.get_operator(r),i=t.get_operator(e);if("@"===n||n===i)return t.rule_like(t.get_values(e,!1),t.get_values(r,!1))}return!1}if(Array.isArray(r)){if(Array.isArray(e)){if(r.length!==e.length)return!1;for(var o=0;o<r.length;o+=1)if(!t.rule_like(e[o],r[o]))return!1;return!0}return!1}return!1},t})}(rC)),rC.exports}var iC=nC(),oC=eC(iC),sC=function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!pk.isEmptyObject(n))try{i=oC.apply(n,t||{})}catch(o){return{matches:!1,error:o.toString()}}return{matches:i}},aC={};aC["eventMatchesCriteria"]=sC,xi[Oi]=Promise.resolve(aC);var cC=30,uC=1e3,lC=4,hC=!1;function dC(){this.clicks=[]}function pC(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}dC.prototype.isRageClick=function(e,t){t=t||{};var r=t["threshold_px"]||cC,n=t["timeout_ms"]||uC,i=t["click_count"]||lC,o=t["interactive_elements_only"]||hC;if(o){var s=gx(e);if(!s||fx(s))return!1}var a=Date.now(),c=e["pageX"],u=e["pageY"],l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<n&&Math.sqrt(Math.pow(c-l.x,2)+Math.pow(u-l.y,2))<r){if(this.clicks.push({x:c,y:u,timestamp:a}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:c,y:u,timestamp:a}];return!1},pC.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return gx(e)},pC.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=mx(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},pC.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(n){WS.critical("Error while observing shadow root",n)}}},pC.prototype.start=function(){this.observedShadowRoots||(ox()?this.observedShadowRoots=new WeakSet:WS.critical("Shadow DOM observation unavailable: WeakSet not supported"))},pC.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(t){WS.critical("Error while disconnecting shadow DOM observer",t)}this.shadowObservers=[],this.observedShadowRoots=null}};var fC=500,mC=[kS,CS,RS,MS,PS],gC=[IS],vC=[xS],yC={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function wC(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}wC.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e["target"]||e["srcElement"]),!(!t||fx(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},wC.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},wC.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e["timeout_ms"],r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},wC.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},wC.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},wC.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},wC.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e["timeout_ms"],r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},wC.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;mC.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),vC.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),gC.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,yC)}catch(r){WS.critical("Error while setting up mutation observer",r)}if(window.customElements)try{this.shadowDOMObserver=new pC(function(){e.recordChangeEvent()},yC),this.shadowDOMObserver.start()}catch(r){WS.critical("Error while setting up shadow DOM observer",r),this.shadowDOMObserver=null}}},wC.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(r){WS.critical("Error while removing event listener",r)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(r){WS.critical("Error while disconnecting mutation observer",r)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(r){WS.critical("Error while stopping shadow DOM observer",r)}this.shadowDOMObserver=null}}};var bC="autocapture",_C="track_pageview",kC="full-url",SC="url-with-path-and-query-string",xC="url-with-path",CC="allow_element_callback",EC="allow_selectors",AC="allow_url_regexes",OC="block_attrs",IC="block_element_callback",TC="block_selectors",MC="block_url_regexes",RC="capture_extra_attrs",PC="capture_text_content",DC="scroll_capture_all",LC="scroll_depth_percent_checkpoints",BC="click",NC="dead_click",jC="input",FC="pageview",UC="rage_click",zC="scroll",qC="page_leave",HC="submit",$C={};$C[EC]=[],$C[AC]=[],$C[OC]=[],$C[IC]=null,$C[TC]=[],$C[MC]=[],$C[RC]=[],$C[PC]=!1,$C[DC]=!1,$C[LC]=[25,50,75,100],$C[BC]=!0,$C[NC]=!0,$C[jC]=!0,$C[FC]=kC,$C[UC]=!0,$C[zC]=!0,$C[qC]=!1,$C[HC]=!0;var WC={$mp_autocapture:!0},VC="$mp_click",XC="$mp_dead_click",YC="$mp_input_change",GC="$mp_rage_click",JC="$mp_scroll",KC="$mp_submit",ZC="$mp_page_leave",QC=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};QC.prototype.init=function(){ix()?(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()):WS.critical("Autocapture unavailable: missing required DOM APIs")},QC.prototype.getFullConfig=function(){var e=this.mp.get_config(bC);return e?pk.isObject(e)?pk.extend({},$C,e):$C:{}},QC.prototype.getConfig=function(e){return this.getFullConfig()[e]},QC.prototype.currentUrlBlocked=function(){var e=pk.info.currentUrl(),t=this.getConfig(AC)||[];if(t.length)try{return!Fk(e,t)}catch(mA){return WS.critical("Error while checking block URL regexes: ",mA),!0}var r=this.getConfig(MC)||[];if(!r||!r.length)return!1;try{return Fk(e,r)}catch(mA){return WS.critical("Error while checking block URL regexes: ",mA),!0}},QC.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(bC)?this.getConfig(FC):this.mp.get_config(_C)},QC.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===VC&&!this.getConfig(BC)||t===GC&&!this._getClickTrackingConfig(UC)||t===XC&&!this._getClickTrackingConfig(NC)),n=JS(e,{allowElementCallback:this.getConfig(CC),allowSelectors:this.getConfig(EC),blockAttrs:this.getConfig(OC),blockElementCallback:this.getConfig(IC),blockSelectors:this.getConfig(TC),captureExtraAttrs:this.getConfig(RC),captureTextContent:this.getConfig(PC),capturedForHeatMap:r});n&&(pk.extend(n,WC),this.mp.track(t,n))}},QC.prototype.initPageListeners=function(){if(xi.removeEventListener(OS,this.listenerPopstate),xi.removeEventListener(xS,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(qC)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){xi.dispatchEvent(new Event(AS))},this.listenerHashchange=function(){xi.dispatchEvent(new Event(AS))},xi.addEventListener(OS,this.listenerPopstate),xi.addEventListener(xS,this.listenerHashchange);var e=xi.history.pushState;"function"===typeof e&&(xi.history.pushState=function(t,r,n){e.call(xi.history,t,r,n),xi.dispatchEvent(new Event(AS))});var t=xi.history.replaceState;"function"===typeof t&&(xi.history.replaceState=function(e,r,n){t.call(xi.history,e,r,n),xi.dispatchEvent(new Event(AS))})}},QC.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"===typeof t?t:{}:null},QC.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(qC)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(nk.documentElement.clientHeight,xi.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=pk.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||pk.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(nk.documentElement.clientWidth,xi.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},WC);this.mp.track(ZC,s,{transport:"sendBeacon"})}},QC.prototype._initScrollDepthTracking=function(){if(xi.removeEventListener(TS,this.listenerScrollDepth),xi.removeEventListener(IS,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){WS.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(nk.documentElement.clientHeight,xi.innerHeight||0);var e=function(){if(!this.currentUrlBlocked()){var e=Math.max(nk.documentElement.clientHeight,xi.innerHeight||0)+xi.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=nk.body.scrollHeight}}.bind(this),t=lx(e);this.listenerScrollDepth=t.listener,xi.addEventListener(t.eventType,this.listenerScrollDepth)}},QC.prototype.initClickTracking=function(){xi.removeEventListener(SS,this.listenerClick),(this.getConfig(BC)||this.mp.get_config("record_heatmap_data"))&&(WS.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(BC)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,VC)}.bind(this),xi.addEventListener(SS,this.listenerClick))},QC.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(NC);e||this.mp.get_config("record_heatmap_data")?(WS.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new wC(function(e){this.trackDomEvent(e,XC)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(NC);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r["timeout_ms"]||(r["timeout_ms"]=fC),this._deadClickTracker.trackClick(e,r)}}.bind(this),xi.addEventListener(SS,this.listenerDeadClick))):this.stopDeadClickTracking()},QC.prototype.initInputTracking=function(){xi.removeEventListener(kS,this.listenerChange),this.getConfig(jC)&&(WS.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(jC)&&this.trackDomEvent(e,YC)}.bind(this),xi.addEventListener(kS,this.listenerChange))},QC.prototype.initPageviewTracking=function(){if(xi.removeEventListener(AS,this.listenerLocationchange),this.pageviewTrackingConfig()){WS.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(WC)),t&&(e=pk.info.currentUrl()),this.listenerLocationchange=vk(function(){if(!this.currentUrlBlocked()){var t=pk.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(i===kC?r=t!==e:i===SC?r=t.split("#")[0]!==e.split("#")[0]:i===xC&&(r=n),r){var o=this.mp.track_pageview(WC);o&&(e=t),n&&(this.lastScrollCheckpoint=0,WS.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),xi.addEventListener(AS,this.listenerLocationchange)}},QC.prototype.initRageClickTracking=function(){xi.removeEventListener(SS,this.listenerRageClick);var e=this._getClickTrackingConfig(UC);(e||this.mp.get_config("record_heatmap_data"))&&(WS.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new dC),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(UC);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,GC))}.bind(this),xi.addEventListener(SS,this.listenerRageClick))},QC.prototype.initScrollTracking=function(){if(xi.removeEventListener(IS,this.listenerScroll),xi.removeEventListener(TS,this.listenerScroll),this.getConfig(zC)){WS.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=function(){if(this.getConfig(zC)&&!this.currentUrlBlocked()){var e=this.getConfig(DC),t=(this.getConfig(LC)||[]).slice().sort(function(e,t){return e-t}),r=xi.scrollY,n=pk.extend({$scroll_top:r},WC);try{var i=nk.body.scrollHeight,o=Math.round(r/(i-xi.innerHeight)*100);if(n["$scroll_height"]=i,n["$scroll_percentage"]=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n["$scroll_checkpoint"]=a,this.lastScrollCheckpoint=a,e=!0)}}catch(mA){WS.critical("Error while calculating scroll percentage",mA)}e&&this.mp.track(JC,n)}}.bind(this),t=lx(e);this.listenerScroll=t.listener,xi.addEventListener(t.eventType,this.listenerScroll)}},QC.prototype.initSubmitTracking=function(){xi.removeEventListener(RS,this.listenerSubmit),this.getConfig(HC)&&(WS.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(HC)&&this.trackDomEvent(e,KC)}.bind(this),xi.addEventListener(RS,this.listenerSubmit))},QC.prototype.initPageLeaveTracking=function(){if(nk.removeEventListener(DS,this.listenerPageLeaveVisibilitychange),xi.removeEventListener(AS,this.listenerPageLeaveLocationchange),xi.removeEventListener(ES,this.listenerPageLoad),this.getConfig(qC)||this.mp.get_config("record_heatmap_data")){WS.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=pk.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=nk.body.scrollHeight}.bind(this),xi.addEventListener(ES,this.listenerPageLoad),this.listenerPageLeaveLocationchange=vk(function(t){if(!this.currentUrlBlocked()){var r=pk.info.currentUrl(),n=r!==e;n&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(nk.documentElement.clientHeight,xi.innerHeight||0),this.previousScrollHeight=nk.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),xi.addEventListener(AS,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){nk.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),nk.addEventListener(DS,this.listenerPageLeaveVisibilitychange)}},QC.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(xi.removeEventListener(SS,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},yk(QC);var eE=function(e,t){return xi[Oi]&&"function"===typeof xi[Oi].then||(xi[Oi]=new Promise(function(r){e(t,r)}).then(function(){var e=xi[Oi];if(e&&"function"===typeof e.then)return e;throw new Error("targeting failed to load")}).catch(function(e){throw delete xi[Oi],e})),xi[Oi]},tE=gk("flags"),rE="flags",nE="context",iE={};iE[nE]={};var oE=function(e,t){return e+":"+t},sE=function(e){return e.split(":")[0]},aE=function(e){this.fetch=xi["fetch"],this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};aE.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):tE.critical("Feature Flags unavailable: missing minimum required APIs")},aE.prototype.getFullConfig=function(){var e=this.getMpConfig(rE);return e?pk.isObject(e)?pk.extend({},iE,e):iE:{}},aE.prototype.getConfig=function(e){return this.getFullConfig()[e]},aE.prototype.isSystemEnabled=function(){return!!this.getMpConfig(rE)},aE.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return tE.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(rE);pk.isObject(r)||(r={});var n=t&&t["replace"]?{}:this.getConfig(nE);return r[nE]=pk.extend({},n,e),this.setMpConfig(rE,r),this.fetchFlags()},aE.prototype.areFlagsReady=function(){return this.isSystemEnabled()||tE.error("Feature Flags not enabled"),!!this.flags},aE.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=Pk();tE.log("Fetching flags for distinct ID: "+e);var n=pk.extend({distinct_id:e,device_id:t},this.getConfig(nE)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",Ai.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(xi,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json().then(function(e){var t=e["flags"];if(!t)throw new Error("No flags in API response");var n=new Map,i={};pk.each(t,function(e,t){var r=!1,i=t+":";if(pk.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(i)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&n.set(t,o)}else n.set(t,{key:e["variant_key"],value:e["variant_value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"]})},this);var o=e["pending_first_time_events"];o&&o.length>0&&pk.each(o,function(e){var t=e["flag_key"],r=oE(t,e["first_time_event_hash"]);this.activatedFirstTimeEvents[r]||(i[r]={flag_key:t,flag_id:e["flag_id"],project_id:e["project_id"],first_time_event_hash:e["first_time_event_hash"],event_name:e["event_name"],property_filters:e["property_filters"],pending_variant:e["pending_variant"]})},this),this.activatedFirstTimeEvents&&pk.each(this.activatedFirstTimeEvents,function(e,t){var r=sE(t);e&&!n.has(r)&&this.flags&&this.flags.has(r)&&n.set(r,this.flags.get(r))},this),this.flags=n,this.pendingFirstTimeEvents=i,this._traceparent=r,this._loadTargetingIfNeeded()}.bind(this)).catch(function(e){this.markFetchComplete(),tE.error(e)}.bind(this))}.bind(this)).catch(function(e){this.markFetchComplete(),tE.error(e)}.bind(this)),this.fetchPromise},aE.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):tE.error("Fetch in progress started time not set, cannot mark fetch complete")},aE.prototype._loadTargetingIfNeeded=function(){var e=!1;pk.each(this.pendingFirstTimeEvents,function(t){t["property_filters"]&&!pk.isEmptyObject(t["property_filters"])&&(e=!0)}),e&&this.getTargeting().then(function(){tE.log("targeting loaded for property filter evaluation")})},aE.prototype.getTargeting=function(){return eE(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){tE.error("Failed to load targeting: "+e)}.bind(this))},aE.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!pk.isEmptyObject(this.pendingFirstTimeEvents)&&(xi[Oi]&&pk.isFunction(xi[Oi].then)?xi[Oi].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},aE.prototype._processFirstTimeEventCheck=function(e,t,r){pk.each(this.pendingFirstTimeEvents,function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n["flag_key"];if(r||!n["property_filters"]||pk.isEmptyObject(n["property_filters"])){if(r){var a={event_name:n["event_name"],property_filters:n["property_filters"]};o=r["eventMatchesCriteria"](e,t,a)}else o={matches:e===n["event_name"],error:null};if(o.error)tE.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){tE.log('First-time event matched for flag "'+s+'": '+e);var c={key:n["pending_variant"]["variant_key"],value:n["pending_variant"]["variant_value"],experiment_id:n["pending_variant"]["experiment_id"],is_experiment_active:n["pending_variant"]["is_experiment_active"]};this.flags.set(s,c),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n["flag_id"],n["project_id"],n["first_time_event_hash"])}}else tE.warn('Skipping event check for "'+s+'" - property filters require targeting library')}},this)},aE.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},aE.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=Pk(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",Ai.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};tE.log("Recording first-time event for flag: "+e),this.fetch.call(xi,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch(function(t){tE.error("Failed to record first-time event for flag "+e+": "+t)})},aE.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch(function(e){return tE.error(e),t}):new Promise(function(e){tE.critical("Feature Flags not initialized"),e(t)})},aE.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return tE.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(tE.log('No flag found: "'+e+'"'),t)},aE.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e["value"]}).catch(function(e){return tE.error(e),t})},aE.prototype.getFeatureData=function(e,t){return tE.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},aE.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t})["value"]},aE.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return tE.error(e),t})},aE.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(tE.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},aE.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t["key"],$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t["experiment_id"]&&(r["$experiment_id"]=t["experiment_id"]),"undefined"!==t["is_experiment_active"]&&(r["$is_experiment_active"]=t["is_experiment_active"]),"undefined"!==t["is_qa_tester"]&&(r["$is_qa_tester"]=t["is_qa_tester"]),this.track("$experiment_started",r)}},aE.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!==typeof Promise&&"undefined"!==typeof Map&&"undefined"!==typeof Set},yk(aE),aE.prototype["are_flags_ready"]=aE.prototype.areFlagsReady,aE.prototype["get_variant"]=aE.prototype.getVariant,aE.prototype["get_variant_sync"]=aE.prototype.getVariantSync,aE.prototype["get_variant_value"]=aE.prototype.getVariantValue,aE.prototype["get_variant_value_sync"]=aE.prototype.getVariantValueSync,aE.prototype["is_enabled"]=aE.prototype.isEnabled,aE.prototype["is_enabled_sync"]=aE.prototype.isEnabledSync,aE.prototype["update_context"]=aE.prototype.updateContext,aE.prototype["get_feature_data"]=aE.prototype.getFeatureData,aE.prototype["getTargeting"]=aE.prototype.getTargeting;var cE=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null};cE.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return fk.log("Load recorder check skipped due to disable_persistence config"),W_.resolve(!1);var e=new Yk(Wk),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(bS(e[r])||e[r]["tabId"]===t)return!0;return!1}).catch(pk.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},cE.prototype.checkAndStartSessionRecording=function(e,t){if(!xi["MutationObserver"])return fk.critical("Browser does not support MutationObserver; skipping session recording"),W_.resolve();var r=pk.bind(function(e){return new W_(pk.bind(function(t){var r=vk(pk.bind(function(){this._recorder=this._recorder||new xi[Ii](this.mixpanelInstance),this._recorder["resumeRecording"](e),t()},this));if(pk.isUndefined(xi[Ii])){var n=this.recorderSrc||this.libBasePath+Ti;this.loadExtraBundle(n,r)}else r()},this))},this),n=pk.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,i=n>0&&100*Math.random()<=n;return e||i?r(!0):this.shouldLoadRecorder().then(pk.bind(function(e){return e?r(!1):W_.resolve()},this))},cE.prototype.isRecording=function(){if(!this._recorder||!pk.isFunction(this._recorder["isRecording"]))return!1;try{return this._recorder["isRecording"]()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},cE.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"===typeof i["percentage"]){var o=i["percentage"],s=i["property_filters"];if(s&&!pk.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+Mi;eE(this.loadExtraBundle,a).then(function(r){try{var n=r["eventMatchesCriteria"](e,t,{event_name:e,property_filters:s});n["matches"]&&this.checkAndStartSessionRecording(!1,o)}catch(mA){fk.critical("Could not parse recording event trigger properties logic:",mA)}}.bind(this)).catch(function(e){fk.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},cE.prototype.stopSessionRecording=function(){return this._recorder?this._recorder["stopRecording"]():W_.resolve()},cE.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder["pauseRecording"]():W_.resolve()},cE.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder["resumeRecording"]():W_.resolve()},cE.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},cE.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e["$mp_replay_id"]=t),e},cE.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();if(t){var r=pk.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")});e="https://mixpanel.com/projects/replay-redirect?"+r}return e},cE.prototype.getSessionReplayId=function(){var e=null;return this._recorder&&(e=this._recorder["replayId"]),e||null},cE.prototype.getRecorder=function(){return this._recorder},yk(cE);var uE=function(){};uE.prototype.create_properties=function(){},uE.prototype.event_handler=function(){},uE.prototype.after_track_handler=function(){},uE.prototype.init=function(e){return this.mp=e,this},uE.prototype.track=function(e,t,r,n){var i=this,o=pk.dom_query(e);if(0!==o.length)return pk.each(o,function(e){pk.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0;fk.error("The DOM query ("+e+") returned 0 elements")},uE.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},uE.prototype.create_properties=function(e,t){var r;return r="function"===typeof e?e(t):pk.extend({},e),r};var lE=function(){this.override_event="click"};pk.inherit(lE,uE),lE.prototype.create_properties=function(e,t){var r=lE.superclass.create_properties.apply(this,arguments);return t.href&&(r["url"]=t.href),r},lE.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},lE.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var hE=function(){this.override_event="submit"};pk.inherit(hE,uE),hE.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},hE.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var dE="$set",pE="$set_once",fE="$unset",mE="$add",gE="$append",vE="$union",yE="$remove",wE="$delete",bE={set_action:function(e,t){var r={},n={};return pk.isObject(e)?pk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[dE]=n,r},unset_action:function(e){var t={},r=[];return pk.isArray(e)||(e=[e]),pk.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[fE]=r,t},set_once_action:function(e,t){var r={},n={};return pk.isObject(e)?pk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[pE]=n,r},union_action:function(e,t){var r={},n={};return pk.isObject(e)?pk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=pk.isArray(e)?e:[e])},this):n[e]=pk.isArray(t)?t:[t],r[vE]=n,r},append_action:function(e,t){var r={},n={};return pk.isObject(e)?pk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[gE]=n,r},remove_action:function(e,t){var r={},n={};return pk.isObject(e)?pk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[yE]=n,r},delete_action:function(){var e={};return e[wE]="",e}},_E=function(){};pk.extend(_E.prototype,bE),_E.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},_E.prototype.set=rS(function(e,t,r){var n=this.set_action(e,t);return pk.isObject(e)&&(r=t),this._send_request(n,r)}),_E.prototype.set_once=rS(function(e,t,r){var n=this.set_once_action(e,t);return pk.isObject(e)&&(r=t),this._send_request(n,r)}),_E.prototype.unset=rS(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),_E.prototype.union=rS(function(e,t,r){pk.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),_E.prototype["delete"]=rS(function(e){var t=this.delete_action();return this._send_request(t,e)}),_E.prototype.remove=rS(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),_E.prototype._send_request=function(e,t){e["$group_key"]=this._group_key,e["$group_id"]=this._group_id,e["$token"]=this._get_config("token");var r=pk.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes")["groups"],batcher:this._mixpanel.request_batchers.groups},t)},_E.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},_E.prototype._get_config=function(e){return this._mixpanel.get_config(e)},_E.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},_E.prototype["remove"]=_E.prototype.remove,_E.prototype["set"]=_E.prototype.set,_E.prototype["set_once"]=_E.prototype.set_once,_E.prototype["union"]=_E.prototype.union,_E.prototype["unset"]=_E.prototype.unset,_E.prototype["toString"]=_E.prototype.toString;var kE=function(){};pk.extend(kE.prototype,bE),kE.prototype._init=function(e){this._mixpanel=e},kE.prototype.set=tS(function(e,t,r){var n=this.set_action(e,t);return pk.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel["persistence"].update_referrer_info(document.referrer),n[dE]=pk.extend({},pk.info.people_properties(),n[dE]),this._send_request(n,r)}),kE.prototype.set_once=tS(function(e,t,r){var n=this.set_once_action(e,t);return pk.isObject(e)&&(r=t),this._send_request(n,r)}),kE.prototype.unset=tS(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),kE.prototype.increment=tS(function(e,t,r){var n={},i={};return pk.isObject(e)?(pk.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void fk.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(pk.isUndefined(t)&&(t=1),i[e]=t),n[mE]=i,this._send_request(n,r)}),kE.prototype.append=tS(function(e,t,r){pk.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),kE.prototype.remove=tS(function(e,t,r){pk.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),kE.prototype.union=tS(function(e,t,r){pk.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),kE.prototype.track_charge=tS(function(){fk.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),kE.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},kE.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}fk.error("mixpanel.people.delete_user() requires you to call identify() first")},kE.prototype.toString=function(){return this._mixpanel.toString()+".people"},kE.prototype._send_request=function(e,t){e["$token"]=this._get_config("token"),e["$distinct_id"]=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e["$device_id"]=r),n&&(e["$user_id"]=n),i&&(e["$had_persisted_distinct_id"]=i);var o=pk.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes")["engage"],batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),pk.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),pk.truncate(o,255))},kE.prototype._get_config=function(e){return this._mixpanel.get_config(e)},kE.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},kE.prototype._enqueue=function(e){dE in e?this._mixpanel["persistence"]._add_to_people_queue(dE,e):pE in e?this._mixpanel["persistence"]._add_to_people_queue(pE,e):fE in e?this._mixpanel["persistence"]._add_to_people_queue(fE,e):mE in e?this._mixpanel["persistence"]._add_to_people_queue(mE,e):gE in e?this._mixpanel["persistence"]._add_to_people_queue(gE,e):yE in e?this._mixpanel["persistence"]._add_to_people_queue(yE,e):vE in e?this._mixpanel["persistence"]._add_to_people_queue(vE,e):fk.error("Invalid call to _enqueue():",e)},kE.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=pk.extend({},this._mixpanel["persistence"].load_queue(e)),s=o;pk.isUndefined(o)||!pk.isObject(o)||pk.isEmptyObject(o)||(i._mixpanel["persistence"]._pop_from_people_queue(e,o),i._mixpanel["persistence"].save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel["persistence"]._add_to_people_queue(e,o),pk.isUndefined(r)||r(t,n)}))},kE.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(dE,this.set,e),this._flush_one_queue(pE,this.set_once,n),this._flush_one_queue(fE,this.unset,o,function(e){return pk.keys(e)}),this._flush_one_queue(mE,this.increment,t),this._flush_one_queue(vE,this.union,i);var c=this._mixpanel["persistence"].load_queue(gE);if(!pk.isUndefined(c)&&pk.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(gE,u),pk.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel["persistence"].load_queue(gE),u=c.pop(),a._mixpanel["persistence"].save(),pk.isEmptyObject(u)||a.append(u,l);var d=this._mixpanel["persistence"].load_queue(yE);if(!pk.isUndefined(d)&&pk.isArray(d)&&d.length)for(var p,f=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(yE,p),pk.isUndefined(s)||s(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel["persistence"].load_queue(yE),p=d.pop(),a._mixpanel["persistence"].save(),pk.isEmptyObject(p)||a.remove(p,f)},kE.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},kE.prototype["set"]=kE.prototype.set,kE.prototype["set_once"]=kE.prototype.set_once,kE.prototype["unset"]=kE.prototype.unset,kE.prototype["increment"]=kE.prototype.increment,kE.prototype["append"]=kE.prototype.append,kE.prototype["remove"]=kE.prototype.remove,kE.prototype["union"]=kE.prototype.union,kE.prototype["track_charge"]=kE.prototype.track_charge,kE.prototype["clear_charges"]=kE.prototype.clear_charges,kE.prototype["delete_user"]=kE.prototype.delete_user,kE.prototype["toString"]=kE.prototype.toString;var SE,xE="__mps",CE="__mpso",EE="__mpus",AE="__mpa",OE="__mpap",IE="__mpr",TE="__mpu",ME="$people_distinct_id",RE="__alias",PE="__timers",DE=[xE,CE,EE,AE,OE,IE,TE,ME,RE,PE],LE=function(e){this["props"]={},this.campaign_params_saved=!1,e["persistence_name"]?this.name="mp_"+e["persistence_name"]:this.name="mp_"+e["token"]+"_mixpanel";var t=e["persistence"];"cookie"!==t&&"localStorage"!==t&&(fk.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e["persistence"]="cookie"),"localStorage"===t&&pk.localStorage.is_supported()?this.storage=pk.localStorage:this.storage=pk.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};LE.prototype.properties=function(){var e={};return this.load(),pk.each(this["props"],function(t,r){pk.include(DE,r)||(e[r]=t)}),e},LE.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this["props"]=pk.extend({},e))}},LE.prototype.upgrade=function(){var e,t;this.storage===pk.localStorage?(e=pk.cookie.parse(this.name),pk.cookie.remove(this.name),pk.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===pk.cookie&&(t=pk.localStorage.parse(this.name),pk.localStorage.remove(this.name),t&&this.register_once(t))},LE.prototype.save=function(){this.disabled||this.storage.set(this.name,Uk(this["props"]),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},LE.prototype.load_prop=function(e){return this.load(),this["props"][e]},LE.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},LE.prototype.clear=function(){this.remove(),this["props"]={}},LE.prototype.register_once=function(e,t,r){return!!pk.isObject(e)&&("undefined"===typeof t&&(t="None"),this.expire_days="undefined"===typeof r?this.default_expiry:r,this.load(),pk.each(e,function(e,r){this["props"].hasOwnProperty(r)&&this["props"][r]!==t||(this["props"][r]=e)},this),this.save(),!0)},LE.prototype.register=function(e,t){return!!pk.isObject(e)&&(this.expire_days="undefined"===typeof t?this.default_expiry:t,this.load(),pk.extend(this["props"],e),this.save(),!0)},LE.prototype.unregister=function(e){this.load(),e in this["props"]&&(delete this["props"][e],this.save())},LE.prototype.update_search_keyword=function(e){this.register(pk.info.searchInfo(e))},LE.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:pk.info.referringDomain(e)||"$direct"},"")},LE.prototype.get_referrer_info=function(){return pk.strip_empty_properties({$initial_referrer:this["props"]["$initial_referrer"],$initial_referring_domain:this["props"]["$initial_referring_domain"]})},LE.prototype.update_config=function(e){this.default_expiry=this.expire_days=e["cookie_expiration"],this.set_disabled(e["disable_persistence"]),this.set_cookie_domain(e["cookie_domain"]),this.set_cross_site(e["cross_site_cookie"]),this.set_cross_subdomain(e["cross_subdomain_cookie"]),this.set_secure(e["secure_cookie"])},LE.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},LE.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},LE.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},LE.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},LE.prototype.get_cross_subdomain=function(){return this.cross_subdomain},LE.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},LE.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(dE),o=this._get_or_create_queue(pE),s=this._get_or_create_queue(fE),a=this._get_or_create_queue(mE),c=this._get_or_create_queue(vE),u=this._get_or_create_queue(yE,[]),l=this._get_or_create_queue(gE,[]);r===xE?(pk.extend(i,n),this._pop_from_people_queue(mE,n),this._pop_from_people_queue(vE,n),this._pop_from_people_queue(fE,n)):r===CE?(pk.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(fE,n)):r===EE?pk.each(n,function(e){pk.each([i,o,a,c],function(t){e in t&&delete t[e]}),pk.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===AE?(pk.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(fE,n)):r===TE?(pk.each(n,function(e,t){pk.isArray(e)&&(t in c||(c[t]=[]),pk.each(e,function(e){pk.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(fE,n)):r===IE?(u.push(n),this._pop_from_people_queue(gE,n)):r===OE&&(l.push(n),this._pop_from_people_queue(fE,n)),fk.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),fk.log(t),this.save()},LE.prototype._pop_from_people_queue=function(e,t){var r=this["props"][this._get_queue_key(e)];pk.isUndefined(r)||pk.each(t,function(t,n){e===gE||e===yE?pk.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},LE.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},LE.prototype._get_queue_key=function(e){return e===dE?xE:e===pE?CE:e===fE?EE:e===mE?AE:e===gE?OE:e===yE?IE:e===vE?TE:void fk.error("Invalid queue:",e)},LE.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=pk.isUndefined(t)?{}:t,this["props"][r]||(this["props"][r]=t)},LE.prototype.set_event_timer=function(e,t){var r=this.load_prop(PE)||{};r[e]=t,this["props"][PE]=r,this.save()},LE.prototype.remove_event_timer=function(e){var t=this.load_prop(PE)||{},r=t[e];return pk.isUndefined(r)||(delete this["props"][PE][e],this.save()),r};var BE,NE=function(e,t){throw new Error(e+" not available in this build.")},jE=0,FE=1,UE="mixpanel",zE="base64",qE="json",HE="$device:",$E="strict",WE="fallback",VE="disabled",XE=xi.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,YE=!XE&&-1===sk.indexOf("MSIE")&&-1===sk.indexOf("Mozilla"),GE=null;rk["sendBeacon"]&&(GE=function(){return rk["sendBeacon"].apply(rk,arguments)});var JE={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},KE={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:JE,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:zE,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:jk,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:jk,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:X_,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:VE},ZE=!1,QE=function(){},eA=function(e,t,r){var n,i=r===UE?BE:BE[r];if(i&&SE===jE)n=i;else{if(i&&!pk.isArray(i))return void fk.error("You have already initialized "+r);n=new QE}if(n._cached_groups={},n._init(e,t,r),n["people"]=new kE,n["people"]._init(n),!n.get_config("skip_first_touch_marketing")){var o=pk.info.campaignParams(null),s={},a=!1;pk.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n["people"].set_once(s)}Ai.DEBUG=Ai.DEBUG||n.get_config("debug");var c=SE===jE?"module":"snippet";return xi.dispatchEvent(new xi.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:pk.info}})),!pk.isUndefined(i)&&pk.isArray(i)&&(n._execute_array.call(n["people"],i["people"]),n._execute_array(i)),n};QE.prototype.init=function(e,t,r){if(pk.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==UE){var n=eA(e,t,r);return BE[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},QE.prototype._init=function(e,t,r){t=t||{},this["__loaded"]=!0,this["config"]={};var n={};if(!("api_payload_format"in t)){var i=t["api_host"]||KE["api_host"];i.match(/\.mixpanel\.com/)&&(n["api_payload_format"]=qE)}if(this.hooks={},this.set_config(pk.extend({},KE,n,t,{name:r,token:e,callback_fn:(r===UE?r:UE+"."+r)+"._jsc"})),this.recorderManager=new cE({mixpanelInstance:this,getConfigFunc:pk.bind(this.get_config,this),setConfigFunc:pk.bind(this.set_config,this),getTabIdFunc:pk.bind(this.get_tab_id,this),reportErrorFunc:pk.bind(this.report_error,this),getDistinctIdFunc:pk.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:NE}),this["_jsc"]=jk,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(pk.localStorage.is_supported(!0)&&XE){if(this.init_batchers(),GE&&xi.addEventListener){var o=pk.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);xi.addEventListener("pagehide",function(e){e["persisted"]&&o()}),xi.addEventListener("visibilitychange",function(){"hidden"===nk["visibilityState"]&&o()})}}else this._batch_requests=!1,fk.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),pk.each(this.get_batcher_configs(),function(e){fk.log("Clearing batch queue "+e.queue_key),pk.localStorage.remove(e.queue_key)});this["persistence"]=this["cookie"]=new LE(this["config"]),this.unpersisted_superprops={},this._gdpr_init();var s=pk.UUID();this.get_distinct_id()||this.register_once({distinct_id:HE+s,$device_id:s},""),this.flags=new aE({getFullApiRoute:pk.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes")["flags"]},this),getConfigFunc:pk.bind(this.get_config,this),setConfigFunc:pk.bind(this.set_config,this),getPropertyFunc:pk.bind(this.get_property,this),trackingFunc:pk.bind(this.track,this),loadExtraBundle:NE,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+Mi}),this.flags.init(),this["flags"]=this.flags,this.autocapture=new QC(this),this.autocapture.init(),this._init_tab_id();var a=this.get_config("remote_settings_mode");this.__session_recording_init_promise=a===$E||a===WE?this._fetch_remote_settings(a).then(pk.bind(function(){return this._check_and_start_session_recording()},this)):this._check_and_start_session_recording()},QE.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))fk.log("Tab ID initialization skipped due to disable_persistence config");else if(pk.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;!pk.sessionStorage.get(r)&&pk.sessionStorage.get(t)||pk.sessionStorage.set(t,"$tab-"+pk.UUID()),pk.sessionStorage.set(r,"1"),this.tab_id=pk.sessionStorage.get(t),xi.addEventListener("beforeunload",function(){pk.sessionStorage.remove(r)})}catch(mA){this.report_error("Error initializing tab id",mA)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},QE.prototype.get_tab_id=function(){return this.tab_id||null},QE.prototype._check_and_start_session_recording=eS(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),QE.prototype._start_recording_on_event=function(e,t){return this.recorderManager.startRecordingOnEvent(e,t)},QE.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},QE.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},QE.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},QE.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},QE.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},QE.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},QE.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},QE.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},QE.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},QE.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this["people"].set_once(this["persistence"].get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=pk.info.campaignParams(null);pk.each(e,function(e,t){this.unregister(t)}.bind(this))}},QE.prototype._set_default_superprops=function(){this["persistence"].update_search_keyword(nk.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(pk.info.campaignParams()),this.get_config("save_referrer")&&this["persistence"].update_referrer_info(nk.referrer)},QE.prototype._dom_loaded=function(){pk.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||pk.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},QE.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!ZE)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},QE.prototype._prepare_callback=function(e,t){if(pk.isUndefined(e))return null;if(XE){var r=function(r){e(r,t)};return r}var n=this["_jsc"],i=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+i+"]";return n[i]=function(r){delete n[i],e(r,t)},o},QE.prototype._send_request=function(e,t,r,n){var i=!0;if(YE)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!pk.isFunction(r)&&"string"!==typeof r||(n=r,r=null),r=pk.extend(o,r||{}),XE||(r.method="GET");var a="POST"===r.method,c=GE&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t["verbose"]&&(u=!0),this.get_config("test")&&(t["test"]=1),u&&(t["verbose"]=1),this.get_config("img")&&(t["img"]=1),XE||(n?t["callback"]=n:(u||this.get_config("test"))&&(t["callback"]="(function(){})")),t["ip"]=this.get_config("ip")?1:0,t["_"]=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t["data"]),delete t["data"]),pk.extend(t,this.get_config("api_extra_query_params")),e+="?"+pk.HTTPBuildQuery(t);var l=this;if("img"in t){var h=nk.createElement("img");h.src=e,nk.body.appendChild(h)}else if(c){try{i=GE(e,s)}catch(v){l.report_error(v),i=!1}try{n&&n(i?1:0)}catch(v){l.report_error(v)}}else if(XE)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var p=this.get_config("xhr_headers");if(a&&(p["Content-Type"]="application/x-www-form-urlencoded"),pk.each(p,function(e,t){d.setRequestHeader(t,e)}),r.timeout_ms&&"undefined"!==typeof d.timeout){d.timeout=r.timeout_ms;var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(n)if(u){var t;try{t=pk.JSONDecode(d.responseText)}catch(v){if(l.report_error(v),!r.ignore_json_errors)return;t=d.responseText}n(t)}else n(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,l.report_error(e),n)if(u){var i=d["responseHeaders"]||{};n({status:0,httpStatusCode:d["status"],error:e,retryAfter:i["Retry-After"]})}else n(0)},d.send(s)}catch(v){l.report_error(v),i=!1}else{var m=nk.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=nk.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},QE.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&t.set_config({record_sessions_percent:0})};if(!xi["AbortController"])return fk.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes")["settings"],i={$lib_version:Ai.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=pk.HTTPBuildQuery(i),s=n+"?"+o,a=new AbortController,c=setTimeout(function(){a.abort()},500),u={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:a.signal};return xi["fetch"](s,u).then(function(e){return clearTimeout(c),e["ok"]?e.json():(fk.critical("Network response was not ok"),void r())}).then(function(e){if(e&&e["sdk_config"]&&e["sdk_config"]["config"]){var n=e["sdk_config"]["config"],i={};pk.each(n,function(e,t){KE.hasOwnProperty(t)&&(i[t]=e)}),pk.isEmptyObject(i)?(fk.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(c),fk.critical("Failed to fetch remote settings",e),r()})},QE.prototype._execute_array=function(e){var t,r=[],n=[],i=[];pk.each(e,function(e){e&&(t=e[0],pk.isArray(t)?i.push(e):"function"===typeof e?e.call(this):pk.isArray(e)&&"alias"===t?r.push(e):pk.isArray(e)&&-1!==t.indexOf("track")&&"function"===typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){pk.each(e,function(e){if(pk.isArray(e[0])){var r=t;pk.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},QE.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},QE.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},QE.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=pk.bind(function(e){return new wS(e.queue_key,{libConfig:this["config"],errorReporter:this.get_config("error_reporter"),sendRequestFunc:pk.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:pk.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:pk.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},QE.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,pk.each(this.request_batchers,function(e){e.start()}))},QE.prototype.stop_batch_senders=function(){this._batch_requests=!1,pk.each(this.request_batchers,function(e){e.stop(),e.clear()})},QE.prototype.push=function(e){this._execute_array([e])},QE.prototype.enable=function(e){var t,r,n,i;if("undefined"===typeof e)this._flags.disable_all_events=!1;else{for(t={},r=[],n=0;n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},QE.prototype.disable=function(e){"undefined"===typeof e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},QE.prototype._encode_data_for_request=function(e){var t=Uk(e);return this.get_config("api_payload_format")===zE&&(t=pk.base64Encode(t)),{data:t}},QE.prototype._track_or_batch=function(e,t){var r=pk.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||jk;var a=!0,c=pk.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r),r&&(r=r[0])),r?(fk.log("MIXPANEL REQUEST:"),fk.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},QE.prototype.track=eS(function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(i=this._run_hook("before_track",e,t),null===i)return;e=i[0],t=i[1]}n||"function"!==typeof r||(n=r,r=null),r=r||{};var o=r["transport"];o&&(r.transport=o);var s=r["send_immediately"];if("function"!==typeof n&&(n=jk),pk.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){t=pk.extend({},t),t["token"]=this.get_config("token");var a=this["persistence"].remove_event_timer(e);if(!pk.isUndefined(a)){var c=(new Date).getTime()-a;t["$duration"]=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?pk.info.marketingParams():{};t=pk.extend({},pk.info.properties({mp_loader:this.get_config("mp_loader")}),u,this["persistence"].properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");pk.isArray(l)?pk.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes")["track"],batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}n(0)}}),QE.prototype.set_group=eS(function(e,t,r){pk.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this["people"].set(e,t,r)}),QE.prototype.add_group=eS(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this["people"].union(e,t,r)}),QE.prototype.remove_group=eS(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this["people"].remove(e,t,r)}),QE.prototype.track_with_groups=eS(function(e,t,r,n){var i=pk.extend({},t||{});return pk.each(r,function(e,t){null!==e&&void 0!==e&&(i[t]=e)}),this.track(e,i,n)}),QE.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},QE.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},QE.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||(n=new _E,n._init(this,e,t),this._cached_groups[r]=n),n},QE.prototype.track_pageview=eS(function(e,t){"object"!==typeof e&&(e={}),t=t||{};var r=t["event_name"]||"$mp_web_page_view",n=pk.extend(pk.info.mpPageViewProperties(),pk.info.campaignParams(),pk.info.clickParams()),i=pk.extend({},n,e);return this.track(r,i)}),QE.prototype.track_links=function(){return this._track_dom.call(this,lE,arguments)},QE.prototype.track_forms=function(){return this._track_dom.call(this,hE,arguments)},QE.prototype.time_event=function(e){pk.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this["persistence"].set_event_timer(e,(new Date).getTime())};var tA={persistent:!0},rA=function(e){var t;return t=pk.isObject(e)?e:pk.isUndefined(e)?{}:{days:e},pk.extend({},tA,t)};QE.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=rA(t);n["persistent"]?this["persistence"].register(e,n["days"]):pk.extend(this.unpersisted_superprops,e)}},QE.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=rA(r);i["persistent"]?this["persistence"].register_once(e,t,i["days"]):("undefined"===typeof t&&(t="None"),pk.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},QE.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],t=rA(t),t["persistent"]?this["persistence"].unregister(e):delete this.unpersisted_superprops[e])},QE.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},QE.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return-1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"===typeof e&&0===e.indexOf(HE))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(RE)&&(this.unregister(RE),this.register({distinct_id:e})),this._flags.identify_called=!0,this["people"]._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags()},QE.prototype.reset=function(){this.stop_session_recording(),this["persistence"].clear(),this._flags.identify_called=!1;var e=pk.UUID();this.register_once({distinct_id:HE+e,$device_id:e},""),this._check_and_start_session_recording()},QE.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},QE.prototype.alias=function(e,t){if(e===this.get_property(ME))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return pk.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(RE,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},QE.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},QE.prototype.set_config=function(e){if(pk.isObject(e)){pk.extend(this["config"],e);var t=e["batch_size"];t&&pk.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this["config"]["persistence_name"]=this["config"]["cookie_name"]),this.get_config("disable_persistence")||(this["config"]["disable_persistence"]=this["config"]["disable_cookie"]),this["persistence"]&&this["persistence"].update_config(this["config"]),Ai.DEBUG=Ai.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),pk.isObject(e["hooks"])&&(this.hooks={},pk.each(e["hooks"],function(e,t){if(pk.isFunction(e))this.hooks[t]=[e];else if(pk.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)pk.isFunction(e[r])||fk.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else fk.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},QE.prototype.get_config=function(e){return this["config"][e]},QE.prototype._run_hook=function(e){var t=Z_.call(arguments,1);return pk.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);"undefined"===typeof n?(this.report_error(e+" hook did not return a valid value"),t=null):(pk.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},QE.prototype.get_property=function(e){return this["persistence"].load_prop([e])},QE.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},QE.prototype.toString=function(){var e=this.get_config("name");return e!==UE&&(e=UE+"."+e),e},QE.prototype._event_is_disabled=function(e){return pk.isBlockedUA(sk)||this._flags.disable_all_events||pk.include(this.__disabled_events,e)},QE.prototype._gdpr_init=function(){var e="localStorage"===this.get_config("opt_out_tracking_persistence_type");e&&pk.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!pk.cookie.get("mp_optout")||(pk.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},QE.prototype._gdpr_update_persistence=function(e){var t;if(e&&e["clear_persistence"])t=!0;else{if(!e||!e["enable_persistence"])return;t=!1}this.get_config("disable_persistence")||this["persistence"].disabled===t||this["persistence"].set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},QE.prototype._gdpr_call_func=function(e,t){return t=pk.extend({track:pk.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),pk.localStorage.is_supported()||(t["persistence_type"]="cookie"),e(this.get_config("token"),{track:t["track"],trackEventName:t["track_event_name"],trackProperties:t["track_properties"],persistenceType:t["persistence_type"],persistencePrefix:t["cookie_prefix"],cookieDomain:t["cookie_domain"],cookieExpiration:t["cookie_expiration"],crossSiteCookie:t["cross_site_cookie"],crossSubdomainCookie:t["cross_subdomain_cookie"],secureCookie:t["secure_cookie"],ignoreDnt:t["ignore_dnt"]})},QE.prototype.opt_in_tracking=function(e){e=pk.extend({enable_persistence:!0},e),this._gdpr_call_func(Jk,e),this._gdpr_update_persistence(e)},QE.prototype.opt_out_tracking=function(e){e=pk.extend({clear_persistence:!0,delete_user:!0},e),e["delete_user"]&&this["people"]&&this["people"]._identify_called()&&(this["people"].delete_user(),this["people"].clear_charges()),this._gdpr_call_func(Kk,e),this._gdpr_update_persistence(e)},QE.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(Zk,e)},QE.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Qk,e)},QE.prototype.clear_opt_in_out_tracking=function(e){e=pk.extend({enable_persistence:!0},e),this._gdpr_call_func(nS,e),this._gdpr_update_persistence(e)},QE.prototype.report_error=function(e,t){fk.error.apply(fk.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){fk.error(t)}},QE.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},QE.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(r=this.hooks[e].indexOf(t),-1!==r?this.hooks[e].splice(r,1):fk.log("remove_hook failed. Matching hook was not found"))},QE.prototype["init"]=QE.prototype.init,QE.prototype["reset"]=QE.prototype.reset,QE.prototype["enable"]=QE.prototype.enable,QE.prototype["disable"]=QE.prototype.disable,QE.prototype["time_event"]=QE.prototype.time_event,QE.prototype["track"]=QE.prototype.track,QE.prototype["track_links"]=QE.prototype.track_links,QE.prototype["track_forms"]=QE.prototype.track_forms,QE.prototype["track_pageview"]=QE.prototype.track_pageview,QE.prototype["register"]=QE.prototype.register,QE.prototype["register_once"]=QE.prototype.register_once,QE.prototype["unregister"]=QE.prototype.unregister,QE.prototype["identify"]=QE.prototype.identify,QE.prototype["alias"]=QE.prototype.alias,QE.prototype["name_tag"]=QE.prototype.name_tag,QE.prototype["set_config"]=QE.prototype.set_config,QE.prototype["get_config"]=QE.prototype.get_config,QE.prototype["get_api_host"]=QE.prototype.get_api_host,QE.prototype["get_property"]=QE.prototype.get_property,QE.prototype["get_distinct_id"]=QE.prototype.get_distinct_id,QE.prototype["toString"]=QE.prototype.toString,QE.prototype["opt_out_tracking"]=QE.prototype.opt_out_tracking,QE.prototype["opt_in_tracking"]=QE.prototype.opt_in_tracking,QE.prototype["has_opted_out_tracking"]=QE.prototype.has_opted_out_tracking,QE.prototype["has_opted_in_tracking"]=QE.prototype.has_opted_in_tracking,QE.prototype["clear_opt_in_out_tracking"]=QE.prototype.clear_opt_in_out_tracking,QE.prototype["get_group"]=QE.prototype.get_group,QE.prototype["set_group"]=QE.prototype.set_group,QE.prototype["add_group"]=QE.prototype.add_group,QE.prototype["remove_group"]=QE.prototype.remove_group,QE.prototype["add_hook"]=QE.prototype.add_hook,QE.prototype["remove_hook"]=QE.prototype.remove_hook,QE.prototype["track_with_groups"]=QE.prototype.track_with_groups,QE.prototype["start_batch_senders"]=QE.prototype.start_batch_senders,QE.prototype["stop_batch_senders"]=QE.prototype.stop_batch_senders,QE.prototype["start_session_recording"]=QE.prototype.start_session_recording,QE.prototype["stop_session_recording"]=QE.prototype.stop_session_recording,QE.prototype["pause_session_recording"]=QE.prototype.pause_session_recording,QE.prototype["resume_session_recording"]=QE.prototype.resume_session_recording,QE.prototype["get_session_recording_properties"]=QE.prototype.get_session_recording_properties,QE.prototype["get_session_replay_url"]=QE.prototype.get_session_replay_url,QE.prototype["get_tab_id"]=QE.prototype.get_tab_id,QE.prototype["DEFAULT_API_ROUTES"]=JE,QE.prototype["__get_recorder"]=QE.prototype.__get_recorder,QE.prototype["__get_recording_init_promise"]=QE.prototype.__get_recording_init_promise,LE.prototype["properties"]=LE.prototype.properties,LE.prototype["update_search_keyword"]=LE.prototype.update_search_keyword,LE.prototype["update_referrer_info"]=LE.prototype.update_referrer_info,LE.prototype["get_cross_subdomain"]=LE.prototype.get_cross_subdomain,LE.prototype["clear"]=LE.prototype.clear;var nA={},iA=function(){pk.each(nA,function(e,t){t!==UE&&(BE[t]=e)}),BE["_"]=pk},oA=function(){BE["init"]=function(e,t,r){if(r)return BE[r]||(BE[r]=nA[r]=eA(e,t,r),BE[r]._loaded()),BE[r];var n=BE;nA[UE]?n=nA[UE]:e&&(n=eA(e,t,UE),n._loaded(),nA[UE]=n),BE=n,SE===FE&&(xi[UE]=BE),iA()}},sA=function(){function e(){e.done||(e.done=!0,ZE=!0,YE=!1,pk.each(nA,function(e){e._dom_loaded()}))}function t(){try{nk.documentElement.doScroll("left")}catch(r){return void setTimeout(t,1)}e()}if(nk.addEventListener)"complete"===nk.readyState?e():nk.addEventListener("DOMContentLoaded",e,!1);else if(nk.attachEvent){nk.attachEvent("onreadystatechange",e);var r=!1;try{r=null===xi.frameElement}catch(n){}nk.documentElement.doScroll&&r&&t()}pk.register_event(xi,"load",e,!0)};function aA(e){return NE=e,SE=jE,BE=new QE,oA(),BE["init"](),sA(),BE}function cA(e,t){t()}var uA=aA(cA);const lA="@mixpanelIdentificationData",hA=e=>{let t={};return e?.name?(t["$name"]=e?.name,delete e.name):(t["$first_name"]=e?.first_name,t["$last_name"]=e?.last_name,delete e?.first_name,delete e?.last_name),e?.email&&(t["$email"]=e?.email,delete e?.email),e?.phone&&(t["$phone"]=e?.phone,delete e?.phone),t=Object.assign({},t,e),t},dA={setMixpanelIdentificationData:e=>{(0,h.setLocalStorageItem)(lA,e)},getMixpanelIdentificationData:()=>(0,h.getLocalStorageItem)(lA),hasMixpanelIdentificationData:()=>!!dA.getMixpanelIdentificationData(),init:(e,t)=>{uA.init(e,Object.assign({},t,{ignore_dnt:!0}))},initIdentify:(e,t,r,n)=>{const i=r||dA.getMixpanelIdentificationData(),o=hA(i);if("production"===e&&o){dA.init(t,n);const e=window.location.hostname;let r=`${e}`;o?.company&&(r+=`.${o?.company?.name}`),o?.employee_code&&(r+=`.${o?.employee_code}`),(o?.name||o?.first_name&&o?.last_name)&&(r+=o?.name?`.${o.name}`:`.${o?.first_name}.${o?.last_name}`),uA.identify(r),uA.people.set({...o,company_domain:e})}},trackEvent:(e,t,r)=>{"production"===e&&uA.track(t,r)}};var pA=dA,fA={}}(),__webpack_exports__}()});
39
+ function zr(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return e=>e in t}const qr=Object.assign,Hr=Object.prototype.hasOwnProperty,$r=(e,t)=>Hr.call(e,t),Wr=Array.isArray,Vr=e=>"[object Map]"===Kr(e),Yr=e=>"string"===typeof e,Xr=e=>"symbol"===typeof e,Jr=e=>null!==e&&"object"===typeof e,Gr=Object.prototype.toString,Kr=e=>Gr.call(e),Zr=e=>Kr(e).slice(8,-1),Qr=e=>Yr(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,en=e=>{const t=Object.create(null);return r=>{const n=t[r];return n||(t[r]=e(r))}},tn=/-\w/g,rn=(en(e=>e.replace(tn,e=>e.slice(1).toUpperCase())),/\B([A-Z])/g),nn=(en(e=>e.replace(rn,"-$1").toLowerCase()),en(e=>e.charAt(0).toUpperCase()+e.slice(1))),on=(en(e=>{const t=e?`on${nn(e)}`:"";return t}),(e,t)=>!Object.is(e,t));let sn;let an,cn,un=0;function ln(){un++}function hn(){if(--un>0)return;if(cn){let e=cn;cn=void 0;while(e){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;while(an){let r=an;an=void 0;while(r){const n=r.next;if(r.next=void 0,r.flags&=-9,1&r.flags)try{r.trigger()}catch(t){e||(e=t)}r=n}}if(e)throw e}let dn=!0;const pn=[];function fn(){pn.push(dn),dn=!1}function mn(){const e=pn.pop();dn=void 0===e||e}class gn{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class vn{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!sn||!dn||sn===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==sn)t=this.activeLink=new gn(sn,this),sn.deps?(t.prevDep=sn.depsTail,sn.depsTail.nextDep=t,sn.depsTail=t):sn.deps=sn.depsTail=t,yn(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=sn.depsTail,t.nextDep=void 0,sn.depsTail.nextDep=t,sn.depsTail=t,sn.deps===t&&(sn.deps=e)}return t}trigger(e){this.version++,this.notify(e)}notify(e){ln();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{hn()}}}function yn(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)yn(e)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const wn=new WeakMap,bn=Symbol(""),_n=Symbol(""),kn=Symbol("");function Sn(e,t,r){if(dn&&sn){let t=wn.get(e);t||wn.set(e,t=new Map);let n=t.get(r);n||(t.set(r,n=new vn),n.map=t,n.key=r),n.track()}}function xn(e,t,r,n,i,o){const s=wn.get(e);if(!s)return void 0;const a=e=>{e&&e.trigger()};if(ln(),"clear"===t)s.forEach(a);else{const i=Wr(e),o=i&&Qr(r);if(i&&"length"===r){const e=Number(n);s.forEach((t,r)=>{("length"===r||r===kn||!Xr(r)&&r>=e)&&a(t)})}else switch((void 0!==r||s.has(void 0))&&a(s.get(r)),o&&a(s.get(kn)),t){case"add":i?o&&a(s.get("length")):(a(s.get(bn)),Vr(e)&&a(s.get(_n)));break;case"delete":i||(a(s.get(bn)),Vr(e)&&a(s.get(_n)));break;case"set":Vr(e)&&a(s.get(bn));break}}hn()}function Cn(e,t){const r=wn.get(e);return r&&r.get(t)}function En(e){const t=hi(e);return t===e?t:(Sn(t,"iterate",kn),ui(e)?t:t.map(di))}function An(e){return Sn(e=hi(e),"iterate",kn),e}function On(e,t){return ci(e)?ai(e)?pi(di(t)):pi(t):di(t)}const In={__proto__:null,[Symbol.iterator](){return Tn(this,Symbol.iterator,e=>On(this,e))},concat(...e){return En(this).concat(...e.map(e=>Wr(e)?En(e):e))},entries(){return Tn(this,"entries",e=>(e[1]=On(this,e[1]),e))},every(e,t){return Rn(this,"every",e,t,void 0,arguments)},filter(e,t){return Rn(this,"filter",e,t,e=>e.map(e=>On(this,e)),arguments)},find(e,t){return Rn(this,"find",e,t,e=>On(this,e),arguments)},findIndex(e,t){return Rn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Rn(this,"findLast",e,t,e=>On(this,e),arguments)},findLastIndex(e,t){return Rn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Rn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Dn(this,"includes",e)},indexOf(...e){return Dn(this,"indexOf",e)},join(e){return En(this).join(e)},lastIndexOf(...e){return Dn(this,"lastIndexOf",e)},map(e,t){return Rn(this,"map",e,t,void 0,arguments)},pop(){return Ln(this,"pop")},push(...e){return Ln(this,"push",e)},reduce(e,...t){return Pn(this,"reduce",e,t)},reduceRight(e,...t){return Pn(this,"reduceRight",e,t)},shift(){return Ln(this,"shift")},some(e,t){return Rn(this,"some",e,t,void 0,arguments)},splice(...e){return Ln(this,"splice",e)},toReversed(){return En(this).toReversed()},toSorted(e){return En(this).toSorted(e)},toSpliced(...e){return En(this).toSpliced(...e)},unshift(...e){return Ln(this,"unshift",e)},values(){return Tn(this,"values",e=>On(this,e))}};function Tn(e,t,r){const n=An(e),i=n[t]();return n===e||ui(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.done||(e.value=r(e.value)),e}),i}const Mn=Array.prototype;function Rn(e,t,r,n,i,o){const s=An(e),a=s!==e&&!ui(e),c=s[t];if(c!==Mn[t]){const t=c.apply(e,o);return a?di(t):t}let u=r;s!==e&&(a?u=function(t,n){return r.call(this,On(e,t),n,e)}:r.length>2&&(u=function(t,n){return r.call(this,t,n,e)}));const l=c.call(s,u,n);return a&&i?i(l):l}function Pn(e,t,r,n){const i=An(e),o=i!==e&&!ui(e);let s=r,a=!1;i!==e&&(o?(a=0===n.length,s=function(t,n,i){return a&&(a=!1,t=On(e,t)),r.call(this,t,On(e,n),i,e)}):r.length>3&&(s=function(t,n,i){return r.call(this,t,n,i,e)}));const c=i[t](s,...n);return a?On(e,c):c}function Dn(e,t,r){const n=hi(e);Sn(n,"iterate",kn);const i=n[t](...r);return-1!==i&&!1!==i||!li(r[0])?i:(r[0]=hi(r[0]),n[t](...r))}function Ln(e,t,r=[]){fn(),ln();const n=hi(e)[t].apply(e,r);return hn(),mn(),n}const Bn=zr("__proto__,__v_isRef,__isVue"),Nn=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(Xr));function jn(e){Xr(e)||(e=String(e));const t=hi(this);return Sn(t,"has",e),t.hasOwnProperty(e)}class Fn{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if("__v_skip"===t)return e["__v_skip"];const n=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!n;if("__v_isReadonly"===t)return n;if("__v_isShallow"===t)return i;if("__v_raw"===t)return r===(n?i?ti:ei:i?Qn:Zn).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=Wr(e);if(!n){let e;if(o&&(e=In[t]))return e;if("hasOwnProperty"===t)return jn}const s=Reflect.get(e,t,fi(e)?e:r);if(Xr(t)?Nn.has(t):Bn(t))return s;if(n||Sn(e,"get",t),i)return s;if(fi(s)){const e=o&&Qr(t)?s:s.value;return n&&Jr(e)?oi(e):e}return Jr(s)?n?oi(s):ii(s):s}}class Un extends Fn{constructor(e=!1){super(!1,e)}set(e,t,r,n){let i=e[t];const o=Wr(e)&&Qr(t);if(!this._isShallow){const e=ci(i);if(ui(r)||ci(r)||(i=hi(i),r=hi(r)),!o&&fi(i)&&!fi(r))return e||(i.value=r),!0}const s=o?Number(t)<e.length:$r(e,t),a=Reflect.set(e,t,r,fi(e)?e:n);return e===hi(n)&&(s?on(r,i)&&xn(e,"set",t,r,i):xn(e,"add",t,r)),a}deleteProperty(e,t){const r=$r(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&xn(e,"delete",t,void 0,n),i}has(e,t){const r=Reflect.has(e,t);return Xr(t)&&Nn.has(t)||Sn(e,"has",t),r}ownKeys(e){return Sn(e,"iterate",Wr(e)?"length":bn),Reflect.ownKeys(e)}}class zn extends Fn{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const qn=new Un,Hn=new zn,$n=e=>e,Wn=e=>Reflect.getPrototypeOf(e);function Vn(e,t,r){return function(...n){const i=this["__v_raw"],o=hi(i),s=Vr(o),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=i[e](...n),l=r?$n:t?pi:di;return!t&&Sn(o,"iterate",c?_n:bn),qr(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[l(e[0]),l(e[1])]:l(e),done:t}}})}}function Yn(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Xn(e,t){const r={get(r){const n=this["__v_raw"],i=hi(n),o=hi(r);e||(on(r,o)&&Sn(i,"get",r),Sn(i,"get",o));const{has:s}=Wn(i),a=t?$n:e?pi:di;return s.call(i,r)?a(n.get(r)):s.call(i,o)?a(n.get(o)):void(n!==i&&n.get(r))},get size(){const t=this["__v_raw"];return!e&&Sn(hi(t),"iterate",bn),t.size},has(t){const r=this["__v_raw"],n=hi(r),i=hi(t);return e||(on(t,i)&&Sn(n,"has",t),Sn(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)},forEach(r,n){const i=this,o=i["__v_raw"],s=hi(o),a=t?$n:e?pi:di;return!e&&Sn(s,"iterate",bn),o.forEach((e,t)=>r.call(n,a(e),a(t),i))}};qr(r,e?{add:Yn("add"),set:Yn("set"),delete:Yn("delete"),clear:Yn("clear")}:{add(e){const r=hi(this),n=Wn(r),i=hi(e),o=t||ui(e)||ci(e)?e:i,s=n.has.call(r,o)||on(e,o)&&n.has.call(r,e)||on(i,o)&&n.has.call(r,i);return s||(r.add(o),xn(r,"add",o,o)),this},set(e,r){t||ui(r)||ci(r)||(r=hi(r));const n=hi(this),{has:i,get:o}=Wn(n);let s=i.call(n,e);s||(e=hi(e),s=i.call(n,e));const a=o.call(n,e);return n.set(e,r),s?on(r,a)&&xn(n,"set",e,r,a):xn(n,"add",e,r),this},delete(e){const t=hi(this),{has:r,get:n}=Wn(t);let i=r.call(t,e);i||(e=hi(e),i=r.call(t,e));const o=n?n.call(t,e):void 0,s=t.delete(e);return i&&xn(t,"delete",e,void 0,o),s},clear(){const e=hi(this),t=0!==e.size,r=void 0,n=e.clear();return t&&xn(e,"clear",void 0,void 0,r),n}});const n=["keys","values","entries",Symbol.iterator];return n.forEach(n=>{r[n]=Vn(n,e,t)}),r}function Jn(e,t){const r=Xn(e,t);return(t,n,i)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get($r(r,n)&&n in t?r:t,n,i)}const Gn={get:Jn(!1,!1)},Kn={get:Jn(!0,!1)};const Zn=new WeakMap,Qn=new WeakMap,ei=new WeakMap,ti=new WeakMap;function ri(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ni(e){return e["__v_skip"]||!Object.isExtensible(e)?0:ri(Zr(e))}function ii(e){return ci(e)?e:si(e,!1,qn,Gn,Zn)}function oi(e){return si(e,!0,Hn,Kn,ei)}function si(e,t,r,n,i){if(!Jr(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const o=ni(e);if(0===o)return e;const s=i.get(e);if(s)return s;const a=new Proxy(e,2===o?n:r);return i.set(e,a),a}function ai(e){return ci(e)?ai(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function ci(e){return!(!e||!e["__v_isReadonly"])}function ui(e){return!(!e||!e["__v_isShallow"])}function li(e){return!!e&&!!e["__v_raw"]}function hi(e){const t=e&&e["__v_raw"];return t?hi(t):e}const di=e=>Jr(e)?ii(e):e,pi=e=>Jr(e)?oi(e):e;function fi(e){return!!e&&!0===e["__v_isRef"]}function mi(e){return fi(e)?e.value:e}function gi(e){const t=Wr(e)?new Array(e.length):{};for(const r in e)t[r]=yi(e,r);return t}class vi{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this["__v_isRef"]=!0,this._value=void 0,this._raw=hi(e);let n=!0,i=e;if(!Wr(e)||!Qr(String(t)))do{n=!li(i)||ui(i)}while(n&&(i=i["__v_raw"]));this._shallow=n}get value(){let e=this._object[this._key];return this._shallow&&(e=mi(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&fi(this._raw[this._key])){const t=this._object[this._key];if(fi(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return Cn(this._raw,this._key)}}function yi(e,t,r){return new vi(e,t,r)}function wi(e,t,r){const n=ii({isLoading:!1,isSuccessful:!1,hasError:!1,response:null,error:null});return n.isLoading=!0,n.error=null,e.request(t).then(r).then(e=>{n.response=e,n.isSuccessful=!0}).catch(e=>{n.error=e?.data,n.hasError=!0}).finally(()=>{n.isLoading=!1}),n}function bi(e,t,r){const n=ii({response:null,error:null,isLoading:!1,isSuccessful:!1,hasError:!1}),i=async i=>{const o=e.request(i?{...t,...i}:t);n.isLoading=!0;try{const e=await o.then(r);return n.response=e,n.error=null,n.isSuccessful=!0,n.hasError=!1,e}catch(s){throw n.response=null,n.error=s?.data,n.isSuccessful=!1,n.hasError=!0,new Error(s?.data)}finally{n.isLoading=!1}};return{...gi(n),execute:i}}const _i=(e,t,r)=>{if(Array.isArray(e)){const n=[];return e.forEach(e=>{n.push(_i(e,t,r))}),n}return e.___group_name=h.getObjectProperty(e,t,""),e.___identity=h.getObjectProperty(e,r,""),e};class ki{eventTarget;constructor(e=""){this.eventTarget=document.appendChild(document.createComment(e))}on(e,t){this.eventTarget.addEventListener(e,t)}once(e,t){this.eventTarget.addEventListener(e,t,{once:!0})}off(e,t){this.eventTarget.removeEventListener(e,t)}emit(e,t){const r=new CustomEvent(e,{detail:t});return this.eventTarget.dispatchEvent(r)}}const Si=new ki("shr-event-bus");var xi=__webpack_require__(2242),Ci=__webpack_require__.n(xi);class Ei{pusher;setupPusherConnection(e,t){this.pusher=new(Ci())(e,t)}}var Ai,Oi=new Ei;if("undefined"===typeof window){var Ii={hostname:""};Ai={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Ii,referrer:""},screen:{width:0,height:0},location:Ii,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else Ai=window;var Ti={DEBUG:!1,LIB_VERSION:"2.76.0"},Mi="__mp_targeting",Ri="__mp_recorder",Pi="__MP_RECORDER_FILENAME__",Di="__MP_TARGETING_FILENAME__";function Li(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bi(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(u){return void r(u)}a.done?t(c):Promise.resolve(c).then(n,i)}function Ni(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){Bi(o,n,i,s,a,"next",e)}function a(e){Bi(o,n,i,s,a,"throw",e)}s(void 0)})}}function ji(e,t,r){return ji=Ki()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=Function.bind.apply(e,n),o=new i;return r&&Yi(o,r.prototype),o},ji.apply(null,arguments)}function Fi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ui(e,t,r){return t&&Fi(e.prototype,t),e}function zi(){return zi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zi.apply(this,arguments)}function qi(e){return qi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qi(e)}function Hi(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yi(e,t)}function $i(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Wi(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function Vi(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function Yi(e,t){return Yi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yi(e,t)}function Xi(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ji(e,t){if(e){if("string"===typeof e)return Li(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Li(e,t):void 0}}function Gi(e){var t="function"===typeof Map?new Map:void 0;return Gi=function(e){if(null===e||!Wi(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ji(e,arguments,qi(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Yi(r,e)},Gi(e)}function Ki(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(gk){}return(Ki=function(){return!!e})()}function Zi(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Ji(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qi(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return c([e,t])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function eo(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var to,ro=Object.defineProperty,no=function(e,t,r){return t in e?ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},io=function(e,t,r){return no(e,"symbol"!==("undefined"===typeof t?"undefined":Xi(t))?t+"":t,r)},oo=Object.defineProperty,so=function(e,t,r){return t in e?oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ao=function(e,t,r){return so(e,"symbol"!==("undefined"===typeof t?"undefined":Xi(t))?t+"":t,r)},co=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(co||{}),uo={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},lo={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ho={},po=function(){return!!globalThis.Zone};function fo(e){if(ho[e])return ho[e];var t=globalThis[e],r=t.prototype,n=e in uo?uo[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in lo?lo[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"===typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!po())return ho[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?ho[e]=u:r}catch(l){return r}}var mo={};function go(e,t,r){var n,i=e+"."+String(r);if(mo[i])return mo[i].call(t);var o=fo(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(mo[i]=s,s.call(t)):t[r]}var vo={};function yo(e,t,r){var n=e+"."+String(r);if(vo[n])return vo[n].bind(t);var i=fo(e),o=i[r];return"function"!==typeof o?t[r]:(vo[n]=o,o.bind(t))}function wo(e){return go("Node",e,"childNodes")}function bo(e){return go("Node",e,"parentNode")}function _o(e){return go("Node",e,"parentElement")}function ko(e){return go("Node",e,"textContent")}function So(e,t){return yo("Node",e,"contains")(t)}function xo(e){return yo("Node",e,"getRootNode")()}function Co(e){return e&&"host"in e?go("ShadowRoot",e,"host"):null}function Eo(e){return e.styleSheets}function Ao(e){return e&&"shadowRoot"in e?go("Element",e,"shadowRoot"):null}function Oo(e,t){return go("Element",e,"querySelector")(t)}function Io(e,t){return go("Element",e,"querySelectorAll")(t)}function To(){return fo("MutationObserver").constructor}function Mo(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var Ro={childNodes:wo,parentNode:bo,parentElement:_o,textContent:ko,contains:So,getRootNode:xo,host:Co,styleSheets:Eo,shadowRoot:Ao,querySelector:Oo,querySelectorAll:Io,mutationObserver:To,patch:Mo};function Po(e){return e.nodeType===e.ELEMENT_NODE}function Do(e){var t=e&&"host"in e&&"mode"in e&&Ro.host(e)||null;return Boolean(t&&"shadowRoot"in t&&Ro.shadowRoot(t)===e)}function Lo(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Bo(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function No(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function jo(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,function(e){return Fo(e,r)}).join("");return Bo(n)}catch(i){return null}}function Fo(e,t){if(zo(e)){var r;try{r=jo(e.styleSheet)||No(e)}catch(i){r=e.cssText}return e.styleSheet.href?rs(r,e.styleSheet.href):r}var n=e.cssText;return qo(e)&&e.selectorText.includes(":")&&(n=Uo(n)),t?rs(n,t):n}function Uo(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function zo(e){return"styleSheet"in e}function qo(e){return"selectorText"in e}var Ho=function(){function e(){ao(this,"idNodeMap",new Map),ao(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function $o(){return new Ho}function Wo(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&Vo(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function Vo(e){return e.toLowerCase()}var Yo="__rrweb_original__";function Xo(e){var t=e.getContext("2d");if(!t)return!0;for(var r=50,n=0;n<e.width;n+=r)for(var i=0;i<e.height;i+=r){var o=t.getImageData,s=Yo in o?o[Yo]:o,a=new Uint32Array(s.call(t,n,i,Math.min(r,e.width-n),Math.min(r,e.height-i)).data.buffer);if(a.some(function(e){return 0!==e}))return!1}return!0}function Jo(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Vo(t):null}function Go(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(s){return null}var n,i=/\.([0-9a-z]+)(?:$)/i,o=r.pathname.match(i);return null!=(n=null==o?void 0:o[1])?n:null}function Ko(e){var t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}var Zo=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Qo=/^(?:[a-z+]+:)?\/\//i,es=/^www\..*/i,ts=/^(data:)([^,]*),(.*)/i;function rs(e,t){return(e||"").replace(Zo,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;if(Qo.test(a)||es.test(a))return"url("+c+a+c+")";if(ts.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+(Ko(t)+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h,d=Zi(l);!(h=d()).done;){var p=h.value;"."!==p&&(".."===p?u.pop():u.push(p))}return"url("+c+u.join("/")+c+")"})}function ns(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function is(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"===typeof e)for(var s=ns(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"===typeof n[c].textContent){for(var u=ns(n[c].textContent,r),l=100,h=3;h<u.length;h++)if(!u[h].match(/[a-zA-Z0-9]/)&&-1===u.indexOf(u.substring(0,h),1))break;for(;h<u.length;h++){var d=u.substring(0,h),p=s.split(d),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)f=s.indexOf(d,1);else if(1===p.length){if(d=d.substring(0,d.length-1),p=s.split(d),p.length<=1)return i.push(e),i;h=l+1}else h===u.length-1&&(f=s.indexOf(d));if(p.length>=2&&h>l){var m=n[c-1].textContent;if(m&&"string"===typeof m){var g=ns(m).length;f=s.indexOf(d,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var v=Math.floor(f/a);v>0&&v<e.length;){if(o+=1,o>50*n.length)return i.push(e),i;var y=ns(e.substring(0,v),r);if(y.length===f){i.push(e.substring(0,v)),e=e.substring(v),s=s.substring(f);break}y.length<f?v+=Math.max(1,Math.floor((f-y.length)/a)):v-=Math.max(1,Math.floor((y.length-f)*a))}break}}}return i.push(e),i}function os(e,t){return is(e,t).join("/* rr_split */")}var ss,as,cs=1,us=new RegExp("[^a-z0-9-_:]"),ls=-2;function hs(){return cs++}function ds(e){if($i(e,HTMLFormElement))return"form";var t=Vo(e.tagName);return us.test(t)?"div":t}var ps=/^[^ \t\n\r\u000c]+/,fs=/^[, \t\n\r\u000c]+/;function ms(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}var i=[];while(1){if(n(fs),r>=t.length)break;var o=n(ps);if(","===o.slice(-1))o=vs(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=vs(e,o);var a=!1;while(1){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){r+=1,i.push((o+s).trim());break}"("===c&&(a=!0)}s+=c,r+=1}}}return i.join(", ")}var gs=new WeakMap;function vs(e,t){return t&&""!==t.trim()?ws(e,t):t}function ys(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function ws(e,t){var r=gs.get(e);if(r||(r=e.createElement("a"),gs.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function bs(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?vs(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?ms(e,n):"style"===r?rs(n,ws(e)):"object"===t&&"data"===r?vs(e,n):n:vs(e,n):n}function _s(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ks(e,t,r){try{if("string"===typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(o){}return!1}function Ss(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&Ss(Ro.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&Ss(Ro.parentNode(e),t,r)}function xs(e,t,r,n){var i;if(Po(e)){if(i=e,!Ro.childNodes(i).length)return!1}else{if(null===Ro.parentElement(e))return!1;i=Ro.parentElement(e)}try{if("string"===typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(Ss(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(o){}return!1}function Cs(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(c){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}function Es(e,t,r){var n,i=!1;try{n=e.sheet}catch(s){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}function As(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskTextFn,h=t.maskInputFn,d=t.dataURLOptions,p=void 0===d?{}:d,f=t.inlineImages,m=t.recordCanvas,g=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,w=t.cssCaptured,b=void 0!==w&&w,_=Os(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:co.Document,childNodes:[],compatMode:e.compatMode}:{type:co.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:co.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return Ts(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:p,inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y,rootId:_});case e.TEXT_NODE:return Is(e,{doc:r,needsMask:s,maskTextFn:l,rootId:_,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:co.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:co.Comment,textContent:Ro.textContent(e)||"",rootId:_};default:return!1}}function Os(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}function Is(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=Ro.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":o||(c=Ro.textContent(e),u&&c&&(c=rs(c,ws(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,Ro.parentElement(e)):c.replace(/[\S]/g,"*")),{type:co.Text,textContent:c||"",rootId:i}}function Ts(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,d=t.inlineImages,p=t.recordCanvas,f=t.keepIframeSrcFn,m=t.newlyAddedElement,g=void 0!==m&&m,v=t.rootId,y=ks(e,i,o),w=ds(e),b={},_=e.attributes.length,k=0;k<_;k++){var S=e.attributes[k];_s(w,S.name,S.value)||(b[S.name]=bs(n,w,Vo(S.name),S.value))}if("link"===w&&s){var x=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),C=null;x&&(C=jo(x)),C&&(delete b.rel,delete b.href,b._cssText=C)}if("style"===w&&e.sheet){var E=jo(e.sheet);E&&(e.childNodes.length>1&&(E=os(E,e)),b._cssText=E)}if("input"===w||"textarea"===w||"select"===w){var A=e.value,O=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&A?b.value=Wo({element:e,type:Jo(e),tagName:w,value:A,maskInputOptions:c,maskInputFn:u}):O&&(b.checked=O)}if("option"===w&&(e.selected&&!c["select"]?b.selected=!0:delete b.selected),"dialog"===w&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===w&&p)if("2d"===e.__context)Xo(e)||(b.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var I=e.toDataURL(h.type,h.quality),T=n.createElement("canvas");T.width=e.width,T.height=e.height;var M=T.toDataURL(h.type,h.quality);I!==M&&(b.rr_dataURL=I)}if("img"===w&&d){ss||(ss=n.createElement("canvas"),as=ss.getContext("2d"));var R=e,P=R.currentSrc||R.getAttribute("src")||"<unknown-src>",D=R.crossOrigin,L=function(){R.removeEventListener("load",L);try{ss.width=R.naturalWidth,ss.height=R.naturalHeight,as.drawImage(R,0,0),b.rr_dataURL=ss.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==R.crossOrigin)return R.crossOrigin="anonymous",void(R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L));console.warn("Cannot inline img src="+P+"! Error: "+e)}"anonymous"===R.crossOrigin&&(D?b.crossOrigin=D:R.removeAttribute("crossorigin"))};R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L)}if("audio"===w||"video"===w){var B=b;B.rr_mediaState=e.paused?"paused":"played",B.rr_mediaCurrentTime=e.currentTime,B.rr_mediaPlaybackRate=e.playbackRate,B.rr_mediaMuted=e.muted,B.rr_mediaLoop=e.loop,B.rr_mediaVolume=e.volume}if(g||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),y){var N=e.getBoundingClientRect(),j=N.width,F=N.height;b={class:b.class,rr_width:j+"px",rr_height:F+"px"}}"iframe"!==w||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(w)&&(r=!0)}catch(U){}return{type:co.Element,tagName:w,attributes:b,childNodes:[],isSVG:ys(e)||void 0,needBlock:y,rootId:v,isCustom:r}}function Ms(e){return void 0===e||null===e?"":e.toLowerCase()}function Rs(e,t){if(t.comment&&e.type===co.Comment)return!0;if(e.type===co.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"===typeof e.attributes.href&&"js"===Go(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Ms(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Ms(e.attributes.name)||"icon"===Ms(e.attributes.rel)||"apple-touch-icon"===Ms(e.attributes.rel)||"shortcut icon"===Ms(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Ms(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ms(e.attributes.property).match(/^(og|twitter|fb):/)||Ms(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Ms(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Ms(e.attributes.name)||"googlebot"===Ms(e.attributes.name)||"bingbot"===Ms(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Ms(e.attributes.name)||"generator"===Ms(e.attributes.name)||"framework"===Ms(e.attributes.name)||"publisher"===Ms(e.attributes.name)||"progid"===Ms(e.attributes.name)||Ms(e.attributes.property).match(/^article:/)||Ms(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Ms(e.attributes.name)||"yandex-verification"===Ms(e.attributes.name)||"csrf-token"===Ms(e.attributes.name)||"p:domain_verify"===Ms(e.attributes.name)||"verify-v1"===Ms(e.attributes.name)||"verification"===Ms(e.attributes.name)||"shopify-checkout-api-token"===Ms(e.attributes.name)))return!0}}return!1}function Ps(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,d=t.maskInputOptions,p=void 0===d?{}:d,f=t.maskTextFn,m=t.maskInputFn,g=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,w=t.inlineImages,b=void 0!==w&&w,_=t.recordCanvas,k=void 0!==_&&_,S=t.onSerialize,x=t.onIframeLoad,C=t.iframeLoadTimeout,E=void 0===C?5e3:C,A=t.onStylesheetLoad,O=t.stylesheetLoadTimeout,I=void 0===O?5e3:O,T=t.keepIframeSrcFn,M=void 0===T?function(){return!1}:T,R=t.newlyAddedElement,P=void 0!==R&&R,D=t.cssCaptured,L=void 0!==D&&D,B=t.needsMask,N=t.preserveWhiteSpace,j=void 0===N||N;if(!B){var F=void 0===B;B=xs(e,s,a,F)}var U,z=As(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:M,newlyAddedElement:P,cssCaptured:L});if(!z)return console.warn(e,"not serialized"),null;U=n.hasNode(e)?n.getId(e):Rs(z,g)||!j&&z.type===co.Text&&!z.textContent.replace(/^\s+|\s+$/gm,"").length?ls:hs();var q=Object.assign(z,{id:U});if(n.add(e,q),U===ls)return null;S&&S(e);var H=!u;if(q.type===co.Element){H=H&&!q.needBlock,delete q.needBlock;var $=Ro.shadowRoot(e);$&&Lo($)&&(q.isShadowHost=!0)}if((q.type===co.Document||q.type===co.Element)&&H){g.headWhitespace&&q.type===co.Element&&"head"===q.tagName&&(j=!1);var W={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M,cssCaptured:!1};if(q.type===co.Element&&"textarea"===q.tagName&&void 0!==q.attributes.value);else{q.type===co.Element&&void 0!==q.attributes._cssText&&"string"===typeof q.attributes._cssText&&(W.cssCaptured=!0);for(var V,Y=Zi(Array.from(Ro.childNodes(e)));!(V=Y()).done;){var X=V.value,J=Ps(X,W);J&&q.childNodes.push(J)}}var G=null;if(Po(e)&&(G=Ro.shadowRoot(e)))for(var K,Z=Zi(Array.from(Ro.childNodes(G)));!(K=Z()).done;){var Q=K.value,ee=Ps(Q,W);ee&&(Lo(G)&&(ee.isShadow=!0),q.childNodes.push(ee))}}var te=Ro.parentNode(e);return te&&Do(te)&&Lo(te)&&(q.isShadow=!0),q.type===co.Element&&"iframe"===q.tagName&&Cs(e,function(){var t=e.contentDocument;if(t&&x){var r=Ps(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M});r&&x(e,r)}},E),q.type===co.Element&&"link"===q.tagName&&"string"===typeof q.attributes.rel&&("stylesheet"===q.attributes.rel||"preload"===q.attributes.rel&&"string"===typeof q.attributes.href&&"css"===Go(q.attributes.href))&&Es(e,function(){if(A){var t=Ps(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M});t&&A(e,t)}},I),q}function Ds(e,t){var r=t||{},n=r.mirror,i=void 0===n?new Ho:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,c=void 0===a?null:a,u=r.maskTextClass,l=void 0===u?"rr-mask":u,h=r.maskTextSelector,d=void 0===h?null:h,p=r.inlineStylesheet,f=void 0===p||p,m=r.inlineImages,g=void 0!==m&&m,v=r.recordCanvas,y=void 0!==v&&v,w=r.maskAllInputs,b=void 0!==w&&w,_=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,x=void 0!==S&&S,C=r.dataURLOptions,E=r.preserveWhiteSpace,A=r.onSerialize,O=r.onIframeLoad,I=r.iframeLoadTimeout,T=r.onStylesheetLoad,M=r.stylesheetLoadTimeout,R=r.keepIframeSrcFn,P=void 0===R?function(){return!1}:R,D=!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===b?{password:!0}:b,L=!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x;return Ps(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:D,maskTextFn:_,maskInputFn:k,slimDOMOptions:L,dataURLOptions:C,inlineImages:g,recordCanvas:y,preserveWhiteSpace:E,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:I,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:P,newlyAddedElement:!1})}function Ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Bs(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return $i(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var Ns={exports:{}},js=String,Fs=function(){return{isColorSupported:!1,reset:js,bold:js,dim:js,italic:js,underline:js,inverse:js,hidden:js,strikethrough:js,black:js,red:js,green:js,yellow:js,blue:js,magenta:js,cyan:js,white:js,gray:js,bgBlack:js,bgRed:js,bgGreen:js,bgYellow:js,bgBlue:js,bgMagenta:js,bgCyan:js,bgWhite:js}};Ns.exports=Fs(),Ns.exports.createColors=Fs;var Us=Ns.exports,zs={},qs=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),Hs=Bs(qs),$s=Us,Ws=Hs,Vs=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof i&&("number"===typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}Hi(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=$s.isColorSupported),Ws&&e&&(r=Ws(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=$s.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Gi(Error)),Ys=Vs;Vs.default=Vs;var Xs={};Xs.isClean=Symbol("isClean"),Xs.my=Symbol("my");var Js={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Gs(e){return e[0].toUpperCase()+e.slice(1)}var Ks=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if("undefined"!==typeof e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&(n=e.raws[t],"undefined"!==typeof n))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Js[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Gs(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Js[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!==typeof t))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!==typeof t))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Zs=Ks;Ks.default=Ks;var Qs=Zs;function ea(e,t){var r=new Qs(t);r.stringify(e)}var ta=ea;ea.default=ea;var ra=Xs.isClean,na=Xs.my,ia=Ys,oa=Zs,sa=ta;function aa(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o="undefined"===typeof i?"undefined":Xi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return aa(e,r)}):("object"===o&&null!==i&&(i=aa(i)),r[n]=i)}return r}var ca=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[ra]=!1,this[na]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Zi(e[t]);!(r=n()).done;){var i=r.value;"function"===typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=aa(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new ia(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[ra]){this[ra]=!1;var e=this;while(e=e.parent)e[ra]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"===typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new oa;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Zi(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Xi(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=sa),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Ui(e,[{key:"proxyOf",get:function(){return this}}]),e}(),ua=ca;ca.default=ca;var la=ua,ha=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=zi({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Hi(t,e),Ui(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(la),da=ha;ha.default=ha;var pa="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",fa=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=pa[64*Math.random()|0];return t},ma={nanoid:fa},ga=Hs.SourceMapConsumer,va=Hs.SourceMapGenerator,ya=Hs.existsSync,wa=Hs.readFileSync,ba=Hs.dirname,_a=Hs.join;function ka(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var Sa=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ba(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new ga(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return ka(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&("string"===typeof e.mappings||"string"===typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=ba(e),ya(e))return this.mapFile=e,wa(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if($i(t,ga))return va.fromSourceMap(t).toString();if($i(t,va))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=_a(ba(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),xa=Sa;Sa.default=Sa;var Ca=Hs.SourceMapConsumer,Ea=Hs.SourceMapGenerator,Aa=Hs.fileURLToPath,Oa=Hs.pathToFileURL,Ia=Hs.isAbsolute,Ta=Hs.resolve,Ma=ma.nanoid,Ra=Hs,Pa=Ys,Da=xa,La=Symbol("fromOffsetCache"),Ba=Boolean(Ca&&Ea),Na=Boolean(Ta&&Ia),ja=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Xi(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Na||/^\w+:\/\//.test(t.from)||Ia(t.from)?this.file=t.from:this.file=Ta(t.from)),Na&&Ba){var r=new Da(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Ma(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===("undefined"===typeof t?"undefined":Xi(t))){var a=t,c=r;if("number"===typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"===typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return i=d?new Pa(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new Pa(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Oa&&(i.input.url=Oa(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[La])r=this[La];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[La]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ta(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"===typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Ia(a.source)?Oa(a.source):new URL(a.source,this.map.consumer().sourceRoot||Oa(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Aa)throw new Error("file: protocol is not available in this PostCSS build");c.file=Aa(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=zi({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ui(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Fa=ja;ja.default=ja,Ra&&Ra.registerInput&&Ra.registerInput(ja);var Ua=Hs.SourceMapConsumer,za=Hs.SourceMapGenerator,qa=Hs.dirname,Ha=Hs.relative,$a=Hs.resolve,Wa=Hs.sep,Va=Hs.pathToFileURL,Ya=Fa,Xa=Boolean(Ua&&za),Ja=Boolean(qa&&$a&&Ha&&Wa),Ga=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"===typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"===typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Zi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||qa(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Ua(r.text),o.sourcesContent&&(o.sourcesContent=null)):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Ja&&Xa&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=za.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new za({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new za({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),t=a.match(/\n/g),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?qa(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=qa($a(r,this.mapOpts.annotation)));var n=Ha(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Ya(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Va){var r=Va(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Wa&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ka=Ga,Za=ua,Qa=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Hi(t,e),t}(Za),ec=Qa;Qa.default=Qa;var tc,rc,nc,ic,oc=Xs.isClean,sc=Xs.my,ac=da,cc=ec,uc=ua;function lc(e){return e.map(function(e){return e.nodes&&(e.nodes=lc(e.nodes)),delete e.source,e})}function hc(e){if(e[oc]=!1,e.proxyOf.nodes)for(var t,r=Zi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;hc(n)}}var dc=function(e){function t(){return e.apply(this,arguments)||this}Hi(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Zi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Zi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Zi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;this.indexes[n]+=1}return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"===typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"===typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"===typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Zi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Zi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=lc(tc(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Zi(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=Zi(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new ac(e)]}else if(e.selector)e=[new rc(e)];else if(e.name)e=[new nc(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new cc(e)]}var l=e.map(function(e){return e[sc]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[oc]&&hc(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=Zi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Zi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Zi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Ui(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(uc);dc.registerParse=function(e){tc=e},dc.registerRule=function(e){rc=e},dc.registerAtRule=function(e){nc=e},dc.registerRoot=function(e){ic=e};var pc=dc;dc.default=dc,dc.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,nc.prototype):"rule"===e.type?Object.setPrototypeOf(e,rc.prototype):"decl"===e.type?Object.setPrototypeOf(e,ac.prototype):"comment"===e.type?Object.setPrototypeOf(e,cc.prototype):"root"===e.type&&Object.setPrototypeOf(e,ic.prototype),e[sc]=!0,e.nodes&&e.nodes.forEach(function(e){dc.rebuild(e)})};var fc,mc,gc=pc,vc=function(e){function t(t){var r;return r=e.call(this,zi({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Hi(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new fc(new mc,this,e);return t.stringify()},t}(gc);vc.registerLazyResult=function(e){fc=e},vc.registerProcessor=function(e){mc=e};var yc=vc;vc.default=vc;var wc=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),bc=wc;wc.default=wc;var _c=bc,kc=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new _c(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Ui(e,[{key:"content",get:function(){return this.css}}]),e}(),Sc=kc;kc.default=kc;var xc="'".charCodeAt(0),Cc='"'.charCodeAt(0),Ec="\\".charCodeAt(0),Ac="/".charCodeAt(0),Oc="\n".charCodeAt(0),Ic=" ".charCodeAt(0),Tc="\f".charCodeAt(0),Mc="\t".charCodeAt(0),Rc="\r".charCodeAt(0),Pc="[".charCodeAt(0),Dc="]".charCodeAt(0),Lc="(".charCodeAt(0),Bc=")".charCodeAt(0),Nc="{".charCodeAt(0),jc="}".charCodeAt(0),Fc=";".charCodeAt(0),Uc="*".charCodeAt(0),zc=":".charCodeAt(0),qc="@".charCodeAt(0),Hc=/[\t\n\f\r "#'()/;[\\\]{}]/g,$c=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Wc=/.[\r\n"'(/\\]/,Vc=/[\da-f]/i,Yc=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case Oc:case Ic:case Mc:case Rc:case Tc:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===Ic||r===Oc||r===Mc||r===Rc||r===Tc);h=["space",d.slice(m,n)],m=n-1;break;case Pc:case Dc:case Nc:case jc:case zc:case Fc:case Bc:var y=String.fromCharCode(r);h=[y,y,m];break;case Lc:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==xc&&l!==Cc&&l!==Ic&&l!==Oc&&l!==Mc&&l!==Tc&&l!==Rc){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===Ec)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||Wc.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case xc:case Cc:i=r===xc?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===Ec)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case qc:Hc.lastIndex=m+1,Hc.test(d),n=0===Hc.lastIndex?d.length-1:Hc.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case Ec:n=m,s=!0;while(d.charCodeAt(n+1)===Ec)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==Ac&&r!==Ic&&r!==Oc&&r!==Mc&&r!==Rc&&r!==Tc&&(n+=1,Vc.test(d.charAt(n)))){while(Vc.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===Ic&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===Ac&&d.charCodeAt(m+1)===Uc?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):($c.lastIndex=m+1,$c.test(d),n=0===$c.lastIndex?d.length-1:$c.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Xc=pc,Jc=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Hi(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Xc),Gc=Jc;Jc.default=Jc,Xc.registerAtRule(Jc);var Kc,Zc,Qc=pc,eu=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Hi(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Zi(i);!(o=s()).done;){var a=o.value;a.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new Kc(new Zc,this,e);return t.stringify()},t}(Qc);eu.registerLazyResult=function(e){Kc=e},eu.registerProcessor=function(e){Zc=e};var tu=eu;eu.default=eu,Qc.registerRoot(eu);var ru={comma:function(e){return ru.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return ru.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Zi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},nu=ru;ru.default=ru;var iu=pc,ou=nu,su=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Hi(t,e),Ui(t,[{key:"selectors",get:function(){return ou.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(iu),au=su;su.default=su,iu.registerRule(su);var cu=da,uu=Yc,lu=ec,hu=Gc,du=tu,pu=au,fu={empty:!0,space:!0};function mu(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var gu=function(){function e(e){this.input=e,this.root=new du,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new hu;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){n=a.length-1,r=a[n];while(r&&"space"===r[0])r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Zi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new lu;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=uu(this.input)},t.decl=function(e,t){var r=new cu;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||mu(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new pu;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",fu[a]||fu[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new pu;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),vu=gu,yu=pc,wu=vu,bu=Fa;function _u(e,t){var r=new bu(e,t),n=new wu(r);try{n.parse()}catch(i){throw i}return n.root}var ku=_u;_u.default=_u,yu.registerParse(_u);var Su=Xs.isClean,xu=Xs.my,Cu=Ka,Eu=ta,Au=pc,Ou=yc,Iu=Sc,Tu=ku,Mu=tu,Ru={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Pu={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Du={Once:!0,postcssPlugin:!0,prepare:!0},Lu=0;function Bu(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&"function"===typeof e.then}function Nu(e){var t=!1,r=Ru[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Lu,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Lu,r+"Exit"]:[r,r+"Exit"]}function ju(e){var t;return t="document"===e.type?["Document",Lu,"DocumentExit"]:"root"===e.type?["Root",Lu,"RootExit"]:Nu(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Fu(e){return e[Su]=!1,e.nodes&&e.nodes.forEach(function(e){return Fu(e)}),e}var Uu={},zu=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Xi(r))||null===r||"root"!==r.type&&"document"!==r.type)if($i(r,e)||$i(r,Iu))i=Fu(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Tu;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[xu]&&Au.rebuild(i)}else i=Fu(r);this.result=new Iu(t,i,n),this.helpers=zi({},Uu,{postcss:Uu,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&e.prepare?zi({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Zi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Xi(i)))for(var o in i){if(!Pu[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Du[o])if("object"===Xi(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"===typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return Ni(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return Qi(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!Bu(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[Su])return[3,14];o[Su]=!0,s=[ju(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Bu(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return Qi(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Zi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,eo(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===("undefined"===typeof e?"undefined":Xi(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Bu(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"===typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Eu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Cu(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Zi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Bu(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[Su])i[Su]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Zi(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Zi(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Bu(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[Su])return a[Su]=!0,void e.push(ju(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===Lu)return void(r.nodes&&r.nodes.length&&(r[Su]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Su]=!0;for(var r,n=Nu(e),i=Zi(n);!(r=i()).done;){var o=r.value;if(o===Lu)e.nodes&&e.each(function(e){e[Su]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ui(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();zu.registerPostcss=function(e){Uu=e};var qu=zu;zu.default=zu,Mu.registerLazyResult(zu),Ou.registerLazyResult(zu);var Hu=Ka,$u=ta,Wu=ku,Vu=Sc,Yu=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=$u;this.result=new Vu(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Hu(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ui(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Wu;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Xu=Yu;Yu.default=Yu;var Ju=Xu,Gu=qu,Ku=yc,Zu=tu,Qu=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Zi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Xi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Xi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Xi(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Gu(this,e,t):new Ju(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),el=Qu;Qu.default=Qu,Zu.registerProcessor(Qu),Ku.registerProcessor(Qu);var tl=da,rl=xa,nl=ec,il=Gc,ol=Fa,sl=tu,al=au;function cl(e,t){if(Array.isArray(e))return e.map(function(e){return cl(e)});var r=e.inputs,n=Vi(e,["inputs"]);if(r){t=[];for(var i,o=Zi(r);!(i=o()).done;){var s=i.value,a=zi({},s,{__proto__:ol.prototype});a.map&&(a.map=zi({},a.map,{__proto__:rl.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return cl(e,t)})),n.source){var c=n.source,u=c.inputId,l=Vi(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new sl(n);if("decl"===n.type)return new tl(n);if("rule"===n.type)return new al(n);if("comment"===n.type)return new nl(n);if("atrule"===n.type)return new il(n);throw new Error("Unknown node type: "+e.type)}var ul=cl;cl.default=cl;var ll=Ys,hl=da,dl=qu,pl=pc,fl=el,ml=ta,gl=ul,vl=yc,yl=bc,wl=ec,bl=Gc,_l=Sc,kl=Fa,Sl=ku,xl=nu,Cl=au,El=tu,Al=ua;function Ol(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new fl(t)}Ol.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new fl).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Ol([i(r)]).process(e,t)},i},Ol.stringify=ml,Ol.parse=Sl,Ol.fromJSON=gl,Ol.list=xl,Ol.comment=function(e){return new wl(e)},Ol.atRule=function(e){return new bl(e)},Ol.decl=function(e){return new hl(e)},Ol.rule=function(e){return new Cl(e)},Ol.root=function(e){return new El(e)},Ol.document=function(e){return new vl(e)},Ol.CssSyntaxError=ll,Ol.Declaration=hl,Ol.Container=pl,Ol.Processor=fl,Ol.Document=vl,Ol.Comment=wl,Ol.Warning=yl,Ol.AtRule=bl,Ol.Result=_l,Ol.Input=kl,Ol.Rule=Cl,Ol.Root=El,Ol.Node=Al,dl.registerPostcss(Ol);var Il=Ol;Ol.default=Ol;var Tl=Ls(Il);Tl.stringify,Tl.fromJSON,Tl.plugin,Tl.parse,Tl.list,Tl.document,Tl.comment,Tl.atRule,Tl.rule,Tl.decl,Tl.root,Tl.CssSyntaxError,Tl.Declaration,Tl.Container,Tl.Processor,Tl.Document,Tl.Comment,Tl.Warning,Tl.AtRule,Tl.Result,Tl.Input,Tl.Rule,Tl.Root,Tl.Node;var Ml=Object.defineProperty,Rl=function(e,t,r){return t in e?Ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Pl=function(e,t,r){return Rl(e,"symbol"!==("undefined"===typeof t?"undefined":Xi(t))?t+"":t,r)};function Dl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Ll(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return $i(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var Bl={exports:{}},Nl=String,jl=function(){return{isColorSupported:!1,reset:Nl,bold:Nl,dim:Nl,italic:Nl,underline:Nl,inverse:Nl,hidden:Nl,strikethrough:Nl,black:Nl,red:Nl,green:Nl,yellow:Nl,blue:Nl,magenta:Nl,cyan:Nl,white:Nl,gray:Nl,bgBlack:Nl,bgRed:Nl,bgGreen:Nl,bgYellow:Nl,bgBlue:Nl,bgMagenta:Nl,bgCyan:Nl,bgWhite:Nl}};Bl.exports=jl(),Bl.exports.createColors=jl;var Fl=Bl.exports,Ul={},zl=Object.freeze(Object.defineProperty({__proto__:null,default:Ul},Symbol.toStringTag,{value:"Module"})),ql=Ll(zl),Hl=Fl,$l=ql,Wl=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof i&&("number"===typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}Hi(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Hl.isColorSupported),$l&&e&&(r=$l(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=Hl.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Gi(Error)),Vl=Wl;Wl.default=Wl;var Yl={};Yl.isClean=Symbol("isClean"),Yl.my=Symbol("my");var Xl={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Jl(e){return e[0].toUpperCase()+e.slice(1)}var Gl=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if("undefined"!==typeof e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&(n=e.raws[t],"undefined"!==typeof n))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Xl[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Jl(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Xl[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!==typeof t))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!==typeof t))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Kl=Gl;Gl.default=Gl;var Zl=Kl;function Ql(e,t){var r=new Zl(t);r.stringify(e)}var eh=Ql;Ql.default=Ql;var th=Yl.isClean,rh=Yl.my,nh=Vl,ih=Kl,oh=eh;function sh(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o="undefined"===typeof i?"undefined":Xi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return sh(e,r)}):("object"===o&&null!==i&&(i=sh(i)),r[n]=i)}return r}var ah=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[th]=!1,this[rh]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Zi(e[t]);!(r=n()).done;){var i=r.value;"function"===typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=sh(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new nh(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[th]){this[th]=!1;var e=this;while(e=e.parent)e[th]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"===typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new ih;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Zi(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Xi(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=oh),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Ui(e,[{key:"proxyOf",get:function(){return this}}]),e}(),ch=ah;ah.default=ah;var uh=ch,lh=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=zi({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Hi(t,e),Ui(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(uh),hh=lh;lh.default=lh;var dh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ph=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=dh[64*Math.random()|0];return t},fh={nanoid:ph},mh=ql.SourceMapConsumer,gh=ql.SourceMapGenerator,vh=ql.existsSync,yh=ql.readFileSync,wh=ql.dirname,bh=ql.join;function _h(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var kh=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=wh(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new mh(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return _h(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&("string"===typeof e.mappings||"string"===typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=wh(e),vh(e))return this.mapFile=e,yh(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if($i(t,mh))return gh.fromSourceMap(t).toString();if($i(t,gh))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=bh(wh(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Sh=kh;kh.default=kh;var xh=ql.SourceMapConsumer,Ch=ql.SourceMapGenerator,Eh=ql.fileURLToPath,Ah=ql.pathToFileURL,Oh=ql.isAbsolute,Ih=ql.resolve,Th=fh.nanoid,Mh=ql,Rh=Vl,Ph=Sh,Dh=Symbol("fromOffsetCache"),Lh=Boolean(xh&&Ch),Bh=Boolean(Ih&&Oh),Nh=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Xi(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Bh||/^\w+:\/\//.test(t.from)||Oh(t.from)?this.file=t.from:this.file=Ih(t.from)),Bh&&Lh){var r=new Ph(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Th(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===("undefined"===typeof t?"undefined":Xi(t))){var a=t,c=r;if("number"===typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"===typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return i=d?new Rh(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new Rh(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Ah&&(i.input.url=Ah(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Dh])r=this[Dh];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[Dh]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ih(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"===typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Oh(a.source)?Ah(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ah(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Eh)throw new Error("file: protocol is not available in this PostCSS build");c.file=Eh(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=zi({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ui(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),jh=Nh;Nh.default=Nh,Mh&&Mh.registerInput&&Mh.registerInput(Nh);var Fh=ql.SourceMapConsumer,Uh=ql.SourceMapGenerator,zh=ql.dirname,qh=ql.relative,Hh=ql.resolve,$h=ql.sep,Wh=ql.pathToFileURL,Vh=jh,Yh=Boolean(Fh&&Uh),Xh=Boolean(zh&&Hh&&qh&&$h),Jh=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"===typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"===typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Zi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||zh(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Fh(r.text),o.sourcesContent&&(o.sourcesContent=null)):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Xh&&Yh&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Uh.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Uh({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Uh({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),t=a.match(/\n/g),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?zh(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=zh(Hh(r,this.mapOpts.annotation)));var n=qh(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Vh(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Wh){var r=Wh(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===$h&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Gh=Jh,Kh=ch,Zh=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Hi(t,e),t}(Kh),Qh=Zh;Zh.default=Zh;var ed,td,rd,nd,id=Yl.isClean,od=Yl.my,sd=hh,ad=Qh,cd=ch;function ud(e){return e.map(function(e){return e.nodes&&(e.nodes=ud(e.nodes)),delete e.source,e})}function ld(e){if(e[id]=!1,e.proxyOf.nodes)for(var t,r=Zi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;ld(n)}}var hd=function(e){function t(){return e.apply(this,arguments)||this}Hi(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Zi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Zi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Zi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;this.indexes[n]+=1}return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"===typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"===typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"===typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Zi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Zi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=ud(ed(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Zi(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=Zi(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new sd(e)]}else if(e.selector)e=[new td(e)];else if(e.name)e=[new rd(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new ad(e)]}var l=e.map(function(e){return e[od]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[id]&&ld(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=Zi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Zi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Zi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Ui(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(cd);hd.registerParse=function(e){ed=e},hd.registerRule=function(e){td=e},hd.registerAtRule=function(e){rd=e},hd.registerRoot=function(e){nd=e};var dd=hd;hd.default=hd,hd.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,rd.prototype):"rule"===e.type?Object.setPrototypeOf(e,td.prototype):"decl"===e.type?Object.setPrototypeOf(e,sd.prototype):"comment"===e.type?Object.setPrototypeOf(e,ad.prototype):"root"===e.type&&Object.setPrototypeOf(e,nd.prototype),e[od]=!0,e.nodes&&e.nodes.forEach(function(e){hd.rebuild(e)})};var pd,fd,md=dd,gd=function(e){function t(t){var r;return r=e.call(this,zi({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Hi(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new pd(new fd,this,e);return t.stringify()},t}(md);gd.registerLazyResult=function(e){pd=e},gd.registerProcessor=function(e){fd=e};var vd=gd;gd.default=gd;var yd=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),wd=yd;yd.default=yd;var bd=wd,_d=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new bd(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Ui(e,[{key:"content",get:function(){return this.css}}]),e}(),kd=_d;_d.default=_d;var Sd="'".charCodeAt(0),xd='"'.charCodeAt(0),Cd="\\".charCodeAt(0),Ed="/".charCodeAt(0),Ad="\n".charCodeAt(0),Od=" ".charCodeAt(0),Id="\f".charCodeAt(0),Td="\t".charCodeAt(0),Md="\r".charCodeAt(0),Rd="[".charCodeAt(0),Pd="]".charCodeAt(0),Dd="(".charCodeAt(0),Ld=")".charCodeAt(0),Bd="{".charCodeAt(0),Nd="}".charCodeAt(0),jd=";".charCodeAt(0),Fd="*".charCodeAt(0),Ud=":".charCodeAt(0),zd="@".charCodeAt(0),qd=/[\t\n\f\r "#'()/;[\\\]{}]/g,Hd=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,$d=/.[\r\n"'(/\\]/,Wd=/[\da-f]/i,Vd=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case Ad:case Od:case Td:case Md:case Id:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===Od||r===Ad||r===Td||r===Md||r===Id);h=["space",d.slice(m,n)],m=n-1;break;case Rd:case Pd:case Bd:case Nd:case Ud:case jd:case Ld:var y=String.fromCharCode(r);h=[y,y,m];break;case Dd:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==Sd&&l!==xd&&l!==Od&&l!==Ad&&l!==Td&&l!==Id&&l!==Md){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===Cd)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||$d.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case Sd:case xd:i=r===Sd?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===Cd)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case zd:qd.lastIndex=m+1,qd.test(d),n=0===qd.lastIndex?d.length-1:qd.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case Cd:n=m,s=!0;while(d.charCodeAt(n+1)===Cd)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==Ed&&r!==Od&&r!==Ad&&r!==Td&&r!==Md&&r!==Id&&(n+=1,Wd.test(d.charAt(n)))){while(Wd.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===Od&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===Ed&&d.charCodeAt(m+1)===Fd?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):(Hd.lastIndex=m+1,Hd.test(d),n=0===Hd.lastIndex?d.length-1:Hd.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Yd=dd,Xd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Hi(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Yd),Jd=Xd;Xd.default=Xd,Yd.registerAtRule(Xd);var Gd,Kd,Zd=dd,Qd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Hi(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Zi(i);!(o=s()).done;){var a=o.value;a.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new Gd(new Kd,this,e);return t.stringify()},t}(Zd);Qd.registerLazyResult=function(e){Gd=e},Qd.registerProcessor=function(e){Kd=e};var ep=Qd;Qd.default=Qd,Zd.registerRoot(Qd);var tp={comma:function(e){return tp.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return tp.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Zi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},rp=tp;tp.default=tp;var np=dd,ip=rp,op=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Hi(t,e),Ui(t,[{key:"selectors",get:function(){return ip.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(np),sp=op;op.default=op,np.registerRule(op);var ap=hh,cp=Vd,up=Qh,lp=Jd,hp=ep,dp=sp,pp={empty:!0,space:!0};function fp(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var mp=function(){function e(e){this.input=e,this.root=new hp,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new lp;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){n=a.length-1,r=a[n];while(r&&"space"===r[0])r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Zi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new up;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=cp(this.input)},t.decl=function(e,t){var r=new ap;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||fp(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new dp;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",pp[a]||pp[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new dp;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),gp=mp,vp=dd,yp=gp,wp=jh;function bp(e,t){var r=new wp(e,t),n=new yp(r);try{n.parse()}catch(i){throw i}return n.root}var _p=bp;bp.default=bp,vp.registerParse(bp);var kp=Yl.isClean,Sp=Yl.my,xp=Gh,Cp=eh,Ep=dd,Ap=vd,Op=kd,Ip=_p,Tp=ep,Mp={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Rp={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Pp={Once:!0,postcssPlugin:!0,prepare:!0},Dp=0;function Lp(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&"function"===typeof e.then}function Bp(e){var t=!1,r=Mp[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Dp,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Dp,r+"Exit"]:[r,r+"Exit"]}function Np(e){var t;return t="document"===e.type?["Document",Dp,"DocumentExit"]:"root"===e.type?["Root",Dp,"RootExit"]:Bp(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function jp(e){return e[kp]=!1,e.nodes&&e.nodes.forEach(function(e){return jp(e)}),e}var Fp={},Up=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Xi(r))||null===r||"root"!==r.type&&"document"!==r.type)if($i(r,e)||$i(r,Op))i=jp(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Ip;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[Sp]&&Ep.rebuild(i)}else i=jp(r);this.result=new Op(t,i,n),this.helpers=zi({},Fp,{postcss:Fp,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&e.prepare?zi({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Zi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Xi(i)))for(var o in i){if(!Rp[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Pp[o])if("object"===Xi(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"===typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return Ni(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return Qi(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!Lp(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[kp])return[3,14];o[kp]=!0,s=[Np(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Lp(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return Qi(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Zi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,eo(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===("undefined"===typeof e?"undefined":Xi(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Lp(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"===typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Cp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new xp(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Zi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Lp(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[kp])i[kp]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Zi(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Zi(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Lp(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[kp])return a[kp]=!0,void e.push(Np(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===Dp)return void(r.nodes&&r.nodes.length&&(r[kp]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[kp]=!0;for(var r,n=Bp(e),i=Zi(n);!(r=i()).done;){var o=r.value;if(o===Dp)e.nodes&&e.each(function(e){e[kp]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ui(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Up.registerPostcss=function(e){Fp=e};var zp=Up;Up.default=Up,Tp.registerLazyResult(Up),Ap.registerLazyResult(Up);var qp=Gh,Hp=eh,$p=_p,Wp=kd,Vp=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Hp;this.result=new Wp(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new qp(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ui(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=$p;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Yp=Vp;Vp.default=Vp;var Xp=Yp,Jp=zp,Gp=vd,Kp=ep,Zp=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Zi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Xi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Xi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Xi(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Jp(this,e,t):new Xp(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Qp=Zp;Zp.default=Zp,Kp.registerProcessor(Zp),Gp.registerProcessor(Zp);var ef=hh,tf=Sh,rf=Qh,nf=Jd,of=jh,sf=ep,af=sp;function cf(e,t){if(Array.isArray(e))return e.map(function(e){return cf(e)});var r=e.inputs,n=Vi(e,["inputs"]);if(r){t=[];for(var i,o=Zi(r);!(i=o()).done;){var s=i.value,a=zi({},s,{__proto__:of.prototype});a.map&&(a.map=zi({},a.map,{__proto__:tf.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return cf(e,t)})),n.source){var c=n.source,u=c.inputId,l=Vi(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new sf(n);if("decl"===n.type)return new ef(n);if("rule"===n.type)return new af(n);if("comment"===n.type)return new rf(n);if("atrule"===n.type)return new nf(n);throw new Error("Unknown node type: "+e.type)}var uf=cf;cf.default=cf;var lf=Vl,hf=hh,df=zp,pf=dd,ff=Qp,mf=eh,gf=uf,vf=vd,yf=wd,wf=Qh,bf=Jd,_f=kd,kf=jh,Sf=_p,xf=rp,Cf=sp,Ef=ep,Af=ch;function Of(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new ff(t)}Of.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new ff).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Of([i(r)]).process(e,t)},i},Of.stringify=mf,Of.parse=Sf,Of.fromJSON=gf,Of.list=xf,Of.comment=function(e){return new wf(e)},Of.atRule=function(e){return new bf(e)},Of.decl=function(e){return new hf(e)},Of.rule=function(e){return new Cf(e)},Of.root=function(e){return new Ef(e)},Of.document=function(e){return new vf(e)},Of.CssSyntaxError=lf,Of.Declaration=hf,Of.Container=pf,Of.Processor=ff,Of.Document=vf,Of.Comment=wf,Of.Warning=yf,Of.AtRule=bf,Of.Result=_f,Of.Input=kf,Of.Rule=Cf,Of.Root=Ef,Of.Node=Af,df.registerPostcss(Of);var If=Of;Of.default=Of;var Tf=Dl(If);Tf.stringify,Tf.fromJSON,Tf.plugin,Tf.parse,Tf.list,Tf.document,Tf.comment,Tf.atRule,Tf.rule,Tf.decl,Tf.root,Tf.CssSyntaxError,Tf.Declaration,Tf.Container,Tf.Processor,Tf.Document,Tf.Comment,Tf.Warning,Tf.AtRule,Tf.Result,Tf.Input,Tf.Rule,Tf.Root,Tf.Node;var Mf=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Pl(this,"parentElement",null),Pl(this,"parentNode",null),Pl(this,"ownerDocument"),Pl(this,"firstChild",null),Pl(this,"lastChild",null),Pl(this,"previousSibling",null),Pl(this,"nextSibling",null),Pl(this,"ELEMENT_NODE",1),Pl(this,"TEXT_NODE",3),Pl(this,"nodeType"),Pl(this,"nodeName"),Pl(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!$i(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;while(t.parentNode){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},Ui(e,[{key:"childNodes",get:function(){var e=[],t=this.firstChild;while(t)e.push(t),t=t.nextSibling;return e}}]),e}(),Rf={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Pf={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Df={},Lf=function(){return!!globalThis.Zone};function Bf(e){if(Df[e])return Df[e];var t=globalThis[e],r=t.prototype,n=e in Rf?Rf[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Pf?Pf[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"===typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!Lf())return Df[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?Df[e]=u:r}catch(l){return r}}var Nf={};function jf(e,t,r){var n,i=e+"."+String(r);if(Nf[i])return Nf[i].call(t);var o=Bf(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Nf[i]=s,s.call(t)):t[r]}var Ff={};function Uf(e,t,r){var n=e+"."+String(r);if(Ff[n])return Ff[n].bind(t);var i=Bf(e),o=i[r];return"function"!==typeof o?t[r]:(Ff[n]=o,o.bind(t))}function zf(e){return jf("Node",e,"childNodes")}function qf(e){return jf("Node",e,"parentNode")}function Hf(e){return jf("Node",e,"parentElement")}function $f(e){return jf("Node",e,"textContent")}function Wf(e,t){return Uf("Node",e,"contains")(t)}function Vf(e){return Uf("Node",e,"getRootNode")()}function Yf(e){return e&&"host"in e?jf("ShadowRoot",e,"host"):null}function Xf(e){return e.styleSheets}function Jf(e){return e&&"shadowRoot"in e?jf("Element",e,"shadowRoot"):null}function Gf(e,t){return jf("Element",e,"querySelector")(t)}function Kf(e,t){return jf("Element",e,"querySelectorAll")(t)}function Zf(){return Bf("MutationObserver").constructor}function Qf(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var em={childNodes:zf,parentNode:qf,parentElement:Hf,textContent:$f,contains:Wf,getRootNode:Vf,host:Yf,styleSheets:Xf,shadowRoot:Jf,querySelector:Gf,querySelectorAll:Kf,mutationObserver:Zf,patch:Qf};function tm(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var rm="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",nm={map:{},getId:function(){return console.error(rm),-1},getNode:function(){return console.error(rm),null},removeNodeFromMap:function(){console.error(rm)},has:function(){return console.error(rm),!1},reset:function(){console.error(rm)}};function im(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>t?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},u))}}function om(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return om(e,t,o||{},!0)}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(nm=new Proxy(nm,{get:function(e,t,r){return"map"===t&&console.error(rm),Reflect.get(e,t,r)}}));var sm=Date.now;function am(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=em.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=em.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function cm(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function um(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function lm(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:em.parentElement(e);return t}function hm(e,t,r,n){if(!e)return!1;var i=lm(e);if(!i)return!1;try{if("string"===typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(Ss(i,t,n))return!0}catch(o){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function dm(e,t){return-1!==t.getId(e)}function pm(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===ls}function fm(e,t){if(Do(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=em.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||fm(n,t))}function mm(e){return Boolean(e.changedTouches)}function gm(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function vm(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function ym(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function wm(e){return!!e&&($i(e,Mf)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(em.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(sm=function(){return(new Date).getTime()});var bm=function(){function e(){io(this,"id",1),io(this,"styleIDMap",new WeakMap),io(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function _m(e){var t,r=null;return"getRootNode"in e&&(null==(t=em.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&em.host(em.getRootNode(e))&&(r=em.host(em.getRootNode(e))),r}function km(e){var t,r=e;while(t=_m(r))r=t;return r}function Sm(e){var t=e.ownerDocument;if(!t)return!1;var r=km(e);return em.contains(t,r)}function xm(e){var t=e.ownerDocument;return!!t&&(em.contains(t,e)||Sm(e))}var Cm=function(e){return e[e["DomContentLoaded"]=0]="DomContentLoaded",e[e["Load"]=1]="Load",e[e["FullSnapshot"]=2]="FullSnapshot",e[e["IncrementalSnapshot"]=3]="IncrementalSnapshot",e[e["Meta"]=4]="Meta",e[e["Custom"]=5]="Custom",e[e["Plugin"]=6]="Plugin",e}(Cm||{}),Em=function(e){return e[e["Mutation"]=0]="Mutation",e[e["MouseMove"]=1]="MouseMove",e[e["MouseInteraction"]=2]="MouseInteraction",e[e["Scroll"]=3]="Scroll",e[e["ViewportResize"]=4]="ViewportResize",e[e["Input"]=5]="Input",e[e["TouchMove"]=6]="TouchMove",e[e["MediaInteraction"]=7]="MediaInteraction",e[e["StyleSheetRule"]=8]="StyleSheetRule",e[e["CanvasMutation"]=9]="CanvasMutation",e[e["Font"]=10]="Font",e[e["Log"]=11]="Log",e[e["Drag"]=12]="Drag",e[e["StyleDeclaration"]=13]="StyleDeclaration",e[e["Selection"]=14]="Selection",e[e["AdoptedStyleSheet"]=15]="AdoptedStyleSheet",e[e["CustomElement"]=16]="CustomElement",e}(Em||{}),Am=function(e){return e[e["MouseUp"]=0]="MouseUp",e[e["MouseDown"]=1]="MouseDown",e[e["Click"]=2]="Click",e[e["ContextMenu"]=3]="ContextMenu",e[e["DblClick"]=4]="DblClick",e[e["Focus"]=5]="Focus",e[e["Blur"]=6]="Blur",e[e["TouchStart"]=7]="TouchStart",e[e["TouchMove_Departed"]=8]="TouchMove_Departed",e[e["TouchEnd"]=9]="TouchEnd",e[e["TouchCancel"]=10]="TouchCancel",e}(Am||{}),Om=function(e){return e[e["Mouse"]=0]="Mouse",e[e["Pen"]=1]="Pen",e[e["Touch"]=2]="Touch",e}(Om||{}),Im=function(e){return e[e["2D"]=0]="2D",e[e["WebGL"]=1]="WebGL",e[e["WebGL2"]=2]="WebGL2",e}(Im||{}),Tm=function(e){return e[e["Play"]=0]="Play",e[e["Pause"]=1]="Pause",e[e["Seeked"]=2]="Seeked",e[e["VolumeChange"]=3]="VolumeChange",e[e["RateChange"]=4]="RateChange",e}(Tm||{}),Mm=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(Mm||{});function Rm(e){return"__ln"in e}var Pm,Dm=function(){function e(){io(this,"length",0),io(this,"head",null),io(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Rm(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Rm(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),Lm=function(e,t){return e+"@"+t},Bm=function(){function e(){var e=this;io(this,"frozen",!1),io(this,"locked",!1),io(this,"texts",[]),io(this,"attributes",[]),io(this,"attributeMap",new WeakMap),io(this,"removes",[]),io(this,"mapRemoves",[]),io(this,"movedMap",{}),io(this,"addedSet",new Set),io(this,"movedSet",new Set),io(this,"droppedSet",new Set),io(this,"removesSubTreeCache",new Set),io(this,"mutationCb"),io(this,"blockClass"),io(this,"blockSelector"),io(this,"maskTextClass"),io(this,"maskTextSelector"),io(this,"inlineStylesheet"),io(this,"maskInputOptions"),io(this,"maskTextFn"),io(this,"maskInputFn"),io(this,"keepIframeSrcFn"),io(this,"recordCanvas"),io(this,"inlineImages"),io(this,"slimDOMOptions"),io(this,"dataURLOptions"),io(this,"doc"),io(this,"mirror"),io(this,"iframeManager"),io(this,"stylesheetManager"),io(this,"shadowDomManager"),io(this,"canvasManager"),io(this,"processedNodeManager"),io(this,"unattachedDoc"),io(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),io(this,"emit",function(){if(!e.frozen&&!e.locked){var t=[],r=new Set,n=new Dm,i=function(t){var r=t,n=ls;while(n===ls)r=r&&r.nextSibling,n=r&&e.mirror.getId(r);return n},o=function(o){var s=em.parentNode(o);if(s&&xm(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var c=s.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(s)&&(a=!0)}var u=Do(s)?e.mirror.getId(_m(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=Ps(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){vm(t,e.mirror)&&e.iframeManager.addIframe(t),ym(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),wm(o)&&e.shadowDomManager.addShadowRoot(em.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};while(e.mapRemoves.length){var s=e.mapRemoves.shift();if("IFRAME"===s.nodeName)try{e.iframeManager.removeIframe(s)}catch(E){}else e.stylesheetManager.cleanupStylesheetsForRemovedNode(s);e.mirror.removeNodeFromMap(s)}for(var a,c=Zi(e.movedSet);!(a=c()).done;){var u=a.value;Fm(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(em.parentNode(u))||o(u)}for(var l,h=Zi(e.addedSet);!(l=h()).done;){var d=l.value;zm(e.droppedSet,d)||Fm(e.removesSubTreeCache,d,e.mirror)?zm(e.movedSet,d)?o(d):e.droppedSet.add(d):o(d)}var p=null;while(n.length){var f=null;if(p){var m=e.mirror.getId(em.parentNode(p.value)),g=i(p.value);-1!==m&&-1!==g&&(f=p)}if(!f){var v=n.tail;while(v){var y=v;if(v=v.previous,y){var w=e.mirror.getId(em.parentNode(y.value)),b=i(y.value);if(-1===b)continue;if(-1!==w){f=y;break}var _=y.value,k=em.parentNode(_);if(k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var S=em.host(k),x=e.mirror.getId(S);if(-1!==x){f=y;break}}}}}if(!f){while(n.head)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),o(f.value)}var C={texts:e.texts.map(function(t){var r=t.node,n=em.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"===typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(C.texts.length||C.attributes.length||C.removes.length||C.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(C))}}),io(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(em.childNodes(t),function(e){return em.textContent(e)||""}).join("");r.attributes.value=Wo({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:Jo(t),value:n,maskInputFn:e.maskInputFn})}),io(this,"processMutation",function(t){if(!pm(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=em.textContent(t.target);hm(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:xs(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,lm(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=Jo(n);o=Wo({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(hm(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!_s(n.tagName,i))if(a.attributes[i]=bs(e.doc,Vo(n.tagName),Vo(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(v){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u,l=Zi(Array.from(n.style));!(u=l()).done;){var h=u.value,d=n.style.getPropertyValue(h),p=n.style.getPropertyPriority(h);d!==c.style.getPropertyValue(h)||p!==c.style.getPropertyPriority(h)?a.styleDiff[h]=""===p?d:[d,p]:a._unchangedStyles[h]=[d,p]}for(var f,m=Zi(Array.from(c.style));!(f=m()).done;){var g=f.value;""===n.style.getPropertyValue(g)&&(a.styleDiff[g]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes["rr_open_mode"]="modal":a.attributes["rr_open_mode"]="non-modal");break;case"childList":if(hm(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=Do(t.target)?e.mirror.getId(em.host(t.target)):e.mirror.getId(t.target);hm(t.target,e.blockClass,e.blockSelector,!1)||pm(r,e.mirror,e.slimDOMOptions)||!dm(r,e.mirror)||(e.addedSet.has(r)?(Nm(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||fm(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[Lm(n,i)]?Nm(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!Do(t.target)||!Lo(t.target))||void 0}),jm(r,e.removesSubTreeCache))),e.mapRemoves.push(r))});break}}),io(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(pm(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[Lm(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);hm(t,e.blockClass,e.blockSelector,!1)||(em.childNodes(t).forEach(function(t){return e.genAdds(t)}),wm(t)&&em.childNodes(em.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function Nm(e,t){e.delete(t),em.childNodes(t).forEach(function(t){return Nm(e,t)})}function jm(e,t){var r=[e];while(r.length){var n=r.pop();t.has(n)||(t.add(n),em.childNodes(n).forEach(function(e){return r.push(e)}))}}function Fm(e,t,r){return 0!==e.size&&Um(e,t)}function Um(e,t,r){var n=em.parentNode(t);return!!n&&e.has(n)}function zm(e,t){return 0!==e.size&&qm(e,t)}function qm(e,t){var r=em.parentNode(t);return!!r&&(!!e.has(r)||qm(e,r))}function Hm(e){Pm=e}function $m(){Pm=void 0}var Wm=function(e){if(!Pm)return e;var t=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(i){if(Pm&&!0===Pm(i))return;throw i}};return t},Vm=[];function Ym(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(r){}return e&&e.target}function Xm(e,t){var r=new Bm;Vm.push(r),r.init(e);var n=new(Zf())(Wm(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function Jm(e){for(var t=Vm.length-1;t>=0;t--){var r=Vm[t];r.getDoc()===e&&Vm.splice(t,1)}}function Gm(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"===typeof r.mousemove?r.mousemove:50,a="number"===typeof r.mousemoveCallback?r.mousemoveCallback:500,c=[],u=im(Wm(function(e){var r=Date.now()-o;t(c.map(function(e){return e.timeOffset-=r,e}),e),c=[],o=null}),a),l=Wm(im(Wm(function(e){var t=Ym(e),r=mm(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=sm()),c.push({x:n,y:s,id:i.getId(t),timeOffset:sm()-o}),u("undefined"!==typeof DragEvent&&$i(e,DragEvent)?Em.Drag:$i(e,MouseEvent)?Em.MouseMove:Em.TouchMove)}),s,{trailing:!1})),h=[tm("mousemove",l,n),tm("touchmove",l,n),tm("drag",l,n)];return Wm(function(){h.forEach(function(e){return e()})})}function Km(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null,l=function(e){return function(r){var s=Ym(r);if(!hm(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=Om.Mouse;break;case"touch":a=Om.Touch;break;case"pen":a=Om.Pen;break}a===Om.Touch?Am[e]===Am.MouseDown?c="TouchStart":Am[e]===Am.MouseUp&&(c="TouchEnd"):Om.Pen}else mm(r)&&(a=Om.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===Om.Touch||c.startsWith("Mouse")&&a===Om.Mouse)&&(a=null)):Am[e]===Am.Click&&(a=u,u=null);var l=mm(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),d=l.clientX,p=l.clientY;Wm(t)(zi({type:Am[c],id:h,x:d,y:p},null!==a&&{pointerType:a}))}}}};return Object.keys(Am).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var t=Vo(e),n=l(e);if(window.PointerEvent)switch(Am[e]){case Am.MouseDown:case Am.MouseUp:t=t.replace("mouse","pointer");break;case Am.TouchStart:case Am.TouchEnd:return}c.push(tm(t,n,r))}),Wm(function(){c.forEach(function(e){return e()})})}function Zm(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=Wm(im(Wm(function(e){var s=Ym(e);if(s&&!hm(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=am(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100));return tm("scroll",a,r)}function Qm(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1,s=Wm(im(Wm(function(){var e=cm(),t=um();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200));return tm("resize",s,n)}var eg=["INPUT","TEXTAREA","SELECT"],tg=new WeakMap;function rg(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function d(e){var t=Ym(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=em.parentElement(t)),t&&l&&!(eg.indexOf(l)<0)&&!hm(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var d=t.value,f=!1,m=Jo(t)||"";"radio"===m||"checkbox"===m?f=t.checked:(c[l.toLowerCase()]||c[m])&&(d=Wo({element:t,maskInputOptions:c,tagName:l,type:m,value:d,maskInputFn:u})),p(t,h?{text:d,isChecked:f,userTriggered:n}:{text:d,isChecked:f});var g=t.name;"radio"===m&&g&&f&&r.querySelectorAll('input[type="radio"][name="'+g+'"]').forEach(function(e){if(e!==t){var r=e.value;p(e,h?{text:r,isChecked:!f,userTriggered:!1}:{text:r,isChecked:!f})}})}}function p(e,r){var i=tg.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){tg.set(e,r);var o=n.getId(e);Wm(t)(zi({},r,{id:o}))}}var f="last"===l.input?["change"]:["input","change"],m=f.map(function(e){return tm(e,Wm(d),r)}),g=r.defaultView;if(!g)return function(){m.forEach(function(e){return e()})};var v,y=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),w=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];y&&y.set&&(v=m).push.apply(v,[].concat(w.map(function(e){return om(e[0],e[1],{set:function(){Wm(d)({target:this,isTrusted:!1})}},!1,g)})));return Wm(function(){m.forEach(function(e){return e()})})}function ng(e){var t=[];function r(e,t){if(fg("CSSGroupingRule")&&$i(e.parentRule,CSSGroupingRule)||fg("CSSMediaRule")&&$i(e.parentRule,CSSMediaRule)||fg("CSSSupportsRule")&&$i(e.parentRule,CSSSupportsRule)||fg("CSSConditionRule")&&$i(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules),n=r.indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var i=Array.from(e.parentStyleSheet.cssRules),o=i.indexOf(e);t.unshift(o)}return t}return r(e,t)}function ig(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function og(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Wm(function(e,t,o){var s=o[0],a=o[1],c=ig(t,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,c,u=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:Wm(function(e,t,o){var s=o[0],a=ig(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:Wm(function(e,t,o){var s=o[0],a=ig(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replace:s}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:Wm(function(e,t,o){var s=o[0],a=ig(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replaceSync:s}),e.apply(t,o)})}));var l={};mg("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(mg("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),mg("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),mg("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:Wm(function(e,t,o){var s=o[0],a=o[1],c=ig(t.parentStyleSheet,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:[].concat(ng(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:Wm(function(e,t,o){var s=o[0],a=ig(t.parentStyleSheet,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:[].concat(ng(t),[s])}]}),e.apply(t,o)})})}),Wm(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=u,a&&(o.CSSStyleSheet.prototype.replace=a),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}function sg(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(em.host(t));var c="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(n){}return r}}),Wm(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function ag(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Wm(function(e,t,s){var c,u=s[0],l=s[1],h=s[2];if(i.has(u))return a.apply(t,[u,l,h]);var d=ig(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),p=d.id,f=d.styleId;return(p&&-1!==p||f&&-1!==f)&&r({id:p,styleId:f,set:{property:u,value:l,priority:h},index:ng(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:Wm(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=ig(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,d=l.styleId;return(h&&-1!==h||d&&-1!==d)&&r({id:h,styleId:d,remove:{property:u},index:ng(t.parentRule)}),e.apply(t,s)})}),Wm(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}function cg(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=Wm(function(e){return im(Wm(function(o){var s=Ym(o);if(s&&!hm(s,r,n,!0)){var a=s.currentTime,c=s.volume,u=s.muted,l=s.playbackRate,h=s.loop;t({type:e,id:i.getId(s),currentTime:a,volume:c,muted:u,playbackRate:l,loop:h})}}),o.media||500)}),c=[tm("play",a(Tm.Play),s),tm("pause",a(Tm.Pause),s),tm("seeked",a(Tm.Seeked),s),tm("volumechange",a(Tm.VolumeChange),s),tm("ratechange",a(Tm.RateChange),s)];return Wm(function(){c.forEach(function(e){return e()})})}function ug(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!==typeof t,descriptors:r,fontSource:"string"===typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=Qf(r.fonts,"add",function(e){return function(r){return setTimeout(Wm(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),Wm(function(){i.forEach(function(e){return e()})})}function lg(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=Wm(function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],c=e.rangeCount||0,u=0;u<c;u++){var l=e.getRangeAt(u),h=l.startContainer,d=l.startOffset,p=l.endContainer,f=l.endOffset,m=hm(h,n,i,!0)||hm(p,n,i,!0);m||a.push({start:r.getId(h),startOffset:d,end:r.getId(p),endOffset:f})}o({ranges:a})}});return a(),tm("selectionchange",a)}function hg(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;if(!n||!n.customElements)return function(){};var i=Qf(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(o){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}});return i}function dg(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,d=e.fontCb,p=e.selectionCb,f=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n));r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r));n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r));i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r));o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r));s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r));a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r));c.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r));u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r));l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r));h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r));d.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r));p.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r));f.apply(void 0,[].concat(r))}}function pg(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};dg(e,t),e.recordDOM&&(r=Xm(e,e.doc));var i=Gm(e),o=Km(e),s=Zm(e),a=Qm(e,{win:n}),c=rg(e),u=cg(e),l=function(){},h=function(){},d=function(){},p=function(){};e.recordDOM&&(l=og(e,{win:n}),h=sg(e,e.doc),d=ag(e,{win:n}),e.collectFonts&&(p=ug(e)));for(var f,m=lg(e),g=hg(e),v=[],y=Zi(e.plugins);!(f=y()).done;){var w=f.value;v.push(w.observer(w.callback,n,w.options))}return Wm(function(){Vm.forEach(function(e){return e.reset()}),null==r||r.disconnect(),i(),o(),s(),a(),c(),u(),l(),h(),d(),p(),m(),g(),v.forEach(function(e){return e()})})}function fg(e){return"undefined"!==typeof window[e]}function mg(e){return Boolean("undefined"!==typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var gg=function(){function e(e){io(this,"iframeIdToRemoteIdMap",new WeakMap),io(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!==typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),vg=function(){function e(e){io(this,"iframes",new WeakMap),io(this,"crossOriginIframeMap",new WeakMap),io(this,"crossOriginIframeMirror",new gg(hs)),io(this,"crossOriginIframeStyleMirror"),io(this,"crossOriginIframeRootIdMap",new WeakMap),io(this,"iframeContentDocumentMap",new WeakMap),io(this,"iframeObserverCleanupMap",new WeakMap),io(this,"mirror"),io(this,"mutationCb"),io(this,"wrappedEmit"),io(this,"loadListener"),io(this,"stylesheetManager"),io(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new gg(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(n){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin){var r=e.source;if(r){var n=this.crossOriginIframeMap.get(e.source);if(n){var i=this.transformCrossOriginEvent(n,t.data.event);i&&this.wrappedEmit(i,t.data.isCheckout)}}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case Cm.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:Cm.IncrementalSnapshot,data:{source:Em.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case Cm.Meta:case Cm.Load:case Cm.DomContentLoaded:return!1;case Cm.Plugin:return t;case Cm.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Cm.IncrementalSnapshot:switch(t.data.source){case Em.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Em.Drag:case Em.TouchMove:case Em.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Em.ViewportResize:return!1;case Em.MediaInteraction:case Em.MouseInteraction:case Em.Scroll:case Em.CanvasMutation:case Em.Input:return this.replaceIds(t.data,e,["id"]),t;case Em.StyleSheetRule:case Em.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Em.Font:return t;case Em.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case Em.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=Zi(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"===typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===Mm.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),yg=function(){function e(e){io(this,"shadowDoms",new WeakSet),io(this,"mutationCb"),io(this,"scrollCb"),io(this,"bypassOptions"),io(this,"mirror"),io(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(Lo(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=Xm(zi({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Zm(zi({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(em.host(e))),r.restoreHandlers.push(sg({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(Qf(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=em.shadowRoot(this);return o&&xm(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),wg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bg="undefined"===typeof Uint8Array?[]:new Uint8Array(256),_g=0;_g<wg.length;_g++)bg[wg.charCodeAt(_g)]=_g;var kg=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=wg[r[t]>>2],i+=wg[(3&r[t])<<4|r[t+1]>>4],i+=wg[(15&r[t+1])<<2|r[t+2]>>6],i+=wg[63&r[t+2]];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i},Sg=new Map;function xg(e,t){var r=Sg.get(e);return r||(r=new Map,Sg.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var Cg=function(e,t,r){if(e&&(Og(e,t)||"object"===("undefined"===typeof e?"undefined":Xi(e)))){var n=e.constructor.name,i=xg(r,n),o=i.indexOf(e);return-1===o&&(o=i.length,i.push(e)),o}};function Eg(e,t,r){if($i(e,Array))return e.map(function(e){return Eg(e,t,r)});if(null===e)return e;if($i(e,Float32Array)||$i(e,Float64Array)||$i(e,Int32Array)||$i(e,Uint32Array)||$i(e,Uint8Array)||$i(e,Uint16Array)||$i(e,Int16Array)||$i(e,Int8Array)||$i(e,Uint8ClampedArray)){var n=e.constructor.name;return{rr_type:n,args:[Object.values(e)]}}if($i(e,ArrayBuffer)){var i=e.constructor.name,o=kg(e);return{rr_type:i,base64:o}}if($i(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[Eg(e.buffer,t,r),e.byteOffset,e.byteLength]}}if($i(e,HTMLImageElement)){var a=e.constructor.name,c=e.src;return{rr_type:a,src:c}}if($i(e,HTMLCanvasElement)){var u="HTMLImageElement",l=e.toDataURL();return{rr_type:u,src:l}}if($i(e,ImageData)){var h=e.constructor.name;return{rr_type:h,args:[Eg(e.data,t,r),e.width,e.height]}}if(Og(e,t)||"object"===("undefined"===typeof e?"undefined":Xi(e))){var d=e.constructor.name,p=Cg(e,t,r);return{rr_type:d,index:p}}return e}var Ag=function(e,t,r){return e.map(function(e){return Eg(e,t,r)})},Og=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],n=r.filter(function(e){return"function"===typeof t[e]});return Boolean(n.find(function(r){return $i(e,t[r])}))};function Ig(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!==typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=Qf(t.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var s=this,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return hm(this.canvas,r,n,!0)||setTimeout(function(){var r=Ag(c,t,s);e(s.canvas,{type:Im["2D"],property:o,args:r})},0),i.apply(this,c)}});s.push(a)}catch(u){var c=om(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:Im["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),c=Zi(a);!(i=c()).done;)o();return function(){s.forEach(function(e){return e()})}}function Tg(e){return"experimental-webgl"===e?"webgl":e}function Mg(e,t,r,n){var i=[];try{var o=Qf(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!hm(this,t,r,!0)){var c=Tg(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===Xi(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function Rg(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!==typeof e[a])return"continue";var u=Qf(e,a,function(e){return function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=e.apply(this,c);if(Cg(l,o,this),"tagName"in this.canvas&&!hm(this.canvas,n,i,!0)){var h=Ag(c,o,this),d={type:t,property:a,args:h};r(this.canvas,d)}return l}});c.push(u)}catch(h){var l=om(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});c.push(l)}},c=[],u=Object.getOwnPropertyNames(e),l=Zi(u);!(s=l()).done;)a();return c}function Pg(e,t,r,n){var i,o,s=[];((i=s).push.apply(i,[].concat(Rg(t.WebGLRenderingContext.prototype,Im.WebGL,e,r,n,t))),"undefined"!==typeof t.WebGL2RenderingContext)&&(o=s).push.apply(o,[].concat(Rg(t.WebGL2RenderingContext.prototype,Im.WebGL2,e,r,n,t)));return function(){s.forEach(function(e){return e()})}}var Dg="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Lg=function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})},Bg="undefined"!==typeof window&&window.Blob&&new Blob([Lg(Dg)],{type:"text/javascript;charset=utf-8"});function Ng(e){var t;try{if(t=Bg&&(window.URL||window.webkitURL).createObjectURL(Bg),!t)throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(n){return new Worker("data:text/javascript;base64,"+Dg,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var jg,Fg,Ug,zg=function(){function e(e){var t=this;io(this,"pendingCanvasMutations",new Map),io(this,"rafStamps",{latestId:0,invokeId:null}),io(this,"mirror"),io(this,"mutationCb"),io(this,"resetObservers"),io(this,"frozen",!1),io(this,"locked",!1),io(this,"processMutation",function(e,r){var n=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;!n&&t.rafStamps.invokeId||(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"===typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=Mg(t,r,n,!0),a=new Map,c=new Ng;c.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,c=r.height;o.mutationCb({id:t,type:Im["2D"],commands:[{property:"clearRect",args:[0,0,s,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var u,l=1e3/e,h=0,d=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){hm(t,r,n,!0)||e.push(t)}),e},p=function(e){if(h&&e-h<l)u=requestAnimationFrame(p);else{h=e;var t=o;d().forEach(Ni(function(e){var r,n,o,s;return Qi(this,function(u){switch(u.label){case 0:return n=t.mirror.getId(e),a.get(n)?[2]:0===e.width||0===e.height?[2]:(a.set(n,!0),["webgl","webgl2"].includes(e.__context)&&(o=e.getContext(e.__context),!1===(null==(r=null==o?void 0:o.getContextAttributes())?void 0:r.preserveDrawingBuffer)&&o.clear(o.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return s=u.sent(),c.postMessage({id:n,bitmap:s,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[s]),[2]}})})),u=requestAnimationFrame(p)}};u=requestAnimationFrame(p),this.resetObservers=function(){s(),cancelAnimationFrame(u)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=Mg(e,t,r,!1),i=Ig(this.processMutation.bind(this),e,t,r),o=Pg(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){e.type;var t=Vi(e,["type"]);return t}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),qg=function(){function e(e){io(this,"trackedLinkElements",new WeakSet),io(this,"mutationCb"),io(this,"adoptedStyleSheetCb"),io(this,"styleMirror",new bm),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:Fo(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=Zi(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n,i=Zi(r.adoptedStyleSheets);!(n=i()).done;){var o=n.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(c){}},t.trackStylesheetInLinkElement=function(e){},e}(),Hg=function(){function e(){io(this,"nodeMap",new WeakMap),io(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),$g=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var Wg=document.createElement("iframe");document.body.appendChild(Wg),Array.from=(null==(to=Wg.contentWindow)?void 0:to.Array.from)||Array.from,document.body.removeChild(Wg)}}catch(yA){console.debug("Unable to override Array.from",yA)}var Vg,Yg=$o();function Xg(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,l=e.ignoreSelector,h=void 0===l?null:l,d=e.maskTextClass,p=void 0===d?"rr-mask":d,f=e.maskTextSelector,m=void 0===f?null:f,g=e.inlineStylesheet,v=void 0===g||g,y=e.maskAllInputs,w=e.maskInputOptions,b=e.slimDOMOptions,_=e.maskInputFn,k=e.maskTextFn,S=e.hooks,x=e.packFn,C=e.sampling,E=void 0===C?{}:C,A=e.dataURLOptions,O=void 0===A?{}:A,I=e.mousemoveWait,T=e.recordDOM,M=void 0===T||T,R=e.recordCanvas,P=void 0!==R&&R,D=e.recordCrossOriginIframes,L=void 0!==D&&D,B=e.recordAfter,N=void 0===B?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":B,j=e.userTriggeredOnInput,F=void 0!==j&&j,U=e.collectFonts,z=void 0!==U&&U,q=e.inlineImages,H=void 0!==q&&q,$=e.plugins,W=e.keepIframeSrcFn,V=void 0===W?function(){return!1}:W,Y=e.ignoreCSSAttributes,X=void 0===Y?new Set([]):Y,J=e.errorHandler;Hm(J);var G=!L||window.parent===window,K=!1;if(!G)try{window.parent.document&&(K=!1)}catch(ve){K=!0}if(G&&!t)throw new Error("emit function is required");if(!G&&!K)return function(){};void 0!==I&&void 0===E.mousemove&&(E.mousemove=I),Yg.reset();var Z,Q=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==w?w:{password:!0},ee=!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===b,headMetaDescKeywords:"all"===b,headTitleMutations:"all"===b}:b||{};gm();var te=0,re=function(e){for(var t,r=Zi($||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return x&&!K&&(e=x(e)),e};jg=function(e,i){var o,s=e;if(s.timestamp=sm(),!(null==(o=Vm[0])?void 0:o.isFrozen())||s.type===Cm.FullSnapshot||s.type===Cm.IncrementalSnapshot&&s.data.source===Em.Mutation||Vm.forEach(function(e){return e.unfreeze()}),G)null==t||t(re(s),i);else if(K){var a={type:"rrweb",event:re(s),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(s.type===Cm.FullSnapshot)Z=s,te=0;else if(s.type===Cm.IncrementalSnapshot){if(s.data.source===Em.Mutation&&s.data.isAttachIframe)return;te++;var c=n&&te>=n,u=r&&s.timestamp-Z.timestamp>r;(c||u)&&Fg(!0)}};for(var ne,ie=function(e){jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.Mutation},e)})},oe=function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.Scroll},e)})},se=function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.CanvasMutation},e)})},ae=function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.AdoptedStyleSheet},e)})},ce=new qg({mutationCb:ie,adoptedStyleSheetCb:ae}),ue=new vg({mirror:Yg,mutationCb:ie,stylesheetManager:ce,recordCrossOriginIframes:L,wrappedEmit:jg}),le=Zi($||[]);!(ne=le()).done;){var he=ne.value;he.getMirror&&he.getMirror({nodeMirror:Yg,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}var de=new Hg;Ug=new zg({recordCanvas:P,mutationCb:se,win:window,blockClass:o,blockSelector:a,mirror:Yg,sampling:E.canvas,dataURLOptions:O});var pe=new yg({mutationCb:ie,scrollCb:oe,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:p,maskTextSelector:m,inlineStylesheet:v,maskInputOptions:Q,dataURLOptions:O,maskTextFn:k,maskInputFn:_,recordCanvas:P,inlineImages:H,sampling:E,slimDOMOptions:ee,iframeManager:ue,stylesheetManager:ce,canvasManager:Ug,keepIframeSrcFn:V,processedNodeManager:de},mirror:Yg});Fg=function(e){if(void 0===e&&(e=!1),M){jg({type:Cm.Meta,data:{href:window.location.href,width:um(),height:cm()}},e),ce.reset(),pe.init(),Vm.forEach(function(e){return e.lock()});var t=Ds(document,{mirror:Yg,blockClass:o,blockSelector:a,maskTextClass:p,maskTextSelector:m,inlineStylesheet:v,maskAllInputs:Q,maskTextFn:k,maskInputFn:_,slimDOM:ee,dataURLOptions:O,recordCanvas:P,inlineImages:H,onSerialize:function(e){vm(e,Yg)&&ue.addIframe(e),ym(e,Yg)&&ce.trackLinkElement(e),wm(e)&&pe.addShadowRoot(em.shadowRoot(e),document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),pe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ce.attachLinkElement(e,t)},keepIframeSrcFn:V});if(!t)return console.warn("Failed to snapshot the document");jg({type:Cm.FullSnapshot,data:{node:t,initialOffset:am(window)}},e),Vm.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ce.adoptStyleSheets(document.adoptedStyleSheets,Yg.getId(document))}};try{var fe=[],me=function(e){var t;return Wm(pg)({mutationCb:ie,mousemoveCb:function(e,t){return jg({type:Cm.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.MouseInteraction},e)})},scrollCb:oe,viewportResizeCb:function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.ViewportResize},e)})},inputCb:function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.Input},e)})},mediaInteractionCb:function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.MediaInteraction},e)})},styleSheetRuleCb:function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.StyleSheetRule},e)})},styleDeclarationCb:function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.StyleDeclaration},e)})},canvasMutationCb:se,fontCb:function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.Font},e)})},selectionCb:function(e){jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.Selection},e)})},customElementCb:function(e){jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:h,maskTextClass:p,maskTextSelector:m,maskInputOptions:Q,inlineStylesheet:v,sampling:E,recordDOM:M,recordCanvas:P,inlineImages:H,userTriggeredOnInput:F,collectFonts:z,doc:e,maskInputFn:_,maskTextFn:k,keepIframeSrcFn:V,blockSelector:a,slimDOMOptions:ee,dataURLOptions:O,mirror:Yg,iframeManager:ue,stylesheetManager:ce,shadowDomManager:pe,processedNodeManager:de,canvasManager:Ug,ignoreCSSAttributes:X,plugins:(null==(t=null==$?void 0:$.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return jg({type:Cm.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},S)};ue.addLoadListener(function(e){try{var t=e.contentDocument,r=me(t);fe.push(r);var n=ue.getObserverCleanup(e);ue.setObserverCleanup(e,function(){if(n)try{n()}catch(ve){}try{r();var e=fe.indexOf(r);-1!==e&&fe.splice(e,1),Jm(t)}catch(ve){}})}catch(i){console.warn(i)}});var ge=function(){Fg(),fe.push(me(document)),$g=!0};return"interactive"===document.readyState||"complete"===document.readyState?ge():(fe.push(tm("DOMContentLoaded",function(){jg({type:Cm.DomContentLoaded,data:{}}),"DOMContentLoaded"===N&&ge()})),fe.push(tm("load",function(){jg({type:Cm.Load,data:{}}),"load"===N&&ge()},window))),function(){fe.forEach(function(e){try{e()}catch(r){var t=String(r).toLowerCase();t.includes("cross-origin")||console.warn(r)}}),de.destroy(),$g=!1,$m()}}catch(ye){console.warn(ye)}}Xg.addCustomEvent=function(e,t){if(!$g)throw new Error("please add custom event after start recording");jg({type:Cm.Custom,data:{tag:e,payload:t}})},Xg.freezePage=function(){Vm.forEach(function(e){return e.freeze()})},Xg.takeFullSnapshot=function(e){if(!$g)throw new Error("please take full snapshot after start recording");Fg(e)},Xg.mirror=Yg,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(Vg||(Vg={})),Xg.addCustomEvent,Xg.freezePage,Xg.takeFullSnapshot;var Jg={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Gg={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Kg={},Zg=function(){return!!globalThis.Zone};function Qg(e){if(Kg[e])return Kg[e];var t=globalThis[e],r=t.prototype,n=e in Jg?Jg[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Gg?Gg[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"===typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!Zg())return Kg[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?Kg[e]=u:r}catch(l){return r}}var ev={};function tv(e,t,r){var n,i=e+"."+String(r);if(ev[i])return ev[i].call(t);var o=Qg(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(ev[i]=s,s.call(t)):t[r]}var rv={};function nv(e,t,r){var n=e+"."+String(r);if(rv[n])return rv[n].bind(t);var i=Qg(e),o=i[r];return"function"!==typeof o?t[r]:(rv[n]=o,o.bind(t))}function iv(e){return tv("Node",e,"childNodes")}function ov(e){return tv("Node",e,"parentNode")}function sv(e){return tv("Node",e,"parentElement")}function av(e){return tv("Node",e,"textContent")}function cv(e,t){return nv("Node",e,"contains")(t)}function uv(e){return nv("Node",e,"getRootNode")()}function lv(e){return e&&"host"in e?tv("ShadowRoot",e,"host"):null}function hv(e){return e.styleSheets}function dv(e){return e&&"shadowRoot"in e?tv("Element",e,"shadowRoot"):null}function pv(e,t){return tv("Element",e,"querySelector")(t)}function fv(e,t){return tv("Element",e,"querySelectorAll")(t)}function mv(){return Qg("MutationObserver").constructor}function gv(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var vv={childNodes:iv,parentNode:ov,parentElement:sv,textContent:av,contains:cv,getRootNode:uv,host:lv,styleSheets:hv,shadowRoot:dv,querySelector:pv,querySelectorAll:fv,mutationObserver:mv,patch:gv};function yv(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return yv(vv.parentNode(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return yv(vv.parentNode(e),t)}function wv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function bv(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return $i(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var _v={exports:{}},kv=String,Sv=function(){return{isColorSupported:!1,reset:kv,bold:kv,dim:kv,italic:kv,underline:kv,inverse:kv,hidden:kv,strikethrough:kv,black:kv,red:kv,green:kv,yellow:kv,blue:kv,magenta:kv,cyan:kv,white:kv,gray:kv,bgBlack:kv,bgRed:kv,bgGreen:kv,bgYellow:kv,bgBlue:kv,bgMagenta:kv,bgCyan:kv,bgWhite:kv}};_v.exports=Sv(),_v.exports.createColors=Sv;var xv=_v.exports,Cv={},Ev=Object.freeze(Object.defineProperty({__proto__:null,default:Cv},Symbol.toStringTag,{value:"Module"})),Av=bv(Ev),Ov=xv,Iv=Av,Tv=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof i&&("number"===typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}Hi(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Ov.isColorSupported),Iv&&e&&(r=Iv(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=Ov.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Gi(Error)),Mv=Tv;Tv.default=Tv;var Rv={};Rv.isClean=Symbol("isClean"),Rv.my=Symbol("my");var Pv={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Dv(e){return e[0].toUpperCase()+e.slice(1)}var Lv=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if("undefined"!==typeof e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&(n=e.raws[t],"undefined"!==typeof n))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Pv[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Dv(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Pv[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!==typeof t))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!==typeof t))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Bv=Lv;Lv.default=Lv;var Nv=Bv;function jv(e,t){var r=new Nv(t);r.stringify(e)}var Fv=jv;jv.default=jv;var Uv=Rv.isClean,zv=Rv.my,qv=Mv,Hv=Bv,$v=Fv;function Wv(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o="undefined"===typeof i?"undefined":Xi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Wv(e,r)}):("object"===o&&null!==i&&(i=Wv(i)),r[n]=i)}return r}var Vv=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Uv]=!1,this[zv]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Zi(e[t]);!(r=n()).done;){var i=r.value;"function"===typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Wv(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new qv(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Uv]){this[Uv]=!1;var e=this;while(e=e.parent)e[Uv]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"===typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new Hv;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Zi(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Xi(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=$v),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Ui(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Yv=Vv;Vv.default=Vv;var Xv=Yv,Jv=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=zi({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Hi(t,e),Ui(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Xv),Gv=Jv;Jv.default=Jv;var Kv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Zv=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=Kv[64*Math.random()|0];return t},Qv={nanoid:Zv},ey=Av.SourceMapConsumer,ty=Av.SourceMapGenerator,ry=Av.existsSync,ny=Av.readFileSync,iy=Av.dirname,oy=Av.join;function sy(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var ay=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=iy(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new ey(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return sy(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&("string"===typeof e.mappings||"string"===typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=iy(e),ry(e))return this.mapFile=e,ny(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if($i(t,ey))return ty.fromSourceMap(t).toString();if($i(t,ty))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=oy(iy(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),cy=ay;ay.default=ay;var uy=Av.SourceMapConsumer,ly=Av.SourceMapGenerator,hy=Av.fileURLToPath,dy=Av.pathToFileURL,py=Av.isAbsolute,fy=Av.resolve,my=Qv.nanoid,gy=Av,vy=Mv,yy=cy,wy=Symbol("fromOffsetCache"),by=Boolean(uy&&ly),_y=Boolean(fy&&py),ky=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Xi(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!_y||/^\w+:\/\//.test(t.from)||py(t.from)?this.file=t.from:this.file=fy(t.from)),_y&&by){var r=new yy(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+my(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===("undefined"===typeof t?"undefined":Xi(t))){var a=t,c=r;if("number"===typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"===typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return i=d?new vy(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new vy(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(dy&&(i.input.url=dy(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[wy])r=this[wy];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[wy]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:fy(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"===typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=py(a.source)?dy(a.source):new URL(a.source,this.map.consumer().sourceRoot||dy(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!hy)throw new Error("file: protocol is not available in this PostCSS build");c.file=hy(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=zi({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ui(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Sy=ky;ky.default=ky,gy&&gy.registerInput&&gy.registerInput(ky);var xy=Av.SourceMapConsumer,Cy=Av.SourceMapGenerator,Ey=Av.dirname,Ay=Av.relative,Oy=Av.resolve,Iy=Av.sep,Ty=Av.pathToFileURL,My=Sy,Ry=Boolean(xy&&Cy),Py=Boolean(Ey&&Oy&&Ay&&Iy),Dy=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"===typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"===typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Zi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Ey(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new xy(r.text),o.sourcesContent&&(o.sourcesContent=null)):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Py&&Ry&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Cy.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Cy({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Cy({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),t=a.match(/\n/g),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Ey(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=Ey(Oy(r,this.mapOpts.annotation)));var n=Ay(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new My(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Ty){var r=Ty(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Iy&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ly=Dy,By=Yv,Ny=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Hi(t,e),t}(By),jy=Ny;Ny.default=Ny;var Fy,Uy,zy,qy,Hy=Rv.isClean,$y=Rv.my,Wy=Gv,Vy=jy,Yy=Yv;function Xy(e){return e.map(function(e){return e.nodes&&(e.nodes=Xy(e.nodes)),delete e.source,e})}function Jy(e){if(e[Hy]=!1,e.proxyOf.nodes)for(var t,r=Zi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;Jy(n)}}var Gy=function(e){function t(){return e.apply(this,arguments)||this}Hi(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Zi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Zi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Zi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;this.indexes[n]+=1}return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"===typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"===typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"===typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Zi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Zi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=Xy(Fy(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Zi(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=Zi(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new Wy(e)]}else if(e.selector)e=[new Uy(e)];else if(e.name)e=[new zy(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Vy(e)]}var l=e.map(function(e){return e[$y]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Hy]&&Jy(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=Zi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Zi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Zi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Ui(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(Yy);Gy.registerParse=function(e){Fy=e},Gy.registerRule=function(e){Uy=e},Gy.registerAtRule=function(e){zy=e},Gy.registerRoot=function(e){qy=e};var Ky=Gy;Gy.default=Gy,Gy.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,zy.prototype):"rule"===e.type?Object.setPrototypeOf(e,Uy.prototype):"decl"===e.type?Object.setPrototypeOf(e,Wy.prototype):"comment"===e.type?Object.setPrototypeOf(e,Vy.prototype):"root"===e.type&&Object.setPrototypeOf(e,qy.prototype),e[$y]=!0,e.nodes&&e.nodes.forEach(function(e){Gy.rebuild(e)})};var Zy,Qy,ew=Ky,tw=function(e){function t(t){var r;return r=e.call(this,zi({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Hi(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new Zy(new Qy,this,e);return t.stringify()},t}(ew);tw.registerLazyResult=function(e){Zy=e},tw.registerProcessor=function(e){Qy=e};var rw=tw;tw.default=tw;var nw=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),iw=nw;nw.default=nw;var ow=iw,sw=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new ow(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Ui(e,[{key:"content",get:function(){return this.css}}]),e}(),aw=sw;sw.default=sw;var cw="'".charCodeAt(0),uw='"'.charCodeAt(0),lw="\\".charCodeAt(0),hw="/".charCodeAt(0),dw="\n".charCodeAt(0),pw=" ".charCodeAt(0),fw="\f".charCodeAt(0),mw="\t".charCodeAt(0),gw="\r".charCodeAt(0),vw="[".charCodeAt(0),yw="]".charCodeAt(0),ww="(".charCodeAt(0),bw=")".charCodeAt(0),_w="{".charCodeAt(0),kw="}".charCodeAt(0),Sw=";".charCodeAt(0),xw="*".charCodeAt(0),Cw=":".charCodeAt(0),Ew="@".charCodeAt(0),Aw=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ow=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Iw=/.[\r\n"'(/\\]/,Tw=/[\da-f]/i,Mw=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case dw:case pw:case mw:case gw:case fw:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===pw||r===dw||r===mw||r===gw||r===fw);h=["space",d.slice(m,n)],m=n-1;break;case vw:case yw:case _w:case kw:case Cw:case Sw:case bw:var y=String.fromCharCode(r);h=[y,y,m];break;case ww:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==cw&&l!==uw&&l!==pw&&l!==dw&&l!==mw&&l!==fw&&l!==gw){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===lw)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||Iw.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case cw:case uw:i=r===cw?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===lw)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case Ew:Aw.lastIndex=m+1,Aw.test(d),n=0===Aw.lastIndex?d.length-1:Aw.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case lw:n=m,s=!0;while(d.charCodeAt(n+1)===lw)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==hw&&r!==pw&&r!==dw&&r!==mw&&r!==gw&&r!==fw&&(n+=1,Tw.test(d.charAt(n)))){while(Tw.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===pw&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===hw&&d.charCodeAt(m+1)===xw?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):(Ow.lastIndex=m+1,Ow.test(d),n=0===Ow.lastIndex?d.length-1:Ow.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Rw=Ky,Pw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Hi(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Rw),Dw=Pw;Pw.default=Pw,Rw.registerAtRule(Pw);var Lw,Bw,Nw=Ky,jw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Hi(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Zi(i);!(o=s()).done;){var a=o.value;a.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new Lw(new Bw,this,e);return t.stringify()},t}(Nw);jw.registerLazyResult=function(e){Lw=e},jw.registerProcessor=function(e){Bw=e};var Fw=jw;jw.default=jw,Nw.registerRoot(jw);var Uw={comma:function(e){return Uw.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return Uw.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Zi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},zw=Uw;Uw.default=Uw;var qw=Ky,Hw=zw,$w=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Hi(t,e),Ui(t,[{key:"selectors",get:function(){return Hw.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(qw),Ww=$w;$w.default=$w,qw.registerRule($w);var Vw=Gv,Yw=Mw,Xw=jy,Jw=Dw,Gw=Fw,Kw=Ww,Zw={empty:!0,space:!0};function Qw(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var eb=function(){function e(e){this.input=e,this.root=new Gw,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new Jw;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){n=a.length-1,r=a[n];while(r&&"space"===r[0])r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Zi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Xw;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=Yw(this.input)},t.decl=function(e,t){var r=new Vw;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||Qw(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Kw;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",Zw[a]||Zw[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new Kw;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),tb=eb,rb=Ky,nb=tb,ib=Sy;function ob(e,t){var r=new ib(e,t),n=new nb(r);try{n.parse()}catch(i){throw i}return n.root}var sb=ob;ob.default=ob,rb.registerParse(ob);var ab=Rv.isClean,cb=Rv.my,ub=Ly,lb=Fv,hb=Ky,db=rw,pb=aw,fb=sb,mb=Fw,gb={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},vb={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},yb={Once:!0,postcssPlugin:!0,prepare:!0},wb=0;function bb(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&"function"===typeof e.then}function _b(e){var t=!1,r=gb[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,wb,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,wb,r+"Exit"]:[r,r+"Exit"]}function kb(e){var t;return t="document"===e.type?["Document",wb,"DocumentExit"]:"root"===e.type?["Root",wb,"RootExit"]:_b(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Sb(e){return e[ab]=!1,e.nodes&&e.nodes.forEach(function(e){return Sb(e)}),e}var xb={},Cb=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Xi(r))||null===r||"root"!==r.type&&"document"!==r.type)if($i(r,e)||$i(r,pb))i=Sb(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=fb;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[cb]&&hb.rebuild(i)}else i=Sb(r);this.result=new pb(t,i,n),this.helpers=zi({},xb,{postcss:xb,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&e.prepare?zi({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(yA){console&&console.error&&console.error(yA)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Zi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Xi(i)))for(var o in i){if(!vb[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!yb[o])if("object"===Xi(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"===typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return Ni(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return Qi(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!bb(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[ab])return[3,14];o[ab]=!0,s=[kb(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!bb(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return Qi(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Zi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,eo(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===("undefined"===typeof e?"undefined":Xi(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return bb(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"===typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=lb;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new ub(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Zi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(bb(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[ab])i[ab]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Zi(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Zi(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(bb(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[ab])return a[ab]=!0,void e.push(kb(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===wb)return void(r.nodes&&r.nodes.length&&(r[ab]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[ab]=!0;for(var r,n=_b(e),i=Zi(n);!(r=i()).done;){var o=r.value;if(o===wb)e.nodes&&e.each(function(e){e[ab]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ui(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Cb.registerPostcss=function(e){xb=e};var Eb=Cb;Cb.default=Cb,mb.registerLazyResult(Cb),db.registerLazyResult(Cb);var Ab=Ly,Ob=Fv,Ib=sb,Tb=aw,Mb=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Ob;this.result=new Tb(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Ab(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ui(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Ib;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Rb=Mb;Mb.default=Mb;var Pb=Rb,Db=Eb,Lb=rw,Bb=Fw,Nb=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Zi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Xi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Xi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Xi(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Db(this,e,t):new Pb(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),jb=Nb;Nb.default=Nb,Bb.registerProcessor(Nb),Lb.registerProcessor(Nb);var Fb=Gv,Ub=cy,zb=jy,qb=Dw,Hb=Sy,$b=Fw,Wb=Ww;function Vb(e,t){if(Array.isArray(e))return e.map(function(e){return Vb(e)});var r=e.inputs,n=Vi(e,["inputs"]);if(r){t=[];for(var i,o=Zi(r);!(i=o()).done;){var s=i.value,a=zi({},s,{__proto__:Hb.prototype});a.map&&(a.map=zi({},a.map,{__proto__:Ub.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Vb(e,t)})),n.source){var c=n.source,u=c.inputId,l=Vi(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new $b(n);if("decl"===n.type)return new Fb(n);if("rule"===n.type)return new Wb(n);if("comment"===n.type)return new zb(n);if("atrule"===n.type)return new qb(n);throw new Error("Unknown node type: "+e.type)}var Yb=Vb;Vb.default=Vb;var Xb=Mv,Jb=Gv,Gb=Eb,Kb=Ky,Zb=jb,Qb=Fv,e_=Yb,t_=rw,r_=iw,n_=jy,i_=Dw,o_=aw,s_=Sy,a_=sb,c_=zw,u_=Ww,l_=Fw,h_=Yv;function d_(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Zb(t)}d_.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new Zb).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return d_([i(r)]).process(e,t)},i},d_.stringify=Qb,d_.parse=a_,d_.fromJSON=e_,d_.list=c_,d_.comment=function(e){return new n_(e)},d_.atRule=function(e){return new i_(e)},d_.decl=function(e){return new Jb(e)},d_.rule=function(e){return new u_(e)},d_.root=function(e){return new l_(e)},d_.document=function(e){return new t_(e)},d_.CssSyntaxError=Xb,d_.Declaration=Jb,d_.Container=Kb,d_.Processor=Zb,d_.Document=t_,d_.Comment=n_,d_.Warning=r_,d_.AtRule=i_,d_.Result=o_,d_.Input=s_,d_.Rule=u_,d_.Root=l_,d_.Node=h_,Gb.registerPostcss(d_);var p_=d_;d_.default=d_;var f_=wv(p_);f_.stringify,f_.fromJSON,f_.plugin,f_.parse,f_.list,f_.document,f_.comment,f_.atRule,f_.rule,f_.decl,f_.root,f_.CssSyntaxError,f_.Declaration,f_.Container,f_.Processor,f_.Document,f_.Comment,f_.Warning,f_.AtRule,f_.Result,f_.Input,f_.Rule,f_.Root,f_.Node;var m_=Object.defineProperty,g_=function(e,t,r){return t in e?m_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},v_=function(e,t,r){return g_(e,"symbol"!==("undefined"===typeof t?"undefined":Xi(t))?t+"":t,r)};function y_(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var w_=function(){function e(e){v_(this,"fileName"),v_(this,"functionName"),v_(this,"lineNumber"),v_(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}var t=e.prototype;return t.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),b_=/(^|@)\S+:\d+/,__=/^\s*at .*(\S+:\d+|\(native\))/m,k_=/^(eval@)?(\[native code])?$/,S_={parse:function(e){return e?"undefined"!==typeof e.stacktrace||"undefined"!==typeof e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(__)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/,r=t.exec(e.replace(/[()]/g,""));if(!r)throw new Error("Cannot parse given url: "+e);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(__)},this);return t.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=r?t.replace(r[0],""):t;var n=t.split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new w_({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){var t=e.stack.split("\n").filter(function(e){return!e.match(k_)},this);return t.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new w_({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new w_({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new w_({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new w_({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(b_)&&!e.match(/^Error created at/)},this);return t.map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=t.shift()||"",i=n.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new w_({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function x_(e){if(!e||!e.outerHTML)return"";var t="";while(e.parentElement){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function C_(e){return"[object Object]"===Object.prototype.toString.call(e)}function E_(e,t){if(0===t)return!0;for(var r,n=Object.keys(e),i=Zi(n);!(r=i()).done;){var o=r.value;if(C_(e[o])&&E_(e[o],t-1))return!0}return!1}function A_(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var r=n.indexOf(this);~r?n.splice(r+1):n.push(this),~r?i.splice(r,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(o(t))return s(t);if("bigint"===("undefined"===typeof t?"undefined":Xi(t)))return t.toString()+"n";if($i(t,Event)){var a={};for(var c in t){var u=t[c];Array.isArray(u)?a[c]=x_(u.length?u[0]:null):a[c]=u}return a}return $i(t,Node)?$i(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:$i(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t});function o(e){return!!(C_(e)&&Object.keys(e).length>r.numOfKeysLimit)||("function"===typeof e||!(!C_(e)||!E_(e,r.depthOfLimit)))}function s(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}}var O_={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function I_(e,t,r){var n,i=r?Object.assign({},O_,r):O_,o=i.logger;if(!o)return function(){};n="string"===typeof o?t[o]:o;var s=0,a=!1,c=[];if(i.level.includes("error")){var u=function(t){var r=t.message,n=t.error,o=S_.parse(n).map(function(e){return e.toString()}),s=[A_(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",u),c.push(function(){t.removeEventListener("error",u)});var l=function(t){var r,n;$i(t.reason,Error)?(r=t.reason,n=[A_("Uncaught (in promise) "+r.name+": "+r.message,i.stringifyOptions)]):(r=new Error,n=[A_("Uncaught (in promise)",i.stringifyOptions),A_(t.reason,i.stringifyOptions)]);var o=S_.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",l),c.push(function(){t.removeEventListener("unhandledrejection",l)})}for(var h,d=Zi(i.level);!(h=d()).done;){var p=h.value;c.push(f(n,p))}return function(){c.forEach(function(e){return e()})};function f(t,r){var n=this;return t[r]?y_(t,r,function(t){var o=n;return function(){for(var n=arguments.length,c=new Array(n),u=0;u<n;u++)c[u]=arguments[u];if(t.apply(o,c),("assert"!==r||!c[0])&&!a){a=!0;try{var l=S_.parse(new Error).map(function(e){return e.toString()}).splice(1),h="assert"===r?c.slice(1):c,d=h.map(function(e){return A_(e,i.stringifyOptions)});s++,s<i.lengthThreshold?e({level:r,trace:l,payload:d}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[A_("The number of log records reached the threshold.")]})}catch(p){t.apply(void 0,[].concat(["rrweb logger error:",p],c))}finally{a=!1}}}}):function(){}}}var T_,M_,R_,P_="rrweb/console@1",D_=function(e){return{name:P_,observer:I_,options:e}},L_=Ai["setImmediate"],B_=Object.prototype.toString,N_="undefined"!==typeof L_?function(e){return L_(e)}:setTimeout;try{Object.defineProperty({},"x",{}),T_=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(yA){T_=function(e,t,r){return e[t]=r,e}}function j_(e,t){R_.add(e,t),M_||(M_=N_(R_.drain))}function F_(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"===typeof t&&t}function U_(){for(var e=0;e<this.chain.length;e++)z_(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function z_(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg),n===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=F_(n))?i.call(n,r.resolve,r.reject):r.resolve(n))}catch(yA){r.reject(yA)}}function q_(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=F_(e))?j_(function(){var n=new W_(r);try{t.call(e,function(){q_.apply(n,arguments)},function(){H_.apply(n,arguments)})}catch(yA){H_.call(n,yA)}}):(r.msg=e,r.state=1,r.chain.length>0&&j_(U_,r))}catch(yA){H_.call(new W_(r),yA)}}}function H_(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&j_(U_,t))}function $_(e,t,r,n){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)})(i)}function W_(e){this.def=e,this.triggered=!1}function V_(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Y_(e){if("function"!==typeof e)throw TypeError("Not a function");if(0!==this["__NPO__"])throw TypeError("Not a promise");this["__NPO__"]=1;var t=new V_(this);this["then"]=function(e,r){var n={success:"function"!==typeof e||e,failure:"function"===typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!==typeof e||"function"!==typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&j_(U_,t),n.promise},this["catch"]=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){q_.call(t,e)},function(e){H_.call(t,e)})}catch(yA){H_.call(t,yA)}}R_=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;e=t=M_=void 0;while(r)r.fn.call(r.self),r=r.next}}}();var X_,J_=T_({},"constructor",Y_,!1);Y_.prototype=J_,T_(J_,"__NPO__",0,!1),T_(Y_,"resolve",function(e){var t=this;return e&&"object"===typeof e&&1===e["__NPO__"]?e:new t(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");t(e)})}),T_(Y_,"reject",function(e){return new this(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");r(e)})}),T_(Y_,"all",function(e){var t=this;return"[object Array]"!==B_.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!==typeof r||"function"!==typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;$_(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),T_(Y_,"race",function(e){var t=this;return"[object Array]"!==B_.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!==typeof r||"function"!==typeof n)throw TypeError("Not a function");$_(t,e,function(e,t){r(t)},n)})}),X_="undefined"!==typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:Y_;var G_=864e5,K_=8e3,Z_=Array.prototype,Q_=Function.prototype,ek=Object.prototype,tk=Z_.slice,rk=ek.toString,nk=ek.hasOwnProperty,ik=Ai.console,ok=Ai.navigator,sk=Ai.document,ak=Ai.opera,ck=Ai.screen,uk=ok.userAgent,lk=Q_.bind,hk=Z_.forEach,dk=Z_.indexOf,pk=Z_.map,fk=Array.isArray,mk={},gk={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},vk={log:function(){if(Ti.DEBUG&&!gk.isUndefined(ik)&&ik)try{ik.log.apply(ik,arguments)}catch(yA){gk.each(arguments,function(e){ik.log(e)})}},warn:function(){if(Ti.DEBUG&&!gk.isUndefined(ik)&&ik){var e=["Mixpanel warning:"].concat(gk.toArray(arguments));try{ik.warn.apply(ik,e)}catch(yA){gk.each(e,function(e){ik.warn(e)})}}},error:function(){if(Ti.DEBUG&&!gk.isUndefined(ik)&&ik){var e=["Mixpanel error:"].concat(gk.toArray(arguments));try{ik.error.apply(ik,e)}catch(yA){gk.each(e,function(e){ik.error(e)})}}},critical:function(){if(!gk.isUndefined(ik)&&ik){var e=["Mixpanel error:"].concat(gk.toArray(arguments));try{ik.error.apply(ik,e)}catch(yA){gk.each(e,function(e){ik.error(e)})}}}},yk=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(vk,arguments)}},wk=function(e){return{log:yk(vk.log,e),error:yk(vk.error,e),critical:yk(vk.critical,e)}},bk=function(e){return function(){try{return e.apply(this,arguments)}catch(t){vk.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Ti.DEBUG&&vk.critical(t)}}},_k=function(e){var t=e.prototype;for(var r in t)"function"===typeof t[r]&&(t[r]=bk(t[r]))};gk.bind=function(e,t){var r,n;if(lk&&e.bind===lk)return lk.apply(e,tk.call(arguments,1));if(!gk.isFunction(e))throw new TypeError;return r=tk.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(tk.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(tk.call(arguments)));return Object(s)===s?s:o},n},gk.each=function(e,t,r){if(null!==e&&void 0!==e)if(hk&&e.forEach===hk)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===mk)return}else for(var o in e)if(nk.call(e,o)&&t.call(r,e[o],o,e)===mk)return},gk.extend=function(e){return gk.each(tk.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},gk.isArray=fk||function(e){return"[object Array]"===rk.call(e)},gk.isFunction=function(e){return"function"===typeof e},gk.isArguments=function(e){return!(!e||!nk.call(e,"callee"))},gk.toArray=function(e){return e?e.toArray?e.toArray():gk.isArray(e)||gk.isArguments(e)?tk.call(e):gk.values(e):[]},gk.map=function(e,t,r){if(pk&&e.map===pk)return e.map(t,r);var n=[];return gk.each(e,function(e){n.push(t.call(r,e))}),n},gk.keys=function(e){var t=[];return null===e||gk.each(e,function(e,r){t[t.length]=r}),t},gk.values=function(e){var t=[];return null===e||gk.each(e,function(e){t[t.length]=e}),t},gk.include=function(e,t){var r=!1;return null===e?r:dk&&e.indexOf===dk?-1!=e.indexOf(t):(gk.each(e,function(e){if(r||(r=e===t))return mk}),r)},gk.includes=function(e,t){return-1!==e.indexOf(t)},gk.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},gk.isObject=function(e){return e===Object(e)&&!gk.isArray(e)},gk.isEmptyObject=function(e){if(gk.isObject(e)){for(var t in e)if(nk.call(e,t))return!1;return!0}return!1},gk.isUndefined=function(e){return void 0===e},gk.isString=function(e){return"[object String]"==rk.call(e)},gk.isDate=function(e){return"[object Date]"==rk.call(e)},gk.isNumber=function(e){return"[object Number]"==rk.call(e)},gk.isElement=function(e){return!(!e||1!==e.nodeType)},gk.encodeDates=function(e){return gk.each(e,function(t,r){gk.isDate(t)?e[r]=gk.formatDate(t):gk.isObject(t)&&(e[r]=gk.encodeDates(t))}),e},gk.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},gk.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},gk.strip_empty_properties=function(e){var t={};return gk.each(e,function(e,r){gk.isString(e)&&e.length>0&&(t[r]=e)}),t},gk.truncate=function(e,t){var r;return"string"===typeof e?r=e.slice(0,t):gk.isArray(e)?(r=[],gk.each(e,function(e){r.push(gk.truncate(e,t))})):gk.isObject(e)?(r={},gk.each(e,function(e,n){r[n]=gk.truncate(e,t)})):r=e,r},gk.JSONEncode=function(){return function(e){var t=e,r=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},n=function(e,t){var i="",o=" ",s=0,a="",c="",u=0,l=i,h=[],d=t[e];switch(d&&"object"===typeof d&&"function"===typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return r(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i+=o,h=[],"[object Array]"===rk.apply(d)){for(u=d.length,s=0;s<u;s+=1)h[s]=n(s,d)||"null";return c=0===h.length?"[]":i?"[\n"+i+h.join(",\n"+i)+"\n"+l+"]":"["+h.join(",")+"]",i=l,c}for(a in d)nk.call(d,a)&&(c=n(a,d),c&&h.push(r(a)+(i?": ":":")+c));return c=0===h.length?"{}":i?"{"+h.join(",")+l+"}":"{"+h.join(",")+"}",i=l,c}};return n("",{"":t})}}(),gk.JSONDecode=function(){var e,t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},o=function(t){var n=new SyntaxError(t);throw n.at=e,n.text=r,n},s=function(n){return n&&n!==t&&o("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";"-"===t&&(r="-",s("-"));while(t>="0"&&t<="9")r+=t,s();if("."===t){r+=".";while(s()&&t>="0"&&t<="9")r+=t}if("e"===t||"E"===t){r+=t,s(),"-"!==t&&"+"!==t||(r+=t,s());while(t>="0"&&t<="9")r+=t,s()}if(e=+r,isFinite(e))return e;o("Bad number")},c=function(){var e,r,n,a="";if('"'===t)while(s()){if('"'===t)return s(),a;if("\\"===t)if(s(),"u"===t){for(n=0,r=0;r<4;r+=1){if(e=parseInt(s(),16),!isFinite(e))break;n=16*n+e}a+=String.fromCharCode(n)}else{if("string"!==typeof i[t])break;a+=i[t]}else a+=t}o("Bad string")},u=function(){while(t&&t<=" ")s()},l=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')},h=function(){var e=[];if("["===t){if(s("["),u(),"]"===t)return s("]"),e;while(t){if(e.push(n()),u(),"]"===t)return s("]"),e;s(","),u()}}o("Bad array")},d=function(){var e,r={};if("{"===t){if(s("{"),u(),"}"===t)return s("}"),r;while(t){if(e=c(),u(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),u(),"}"===t)return s("}"),r;s(","),u()}}o("Bad object")};return n=function(){switch(u(),t){case"{":return d();case"[":return h();case'"':return c();case"-":return a();default:return t>="0"&&t<="9"?a():l()}},function(i){var s;return r=i,e=0,t=" ",s=n(),u(),t&&o("Syntax error"),s}}(),gk.base64Encode=function(e){var t,r,n,i,o,s,a,c,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,h=0,d="",p=[];if(!e)return e;e=gk.utf8Encode(e);do{t=e.charCodeAt(l++),r=e.charCodeAt(l++),n=e.charCodeAt(l++),c=t<<16|r<<8|n,i=c>>18&63,o=c>>12&63,s=c>>6&63,a=63&c,p[h++]=u.charAt(i)+u.charAt(o)+u.charAt(s)+u.charAt(a)}while(l<e.length);switch(d=p.join(""),e.length%3){case 1:d=d.slice(0,-2)+"==";break;case 2:d=d.slice(0,-1)+"=";break}return d},gk.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",o=0;for(t=r=0,o=e.length,n=0;n<o;n++){var s=e.charCodeAt(n),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},gk.UUID=function(){try{return Ai["crypto"]["randomUUID"]()}catch(yA){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",gk.map(e,function(e){return e.toString(16)}).join("")}};var kk=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];gk.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<kk.length;t++)if(-1!==e.indexOf(kk[t]))return!0;return!1},gk.HTTPBuildQuery=function(e,t){var r,n,i=[];return gk.isUndefined(t)&&(t="&"),gk.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},gk.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r="[\\?&]"+t+"=([^&#]*)",n=new RegExp(r),i=n.exec(e);if(null===i||i&&"string"!==typeof i[1]&&i[1].length)return"";var o=i[1];try{o=decodeURIComponent(o)}catch(yA){vk.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},gk.cookie={get:function(e){for(var t=e+"=",r=sk.cookie.split(";"),n=0;n<r.length;n++){var i=r[n];while(" "==i.charAt(0))i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=gk.JSONDecode(gk.cookie.get(e))||{}}catch(yA){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=Fk(sk.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),sk.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=Fk(sk.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*60*60*1e3),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return sk.cookie=d,d},remove:function(e,t,r){gk.cookie.set(e,"",-1,t,!1,!1,r)}};var Sk=function(e){var t=!0;try{var r="__mplss_"+Lk(8),n="xyz";e.setItem(r,n),e.getItem(r)!==n&&(t=!1),e.removeItem(r)}catch(yA){t=!1}return t},xk=null,Ck=function(e,t){return null===xk||t?xk=Sk(e||Ai.localStorage):xk},Ek=null,Ak=function(e,t){return null===Ek||t?Ek=Sk(e||Ai.sessionStorage):Ek};function Ok(e,t,r){var n=function(e){vk.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||vk.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(yA){n(yA)}return null},parse:function(t){try{return gk.JSONDecode(e.getItem(t))||{}}catch(yA){}return null},set:function(t,r){try{e.setItem(t,r)}catch(yA){n(yA)}},remove:function(t){try{e.removeItem(t)}catch(yA){n(yA)}}}}var Ik=null,Tk=null;try{Ik=Ai.localStorage,Tk=Ai.sessionStorage}catch(wA){}gk.localStorage=Ok(Ik,"localStorage",Ck),gk.sessionStorage=Ok(Tk,"sessionStorage",Ak),gk.register_event=function(){var e=function(e,r,n,i,o){if(e)if(e.addEventListener&&!i)e.addEventListener(r,n,!!o);else{var s="on"+r,a=e[s];e[s]=t(e,n,a)}else vk.error("No valid element provided to register_event")};function t(e,t,n){var i=function(i){if(i=i||r(Ai.event),i){var o,s,a=!0;return gk.isFunction(n)&&(o=n(i)),s=t.call(e,i),!1!==o&&!1!==s||(a=!1),a}};return i}function r(e){return e&&(e.preventDefault=r.preventDefault,e.stopPropagation=r.stopPropagation),e}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},e}();var Mk=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');gk.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!sk.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,d,p=t.split(" "),f=[sk];for(c=0;c<p.length;c++)if(n=p[c].replace(/^\s+/,"").replace(/\s+$/,""),n.indexOf("#")>-1){i=n.split("#"),o=i[0];var m=i[1],g=sk.getElementById(m);if(!g||o&&g.nodeName.toLowerCase()!=o)return[];f=[g]}else if(n.indexOf(".")>-1){i=n.split("."),o=i[0];var v=i[1];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(f=[],d=0,u=0;u<s.length;u++)s[u].className&&gk.isString(s[u].className)&&r(s[u],v)&&(f[d++]=s[u])}else{var y=n.match(Mk);if(y){o=y[1];var w,b=y[2],_=y[3],k=y[4];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(f=[],d=0,_){case"=":w=function(e){return e.getAttribute(b)==k};break;case"~":w=function(e){return e.getAttribute(b).match(new RegExp("\\b"+k+"\\b"))};break;case"|":w=function(e){return e.getAttribute(b).match(new RegExp("^"+k+"-?"))};break;case"^":w=function(e){return 0===e.getAttribute(b).indexOf(k)};break;case"$":w=function(e){return e.getAttribute(b).lastIndexOf(k)==e.getAttribute(b).length-k.length};break;case"*":w=function(e){return e.getAttribute(b).indexOf(k)>-1};break;default:w=function(e){return e.getAttribute(b)}}for(f=[],d=0,u=0;u<s.length;u++)w(s[u])&&(f[d++]=s[u])}else{for(o=n,s=[],a=0,u=0;u<f.length;u++)for(h=f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];f=s}}return f}return function(e){return gk.isElement(e)?[e]:gk.isObject(e)&&!gk.isUndefined(e.length)?e:n.call(this,e)}}();var Rk=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Pk=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];gk.info={campaignParams:function(e){var t="",r={};return gk.each(Rk,function(n){t=gk.getQueryParam(sk.URL,n),t.length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return gk.each(Pk,function(r){e=gk.getQueryParam(sk.URL,r),e.length&&(t[r]=e)}),t},marketingParams:function(){return gk.extend(gk.info.campaignParams(),gk.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=gk.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n["$search_engine"]=t;var i=gk.getQueryParam(e,r);i.length&&(n["mp_keyword"]=i)}return n},browser:function(e,t,r){return t=t||"",r||gk.includes(e," OPR/")?gk.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":gk.includes(e,"IEMobile")||gk.includes(e,"WPDesktop")?"Internet Explorer Mobile":gk.includes(e,"SamsungBrowser/")?"Samsung Internet":gk.includes(e,"Edge")||gk.includes(e,"Edg/")?"Microsoft Edge":gk.includes(e,"FBIOS")?"Facebook Mobile":gk.includes(e,"Whale/")?"Whale Browser":gk.includes(e,"Chrome")?"Chrome":gk.includes(e,"CriOS")?"Chrome iOS":gk.includes(e,"UCWEB")||gk.includes(e,"UCBrowser")?"UC Browser":gk.includes(e,"FxiOS")?"Firefox iOS":gk.includes(t,"Apple")?gk.includes(e,"Mobile")?"Mobile Safari":"Safari":gk.includes(e,"Android")?"Android Mobile":gk.includes(e,"Konqueror")?"Konqueror":gk.includes(e,"Firefox")?"Firefox":gk.includes(e,"MSIE")||gk.includes(e,"Trident/")?"Internet Explorer":gk.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n=gk.info.browser(e,t,r),i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},o=i[n];if(void 0===o)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=uk;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return Ai.location.href},properties:function(e){return"object"!==typeof e&&(e={}),gk.extend(gk.strip_empty_properties({$os:gk.info.os(),$browser:gk.info.browser(uk,ok.vendor,ak),$referrer:sk.referrer,$referring_domain:gk.info.referringDomain(sk.referrer),$device:gk.info.device(uk)}),{$current_url:gk.info.currentUrl(),$browser_version:gk.info.browserVersion(uk,ok.vendor,ak),$screen_height:ck.height,$screen_width:ck.width,mp_lib:"web",$lib_version:Ti.LIB_VERSION,$insert_id:Lk(),time:gk.timestamp()/1e3},gk.strip_empty_properties(e))},people_properties:function(){return gk.extend(gk.strip_empty_properties({$os:gk.info.os(),$browser:gk.info.browser(uk,ok.vendor,ak)}),{$browser_version:gk.info.browserVersion(uk,ok.vendor,ak)})},mpPageViewProperties:function(){return gk.strip_empty_properties({current_page_title:sk.title,current_domain:Ai.location.hostname,current_url_path:Ai.location.pathname,current_url_protocol:Ai.location.protocol,current_url_search:Ai.location.search})}};var Dk=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new X_(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)})),r}},Lk=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Bk=function(){var e=gk.UUID().replace(/-/g,""),t=gk.UUID().replace(/-/g,"").substring(0,16),r="01";return"00-"+e+"-"+t+"-"+r},Nk=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,jk=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Fk=function(e){var t=jk,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Nk);var i=e.match(t);return i?i[0]:""},Uk=function(){var e=Ai.navigator["onLine"];return gk.isUndefined(e)||e},zk=function(){},qk=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},Hk=null,$k=null;"undefined"!==typeof JSON&&(Hk=JSON.stringify,$k=JSON.parse),Hk=Hk||gk.JSONEncode,$k=$k||gk.JSONDecode;var Wk=function(e,t,r){if(!Ai.CompressionStream)return!1;var n=gk.info.browser(e,t,r),i=gk.info.browserVersion(e,t,r);return!(("Safari"===n||"Mobile Safari"===n)&&i>=16.4&&i<16.6)};gk["info"]=gk.info,gk["info"]["browser"]=gk.info.browser,gk["info"]["browserVersion"]=gk.info.browserVersion,gk["info"]["device"]=gk.info.device,gk["info"]["properties"]=gk.info.properties,gk["isBlockedUA"]=gk.isBlockedUA,gk["isEmptyObject"]=gk.isEmptyObject,gk["isObject"]=gk.isObject,gk["JSONDecode"]=gk.JSONDecode,gk["JSONEncode"]=gk.JSONEncode,gk["toArray"]=gk.toArray,gk["NPO"]=Y_;var Vk="mixpanelBrowserDb",Yk="mixpanelRecordingEvents",Xk="mixpanelRecordingRegistry",Jk=1,Gk=[Yk,Xk],Kk=function(e){this.dbPromise=null,this.storeName=e};Kk.prototype._openDb=function(){return new X_(function(e,t){var r=Ai.indexedDB.open(Vk,Jk);r["onerror"]=function(){t(r.error)},r["onsuccess"]=function(){e(r.result)},r["onupgradeneeded"]=function(e){var t=e.target.result;Gk.forEach(function(e){t.createObjectStore(e)})}})},Kk.prototype.init=function(){return Ai.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof Ai["IDBDatabase"]?X_.resolve():X_.reject(e)})):X_.reject("indexedDB is not supported in this browser")},Kk.prototype.isInitialized=function(){return!!this.dbPromise},Kk.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new X_(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e["name"]?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):X_.reject(e)}.bind(this))},Kk.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},Kk.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},Kk.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},Kk.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var Zk="__mp_opt_in_out_";function Qk(e,t){hS(!0,e,t)}function eS(e,t){hS(!1,e,t)}function tS(e,t){return"1"===uS(e,t)}function rS(e,t){if(lS(t))return vk.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===uS(e,t);return r&&vk.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function nS(e){return dS(e,function(e){return this.get_config(e)})}function iS(e){return dS(e,function(e){return this._get_config(e)})}function oS(e){return dS(e,function(e){return this._get_config(e)})}function sS(e,t){t=t||{},aS(t).remove(cS(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function aS(e){return e=e||{},"localStorage"===e.persistenceType?gk.localStorage:gk.cookie}function cS(e,t){return t=t||{},(t.persistencePrefix||Zk)+e}function uS(e,t){return aS(t).get(cS(e,t))}function lS(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Ai,r=t["navigator"]||{},n=!1;return gk.each([r["doNotTrack"],r["msDoNotTrack"],t["doNotTrack"]],function(e){gk.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}function hS(e,t,r){gk.isString(t)&&t.length?(r=r||{},aS(r).set(cS(t,r),e?1:0,gk.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):vk.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function dS(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=rS(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(yA){vk.error("Unexpected error when checking tracking opt-out status: "+yA)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"===typeof c&&c(0)}}var pS=wk("lock"),fS=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||Ai.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||X_};fS.prototype.withLock=function(e,t){var r=this.promiseImpl;return new r(gk.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",h=s+":Y",d=s+":Z",p=function(e){if((new Date).getTime()-o>c)return pS.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(d),u.removeItem(h),void g();setTimeout(function(){try{e()}catch(yA){n(yA)}},a*(Math.random()+.1))},f=function(e,t){e()?t():p(function(){f(e,t)})},m=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(Ck(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){u.setItem(l,i),f(m,function(){u.getItem(l)!==i?p(function(){u.getItem(h)===i?f(function(){return!u.getItem(d)},v):g()}):v()})},v=function(){u.setItem(d,"1");var t=function(){u.removeItem(d),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!Ck(u,!0))throw new Error("localStorage support check failed");g()}catch(yA){n(yA)}},this))};var mS=function(e){this.storage=e||Ai.localStorage};mS.prototype.init=function(){return X_.resolve()},mS.prototype.isInitialized=function(){return!0},mS.prototype.setItem=function(e,t){return new X_(gk.bind(function(r,n){try{this.storage.setItem(e,Hk(t))}catch(i){n(i)}r()},this))},mS.prototype.getItem=function(e){return new X_(gk.bind(function(t,r){var n;try{n=$k(this.storage.getItem(e))}catch(i){r(i)}t(n)},this))},mS.prototype.removeItem=function(e){return new X_(gk.bind(function(t,r){try{this.storage.removeItem(e)}catch(n){r(n)}t()},this))};var gS=wk("batch"),vS=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new mS,this.lock=new fS(e,{storage:t.sharedLockStorage||Ai.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||gk.bind(gS.error,gS),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=Dk(gk.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=gk.bind(function(e){return this._enqueuePersisted([e])},this)};vS.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?X_.resolve():this.queueStorage.init().then(gk.bind(function(){this.initialized=!0},this)).catch(gk.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},vS.prototype.enqueue=function(e,t){var r={id:Lk(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),X_.resolve(!0))},vS.prototype._enqueuePersisted=function(e){var t=gk.bind(function(){return this.ensureInit().then(gk.bind(function(){return this.readFromStorage()},this)).then(gk.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(gk.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(gk.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(gk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},vS.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(gk.bind(function(){return this.readFromStorage()},this)).then(gk.bind(function(r){if(r.length){var n={};gk.each(t,function(e){n[e["id"]]=!0});for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o["flushAfter"]&&!n[o["id"]]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):X_.resolve(t)};var yS=function(e,t){var r=[];return gk.each(e,function(e){e["id"]&&!t[e["id"]]&&r.push(e)}),r};vS.prototype.removeItemsByID=function(e){var t={};if(gk.each(e,function(e){t[e]=!0}),this.memQueue=yS(this.memQueue,t),this.usePersistence){var r=gk.bind(function(){return this.ensureInit().then(gk.bind(function(){return this.readFromStorage()},this)).then(gk.bind(function(e){return e=yS(e,t),this.saveToStorage(e)},this)).then(gk.bind(function(){return this.readFromStorage()},this)).then(gk.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n["id"]&&t[n["id"]])throw new Error("Item not removed from storage")}return!0},this)).catch(gk.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(gk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!Ck(this.lock.storage,!0)&&r().then(gk.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(gk.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return X_.resolve(!0)};var wS=function(e,t){var r=[];return gk.each(e,function(e){var n=e["id"];if(n in t){var i=t[n];null!==i&&(e["payload"]=i,r.push(e))}else r.push(e)}),r};vS.prototype.updatePayloads=function(e){return this.memQueue=wS(this.memQueue,e),this.usePersistence?this.lock.withLock(gk.bind(function(){return this.ensureInit().then(gk.bind(function(){return this.readFromStorage()},this)).then(gk.bind(function(t){return t=wS(t,e),this.saveToStorage(t)},this)).catch(gk.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(gk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):X_.resolve(!0)},vS.prototype.readFromStorage=function(){return this.ensureInit().then(gk.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(gk.bind(function(e){return e&&(gk.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(gk.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},vS.prototype.saveToStorage=function(e){return this.ensureInit().then(gk.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(gk.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},vS.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(gk.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):X_.resolve()};var bS=6e5,_S=wk("batch"),kS=function(e,t){this.errorReporter=t.errorReporter,this.queue=new vS(e,{errorReporter:gk.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig["batch_size"],this.flushInterval=this.libConfig["batch_flush_interval_ms"],this.stopped=!this.libConfig["batch_autostart"],this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};kS.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},kS.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},kS.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},kS.prototype.clear=function(){return this.queue.clear()},kS.prototype.resetBatchSize=function(){this.batchSize=this.libConfig["batch_size"]},kS.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig["batch_flush_interval_ms"])},kS.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(gk.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},kS.prototype.sendRequestPromise=function(e,t){return new X_(gk.bind(function(r){this.sendRequest(e,t,r)},this))},kS.prototype.flush=function(e){if(this.requestInProgress)return _S.log("Flush: Request already in progress"),X_.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig["batch_request_timeout_ms"],r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(gk.bind(function(i){var o=i.length===n,s=[],a={};if(gk.each(i,function(e){var t=e["payload"];if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t["event"]&&t["properties"]&&(t["properties"]=gk.extend({},t["properties"],{mp_sent_by_lib_version:Ti.LIB_VERSION}));var r=!0,n=e["id"];n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e["id"]]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),X_.resolve();var c=gk.bind(function(){return this.queue.removeItemsByID(gk.map(i,function(e){return e["id"]})).then(gk.bind(function(e){return gk.each(i,gk.bind(function(e){var t=e["id"];t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),X_.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),X_.resolve())},this))},this),u=gk.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(gk.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(gk.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!Uk()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(bS,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),X_.resolve()}if(gk.isObject(o)&&413===o.httpStatusCode){if(i.length>1){var u=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),X_.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(yA){this.reportError("Error handling API response",yA),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),_S.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(gk.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},kS.prototype.reportError=function(e,t){if(_S.error.apply(_S.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){_S.error(t)}};var SS=function(e){var t=Date.now();return!e||t>e["maxExpires"]||t>e["idleExpires"]},xS=250,CS="change",ES="click",AS="hashchange",OS="input",IS="load",TS="mp_locationchange",MS="popstate",RS="scrollend",PS="scroll",DS="select",LS="submit",BS="toggle",NS="visibilitychange",jS=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],FS=["mp-include"],US=["mp-no-track"],zS=US.concat(["mp-sensitive"]),qS=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],HS={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},$S={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},WS={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},VS=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],YS=5,XS=wk("autocapture");function JS(e){for(var t={},r=GS(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function GS(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function KS(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!ix(e));return e}function ZS(e,t,r,n,i,o){var s={$classes:GS(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s["$id"]=a),hx(e,t,i,o)&&gk.each(qS.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);dx(n)&&(s["$attr-"+t]=n)}});var c=1,u=1,l=e;while(l=KS(l))c++,l.tagName===e.tagName&&u++;return s["$nth_child"]=c,s["$nth_of_type"]=u,s}function QS(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};gk.each(i,function(e){l[e]=!0});var h=null,d="undefined"===typeof e.target?e.srcElement:e.target;if(sx(d)&&(d=d.parentNode),ux(d,e)&&rx(d,e,r,n)&&!nx(d,e,o,s)){var p=[d],f=d;while(f.parentNode&&!ox(f,"body"))p.push(f.parentNode),f=f.parentNode;var m,g=[],v=!1;if(gk.each(p,function(t){var i=hx(t,e,r,n);l["href"]||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&dx(m)&&m),nx(t,e,o,s)&&(v=!0),g.push(ZS(t,e,l,c,r,n))},this),!v){var y=sk["documentElement"];if(h={$event_type:e.type,$host:Ai.location.host,$pathname:Ai.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y["clientHeight"],Ai["innerHeight"]||0),$viewportWidth:Math.max(y["clientWidth"],Ai["innerWidth"]||0),$pageHeight:sk["body"]["offsetHeight"]||0,$pageWidth:sk["body"]["offsetWidth"]||0},gk.each(c,function(e){if(!l[e]&&d.hasAttribute(e)){var t=d.getAttribute(e);dx(t)&&(h["$el_attr__"+e]=t)}}),a&&(w=ex(d,e,r,n),w&&w.length&&(h["$el_text"]=w)),e.type===ES&&(gk.each(jS,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h["$captured_for_heatmap"]=!0),d=tx(e)),a){var w=ex(d,e,r,n);w&&w.length&&(h["$el_text"]=w)}if(d){if(!rx(d,e,r,n)||nx(d,e,o,s))return null;var b=ZS(d,e,l,c,r,n);h["$target"]=b,h["$el_classes"]=b["$classes"],gk.extend(h,gk.strip_empty_properties({$el_id:b["$id"],$el_tag_name:b["$tag_name"]}))}}}return h}function ex(e,t,r,n){var i="";return hx(e,t,r,n)&&e.childNodes&&e.childNodes.length&&gk.each(e.childNodes,function(e){sx(e)&&e.textContent&&(i+=gk.trim(e.textContent).split(/(\s+)/).filter(dx).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),gk.trim(i)}function tx(e){for(var t=e.target,r=e["composedPath"](),n=0;n<r.length;n++){var i=r[n];if(ox(i,"a")||ox(i,"button")||ox(i,"input")||ox(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}function rx(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(yA){return XS.critical("Error while checking element in allowElementCallback",yA),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(yA){XS.critical("Error while checking selector: "+o,yA)}}return!1}function nx(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(yA){return XS.critical("Error while checking element in blockElementCallback",yA),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(yA){XS.critical("Error while checking selector: "+o,yA)}}var s=JS(e);for(i=0;i<US.length;i++)if(s[US[i]])return!0;return!1}function ix(e){return e&&1===e.nodeType}function ox(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function sx(e){return e&&3===e.nodeType}function ax(){try{var e=sk.createElement("div");return!!e["matches"]}catch(yA){return!1}}function cx(){return"undefined"!==typeof WeakSet}function ux(e,t){if(!e||ox(e,"html")||!ix(e))return!1;var r=e.tagName.toLowerCase();switch(r){case"form":return t.type===LS;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===CS:t.type===ES;case"select":case"textarea":return t.type===CS;default:return t.type===ES}}function lx(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"===typeof t){var r=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(r.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function hx(e,t,r,n){var i;if(!rx(e,t,r,n))return!1;for(var o=e;o.parentNode&&!ox(o,"body");o=o.parentNode){var s=JS(o);for(i=0;i<zS.length;i++)if(s[zS[i]])return!1}var a=JS(e);for(i=0;i<FS.length;i++)if(a[FS[i]])return!0;if(ox(e,"input")||ox(e,"select")||ox(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"===typeof c)switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}return!lx(e)}function dx(e){if(null===e||gk.isUndefined(e))return!1;if("string"===typeof e){e=gk.trim(e);var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var r=/(^\d{3}-?\d{2}-?\d{4}$)/;if(r.test(e))return!1}return!0}function px(e){var t="onscrollend"in Ai,r=bk(e),n=RS;if(!t){var i=null,o=100;r=bk(function(){clearTimeout(i),i=setTimeout(e,o)}),n=PS}return{listener:r,eventType:n}}function fx(e){for(var t=0;t<VS.length;t++)if(e.hasAttribute(VS[t]))return!0;return!1}function mx(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return HS[r]}function gx(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||(!!e.isContentEditable||(!!(e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend)||(!!fx(e)||(!!mx(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function vx(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if($S[t])return!0;if(gx(e))return!1;var r=e.parentElement,n=0;while(r&&n<YS){if(gx(r))return!1;if(r.getRootNode&&r.getRootNode()!==sk){var i=r.getRootNode();if(i.host&&gx(i.host))return!1}r=r.parentElement,n++}return!!WS[t]}function yx(e){return"composedPath"in e?e["composedPath"]():[]}function wx(e){var t=yx(e);return t&&t.length>0?t[0]:e["target"]||e["srcElement"]}var bx=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",_x="data-rr-is-password",kx=["password","email","tel","hidden"];function Sx(e){return e?Array.isArray(e)?e:[e]:[]}function xx(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=Sx(r).join(","),t.input.unmaskingSelector=Sx(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=Sx(o);if(c)if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=Sx(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}function Cx(e,t){return!!t&&!!e.closest(t)}function Ex(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==kx.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!(!n||""===n||"off"===n)||(!!e.hasAttribute(_x)||(!!lx(e)||(t.input.maskAll?!Cx(e,t.input.unmaskingSelector):!!Cx(e,t.input.maskingSelector)||!!Cx(e,bx))))}function Ax(e,t){return!!e&&(!(!t.text._legacyClassRegex||!yv(e,t.text._legacyClassRegex))||(t.text.maskAll?!Cx(e,t.text.unmaskingSelector):!!Cx(e,t.text.maskingSelector)||!!Cx(e,bx)))}var Ox=wk("network-plugin");function Ix(e){return Math.round(Date.now()-e.performance.now())}var Tx={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function Mx(e){return"navigation"===e.entryType}function Rx(e){return"resource"===e.entryType}function Px(e,t){for(var r=e.length,n=r-1;n>=0;n-=1)if(t(e[n]))return e[n]}function Dx(e,t,r){if(!(t in e)||"function"!==typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}var Lx=1048576;function Bx(e){return e&&"string"===typeof e&&e.length>Lx?(Ox.error("Body truncated from "+e.length+" to "+Lx+" characters"),e.substring(0,Lx)+"... [truncated]"):e}function Nx(e,t,r){if(!t.PerformanceObserver)return Ox.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return Mx(e)||Rx(e)&&r.initiatorTypes.includes(e.initiatorType)});e({requests:n.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:Ix(t)}}),isInitial:!0})}var i=new t.PerformanceObserver(function(n){var i=n.getEntries().filter(function(e){return Rx(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType});e({requests:i.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:Ix(t)}})})});return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}function jx(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())}function Fx(e,t,r){return!(!t[e]||0===t[e].length)&&qk(r,t[e])}function Ux(e){if(null===e||void 0===e)return null;var t;if("string"===typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=gk.HTTPBuildQuery(e);else{if(!gk.isObject(e))return"Cannot read body of type "+typeof e;try{t=JSON.stringify(e)}catch(r){return"Failed to stringify response object"}}return Bx(t)}function zx(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(Bx(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(n){clearTimeout(r),t("Failed to read body: "+String(n))}})}function qx(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return Ox.error("Cannot find performance entry"),Promise.resolve(null);var s=e.performance.getEntriesByName(r),a=Px(s,function(e){return Rx(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return a?Promise.resolve(a):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return qx(e,t,r,n,i,o+1)})}function Hx(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=Dx(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,c){void 0===s&&(s=!0);var u,l,h=this,d=new Request(o,{method:i}),p={},f={},m=h.setRequestHeader.bind(h);h.setRequestHeader=function(e,t){return jx("request",r.recordHeaders,e)&&(f[e]=t),m(e,t)},p.requestHeaders=f;var g=h.send.bind(h);h.send=function(e){return Fx("request",r.recordBodyUrls,d.url)&&(p.requestBody=Ux(e)),u=t.performance.now(),g(e)},h.addEventListener("readystatechange",function(){if(h.readyState===h.DONE){l=t.performance.now();var n={},i=h.getAllResponseHeaders();if(i){var o=i.trim().split(/[\r\n]+/);o.forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&jx("response",r.recordHeaders,i)&&(n[i]=o)}}})}p.responseHeaders=n,Fx("response",r.recordBodyUrls,d.url)&&(p.responseBody=Ux(h.response)),qx(t,"xmlhttprequest",d.url,u,l).then(function(r){if(r){var n={url:r.name,method:d.method,initiatorType:r.initiatorType,status:h.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:Ix(t),requestHeaders:p.requestHeaders,requestBody:p.requestBody,responseHeaders:p.responseHeaders,responseBody:p.responseBody};e({requests:[n]})}else Ox.error("Failed to get performance entry for XHR request to "+d.url)}).catch(function(e){Ox.error("Error recording XHR request to "+d.url+": "+String(e))})}}),n.call(h,i,o,s,a,c)}});return function(){n()}}function $x(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=Dx(t,"fetch",function(n){return function(){var i,o,s,a,c=new Request(arguments[0],arguments[1]),u={},l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var d={};c.headers.forEach(function(e,t){jx("request",r.recordHeaders,t)&&(d[t]=e)}),u.requestHeaders=d,Fx("request",r.recordBodyUrls,c.url)&&(l=zx(c).then(function(e){u.requestBody=e})),o=t.performance.now(),a=n.apply(t,arguments).then(function(e){i=e,s=t.performance.now();var n={};return i.headers.forEach(function(e,t){jx("response",r.recordHeaders,t)&&(n[t]=e)}),u.responseHeaders=n,Fx("response",r.recordBodyUrls,c.url)&&(h=zx(i).then(function(e){u.responseBody=e})),i})}catch(p){a=Promise.reject(p)}return Promise.all([l,h,a]).then(function(){return qx(t,"fetch",c.url,o,s)}).then(function(r){if(r){var n={url:r.name,method:c.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:Ix(t),requestHeaders:u.requestHeaders,requestBody:u.requestBody,responseHeaders:u.responseHeaders,responseBody:u.responseBody};e({requests:[n]})}else Ox.error("Failed to get performance entry for fetch request to "+c.url)}).catch(function(e){Ox.error("Error recording fetch request to "+c.url+": "+String(e))}),a}});return function(){n()}}function Wx(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},Tx.recordHeaders,r.recordHeaders||{}),i=Object.assign({},Tx.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},Tx,r),s=function(t){var r=t.requests.filter(function(e){var t=qk(e.url,o.ignoreRequestUrls||[]);return!t&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=Nx(s,t,o),c=Hx(s,t,o),u=$x(s,t,o);return function(){a(),c(),u()}}var Vx="rrweb/network@1.mp",Yx=function(e){return{name:Vx,observer:Wx,options:e}},Xx=wk("recorder"),Jx=Ai["CompressionStream"],Gx={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Kx=new Set([Em.MouseMove,Em.MouseInteraction,Em.Scroll,Em.ViewportResize,Em.Input,Em.TouchMove,Em.MediaInteraction,Em.Drag,Em.Selection]);function Zx(e){return e.type===Cm.IncrementalSnapshot&&Kx.has(e.data.source)}var Qx=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||zk,this._onMaxLengthReached=e.onMaxLengthReached||zk,this._onBatchSent=e.onBatchSent||zk,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=G_,this.recordMinMs=0;var t=Ck(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Kk(Yk),this.batcher=new kS(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Gx,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:xS,sharedLockTimeoutMS:1e4})};Qx.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e["$device_id"]=t);var r=this._mixpanel.get_property("$user_id");return r&&(e["$user_id"]=r),e},Qx.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},Qx.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Qx.prototype.get_config=function(e){return this.getConfig(e)},Qx.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>G_&&(this.recordMaxMs=G_,Xx.critical("record_max_ms cannot be greater than "+G_+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=gk.info.currentUrl(),this.replayStartUrl=gk.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=xx(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push(Yx(o))}this.getConfig("record_console")&&i.push(D_({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(Zx(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(Ex,n),maskTextFn:this._getMaskFn(Ax,n),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(yA){this.reportError("Unexpected error when starting rrweb recording.",yA)}if("function"!==typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var a=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),a)}else Xx.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Qx.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(yA){this.reportError("Error with rrweb stopRecording",yA)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Qx.prototype.isRrwebStopped=function(){return null===this._stopRecording},Qx.prototype.flushEventsWithOptOut=function(e,t,r){var n=function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,r,n)},Qx.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},Qx.deserialize=function(e,t){var r=new Qx(gk.extend({},t,{replayId:e["replayId"],batchStartUrl:e["batchStartUrl"],replayStartUrl:e["replayStartUrl"],idleExpires:e["idleExpires"],maxExpires:e["maxExpires"],replayStartTime:e["replayStartTime"],lastEventTimestamp:e["lastEventTimestamp"],seqNo:e["seqNo"],sharedLockStorage:t.sharedLockStorage}));return r},Qx.prototype._getApiRoute=function(){return this.getConfig("api_routes")["record"]},Qx.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=gk.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");Ai["fetch"](o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},Qx.prototype._flushEvents=nS(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,c=0;c<n;c++)o=Math.min(o,e[c].timestamp),s=Math.max(s,e[c].timestamp),e[c].type===Cm.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var u=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:Ti.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),Wk(uk,ok.vendor,ak)){var d=new Blob([h],{type:"application/json"}).stream(),p=d.pipeThrough(new Jx("gzip"));new Response(p).blob().then(function(e){l["format"]="gzip",this._sendRequest(i,l,e,r)}.bind(this))}else l["format"]="body",this._sendRequest(i,l,h,r)}}),Qx.prototype.reportError=function(e,t){Xx.error.apply(Xx.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Xx.error(t)}},Qx.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Qx.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>K_?(Xx.critical("record_min_ms cannot be greater than "+K_+"ms. Capping value."),K_):e},Qx.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(yA){this.reportError("Error checking if text should be masked, defaulting to masked",yA)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};var eC=function(e){this.idb=new Kk(Xk),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};eC.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},eC.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},eC.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return X_.resolve();var t=e["tabId"];return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),X_.resolve())},eC.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return SS(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):X_.resolve(null)},eC.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},eC.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e["maxExpires"]=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},eC.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):X_.resolve()},eC.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return SS(e)}).map(function(e){var t=Qx.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return t.unloadPersistedData().then(function(){return this.idb.removeItem(e["tabId"])}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return X_.all(t)}.bind(this)).catch(this.handleError.bind(this)):X_.resolve([])};var tC=wk("recorder"),rC=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Xg,this.sharedLockStorage=r,this.recordingRegistry=new eC({mixpanelInstance:this.mixpanelInstance,errorReporter:tC.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function nC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}rC.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){tC.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){tC.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this["__flushPromise"]=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:gk.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Qx.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Qx(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}tC.log("Recording already in progress, skipping startRecording.")},rC.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},rC.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},rC.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return X_.resolve()},rC.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),X_.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(tC.log("No resumable recording found."),null)}.bind(this))},rC.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},rC.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},rC.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(rC.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),Ai[Ri]=rC;var iC,oC={exports:{}};oC.exports;function sC(){return iC||(iC=1,function(e){(function(t,r){e.exports=r()})(0,function(){function e(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var t={},r={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||"undefined"===typeof t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if("undefined"===typeof e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null===n||void 0===n)return r;if(n=n[i[o]],void 0===n)return r}return n},missing:function(){for(var e=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=t.apply({var:i},this);null!==o&&""!==o||e.push(i)}return e},missing_some:function(e,r){var n=t.apply({missing:r},this);return r.length-n.length>=e?[]:n}};return t.is_logic=function(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},t.truthy=function(e){return(!Array.isArray(e)||0!==e.length)&&!!e},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,n){if(Array.isArray(e))return e.map(function(e){return t.apply(e,n)});if(!t.is_logic(e))return e;var i,o,s,a,c,u=t.get_operator(e),l=e[u];if(Array.isArray(l)||(l=[l]),"if"===u||"?:"==u){for(i=0;i<l.length-1;i+=2)if(t.truthy(t.apply(l[i],n)))return t.apply(l[i+1],n);return l.length===i+1?t.apply(l[i],n):null}if("and"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),!t.truthy(o))return o;return o}if("or"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),t.truthy(o))return o;return o}if("filter"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.filter(function(e){return t.truthy(t.apply(s,e))}):[];if("map"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.map(function(e){return t.apply(s,e)}):[];if("reduce"===u)return a=t.apply(l[0],n),s=l[1],c="undefined"!==typeof l[2]?t.apply(l[2],n):null,Array.isArray(a)?a.reduce(function(e,r){return t.apply(s,{current:r,accumulator:e})},c):c;if("all"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!t.truthy(t.apply(s,a[i])))return!1;return!0}if("none"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!1;return!0}if("some"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!0;return!1}if(l=l.map(function(e){return t.apply(e,n)}),r.hasOwnProperty(u)&&"function"===typeof r[u])return r[u].apply(n,l);if(u.indexOf(".")>0){var h=String(u).split("."),d=r;for(i=0;i<h.length;i++){if(!d.hasOwnProperty(h[i]))throw new Error("Unrecognized operation "+u+" (failed at "+h.slice(0,i+1).join(".")+")");d=d[h[i]]}return d.apply(n,l)}throw new Error("Unrecognized operation "+u)},t.uses_data=function(r){var n=[];if(t.is_logic(r)){var i=t.get_operator(r),o=r[i];Array.isArray(o)||(o=[o]),"var"===i?n.push(o[0]):o.forEach(function(e){n.push.apply(n,t.uses_data(e))})}return e(n)},t.add_operation=function(e,t){r[e]=t},t.rm_operation=function(e){delete r[e]},t.rule_like=function(e,r){if(r===e)return!0;if("@"===r)return!0;if("number"===r)return"number"===typeof e;if("string"===r)return"string"===typeof e;if("array"===r)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(r)){if(t.is_logic(e)){var n=t.get_operator(r),i=t.get_operator(e);if("@"===n||n===i)return t.rule_like(t.get_values(e,!1),t.get_values(r,!1))}return!1}if(Array.isArray(r)){if(Array.isArray(e)){if(r.length!==e.length)return!1;for(var o=0;o<r.length;o+=1)if(!t.rule_like(e[o],r[o]))return!1;return!0}return!1}return!1},t})}(oC)),oC.exports}var aC=sC(),cC=nC(aC),uC=function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!gk.isEmptyObject(n))try{i=cC.apply(n,t||{})}catch(o){return{matches:!1,error:o.toString()}}return{matches:i}},lC={};lC["eventMatchesCriteria"]=uC,Ai[Mi]=Promise.resolve(lC);var hC=30,dC=1e3,pC=4,fC=!1;function mC(){this.clicks=[]}function gC(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}mC.prototype.isRageClick=function(e,t){t=t||{};var r=t["threshold_px"]||hC,n=t["timeout_ms"]||dC,i=t["click_count"]||pC,o=t["interactive_elements_only"]||fC;if(o){var s=wx(e);if(!s||vx(s))return!1}var a=Date.now(),c=e["pageX"],u=e["pageY"],l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<n&&Math.sqrt(Math.pow(c-l.x,2)+Math.pow(u-l.y,2))<r){if(this.clicks.push({x:c,y:u,timestamp:a}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:c,y:u,timestamp:a}];return!1},gC.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return wx(e)},gC.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=yx(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},gC.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(n){XS.critical("Error while observing shadow root",n)}}},gC.prototype.start=function(){this.observedShadowRoots||(cx()?this.observedShadowRoots=new WeakSet:XS.critical("Shadow DOM observation unavailable: WeakSet not supported"))},gC.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(t){XS.critical("Error while disconnecting shadow DOM observer",t)}this.shadowObservers=[],this.observedShadowRoots=null}};var vC=500,yC=[CS,OS,LS,DS,BS],wC=[RS],bC=[AS],_C={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function kC(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}kC.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e["target"]||e["srcElement"]),!(!t||vx(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},kC.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},kC.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e["timeout_ms"],r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},kC.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},kC.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},kC.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},kC.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e["timeout_ms"],r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},kC.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;yC.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),bC.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),wC.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,_C)}catch(r){XS.critical("Error while setting up mutation observer",r)}if(window.customElements)try{this.shadowDOMObserver=new gC(function(){e.recordChangeEvent()},_C),this.shadowDOMObserver.start()}catch(r){XS.critical("Error while setting up shadow DOM observer",r),this.shadowDOMObserver=null}}},kC.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(r){XS.critical("Error while removing event listener",r)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(r){XS.critical("Error while disconnecting mutation observer",r)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(r){XS.critical("Error while stopping shadow DOM observer",r)}this.shadowDOMObserver=null}}};var SC="autocapture",xC="track_pageview",CC="full-url",EC="url-with-path-and-query-string",AC="url-with-path",OC="allow_element_callback",IC="allow_selectors",TC="allow_url_regexes",MC="block_attrs",RC="block_element_callback",PC="block_selectors",DC="block_url_regexes",LC="capture_extra_attrs",BC="capture_text_content",NC="scroll_capture_all",jC="scroll_depth_percent_checkpoints",FC="click",UC="dead_click",zC="input",qC="pageview",HC="rage_click",$C="scroll",WC="page_leave",VC="submit",YC={};YC[IC]=[],YC[TC]=[],YC[MC]=[],YC[RC]=null,YC[PC]=[],YC[DC]=[],YC[LC]=[],YC[BC]=!1,YC[NC]=!1,YC[jC]=[25,50,75,100],YC[FC]=!0,YC[UC]=!0,YC[zC]=!0,YC[qC]=CC,YC[HC]=!0,YC[$C]=!0,YC[WC]=!1,YC[VC]=!0;var XC={$mp_autocapture:!0},JC="$mp_click",GC="$mp_dead_click",KC="$mp_input_change",ZC="$mp_rage_click",QC="$mp_scroll",eE="$mp_submit",tE="$mp_page_leave",rE=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};rE.prototype.init=function(){ax()?(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()):XS.critical("Autocapture unavailable: missing required DOM APIs")},rE.prototype.getFullConfig=function(){var e=this.mp.get_config(SC);return e?gk.isObject(e)?gk.extend({},YC,e):YC:{}},rE.prototype.getConfig=function(e){return this.getFullConfig()[e]},rE.prototype.currentUrlBlocked=function(){var e=gk.info.currentUrl(),t=this.getConfig(TC)||[];if(t.length)try{return!qk(e,t)}catch(yA){return XS.critical("Error while checking block URL regexes: ",yA),!0}var r=this.getConfig(DC)||[];if(!r||!r.length)return!1;try{return qk(e,r)}catch(yA){return XS.critical("Error while checking block URL regexes: ",yA),!0}},rE.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(SC)?this.getConfig(qC):this.mp.get_config(xC)},rE.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===JC&&!this.getConfig(FC)||t===ZC&&!this._getClickTrackingConfig(HC)||t===GC&&!this._getClickTrackingConfig(UC)),n=QS(e,{allowElementCallback:this.getConfig(OC),allowSelectors:this.getConfig(IC),blockAttrs:this.getConfig(MC),blockElementCallback:this.getConfig(RC),blockSelectors:this.getConfig(PC),captureExtraAttrs:this.getConfig(LC),captureTextContent:this.getConfig(BC),capturedForHeatMap:r});n&&(gk.extend(n,XC),this.mp.track(t,n))}},rE.prototype.initPageListeners=function(){if(Ai.removeEventListener(MS,this.listenerPopstate),Ai.removeEventListener(AS,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(WC)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){Ai.dispatchEvent(new Event(TS))},this.listenerHashchange=function(){Ai.dispatchEvent(new Event(TS))},Ai.addEventListener(MS,this.listenerPopstate),Ai.addEventListener(AS,this.listenerHashchange);var e=Ai.history.pushState;"function"===typeof e&&(Ai.history.pushState=function(t,r,n){e.call(Ai.history,t,r,n),Ai.dispatchEvent(new Event(TS))});var t=Ai.history.replaceState;"function"===typeof t&&(Ai.history.replaceState=function(e,r,n){t.call(Ai.history,e,r,n),Ai.dispatchEvent(new Event(TS))})}},rE.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"===typeof t?t:{}:null},rE.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(WC)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(sk.documentElement.clientHeight,Ai.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=gk.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||gk.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(sk.documentElement.clientWidth,Ai.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},XC);this.mp.track(tE,s,{transport:"sendBeacon"})}},rE.prototype._initScrollDepthTracking=function(){if(Ai.removeEventListener(PS,this.listenerScrollDepth),Ai.removeEventListener(RS,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){XS.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(sk.documentElement.clientHeight,Ai.innerHeight||0);var e=function(){if(!this.currentUrlBlocked()){var e=Math.max(sk.documentElement.clientHeight,Ai.innerHeight||0)+Ai.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=sk.body.scrollHeight}}.bind(this),t=px(e);this.listenerScrollDepth=t.listener,Ai.addEventListener(t.eventType,this.listenerScrollDepth)}},rE.prototype.initClickTracking=function(){Ai.removeEventListener(ES,this.listenerClick),(this.getConfig(FC)||this.mp.get_config("record_heatmap_data"))&&(XS.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(FC)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,JC)}.bind(this),Ai.addEventListener(ES,this.listenerClick))},rE.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(UC);e||this.mp.get_config("record_heatmap_data")?(XS.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new kC(function(e){this.trackDomEvent(e,GC)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(UC);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r["timeout_ms"]||(r["timeout_ms"]=vC),this._deadClickTracker.trackClick(e,r)}}.bind(this),Ai.addEventListener(ES,this.listenerDeadClick))):this.stopDeadClickTracking()},rE.prototype.initInputTracking=function(){Ai.removeEventListener(CS,this.listenerChange),this.getConfig(zC)&&(XS.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(zC)&&this.trackDomEvent(e,KC)}.bind(this),Ai.addEventListener(CS,this.listenerChange))},rE.prototype.initPageviewTracking=function(){if(Ai.removeEventListener(TS,this.listenerLocationchange),this.pageviewTrackingConfig()){XS.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(XC)),t&&(e=gk.info.currentUrl()),this.listenerLocationchange=bk(function(){if(!this.currentUrlBlocked()){var t=gk.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(i===CC?r=t!==e:i===EC?r=t.split("#")[0]!==e.split("#")[0]:i===AC&&(r=n),r){var o=this.mp.track_pageview(XC);o&&(e=t),n&&(this.lastScrollCheckpoint=0,XS.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),Ai.addEventListener(TS,this.listenerLocationchange)}},rE.prototype.initRageClickTracking=function(){Ai.removeEventListener(ES,this.listenerRageClick);var e=this._getClickTrackingConfig(HC);(e||this.mp.get_config("record_heatmap_data"))&&(XS.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new mC),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(HC);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,ZC))}.bind(this),Ai.addEventListener(ES,this.listenerRageClick))},rE.prototype.initScrollTracking=function(){if(Ai.removeEventListener(RS,this.listenerScroll),Ai.removeEventListener(PS,this.listenerScroll),this.getConfig($C)){XS.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=function(){if(this.getConfig($C)&&!this.currentUrlBlocked()){var e=this.getConfig(NC),t=(this.getConfig(jC)||[]).slice().sort(function(e,t){return e-t}),r=Ai.scrollY,n=gk.extend({$scroll_top:r},XC);try{var i=sk.body.scrollHeight,o=Math.round(r/(i-Ai.innerHeight)*100);if(n["$scroll_height"]=i,n["$scroll_percentage"]=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n["$scroll_checkpoint"]=a,this.lastScrollCheckpoint=a,e=!0)}}catch(yA){XS.critical("Error while calculating scroll percentage",yA)}e&&this.mp.track(QC,n)}}.bind(this),t=px(e);this.listenerScroll=t.listener,Ai.addEventListener(t.eventType,this.listenerScroll)}},rE.prototype.initSubmitTracking=function(){Ai.removeEventListener(LS,this.listenerSubmit),this.getConfig(VC)&&(XS.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(VC)&&this.trackDomEvent(e,eE)}.bind(this),Ai.addEventListener(LS,this.listenerSubmit))},rE.prototype.initPageLeaveTracking=function(){if(sk.removeEventListener(NS,this.listenerPageLeaveVisibilitychange),Ai.removeEventListener(TS,this.listenerPageLeaveLocationchange),Ai.removeEventListener(IS,this.listenerPageLoad),this.getConfig(WC)||this.mp.get_config("record_heatmap_data")){XS.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=gk.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=sk.body.scrollHeight}.bind(this),Ai.addEventListener(IS,this.listenerPageLoad),this.listenerPageLeaveLocationchange=bk(function(t){if(!this.currentUrlBlocked()){var r=gk.info.currentUrl(),n=r!==e;n&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(sk.documentElement.clientHeight,Ai.innerHeight||0),this.previousScrollHeight=sk.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),Ai.addEventListener(TS,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){sk.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),sk.addEventListener(NS,this.listenerPageLeaveVisibilitychange)}},rE.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(Ai.removeEventListener(ES,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},_k(rE);var nE=function(e,t){return Ai[Mi]&&"function"===typeof Ai[Mi].then||(Ai[Mi]=new Promise(function(r){e(t,r)}).then(function(){var e=Ai[Mi];if(e&&"function"===typeof e.then)return e;throw new Error("targeting failed to load")}).catch(function(e){throw delete Ai[Mi],e})),Ai[Mi]},iE=wk("flags"),oE="flags",sE="context",aE={};aE[sE]={};var cE=function(e,t){return e+":"+t},uE=function(e){return e.split(":")[0]},lE=function(e){this.fetch=Ai["fetch"],this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};lE.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):iE.critical("Feature Flags unavailable: missing minimum required APIs")},lE.prototype.getFullConfig=function(){var e=this.getMpConfig(oE);return e?gk.isObject(e)?gk.extend({},aE,e):aE:{}},lE.prototype.getConfig=function(e){return this.getFullConfig()[e]},lE.prototype.isSystemEnabled=function(){return!!this.getMpConfig(oE)},lE.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return iE.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(oE);gk.isObject(r)||(r={});var n=t&&t["replace"]?{}:this.getConfig(sE);return r[sE]=gk.extend({},n,e),this.setMpConfig(oE,r),this.fetchFlags()},lE.prototype.areFlagsReady=function(){return this.isSystemEnabled()||iE.error("Feature Flags not enabled"),!!this.flags},lE.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=Bk();iE.log("Fetching flags for distinct ID: "+e);var n=gk.extend({distinct_id:e,device_id:t},this.getConfig(sE)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",Ti.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(Ai,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json().then(function(e){var t=e["flags"];if(!t)throw new Error("No flags in API response");var n=new Map,i={};gk.each(t,function(e,t){var r=!1,i=t+":";if(gk.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(i)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&n.set(t,o)}else n.set(t,{key:e["variant_key"],value:e["variant_value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"]})},this);var o=e["pending_first_time_events"];o&&o.length>0&&gk.each(o,function(e){var t=e["flag_key"],r=cE(t,e["first_time_event_hash"]);this.activatedFirstTimeEvents[r]||(i[r]={flag_key:t,flag_id:e["flag_id"],project_id:e["project_id"],first_time_event_hash:e["first_time_event_hash"],event_name:e["event_name"],property_filters:e["property_filters"],pending_variant:e["pending_variant"]})},this),this.activatedFirstTimeEvents&&gk.each(this.activatedFirstTimeEvents,function(e,t){var r=uE(t);e&&!n.has(r)&&this.flags&&this.flags.has(r)&&n.set(r,this.flags.get(r))},this),this.flags=n,this.pendingFirstTimeEvents=i,this._traceparent=r,this._loadTargetingIfNeeded()}.bind(this)).catch(function(e){this.markFetchComplete(),iE.error(e)}.bind(this))}.bind(this)).catch(function(e){this.markFetchComplete(),iE.error(e)}.bind(this)),this.fetchPromise},lE.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):iE.error("Fetch in progress started time not set, cannot mark fetch complete")},lE.prototype._loadTargetingIfNeeded=function(){var e=!1;gk.each(this.pendingFirstTimeEvents,function(t){t["property_filters"]&&!gk.isEmptyObject(t["property_filters"])&&(e=!0)}),e&&this.getTargeting().then(function(){iE.log("targeting loaded for property filter evaluation")})},lE.prototype.getTargeting=function(){return nE(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){iE.error("Failed to load targeting: "+e)}.bind(this))},lE.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!gk.isEmptyObject(this.pendingFirstTimeEvents)&&(Ai[Mi]&&gk.isFunction(Ai[Mi].then)?Ai[Mi].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},lE.prototype._processFirstTimeEventCheck=function(e,t,r){gk.each(this.pendingFirstTimeEvents,function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n["flag_key"];if(r||!n["property_filters"]||gk.isEmptyObject(n["property_filters"])){if(r){var a={event_name:n["event_name"],property_filters:n["property_filters"]};o=r["eventMatchesCriteria"](e,t,a)}else o={matches:e===n["event_name"],error:null};if(o.error)iE.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){iE.log('First-time event matched for flag "'+s+'": '+e);var c={key:n["pending_variant"]["variant_key"],value:n["pending_variant"]["variant_value"],experiment_id:n["pending_variant"]["experiment_id"],is_experiment_active:n["pending_variant"]["is_experiment_active"]};this.flags.set(s,c),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n["flag_id"],n["project_id"],n["first_time_event_hash"])}}else iE.warn('Skipping event check for "'+s+'" - property filters require targeting library')}},this)},lE.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},lE.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=Bk(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",Ti.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};iE.log("Recording first-time event for flag: "+e),this.fetch.call(Ai,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch(function(t){iE.error("Failed to record first-time event for flag "+e+": "+t)})},lE.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch(function(e){return iE.error(e),t}):new Promise(function(e){iE.critical("Feature Flags not initialized"),e(t)})},lE.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return iE.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(iE.log('No flag found: "'+e+'"'),t)},lE.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e["value"]}).catch(function(e){return iE.error(e),t})},lE.prototype.getFeatureData=function(e,t){return iE.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},lE.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t})["value"]},lE.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return iE.error(e),t})},lE.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(iE.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},lE.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t["key"],$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t["experiment_id"]&&(r["$experiment_id"]=t["experiment_id"]),"undefined"!==t["is_experiment_active"]&&(r["$is_experiment_active"]=t["is_experiment_active"]),"undefined"!==t["is_qa_tester"]&&(r["$is_qa_tester"]=t["is_qa_tester"]),this.track("$experiment_started",r)}},lE.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!==typeof Promise&&"undefined"!==typeof Map&&"undefined"!==typeof Set},_k(lE),lE.prototype["are_flags_ready"]=lE.prototype.areFlagsReady,lE.prototype["get_variant"]=lE.prototype.getVariant,lE.prototype["get_variant_sync"]=lE.prototype.getVariantSync,lE.prototype["get_variant_value"]=lE.prototype.getVariantValue,lE.prototype["get_variant_value_sync"]=lE.prototype.getVariantValueSync,lE.prototype["is_enabled"]=lE.prototype.isEnabled,lE.prototype["is_enabled_sync"]=lE.prototype.isEnabledSync,lE.prototype["update_context"]=lE.prototype.updateContext,lE.prototype["get_feature_data"]=lE.prototype.getFeatureData,lE.prototype["getTargeting"]=lE.prototype.getTargeting;var hE=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null};hE.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return vk.log("Load recorder check skipped due to disable_persistence config"),X_.resolve(!1);var e=new Kk(Xk),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(SS(e[r])||e[r]["tabId"]===t)return!0;return!1}).catch(gk.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},hE.prototype.checkAndStartSessionRecording=function(e,t){if(!Ai["MutationObserver"])return vk.critical("Browser does not support MutationObserver; skipping session recording"),X_.resolve();var r=gk.bind(function(e){return new X_(gk.bind(function(t){var r=bk(gk.bind(function(){this._recorder=this._recorder||new Ai[Ri](this.mixpanelInstance),this._recorder["resumeRecording"](e),t()},this));if(gk.isUndefined(Ai[Ri])){var n=this.recorderSrc||this.libBasePath+Pi;this.loadExtraBundle(n,r)}else r()},this))},this),n=gk.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,i=n>0&&100*Math.random()<=n;return e||i?r(!0):this.shouldLoadRecorder().then(gk.bind(function(e){return e?r(!1):X_.resolve()},this))},hE.prototype.isRecording=function(){if(!this._recorder||!gk.isFunction(this._recorder["isRecording"]))return!1;try{return this._recorder["isRecording"]()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},hE.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"===typeof i["percentage"]){var o=i["percentage"],s=i["property_filters"];if(s&&!gk.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+Di;nE(this.loadExtraBundle,a).then(function(r){try{var n=r["eventMatchesCriteria"](e,t,{event_name:e,property_filters:s});n["matches"]&&this.checkAndStartSessionRecording(!1,o)}catch(yA){vk.critical("Could not parse recording event trigger properties logic:",yA)}}.bind(this)).catch(function(e){vk.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},hE.prototype.stopSessionRecording=function(){return this._recorder?this._recorder["stopRecording"]():X_.resolve()},hE.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder["pauseRecording"]():X_.resolve()},hE.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder["resumeRecording"]():X_.resolve()},hE.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},hE.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e["$mp_replay_id"]=t),e},hE.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();if(t){var r=gk.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")});e="https://mixpanel.com/projects/replay-redirect?"+r}return e},hE.prototype.getSessionReplayId=function(){var e=null;return this._recorder&&(e=this._recorder["replayId"]),e||null},hE.prototype.getRecorder=function(){return this._recorder},_k(hE);var dE=function(){};dE.prototype.create_properties=function(){},dE.prototype.event_handler=function(){},dE.prototype.after_track_handler=function(){},dE.prototype.init=function(e){return this.mp=e,this},dE.prototype.track=function(e,t,r,n){var i=this,o=gk.dom_query(e);if(0!==o.length)return gk.each(o,function(e){gk.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0;vk.error("The DOM query ("+e+") returned 0 elements")},dE.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},dE.prototype.create_properties=function(e,t){var r;return r="function"===typeof e?e(t):gk.extend({},e),r};var pE=function(){this.override_event="click"};gk.inherit(pE,dE),pE.prototype.create_properties=function(e,t){var r=pE.superclass.create_properties.apply(this,arguments);return t.href&&(r["url"]=t.href),r},pE.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},pE.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var fE=function(){this.override_event="submit"};gk.inherit(fE,dE),fE.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},fE.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var mE="$set",gE="$set_once",vE="$unset",yE="$add",wE="$append",bE="$union",_E="$remove",kE="$delete",SE={set_action:function(e,t){var r={},n={};return gk.isObject(e)?gk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[mE]=n,r},unset_action:function(e){var t={},r=[];return gk.isArray(e)||(e=[e]),gk.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[vE]=r,t},set_once_action:function(e,t){var r={},n={};return gk.isObject(e)?gk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[gE]=n,r},union_action:function(e,t){var r={},n={};return gk.isObject(e)?gk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=gk.isArray(e)?e:[e])},this):n[e]=gk.isArray(t)?t:[t],r[bE]=n,r},append_action:function(e,t){var r={},n={};return gk.isObject(e)?gk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[wE]=n,r},remove_action:function(e,t){var r={},n={};return gk.isObject(e)?gk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[_E]=n,r},delete_action:function(){var e={};return e[kE]="",e}},xE=function(){};gk.extend(xE.prototype,SE),xE.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},xE.prototype.set=oS(function(e,t,r){var n=this.set_action(e,t);return gk.isObject(e)&&(r=t),this._send_request(n,r)}),xE.prototype.set_once=oS(function(e,t,r){var n=this.set_once_action(e,t);return gk.isObject(e)&&(r=t),this._send_request(n,r)}),xE.prototype.unset=oS(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),xE.prototype.union=oS(function(e,t,r){gk.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),xE.prototype["delete"]=oS(function(e){var t=this.delete_action();return this._send_request(t,e)}),xE.prototype.remove=oS(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),xE.prototype._send_request=function(e,t){e["$group_key"]=this._group_key,e["$group_id"]=this._group_id,e["$token"]=this._get_config("token");var r=gk.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes")["groups"],batcher:this._mixpanel.request_batchers.groups},t)},xE.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},xE.prototype._get_config=function(e){return this._mixpanel.get_config(e)},xE.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},xE.prototype["remove"]=xE.prototype.remove,xE.prototype["set"]=xE.prototype.set,xE.prototype["set_once"]=xE.prototype.set_once,xE.prototype["union"]=xE.prototype.union,xE.prototype["unset"]=xE.prototype.unset,xE.prototype["toString"]=xE.prototype.toString;var CE=function(){};gk.extend(CE.prototype,SE),CE.prototype._init=function(e){this._mixpanel=e},CE.prototype.set=iS(function(e,t,r){var n=this.set_action(e,t);return gk.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel["persistence"].update_referrer_info(document.referrer),n[mE]=gk.extend({},gk.info.people_properties(),n[mE]),this._send_request(n,r)}),CE.prototype.set_once=iS(function(e,t,r){var n=this.set_once_action(e,t);return gk.isObject(e)&&(r=t),this._send_request(n,r)}),CE.prototype.unset=iS(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),CE.prototype.increment=iS(function(e,t,r){var n={},i={};return gk.isObject(e)?(gk.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void vk.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(gk.isUndefined(t)&&(t=1),i[e]=t),n[yE]=i,this._send_request(n,r)}),CE.prototype.append=iS(function(e,t,r){gk.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),CE.prototype.remove=iS(function(e,t,r){gk.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),CE.prototype.union=iS(function(e,t,r){gk.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),CE.prototype.track_charge=iS(function(){vk.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),CE.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},CE.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}vk.error("mixpanel.people.delete_user() requires you to call identify() first")},CE.prototype.toString=function(){return this._mixpanel.toString()+".people"},CE.prototype._send_request=function(e,t){e["$token"]=this._get_config("token"),e["$distinct_id"]=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e["$device_id"]=r),n&&(e["$user_id"]=n),i&&(e["$had_persisted_distinct_id"]=i);var o=gk.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes")["engage"],batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),gk.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),gk.truncate(o,255))},CE.prototype._get_config=function(e){return this._mixpanel.get_config(e)},CE.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},CE.prototype._enqueue=function(e){mE in e?this._mixpanel["persistence"]._add_to_people_queue(mE,e):gE in e?this._mixpanel["persistence"]._add_to_people_queue(gE,e):vE in e?this._mixpanel["persistence"]._add_to_people_queue(vE,e):yE in e?this._mixpanel["persistence"]._add_to_people_queue(yE,e):wE in e?this._mixpanel["persistence"]._add_to_people_queue(wE,e):_E in e?this._mixpanel["persistence"]._add_to_people_queue(_E,e):bE in e?this._mixpanel["persistence"]._add_to_people_queue(bE,e):vk.error("Invalid call to _enqueue():",e)},CE.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=gk.extend({},this._mixpanel["persistence"].load_queue(e)),s=o;gk.isUndefined(o)||!gk.isObject(o)||gk.isEmptyObject(o)||(i._mixpanel["persistence"]._pop_from_people_queue(e,o),i._mixpanel["persistence"].save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel["persistence"]._add_to_people_queue(e,o),gk.isUndefined(r)||r(t,n)}))},CE.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(mE,this.set,e),this._flush_one_queue(gE,this.set_once,n),this._flush_one_queue(vE,this.unset,o,function(e){return gk.keys(e)}),this._flush_one_queue(yE,this.increment,t),this._flush_one_queue(bE,this.union,i);var c=this._mixpanel["persistence"].load_queue(wE);if(!gk.isUndefined(c)&&gk.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(wE,u),gk.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel["persistence"].load_queue(wE),u=c.pop(),a._mixpanel["persistence"].save(),gk.isEmptyObject(u)||a.append(u,l);var d=this._mixpanel["persistence"].load_queue(_E);if(!gk.isUndefined(d)&&gk.isArray(d)&&d.length)for(var p,f=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(_E,p),gk.isUndefined(s)||s(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel["persistence"].load_queue(_E),p=d.pop(),a._mixpanel["persistence"].save(),gk.isEmptyObject(p)||a.remove(p,f)},CE.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},CE.prototype["set"]=CE.prototype.set,CE.prototype["set_once"]=CE.prototype.set_once,CE.prototype["unset"]=CE.prototype.unset,CE.prototype["increment"]=CE.prototype.increment,CE.prototype["append"]=CE.prototype.append,CE.prototype["remove"]=CE.prototype.remove,CE.prototype["union"]=CE.prototype.union,CE.prototype["track_charge"]=CE.prototype.track_charge,CE.prototype["clear_charges"]=CE.prototype.clear_charges,CE.prototype["delete_user"]=CE.prototype.delete_user,CE.prototype["toString"]=CE.prototype.toString;var EE,AE="__mps",OE="__mpso",IE="__mpus",TE="__mpa",ME="__mpap",RE="__mpr",PE="__mpu",DE="$people_distinct_id",LE="__alias",BE="__timers",NE=[AE,OE,IE,TE,ME,RE,PE,DE,LE,BE],jE=function(e){this["props"]={},this.campaign_params_saved=!1,e["persistence_name"]?this.name="mp_"+e["persistence_name"]:this.name="mp_"+e["token"]+"_mixpanel";var t=e["persistence"];"cookie"!==t&&"localStorage"!==t&&(vk.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e["persistence"]="cookie"),"localStorage"===t&&gk.localStorage.is_supported()?this.storage=gk.localStorage:this.storage=gk.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};jE.prototype.properties=function(){var e={};return this.load(),gk.each(this["props"],function(t,r){gk.include(NE,r)||(e[r]=t)}),e},jE.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this["props"]=gk.extend({},e))}},jE.prototype.upgrade=function(){var e,t;this.storage===gk.localStorage?(e=gk.cookie.parse(this.name),gk.cookie.remove(this.name),gk.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===gk.cookie&&(t=gk.localStorage.parse(this.name),gk.localStorage.remove(this.name),t&&this.register_once(t))},jE.prototype.save=function(){this.disabled||this.storage.set(this.name,Hk(this["props"]),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},jE.prototype.load_prop=function(e){return this.load(),this["props"][e]},jE.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},jE.prototype.clear=function(){this.remove(),this["props"]={}},jE.prototype.register_once=function(e,t,r){return!!gk.isObject(e)&&("undefined"===typeof t&&(t="None"),this.expire_days="undefined"===typeof r?this.default_expiry:r,this.load(),gk.each(e,function(e,r){this["props"].hasOwnProperty(r)&&this["props"][r]!==t||(this["props"][r]=e)},this),this.save(),!0)},jE.prototype.register=function(e,t){return!!gk.isObject(e)&&(this.expire_days="undefined"===typeof t?this.default_expiry:t,this.load(),gk.extend(this["props"],e),this.save(),!0)},jE.prototype.unregister=function(e){this.load(),e in this["props"]&&(delete this["props"][e],this.save())},jE.prototype.update_search_keyword=function(e){this.register(gk.info.searchInfo(e))},jE.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:gk.info.referringDomain(e)||"$direct"},"")},jE.prototype.get_referrer_info=function(){return gk.strip_empty_properties({$initial_referrer:this["props"]["$initial_referrer"],$initial_referring_domain:this["props"]["$initial_referring_domain"]})},jE.prototype.update_config=function(e){this.default_expiry=this.expire_days=e["cookie_expiration"],this.set_disabled(e["disable_persistence"]),this.set_cookie_domain(e["cookie_domain"]),this.set_cross_site(e["cross_site_cookie"]),this.set_cross_subdomain(e["cross_subdomain_cookie"]),this.set_secure(e["secure_cookie"])},jE.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},jE.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},jE.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},jE.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},jE.prototype.get_cross_subdomain=function(){return this.cross_subdomain},jE.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},jE.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(mE),o=this._get_or_create_queue(gE),s=this._get_or_create_queue(vE),a=this._get_or_create_queue(yE),c=this._get_or_create_queue(bE),u=this._get_or_create_queue(_E,[]),l=this._get_or_create_queue(wE,[]);r===AE?(gk.extend(i,n),this._pop_from_people_queue(yE,n),this._pop_from_people_queue(bE,n),this._pop_from_people_queue(vE,n)):r===OE?(gk.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(vE,n)):r===IE?gk.each(n,function(e){gk.each([i,o,a,c],function(t){e in t&&delete t[e]}),gk.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===TE?(gk.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(vE,n)):r===PE?(gk.each(n,function(e,t){gk.isArray(e)&&(t in c||(c[t]=[]),gk.each(e,function(e){gk.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(vE,n)):r===RE?(u.push(n),this._pop_from_people_queue(wE,n)):r===ME&&(l.push(n),this._pop_from_people_queue(vE,n)),vk.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),vk.log(t),this.save()},jE.prototype._pop_from_people_queue=function(e,t){var r=this["props"][this._get_queue_key(e)];gk.isUndefined(r)||gk.each(t,function(t,n){e===wE||e===_E?gk.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},jE.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},jE.prototype._get_queue_key=function(e){return e===mE?AE:e===gE?OE:e===vE?IE:e===yE?TE:e===wE?ME:e===_E?RE:e===bE?PE:void vk.error("Invalid queue:",e)},jE.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=gk.isUndefined(t)?{}:t,this["props"][r]||(this["props"][r]=t)},jE.prototype.set_event_timer=function(e,t){var r=this.load_prop(BE)||{};r[e]=t,this["props"][BE]=r,this.save()},jE.prototype.remove_event_timer=function(e){var t=this.load_prop(BE)||{},r=t[e];return gk.isUndefined(r)||(delete this["props"][BE][e],this.save()),r};var FE,UE=function(e,t){throw new Error(e+" not available in this build.")},zE=0,qE=1,HE="mixpanel",$E="base64",WE="json",VE="$device:",YE="strict",XE="fallback",JE="disabled",GE=Ai.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,KE=!GE&&-1===uk.indexOf("MSIE")&&-1===uk.indexOf("Mozilla"),ZE=null;ok["sendBeacon"]&&(ZE=function(){return ok["sendBeacon"].apply(ok,arguments)});var QE={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},eA={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:QE,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:$E,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:zk,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:zk,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:G_,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:JE},tA=!1,rA=function(){},nA=function(e,t,r){var n,i=r===HE?FE:FE[r];if(i&&EE===zE)n=i;else{if(i&&!gk.isArray(i))return void vk.error("You have already initialized "+r);n=new rA}if(n._cached_groups={},n._init(e,t,r),n["people"]=new CE,n["people"]._init(n),!n.get_config("skip_first_touch_marketing")){var o=gk.info.campaignParams(null),s={},a=!1;gk.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n["people"].set_once(s)}Ti.DEBUG=Ti.DEBUG||n.get_config("debug");var c=EE===zE?"module":"snippet";return Ai.dispatchEvent(new Ai.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:gk.info}})),!gk.isUndefined(i)&&gk.isArray(i)&&(n._execute_array.call(n["people"],i["people"]),n._execute_array(i)),n};rA.prototype.init=function(e,t,r){if(gk.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==HE){var n=nA(e,t,r);return FE[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},rA.prototype._init=function(e,t,r){t=t||{},this["__loaded"]=!0,this["config"]={};var n={};if(!("api_payload_format"in t)){var i=t["api_host"]||eA["api_host"];i.match(/\.mixpanel\.com/)&&(n["api_payload_format"]=WE)}if(this.hooks={},this.set_config(gk.extend({},eA,n,t,{name:r,token:e,callback_fn:(r===HE?r:HE+"."+r)+"._jsc"})),this.recorderManager=new hE({mixpanelInstance:this,getConfigFunc:gk.bind(this.get_config,this),setConfigFunc:gk.bind(this.set_config,this),getTabIdFunc:gk.bind(this.get_tab_id,this),reportErrorFunc:gk.bind(this.report_error,this),getDistinctIdFunc:gk.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:UE}),this["_jsc"]=zk,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(gk.localStorage.is_supported(!0)&&GE){if(this.init_batchers(),ZE&&Ai.addEventListener){var o=gk.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);Ai.addEventListener("pagehide",function(e){e["persisted"]&&o()}),Ai.addEventListener("visibilitychange",function(){"hidden"===sk["visibilityState"]&&o()})}}else this._batch_requests=!1,vk.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),gk.each(this.get_batcher_configs(),function(e){vk.log("Clearing batch queue "+e.queue_key),gk.localStorage.remove(e.queue_key)});this["persistence"]=this["cookie"]=new jE(this["config"]),this.unpersisted_superprops={},this._gdpr_init();var s=gk.UUID();this.get_distinct_id()||this.register_once({distinct_id:VE+s,$device_id:s},""),this.flags=new lE({getFullApiRoute:gk.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes")["flags"]},this),getConfigFunc:gk.bind(this.get_config,this),setConfigFunc:gk.bind(this.set_config,this),getPropertyFunc:gk.bind(this.get_property,this),trackingFunc:gk.bind(this.track,this),loadExtraBundle:UE,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+Di}),this.flags.init(),this["flags"]=this.flags,this.autocapture=new rE(this),this.autocapture.init(),this._init_tab_id();var a=this.get_config("remote_settings_mode");this.__session_recording_init_promise=a===YE||a===XE?this._fetch_remote_settings(a).then(gk.bind(function(){return this._check_and_start_session_recording()},this)):this._check_and_start_session_recording()},rA.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))vk.log("Tab ID initialization skipped due to disable_persistence config");else if(gk.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;!gk.sessionStorage.get(r)&&gk.sessionStorage.get(t)||gk.sessionStorage.set(t,"$tab-"+gk.UUID()),gk.sessionStorage.set(r,"1"),this.tab_id=gk.sessionStorage.get(t),Ai.addEventListener("beforeunload",function(){gk.sessionStorage.remove(r)})}catch(yA){this.report_error("Error initializing tab id",yA)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},rA.prototype.get_tab_id=function(){return this.tab_id||null},rA.prototype._check_and_start_session_recording=nS(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),rA.prototype._start_recording_on_event=function(e,t){return this.recorderManager.startRecordingOnEvent(e,t)},rA.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},rA.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},rA.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},rA.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},rA.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},rA.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},rA.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},rA.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},rA.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},rA.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this["people"].set_once(this["persistence"].get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=gk.info.campaignParams(null);gk.each(e,function(e,t){this.unregister(t)}.bind(this))}},rA.prototype._set_default_superprops=function(){this["persistence"].update_search_keyword(sk.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(gk.info.campaignParams()),this.get_config("save_referrer")&&this["persistence"].update_referrer_info(sk.referrer)},rA.prototype._dom_loaded=function(){gk.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||gk.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},rA.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!tA)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},rA.prototype._prepare_callback=function(e,t){if(gk.isUndefined(e))return null;if(GE){var r=function(r){e(r,t)};return r}var n=this["_jsc"],i=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+i+"]";return n[i]=function(r){delete n[i],e(r,t)},o},rA.prototype._send_request=function(e,t,r,n){var i=!0;if(KE)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!gk.isFunction(r)&&"string"!==typeof r||(n=r,r=null),r=gk.extend(o,r||{}),GE||(r.method="GET");var a="POST"===r.method,c=ZE&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t["verbose"]&&(u=!0),this.get_config("test")&&(t["test"]=1),u&&(t["verbose"]=1),this.get_config("img")&&(t["img"]=1),GE||(n?t["callback"]=n:(u||this.get_config("test"))&&(t["callback"]="(function(){})")),t["ip"]=this.get_config("ip")?1:0,t["_"]=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t["data"]),delete t["data"]),gk.extend(t,this.get_config("api_extra_query_params")),e+="?"+gk.HTTPBuildQuery(t);var l=this;if("img"in t){var h=sk.createElement("img");h.src=e,sk.body.appendChild(h)}else if(c){try{i=ZE(e,s)}catch(v){l.report_error(v),i=!1}try{n&&n(i?1:0)}catch(v){l.report_error(v)}}else if(GE)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var p=this.get_config("xhr_headers");if(a&&(p["Content-Type"]="application/x-www-form-urlencoded"),gk.each(p,function(e,t){d.setRequestHeader(t,e)}),r.timeout_ms&&"undefined"!==typeof d.timeout){d.timeout=r.timeout_ms;var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(n)if(u){var t;try{t=gk.JSONDecode(d.responseText)}catch(v){if(l.report_error(v),!r.ignore_json_errors)return;t=d.responseText}n(t)}else n(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,l.report_error(e),n)if(u){var i=d["responseHeaders"]||{};n({status:0,httpStatusCode:d["status"],error:e,retryAfter:i["Retry-After"]})}else n(0)},d.send(s)}catch(v){l.report_error(v),i=!1}else{var m=sk.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=sk.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},rA.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&t.set_config({record_sessions_percent:0})};if(!Ai["AbortController"])return vk.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes")["settings"],i={$lib_version:Ti.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=gk.HTTPBuildQuery(i),s=n+"?"+o,a=new AbortController,c=setTimeout(function(){a.abort()},500),u={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:a.signal};return Ai["fetch"](s,u).then(function(e){return clearTimeout(c),e["ok"]?e.json():(vk.critical("Network response was not ok"),void r())}).then(function(e){if(e&&e["sdk_config"]&&e["sdk_config"]["config"]){var n=e["sdk_config"]["config"],i={};gk.each(n,function(e,t){eA.hasOwnProperty(t)&&(i[t]=e)}),gk.isEmptyObject(i)?(vk.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(c),vk.critical("Failed to fetch remote settings",e),r()})},rA.prototype._execute_array=function(e){var t,r=[],n=[],i=[];gk.each(e,function(e){e&&(t=e[0],gk.isArray(t)?i.push(e):"function"===typeof e?e.call(this):gk.isArray(e)&&"alias"===t?r.push(e):gk.isArray(e)&&-1!==t.indexOf("track")&&"function"===typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){gk.each(e,function(e){if(gk.isArray(e[0])){var r=t;gk.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},rA.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},rA.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},rA.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=gk.bind(function(e){return new kS(e.queue_key,{libConfig:this["config"],errorReporter:this.get_config("error_reporter"),sendRequestFunc:gk.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:gk.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:gk.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},rA.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,gk.each(this.request_batchers,function(e){e.start()}))},rA.prototype.stop_batch_senders=function(){this._batch_requests=!1,gk.each(this.request_batchers,function(e){e.stop(),e.clear()})},rA.prototype.push=function(e){this._execute_array([e])},rA.prototype.enable=function(e){var t,r,n,i;if("undefined"===typeof e)this._flags.disable_all_events=!1;else{for(t={},r=[],n=0;n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},rA.prototype.disable=function(e){"undefined"===typeof e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},rA.prototype._encode_data_for_request=function(e){var t=Hk(e);return this.get_config("api_payload_format")===$E&&(t=gk.base64Encode(t)),{data:t}},rA.prototype._track_or_batch=function(e,t){var r=gk.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||zk;var a=!0,c=gk.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r),r&&(r=r[0])),r?(vk.log("MIXPANEL REQUEST:"),vk.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},rA.prototype.track=nS(function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(i=this._run_hook("before_track",e,t),null===i)return;e=i[0],t=i[1]}n||"function"!==typeof r||(n=r,r=null),r=r||{};var o=r["transport"];o&&(r.transport=o);var s=r["send_immediately"];if("function"!==typeof n&&(n=zk),gk.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){t=gk.extend({},t),t["token"]=this.get_config("token");var a=this["persistence"].remove_event_timer(e);if(!gk.isUndefined(a)){var c=(new Date).getTime()-a;t["$duration"]=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?gk.info.marketingParams():{};t=gk.extend({},gk.info.properties({mp_loader:this.get_config("mp_loader")}),u,this["persistence"].properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");gk.isArray(l)?gk.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes")["track"],batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}n(0)}}),rA.prototype.set_group=nS(function(e,t,r){gk.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this["people"].set(e,t,r)}),rA.prototype.add_group=nS(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this["people"].union(e,t,r)}),rA.prototype.remove_group=nS(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this["people"].remove(e,t,r)}),rA.prototype.track_with_groups=nS(function(e,t,r,n){var i=gk.extend({},t||{});return gk.each(r,function(e,t){null!==e&&void 0!==e&&(i[t]=e)}),this.track(e,i,n)}),rA.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},rA.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},rA.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||(n=new xE,n._init(this,e,t),this._cached_groups[r]=n),n},rA.prototype.track_pageview=nS(function(e,t){"object"!==typeof e&&(e={}),t=t||{};var r=t["event_name"]||"$mp_web_page_view",n=gk.extend(gk.info.mpPageViewProperties(),gk.info.campaignParams(),gk.info.clickParams()),i=gk.extend({},n,e);return this.track(r,i)}),rA.prototype.track_links=function(){return this._track_dom.call(this,pE,arguments)},rA.prototype.track_forms=function(){return this._track_dom.call(this,fE,arguments)},rA.prototype.time_event=function(e){gk.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this["persistence"].set_event_timer(e,(new Date).getTime())};var iA={persistent:!0},oA=function(e){var t;return t=gk.isObject(e)?e:gk.isUndefined(e)?{}:{days:e},gk.extend({},iA,t)};rA.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=oA(t);n["persistent"]?this["persistence"].register(e,n["days"]):gk.extend(this.unpersisted_superprops,e)}},rA.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=oA(r);i["persistent"]?this["persistence"].register_once(e,t,i["days"]):("undefined"===typeof t&&(t="None"),gk.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},rA.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],t=oA(t),t["persistent"]?this["persistence"].unregister(e):delete this.unpersisted_superprops[e])},rA.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},rA.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return-1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"===typeof e&&0===e.indexOf(VE))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(LE)&&(this.unregister(LE),this.register({distinct_id:e})),this._flags.identify_called=!0,this["people"]._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags()},rA.prototype.reset=function(){this.stop_session_recording(),this["persistence"].clear(),this._flags.identify_called=!1;var e=gk.UUID();this.register_once({distinct_id:VE+e,$device_id:e},""),this._check_and_start_session_recording()},rA.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},rA.prototype.alias=function(e,t){if(e===this.get_property(DE))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return gk.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(LE,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},rA.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},rA.prototype.set_config=function(e){if(gk.isObject(e)){gk.extend(this["config"],e);var t=e["batch_size"];t&&gk.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this["config"]["persistence_name"]=this["config"]["cookie_name"]),this.get_config("disable_persistence")||(this["config"]["disable_persistence"]=this["config"]["disable_cookie"]),this["persistence"]&&this["persistence"].update_config(this["config"]),Ti.DEBUG=Ti.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),gk.isObject(e["hooks"])&&(this.hooks={},gk.each(e["hooks"],function(e,t){if(gk.isFunction(e))this.hooks[t]=[e];else if(gk.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)gk.isFunction(e[r])||vk.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else vk.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},rA.prototype.get_config=function(e){return this["config"][e]},rA.prototype._run_hook=function(e){var t=tk.call(arguments,1);return gk.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);"undefined"===typeof n?(this.report_error(e+" hook did not return a valid value"),t=null):(gk.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},rA.prototype.get_property=function(e){return this["persistence"].load_prop([e])},rA.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},rA.prototype.toString=function(){var e=this.get_config("name");return e!==HE&&(e=HE+"."+e),e},rA.prototype._event_is_disabled=function(e){return gk.isBlockedUA(uk)||this._flags.disable_all_events||gk.include(this.__disabled_events,e)},rA.prototype._gdpr_init=function(){var e="localStorage"===this.get_config("opt_out_tracking_persistence_type");e&&gk.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!gk.cookie.get("mp_optout")||(gk.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},rA.prototype._gdpr_update_persistence=function(e){var t;if(e&&e["clear_persistence"])t=!0;else{if(!e||!e["enable_persistence"])return;t=!1}this.get_config("disable_persistence")||this["persistence"].disabled===t||this["persistence"].set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},rA.prototype._gdpr_call_func=function(e,t){return t=gk.extend({track:gk.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),gk.localStorage.is_supported()||(t["persistence_type"]="cookie"),e(this.get_config("token"),{track:t["track"],trackEventName:t["track_event_name"],trackProperties:t["track_properties"],persistenceType:t["persistence_type"],persistencePrefix:t["cookie_prefix"],cookieDomain:t["cookie_domain"],cookieExpiration:t["cookie_expiration"],crossSiteCookie:t["cross_site_cookie"],crossSubdomainCookie:t["cross_subdomain_cookie"],secureCookie:t["secure_cookie"],ignoreDnt:t["ignore_dnt"]})},rA.prototype.opt_in_tracking=function(e){e=gk.extend({enable_persistence:!0},e),this._gdpr_call_func(Qk,e),this._gdpr_update_persistence(e)},rA.prototype.opt_out_tracking=function(e){e=gk.extend({clear_persistence:!0,delete_user:!0},e),e["delete_user"]&&this["people"]&&this["people"]._identify_called()&&(this["people"].delete_user(),this["people"].clear_charges()),this._gdpr_call_func(eS,e),this._gdpr_update_persistence(e)},rA.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(tS,e)},rA.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(rS,e)},rA.prototype.clear_opt_in_out_tracking=function(e){e=gk.extend({enable_persistence:!0},e),this._gdpr_call_func(sS,e),this._gdpr_update_persistence(e)},rA.prototype.report_error=function(e,t){vk.error.apply(vk.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){vk.error(t)}},rA.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},rA.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(r=this.hooks[e].indexOf(t),-1!==r?this.hooks[e].splice(r,1):vk.log("remove_hook failed. Matching hook was not found"))},rA.prototype["init"]=rA.prototype.init,rA.prototype["reset"]=rA.prototype.reset,rA.prototype["enable"]=rA.prototype.enable,rA.prototype["disable"]=rA.prototype.disable,rA.prototype["time_event"]=rA.prototype.time_event,rA.prototype["track"]=rA.prototype.track,rA.prototype["track_links"]=rA.prototype.track_links,rA.prototype["track_forms"]=rA.prototype.track_forms,rA.prototype["track_pageview"]=rA.prototype.track_pageview,rA.prototype["register"]=rA.prototype.register,rA.prototype["register_once"]=rA.prototype.register_once,rA.prototype["unregister"]=rA.prototype.unregister,rA.prototype["identify"]=rA.prototype.identify,rA.prototype["alias"]=rA.prototype.alias,rA.prototype["name_tag"]=rA.prototype.name_tag,rA.prototype["set_config"]=rA.prototype.set_config,rA.prototype["get_config"]=rA.prototype.get_config,rA.prototype["get_api_host"]=rA.prototype.get_api_host,rA.prototype["get_property"]=rA.prototype.get_property,rA.prototype["get_distinct_id"]=rA.prototype.get_distinct_id,rA.prototype["toString"]=rA.prototype.toString,rA.prototype["opt_out_tracking"]=rA.prototype.opt_out_tracking,rA.prototype["opt_in_tracking"]=rA.prototype.opt_in_tracking,rA.prototype["has_opted_out_tracking"]=rA.prototype.has_opted_out_tracking,rA.prototype["has_opted_in_tracking"]=rA.prototype.has_opted_in_tracking,rA.prototype["clear_opt_in_out_tracking"]=rA.prototype.clear_opt_in_out_tracking,rA.prototype["get_group"]=rA.prototype.get_group,rA.prototype["set_group"]=rA.prototype.set_group,rA.prototype["add_group"]=rA.prototype.add_group,rA.prototype["remove_group"]=rA.prototype.remove_group,rA.prototype["add_hook"]=rA.prototype.add_hook,rA.prototype["remove_hook"]=rA.prototype.remove_hook,rA.prototype["track_with_groups"]=rA.prototype.track_with_groups,rA.prototype["start_batch_senders"]=rA.prototype.start_batch_senders,rA.prototype["stop_batch_senders"]=rA.prototype.stop_batch_senders,rA.prototype["start_session_recording"]=rA.prototype.start_session_recording,rA.prototype["stop_session_recording"]=rA.prototype.stop_session_recording,rA.prototype["pause_session_recording"]=rA.prototype.pause_session_recording,rA.prototype["resume_session_recording"]=rA.prototype.resume_session_recording,rA.prototype["get_session_recording_properties"]=rA.prototype.get_session_recording_properties,rA.prototype["get_session_replay_url"]=rA.prototype.get_session_replay_url,rA.prototype["get_tab_id"]=rA.prototype.get_tab_id,rA.prototype["DEFAULT_API_ROUTES"]=QE,rA.prototype["__get_recorder"]=rA.prototype.__get_recorder,rA.prototype["__get_recording_init_promise"]=rA.prototype.__get_recording_init_promise,jE.prototype["properties"]=jE.prototype.properties,jE.prototype["update_search_keyword"]=jE.prototype.update_search_keyword,jE.prototype["update_referrer_info"]=jE.prototype.update_referrer_info,jE.prototype["get_cross_subdomain"]=jE.prototype.get_cross_subdomain,jE.prototype["clear"]=jE.prototype.clear;var sA={},aA=function(){gk.each(sA,function(e,t){t!==HE&&(FE[t]=e)}),FE["_"]=gk},cA=function(){FE["init"]=function(e,t,r){if(r)return FE[r]||(FE[r]=sA[r]=nA(e,t,r),FE[r]._loaded()),FE[r];var n=FE;sA[HE]?n=sA[HE]:e&&(n=nA(e,t,HE),n._loaded(),sA[HE]=n),FE=n,EE===qE&&(Ai[HE]=FE),aA()}},uA=function(){function e(){e.done||(e.done=!0,tA=!0,KE=!1,gk.each(sA,function(e){e._dom_loaded()}))}function t(){try{sk.documentElement.doScroll("left")}catch(r){return void setTimeout(t,1)}e()}if(sk.addEventListener)"complete"===sk.readyState?e():sk.addEventListener("DOMContentLoaded",e,!1);else if(sk.attachEvent){sk.attachEvent("onreadystatechange",e);var r=!1;try{r=null===Ai.frameElement}catch(n){}sk.documentElement.doScroll&&r&&t()}gk.register_event(Ai,"load",e,!0)};function lA(e){return UE=e,EE=zE,FE=new rA,cA(),FE["init"](),uA(),FE}function hA(e,t){t()}var dA=lA(hA);const pA="@mixpanelIdentificationData",fA=e=>{let t={};return e?.name?(t["$name"]=e?.name,delete e.name):(t["$first_name"]=e?.first_name,t["$last_name"]=e?.last_name,delete e?.first_name,delete e?.last_name),e?.email&&(t["$email"]=e?.email,delete e?.email),e?.phone&&(t["$phone"]=e?.phone,delete e?.phone),t=Object.assign({},t,e),t},mA={setMixpanelIdentificationData:e=>{(0,h.setLocalStorageItem)(pA,e)},getMixpanelIdentificationData:()=>(0,h.getLocalStorageItem)(pA),hasMixpanelIdentificationData:()=>!!mA.getMixpanelIdentificationData(),init:(e,t)=>{dA.init(e,Object.assign({},t,{ignore_dnt:!0}))},initIdentify:(e,t,r,n)=>{const i=r||mA.getMixpanelIdentificationData(),o=fA(i);if("production"===e&&o){mA.init(t,n);const e=window.location.hostname;let r=`${e}`;o?.company&&(r+=`.${o?.company?.name}`),o?.employee_code&&(r+=`.${o?.employee_code}`),(o?.name||o?.first_name&&o?.last_name)&&(r+=o?.name?`.${o.name}`:`.${o?.first_name}.${o?.last_name}`),dA.identify(r),dA.people.set({...o,company_domain:e})}},trackEvent:(e,t,r)=>{"production"===e&&dA.track(t,r)}};var gA=mA,vA={}}(),__webpack_exports__}()});