jspredict-dc
Version:
javascript port of predict open-source satellite tracking library
7 lines • 92.5 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).jspredict_dc=t()}(this,(function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:function(){return e[t]}})})),n}var n={exports:{}},s=Math.PI,i=2*s,r=s/180,a=180/s,o=398600.5,d=6378.137,l=60/Math.sqrt(650944.0944816993),u=d*l/60,h=1/l,c=.00108262998905,f=-253215306e-14,m=-161098761e-14,_=f/c,p=2/3,g=Object.freeze({pi:s,twoPi:i,deg2rad:r,rad2deg:a,minutesPerDay:1440,mu:o,earthRadius:d,xke:l,vkmpersec:u,tumin:h,j2:c,j3:f,j4:m,j3oj2:_,x2o3:p});
/*!
* satellite-js v3.0.1
* (c) 2013 Shashwat Kandadai and UCSC
* https://github.com/shashwatak/satellite-js
* License: MIT
*/function y(e,t){for(var n=[31,e%4==0?29:28,31,30,31,30,31,31,30,31,30,31],s=Math.floor(t),i=1,r=0;s>r+n[i-1]&&i<12;)r+=n[i-1],i+=1;var a=i,o=s-r,d=24*(t-s),l=Math.floor(d);d=60*(d-l);var u=Math.floor(d);return{mon:a,day:o,hr:l,minute:u,sec:60*(d-u)}}function M(e,t,n,s,i,r){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;return 367*e-Math.floor(7*(e+Math.floor((t+9)/12))*.25)+Math.floor(275*t/9)+n+1721013.5+((a/6e4+r/60+i)/60+s)/24}function v(e,t,n,s,i,r,a){if(e instanceof Date){var o=e;return M(o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate(),o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds())}return M(e,t,n,s,i,r,a)}function w(e,t){var n,r,a,o,d,l,u,h,c,f,m,_,p,g,y,M,v,w,x=e.e3,k=e.ee2,S=e.peo,D=e.pgho,b=e.pho,Y=e.pinco,O=e.plo,T=e.se2,z=e.se3,N=e.sgh2,P=e.sgh3,C=e.sgh4,R=e.sh2,W=e.sh3,U=e.si2,E=e.si3,F=e.sl2,L=e.sl3,H=e.sl4,I=e.t,j=e.xgh2,A=e.xgh3,V=e.xgh4,G=e.xh2,q=e.xh3,Z=e.xi2,$=e.xi3,B=e.xl2,J=e.xl3,Q=e.xl4,X=e.zmol,K=e.zmos,ee=t.init,te=t.opsmode,ne=t.ep,se=t.inclp,ie=t.nodep,re=t.argpp,ae=t.mp;w=K+119459e-10*I,"y"===ee&&(w=K),v=w+.0335*Math.sin(w);var oe=T*(u=.5*(g=Math.sin(v))*g-.25)+z*(h=-.5*g*Math.cos(v)),de=U*u+E*h,le=F*u+L*h+H*g,ue=N*u+P*h+C*g,he=R*u+W*h;return w=X+.00015835218*I,"y"===ee&&(w=X),v=w+.1098*Math.sin(w),c=oe+(k*(u=.5*(g=Math.sin(v))*g-.25)+x*(h=-.5*g*Math.cos(v))),_=de+(Z*u+$*h),p=le+(B*u+J*h+Q*g),f=ue+(j*u+A*h+V*g),m=he+(G*u+q*h),"n"===ee&&(p-=O,f-=D,m-=b,se+=_-=Y,ne+=c-=S,o=Math.sin(se),a=Math.cos(se),se>=.2?(re+=f-=a*(m/=o),ie+=m,ae+=p):(n=o*(l=Math.sin(ie)),r=o*(d=Math.cos(ie)),n+=m*d+_*a*l,r+=-m*l+_*a*d,(ie%=i)<0&&"a"===te&&(ie+=i),y=ae+re+a*ie,y+=p+f-_*ie*o,M=ie,(ie=Math.atan2(n,r))<0&&"a"===te&&(ie+=i),Math.abs(M-ie)>s&&(ie<M?ie+=i:ie-=i),re=y-(ae+=p)-a*ie)),{ep:ne,inclp:se,nodep:ie,argpp:re,mp:ae}}function x(e){var t=(e-2451545)/36525,n=-62e-7*t*t*t+.093104*t*t+3164400184.812866*t+67310.54841;return(n=n*r/240%i)<0&&(n+=i),n}function k(){return(arguments.length<=0?void 0:arguments[0])instanceof Date||arguments.length>1?x(v.apply(void 0,arguments)):x.apply(void 0,arguments)}function S(e,t){var n,r,a,o,h,f,m,g,y,M,v,x,k,S,D,b,Y,O,T,z,N,P,C,R,W,U;e.t=t,e.error=0;var E=e.mo+e.mdot*e.t,F=e.argpo+e.argpdot*e.t,L=e.nodeo+e.nodedot*e.t;g=F,z=E;var H=e.t*e.t;if(P=L+e.nodecf*H,b=1-e.cc1*e.t,Y=e.bstar*e.cc4*e.t,O=e.t2cof*H,1!==e.isimp){f=e.omgcof*e.t;var I=1+e.eta*Math.cos(E);z=E+(D=f+e.xmcof*(I*I*I-e.delmo)),g=F-D,x=(v=H*e.t)*e.t,b=b-e.d2*H-e.d3*v-e.d4*x,Y+=e.bstar*e.cc5*(Math.sin(z)-e.sinmao),O=O+e.t3cof*v+x*(e.t4cof+e.t*e.t5cof)}N=e.no;var j=e.ecco;if(T=e.inclo,"d"===e.method){k=e.t;var A=function(e){var t,n,s,r,a,o,d,l,u=e.irez,h=e.d2201,c=e.d2211,f=e.d3210,m=e.d3222,_=e.d4410,p=e.d4422,g=e.d5220,y=e.d5232,M=e.d5421,v=e.d5433,w=e.dedt,x=e.del1,k=e.del2,S=e.del3,D=e.didt,b=e.dmdt,Y=e.dnodt,O=e.domdt,T=e.argpo,z=e.argpdot,N=e.t,P=e.tc,C=e.gsto,R=e.xfact,W=e.xlamo,U=e.no,E=e.atime,F=e.em,L=e.argpm,H=e.inclm,I=e.xli,j=e.mm,A=e.xni,V=e.nodem,G=e.nm,q=.13130908,Z=2.8843198,$=.37448087,B=5.7686396,J=.95240898,Q=1.8014998,X=1.050833,K=4.4108898,ee=259200,te=0,ne=0,se=(C+.0043752690880113*P)%i;if(F+=w*N,H+=D*N,L+=O*N,V+=Y*N,j+=b*N,0!==u){(0===E||N*E<=0||Math.abs(N)<Math.abs(E))&&(E=0,A=U,I=W),t=N>0?720:-720;for(var ie=381;381===ie;)2!==u?(d=x*Math.sin(I-q)+k*Math.sin(2*(I-Z))+S*Math.sin(3*(I-$)),a=A+R,o=x*Math.cos(I-q)+2*k*Math.cos(2*(I-Z))+3*S*Math.cos(3*(I-$)),o*=a):(s=(l=T+z*E)+l,n=I+I,d=h*Math.sin(s+I-B)+c*Math.sin(I-B)+f*Math.sin(l+I-J)+m*Math.sin(-l+I-J)+_*Math.sin(s+n-Q)+p*Math.sin(n-Q)+g*Math.sin(l+I-X)+y*Math.sin(-l+I-X)+M*Math.sin(l+n-K)+v*Math.sin(-l+n-K),a=A+R,o=h*Math.cos(s+I-B)+c*Math.cos(I-B)+f*Math.cos(l+I-J)+m*Math.cos(-l+I-J)+g*Math.cos(l+I-X)+y*Math.cos(-l+I-X)+2*_*Math.cos(s+n-Q)+p*Math.cos(n-Q)+M*Math.cos(l+n-K)+v*Math.cos(-l+n-K),o*=a),Math.abs(N-E)>=720?ie=381:(ne=N-E,ie=0),381===ie&&(I+=a*t+d*ee,A+=d*t+o*ee,E+=t);G=A+d*ne+o*ne*ne*.5,r=I+a*ne+d*ne*ne*.5,1!==u?(j=r-2*V+2*se,te=G-U):(j=r-V-L+se,te=G-U),G=U+te}return{atime:E,em:F,argpm:L,inclm:H,xli:I,mm:j,xni:A,nodem:V,dndt:te,nm:G}}({irez:e.irez,d2201:e.d2201,d2211:e.d2211,d3210:e.d3210,d3222:e.d3222,d4410:e.d4410,d4422:e.d4422,d5220:e.d5220,d5232:e.d5232,d5421:e.d5421,d5433:e.d5433,dedt:e.dedt,del1:e.del1,del2:e.del2,del3:e.del3,didt:e.didt,dmdt:e.dmdt,dnodt:e.dnodt,domdt:e.domdt,argpo:e.argpo,argpdot:e.argpdot,t:e.t,tc:k,gsto:e.gsto,xfact:e.xfact,xlamo:e.xlamo,no:e.no,atime:e.atime,em:j,argpm:g,inclm:T,xli:e.xli,mm:z,xni:e.xni,nodem:P,nm:N});j=A.em,g=A.argpm,T=A.inclm,z=A.mm,P=A.nodem,N=A.nm}if(N<=0)return e.error=2,[!1,!1];var V=Math.pow(l/N,p)*b*b;if(N=l/Math.pow(V,1.5),(j-=Y)>=1||j<-.001)return e.error=1,[!1,!1];j<1e-6&&(j=1e-6),R=(z+=e.no*O)+g+P;var G=j;if(C=T,y=g%=i,U=P%=i,W=z=((R%=i)-g-P)%i,o=Math.sin(T),a=Math.cos(T),"d"===e.method){var q=w(e,{inclo:e.inclo,init:"n",ep:G,inclp:C,nodep:U,argpp:y,mp:W,opsmode:e.operationmode});if(G=q.ep,U=q.nodep,y=q.argpp,W=q.mp,(C=q.inclp)<0&&(C=-C,U+=s,y-=s),G<0||G>1)return e.error=3,[!1,!1]}"d"===e.method&&(o=Math.sin(C),a=Math.cos(C),e.aycof=-.5*_*o,Math.abs(a+1)>15e-13?e.xlcof=-.25*_*o*(3+5*a)/(1+a):e.xlcof=-.25*_*o*(3+5*a)/15e-13);var Z=G*Math.cos(y);D=1/(V*(1-G*G));var $=G*Math.sin(y)+D*e.aycof,B=(W+y+U+D*e.xlcof*Z-U)%i;m=B,S=9999.9;for(var J=1;Math.abs(S)>=1e-12&&J<=10;)r=Math.sin(m),S=(B-$*(n=Math.cos(m))+Z*r-m)/(S=1-n*Z-r*$),Math.abs(S)>=.95&&(S=S>0?.95:-.95),m+=S,J+=1;var Q=Z*n+$*r,X=Z*r-$*n,K=Z*Z+$*$,ee=V*(1-K);if(ee<0)return e.error=4,[!1,!1];var te=V*(1-Q),ne=Math.sqrt(V)*X/te,se=Math.sqrt(ee)/te,ie=Math.sqrt(1-K),re=V/te*(r-$-Z*(D=X/(1+ie))),ae=V/te*(n-Z+$*D);M=Math.atan2(re,ae);var oe=(ae+ae)*re,de=1-2*re*re,le=.5*c*(D=1/ee),ue=le*D;"d"===e.method&&(h=a*a,e.con41=3*h-1,e.x1mth2=1-h,e.x7thm1=7*h-1);var he=te*(1-1.5*ue*ie*e.con41)+.5*le*e.x1mth2*de;if(he<1)return e.error=6,{position:!1,velocity:!1};M-=.25*ue*e.x7thm1*oe;var ce=U+1.5*ue*a*oe,fe=C+1.5*ue*a*o*de,me=ne-N*le*e.x1mth2*oe/l,_e=se+N*le*(e.x1mth2*de+1.5*e.con41)/l,pe=Math.sin(M),ge=Math.cos(M),ye=Math.sin(ce),Me=Math.cos(ce),ve=Math.sin(fe),we=Math.cos(fe),xe=-ye*we,ke=Me*we,Se=xe*pe+Me*ge,De=ke*pe+ye*ge,be=ve*pe;return{position:{x:he*Se*d,y:he*De*d,z:he*be*d},velocity:{x:(me*Se+_e*(xe*ge-Me*pe))*u,y:(me*De+_e*(ke*ge-ye*pe))*u,z:(me*be+_e*(ve*ge))*u}}}function D(e,t){var n,r,a,o,u,h,f,g,y,M,v,x,D,b,Y,O,T,z,N,P,C,R,W,U,E,F,L,H,I,j,A,V,G,q,Z,$,B,J,Q,X,K,ee,te,ne,se,ie,re,ae,oe,de,le,ue,he=t.opsmode,ce=t.epoch,fe=t.xbstar,me=t.xecco,_e=t.xargpo,pe=t.xinclo,ge=t.xmo,ye=t.xno,Me=t.xnodeo;e.isimp=0,e.method="n",e.aycof=0,e.con41=0,e.cc1=0,e.cc4=0,e.cc5=0,e.d2=0,e.d3=0,e.d4=0,e.delmo=0,e.eta=0,e.argpdot=0,e.omgcof=0,e.sinmao=0,e.t=0,e.t2cof=0,e.t3cof=0,e.t4cof=0,e.t5cof=0,e.x1mth2=0,e.x7thm1=0,e.mdot=0,e.nodedot=0,e.xlcof=0,e.xmcof=0,e.nodecf=0,e.irez=0,e.d2201=0,e.d2211=0,e.d3210=0,e.d3222=0,e.d4410=0,e.d4422=0,e.d5220=0,e.d5232=0,e.d5421=0,e.d5433=0,e.dedt=0,e.del1=0,e.del2=0,e.del3=0,e.didt=0,e.dmdt=0,e.dnodt=0,e.domdt=0,e.e3=0,e.ee2=0,e.peo=0,e.pgho=0,e.pho=0,e.pinco=0,e.plo=0,e.se2=0,e.se3=0,e.sgh2=0,e.sgh3=0,e.sgh4=0,e.sh2=0,e.sh3=0,e.si2=0,e.si3=0,e.sl2=0,e.sl3=0,e.sl4=0,e.gsto=0,e.xfact=0,e.xgh2=0,e.xgh3=0,e.xgh4=0,e.xh2=0,e.xh3=0,e.xi2=0,e.xi3=0,e.xl2=0,e.xl3=0,e.xl4=0,e.xlamo=0,e.zmol=0,e.zmos=0,e.atime=0,e.xli=0,e.xni=0,e.bstar=fe,e.ecco=me,e.argpo=_e,e.inclo=pe,e.mo=ge,e.no=ye,e.nodeo=Me,e.operationmode=he;var ve=78/d+1;e.init="y",e.t=0;var we=function(e){var t=e.ecco,n=e.epoch,s=e.inclo,r=e.opsmode,a=e.no,o=t*t,d=1-o,u=Math.sqrt(d),h=Math.cos(s),f=h*h,m=Math.pow(l/a,p),_=.75*c*(3*f-1)/(u*d),g=_/(m*m),y=m*(1-g*g-g*(1/3+134*g*g/81));a/=1+(g=_/(y*y));var M,v=Math.pow(l/a,p),w=Math.sin(s),x=v*d,S=1-5*f,D=-S-f-f,b=1/v,Y=x*x,O=v*(1-t);if("a"===r){var T=n-7305,z=Math.floor(T+1e-8),N=.017202791694070362;(M=(1.7321343856509375+N*z+(N+i)*(T-z)+T*T*5075514194322695e-30)%i)<0&&(M+=i)}else M=k(n+2433281.5);return{no:a,method:"n",ainv:b,ao:v,con41:D,con42:S,cosio:h,cosio2:f,eccsq:o,omeosq:d,posq:Y,rp:O,rteosq:u,sinio:w,gsto:M}}({ecco:e.ecco,epoch:ce,inclo:e.inclo,no:e.no,method:e.method,opsmode:e.operationmode}),xe=we.ao,ke=we.con42,Se=we.cosio,De=we.cosio2,be=we.eccsq,Ye=we.omeosq,Oe=we.posq,Te=we.rp,ze=we.rteosq,Ne=we.sinio;if(e.no=we.no,e.con41=we.con41,e.gsto=we.gsto,e.error=0,Ye>=0||e.no>=0){if(e.isimp=0,Te<220/d+1&&(e.isimp=1),U=ve,z=1.8802768006108976e-9,(Y=(Te-1)*d)<156){U=Y-78,Y<98&&(U=20);var Pe=(120-U)/d;z=Pe*Pe*Pe*Pe,U=U/d+1}O=1/Oe,ee=1/(xe-U),e.eta=xe*e.ecco*ee,x=e.eta*e.eta,v=e.ecco*e.eta,T=Math.abs(1-x),o=(f=(h=z*Math.pow(ee,4))/Math.pow(T,3.5))*e.no*(xe*(1+1.5*x+v*(4+x))+.375*c*ee/T*e.con41*(8+3*x*(8+x))),e.cc1=e.bstar*o,u=0,e.ecco>1e-4&&(u=-2*h*ee*_*e.no*Ne/e.ecco),e.x1mth2=1-De,e.cc4=2*e.no*f*xe*Ye*(e.eta*(2+.5*x)+e.ecco*(.5+2*x)-c*ee/(xe*T)*(-3*e.con41*(1-2*v+x*(1.5-.5*v))+.75*e.x1mth2*(2*x-v*(1+x))*Math.cos(2*e.argpo))),e.cc5=2*f*xe*Ye*(1+2.75*(x+v)+v*x),g=De*De,X=.5*(Q=1.5*c*O*e.no)*c*O,K=-.46875*m*O*O*e.no,e.mdot=e.no+.5*Q*ze*e.con41+.0625*X*ze*(13-78*De+137*g),e.argpdot=-.5*Q*ke+.0625*X*(7-114*De+395*g)+K*(3-36*De+49*g),ne=-Q*Se,e.nodedot=ne+(.5*X*(4-19*De)+2*K*(3-7*De))*Se,te=e.argpdot+e.nodedot,e.omgcof=e.bstar*u*Math.cos(e.argpo),e.xmcof=0,e.ecco>1e-4&&(e.xmcof=-.6666666666666666*h*e.bstar/v),e.nodecf=3.5*Ye*ne*e.cc1,e.t2cof=1.5*e.cc1,Math.abs(Se+1)>15e-13?e.xlcof=-.25*_*Ne*(3+5*Se)/(1+Se):e.xlcof=-.25*_*Ne*(3+5*Se)/15e-13,e.aycof=-.5*_*Ne;var Ce=1+e.eta*Math.cos(e.mo);if(e.delmo=Ce*Ce*Ce,e.sinmao=Math.sin(e.mo),e.x7thm1=7*De-1,2*s/e.no>=225){e.method="d",e.isimp=1,D=e.inclo;var Re=function(e){var t,n,s,r,a,o,d,l,u,h,c,f,m,_,p,g,y,M,v,w,x,k,S,D,b,Y,O,T,z,N,P,C,R,W,U,E,F,L,H,I,j,A,V,G,q,Z,$,B,J,Q,X,K,ee,te,ne,se,ie,re,ae,oe,de,le,ue,he=e.epoch,ce=e.ep,fe=e.argpp,me=e.tc,_e=e.inclp,pe=e.nodep,ge=.01675,ye=.0549,Me=e.np,ve=ce,we=Math.sin(pe),xe=Math.cos(pe),ke=Math.sin(fe),Se=Math.cos(fe),De=Math.sin(_e),be=Math.cos(_e),Ye=ve*ve,Oe=1-Ye,Te=Math.sqrt(Oe),ze=he+18261.5+me/1440,Ne=(4.523602-.00092422029*ze)%i,Pe=Math.sin(Ne),Ce=Math.cos(Ne),Re=.91375164-.03568096*Ce,We=Math.sqrt(1-Re*Re),Ue=.089683511*Pe/We,Ee=Math.sqrt(1-Ue*Ue),Fe=5.8351514+.001944368*ze,Le=.39785416*Pe/We,He=Ee*Ce+.91744867*Ue*Pe;Le=Math.atan2(Le,He),Le+=Fe-Ne;var Ie=Math.cos(Le),je=Math.sin(Le);w=.1945905,x=-.98088458,D=.91744867,b=.39785416,k=xe,S=we,c=29864797e-13;for(var Ae=1/Me,Ve=0;Ve<2;)ne=-6*(t=w*k+x*D*S)*(a=-De*(d=-w*S+x*D*k)+be*(l=x*b))+Ye*(-24*(f=t*Se+(n=be*d+De*l)*ke)*(M=a*Se)-6*(_=-t*ke+n*Se)*(g=a*ke)),se=-6*(t*(o=-De*(u=x*S+w*D*k)+be*(h=w*b))+(s=-x*k+w*D*S)*a)+Ye*(-24*((m=s*Se+(r=be*u+De*h)*ke)*M+f*(v=o*Se))+-6*(_*(y=o*ke)+(p=-s*ke+r*Se)*g)),ie=-6*s*o+Ye*(-24*m*v-6*p*y),re=6*n*a+Ye*(24*f*g-6*_*M),ae=6*(r*a+n*o)+Ye*(24*(m*g+f*y)-6*(p*M+_*v)),oe=6*r*o+Ye*(24*m*y-6*p*v),K=(K=3*(t*t+n*n)+(de=12*f*f-3*_*_)*Ye)+K+Oe*de,ee=(ee=6*(t*s+n*r)+(le=24*f*m-6*_*p)*Ye)+ee+Oe*le,te=(te=3*(s*s+r*r)+(ue=12*m*m-3*p*p)*Ye)+te+Oe*ue,Z=-.5*($=c*Ae)/Te,q=-15*ve*(B=$*Te),J=f*_+m*p,Q=m*_+f*p,X=m*p-f*_,1===(Ve+=1)&&(Y=q,O=Z,T=$,z=B,N=J,P=Q,C=X,R=K,W=ee,U=te,E=ne,F=se,L=ie,H=re,I=ae,j=oe,A=de,V=le,G=ue,w=Ie,x=je,D=Re,b=We,k=Ee*xe+Ue*we,S=we*Ee-xe*Ue,c=4.7968065e-7);return{snodm:we,cnodm:xe,sinim:De,cosim:be,sinomm:ke,cosomm:Se,day:ze,e3:2*q*X,ee2:2*q*Q,em:ve,emsq:Ye,gam:Fe,peo:0,pgho:0,pho:0,pinco:0,plo:0,rtemsq:Te,se2:2*Y*P,se3:2*Y*C,sgh2:2*z*V,sgh3:2*z*(G-A),sgh4:-18*z*ge,sh2:-2*O*I,sh3:-2*O*(j-H),si2:2*O*F,si3:2*O*(L-E),sl2:-2*T*W,sl3:-2*T*(U-R),sl4:-2*T*(-21-9*Ye)*ge,s1:q,s2:Z,s3:$,s4:B,s5:J,s6:Q,s7:X,ss1:Y,ss2:O,ss3:T,ss4:z,ss5:N,ss6:P,ss7:C,sz1:R,sz2:W,sz3:U,sz11:E,sz12:F,sz13:L,sz21:H,sz22:I,sz23:j,sz31:A,sz32:V,sz33:G,xgh2:2*B*le,xgh3:2*B*(ue-de),xgh4:-18*B*ye,xh2:-2*Z*ae,xh3:-2*Z*(oe-re),xi2:2*Z*se,xi3:2*Z*(ie-ne),xl2:-2*$*ee,xl3:-2*$*(te-K),xl4:-2*$*(-21-9*Ye)*ye,nm:Me,z1:K,z2:ee,z3:te,z11:ne,z12:se,z13:ie,z21:re,z22:ae,z23:oe,z31:de,z32:le,z33:ue,zmol:(.2299715*ze-Fe+4.7199672)%i,zmos:(6.2565837+.017201977*ze)%i}}({epoch:ce,ep:e.ecco,argpp:e.argpo,tc:0,inclp:e.inclo,nodep:e.nodeo,np:e.no,e3:e.e3,ee2:e.ee2,peo:e.peo,pgho:e.pgho,pho:e.pho,pinco:e.pinco,plo:e.plo,se2:e.se2,se3:e.se3,sgh2:e.sgh2,sgh3:e.sgh3,sgh4:e.sgh4,sh2:e.sh2,sh3:e.sh3,si2:e.si2,si3:e.si3,sl2:e.sl2,sl3:e.sl3,sl4:e.sl4,xgh2:e.xgh2,xgh3:e.xgh3,xgh4:e.xgh4,xh2:e.xh2,xh3:e.xh3,xi2:e.xi2,xi3:e.xi3,xl2:e.xl2,xl3:e.xl3,xl4:e.xl4,zmol:e.zmol,zmos:e.zmos});e.e3=Re.e3,e.ee2=Re.ee2,e.peo=Re.peo,e.pgho=Re.pgho,e.pho=Re.pho,e.pinco=Re.pinco,e.plo=Re.plo,e.se2=Re.se2,e.se3=Re.se3,e.sgh2=Re.sgh2,e.sgh3=Re.sgh3,e.sgh4=Re.sgh4,e.sh2=Re.sh2,e.sh3=Re.sh3,e.si2=Re.si2,e.si3=Re.si3,e.sl2=Re.sl2,e.sl3=Re.sl3,e.sl4=Re.sl4,r=Re.sinim,n=Re.cosim,y=Re.em,M=Re.emsq,N=Re.s1,P=Re.s2,C=Re.s3,R=Re.s4,W=Re.s5,E=Re.ss1,F=Re.ss2,L=Re.ss3,H=Re.ss4,I=Re.ss5,j=Re.sz1,A=Re.sz3,V=Re.sz11,G=Re.sz13,q=Re.sz21,Z=Re.sz23,$=Re.sz31,B=Re.sz33,e.xgh2=Re.xgh2,e.xgh3=Re.xgh3,e.xgh4=Re.xgh4,e.xh2=Re.xh2,e.xh3=Re.xh3,e.xi2=Re.xi2,e.xi3=Re.xi3,e.xl2=Re.xl2,e.xl3=Re.xl3,e.xl4=Re.xl4,e.zmol=Re.zmol,e.zmos=Re.zmos,b=Re.nm,se=Re.z1,ie=Re.z3,re=Re.z11,ae=Re.z13,oe=Re.z21,de=Re.z23,le=Re.z31,ue=Re.z33;var We=w(e,{inclo:D,init:e.init,ep:e.ecco,inclp:e.inclo,nodep:e.nodeo,argpp:e.argpo,mp:e.mo,opsmode:e.operationmode});e.ecco=We.ep,e.inclo=We.inclp,e.nodeo=We.nodep,e.argpo=We.argpp,e.mo=We.mp;var Ue=function(e){var t,n,r,a,o,d,u,h,c,f,m,_,g,y,M,v,w,x=e.cosim,k=e.argpo,S=e.s1,D=e.s2,b=e.s3,Y=e.s4,O=e.s5,T=e.sinim,z=e.ss1,N=e.ss2,P=e.ss3,C=e.ss4,R=e.ss5,W=e.sz1,U=e.sz3,E=e.sz11,F=e.sz13,L=e.sz21,H=e.sz23,I=e.sz31,j=e.sz33,A=e.t,V=e.tc,G=e.gsto,q=e.mo,Z=e.mdot,$=e.no,B=e.nodeo,J=e.nodedot,Q=e.xpidot,X=e.z1,K=e.z3,ee=e.z11,te=e.z13,ne=e.z21,se=e.z23,ie=e.z31,re=e.z33,ae=e.ecco,oe=e.eccsq,de=e.emsq,le=e.em,ue=e.argpm,he=e.inclm,ce=e.mm,fe=e.nm,me=e.nodem,_e=e.irez,pe=e.atime,ge=e.d2201,ye=e.d2211,Me=e.d3210,ve=e.d3222,we=e.d4410,xe=e.d4422,ke=e.d5220,Se=e.d5232,De=e.d5421,be=e.d5433,Ye=e.dedt,Oe=e.didt,Te=e.dmdt,ze=e.dnodt,Ne=e.domdt,Pe=e.del1,Ce=e.del2,Re=e.del3,We=e.xfact,Ue=e.xlamo,Ee=e.xli,Fe=e.xni,Le=.0043752690880113,He=.00015835218,Ie=119459e-10;_e=0,fe<.0052359877&&fe>.0034906585&&(_e=1),fe>=.00826&&fe<=.00924&&le>=.5&&(_e=2);var je=-119459e-10*N*(L+H);(he<.052359877||he>s-.052359877)&&(je=0),0!==T&&(je/=T);var Ae=-.00015835218*D*(ne+se);(he<.052359877||he>s-.052359877)&&(Ae=0),Ne=C*Ie*(I+j-6)-x*je+Y*He*(ie+re-6),ze=je,0!==T&&(Ne-=x/T*Ae,ze+=Ae/T);var Ve=(G+V*Le)%i;if(le+=(Ye=z*Ie*R+S*He*O)*A,he+=(Oe=N*Ie*(E+F)+D*He*(ee+te))*A,ue+=Ne*A,me+=ze*A,ce+=(Te=-119459e-10*P*(W+U-14-6*de)-He*b*(X+K-14-6*de))*A,0!==_e){if(M=Math.pow(fe/l,p),2===_e){var Ge=le,qe=de;w=(le=ae)*(de=oe),le<=.65?(r=3.616-13.247*le+16.29*de,a=117.39*le-19.302-228.419*de+156.591*w,o=109.7927*le-18.9068-214.6334*de+146.5816*w,d=242.694*le-41.122-471.094*de+313.953*w,u=841.88*le-146.407-1629.014*de+1083.435*w,h=3017.977*le-532.114-5740.032*de+3708.276*w):(r=331.819*le-72.099-508.738*de+266.724*w,a=1582.851*le-346.844-2415.925*de+1246.113*w,o=1554.908*le-342.585-2366.899*de+1215.972*w,d=4758.686*le-1052.797-7193.992*de+3651.957*w,u=16178.11*le-3581.69-24462.77*de+12422.52*w,h=le>.715?29936.92*le-5149.66-54087.36*de+31324.56*w:1464.74-4664.75*le+3763.64*de),le<.7?(m=4988.61*le-919.2277-9064.77*de+5542.21*w,c=4568.6173*le-822.71072-8491.4146*de+5337.524*w,f=4690.25*le-853.666-8624.77*de+5341.4*w):(m=161616.52*le-37995.78-229838.2*de+109377.94*w,c=218913.95*le-51752.104-309468.16*de+146349.42*w,f=170470.89*le-40023.88-242699.48*de+115605.82*w),ge=(g=17891679e-13*(y=fe*fe*3*(M*M)))*(t=.75*(1+2*x+(v=x*x)))*(-.306-.44*(le-.64)),ye=g*(1.5*(_=T*T))*r,Me=(g=3.7393792e-7*(y*=M))*(1.875*T*(1-2*x-3*v))*a,ve=g*(-1.875*T*(1+2*x-3*v))*o,we=(g=2*(y*=M)*7.3636953e-9)*(35*_*t)*d,xe=g*(39.375*_*_)*u,ke=(g=1.1428639e-7*(y*=M))*(9.84375*T*(_*(1-2*x-5*v)+.33333333*(4*x-2+6*v)))*h,Se=g*(T*(4.92187512*_*(-2-4*x+10*v)+6.56250012*(1+2*x-3*v)))*f,De=(g=2*y*2.1765803e-9)*(29.53125*T*(2-8*x+v*(8*x-12+10*v)))*c,be=g*(29.53125*T*(-2-8*x+v*(12+8*x-10*v)))*m,Ue=(q+B+B-(Ve+Ve))%i,We=Z+Te+2*(J+ze-Le)-$,le=Ge,de=qe}1===_e&&(n=1+x,Ce=2*(Pe=3*fe*fe*M*M)*(t=.75*(1+x)*(1+x))*(1+de*(.8125*de-2.5))*17891679e-13,Re=3*Pe*(n*=1.875*n*n)*(1+de*(6.60937*de-6))*2.2123015e-7*M,Pe=Pe*(.9375*T*T*(1+3*x)-.75*(1+x))*(a=1+2*de)*21460748e-13*M,Ue=(q+B+k-Ve)%i,We=Z+Q+Te+Ne+ze-($+Le)),Ee=Ue,Fe=$,pe=0,fe=$+0}return{em:le,argpm:ue,inclm:he,mm:ce,nm:fe,nodem:me,irez:_e,atime:pe,d2201:ge,d2211:ye,d3210:Me,d3222:ve,d4410:we,d4422:xe,d5220:ke,d5232:Se,d5421:De,d5433:be,dedt:Ye,didt:Oe,dmdt:Te,dndt:0,dnodt:ze,domdt:Ne,del1:Pe,del2:Ce,del3:Re,xfact:We,xlamo:Ue,xli:Ee,xni:Fe}}({cosim:n,emsq:M,argpo:e.argpo,s1:N,s2:P,s3:C,s4:R,s5:W,sinim:r,ss1:E,ss2:F,ss3:L,ss4:H,ss5:I,sz1:j,sz3:A,sz11:V,sz13:G,sz21:q,sz23:Z,sz31:$,sz33:B,t:e.t,tc:0,gsto:e.gsto,mo:e.mo,mdot:e.mdot,no:e.no,nodeo:e.nodeo,nodedot:e.nodedot,xpidot:te,z1:se,z3:ie,z11:re,z13:ae,z21:oe,z23:de,z31:le,z33:ue,ecco:e.ecco,eccsq:be,em:y,argpm:0,inclm:D,mm:0,nm:b,nodem:0,irez:e.irez,atime:e.atime,d2201:e.d2201,d2211:e.d2211,d3210:e.d3210,d3222:e.d3222,d4410:e.d4410,d4422:e.d4422,d5220:e.d5220,d5232:e.d5232,d5421:e.d5421,d5433:e.d5433,dedt:e.dedt,didt:e.didt,dmdt:e.dmdt,dnodt:e.dnodt,domdt:e.domdt,del1:e.del1,del2:e.del2,del3:e.del3,xfact:e.xfact,xlamo:e.xlamo,xli:e.xli,xni:e.xni});e.irez=Ue.irez,e.atime=Ue.atime,e.d2201=Ue.d2201,e.d2211=Ue.d2211,e.d3210=Ue.d3210,e.d3222=Ue.d3222,e.d4410=Ue.d4410,e.d4422=Ue.d4422,e.d5220=Ue.d5220,e.d5232=Ue.d5232,e.d5421=Ue.d5421,e.d5433=Ue.d5433,e.dedt=Ue.dedt,e.didt=Ue.didt,e.dmdt=Ue.dmdt,e.dnodt=Ue.dnodt,e.domdt=Ue.domdt,e.del1=Ue.del1,e.del2=Ue.del2,e.del3=Ue.del3,e.xfact=Ue.xfact,e.xlamo=Ue.xlamo,e.xli=Ue.xli,e.xni=Ue.xni}1!==e.isimp&&(a=e.cc1*e.cc1,e.d2=4*xe*ee*a,J=e.d2*ee*e.cc1/3,e.d3=(17*xe+U)*J,e.d4=.5*J*xe*ee*(221*xe+31*U)*e.cc1,e.t3cof=e.d2+2*a,e.t4cof=.25*(3*e.d3+e.cc1*(12*e.d2+10*a)),e.t5cof=.2*(3*e.d4+12*e.cc1*e.d3+6*e.d2*e.d2+15*a*(2*e.d2+a)))}S(e,0),e.init="n"}function b(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Y(e){return e*a}function O(e){return e*r}function T(e){var t=e.longitude,n=e.latitude,s=e.height,i=6378.137,r=(i-6356.7523142)/i,a=2*r-r*r,o=i/Math.sqrt(1-a*(Math.sin(n)*Math.sin(n)));return{x:(o+s)*Math.cos(n)*Math.cos(t),y:(o+s)*Math.cos(n)*Math.sin(t),z:(o*(1-a)+s)*Math.sin(n)}}var z=Object.freeze({__proto__:null,constants:g,degreesLat:function(e){if(e<-s/2||e>s/2)throw new RangeError("Latitude radians must be in range [-pi/2; pi/2].");return Y(e)},degreesLong:function(e){if(e<-s||e>s)throw new RangeError("Longitude radians must be in range [-pi; pi].");return Y(e)},degreesToRadians:O,dopplerFactor:function(e,t,n){var s=Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)+Math.pow(t.z-e.z,2)),i=t.x+n.x,r=t.y+n.y,a=t.z+n.z,o=Math.sqrt(Math.pow(i-e.x,2)+Math.pow(r-e.y,2)+Math.pow(a-e.z,2))-s;return 1+(o*=o>=0?1:-1)/299792.458},ecfToEci:function(e,t){return{x:e.x*Math.cos(t)-e.y*Math.sin(t),y:e.x*Math.sin(t)+e.y*Math.cos(t),z:e.z}},ecfToLookAngles:function(e,t){var n,i,r,a,o,d,l=function(e,t){var n=e.longitude,s=e.latitude,i=T(e),r=t.x-i.x,a=t.y-i.y,o=t.z-i.z;return{topS:Math.sin(s)*Math.cos(n)*r+Math.sin(s)*Math.sin(n)*a-Math.cos(s)*o,topE:-Math.sin(n)*r+Math.cos(n)*a,topZ:Math.cos(s)*Math.cos(n)*r+Math.cos(s)*Math.sin(n)*a+Math.sin(s)*o}}(e,t);return i=(n=l).topS,r=n.topE,a=n.topZ,o=Math.sqrt(i*i+r*r+a*a),d=Math.asin(a/o),{azimuth:Math.atan2(-r,i)+s,elevation:d,rangeSat:o}},eciToEcf:function(e,t){return{x:e.x*Math.cos(t)+e.y*Math.sin(t),y:e.x*-Math.sin(t)+e.y*Math.cos(t),z:e.z}},eciToGeodetic:function(e,t){for(var n=6378.137,r=Math.sqrt(e.x*e.x+e.y*e.y),a=(n-6356.7523142)/n,o=2*a-a*a,d=Math.atan2(e.y,e.x)-t;d<-s;)d+=i;for(;d>s;)d-=i;for(var l,u=0,h=Math.atan2(e.z,Math.sqrt(e.x*e.x+e.y*e.y));u<20;)l=1/Math.sqrt(1-o*(Math.sin(h)*Math.sin(h))),h=Math.atan2(e.z+n*l*o*Math.sin(h),r),u+=1;return{longitude:d,latitude:h,height:r/Math.cos(h)-n*l}},geodeticToEcf:T,gstime:k,invjday:function(e,t){var n=e-2415019.5,s=n/365.25,i=1900+Math.floor(s),r=Math.floor(.25*(i-1901)),a=n-(365*(i-1900)+r)+1e-11;a<1&&(a=n-(365*((i-=1)-1900)+(r=Math.floor(.25*(i-1901)))));var o=y(i,a),d=o.mon,l=o.day,u=o.hr,h=o.minute,c=o.sec-864e-9;return t?[i,d,l,u,h,Math.floor(c)]:new Date(Date.UTC(i,d-1,l,u,h,Math.floor(c)))},jday:v,propagate:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var s=t[0],i=Array.prototype.slice.call(t,1);return S(s,1440*(v.apply(void 0,b(i))-s.jdsatepoch))},radiansLat:function(e){if(e<-90||e>90)throw new RangeError("Latitude degrees must be in range [-90; 90].");return O(e)},radiansLong:function(e){if(e<-180||e>180)throw new RangeError("Longitude degrees must be in range [-180; 180].");return O(e)},radiansToDegrees:Y,sgp4:S,twoline2satrec:function(e,t){var n=1440/(2*s),i=0,a={error:0};a.satnum=e.substring(2,7),a.epochyr=parseInt(e.substring(18,20),10),a.epochdays=parseFloat(e.substring(20,32)),a.ndot=parseFloat(e.substring(33,43)),a.nddot=parseFloat(".".concat(parseInt(e.substring(44,50),10),"E").concat(e.substring(50,52))),a.bstar=parseFloat("".concat(e.substring(53,54),".").concat(parseInt(e.substring(54,59),10),"E").concat(e.substring(59,61))),a.inclo=parseFloat(t.substring(8,16)),a.nodeo=parseFloat(t.substring(17,25)),a.ecco=parseFloat(".".concat(t.substring(26,33))),a.argpo=parseFloat(t.substring(34,42)),a.mo=parseFloat(t.substring(43,51)),a.no=parseFloat(t.substring(52,63)),a.no/=n,a.a=Math.pow(a.no*h,-2/3),a.ndot/=1440*n,a.nddot/=1440*n*1440,a.inclo*=r,a.nodeo*=r,a.argpo*=r,a.mo*=r,a.alta=a.a*(1+a.ecco)-1,a.altp=a.a*(1-a.ecco)-1;var o=y(i=a.epochyr<57?a.epochyr+2e3:a.epochyr+1900,a.epochdays),d=o.mon,l=o.day,u=o.hr,c=o.minute,f=o.sec;return a.jdsatepoch=v(i,d,l,u,c,f),D(a,{opsmode:"i",satn:a.satnum,epoch:a.jdsatepoch-2433281.5,xbstar:a.bstar,xecco:a.ecco,xargpo:a.argpo,xinclo:a.inclo,xmo:a.mo,xno:a.no,xnodeo:a.nodeo}),a}}),N=t(z);function P(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var C,R,W={exports:{}};function U(){return C||(C=1,function(e){e.exports=function(){var t,n;function s(){return t.apply(null,arguments)}function i(e){t=e}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,s=[],i=e.length;for(n=0;n<i;++n)s.push(t(e[n],n));return s}function f(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,s){return Bn(e,t,n,s,!0).utc()}function _(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(e){return null==e._pf&&(e._pf=_()),e._pf}function g(e){var t=null,s=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=p(e),s=n.call(t.parsedDateParts,(function(e){return null!=e})),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function y(e){var t=m(NaN);return null!=e?f(p(t),e):p(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),s=n.length>>>0;for(t=0;t<s;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var M=s.momentProperties=[],v=!1;function w(e,t){var n,s,i,r=M.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=p(t)),l(t._locale)||(e._locale=t._locale),r>0)for(n=0;n<r;n++)l(i=t[s=M[n]])||(e[s]=i);return e}function x(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,s.updateOffset(this),v=!1)}function k(e){return e instanceof x||null!=e&&null!=e._isAMomentObject}function S(e){!1===s.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,t){var n=!0;return f((function(){if(null!=s.deprecationHandler&&s.deprecationHandler(null,e),n){var i,r,a,d=[],l=arguments.length;for(r=0;r<l;r++){if(i="","object"==typeof arguments[r]){for(a in i+="\n["+r+"] ",arguments[0])o(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[r];d.push(i)}S(e+"\nArguments: "+Array.prototype.slice.call(d).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var b,Y={};function O(e,t){null!=s.deprecationHandler&&s.deprecationHandler(e,t),Y[e]||(S(t),Y[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function z(e){var t,n;for(n in e)o(e,n)&&(T(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function N(e,t){var n,s=f({},e);for(n in t)o(t,n)&&(a(e[n])&&a(t[n])?(s[n]={},f(s[n],e[n]),f(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)o(e,n)&&!o(t,n)&&a(e[n])&&(s[n]=f({},s[n]));return s}function C(e){null!=e&&this.set(e)}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null,b=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function W(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return T(s)?s.call(t,n):s}function U(e,t,n){var s=""+Math.abs(e),i=t-s.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var E=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},H={};function I(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(H[e]=i),t&&(H[t[0]]=function(){return U(i.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function j(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function A(e){var t,n,s=e.match(E);for(t=0,n=s.length;t<n;t++)H[s[t]]?s[t]=H[s[t]]:s[t]=j(s[t]);return function(t){var i,r="";for(i=0;i<n;i++)r+=T(s[i])?s[i].call(t,e):s[i];return r}}function V(e,t){return e.isValid()?(t=G(t,e.localeData()),L[t]=L[t]||A(t),L[t](e)):e.localeData().invalidDate()}function G(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;n>=0&&F.test(e);)e=e.replace(F,s),F.lastIndex=0,n-=1;return e}var q={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Z(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(E).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var $="Invalid date";function B(){return this._invalidDate}var J="%d",Q=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var K={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,s){var i=this._relativeTime[n];return T(i)?i(e,t,n,s):i.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}var ne={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function se(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function ie(e){var t,n,s={};for(n in e)o(e,n)&&(t=se(n))&&(s[t]=e[n]);return s}var re={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ae(e){var t,n=[];for(t in e)o(e,t)&&n.push({unit:t,priority:re[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}var oe,de=/\d/,le=/\d\d/,ue=/\d{3}/,he=/\d{4}/,ce=/[+-]?\d{6}/,fe=/\d\d?/,me=/\d\d\d\d?/,_e=/\d\d\d\d\d\d?/,pe=/\d{1,3}/,ge=/\d{1,4}/,ye=/[+-]?\d{1,6}/,Me=/\d+/,ve=/[+-]?\d+/,we=/Z|[+-]\d\d:?\d\d/gi,xe=/Z|[+-]\d\d(?::?\d\d)?/gi,ke=/[+-]?\d+(\.\d{1,3})?/,Se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,De=/^[1-9]\d?/,be=/^([1-9]\d|\d)/;function Ye(e,t,n){oe[e]=T(t)?t:function(e,s){return e&&n?n:t}}function Oe(e,t){return o(oe,e)?oe[e](t._strict,t._locale):new RegExp(Te(e))}function Te(e){return ze(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,s,i){return t||n||s||i})))}function ze(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ne(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Pe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Ne(t)),n}oe={};var Ce={};function Re(e,t){var n,s,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=Pe(e)}),s=e.length,n=0;n<s;n++)Ce[e[n]]=i}function We(e,t){Re(e,(function(e,n,s,i){s._w=s._w||{},t(e,s._w,s,i)}))}function Ue(e,t,n){null!=t&&o(Ce,e)&&Ce[e](t,n._a,n,e)}function Ee(e){return e%4==0&&e%100!=0||e%400==0}var Fe=0,Le=1,He=2,Ie=3,je=4,Ae=5,Ve=6,Ge=7,qe=8;function Ze(e){return Ee(e)?366:365}I("Y",0,0,(function(){var e=this.year();return e<=9999?U(e,4):"+"+e})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),Ye("Y",ve),Ye("YY",fe,le),Ye("YYYY",ge,he),Ye("YYYYY",ye,ce),Ye("YYYYYY",ye,ce),Re(["YYYYY","YYYYYY"],Fe),Re("YYYY",(function(e,t){t[Fe]=2===e.length?s.parseTwoDigitYear(e):Pe(e)})),Re("YY",(function(e,t){t[Fe]=s.parseTwoDigitYear(e)})),Re("Y",(function(e,t){t[Fe]=parseInt(e,10)})),s.parseTwoDigitYear=function(e){return Pe(e)+(Pe(e)>68?1900:2e3)};var $e,Be=Qe("FullYear",!0);function Je(){return Ee(this.year())}function Qe(e,t){return function(n){return null!=n?(Ke(this,e,n),s.updateOffset(this,t),this):Xe(this,e)}}function Xe(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ke(e,t,n){var s,i,r,a,o;if(e.isValid()&&!isNaN(n)){switch(s=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(i?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(i?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(i?s.setUTCHours(n):s.setHours(n));case"Date":return void(i?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}r=n,a=e.month(),o=29!==(o=e.date())||1!==a||Ee(r)?o:28,i?s.setUTCFullYear(r,a,o):s.setFullYear(r,a,o)}}function et(e){return T(this[e=se(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var n,s=ae(e=ie(e)),i=s.length;for(n=0;n<i;n++)this[s[n].unit](e[s[n].unit])}else if(T(this[e=se(e)]))return this[e](t);return this}function nt(e,t){return(e%t+t)%t}function st(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=nt(t,12);return e+=(t-n)/12,1===n?Ee(e)?29:28:31-n%7%2}$e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",(function(){return this.month()+1})),I("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),I("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),Ye("M",fe,De),Ye("MM",fe,le),Ye("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ye("MMMM",(function(e,t){return t.monthsRegex(e)})),Re(["M","MM"],(function(e,t){t[Le]=Pe(e)-1})),Re(["MMM","MMMM"],(function(e,t,n,s){var i=n._locale.monthsParse(e,s,n._strict);null!=i?t[Le]=i:p(n).invalidMonth=e}));var it="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),rt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ot=Se,dt=Se;function lt(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone}function ut(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[at.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ht(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=m([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=$e.call(this._shortMonthsParse,a))?i:null:-1!==(i=$e.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=$e.call(this._shortMonthsParse,a))||-1!==(i=$e.call(this._longMonthsParse,a))?i:null:-1!==(i=$e.call(this._longMonthsParse,a))||-1!==(i=$e.call(this._shortMonthsParse,a))?i:null}function ct(e,t,n){var s,i,r;if(this._monthsParseExact)return ht.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=m([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}}function ft(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Pe(t);else if(!u(t=e.localeData().monthsParse(t)))return e;var n=t,s=e.date();return s=s<29?s:Math.min(s,st(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,s):e._d.setMonth(n,s),e}function mt(e){return null!=e?(ft(this,e),s.updateOffset(this,!0),this):Xe(this,"Month")}function _t(){return st(this.year(),this.month())}function pt(e){return this._monthsParseExact?(o(this,"_monthsRegex")||yt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=ot),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(e){return this._monthsParseExact?(o(this,"_monthsRegex")||yt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=dt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function yt(){function e(e,t){return t.length-e.length}var t,n,s,i,r=[],a=[],o=[];for(t=0;t<12;t++)n=m([2e3,t]),s=ze(this.monthsShort(n,"")),i=ze(this.months(n,"")),r.push(s),a.push(i),o.push(i),o.push(s);r.sort(e),a.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Mt(e,t,n,s,i,r,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}function vt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var s=7+t-n;return-(7+vt(e,0,s).getUTCDay()-t)%7+s-1}function xt(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+wt(e,s,i);return o<=0?a=Ze(r=e-1)+o:o>Ze(e)?(r=e+1,a=o-Ze(e)):(r=e,a=o),{year:r,dayOfYear:a}}function kt(e,t,n){var s,i,r=wt(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+St(i=e.year()-1,t,n):a>St(e.year(),t,n)?(s=a-St(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function St(e,t,n){var s=wt(e,t,n),i=wt(e+1,t,n);return(Ze(e)-s+i)/7}function Dt(e){return kt(e,this._week.dow,this._week.doy).week}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),Ye("w",fe,De),Ye("ww",fe,le),Ye("W",fe,De),Ye("WW",fe,le),We(["w","ww","W","WW"],(function(e,t,n,s){t[s.substr(0,1)]=Pe(e)}));var bt={dow:0,doy:6};function Yt(){return this._week.dow}function Ot(){return this._week.doy}function Tt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function zt(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Nt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Pt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ct(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),Ye("d",fe),Ye("e",fe),Ye("E",fe),Ye("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ye("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ye("dddd",(function(e,t){return t.weekdaysRegex(e)})),We(["dd","ddd","dddd"],(function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e})),We(["d","e","E"],(function(e,t,n,s){t[s]=Pe(e)}));var Rt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Wt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ut="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Et=Se,Ft=Se,Lt=Se;function Ht(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ct(n,this._week.dow):e?n[e.day()]:n}function It(e){return!0===e?Ct(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function jt(e){return!0===e?Ct(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function At(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=m([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=$e.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=$e.call(this._weekdaysParse,a))||-1!==(i=$e.call(this._shortWeekdaysParse,a))||-1!==(i=$e.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,a))||-1!==(i=$e.call(this._weekdaysParse,a))||-1!==(i=$e.call(this._minWeekdaysParse,a))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,a))||-1!==(i=$e.call(this._weekdaysParse,a))||-1!==(i=$e.call(this._shortWeekdaysParse,a))?i:null}function Vt(e,t,n){var s,i,r;if(this._weekdaysParseExact)return At.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=m([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=Xe(this,"Day");return null!=e?(e=Nt(e,this.localeData()),this.add(e-t,"d")):t}function qt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Zt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Pt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function $t(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Bt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],d=[],l=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),s=ze(this.weekdaysMin(n,"")),i=ze(this.weekdaysShort(n,"")),r=ze(this.weekdays(n,"")),a.push(s),o.push(i),d.push(r),l.push(s),l.push(i),l.push(r);a.sort(e),o.sort(e),d.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Kt(){return this.hours()||24}function en(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Xt),I("k",["kk",2],0,Kt),I("hmm",0,0,(function(){return""+Xt.apply(this)+U(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Xt.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+U(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)})),en("a",!0),en("A",!1),Ye("a",tn),Ye("A",tn),Ye("H",fe,be),Ye("h",fe,De),Ye("k",fe,De),Ye("HH",fe,le),Ye("hh",fe,le),Ye("kk",fe,le),Ye("hmm",me),Ye("hmmss",_e),Ye("Hmm",me),Ye("Hmmss",_e),Re(["H","HH"],Ie),Re(["k","kk"],(function(e,t,n){var s=Pe(e);t[Ie]=24===s?0:s})),Re(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Re(["h","hh"],(function(e,t,n){t[Ie]=Pe(e),p(n).bigHour=!0})),Re("hmm",(function(e,t,n){var s=e.length-2;t[Ie]=Pe(e.substr(0,s)),t[je]=Pe(e.substr(s)),p(n).bigHour=!0})),Re("hmmss",(function(e,t,n){var s=e.length-4,i=e.length-2;t[Ie]=Pe(e.substr(0,s)),t[je]=Pe(e.substr(s,2)),t[Ae]=Pe(e.substr(i)),p(n).bigHour=!0})),Re("Hmm",(function(e,t,n){var s=e.length-2;t[Ie]=Pe(e.substr(0,s)),t[je]=Pe(e.substr(s))})),Re("Hmmss",(function(e,t,n){var s=e.length-4,i=e.length-2;t[Ie]=Pe(e.substr(0,s)),t[je]=Pe(e.substr(s,2)),t[Ae]=Pe(e.substr(i))}));var sn=/[ap]\.?m?\.?/i,rn=Qe("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var on,dn={calendar:R,longDateFormat:q,invalidDate:$,ordinal:J,dayOfMonthOrdinalParse:Q,relativeTime:K,months:it,monthsShort:rt,week:bt,weekdays:Rt,weekdaysMin:Ut,weekdaysShort:Wt,meridiemParse:sn},ln={},un={};function hn(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n<s;n+=1)if(e[n]!==t[n])return n;return s}function cn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=cn(e[r]).split("-")).length,n=(n=cn(e[r+1]))?n.split("-"):null;t>0;){if(s=_n(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&hn(i,n)>=t-1)break;t--}r++}return on}function mn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function _n(t){var n=null;if(void 0===ln[t]&&e&&e.exports&&mn(t))try{n=on._abbr,P("./locale/"+t),pn(n)}catch(e){ln[t]=null}return ln[t]}function pn(e,t){var n;return e&&((n=l(t)?Mn(e):gn(e,t))?on=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function gn(e,t){if(null!==t){var n,s=dn;if(t.abbr=e,null!=ln[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])s=ln[t.parentLocale]._config;else{if(null==(n=_n(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;s=n._config}return ln[e]=new C(N(s,t)),un[e]&&un[e].forEach((function(e){gn(e.name,e.config)})),pn(e),ln[e]}return delete ln[e],null}function yn(e,t){if(null!=t){var n,s,i=dn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(N(ln[e]._config,t)):(null!=(s=_n(e))&&(i=s._config),t=N(i,t),null==s&&(t.abbr=e),(n=new C(t)).parentLocale=ln[e],ln[e]=n),pn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===pn()&&pn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function Mn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return on;if(!r(e)){if(t=_n(e))return t;e=[e]}return fn(e)}function vn(){return b(ln)}function wn(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[Le]<0||n[Le]>11?Le:n[He]<1||n[He]>st(n[Fe],n[Le])?He:n[Ie]<0||n[Ie]>24||24===n[Ie]&&(0!==n[je]||0!==n[Ae]||0!==n[Ve])?Ie:n[je]<0||n[je]>59?je:n[Ae]<0||n[Ae]>59?Ae:n[Ve]<0||n[Ve]>999?Ve:-1,p(e)._overflowDayOfYear&&(t<Fe||t>He)&&(t=He),p(e)._overflowWeeks&&-1===t&&(t=Ge),p(e)._overflowWeekday&&-1===t&&(t=qe),p(e).overflow=t),e}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,Dn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],