');document.close();";if(x<7)j.src=a;else j.contentWindow.location.replace(a)},Z=function(){if(E&&Y!=-1){var a,b,f=E.substr(Y+1).split("&");for(a=0;a *").wrapAll('').parent().wrap('');c("html, body").css({height:"100%",margin:0,padding:0,overflow:"hidden"});K&&c('').appendTo("head").text("#"+y+"::-webkit-resizer { background-color: #fff; }")}if(v&&!J){a=l.getElementsByTagName("frameset")[0];j=l.createElement((a?"":"i")+"frame");j.src=U()+":"+o;if(a){a.insertAdjacentElement("beforeEnd",j);a[a.cols?"cols":"rows"]+=",0";j.noResize=r;j.frameBorder=j.frameSpacing=0}else{j.style.display="none";j.style.width=j.style.height=0;j.tabIndex=-1;l.body.insertAdjacentElement("afterBegin",j)}u(function(){c(j).bind("load",function(){var b=j.contentWindow;e=b[y]!==h?b[y]:"";if(e!=q()){B(o);n.hash=e}});j.contentWindow[y]===h&&N()},50)}u(function(){s("init");B(o)},1);if(!G())if(v&&x>7||!v&&J)if(i.addEventListener)i.addEventListener(F,C,o);else i.attachEvent&&i.attachEvent("on"+F,C);else fa(C,50);"state"in window.history&&c(window).trigger("popstate")}},ga=function(a){a=a.toLowerCase();a=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},h,D=null,y="jQueryAddress",F="hashchange",V="change",W="internalChange",X="externalChange",r=true,o=false,d={autoUpdate:r,history:r,strict:r,wrap:o},z=function(){var a={},b=ga(navigator.userAgent);if(b.browser){a[b.browser]=true;a.version=b.version}if(a.chrome)a.webkit=true;else if(a.webkit)a.safari=true;return a}(),x=parseFloat(z.version),K=z.webkit||z.safari,v=!c.support.opacity,i=function(){try{return top.document!==h&&top.document.title!==h?top:window}catch(a){return window}}(),l=i.document,A=i.history,n=i.location,fa=setInterval,u=setTimeout,S=/\/{2,9}/g;z=navigator.userAgent;var J="on"+F in i,j,E=c("script:last").attr("src"),Y=E?E.indexOf("?"):-1,O=l.title,I=o,$=o,ba=r,L=o,e=q();if(v){x=parseFloat(z.substr(z.indexOf("MSIE")+4));if(l.documentMode&&l.documentMode!=x)x=l.documentMode!=8?7:8;var ca=l.onpropertychange;l.onpropertychange=function(){ca&&ca.call(l);if(l.title!=O&&l.title.indexOf("#"+q())!=-1)l.title=O}}if(A.navigationMode)A.navigationMode="compatible";if(document.readyState=="complete")var ha=setInterval(function(){if(c.address){aa();clearInterval(ha)}},50);else{Z();c(aa)}c(window).bind("popstate",function(){if(decodeURI(e)!=decodeURI(q())){e=q();B(o)}}).bind("unload",function(){if(i.removeEventListener)i.removeEventListener(F,C,o);else i.detachEvent&&i.detachEvent("on"+F,C)});return{bind:function(){return k.apply(this,g(arguments))},unbind:function(){return da.apply(this,g(arguments))},init:function(){return k.apply(this,["init"].concat(g(arguments)))},change:function(){return k.apply(this,[V].concat(g(arguments)))},internalChange:function(){return k.apply(this,[W].concat(g(arguments)))},externalChange:function(){return k.apply(this,[X].concat(g(arguments)))},baseURL:function(){var a=n.href;if(a.indexOf("#")!=-1)a=a.substr(0,a.indexOf("#"));if(/\/$/.test(a))a=a.substr(0,a.length-1);return a},autoUpdate:function(a){if(a!==h){d.autoUpdate=a;return this}return d.autoUpdate},history:function(a){if(a!==h){d.history=a;return this}return d.history},state:function(a){if(a!==h){d.state=a;var b=T();if(d.state!==h)if(A.pushState)b.substr(0,3)=="/#/"&&n.replace(d.state.replace(/^\/$/,"")+b.substr(2));else b!="/"&&b.replace(/^\/#/,"")!=H()&&u(function(){n.replace(d.state.replace(/^\/$/,"")+"/#"+b)},1);return this}return d.state},strict:function(a){if(a!==h){d.strict=a;return this}return d.strict},tracker:function(a){if(a!==h){d.tracker=a;return this}return d.tracker},wrap:function(a){if(a!==h){d.wrap=a;return this}return d.wrap},update:function(){L=r;this.value(e);L=o;return this},title:function(a){if(a!==h){u(function(){O=l.title=a;if(ba&&j&&j.contentWindow&&j.contentWindow.document){j.contentWindow.document.title=a;ba=o}},50);return this}return l.title},value:function(a){if(a!==h){a=M(a);if(a=="/")a="";if(e==a&&!L)return;e=a;if(d.autoUpdate||L){if(B(r))return this;if(G())A[d.history?"pushState":"replaceState"]({},"",d.state.replace(/\/$/,"")+(e===""?"/":e));else{I=r;if(K)if(d.history)n.hash="#"+e;else n.replace("#"+e);else if(e!=q())if(d.history)n.hash="#"+e;else n.replace("#"+e);v&&!J&&d.history&&u(N,50);if(K)u(function(){I=o},1);else I=o}}return this}return M(e)},path:function(a){if(a!==h){var b=this.queryString(),f=this.hash();this.value(a+(b?"?"+b:"")+(f?"#"+f:""));return this}return M(e).split("#")[0].split("?")[0]},pathNames:function(){var a=this.path(),b=a.replace(S,"/").split("/");if(a.substr(0,1)=="/"||a.length===0)b.splice(0,1);a.substr(a.length-1,1)=="/"&&b.splice(b.length-1,1);return b},queryString:function(a){if(a!==h){var b=this.hash();this.value(this.path()+(a?"?"+a:"")+(b?"#"+b:""));return this}a=e.split("?");return a.slice(1,a.length).join("?").split("#")[0]},parameter:function(a,b,f){var m,p;if(b!==h){var P=this.parameterNames();p=[];b=b===h||b===D?"":b.toString();for(m=0;m3),o=m&&parseFloat(T.substr(T.indexOf("Version/")+8,2))<6,n=-1!==T.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(T)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(T))&&(p=parseFloat(RegExp.$1)),b?(b.style.cssText="top:1px;opacity:.55;",/^0.55/.test(b.style.opacity)):!1}(),V=function(a){return x.test("string"==typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},W=function(a){_gsScope.console&&console.log(a)},X="",Y="",Z=function(a,b){b=b||Q;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charAt(0).toUpperCase()+a.substr(1),c=["O","Moz","ms","Ms","Webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(Y=3===d?"ms":c[d],X="-"+Y.toLowerCase()+"-",Y+a):null},$=O.defaultView?O.defaultView.getComputedStyle:function(){},_=g.getStyle=function(a,b,c,d,e){var f;return U||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||$(a))?f=c[b]||c.getPropertyValue(b)||c.getPropertyValue(b.replace(B,"-$1").toLowerCase()):a.currentStyle&&(f=a.currentStyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):V(a)},aa=S.convertToPixels=function(a,c,d,e,f){if("px"===e||!e&&"lineHeight"!==c)return d;if("auto"===e||!d)return 0;var h,i,j,k=F.test(c),l=a,m=Q.style,n=0>d,o=1===d;if(n&&(d=-d),o&&(d*=100),"lineHeight"!==c||e)if("%"===e&&-1!==c.indexOf("border"))h=d/100*(k?a.clientWidth:a.clientHeight);else{if(m.cssText="border:0 solid red;position:"+_(a,"position")+";line-height:0;","%"!==e&&l.appendChild&&"v"!==e.charAt(0)&&"rem"!==e)m[k?"borderLeftWidth":"borderTopWidth"]=d+e;else{if(l=a.parentNode||O.body,-1!==_(l,"display").indexOf("flex")&&(m.position="absolute"),i=l._gsCache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendChild(Q),h=parseFloat(Q[k?"offsetWidth":"offsetHeight"]),l.removeChild(Q),k&&"%"===e&&g.cacheWidths!==!1&&(i=l._gsCache=l._gsCache||{},i.time=j,i.width=h/d*100),0!==h||f||(h=aa(a,c,d,e,!0))}else i=$(a).lineHeight,a.style.lineHeight=d,h=parseFloat($(a).lineHeight),a.style.lineHeight=i;return o&&(h/=100),n?-h:h},ba=S.calculateOffset=function(a,b,c){if("absolute"!==_(a,"position",c))return 0;var d="left"===b?"Left":"Top",e=_(a,"margin"+d,c);return a["offset"+d]-(aa(a,b,parseFloat(e),e.replace(w,""))||0)},ca=function(a,b){var c,d,e,f={};if(b=b||$(a,null))if(c=b.length)for(;--c>-1;)e=b[c],(-1===e.indexOf("-transform")||Da===e)&&(f[e.replace(C,E)]=b.getPropertyValue(e));else for(c in b)(-1===c.indexOf("Transform")||Ca===c)&&(f[c]=b[c]);else if(b=a.currentStyle||a.style)for(c in b)"string"==typeof c&&void 0===f[c]&&(f[c.replace(C,E)]=b[c]);return U||(f.opacity=V(a)),d=Ra(a,b,!1),f.rotation=d.rotation,f.skewX=d.skewX,f.scaleX=d.scaleX,f.scaleY=d.scaleY,f.x=d.x,f.y=d.y,Fa&&(f.z=d.z,f.rotationX=d.rotationX,f.rotationY=d.rotationY,f.scaleZ=d.scaleZ),f.filters&&delete f.filters,f},da=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"cssText"!==g&&"length"!==g&&isNaN(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexOf("Origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(v,"")?f:0:ba(a,g),void 0!==j[g]&&(h=new sa(j,g,j[g],h)));if(d)for(g in d)"className"!==g&&(i[g]=d[g]);return{difs:i,firstMPT:h}},ea={width:["Left","Right"],height:["Top","Bottom"]},fa=["marginLeft","marginRight","marginTop","marginBottom"],ga=function(a,b,c){if("svg"===(a.nodeName+"").toLowerCase())return(c||$(a))[b]||0;if(a.getCTM&&Oa(a))return a.getBBox()[b]||0;var d=parseFloat("width"===b?a.offsetWidth:a.offsetHeight),e=ea[b],f=e.length;for(c=c||$(a,null);--f>-1;)d-=parseFloat(_(a,"padding"+e[f],c,!0))||0,d-=parseFloat(_(a,"border"+e[f]+"Width",c,!0))||0;return d},ha=function(a,b){if("contain"===a||"auto"===a||"auto auto"===a)return a+" ";(null==a||""===a)&&(a="0 0");var c,d=a.split(" "),e=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":d[0],f=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":d[1];if(d.length>3&&!b){for(d=a.split(", ").join(",").split(","),a=[],c=0;c2?" "+d[2]:""),b&&(b.oxp=-1!==e.indexOf("%"),b.oyp=-1!==f.indexOf("%"),b.oxr="="===e.charAt(1),b.oyr="="===f.charAt(1),b.ox=parseFloat(e.replace(v,"")),b.oy=parseFloat(f.replace(v,"")),b.v=a),b||a},ia=function(a,b){return"function"==typeof a&&(a=a(r,q)),"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)||0},ja=function(a,b){return"function"==typeof a&&(a=a(r,q)),null==a?b:"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2))+b:parseFloat(a)||0},ka=function(a,b,c,d){var e,f,g,h,i,j=1e-6;return"function"==typeof a&&(a=a(r,q)),null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),i="="===a.charAt(1),g=(i?parseInt(a.charAt(0)+"1",10)*parseFloat(f[0].substr(2)):parseFloat(f[0]))*(-1===a.indexOf("rad")?1:L)-(i?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexOf("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexOf("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexOf("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),j>h&&h>-j&&(h=0),h},la={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ma=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},na=g.parseColor=function(a,b){var c,d,e,f,g,h,i,j,k,l,m;if(a)if("number"==typeof a)c=[a>>16,a>>8&255,255&a];else{if(","===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)),la[a])c=la[a];else if("#"===a.charAt(0))4===a.length&&(d=a.charAt(1),e=a.charAt(2),f=a.charAt(3),a="#"+d+d+e+e+f+f),a=parseInt(a.substr(1),16),c=[a>>16,a>>8&255,255&a];else if("hsl"===a.substr(0,3))if(c=m=a.match(s),b){if(-1!==a.indexOf("="))return a.match(t)}else g=Number(c[0])%360/360,h=Number(c[1])/100,i=Number(c[2])/100,e=.5>=i?i*(h+1):i+h-i*h,d=2*i-e,c.length>3&&(c[3]=Number(a[3])),c[0]=ma(g+1/3,d,e),c[1]=ma(g,d,e),c[2]=ma(g-1/3,d,e);else c=a.match(s)||la.transparent;c[0]=Number(c[0]),c[1]=Number(c[1]),c[2]=Number(c[2]),c.length>3&&(c[3]=Number(c[3]))}else c=la.black;return b&&!m&&(d=c[0]/255,e=c[1]/255,f=c[2]/255,j=Math.max(d,e,f),k=Math.min(d,e,f),i=(j+k)/2,j===k?g=h=0:(l=j-k,h=i>.5?l/(2-j-k):l/(j+k),g=j===d?(e-f)/l+(f>e?6:0):j===e?(f-d)/l+2:(d-e)/l+4,g*=60),c[0]=g+.5|0,c[1]=100*h+.5|0,c[2]=100*i+.5|0),c},oa=function(a,b){var c,d,e,f=a.match(pa)||[],g=0,h="";if(!f.length)return a;for(c=0;c0?g[0].replace(s,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&I.test(a)){for(o=a.replace(I,"|").split("|"),n=0;nn--)for(;++nm--)for(;++mi;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},sa=(S._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b,c,d,e,f,g=this.data,h=g.proxy,i=g.firstMPT,j=1e-6;i;)b=h[i.v],i.r?b=Math.round(b):j>b&&b>-j&&(b=0),i.t[i.p]=b,i=i._next;if(g.autoRotate&&(g.autoRotate.rotation=g.mod?g.mod(h.rotation,this.t):h.rotation),1===a||0===a)for(i=g.firstMPT,f=1===a?"e":"b";i;){if(c=i.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new sa(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstMPT:j,pt:k}},S.CSSPropTween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof ta||f.push(this.n),this.r=j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),ua=function(a,b,c,d,e,f){var g=new ta(a,b,c,d-c,e,-1,f);return g.b=c,g.e=g.xs0=d,g},va=g.parseComplex=function(a,b,c,d,e,f,h,i,j,l){c=c||f||"","function"==typeof d&&(d=d(r,q)),h=new ta(a,b,0,0,h,l?2:1,null,!1,i,c,d),d+="",e&&pa.test(d+c)&&(d=[c,d],g.colorStringFilter(d),c=d[0],d=d[1]);var m,n,o,p,u,v,w,x,y,z,A,B,C,D=c.split(", ").join(",").split(" "),E=d.split(", ").join(",").split(" "),F=D.length,G=k!==!1;for((-1!==d.indexOf(",")||-1!==c.indexOf(","))&&(D=D.join(" ").replace(I,", ").split(" "),E=E.join(" ").replace(I,", ").split(" "),F=D.length),F!==E.length&&(D=(f||"").split(" "),F=D.length),h.plugin=j,h.setRatio=l,pa.lastIndex=0,m=0;F>m;m++)if(p=D[m],u=E[m],x=parseFloat(p),x||0===x)h.appendXtra("",x,ia(u,x),u.replace(t,""),G&&-1!==u.indexOf("px"),!0);else if(e&&pa.test(p))B=u.indexOf(")")+1,B=")"+(B?u.substr(B):""),C=-1!==u.indexOf("hsl")&&U,z=u,p=na(p,C),u=na(u,C),y=p.length+u.length>6,y&&!U&&0===u[3]?(h["xs"+h.l]+=h.l?" transparent":"transparent",h.e=h.e.split(E[m]).join("transparent")):(U||(y=!1),C?h.appendXtra(z.substr(0,z.indexOf("hsl"))+(y?"hsla(":"hsl("),p[0],ia(u[0],p[0]),",",!1,!0).appendXtra("",p[1],ia(u[1],p[1]),"%,",!1).appendXtra("",p[2],ia(u[2],p[2]),y?"%,":"%"+B,!1):h.appendXtra(z.substr(0,z.indexOf("rgb"))+(y?"rgba(":"rgb("),p[0],u[0]-p[0],",",!0,!0).appendXtra("",p[1],u[1]-p[1],",",!0).appendXtra("",p[2],u[2]-p[2],y?",":B,!0),y&&(p=p.length<4?1:p[3],h.appendXtra("",p,(u.length<4?1:u[3])-p,B,!1))),pa.lastIndex=0;else if(v=p.match(s)){if(w=u.match(t),!w||w.length!==v.length)return h;for(o=0,n=0;n0;)j["xn"+wa]=0,j["xs"+wa]="";j.xs0="",j._next=j._prev=j.xfirst=j.data=j.plugin=j.setRatio=j.rxp=null,j.appendXtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&(h||g["xs"+h])?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setRatio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new ta(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var xa=function(a,b){b=b||{},this.p=b.prefix?Z(a)||a:a,i[a]=i[this.p]=this,this.format=b.formatter||qa(b.defaultValue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultValue,this.pr=b.priority||0},ya=S._registerComplexSpecialProp=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultValue;for(c=c||[g],d=0;dh.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexOf(m),l=c.indexOf(m),k!==l&&(-1===l?h[g]=h[g].split(m).join(""):-1===k&&(h[g]+=" "+m)));b=h.join(", "),c=i.join(", ")}return va(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},j.parse=function(a,b,c,d,f,g,h){return this.parseComplex(a.style,this.format(_(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerSpecialProp=function(a,b,c){ya(a,{parser:function(a,d,e,f,g,h,i){var j=new ta(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setRatio=b(a,d,f._tween,e),j},priority:c})},g.useSVGTransformAttr=!0;var Aa,Ba="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Ca=Z("transform"),Da=X+"transform",Ea=Z("transformOrigin"),Fa=null!==Z("perspective"),Ga=S.Transform=function(){this.perspective=parseFloat(g.defaultTransformPerspective)||0,this.force3D=g.defaultForce3D!==!1&&Fa?g.defaultForce3D||"auto":!1},Ha=_gsScope.SVGElement,Ia=function(a,b,c){var d,e=O.createElementNS("http://www.w3.org/2000/svg",a),f=/([a-z])([A-Z])/g;for(d in c)e.setAttributeNS(null,d.replace(f,"$1-$2").toLowerCase(),c[d]);return b.appendChild(e),e},Ja=O.documentElement||{},Ka=function(){var a,b,c,d=p||/Android/i.test(T)&&!_gsScope.chrome;return O.createElementNS&&!d&&(a=Ia("svg",Ja),b=Ia("rect",a,{width:100,height:50,x:100}),c=b.getBoundingClientRect().width,b.style[Ea]="50% 50%",b.style[Ca]="scaleX(0.5)",d=c===b.getBoundingClientRect().width&&!(n&&Fa),Ja.removeChild(a)),d}(),La=function(a,b,c,d,e,f){var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=a._gsTransform,w=Qa(a,!0);v&&(t=v.xOrigin,u=v.yOrigin),(!d||(h=d.split(" ")).length<2)&&(n=a.getBBox(),0===n.x&&0===n.y&&n.width+n.height===0&&(n={x:parseFloat(a.hasAttribute("x")?a.getAttribute("x"):a.hasAttribute("cx")?a.getAttribute("cx"):0)||0,y:parseFloat(a.hasAttribute("y")?a.getAttribute("y"):a.hasAttribute("cy")?a.getAttribute("cy"):0)||0,width:0,height:0}),b=ha(b).split(" "),h=[(-1!==b[0].indexOf("%")?parseFloat(b[0])/100*n.width:parseFloat(b[0]))+n.x,(-1!==b[1].indexOf("%")?parseFloat(b[1])/100*n.height:parseFloat(b[1]))+n.y]),c.xOrigin=k=parseFloat(h[0]),c.yOrigin=l=parseFloat(h[1]),d&&w!==Pa&&(m=w[0],n=w[1],o=w[2],p=w[3],q=w[4],r=w[5],s=m*p-n*o,s&&(i=k*(p/s)+l*(-o/s)+(o*r-p*q)/s,j=k*(-n/s)+l*(m/s)-(m*r-n*q)/s,k=c.xOrigin=h[0]=i,l=c.yOrigin=h[1]=j)),v&&(f&&(c.xOffset=v.xOffset,c.yOffset=v.yOffset,v=c),e||e!==!1&&g.defaultSmoothOrigin!==!1?(i=k-t,j=l-u,v.xOffset+=i*w[0]+j*w[2]-i,v.yOffset+=i*w[1]+j*w[3]-j):v.xOffset=v.yOffset=0),f||a.setAttribute("data-svg-origin",h.join(" "))},Ma=function(a){var b,c=P("svg",this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),d=this.parentNode,e=this.nextSibling,f=this.style.cssText;if(Ja.appendChild(c),c.appendChild(this),this.style.display="block",a)try{b=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Ma}catch(g){}else this._originalGetBBox&&(b=this._originalGetBBox());return e?d.insertBefore(this,e):d.appendChild(this),Ja.removeChild(c),this.style.cssText=f,b},Na=function(a){try{return a.getBBox()}catch(b){return Ma.call(a,!0)}},Oa=function(a){return!(!(Ha&&a.getCTM&&Na(a))||a.parentNode&&!a.ownerSVGElement)},Pa=[1,0,0,1,0,0],Qa=function(a,b){var c,d,e,f,g,h,i=a._gsTransform||new Ga,j=1e5,k=a.style;if(Ca?d=_(a,Da,null,!0):a.currentStyle&&(d=a.currentStyle.filter.match(G),d=d&&4===d.length?[d[0].substr(4),Number(d[2].substr(4)),Number(d[1].substr(4)),d[3].substr(4),i.x||0,i.y||0].join(","):""),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,!Ca||!(h="none"===$(a).display)&&a.parentNode||(h&&(f=k.display,k.display="block"),a.parentNode||(g=1,Ja.appendChild(a)),d=_(a,Da,null,!0),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,f?k.display=f:h&&Va(k,"display"),g&&Ja.removeChild(a)),(i.svg||a.getCTM&&Oa(a))&&(c&&-1!==(k[Ca]+"").indexOf("matrix")&&(d=k[Ca],c=0),e=a.getAttribute("transform"),c&&e&&(-1!==e.indexOf("matrix")?(d=e,c=0):-1!==e.indexOf("translate")&&(d="matrix(1,0,0,1,"+e.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",c=0))),c)return Pa;for(e=(d||"").match(s)||[],wa=e.length;--wa>-1;)f=Number(e[wa]),e[wa]=(g=f-(f|=0))?(g*j+(0>g?-.5:.5)|0)/j+f:f;return b&&e.length>6?[e[0],e[1],e[4],e[5],e[12],e[13]]:e},Ra=S.getTransform=function(a,c,d,e){if(a._gsTransform&&d&&!e)return a._gsTransform;var f,h,i,j,k,l,m=d?a._gsTransform||new Ga:new Ga,n=m.scaleX<0,o=2e-5,p=1e5,q=Fa?parseFloat(_(a,Ea,c,!1,"0 0 0").split(" ")[2])||m.zOrigin||0:0,r=parseFloat(g.defaultTransformPerspective)||0;if(m.svg=!(!a.getCTM||!Oa(a)),m.svg&&(La(a,_(a,Ea,c,!1,"50% 50%")+"",m,a.getAttribute("data-svg-origin")),Aa=g.useSVGTransformAttr||Ka),f=Qa(a),f!==Pa){if(16===f.length){var s,t,u,v,w,x=f[0],y=f[1],z=f[2],A=f[3],B=f[4],C=f[5],D=f[6],E=f[7],F=f[8],G=f[9],H=f[10],I=f[12],J=f[13],K=f[14],M=f[11],N=Math.atan2(D,H);m.zOrigin&&(K=-m.zOrigin,I=F*K-f[12],J=G*K-f[13],K=H*K+m.zOrigin-f[14]),m.rotationX=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=B*v+F*w,t=C*v+G*w,u=D*v+H*w,F=B*-w+F*v,G=C*-w+G*v,H=D*-w+H*v,M=E*-w+M*v,B=s,C=t,D=u),N=Math.atan2(-z,H),m.rotationY=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=x*v-F*w,t=y*v-G*w,u=z*v-H*w,G=y*w+G*v,H=z*w+H*v,M=A*w+M*v,x=s,y=t,z=u),N=Math.atan2(y,x),m.rotation=N*L,N&&(v=Math.cos(N),w=Math.sin(N),s=x*v+y*w,t=B*v+C*w,u=F*v+G*w,y=y*v-x*w,C=C*v-B*w,G=G*v-F*w,x=s,B=t,F=u),m.rotationX&&Math.abs(m.rotationX)+Math.abs(m.rotation)>359.9&&(m.rotationX=m.rotation=0,m.rotationY=180-m.rotationY),N=Math.atan2(B,C),m.scaleX=(Math.sqrt(x*x+y*y+z*z)*p+.5|0)/p,m.scaleY=(Math.sqrt(C*C+D*D)*p+.5|0)/p,m.scaleZ=(Math.sqrt(F*F+G*G+H*H)*p+.5|0)/p,x/=m.scaleX,B/=m.scaleY,y/=m.scaleX,C/=m.scaleY,Math.abs(N)>o?(m.skewX=N*L,B=0,"simple"!==m.skewType&&(m.scaleY*=1/Math.cos(N))):m.skewX=0,m.perspective=M?1/(0>M?-M:M):0,m.x=I,m.y=J,m.z=K,m.svg&&(m.x-=m.xOrigin-(m.xOrigin*x-m.yOrigin*B),m.y-=m.yOrigin-(m.yOrigin*y-m.xOrigin*C))}else if(!Fa||e||!f.length||m.x!==f[4]||m.y!==f[5]||!m.rotationX&&!m.rotationY){var O=f.length>=6,P=O?f[0]:1,Q=f[1]||0,R=f[2]||0,S=O?f[3]:1;m.x=f[4]||0,m.y=f[5]||0,i=Math.sqrt(P*P+Q*Q),j=Math.sqrt(S*S+R*R),k=P||Q?Math.atan2(Q,P)*L:m.rotation||0,l=R||S?Math.atan2(R,S)*L+k:m.skewX||0,m.scaleX=i,m.scaleY=j,m.rotation=k,m.skewX=l,Fa&&(m.rotationX=m.rotationY=m.z=0,m.perspective=r,m.scaleZ=1),m.svg&&(m.x-=m.xOrigin-(m.xOrigin*P+m.yOrigin*R),m.y-=m.yOrigin-(m.xOrigin*Q+m.yOrigin*S))}Math.abs(m.skewX)>90&&Math.abs(m.skewX)<270&&(n?(m.scaleX*=-1,m.skewX+=m.rotation<=0?180:-180,m.rotation+=m.rotation<=0?180:-180):(m.scaleY*=-1,m.skewX+=m.skewX<=0?180:-180)),m.zOrigin=q;for(h in m)m[h]-o&&(m[h]=0)}return d&&(a._gsTransform=m,m.svg&&(Aa&&a.style[Ca]?b.delayedCall(.001,function(){Va(a.style,Ca)}):!Aa&&a.getAttribute("transform")&&b.delayedCall(.001,function(){a.removeAttribute("transform")}))),m},Sa=function(a){var b,c,d=this.data,e=-d.rotation*K,f=e+d.skewX*K,g=1e5,h=(Math.cos(e)*d.scaleX*g|0)/g,i=(Math.sin(e)*d.scaleX*g|0)/g,j=(Math.sin(f)*-d.scaleY*g|0)/g,k=(Math.cos(f)*d.scaleY*g|0)/g,l=this.t.style,m=this.t.currentStyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,o,q=this.t.offsetWidth,r=this.t.offsetHeight,s="absolute"!==m.position,t="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+i+", M21="+j+", M22="+k,u=d.x+q*d.xPercent/100,v=d.y+r*d.yPercent/100;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,o=(d.oyp?r*d.oy*.01:d.oy)-r/2,u+=n-(n*h+o*i),v+=o-(n*j+o*k)),s?(n=q/2,o=r/2,t+=", Dx="+(n-(n*h+o*i)+u)+", Dy="+(o-(n*j+o*k)+v)+")"):t+=", sizingMethod='auto expand')",-1!==b.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=b.replace(H,t):l.filter=t+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===t.indexOf("Dx=0, Dy=0")||x.test(b)&&100!==parseFloat(RegExp.$1)||-1===b.indexOf(b.indexOf("Alpha"))&&l.removeAttribute("filter")),!s){var y,z,A,B=8>p?1:-1;for(n=d.ieOffsetX||0,o=d.ieOffsetY||0,d.ieOffsetX=Math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+u),d.ieOffsetY=Math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+v),wa=0;4>wa;wa++)z=fa[wa],y=m[z],c=-1!==y.indexOf("px")?parseFloat(y):aa(this.t,z,parseFloat(y),y.replace(w,""))||0,A=c!==d[z]?2>wa?-d.ieOffsetX:-d.ieOffsetY:2>wa?n-d.ieOffsetX:o-d.ieOffsetY,l[z]=(d[z]=Math.round(c-A*(0===wa||2===wa?1:B)))+"px"}}},Ta=S.set3DTransformRatio=S.setTransformRatio=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z=this.data,A=this.t.style,B=z.rotation,C=z.rotationX,D=z.rotationY,E=z.scaleX,F=z.scaleY,G=z.scaleZ,H=z.x,I=z.y,J=z.z,L=z.svg,M=z.perspective,N=z.force3D,O=z.skewY,P=z.skewX;if(O&&(P+=O,B+=O),((1===a||0===a)&&"auto"===N&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!N)&&!J&&!M&&!D&&!C&&1===G||Aa&&L||!Fa)return void(B||P||L?(B*=K,x=P*K,y=1e5,c=Math.cos(B)*E,f=Math.sin(B)*E,d=Math.sin(B-x)*-F,g=Math.cos(B-x)*F,x&&"simple"===z.skewType&&(b=Math.tan(x-O*K),b=Math.sqrt(1+b*b),d*=b,g*=b,O&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b)),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset,Aa&&(z.xPercent||z.yPercent)&&(q=this.t.getBBox(),H+=.01*z.xPercent*q.width,I+=.01*z.yPercent*q.height),q=1e-6,q>H&&H>-q&&(H=0),q>I&&I>-q&&(I=0)),u=(c*y|0)/y+","+(f*y|0)/y+","+(d*y|0)/y+","+(g*y|0)/y+","+H+","+I+")",L&&Aa?this.t.setAttribute("transform","matrix("+u):A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+u):A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+E+",0,0,"+F+","+H+","+I+")");if(n&&(q=1e-4,q>E&&E>-q&&(E=G=2e-5),q>F&&F>-q&&(F=G=2e-5),!M||z.z||z.rotationX||z.rotationY||(M=0)),B||P)B*=K,r=c=Math.cos(B),s=f=Math.sin(B),P&&(B-=P*K,r=Math.cos(B),s=Math.sin(B),"simple"===z.skewType&&(b=Math.tan((P-O)*K),b=Math.sqrt(1+b*b),r*=b,s*=b,z.skewY&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b))),d=-s,g=r;else{if(!(D||C||1!==G||M||L))return void(A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) translate3d(":"translate3d(")+H+"px,"+I+"px,"+J+"px)"+(1!==E||1!==F?" scale("+E+","+F+")":""));c=g=1,d=f=0}k=1,e=h=i=j=l=m=0,o=M?-1/M:0,p=z.zOrigin,q=1e-6,v=",",w="0",B=D*K,B&&(r=Math.cos(B),s=Math.sin(B),i=-s,l=o*-s,e=c*s,h=f*s,k=r,o*=r,c*=r,f*=r),B=C*K,B&&(r=Math.cos(B),s=Math.sin(B),b=d*r+e*s,t=g*r+h*s,j=k*s,m=o*s,e=d*-s+e*r,h=g*-s+h*r,k*=r,o*=r,d=b,g=t),1!==G&&(e*=G,h*=G,k*=G,o*=G),1!==F&&(d*=F,g*=F,j*=F,m*=F),1!==E&&(c*=E,f*=E,i*=E,l*=E),(p||L)&&(p&&(H+=e*-p,I+=h*-p,J+=k*-p+p),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset),q>H&&H>-q&&(H=w),q>I&&I>-q&&(I=w),q>J&&J>-q&&(J=0)),u=z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix3d(":"matrix3d(",u+=(q>c&&c>-q?w:c)+v+(q>f&&f>-q?w:f)+v+(q>i&&i>-q?w:i),u+=v+(q>l&&l>-q?w:l)+v+(q>d&&d>-q?w:d)+v+(q>g&&g>-q?w:g),C||D||1!==G?(u+=v+(q>j&&j>-q?w:j)+v+(q>m&&m>-q?w:m)+v+(q>e&&e>-q?w:e),u+=v+(q>h&&h>-q?w:h)+v+(q>k&&k>-q?w:k)+v+(q>o&&o>-q?w:o)+v):u+=",0,0,0,0,1,0,",u+=H+v+I+v+J+v+(M?1+-J/M:1)+")",A[Ca]=u};j=Ga.prototype,j.x=j.y=j.z=j.skewX=j.skewY=j.rotation=j.rotationX=j.rotationY=j.zOrigin=j.xPercent=j.yPercent=j.xOffset=j.yOffset=0,j.scaleX=j.scaleY=j.scaleZ=1,ya("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(a,b,c,d,f,h,i){if(d._lastParsedTransform===i)return f;d._lastParsedTransform=i;var j,k=i.scale&&"function"==typeof i.scale?i.scale:0;"function"==typeof i[c]&&(j=i[c],i[c]=b),k&&(i.scale=k(r,a));var l,m,n,o,p,s,t,u,v,w=a._gsTransform,x=a.style,y=1e-6,z=Ba.length,A=i,B={},C="transformOrigin",D=Ra(a,e,!0,A.parseTransform),E=A.transform&&("function"==typeof A.transform?A.transform(r,q):A.transform);if(D.skewType=A.skewType||D.skewType||g.defaultSkewType,d._transform=D,E&&"string"==typeof E&&Ca)m=Q.style,m[Ca]=E,m.display="block",m.position="absolute",O.body.appendChild(Q),l=Ra(Q,null,!1),"simple"===D.skewType&&(l.scaleY*=Math.cos(l.skewX*K)),D.svg&&(s=D.xOrigin,t=D.yOrigin,l.x-=D.xOffset,l.y-=D.yOffset,(A.transformOrigin||A.svgOrigin)&&(E={},La(a,ha(A.transformOrigin),E,A.svgOrigin,A.smoothOrigin,!0),s=E.xOrigin,t=E.yOrigin,l.x-=E.xOffset-D.xOffset,l.y-=E.yOffset-D.yOffset),(s||t)&&(u=Qa(Q,!0),l.x-=s-(s*u[0]+t*u[2]),l.y-=t-(s*u[1]+t*u[3]))),O.body.removeChild(Q),l.perspective||(l.perspective=D.perspective),null!=A.xPercent&&(l.xPercent=ja(A.xPercent,D.xPercent)),null!=A.yPercent&&(l.yPercent=ja(A.yPercent,D.yPercent));else if("object"==typeof A){if(l={scaleX:ja(null!=A.scaleX?A.scaleX:A.scale,D.scaleX),scaleY:ja(null!=A.scaleY?A.scaleY:A.scale,D.scaleY),scaleZ:ja(A.scaleZ,D.scaleZ),x:ja(A.x,D.x),y:ja(A.y,D.y),z:ja(A.z,D.z),xPercent:ja(A.xPercent,D.xPercent),yPercent:ja(A.yPercent,D.yPercent),perspective:ja(A.transformPerspective,D.perspective)},p=A.directionalRotation,null!=p)if("object"==typeof p)for(m in p)A[m]=p[m];else A.rotation=p;"string"==typeof A.x&&-1!==A.x.indexOf("%")&&(l.x=0,l.xPercent=ja(A.x,D.xPercent)),"string"==typeof A.y&&-1!==A.y.indexOf("%")&&(l.y=0,l.yPercent=ja(A.y,D.yPercent)),l.rotation=ka("rotation"in A?A.rotation:"shortRotation"in A?A.shortRotation+"_short":"rotationZ"in A?A.rotationZ:D.rotation,D.rotation,"rotation",B),Fa&&(l.rotationX=ka("rotationX"in A?A.rotationX:"shortRotationX"in A?A.shortRotationX+"_short":D.rotationX||0,D.rotationX,"rotationX",B),l.rotationY=ka("rotationY"in A?A.rotationY:"shortRotationY"in A?A.shortRotationY+"_short":D.rotationY||0,D.rotationY,"rotationY",B)),l.skewX=ka(A.skewX,D.skewX),l.skewY=ka(A.skewY,D.skewY)}for(Fa&&null!=A.force3D&&(D.force3D=A.force3D,o=!0),n=D.force3D||D.z||D.rotationX||D.rotationY||l.z||l.rotationX||l.rotationY||l.perspective,n||null==A.scale||(l.scaleZ=1);--z>-1;)v=Ba[z],E=l[v]-D[v],(E>y||-y>E||null!=A[v]||null!=M[v])&&(o=!0,f=new ta(D,v,D[v],E,f),v in B&&(f.e=B[v]),f.xs0=0,f.plugin=h,d._overwriteProps.push(f.n));return E=A.transformOrigin,D.svg&&(E||A.svgOrigin)&&(s=D.xOffset,t=D.yOffset,La(a,ha(E),l,A.svgOrigin,A.smoothOrigin),f=ua(D,"xOrigin",(w?D:l).xOrigin,l.xOrigin,f,C),f=ua(D,"yOrigin",(w?D:l).yOrigin,l.yOrigin,f,C),(s!==D.xOffset||t!==D.yOffset)&&(f=ua(D,"xOffset",w?s:D.xOffset,D.xOffset,f,C),f=ua(D,"yOffset",w?t:D.yOffset,D.yOffset,f,C)),E="0px 0px"),(E||Fa&&n&&D.zOrigin)&&(Ca?(o=!0,v=Ea,E=(E||_(a,v,e,!1,"50% 50%"))+"",f=new ta(x,v,0,0,f,-1,C),f.b=x[v],f.plugin=h,Fa?(m=D.zOrigin,E=E.split(" "),D.zOrigin=(E.length>2&&(0===m||"0px"!==E[2])?parseFloat(E[2]):m)||0,f.xs0=f.e=E[0]+" "+(E[1]||"50%")+" 0px",f=new ta(D,"zOrigin",0,0,f,-1,f.n),f.b=m,f.xs0=f.e=D.zOrigin):f.xs0=f.e=E):ha(E+"",D)),o&&(d._transformType=D.svg&&Aa||!n&&3!==this._transformType?2:3),j&&(i[c]=j),k&&(i.scale=k),f},prefix:!0}),ya("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),ya("borderRadius",{defaultValue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],z=a.style;for(q=parseFloat(a.offsetWidth),r=parseFloat(a.offsetHeight),i=b.split(" "),j=0;jp?1:0))||""):(p=parseFloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=aa(a,"borderLeft",o,t),w=aa(a,"borderTop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=aa(a,"borderLeft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parseFloat(m)+p+s,k=parseFloat(l)+p+s)),g=va(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:qa("0px 0px 0px 0px",!1,!0)}),ya("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(a,b,c,d,f,g){return va(a.style,c,this.format(_(a,c,e,!1,"0px 0px")),this.format(b),!1,"0px",f)},prefix:!0,formatter:qa("0px 0px",!1,!0)}),ya("backgroundPosition",{defaultValue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",o=e||$(a,null),q=this.format((o?p?o.getPropertyValue(n+"-x")+" "+o.getPropertyValue(n+"-y"):o.getPropertyValue(n):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),r=this.format(b);if(-1!==q.indexOf("%")!=(-1!==r.indexOf("%"))&&r.split(",").length<2&&(m=_(a,"backgroundImage").replace(D,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),R.setAttribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexOf("%"),k!==(-1!==i[j].indexOf("%"))&&(l=0===j?a.offsetWidth-R.width:a.offsetHeight-R.height,h[j]=k?parseFloat(q)/100*l+"px":parseFloat(q)/l*100+"%");q=h.join(" ")}return this.parseComplex(a.style,q,r,f,g)},formatter:ha}),ya("backgroundSize",{defaultValue:"0 0",formatter:function(a){return a+="",ha(-1===a.indexOf(" ")?a+" "+a:a)}}),ya("perspective",{defaultValue:"0px",prefix:!0}),ya("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),ya("transformStyle",{prefix:!0}),ya("backfaceVisibility",{prefix:!0}),ya("userSelect",{prefix:!0}),ya("margin",{parser:ra("marginTop,marginRight,marginBottom,marginLeft")}),ya("padding",{parser:ra("paddingTop,paddingRight,paddingBottom,paddingLeft")}),ya("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>p?(i=a.currentStyle,j=8>p?" ":",",h="rect("+i.clipTop+j+i.clipRight+j+i.clipBottom+j+i.clipLeft+")",b=this.format(b).split(",").join(j)):(h=this.format(_(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parseComplex(a.style,h,b,f,g)}}),ya("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),ya("autoRound,strictUnits",{parser:function(a,b,c,d,e){return e}}),ya("border",{defaultValue:"0px solid #000",parser:function(a,b,c,d,f,g){var h=_(a,"borderTopWidth",e,!1,"0px"),i=this.format(b).split(" "),j=i[0].replace(w,"");return"px"!==j&&(h=parseFloat(h)/aa(a,"borderTopWidth",1,j)+j),this.parseComplex(a.style,this.format(h+" "+_(a,"borderTopStyle",e,!1,"solid")+" "+_(a,"borderTopColor",e,!1,"#000")),i.join(" "),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(pa)||["#000"])[0]}}),ya("borderWidth",{parser:ra("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),ya("float,cssFloat,styleFloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssFloat"in g?"cssFloat":"styleFloat";return new ta(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var Ua=function(a){var b,c=this.t,d=c.filter||_(this.data,"filter")||"",e=this.s+this.c*a|0;100===e&&(-1===d.indexOf("atrix(")&&-1===d.indexOf("radient(")&&-1===d.indexOf("oader(")?(c.removeAttribute("filter"),b=!_(this.data,"filter")):(c.filter=d.replace(z,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexOf("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(x,"opacity="+e))};ya("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(a,b,c,d,f,g){var h=parseFloat(_(a,"opacity",e,!1,"1")),i=a.style,j="autoAlpha"===c;return"string"==typeof b&&"="===b.charAt(1)&&(b=("-"===b.charAt(0)?-1:1)*parseFloat(b.substr(2))+h),j&&1===h&&"hidden"===_(a,"visibility",e)&&0!==b&&(h=0),U?f=new ta(i,"opacity",h,b-h,f):(f=new ta(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setRatio=Ua),j&&(f=new ta(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteProps.push(f.n),d._overwriteProps.push(c)),f}});var Va=function(a,b){b&&(a.removeProperty?(("ms"===b.substr(0,2)||"webkit"===b.substr(0,6))&&(b="-"+b),a.removeProperty(b.replace(B,"-$1").toLowerCase())):a.removeAttribute(b))},Wa=function(a){if(this.t._gsClassPT=this,1===a||0===a){this.t.setAttribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:Va(c,b.p),b=b._next;1===a&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};ya("className",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getAttribute("class")||"",p=a.style.cssText;if(g=f._classNamePT=new ta(a,d,0,0,g,2),g.setRatio=Wa,g.pr=-11,c=!0,g.b=o,k=ca(a,e),l=a._gsClassPT){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setRatio(1)}return a._gsClassPT=g,g.e="="!==b.charAt(1)?b:o.replace(new RegExp("(?:\\s|^)"+b.substr(2)+"(?![\\w-])"),"")+("+"===b.charAt(0)?" "+b.substr(2):""),a.setAttribute("class",g.e),j=da(a,k,ca(a),i,m),a.setAttribute("class",o),g.data=j.firstMPT,a.style.cssText=p,g=g.xfirst=f.parse(a,j.difs,g,h)}});var Xa=function(a){if((1===a||0===a)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var b,c,d,e,f,g=this.t.style,h=i.transform.parse;if("all"===this.e)g.cssText="",e=!0;else for(b=this.e.split(" ").join("").split(","),d=b.length;--d>-1;)c=b[d],i[c]&&(i[c].parse===h?e=!0:c="transformOrigin"===c?Ea:i[c].p),Va(g,c);e&&(Va(g,Ca),f=this.t._gsTransform,f&&(f.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(ya("clearProps",{parser:function(a,b,d,e,f){return f=new ta(a,d,0,0,f,2),f.setRatio=Xa,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),j="bezier,throwProps,physicsProps,physics2D".split(","),wa=j.length;wa--;)za(j[wa]);j=g.prototype,j._firstPT=j._lastParsedTransform=j._transform=null,j._onInitTween=function(a,b,h,j){if(!a.nodeType)return!1;this._target=q=a,this._tween=h,this._vars=b,r=j,k=b.autoRound,c=!1,d=b.suffixMap||g.suffixMap,e=$(a,""),f=this._overwriteProps;var n,p,s,t,u,v,w,x,z,A=a.style;if(l&&""===A.zIndex&&(n=_(a,"zIndex",e),("auto"===n||""===n)&&this._addLazySet(A,"zIndex",0)),"string"==typeof b&&(t=A.cssText,n=ca(a,e),A.cssText=t+";"+b,n=da(a,n,ca(a)).difs,!U&&y.test(b)&&(n.opacity=parseFloat(RegExp.$1)),b=n,A.cssText=t),b.className?this._firstPT=p=i.className.parse(a,b.className,"className",this,null,null,b):this._firstPT=p=this.parse(a,b,null),this._transformType){for(z=3===this._transformType,Ca?m&&(l=!0,""===A.zIndex&&(w=_(a,"zIndex",e),("auto"===w||""===w)&&this._addLazySet(A,"zIndex",0)),o&&this._addLazySet(A,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(z?"visible":"hidden"))):A.zoom=1,s=p;s&&s._next;)s=s._next;x=new ta(a,"transform",0,0,null,2),this._linkCSSP(x,null,s),x.setRatio=Ca?Ta:Sa,x.data=this._transform||Ra(a,e,!0),x.tween=h,x.pr=-1,f.pop()}if(c){for(;p;){for(v=p._next,s=t;s&&s.pr>p.pr;)s=s._next;(p._prev=s?s._prev:u)?p._prev._next=p:t=p,(p._next=s)?s._prev=p:u=p,p=v}this._firstPT=t}return!0},j.parse=function(a,b,c,f){var g,h,j,l,m,n,o,p,s,t,u=a.style;for(g in b){if(n=b[g],"function"==typeof n&&(n=n(r,q)),h=i[g])c=h.parse(a,n,g,this,c,f,b);else{if("--"===g.substr(0,2)){this._tween._propLookup[g]=this._addTween.call(this._tween,a.style,"setProperty",$(a).getPropertyValue(g)+"",n+"",g,!1,g);continue}m=_(a,g,e)+"",s="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexOf("Color")||s&&A.test(n)?(s||(n=na(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=va(u,g,m,n,!0,"transparent",c,0,f)):s&&J.test(n)?c=va(u,g,m,n,!0,null,c,0,f):(j=parseFloat(m),o=j||0===j?m.substr((j+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(j=ga(a,g,e),o="px"):"left"===g||"top"===g?(j=ba(a,g,e),o="px"):(j="opacity"!==g?0:1,o="")),t=s&&"="===n.charAt(1),t?(l=parseInt(n.charAt(0)+"1",10),n=n.substr(2),l*=parseFloat(n),p=n.replace(w,"")):(l=parseFloat(n),p=s?n.replace(w,""):""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(t?l+j:l)+p:b[g],o!==p&&(""!==p||"lineHeight"===g)&&(l||0===l)&&j&&(j=aa(a,g,j,o),"%"===p?(j/=aa(a,g,100,"%")/100,b.strictUnits!==!0&&(m=j+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?j/=aa(a,g,1,p):"px"!==p&&(l=aa(a,g,l,p),p="px"),t&&(l||0===l)&&(n=l+j+p)),t&&(l+=j),!j&&0!==j||!l&&0!==l?void 0!==u[g]&&(n||n+""!="NaN"&&null!=n)?(c=new ta(u,g,l||j||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexOf("Style")?n:m):W("invalid "+g+" tween value: "+b[g]):(c=new ta(u,g,j,l-j,c,0,g,k!==!1&&("px"===p||"zIndex"===g),0,m,n),c.xs0=p))}f&&c&&!c.plugin&&(c.plugin=f)}return c},j.setRatio=function(a){var b,c,d,e=this._firstPT,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=Math.round(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d-1;)Za(a[e],b,c);else for(d=a.childNodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(ca(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childNodes.length||Za(f,b,c)};return g.cascadeTo=function(a,c,d){var e,f,g,h,i=b.to(a,c,d),j=[i],k=[],l=[],m=[],n=b._internals.reservedProps;for(a=i._targets||i.target,Za(a,k,m),i.render(c,!0,!0),Za(a,l),i.render(0,!0,!0),i._enabled(!0),e=m.length;--e>-1;)if(f=da(m[e],k[e],l[e]),f.firstMPT){f=f.difs;for(g in d)n[g]&&(f[g]=d[g]);h={};for(g in f)h[g]=k[e][g];j.push(b.fromTo(m[e],c,h,f))}return j},a.activate([g]),g},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a){var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"undefined"!=typeof module&&module.exports?(require("../TweenLite.min.js"),module.exports=b()):"function"==typeof define&&define.amd&&define(["TweenLite"],b)}("CSSPlugin");var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){var a=(_gsScope.document||{}).documentElement,b=_gsScope,c=function(c,d){var e="x"===d?"Width":"Height",f="scroll"+e,g="client"+e,h=document.body;return c===b||c===a||c===h?Math.max(a[f],h[f])-(b["inner"+e]||a[g]||h[g]):c[f]-c["offset"+e]},d=function(a){return"string"==typeof a&&(a=TweenLite.selector(a)),a.length&&a!==b&&a[0]&&a[0].style&&!a.nodeType&&(a=a[0]),a===b||a.nodeType&&a.style?a:null},e=function(c,d){var e="scroll"+("x"===d?"Left":"Top");return c===b&&(null!=c.pageXOffset?e="page"+d.toUpperCase()+"Offset":c=null!=a[e]?a:document.body),function(){return c[e]}},f=function(c,f){var g=d(c).getBoundingClientRect(),h=!f||f===b||f===document.body,i=(h?a:f).getBoundingClientRect(),j={x:g.left-i.left,y:g.top-i.top};return!h&&f&&(j.x+=e(f,"x")(),j.y+=e(f,"y")()),j},g=function(a,b,d){var e=typeof a;return isNaN(a)?"number"===e||"string"===e&&"="===a.charAt(1)?a:"max"===a?c(b,d):Math.min(c(b,d),f(a,b)[d]):parseFloat(a)},h=_gsScope._gsDefine.plugin({propName:"scrollTo",API:2,global:!0,version:"1.9.0",init:function(a,c,d){return this._wdw=a===b,this._target=a,this._tween=d,"object"!=typeof c?(c={y:c},"string"==typeof c.y&&"max"!==c.y&&"="!==c.y.charAt(1)&&(c.x=c.y)):c.nodeType&&(c={y:c,x:c}),this.vars=c,this._autoKill=c.autoKill!==!1,this.getX=e(a,"x"),this.getY=e(a,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=c.x?(this._addTween(this,"x",this.x,g(c.x,a,"x")-(c.offsetX||0),"scrollTo_x",!0),this._overwriteProps.push("scrollTo_x")):this.skipX=!0,null!=c.y?(this._addTween(this,"y",this.y,g(c.y,a,"y")-(c.offsetY||0),"scrollTo_y",!0),this._overwriteProps.push("scrollTo_y")):this.skipY=!0,!0},set:function(a){this._super.setRatio.call(this,a);var d=this._wdw||!this.skipX?this.getX():this.xPrev,e=this._wdw||!this.skipY?this.getY():this.yPrev,f=e-this.yPrev,g=d-this.xPrev,i=h.autoKillThreshold;this.x<0&&(this.x=0),this.y<0&&(this.y=0),this._autoKill&&(!this.skipX&&(g>i||-i>g)&&di||-i>f)&&e1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcEnd=c===!0},!0),q=p.prototype=new a;return q.constructor=p,q.getRatio=function(a){var b=a+(.5-a)*this._p;return athis._p3?this._calcEnd?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b},p.ease=new p(.7,.7),q.config=p.config=function(a,b,c){return new p(a,b,c)},b=i("easing.SteppedEase",function(a,b){a=a||1,this._p1=1/a,this._p2=a+(b?0:1),this._p3=b?1:0},!0),q=b.prototype=new a,q.constructor=b,q.getRatio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),((this._p2*a|0)+this._p3)*this._p1},q.config=b.config=function(a,c){return new b(a,c)},c=i("easing.RoughEase",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),n=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--n>-1;)c=o?Math.random():1/l*n,d=q?q.getRatio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=Math.random()*e-.5*e:n%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new m(1,1,null),n=l;--n>-1;)g=j[n],h=new m(g.x,g.y,h);this._prev=new m(0,0,0!==h.t?h:h.next)},!0),q=c.prototype=new a,q.constructor=c,q.getRatio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},q.config=function(a){return new c(a)},c.ease=new c,l("Bounce",j("BounceOut",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),j("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),j("BounceInOut",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),l("Circ",j("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),j("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),j("CircInOut",function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)})),d=function(b,c,d){var e=i("easing."+b,function(a,b){this._p1=a>=1?a:1,this._p2=(b||d)/(1>a?a:1),this._p3=this._p2/g*(Math.asin(1/this._p1)||0),this._p2=g/this._p2},!0),f=e.prototype=new a;return f.constructor=e,f.getRatio=c,f.config=function(a,b){return new e(a,b)},e},l("Elastic",d("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*this._p2)+1},.3),d("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2))},.3),d("ElasticInOut",function(a){return(a*=2)<1?-.5*(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*this._p2)*.5+1},.45)),l("Expo",j("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),j("ExpoIn",function(a){return Math.pow(2,10*(a-1))-.001}),j("ExpoInOut",function(a){return(a*=2)<1?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*(a-1)))})),l("Sine",j("SineOut",function(a){return Math.sin(a*h)}),j("SineIn",function(a){return-Math.cos(a*h)+1}),j("SineInOut",function(a){return-.5*(Math.cos(Math.PI*a)-1)})),i("easing.EaseLookup",{find:function(b){return a.map[b]}},!0),k(e.SlowMo,"SlowMo","ease,"),k(c,"RoughEase","ease,"),k(b,"SteppedEase","ease,"),o},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(){var a=function(){return _gsScope.GreenSockGlobals||_gsScope};"undefined"!=typeof module&&module.exports?(require("../TweenLite.min.js"),module.exports=a()):"function"==typeof define&&define.amd&&define(["TweenLite"],a)}();!function(a,b){var c={},d=a.document,e=a.GreenSockGlobals=a.GreenSockGlobals||a;if(!e.TweenLite){var f,g,h,i,j,k=function(a){var b,c=a.split("."),d=e;for(b=0;b-1;)(l=q[f[p]]||new r(f[p],[])).gsClass?(i[p]=l.gsClass,s--):j&&l.sc.push(this);if(0===s&&g){if(m=("com.greensock."+d).split("."),n=m.pop(),o=k(m.join("."))[n]=this.gsClass=g.apply(g,i),h)if(e[n]=c[n]=o,"undefined"!=typeof module&&module.exports)if(d===b){module.exports=c[b]=o;for(p in c)o[p]=c[p]}else c[b]&&(c[b][n]=o);else"function"==typeof define&&define.amd&&define((a.GreenSockAMDPath?a.GreenSockAMDPath+"/":"")+d.split(".").pop(),[],function(){return o});for(p=0;p-1;)for(f=i[j],e=d?t("easing."+f,null,!0):l.easing[f]||{},g=k.length;--g>-1;)h=k[g],w[f+"."+h]=w[h+f]=e[h]=a.getRatio?a:a[h]||new a};for(h=v.prototype,h._calcEnd=!1,h.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},f=["Linear","Quad","Cubic","Quart","Quint,Strong"],g=f.length;--g>-1;)h=f[g]+",Power"+g,x(new v(null,null,1,g),h,"easeOut",!0),x(new v(null,null,2,g),h,"easeIn"+(0===g?",easeNone":"")),x(new v(null,null,3,g),h,"easeInOut");w.linear=l.easing.Linear.easeIn,w.swing=l.easing.Quad.easeInOut;var y=t("events.EventDispatcher",function(a){this._listeners={},this._eventTarget=a||this});h=y.prototype,h.addEventListener=function(a,b,c,d,e){e=e||0;var f,g,h=this._listeners[a],k=0;for(this!==i||j||i.wake(),null==h&&(this._listeners[a]=h=[]),g=h.length;--g>-1;)f=h[g],f.c===b&&f.s===c?h.splice(g,1):0===k&&f.pr-1;)if(d[c].c===b)return void d.splice(c,1)},h.dispatchEvent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,b>1&&(e=e.slice(0)),c=this._eventTarget;--b>-1;)d=e[b],d&&(d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c))};var z=a.requestAnimationFrame,A=a.cancelAnimationFrame,B=Date.now||function(){return(new Date).getTime()},C=B();for(f=["ms","moz","webkit","o"],g=f.length;--g>-1&&!z;)z=a[f[g]+"RequestAnimationFrame"],A=a[f[g]+"CancelAnimationFrame"]||a[f[g]+"CancelRequestAnimationFrame"];t("Ticker",function(a,b){var c,e,f,g,h,k=this,l=B(),n=b!==!1&&z?"auto":!1,p=500,q=33,r="tick",s=function(a){var b,d,i=B()-C;i>p&&(l+=i-q),C+=i,k.time=(C-l)/1e3,b=k.time-h,(!c||b>0||a===!0)&&(k.frame++,h+=b+(b>=g?.004:g-b),d=!0),a!==!0&&(f=e(s)),d&&k.dispatchEvent(r)};y.call(k),k.time=k.frame=0,k.tick=function(){s(!0)},k.lagSmoothing=function(a,b){p=a||1/m,q=Math.min(b,p,0)},k.sleep=function(){null!=f&&(n&&A?A(f):clearTimeout(f),e=o,f=null,k===i&&(j=!1))},k.wake=function(a){null!==f?k.sleep():a?l+=-C+(C=B()):k.frame>10&&(C=B()-p+5),e=0===c?o:n&&z?z:function(a){return setTimeout(a,1e3*(h-k.time)+1|0)},k===i&&(j=!0),s(2)},k.fps=function(a){return arguments.length?(c=a,g=1/(c||60),h=this.time+g,void k.wake()):c},k.useRAF=function(a){return arguments.length?(k.sleep(),n=a,void k.fps(c)):n},k.fps(a),setTimeout(function(){"auto"===n&&k.frame<5&&"hidden"!==d.visibilityState&&k.useRAF(!1)},1500)}),h=l.Ticker.prototype=new l.events.EventDispatcher,h.constructor=l.Ticker;var D=t("core.Animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalDuration=a||0,this._delay=Number(b.delay)||0,this._timeScale=1,this._active=b.immediateRender===!0,this.data=b.data,this._reversed=b.reversed===!0,X){j||i.wake();var c=this.vars.useFrames?W:X;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});i=D.ticker=new l.Ticker,h=D.prototype,h._dirty=h._gc=h._initted=h._paused=!1,h._totalTime=h._time=0,h._rawPrevTime=-1,h._next=h._last=h._onUpdate=h._timeline=h.timeline=null,h._paused=!1;var E=function(){j&&B()-C>2e3&&"hidden"!==d.visibilityState&&i.wake();var a=setTimeout(E,2e3);a.unref&&a.unref()};E(),h.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},h.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},h.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},h.seek=function(a,b){return this.totalTime(Number(a),b!==!1)},h.restart=function(a,b){return this.reversed(!1).paused(!1).totalTime(a?-this._delay:0,b!==!1,!0)},h.reverse=function(a,b){return null!=a&&this.seek(a||this.totalDuration(),b),this.reversed(!0).paused(!1)},h.render=function(a,b,c){},h.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},h.isActive=function(){var a,b=this._timeline,c=this._startTime;return!b||!this._gc&&!this._paused&&b.isActive()&&(a=b.rawTime(!0))>=c&&a-1;)"{self}"===a[b]&&(c[b]=this);return c},h._callback=function(a){var b=this.vars,c=b[a],d=b[a+"Params"],e=b[a+"Scope"]||b.callbackScope||this,f=d?d.length:0;switch(f){case 0:c.call(e);break;case 1:c.call(e,d[0]);break;case 2:c.call(e,d[0],d[1]);break;default:c.apply(e,d)}},h.eventCallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"Params"]=p(c)&&-1!==c.join("").indexOf("{self}")?this._swapSelfInParams(c):c,e[a+"Scope"]=d),"onUpdate"===a&&(this._onUpdate=b)}return this},h.delay=function(a){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay),this._delay=a,this):this._delay},h.duration=function(a){return arguments.length?(this._duration=this._totalDuration=a,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:a,b)):this._time},h.totalTime=function(a,b,c){if(j||i.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>a&&!c&&(a+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var d=this._totalDuration,e=this._timeline;if(a>d&&!c&&(a=d),this._startTime=(this._paused?this._pauseTime:e._time)-(this._reversed?d-a:a)/this._timeScale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._startTime+e._totalTime)/e._timeScale&&e.totalTime(e._totalTime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==a||0===this._duration)&&(J.length&&Z(),this.render(a,b,!1),J.length&&Z())}return this},h.progress=h.totalProgress=function(a,b){var c=this.duration();return arguments.length?this.totalTime(c*a,b):c?this._time/c:this.ratio},h.startTime=function(a){return arguments.length?(a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,a-this._delay)),this):this._startTime},h.endTime=function(a){return this._startTime+(0!=a?this.totalDuration():this.duration())/this._timeScale},h.timeScale=function(a){if(!arguments.length)return this._timeScale;if(a=a||m,this._timeline&&this._timeline.smoothChildTiming){var b=this._pauseTime,c=b||0===b?b:this._timeline.totalTime();this._startTime=c-(c-this._startTime)*this._timeScale/a}return this._timeScale=a,this._uncache(!1)},h.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},h.paused=function(a){if(!arguments.length)return this._paused;var b,c,d=this._timeline;return a!=this._paused&&d&&(j||a||i.wake(),b=d.rawTime(),c=b-this._pauseTime,!a&&d.smoothChildTiming&&(this._startTime+=c,this._uncache(!1)),this._pauseTime=a?b:null,this._paused=a,this._active=this.isActive(),!a&&0!==c&&this._initted&&this.duration()&&(b=d.smoothChildTiming?this._totalTime:(b-this._startTime)/this._timeScale,this.render(b,b===this._totalTime,!0))),this._gc&&!a&&this._enabled(!0,!1),this};var F=t("core.SimpleTimeline",function(a){D.call(this,0,a),this.autoRemoveChildren=this.smoothChildTiming=!0});h=F.prototype=new D,h.constructor=F,h.kill()._gc=!1,h._first=h._last=h._recent=null,h._sortChildren=!1,h.add=h.insert=function(a,b,c,d){var e,f;if(a._startTime=Number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale),a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),e=this._last,this._sortChildren)for(f=a._startTime;e&&e._startTime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._recent=a,this._timeline&&this._uncache(!0),this},h._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),a._next=a._prev=a.timeline=null,a===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},h.render=function(a,b,c){var d,e=this._first;for(this._totalTime=this._time=this._rawPrevTime=a;e;)d=e._next,(e._active||a>=e._startTime&&!e._paused&&!e._gc)&&(e._reversed?e.render((e._dirty?e.totalDuration():e._totalDuration)-(a-e._startTime)*e._timeScale,b,c):e.render((a-e._startTime)*e._timeScale,b,c)),e=d},h.rawTime=function(){return j||i.wake(),this._totalTime};var G=t("TweenLite",function(b,c,d){if(b === undefined) return false;if(D.call(this,c,d),this.render=G.prototype.render,null==b);this.target=b="string"!=typeof b?b:G.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType),i=this.vars.overwrite;if(this._overwrite=i=null==i?V[G.defaultOverwrite]:"number"==typeof i?i>>0:V[i],(h||b instanceof Array||b.push&&p(b))&&"number"!=typeof b[0])for(this._targets=g=n(b),this._propLookup=[],this._siblings=[],e=0;e1&&aa(f,this,null,1,this._siblings[e])):(f=g[e--]=G.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._propLookup={},this._siblings=$(b,this,!1),1===i&&this._siblings.length>1&&aa(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-m,this.render(Math.min(0,-this._delay)))},!0),H=function(b){return b&&b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType)},I=function(a,b){var c,d={};for(c in a)U[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!R[c]||R[c]&&R[c]._autoCSS)||(d[c]=a[c],delete a[c]);a.css=d};h=G.prototype=new D,h.constructor=G,h.kill()._gc=!1,h.ratio=0,h._firstPT=h._targets=h._overwrittenProps=h._startAt=null,h._notifyPluginsOfEnabled=h._lazy=!1,G.version="1.20.2",G.defaultEase=h._ease=new v(null,null,1,1),G.defaultOverwrite="auto",G.ticker=i,G.autoSleep=120,G.lagSmoothing=function(a,b){i.lagSmoothing(a,b)},G.selector=a.$||a.jQuery||function(b){var c=a.$||a.jQuery;return c?(G.selector=c,c(b)):"undefined"==typeof d?b:d.querySelectorAll?d.querySelectorAll(b):d.getElementById("#"===b.charAt(0)?b.substr(1):b)};var J=[],K={},L=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,M=/[\+-]=-?[\.\d]/,N=function(a){for(var b,c=this._firstPT,d=1e-6;c;)b=c.blob?1===a&&this.end?this.end:a?this.join(""):this.start:c.c*a+c.s,c.m?b=c.m(b,this._target||c.t):d>b&&b>-d&&!c.blob&&(b=0),c.f?c.fp?c.t[c.p](c.fp,b):c.t[c.p](b):c.t[c.p]=b,c=c._next},O=function(a,b,c,d){var e,f,g,h,i,j,k,l=[],m=0,n="",o=0;for(l.start=a,l.end=b,a=l[0]=a+"",b=l[1]=b+"",c&&(c(l),a=l[0],b=l[1]),l.length=0,e=a.match(L)||[],f=b.match(L)||[],d&&(d._next=null,d.blob=1,l._firstPT=l._applyPT=d),i=f.length,h=0;i>h;h++)k=f[h],j=b.substr(m,b.indexOf(k,m)-m),n+=j||!h?j:",",m+=j.length,o?o=(o+1)%5:"rgba("===j.substr(-5)&&(o=1),k===e[h]||e.length<=h?n+=k:(n&&(l.push(n),n=""),g=parseFloat(e[h]),l.push(g),l._firstPT={_next:l._firstPT,t:l,p:l.length-1,s:g,c:("="===k.charAt(1)?parseInt(k.charAt(0)+"1",10)*parseFloat(k.substr(2)):parseFloat(k)-g)||0,f:0,m:o&&4>o?Math.round:0}),m+=k.length;return n+=b.substr(m),n&&l.push(n),l.setRatio=N,M.test(b)&&(l.end=0),l},P=function(a,b,c,d,e,f,g,h,i){"function"==typeof d&&(d=d(i||0,a));var j,k=typeof a[b],l="function"!==k?"":b.indexOf("set")||"function"!=typeof a["get"+b.substr(3)]?b:"get"+b.substr(3),m="get"!==c?c:l?g?a[l](g):a[l]():a[b],n="string"==typeof d&&"="===d.charAt(1),o={t:a,p:b,s:m,f:"function"===k,pg:0,n:e||b,m:f?"function"==typeof f?f:Math.round:0,pr:0,c:n?parseInt(d.charAt(0)+"1",10)*parseFloat(d.substr(2)):parseFloat(d)-m||0};return("number"!=typeof m||"number"!=typeof d&&!n)&&(g||isNaN(m)||!n&&isNaN(d)||"boolean"==typeof m||"boolean"==typeof d?(o.fp=g,j=O(m,n?parseFloat(o.s)+o.c:d,h||G.defaultStringFilter,o),o={t:j,p:"setRatio",s:0,c:1,f:2,pg:0,n:e||b,pr:0,m:0}):(o.s=parseFloat(m),n||(o.c=parseFloat(d)-o.s||0))),o.c?((o._next=this._firstPT)&&(o._next._prev=o),this._firstPT=o,o):void 0},Q=G._internals={isArray:p,isSelector:H,lazyTweens:J,blobDif:O},R=G._plugins={},S=Q.tweenLookup={},T=0,U=Q.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},V={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},W=D._rootFramesTimeline=new F,X=D._rootTimeline=new F,Y=30,Z=Q.lazyRender=function(){var a,b=J.length;for(K={};--b>-1;)a=J[b],a&&a._lazy!==!1&&(a.render(a._lazy[0],a._lazy[1],!0),a._lazy=!1);J.length=0};X._startTime=i.time,W._startTime=i.frame,X._active=W._active=!0,setTimeout(Z,1),D._updateRoot=G.render=function(){var a,b,c;if(J.length&&Z(),X.render((i.time-X._startTime)*X._timeScale,!1,!1),W.render((i.frame-W._startTime)*W._timeScale,!1,!1),J.length&&Z(),i.frame>=Y){Y=i.frame+(parseInt(G.autoSleep,10)||120);for(c in S){for(b=S[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete S[c]}if(c=X._first,(!c||c._paused)&&G.autoSleep&&!W._first&&1===i._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||i.sleep()}}},i.addEventListener("tick",D._updateRoot);var $=function(a,b,c){var d,e,f=a._gsTweenID;if(S[f||(a._gsTweenID=f="t"+T++)]||(S[f]={target:a,tweens:[]}),b&&(d=S[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return S[f].tweens},_=function(a,b,c,d){var e,f,g=a.vars.onOverwrite;return g&&(e=g(a,b,c,d)),g=G.onOverwrite,g&&(f=g(a,b,c,d)),e!==!1&&f!==!1},aa=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._kill(null,a,b)&&(g=!0);else if(5===d)break;return g}var j,k=b._startTime+m,l=[],n=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||ba(b,0,o),0===ba(h,j,o)&&(l[n++]=h)):h._startTime<=k&&h._startTime+h.totalDuration()/h._timeScale>k&&((o||!h._initted)&&k-h._startTime<=2e-10||(l[n++]=h)));for(f=n;--f>-1;)if(h=l[f],2===d&&h._kill(c,a,b)&&(g=!0),2!==d||!h._firstPT&&h._initted){if(2!==d&&!_(h,b))continue;h._enabled(!1,!1)&&(g=!0)}return g},ba=function(a,b,c){for(var d=a._timeline,e=d._timeScale,f=a._startTime;d._timeline;){if(f+=d._startTime,e*=d._timeScale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*m>f-b?m:(f+=a.totalDuration()/a._timeScale/e)>b+m?0:f-b-m};h._init=function(){var a,b,c,d,e,f,g=this.vars,h=this._overwrittenProps,i=this._duration,j=!!g.immediateRender,k=g.ease;if(g.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),e={};for(d in g.startAt)e[d]=g.startAt[d];if(e.overwrite=!1,e.immediateRender=!0,e.lazy=j&&g.lazy!==!1,e.startAt=e.delay=null,e.onUpdate=g.onUpdate,e.onUpdateScope=g.onUpdateScope||g.callbackScope||this,this._startAt=G.to(this.target,0,e),j)if(this._time>0)this._startAt=null;else if(0!==i)return}else if(g.runBackwards&&0!==i)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(j=!1),c={};for(d in g)U[d]&&"autoCSS"!==d||(c[d]=g[d]);if(c.overwrite=0,c.data="isFromStart",c.lazy=j&&g.lazy!==!1,c.immediateRender=j,this._startAt=G.to(this.target,0,c),j){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=k=k?k instanceof v?k:"function"==typeof k?new v(k,g.easeParams):w[k]||G.defaultEase:G.defaultEase,g.easeParams instanceof Array&&k.config&&(this._ease=k.config.apply(k,g.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(f=this._targets.length,a=0;f>a;a++)this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],h?h[a]:null,a)&&(b=!0);else b=this._initProps(this.target,this._propLookup,this._siblings,h,0);if(b&&G._onPluginEvent("_onInitAllProps",this),h&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),g.runBackwards)for(c=this._firstPT;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onUpdate=g.onUpdate,this._initted=!0},h._initProps=function(b,c,d,e,f){var g,h,i,j,k,l;if(null==b)return!1;K[b._gsTweenID]&&Z(),this.vars.css||b.style&&b!==a&&b.nodeType&&R.css&&this.vars.autoCSS!==!1&&I(this.vars,b);for(g in this.vars)if(l=this.vars[g],U[g])l&&(l instanceof Array||l.push&&p(l))&&-1!==l.join("").indexOf("{self}")&&(this.vars[g]=l=this._swapSelfInParams(l,this));else if(R[g]&&(j=new R[g])._onInitTween(b,this.vars[g],this,f)){for(this._firstPT=k={_next:this._firstPT,t:j,p:"setRatio",s:0,c:1,f:1,n:g,pg:1,pr:j._priority,m:0},h=j._overwriteProps.length;--h>-1;)c[j._overwriteProps[h]]=this._firstPT;(j._priority||j._onInitAllProps)&&(i=!0),(j._onDisable||j._onEnable)&&(this._notifyPluginsOfEnabled=!0),k._next&&(k._next._prev=k)}else c[g]=P.call(this,b,g,"get",l,g,0,null,this.vars.stringFilter,f);return e&&this._kill(e,b)?this._initProps(b,c,d,e,f):this._overwrite>1&&this._firstPT&&d.length>1&&aa(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e,f)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(K[b._gsTweenID]=!0),i)},h.render=function(a,b,c){var d,e,f,g,h=this._time,i=this._duration,j=this._rawPrevTime;if(a>=i-1e-7&&a>=0)this._totalTime=this._time=i,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(d=!0,e="onComplete",c=c||this._timeline.autoRemoveChildren),0===i&&(this._initted||!this.vars.lazy||c)&&(this._startTime===this._timeline._duration&&(a=0),(0>j||0>=a&&a>=-1e-7||j===m&&"isPause"!==this.data)&&j!==a&&(c=!0,j>m&&(e="onReverseComplete")),this._rawPrevTime=g=!b||a||j===a?a:m);else if(1e-7>a)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==h||0===i&&j>0)&&(e="onReverseComplete",d=this._reversed),0>a&&(this._active=!1,0===i&&(this._initted||!this.vars.lazy||c)&&(j>=0&&(j!==m||"isPause"!==this.data)&&(c=!0),this._rawPrevTime=g=!b||a||j===a?a:m)),(!this._initted||this._startAt&&this._startAt.progress())&&(c=!0);else if(this._totalTime=this._time=a,this._easeType){var k=a/i,l=this._easeType,n=this._easePower;(1===l||3===l&&k>=.5)&&(k=1-k),3===l&&(k*=2),1===n?k*=k:2===n?k*=k*k:3===n?k*=k*k*k:4===n&&(k*=k*k*k*k),1===l?this.ratio=1-k:2===l?this.ratio=k:.5>a/i?this.ratio=k/2:this.ratio=1-k/2}else this.ratio=this._ease.getRatio(a/i);if(this._time!==h||c){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=h,this._rawPrevTime=j,J.push(this),void(this._lazy=[a,b]);this._time&&!d?this.ratio=this._ease.getRatio(this._time/i):d&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==h&&a>=0&&(this._active=!0),0===h&&(this._startAt&&(a>=0?this._startAt.render(a,b,c):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._time||0===i)&&(b||this._callback("onStart"))),f=this._firstPT;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onUpdate&&(0>a&&this._startAt&&a!==-1e-4&&this._startAt.render(a,b,c),b||(this._time!==h||d||c)&&this._callback("onUpdate")),e&&(!this._gc||c)&&(0>a&&this._startAt&&!this._onUpdate&&a!==-1e-4&&this._startAt.render(a,b,c),d&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this._callback(e),0===i&&this._rawPrevTime===m&&g!==m&&(this._rawPrevTime=0))}},h._kill=function(a,b,c){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:G.selector(b)||b;var d,e,f,g,h,i,j,k,l,m=c&&this._time&&c._startTime===this._startTime&&this._timeline===c._timeline;if((p(b)||H(b))&&"number"!=typeof b[0])for(d=b.length;--d>-1;)this._kill(a,b[d],c)&&(i=!0);else{if(this._targets){for(d=this._targets.length;--d>-1;)if(b===this._targets[d]){h=this._propLookup[d]||{},this._overwrittenProps=this._overwrittenProps||[],e=this._overwrittenProps[d]=a?this._overwrittenProps[d]||{}:"all";break}}else{if(b!==this.target)return!1;h=this._propLookup,e=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(h){if(j=a||h,k=a!==e&&"all"!==e&&a!==h&&("object"!=typeof a||!a._tempKill),c&&(G.onOverwrite||this.vars.onOverwrite)){for(f in j)h[f]&&(l||(l=[]),l.push(f));if((l||!a)&&!_(this,c,b,l))return!1}for(f in j)(g=h[f])&&(m&&(g.f?g.t[g.p](g.s):g.t[g.p]=g.s,i=!0),g.pg&&g.t._kill(j)&&(i=!0),g.pg&&0!==g.t._overwriteProps.length||(g._prev?g._prev._next=g._next:g===this._firstPT&&(this._firstPT=g._next),g._next&&(g._next._prev=g._prev),g._next=g._prev=null),delete h[f]),k&&(e[f]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return i},h.invalidate=function(){return this._notifyPluginsOfEnabled&&G._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],D.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-m,this.render(Math.min(0,-this._delay))),this},h._enabled=function(a,b){if(j||i.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=$(d[c],this,!0);else this._siblings=$(this.target,this,!0)}return D.prototype._enabled.call(this,a,b),this._notifyPluginsOfEnabled&&this._firstPT?G._onPluginEvent(a?"_onEnable":"_onDisable",this):!1},G.to=function(a,b,c){return new G(a,b,c)},G.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new G(a,b,c)},G.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new G(a,b,d)},G.delayedCall=function(a,b,c,d,e){return new G(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,lazy:!1,useFrames:e,overwrite:0})},G.set=function(a,b){return new G(a,0,b)},G.getTweensOf=function(a,b){if(null==a)return[];a="string"!=typeof a?a:G.selector(a)||a;var c,d,e,f;if((p(a)||H(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(G.getTweensOf(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else if(a._gsTweenID)for(d=$(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isActive())&&d.splice(c,1);return d||[]},G.killTweensOf=G.killDelayedCallsTo=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=G.getTweensOf(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var ca=t("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(","),this._propName=this._overwriteProps[0],this._priority=b||0,this._super=ca.prototype},!0);if(h=ca.prototype,ca.version="1.19.0",ca.API=2,h._firstPT=null,h._addTween=P,h.setRatio=N,h._kill=function(a){var b,c=this._overwriteProps,d=this._firstPT;if(null!=a[this._propName])this._overwriteProps=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstPT===d&&(this._firstPT=d._next)),d=d._next;return!1},h._mod=h._roundProps=function(a){for(var b,c=this._firstPT;c;)b=a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")],b&&"function"==typeof b&&(2===c.f?c.t._applyPT.m=b:c.m=b),c=c._next},G._onPluginEvent=function(a,b){var c,d,e,f,g,h=b._firstPT;if("_onInitAllProps"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstPT=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},ca.activate=function(a){for(var b=a.length;--b>-1;)a[b].API===ca.API&&(R[(new a[b])._propName]=a[b]);return!0},s.plugin=function(a){if(!(a&&a.propName&&a.init&&a.API))throw"illegal plugin definition.";var b,c=a.propName,d=a.priority||0,e=a.overwriteProps,f={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},g=t("plugins."+c.charAt(0).toUpperCase()+c.substr(1)+"Plugin",function(){ca.call(this,c,d),this._overwriteProps=e||[]},a.global===!0),h=g.prototype=new ca(c);h.constructor=g,g.API=a.API;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,ca.activate([g]),g},f=a._gsQueue){for(g=0;g (https://github.com/Joe12387/detectIncognito) * **/var detectIncognito=function(){return new Promise(function(e,t){var o,n,r="Unknown";function i(t){e({isPrivate:t,browserName:r})}function a(e){return e===eval.toString().length}function d(){void 0!==navigator.maxTouchPoints?function(){var e=String(Math.random());try{window.indexedDB.open(e,1).onupgradeneeded=function(t){var o,n,r=null===(o=t.target)||void 0===o?void 0:o.result;try{r.createObjectStore("test",{autoIncrement:!0}).put(new Blob),i(!1)}catch(e){var a=e;return e instanceof Error&&(a=null!==(n=e.message)&&void 0!==n?n:e),i("string"==typeof a&&/BlobURLs are not yet supported/.test(a))}finally{r.close(),window.indexedDB.deleteDatabase(e)}}}catch(e){return i(!1)}}():function(){var e=window.openDatabase,t=window.localStorage;try{e(null,null,null,null)}catch(e){return i(!0)}try{t.setItem("test","1"),t.removeItem("test")}catch(e){return i(!0)}i(!1)}()}function c(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(e,t){var o;i(t<(void 0!==(o=window).performance&&void 0!==o.performance.memory&&void 0!==o.performance.memory.jsHeapSizeLimit?performance.memory.jsHeapSizeLimit:1073741824))},function(e){t(new Error("detectIncognito somehow failed to query storage quota: "+e.message))})}function u(){void 0!==self.Promise&&void 0!==self.Promise.allSettled?c():(0,window.webkitRequestFileSystem)(0,1,function(){i(!1)},function(){i(!0)})}void 0!==(n=navigator.vendor)&&0===n.indexOf("Apple")&&a(37)?(r="Safari",d()):function(){var e=navigator.vendor;return void 0!==e&&0===e.indexOf("Google")&&a(33)}()?(o=navigator.userAgent,r=o.match(/Chrome/)?void 0!==navigator.brave?"Brave":o.match(/Edg/)?"Edge":o.match(/OPR/)?"Opera":"Chrome":"Chromium",u()):void 0!==document.documentElement&&void 0!==document.documentElement.style.MozAppearance&&a(37)?(r="Firefox",i(void 0===navigator.serviceWorker)):void 0!==navigator.msSaveBlob&&a(39)?(r="Internet Explorer",i(void 0===window.indexedDB)):t(new Error("detectIncognito cannot determine the browser"))})};function ServerDate_class(){var _this=this;this.summerTime=0;this.timezoneOffset=0;this.props=["toString","toDateString","toTimeString","toLocaleString","toLocaleDateString","toLocaleTimeString","valueOf","getTime","getFullYear","getUTCFullYear","getMonth","getUTCMonth","getDate","getUTCDate","getDay","getUTCDay","getHours","getUTCHours","getMinutes","getUTCMinutes","getSeconds","getUTCSeconds","getMilliseconds","getUTCMilliseconds","getTimezoneOffset","toUTCString","toISOString","toJSON"];this.init=function($summerTime){_this.summerTime=$summerTime;if(_this.summerTime==1){_this.timezoneOffset=new Date().getTimezoneOffset()+120;}else{_this.timezoneOffset=new Date().getTimezoneOffset()+60;};if(_this.timezoneOffset>720)_this.timezoneOffset=720;if(_this.timezoneOffset<-720)_this.timezoneOffset=-720;};this.getOffsetDate=function(){var d=new Date();d.setTime(d.getTime()+_this.timezoneOffset*60*1000);return d;};this.getFormatedString=function(){var od=_this.getOffsetDate();var y=String(od.getFullYear());var m=String(od.getMonth()+1);var d=String(od.getDate());var h=String(od.getHours());var i=String(od.getMinutes());var s=String(od.getSeconds());if(m.length==1)m="0"+m;if(d.length==1)d="0"+d;if(h.length==1)h="0"+h;if(i.length==1)i="0"+i;if(s.length==1)s="0"+s;return y+"-"+m+"-"+d+" "+h+":"+i+":"+s;};this.props.forEach(function(method){_this[method]=function(){var od=_this.getOffsetDate();return od[method]();};});};var $_SERVER_DATE=new ServerDate_class();function DLang_class(){var _this=this;this.version="1.0.0";this.datas=[];this.replaceVars=function($string,$vars){for(var name in $vars){var value=$vars[name];$string=$string.split("{"+name+"}").join(value);}return $string;};this.getLabel=function($id,$callback,$vars){if(_this.datas[$id]!==undefined){var label=_this.datas[$id];if($vars!==undefined)label=_this.replaceVars(label,$vars);if(typeof $callback==="function")$callback(label);return label;}var datas={};datas.action='lang_get_label';datas.id=$id;$.ajax({url:$_SITE_ROOT+"actions.php",dataType:'json',data:datas,async:true,cache:false,type:'POST',success:function($datas){if($datas.results.complete==1){var label=$datas.results.label;_this.datas[$id]=label;if($vars!==undefined)label=_this.replaceVars(label,$vars);if(typeof $callback==="function")$callback(label);return label;}else{if(typeof $callback==="function")$callback("{error#2}");return"...";};$datas=null;delete $datas;},error:function($datas){if(typeof $callback==="function")$callback("{error#1}");return"...";}});datas=null;delete datas;return"...";};this.preloadLabelsTries=0;this.preloadLabels=function($ids_array,$callback){if(typeof $_SITE_ROOT!=='undefined'){}else{_this.preloadLabelsTries++;if(_this.preloadLabelsTries>=3)return false;setTimeout(function(){_this.preloadLabels($ids_array,$callback);},5000);return false;};var arr=[];var i=0;var nb=$ids_array.length;while(i()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return re.test($mail);};this.isPhone=function($number,$indicatif){var number2=$number.replace(/[^0-9\+]/g,'');if($indicatif){var nbPlus=$number.split("+").length-1;if(nbPlus>1)return false;var shortNumer=number2.split($indicatif).join('');if($indicatif=="+33"){if(shortNumer.length==9)return true;return false;};if(shortNumer.length>=8)return true;return false;}number2=number2.split("+").join("");if(number2.length>=8)return true;return false;};this.isDate=function($date){var reg=new RegExp('^[0-9]{2}\/[0-9]{2}\/[0-9]{4}$','i');if(reg.test($date))return true;return false;};this.trim1=function(str){return str.replace(/^\s\s*/,'').replace(/\s\s*$/,'');};this.date2str=function(x,y){var z={M:x.getMonth()+1,d:x.getDate(),h:x.getHours(),m:x.getMinutes(),s:x.getSeconds()};y=y.replace(/(M+|d+|h+|m+|s+)/g,function(v){return((v.length>1?"0":"")+eval('z.'+v.slice(-1))).slice(-2);});return y.replace(/(y+)/g,function(v){return x.getFullYear().toString().slice(-v.length);});};this.variable_exists=function($var){if(typeof $var!=='undefined')return true;return false;};this.ts_mouseDownType='mousedown';this.ts_mouseUpType='mouseup';this.ts_mouseMoveType='mousemove';this.ts_id=0;this.untrackSwipe=function($element){if(typeof $element!=='undefined'){}else{return false;};$element.unbind(_this.ts_mouseDownType,$element.data('_mouseDown'));$element.unbind(_this.ts_mouseMoveType,$element.data('_mouseMove'));$element.unbind('click',$element.data('_mouseClick'));$(document).unbind(_this.ts_mouseUpType,$element.data('_mouseUp'));$(document).unbind("END_SWIPE",$element.data('_endSwipe'));$element.unbind(_this.ts_mouseUpType,$element.data('_mouseUp'));$element.removeData('_id');$element.removeData('_mouseDown');$element.removeData('_mouseMove');$element.removeData('_mouseClick');$element.removeData('_mouseUp');$element.removeData('_endSwipe');};this.trackSwipe=function($element,$preventPropagation){if(typeof $element.data('_id')!=='undefined'){return false;};_this.ts_id++;$element.data('_id',_this.ts_id);var minSwipe=40;var allowedTime=300;var startTime;if(_this.supportsTouch){_this.ts_mouseDownType='touchstart';_this.ts_mouseUpType='touchend';_this.ts_mouseMoveType='touchmove';};var clickX;var clickY;var diffX=0;var diffY=0;var mouseIsDown=false;var swipeDone=false;$element.data('_endSwipe',function(e){if(typeof $element.data('_id')=='undefined'){return true;};mouseIsDown=false;});$element.data('_mouseUp',function(e){if(typeof $element.data('_id')=='undefined'){mouseIsDown=false;return true;};var target=$(e.target);if(target.attr("contentEditable")=="true"||target.hasClass("input")){mouseIsDown=false;return true;};if(!startTime||!mouseIsDown){mouseIsDown=false;return true;};mouseIsDown=false;if(Math.abs(diffX)<3&&Math.abs(diffY)<3){$element.trigger("SWIPE_ABORTED");$element.trigger("SWIPE_ABSOLUTE_CLICK",[e]);return true;};var elapsedTime=new Date().getTime()-startTime;if(elapsedTime>allowedTime){$element.trigger("SWIPE_ABORTED");}if(Math.abs(diffX)>Math.abs(diffY)){if(Math.abs(diffX)minY&&clickYMath.ceil(_this._window_height))$("#popin").addClass("overH");};this.checkSize=function($force){if($("#current_size_checker_br").length==0){$('body').append("");}if($("#current_size_checker_vh").length==0){$('body').append("");}var scrollTop=$(document).scrollTop();var off_br=$("#current_size_checker_br").offset();var new_window_height=off_br.top-scrollTop;var new_window_width=window.innerWidth;var max_height=screen.availHeight-(window.outerHeight-window.innerHeight);new_window_height=Math.floor(new_window_height*10)/10;new_window_width=Math.floor(new_window_width*10)/10;if(new_window_height=1300){var messagesBtn=$("#menuDesktop .mLink.messages");if(messagesBtn.length==1){var off=messagesBtn.offset();var l=off.left+(messagesBtn.innerWidth()/2);$("#discutionsList").css("left",l+"px");}}else{$("#discutionsList").removeAttr('style');}_this.popin_resize();if($("#topBloc .currentSearch").length==1){var w=$("#topBloc").innerWidth();$("#topBloc .currentSearch").css("width",w+"px");}$(document).trigger('CORE_SIZE_CHANGED');return false;};this.address_state;this.previousAddress="-1";this.address_first=true;this.addressChange=function($event){_this.debugMessage("[CORE] addressChange",$event);if($("body").hasClass("inscription")||$("body").hasClass("connexion")||$("body").hasClass("cgu")||$("body").hasClass("mentions")||$("body").hasClass("faq"))$_SHOW_DISCLAMER=false;if(_this.address_first&&$_USURPATION){_this.showPopin('confirm_usurpation',null,true);return false;}if(_this.address_first&&_CHANGE_PASSWORD){_this.showPopin("change_password","uid="+_lp_uid+"&key="+_lp_key);return false;}if(_this.address_first&&$_USER_FIRST_CONNECTION){_this.showPopin("first_connection","",true);return false;}if(_USER_INACTIF){_this.showPopin("account_disabled","",true);return false;}if(_this.address_first&&$_SHOW_O30ANS){_this.showPopin("offre_30ans","retour="+$_O30ANS_RETOUR,true);return false;}if(_this.address_first&&$_SHOW_DISCLAMER){$_CORE.showPopin("confirm_disclamer","",true);return false;}if(_this.address_first&&$_PAIEMENT_CONFIRM==1){$_PAIEMENT_CONFIRM=0;window.history.pushState({},document.title,$_SITE_ROOT);setTimeout(function(){_this.showPopin("paiement_confirm","l="+window.location.search,true);},3000);}if(_this.address_first&&_PREMIUM_RELANCE==1){setTimeout(function(){if(!$_CORE.popin_visible)_this.showPopin("premium_relance");},4000);}if($event){$_ADDRESS_PATH=$event.value;$_ADDRESSES.push($_ADDRESS_PATH);}$_ADDRESS_VARS=$_ADDRESS_PATH.substring(1);if($_STATE_ROOT.indexOf($_ADDRESS_VARS)>-1)$_ADDRESS_VARS="";if(_this.address_state&&_this.address_first){$_ADDRESS_VARS=$_PAGE_VARS;_this.address_first=false;}if($_ADDRESS_VARS.indexOf('#')>=0){$_ADDRESS_VARS=$_ADDRESS_VARS.split('#')[0];}if($_ADDRESS_VARS==_this.previousAddress){return false;}_this.previousAddress=$_ADDRESS_VARS;var tmp=$_ADDRESS_VARS.split('/');switch(tmp[0]){case"tab":$_TAB_ID=tmp[1];$_TAB_ID=$_TAB_ID.split("#")[0];$_SUB_TAB_ID=null;$(document).trigger('TAB_CHANGED');break;default:break;}$(document).trigger('ADDRESS_VARS_CHANGED');};this.addressPrepareLinks=function($element){if(!$element)$element=$(document);$element.find('a.address:not(.addressDone)').each(function(index,element){if(_this.address_state){$(this).address();}else{var h=$(this).attr("href");if(h.indexOf("#")<0){$(this).attr("href","#/"+h);}}$(this).addClass("addressDone");});};this.scrollTo=function($top,$speed){if(typeof $speed!=='undefined'){}else{$speed=1;}TweenLite.to(window,$speed,{scrollTo:{y:$top,x:0},ease:Power2.easeInOut});};this.currentWscroll;this.disableScroll=function($origine){if($("body").hasClass("noScroll")||$origine=="discutionsList"&&$("body").hasClass("overlayActive")||$origine=="popin"&&$("body").hasClass("overlayActive")||$origine=="overlay"&&$("body").hasClass("overlayActive")){return false;}_this.currentWscroll=$(window).scrollTop();$("body").addClass("noScroll");};this.enableScroll=function($origine){if($("body").hasClass("overlayActive")){return false;}$("body").removeClass("noScroll");TweenLite.to(window,0.01,{scrollTo:{y:_this.currentWscroll,x:0}});};this.systemMessage_timeout;this.showSystemMessage=function($message,$timeOut,$extra){var gt=new Date().getTime();var mess_id="core_message_"+gt+"_"+new Date().getTime();var mClass="core_message";$("body").append(""+$message+"
");var mess=$("#"+mess_id);var topNotif=false;if($extra){if($extra.class){mess.addClass($extra.class);if($extra.class=="new_flash"){topNotif=true;mess.addClass("topNotif");}}if($extra.hDatas)mess.attr("data-hDatas",$extra.hDatas);}$timeOut=$timeOut||3000;if(topNotif){TweenLite.from(mess,0.2,{y:-50});}else{var otherNotifs=$(".core_message[id!='"+mess_id+"']:not(.topNotif)");TweenLite.to(otherNotifs,1,{alpha:0,onComplete:function(){otherNotifs.remove();}});}setTimeout(function(){if(topNotif){TweenLite.to(mess,0.2,{y:-50,alpha:0,onComplete:function(){mess.remove();}});}else{TweenLite.to(mess,1,{alpha:0,onComplete:function(){mess.remove();}});}},$timeOut);};this.hideSystemMessage=function(){$(".core_message").remove();};this.checkWebRTCcompatibility=function(){if(!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices){$_USER_HAS_WEBRTC=0;return false;}$_USER_HAS_WEBRTC=1;return true;if(typeof DetectRTC!=='undefined'){if(DetectRTC.isWebRTCSupported&&DetectRTC.isGetUserMediaSupported){$_USER_HAS_WEBRTC=1;return true;}else{$_USER_HAS_WEBRTC=0;return false;}}return false;};this.deusApiLoading;this.deusApiTime;this.deusApiMinDelay=10000;this.deusApiRecordedLat;this.deusApiRecordedLng;this.deusApiRecordGeoloc=function($lat,$lng){return false;if(_this.deusApiLoading)return false;if(Number($lat)==_this.deusApiRecordedLat&&Number($lng)==_this.deusApiRecordedLng)return false;var d=new Date();var tmp_time=d.getTime();var exec_diff=tmp_time-_this.deusApiTime;if(exec_diff<_this.deusApiMinDelay)return false;var datas={};datas.action='record_geoloc';datas.lat=Number($lat);datas.lng=Number($lng);_this.deusApiLoading=true;_this.deusApiTime=d.getTime();_this.deusApiRecordedLat=Number($lat);_this.deusApiRecordedLng=Number($lng);$.ajax({url:"https://www.lespompeurs.com/deus_api.php",dataType:'json',xhrFields:{withCredentials:true},data:datas,type:'POST',success:function($datas){if($datas.results.complete==1){}else{$_CORE.debugMessage("DEUS API : geoloc record error");}_this.deusApiLoading=false;},error:function($datas){$_CORE.debugMessage("DEUS API : geoloc record script error");_this.deusApiLoading=false;}});};this.recordUserGeoloc=function($lat,$lng,$city,$country,$postcode){return false;var datas={};datas.action='record_user_geoloc';datas.lat=$lat;datas.lng=$lng;datas.city=$city;datas.country=$country;datas.postcode=$postcode;$.ajax({url:"https://www.lespompeurs.com/deus_api.php",dataType:'json',xhrFields:{withCredentials:true},data:datas,type:'POST',success:function($datas){if($datas.results.complete==1){}else{}$datas=null;delete $datas;},error:function($datas){}});datas=null;delete datas;};this.setUserOnlineStatus=function($uid,$status){if($status=="")return false;var cards=$(".u_card[data-uid='"+$uid+"'], .DChatWindow[data-user_uid='"+$uid+"'],.uv_card[data-user-uid='"+$uid+"'], .di_card[data-user_uid='"+$uid+"'], .overlayChatHeader[data-user-uid='"+$uid+"']");_this.debugMessage("setUserOnlineStatus() uid="+$uid+", status="+$status+", cards.length="+cards.length);if(cards.length>0){switch($status){case"online":cards.removeClass("offline").removeClass("last24h").addClass("online");break;case"24h_online":cards.removeClass("offline").addClass("last24h").removeClass("online");break;case"offline":default:cards.addClass("offline").removeClass("last24h").removeClass("online");break;}_this.checkHomeFavoriteStatus();}};this.checkHomeFavoriteStatus=function(){if($(".homeFavorisFilter").length==0)return;var formOnline=$("#home input[name='online']").val();if(formOnline==3){if($(".u_card.is_favorite.online").length>0){$(".homeFavorisFilter").addClass("hasOnline");}else{$(".homeFavorisFilter").removeClass("hasOnline");}};};this.checkUsersStatusTimeout;this.checkUsersStatusTimeoutDelay=120000;this.checkUsersStatusLoading;var d=new Date();this.checkUsersStatus_up_time=d.getTime();this.focused=true;this.onlyUnique=function(value,index,self){return self.indexOf(value)===index;};this.checkVisible=function(elm,evalType){evalType=evalType||"visible";var vpH=$(window).height()+500,st=$(window).scrollTop()-500,y=$(elm).offset().top,elementHeight=$(elm).height();if(evalType==="visible")return((y<(vpH+st))&&(y>(st-elementHeight)));if(evalType==="above")return((y<(vpH+st)));};this.checkUsersStatus=function(){if(_this.checkUsersStatusLoading)return;var d=new Date();var currentSec=d.getTime();var minDelay=_this.checkUsersStatusTimeoutDelay;if(_this.checkUsersStatus_up_time){var tmp_time=d.getTime();var exec_diff=tmp_time-_this.checkUsersStatus_up_time;_this.debugMessage("checkUsersStatus() exec_diff "+exec_diff);if(exec_diff<=minDelay){var delay=minDelay-exec_diff;_this.debugMessage("checkUsersStatus() BLOCKED limit delay="+delay);if(_this.checkUsersStatusTimeout)clearTimeout(_this.checkUsersStatusTimeout);_this.checkUsersStatusTimeout=setTimeout(_this.checkUsersStatus,delay);return false;}}_this.checkUsersStatusLoading=true;var datas={};datas.action='users_get_status';datas.users_list=[];$(".overlayChatHeader").each(function(index,element){datas.users_list.push($(this).attr("data-user-uid"));});$(".DChatWindow").each(function(index,element){if(_this.checkVisible($(this)))datas.users_list.push($(this).attr("data-user_uid"));});$(".u_card, .a_card, .uv_card").each(function(index,element){if(_this.checkVisible($(this)))datas.users_list.push($(this).attr("data-user-uid"));});var maxUsers=20;if(datas.users_list.length>maxUsers)datas.users_list=datas.users_list.slice(0,maxUsers);_this.debugMessage("checkUsersStatus() users_list length="+datas.users_list.length,datas.users_list);datas.users_list=datas.users_list.filter(_this.onlyUnique);if(datas.users_list.length==0){_this.debugMessage("checkUsersStatus() BLOCKED users_list vide");if(_this.checkUsersStatusTimeout)clearTimeout(_this.checkUsersStatusTimeout);_this.checkUsersStatusLoading=false;_this.checkUsersStatusTimeout=setTimeout(_this.checkUsersStatus,_this.checkUsersStatusTimeoutDelay);return;}_this.checkUsersStatus_up_time=d.getTime();$.ajax({url:$_SITE_ROOT+"actions.php",timeout:5000,dataType:'json',data:datas,type:'POST',success:function($datas){if($datas.results.complete==1){_this.debugMessage("checkUsersStatus() results",$datas.results);var i=0;var nb=datas.users_list.length;while(i0){$(".homeFavorisFilter").addClass("hasOnline");}else{$(".homeFavorisFilter").removeClass("hasOnline");}}}else{}if(_this.checkUsersStatusTimeout)clearTimeout(_this.checkUsersStatusTimeout);_this.checkUsersStatusLoading=false;_this.checkUsersStatusTimeout=setTimeout(_this.checkUsersStatus,_this.checkUsersStatusTimeoutDelay);$datas=null;delete $datas;datas=null;delete datas;},error:function($datas){if(_this.checkUsersStatusTimeout)clearTimeout(_this.checkUsersStatusTimeout);_this.checkUsersStatusLoading=false;_this.checkUsersStatusTimeout=setTimeout(_this.checkUsersStatus,_this.checkUsersStatusTimeoutDelay);}});};this.core_format_form=function($element){$element.find(".input_mobile:not(.format_applied)").each(function(index,element){$(this).on("keydown",function(e){if(e.key=="Backspace"||e.key=="Delete")return;var k=Number(e.key);if(isNaN(k)){e.preventDefault();e.stopImmediatePropagation();e.stopPropagation();return false;}});$(this).addClass("format_applied");});$element.find(".autoClear,.minAge,.maxAge").each(function(index,element){$(this).on("focus",function(e){var cVal=$(this).val();$(this).attr("data-current-val",cVal);$(this).val("");});$(this).on("blur",function(e){if($(this).val()==""){$(this).val($(this).attr("data-current-val"));}});});$element.find(".inlineCharCounter").each(function(index,element){var inp=$(this).closest(".line").find(".input");if(inp.length==1){inp.addClass("hasCount");var maxlength=inp.attr('maxlength');var html="0 /"+maxlength;$(this).html(html);var nbField=$(this).find(".nb");function lCharCounts(){var v=inp.val();var nb=v.length;nbField.text(nb);}inp.on('blur change keyup keydown',lCharCounts);lCharCounts();}});$element.find("input,select,textarea").on('focus',function(e){var line=$(this).closest(".line");line.removeClass("error");line.find(".errorMessage").remove();});$element.find("input,select,textarea").on('blur',function(e){});if($("body").hasClass("desktop")){$(window).click(function(){$(".multipleSelectCustom").removeClass("opened");});$element.find("select.input:not(.customSelect_applied)").each(function(index,element){$(this).addClass("customSelect_applied");var _el=$(this);_el.data("timeout");_el.wrap("");var cont=_el.closest(".multipleSelectCustom");if($(this).hasClass("lang_selector")){cont.addClass("lang_selector");$(this).removeClass("lang_selector");}var html="";html+="
";html+="
";_el.find("option").each(function(index,element){var optionClass=$(this).attr("class");if(typeof optionClass!=='undefined'&&optionClass!==false){}else{optionClass="";}html+="
"+$(this).text()+"
";});html+="
";html+="
";setTimeout(function(){cont.append(html);function localChange(e){var displayValue="";var s=0;var nb=_el.find("option").length;var cl="currentDisplay input ";_el.find("option").each(function(index,element){var v=$(this).val();var ref=cont.find(".option[data-value='"+v+"']");if($(this).prop("selected")){ref.addClass("selected");cl+=$(this).attr("class");if(displayValue!="")displayValue+=", ";displayValue+=$(this).text();s++;}else{ref.removeClass("selected");}});if(s==0||s==nb)displayValue=$_DLANG.getLabel("everything");var currentDisplay=cont.find(".currentDisplay");currentDisplay.text(displayValue);currentDisplay.attr("class",cl);}function localShow(){if(_el.data("timeout"))clearTimeout(_el.data("timeout"));cont.addClass("opened");$(".multipleSelectCustom").not(cont).removeClass("opened");}cont.find("select").change(localChange);cont.find(".option").click(function(e){if(_el.data("timeout"))clearTimeout(_el.data("timeout"));var v=$(this).attr("data-value");var ref=_el.find("option[value='"+v+"']");if(ref.prop("selected")){}else{ref.prop("selected",true);}cont.removeClass("opened");cont.find("select").change();return false;});cont.find(".currentDisplay").click(function(e){if(_el.data("timeout"))clearTimeout(_el.data("timeout"));if(cont.hasClass("opened")){cont.removeClass("opened");}else{localShow();}e.stopPropagation();return false;});cont.mouseleave(function(e){_el.data("timeout",setTimeout(function(){cont.removeClass("opened");},500));});cont.mouseenter(function(e){if(_el.data("timeout"))clearTimeout(_el.data("timeout"));});localChange();},50);});}$element.find(".inputCheckbox:not(.inputCheckbox_applied)").each(function(index,element){var f=$(this).closest("form");var inputName;var dataName=$(this).attr("data-name");if(dataName){inputName=dataName;}else{inputName="inputCheckbox";}f.append("");var i=f.find("input[name='"+inputName+"']");$(this).click(function(e){var target=$(e.target);if($(this).hasClass('selected')){$(this).removeClass('selected');i.val(0);}else{$(this).addClass('selected');i.val(1);$(this).removeClass("error");$(this).closest(".line").removeClass("error");}if(target.prop("tagName")=="A"){}else{return false;}});if($(this).hasClass("selected")){i.val(1);}$(this).addClass('inputCheckbox_applied');});$element.find(".input[maxlength]:not(.maxlength_applied)").each(function(index,element){$(this).change(function(e){var m=$(this).attr("maxlength");var v=$(this).val();v2=v.substring(0,m);if(v2!=v)$(this).val(v);});$(this).keyup(function(e){var m=$(this).attr("maxlength");var v=$(this).val();v2=v.substring(0,m);if(v2!=v)$(this).val(v);});$(this).addClass('maxlength_applied');});$element.find(".inputRadio:not(.format_applied)").each(function(index,element){var _this=$(this);$(this).click(function(e){if($(this).hasClass("disabled")){if($(this).hasClass("needPremium")){_this.showPopin("premium_required","access=limit_blacklist");}return false;}var name=$(this).attr("data-name");var f=$(this).closest("form");f.find(".inputRadio[data-name='"+name+"']").removeClass("selected");$(this).addClass("selected");var v=$(this).attr("data-value");f.find("input[name='"+name+"']").val(v);f.find(".inputRadio[data-name='"+name+"']").trigger("change");});$(this).addClass("format_applied");});$element.find(".input.canShow:not(.canShow_applied)").each(function(index,element){var _this=$(this);$(this).wrap(' ').after($(" "));var wrapper=_this.closest(".showPasswordBtn_wrapper");var btnShow=wrapper.find('.showPasswordBtn');btnShow.click(function(){var t=_this.attr("type");if(t=="password"){_this.attr("type","text");}else{_this.attr("type","password");}});});$element.find(".input.deletable:not(.deletable_applied)").each(function(index,element){var _this=$(this);$(this).wrap(' ').after($(" "));var wrapper=_this.closest(".deletable_wrapper");function clearValue(){var dri=_this.attr("data-relative-inputs");if(dri){var driArr=dri.split(',');var di=0;var dnb=driArr.length;while(di");var suggestionCtn=$(this).siblings('.suggestions');var semiList=suggestionCtn.find("ul");function hideList(){semiList.html("");semiList.css("display","none");suggestionCtn.css("display","none");__this.removeClass("opened");if(!clicked&&dataNotFree==1){var ddValue=__this.attr("data-default-value");if(ddValue)__this.val(ddValue);var ddValues=__this.attr("data-default-values");if(ddValues){var values=ddValues.split('|');var values_nb=values.length;var values_i=0;while(values_i0){}}}}$(this).focus(function(e){_focus=true;clearTimeout(_blurTimeout);});$(this).blur(function(e){_focus=false;clearTimeout(_blurTimeout);_blurTimeout=setTimeout(hideList,1000);if(dataNotFree){var dri=__this.attr("data-relative-inputs");if(dri){var driArr=dri.split(',');var di=0;var dnb=driArr.length;while(di-1){liCLass+=" departement";}semiList.append(''+res.display+' ');var lastLi=$(semiList.children("li:last"));i++;}if(nb>0){suggestionCtn.css("display","block");}else{suggestionCtn.css("display","none");}$(semiList.children("li")).click(function(e){e.stopImmediatePropagation();e.stopPropagation();__this.val($(this).attr('data-val'));var values=$(this).attr('datas-values').split('|');var values_nb=values.length;var values_i=0;while(values_i4&&v.length>lastNoResults.length){var check=v.indexOf(lastNoResults);if(check==0){if(semAjax)semAjax.abort();semiList.html("");suggestionCtn.css("display","none");return;}}if(!_focus)return;clearTimeout(_blurTimeout);var dri=__this.attr("data-relative-inputs");if(dri){var driArr=dri.split(',');var di=0;var dnb=driArr.length;while(di0){cards.addClass("is_favorite");_this.showSystemMessage($_DLANG.getLabel('user_add_favorite'));cards.find(".ac_action.favorite").text($_DLANG.getLabel('favorite_remove'));}else{cards.removeClass("is_favorite");_this.showSystemMessage($_DLANG.getLabel('user_remove_favorite'));cards.find(".ac_action.favorite").text($_DLANG.getLabel('favorite_add'));}if(typeof $datas.results.nb_connected_favoris!=='undefined'){var nb_connected_favoris=$datas.results.nb_connected_favoris;if(nb_connected_favoris==0)nb_connected_favoris='';var nbLabel=$(".homeFavorisFilter .nb");if(nbLabel.length>0){nbLabel.text(nb_connected_favoris);$(".homeFavorisFilter").attr("data-nb",$datas.results.nb_favoris);}}if($("#homeFavorisMenu").length==1){if($(".showFavorisBtn").hasClass("favorites_active")){$_HOME.searchUsers();}}}else{_this.showPopin("max_favorite");}$datas=null;delete $datas;}else{}},error:function($datas){}});datas=null;delete datas;};this.loadJSfile=function($path,$callback){var scriptPath=$_SITE_ROOT+$path;var jsScript=document.createElement('script');jsScript.src=scriptPath;document.head.appendChild(jsScript);jsScript.addEventListener('load',function(){if(typeof $callback==="function")$callback();});};this.loadCSSfile=function($path){var link=document.createElement('link');link.rel='stylesheet';link.type='text/css';link.href=$_SITE_ROOT+$path;link.media='all';document.head.appendChild(link);};this.videoJSloaded;this.videoJSloading;this.loadVideojs=function($callback){_this.videoJSloaded=true;if(_this.videoJSloaded){if(typeof $callback==="function")$callback();return;}if(typeof $callback==="function"){$(document).bind('VIDEOJS_LOADED',$callback);}if(_this.videoJSloading)return false;_this.videoJSloading=true;_this.debugMessage("loadVideojs()");var link=document.createElement('link');link.rel='stylesheet';link.type='text/css';link.href=$_SITE_ROOT+"version5/_js/videojs/compile.css";link.media='all';document.head.appendChild(link);var scriptPath=$_SITE_ROOT+"version5/_js/videojs/compile2.js?v=3";var jsScript=document.createElement('script');jsScript.src=scriptPath;document.head.appendChild(jsScript);jsScript.addEventListener('load',function(){_this.videoJSloaded=true;$(document).trigger('VIDEOJS_LOADED');});};this.clickTarget;this.onClickStart=function(e){_this.clickTarget=$(e.target);};this.onClick=function(e){var target;if(_this.clickTarget){target=_this.clickTarget;}else{target=$(e.target);}_this.debugMessage("[onClick] target class = "+target.attr("class")+" | "+$(e.target).attr("class"),e);if($_CHAT){var check=target.closest("#discutionsList").length;if(check==0){$_CHAT.hideDiscutions();}};if(target.hasClass("core_message")&&target.hasClass("new_react")){var hDatas=target.attr("data-hDatas").split("|");var conversation_uid=hDatas[0];_this.showChatDiscution(conversation_uid);return false;};if(target.hasClass("core_message")&&target.hasClass("new_flash")){if(!_this.is_premium&&!_this.is_light_premium){_this.hideSystemMessage();_this.showPopin("premium_required","access=new_flash");return false;}var url=$("#menuMobile a[rel='notifications']").attr("href")+"/tab/flashs";location.href=url;return false;};if(target.hasClass("seo_bloc_closeBtn")){target.closest(".seo_bloc").remove();return false;}if(target.hasClass("censored")&&target.prop('tagName').toLowerCase()!="body"){var dstatus=1;if($("body").hasClass("discretMode")){$("body").removeClass("discretMode");dstatus=0;_this.showSystemMessage($_DLANG.getLabel("discret_mode_off"));if($("#discretModeCss").length==1)$("#discretModeCss").remove();}else{$("body").addClass("discretMode");_this.showSystemMessage($_DLANG.getLabel("discret_mode_on"));if($("#discretModeCss").length==0){var head=document.getElementsByTagName('head')[0];var link=document.createElement('link');link.id="discretModeCss";link.rel='stylesheet';link.type='text/css';link.href=$_SITE_ROOT+'version5/_css/censored.css?cache=v2'+new Date().getTime();link.media='all';head.appendChild(link);}};var datas={};datas.action='setDiscretMode';datas.dstatus=dstatus;$.ajax({url:$_SITE_ROOT+"actions.php",dataType:'json',data:datas,async:true,cache:false,type:'POST',success:function($datas){setTimeout(function(){document.location.reload()},1000);}});return false;};if(target.hasClass("showA2HS")){_this.showAddToHomeBtn(true);return false;};if(target.hasClass("dark_mode")){var dstatus=1;if($("body").hasClass("darkMode")){$("body").removeClass("darkMode");dstatus=0;_this.showSystemMessage($_DLANG.getLabel('dark_mode_off'));if(typeof $_CARTE!=='undefined')$_CARTE.map.setStyle($_CARTE.style);}else{$("body").addClass("darkMode");_this.showSystemMessage($_DLANG.getLabel('dark_mode_on'));if(typeof $_CARTE!=='undefined')$_CARTE.map.setStyle($_CARTE.style_dark);}if($("#darkModeCss").length==0){var head=document.getElementsByTagName('head')[0];var link=document.createElement('link');link.id="darkModeCss";link.rel='stylesheet';link.type='text/css';link.href=$_SITE_ROOT+'version5/_css/dark_mode.css?cache=v1'+new Date().getTime();link.media='all';head.appendChild(link);};_this.u_dark_mode=dstatus;var datas={};datas.action='setDarkMode';datas.dstatus=dstatus;$.ajax({url:$_SITE_ROOT+"actions.php",dataType:'json',data:datas,async:true,cache:false,type:'POST'});_this.closeMainMenu();return false;};if(target.hasClass("chatNotifsBtn")){if(!$_USER_UID){window.location.href=_this.inscriptionUrl;return false;}};if(target.hasClass("userName")){var cardH=target.closest(".overlayChatHeader");if(cardH.length==1){var user_uid=cardH.attr("data-user-uid");_this.showUserProfile(user_uid);return false;}};if(target.hasClass("dispoNowForm")){_this.switchDispoNOW();return false;};if(target.hasClass("um_avatar")){if(target.hasClass("no_photo")){var url=$("#user_menu a.user_profil_photos").attr("href");location.href=url;return false;};_this.showUserProfile($_USER_UID);return false;};if(target.hasClass("uc_expBtn")){var card=target.closest(".u_card");if(card.hasClass("uc_expanded")){card.removeClass("uc_expanded");}else{card.addClass("uc_expanded");if($_USER_UID){var user_uid=card.attr("data-user-uid");var datas={};datas.action='urv';datas.uid=user_uid;$.ajax({url:$_SITE_ROOT+"actions.php",dataType:'json',data:datas,type:'POST',success:function($datas){_this.checkAjaxReturn($datas);if($datas.results.complete==1){if($_USER_NODE)$_USER_NODE.sendNotificationsUpdated(user_uid,"visit",$datas.results);}else{}},error:function($datas){}});}}return false;};if((target.hasClass("mLink")&&target.hasClass("messages"))||(target.hasClass("mLink")&&target.hasClass("notifications"))){if(!$_USER_UID){window.location.href=_this.inscriptionUrl;return false;}};if(target.hasClass("user_profil_share")){var title=$("#user_menu .user_profil_share").attr("data-title");var text=$("#user_menu .user_profil_share").attr("data-text");if(navigator.share===undefined){_this.showSystemMessage('fonctionnalité incompatible avec votre navigateur');}else{var datas={};datas.action='get_share_link';$.ajax({url:$_SITE_ROOT+"actions.php",dataType:'json',data:datas,async:true,cache:false,type:'POST',success:function($datas){var url=$datas.results.link;navigator.share({title:title,url:url,text:text}).then(function(){var datas={};datas.action="statsSharedLink";$.ajax({url:$_SITE_ROOT+"actions.php",dataType:'json',timeout:10000,data:datas,type:'POST'});}).catch(console.error);}});}return false;};if(target.hasClass("um_avatar")){_this.showUserGalerie($_USER_UID);return false;};if(target.hasClass("openContactPopin")){_this.showPopin("contact");return false;};if(target.hasClass("openModeratorChat")){if($_USER_UID){_this.showChatDiscution(null,$_MODERATOR_UID);}else{_this.showPopin("contact");}return false;};if(target.hasClass("set_invisible")){if(!_this.is_premium){_this.showPopin("premium_required","access=invisible");return false;}$_CORE.showPopin("set_invisible");$(".tbSubMenu").removeClass("opened");$("#menuMobile").removeClass("subMenuOpened");_this.closeMainMenu();return false;};if(target.hasClass("set_visible")){$_CORE.showPopin("set_visible");$(".tbSubMenu").removeClass("opened");$("#menuMobile").removeClass("subMenuOpened");_this.closeMainMenu();return false;};if(target.attr("id")=='menuBurgerBtn'){_this.switchMainMenu();return false;};if(target.attr("id")=='popinCtn'||target.attr("id")=='popin_bg'){if(_this.popin_unclosable)return false;_this.hidePopin();return false;};if($("body").hasClass("mainMenuOpened")){if(target.closest("#menuMobile").length==0)_this.closeMainMenu();};if(target.hasClass("overlayCloseBtn")){if($("body").hasClass("share_profile")||$("body").hasClass("user_profil")){window.location.href=$_SITE_ROOT;return false;}_this.hideOverlay();return false;};if(target.hasClass('user_profil_view')){_this.showUserProfile($_USER_UID);return false;}if(target.hasClass("um_sm_title")){if(target.closest("#menuMobile").length==1){if($("#menuMobile").hasClass("subMenuOpened")){$("#menuMobile").removeClass("subMenuOpened");}else{$("#menuMobile").addClass("subMenuOpened");}return false;}}if(target.hasClass("discutionsFilterButton")){if($("#discutionsList .discutionsTabs").hasClass("opened")){$("#discutionsList .discutionsTabs").removeClass("opened");}else{_this.checkSize();$("#discutionsList .discutionsTabs").addClass("opened");}}if(target.hasClass("mCheckBox")){if(target.hasClass("selected")){target.removeClass("selected");}else{target.addClass("selected");}target.trigger("change");}if(target.hasClass("discutionsTab")){$("#discutionsList .discutionsTabs .discutionsTab").removeClass("selected");target.addClass("selected");$_CHAT.loadDiscutions(false);$("#discutionsList .discutionsTabs").removeClass("opened");return false;}if(target.hasClass("uc_more_infos")){var card=target.closest(".u_card");var user_uid=card.attr("data-user-uid");_this.showUserProfile(user_uid);return false;}if(target.hasClass("uc_annonce")||target.hasClass("uc_mi_annonce")){var card=target.closest(".u_card");var user_uid=card.attr("data-user-uid");_this.showPopin("annonce","user_uid="+user_uid);return false;}if(target.hasClass("di_card")){var user_uid=target.attr("data-user-uid");var conversation_uid=target.attr("data-uid");_this.convFromDiscList=true;_this.convFromDiscUID=conversation_uid;_this.showChatDiscution(conversation_uid,user_uid);if($_CHAT)$_CHAT.hideDiscutions();return false;};if(target.hasClass("dic_avatar")){var card=target.closest(".di_card");var user_uid=card.attr("data-user-uid");_this.showUserProfile(user_uid);return false;};if(target.hasClass("dic_archive")){var card=target.closest(".di_card");var conversation_uid=card.attr("data-uid");card.slideUp(300);var datas={};datas.action='conversation_archive';datas.uid=conversation_uid;$.ajax({url:$_SITE_ROOT+"actions.php",dataType:'json',data:datas,type:'POST',success:function($datas){_this.checkAjaxReturn($datas);if($datas.results.complete==1){if($_DCHAT){$_DCHAT.closeWindowbyUid(conversation_uid);}u_updateStatus("core conversation_action");}else if($datas.results.error==1){_this.showSystemMessage("ERREUR : "+$datas.results.error_messages);}else{_this.showSystemMessage("Une erreur inconnue est survenue [#002]");}},error:function($datas){_this.showSystemMessage("Une erreur inconnue est survenue [#001]");}});return false;};if(target.hasClass("commentsPremiumMask")){_this.showPopin("premium_required","access=comments");return false;};if(target.hasClass("och_avatar")){var card=target.closest(".overlayChatHeader");var user_uid=card.attr("data-user-uid");_this.showUserGalerie(user_uid);return false;};if(target.hasClass("overlayChatHeader")){var user_uid=target.attr("data-user-uid");_this.showUserProfile(user_uid);return false;}if(target.hasClass("ecm_avatar")){var user_uid=target.attr("data-uid");_this.showUserProfile(user_uid);return false;}if(target.hasClass("uc_extsPhoto")){var card=target.closest(".u_card");var user_uid=card.attr("data-user-uid");var photo_uid=target.attr("data-uid");_this.showUserGalerie(user_uid,"photo_uid="+photo_uid);return false;}if(target.hasClass("uv_card")){var videoUID=target.attr("data-uid");var vow=false;if(target.hasClass("vow"))vow=true;_this.showUserVideoOverlay(videoUID,vow);return false;}if(target.hasClass("pub")){var link=target.attr("data-link");if(target.hasClass("premiumPub")){document.location.href=link;}else{window.open(link);}return false;}if(target.hasClass("delete_comment_card")){var cc=target.closest(".comment_card");var cc_id=cc.attr("data-id");var type=cc.attr("data-type");var card_user_uid=0;var card=target.closest(".u_card");if(card.length==1){card_user_uid=card.attr("data-uid");}if(type=='user_comment'){_this.showPopin("confirm_remove_comment","id="+cc_id+"&card_user_uid="+card_user_uid);}if(type=='video_comment'){var video_uid=cc.attr("data-video_uid");_this.showPopin("confirm_remove_video_comment","id="+cc_id+"&video_uid="+video_uid);}return false;}if(target.hasClass("myAnnonceBtn")||target.hasClass("myAnnonceBtn2")){_this.showPopin("addAnnonce");return false;}if(target.hasClass("ac_user")){var card=target.closest(".a_card");if(card.length==0){card=target.closest(".notify_card");if(card.hasClass("blacklist"))return false;}if(card.length==0){card=target.closest(".user_video_card");}if(card.length==0){card=target.closest(".exhib_user_full_card");}if(card.length==0){card=target.closest(".uv_card");}var card_uid=card.attr("data-uid");var user_uid=card.attr("data-user-uid");_this.showUserProfile(user_uid);return false;}if(target.hasClass("map_card")){var user_uid=target.attr("data-user-uid");_this.showUserProfile(user_uid);return false;}if(target.hasClass("last_connection_date")){if(!_this.is_premium){_this.showPopin("premium_required","access=last_connection_date");return false;}}if(target.hasClass("ac_action")){var card=target.closest(".a_card");if(card.length==0){card=target.closest(".uv_card");}if(card.length==0){card=target.closest(".notify_card");if(card.hasClass("blacklist"))return false;}if(card.length==0){card=target.closest(".map_card");}if(card.length==0){card=target.closest(".exhib_user_full_card");}var card_uid=card.attr("data-uid");var user_uid=card.attr("data-user-uid");if(target.hasClass("ac_avatar")){if(card.hasClass("no_photo")){_this.showUserProfile(user_uid);return false;}_this.showUserGalerie(user_uid,"annonce_uid="+card_uid);return false;}if(target.hasClass("chat")){_this.showChatDiscution(null,user_uid);return false;}if(target.hasClass("edit")){_this.showPopin("addAnnonce");return false;}if(target.hasClass("delete")){_this.showPopin("confirm_remove_annonce");return false;}if(target.hasClass("more")){var scrollTop=$(document).scrollTop();var pos=target.offset();var currentY=pos.top-scrollTop;var h=target.find(".ac_more_menu").innerHeight()+50;if(currentY+h>_this._window_height){target.addClass("fromBottom");}else{target.removeClass("fromBottom");}if(target.hasClass("opened")){target.removeClass("opened");}else{var fav=target.find(".ac_more_menu .favorite");var card=target.closest(".uv_card");if(card.length==0){card=target.closest(".a_card");}if(card.length==0){card=target.closest(".notify_card");}if(card.length==0){card=target.closest(".map_card");}if(card.hasClass("is_favorite")){fav.text($_DLANG.getLabel('favorite_remove'));}else{fav.text($_DLANG.getLabel('favorite_add'));}target.addClass("opened");}$(".ac_action.more.opened").not(target).removeClass("opened");return false;}if(target.hasClass("favorite")){_this.switchFavorite(user_uid);$(".ac_action.more.opened").removeClass("opened");return false;}if(target.hasClass("map")){if(_this.is_premium||card.hasClass("self")||_this.is_light_premium){var url=$("#menuMobile a[rel='map']").attr("href")+"?showUser="+user_uid;document.location.href=url;}else{_this.showPopin("premium_required","access=map");}$(".ac_action.more.opened").removeClass("opened");return false;}if(target.hasClass("flash")){_this.showPopin("confirm_flash","uid="+user_uid);$(".ac_action.more.opened").removeClass("opened");return false;}if(target.hasClass("alert")){var checkVideo=target.closest(".uv_card.full");if(checkVideo.length==1){var video_uid=checkVideo.attr("data-uid");_this.showPopin("confirm_alert","uid="+user_uid+"&video_uid="+video_uid);}else{_this.showPopin("confirm_alert","uid="+user_uid);}$(".ac_action.more.opened").removeClass("opened");return false;}if(target.hasClass("blacklist")){_this.showPopin("confirm_block","uid="+user_uid);$(".ac_action.more.opened").removeClass("opened");return false;}if(target.hasClass("profil")){_this.showUserProfile(user_uid);$(".ac_action.more.opened").removeClass("opened");return false;}}if(target.hasClass("uc_action")){var card=target.closest(".u_card");var user_uid=card.attr("data-uid");if(target.hasClass("uc_g_click")){if(card.hasClass("no_photo")){_this.showUserProfile(user_uid);return false;}if($("body").hasClass("display_mosaic")&&card.closest(".list").length==1){_this.showUserProfile(user_uid);return false;}_this.showUserGalerie(user_uid);return false;}if(target.hasClass("memo")||target.hasClass("uc_memo")){if(card.hasClass("self")){return false;}_this.showPopin("memo","user_uid="+user_uid);return false;}if(target.hasClass("chat")){if(card.hasClass("self")){_this.showSystemMessage($_DLANG.getLabel("self_chat_forbidden"));return false;}_this.showChatDiscution(null,user_uid);return false;}if(target.hasClass("favorite")){if(card.hasClass("self")){_this.showSystemMessage($_DLANG.getLabel("self_favorite_forbidden"));return false;}_this.switchFavorite(user_uid);return false;}if(target.hasClass("map")){if(_this.is_premium||card.hasClass("self")||_this.is_light_premium){var url=$("#menuMobile a[rel='map']").attr("href")+"?showUser="+user_uid;document.location.href=url;}else{_this.showPopin("premium_required","access=map");}return false;}if(target.hasClass("flash")){if(card.hasClass("self")){_this.showSystemMessage($_DLANG.getLabel("self_flash_forbidden"));return false;}_this.showPopin("confirm_flash","uid="+user_uid);return false;}if(target.hasClass("more")){if(target.hasClass("opened")){target.removeClass("opened");}else{target.addClass("opened");}$(".uc_action.more.opened").not(target).removeClass("opened");return false;}if(target.hasClass("alert")){var checkVideo=target.closest(".uv_card.full");if(checkVideo.length==1){var video_uid=checkVideo.attr("data-uid");_this.showPopin("confirm_alert","uid="+user_uid+"&video_uid="+video_uid);}else{_this.showPopin("confirm_alert","uid="+user_uid);}$(".uc_action.more.opened").removeClass("opened");return false;}if(target.hasClass("blacklist")){_this.showPopin("confirm_block","uid="+user_uid);$(".uc_action.more.opened").removeClass("opened");return false;}if(target.hasClass("exhib")){var livesURL=$("#menuMobile .mainLinks a[rel='exhib']").attr("href");var newURL=livesURL+"?mode=view&uuid="+user_uid;window.location.href=newURL;return false;}if(target.hasClass("replay")){var replay_uid=target.attr("data-replay_uid");$_CORE.showPopin("live_replay","uid="+replay_uid+"&access=limit_exhib_list");return false;};}if(target.hasClass("uc_comments_title")){var card=target.closest(".u_card");_this.loadCommentsForm(card);return false;};if(target.hasClass("uc_comments_more")){if(target.hasClass("loading"))return false;var card=target.closest(".u_card");if(!card.hasClass("true_premium")&&!_this.is_premium&&!_this.is_light_premium){_this.showPopin("premium_required","access=comments");return false;}if(_this._window_width>=630){var user_uid=card.attr("data-user-uid");_this.showUserProfile(user_uid);return false;}card.addClass("comments_expands");_this.loadMoreComments(card);return false;}if(target.hasClass("uc_comments_input")){return false;}var comment_card=target.closest(".comment_card");if(comment_card.length==1){var user_uid=comment_card.attr("data-user-uid");_this.showUserProfile(user_uid);return false;}if(target.hasClass("u_card")){var user_uid=target.attr("data-user-uid");_this.showUserProfile(user_uid);return false;}if(target.hasClass("uc_loc")){var card=target.closest(".u_card");var user_uid=0;if(card.length==1){var user_uid=card.attr("data-uid");}else{var card=target.closest(".uv_card");if(card.length==1){var user_uid=card.attr("data-user-uid");}}if(user_uid!=0){if(_this.is_premium||card.hasClass("self")||_this.is_light_premium){var url=$("#menuMobile a[rel='map']").attr("href")+"?showUser="+user_uid;document.location.href=url;}else{_this.showPopin("premium_required","access=map");}return false;}}if(target.hasClass("uc_loc")||target.hasClass("uc_name")||target.hasClass("uc_prefs")||target.hasClass("uc_presentation")||target.hasClass("uc_desc")){var card=target.closest(".u_card");if(card.length==1){var user_uid=card.attr("data-uid");_this.showUserProfile(user_uid);return false;}var card=target.closest(".uv_card");if(card.length==1){var user_uid=card.attr("data-user-uid");_this.showUserProfile(user_uid);return false;}}if(target.hasClass("connexion")){$(".tbSubMenu").removeClass("opened");$("#menuMobile").removeClass("subMenuOpened");_this.closeMainMenu();_this.showPopin('connection_required');return false;}$(".uc_action.more.opened").removeClass("opened");$(".ac_action.more.opened").removeClass("opened");$("#menuMobile").removeClass("subMenuOpened");if(target.closest(".mainLinks").length==1){target.closest(".mainLinks").find(".selected").removeClass("selected");target.addClass("selected");}};this.autosizeTextarea=function($textarea){$textarea.css("overflow","hidden");var minHeight=$textarea.innerHeight()+1;$textarea.css("min-height",minHeight+"px");$textarea.on("keyup change focus blur",function(){$textarea.css("height",minHeight+"px");newH=$textarea[0].scrollHeight;$textarea.css("height",newH+"px");});$textarea.change();};this.sendCommentsForm=function($form){var card=$form.closest('.u_card');var user_uid=card.attr("data-uid");var datas={};datas.action='addComment';datas.uid=user_uid;datas.message=$form.find(".uc_comments_input").val();if(datas.message==""){_this.showSystemMessage("Erreur : merci de renseigner un message !");return false;}$.ajax({url:$_SITE_ROOT+"actions.php",timeout:10000,dataType:'json',data:datas,type:'POST',success:function($datas){_this.checkAjaxReturn($datas);if($datas.results.complete==1){_this.showSystemMessage($_DLANG.getLabel("comment_recorded"));if($_USER_NODE)$_USER_NODE.sendNotificationsUpdated(user_uid,"comment_sent",$datas.results);var card_html=$datas.results.card_html;card.find(".comment_card[data-user-uid='"+$_USER_UID+"']").remove();card.find(".uc_comments_list").prepend(card_html);card.find(".uc_comments_form_ctn").html("");card.find(".uc_comments_title").html($datas.results.comments_label+" ");}else if($datas.results.error==1){_this.showSystemMessage("ERREUR : "+$datas.results.error_messages);}else{_this.showSystemMessage("Une erreur inconnue est survenue [#002]");}},error:function($datas){_this.showSystemMessage("Une erreur inconnue est survenue [#003]");}});};this.loadCommentsForm=function($u_card,$dontShowAlert){if(!$_USER_UID){window.location.href=_this.inscriptionUrl;return false;}var uc_comments_form_ctn=$u_card.find(".uc_comments_form_ctn");var user_uid=$u_card.attr("data-uid");var datas={};datas.action='ucard_loadCommentsForm';datas.user_uid=user_uid;$.ajax({url:$_SITE_ROOT+"actions.php",timeout:10000,dataType:'json',data:datas,type:'POST',success:function($datas){if($datas.results.complete==1){if($datas.results.can_comment==1){$u_card.find(".uc_comments_title").addClass("opened");uc_comments_form_ctn.html($datas.results.form_html);var ta=uc_comments_form_ctn.find("textarea");if(ta.length==1){ta.on("focus",function(){$u_card.addClass("commentInputFocus");});ta.on("blur",function(){$u_card.removeClass("commentInputFocus");});ta.on("keyup change focus",function(){var val=$(this).val();if(val==""){$(this).closest(".uc_comments_form").removeClass("filled");}else{$(this).closest(".uc_comments_form").addClass("filled");}});ta.change();_this.autosizeTextarea(ta);var uc_comments_form=uc_comments_form_ctn.find(".uc_comments_form");var sendCommentBtn=uc_comments_form_ctn.find(".sendCommentBtn");uc_comments_form.on("submit",function(){_this.sendCommentsForm($(this));return false;});sendCommentBtn.on("click",function(){var f=$(this).closest(".uc_comments_form");f.submit();return false;});}}else{if($dontShowAlert){}else{$_CORE.showPopin('cant_comment','uid='+user_uid);}}}else{}$datas=null;delete $datas;},error:function($datas){}});datas=null;delete datas;};this.loadMoreComments=function($u_card){var uc_comments=$u_card.find(".uc_comments");var uc_comments_list=$u_card.find(".uc_comments_list");var uc_comments_more=$u_card.find(".uc_comments_more");uc_comments_more.addClass("loading");var user_uid=$u_card.attr("data-uid");var startIndex=$u_card.find(".comment_card").length;var datas={};datas.action='ucard_loadMoreComments';datas.user_uid=user_uid;datas.startIndex=startIndex;$.ajax({url:$_SITE_ROOT+"actions.php",timeout:10000,dataType:'json',data:datas,type:'POST',success:function($datas){if($datas.results.complete==1){if($datas.results.has_more==0)uc_comments.addClass("no_more");uc_comments_list.append($datas.results.cards_html);}else{}uc_comments_more.removeClass("loading");},error:function($datas){uc_comments_more.removeClass("loading");}});};this.showChatDiscution=function($conversation_uid,$user_uid,$is_moderator){if(!$conversation_uid&&typeof $user_uid==='undefined'){this.showSystemMessage('Erreur : UID inconnus [showChatDiscution]');return false;};if($_MODERATORS_UIDS.includes($user_uid)){$is_moderator=true;};if(!$_USER_UID){window.location.href=_this.inscriptionUrl;return false;};if(_NEED_AVATAR==1&&!$is_moderator){_this.showPopin("need_avatar");return false;};if($_CHAT){$_CHAT.showDiscution($conversation_uid,$user_uid);}else{};};this.popin_visible=false;this.popin_unclosable=false;this.popin_fullscreen=false;this.popin_default_overflow=$("body").css("overflow");this.popin_hasNoScroll;this.popin_previous_scroll;this.popin_fromAddress=false;this.popin_close_url=null;this.popin_ajax;this.popinScript_class;this.popinScript;this.popin_id;this.popin_checkLinks=function(){$("a[rel='popin']:not(.popinLinkActivated)").each(function(index,element){$(this).addClass("popinLinkActivated");$(this).click(function(e){var tmp=$(this).attr("href").split("?");var id=tmp[0].split("#").join("");_this.showPopin(id,tmp[1]);return false;});})};this.showPopin=function($id,$params,$unclosable,$fromAddress,$siteRoot){if(typeof $id==='undefined'||$id==null||$id==''||!$id){this.showSystemMessage('Erreur : ID inconnu [showPopin]');return false;}_this.debugMessage("showPopin() "+"id="+$id+",params="+$params+",unclosable="+$unclosable+",fromAddress="+$fromAddress);$siteRoot=(typeof $siteRoot!=='undefined')?$siteRoot:$_SITE_ROOT;if(typeof $params!=='undefined'&&$params!=""&&$params!==null){if($params.charAt(0)==='?')$params=$params.slice(1);}var popinUrl=$siteRoot+"version5/popins/"+$id+".php?"+$params;if(popinUrl==_this.popin_url)return;_this.popin_url=popinUrl;_this.popin_id=$id;_this.popin_unclosable=$unclosable;if($("#popin").length==0){$("body").append('');}$("body").addClass("popinActive");_this.popin_resize();window.location.hash="popin";_this.disableScroll("popin");if(_this.popin_ajax)_this.popin_ajax.abort();_this.popin_visible=true;$('#popin_bg').css("display","block");$('#popinCtn').css("display","block");$('#popin_loader').css("display","block");$('#popin').html("");$("#popin").removeClass();$("#popin").addClass($id);$('#popin').css("opacity",0).css("display","block");if(_this.popin_unclosable)$("#popin").addClass("unclosable");_this.popin_ajax=$.ajax({url:popinUrl,type:"GET",dataType:"html",success:function(data){_this.checkAjaxReturn(data);$('#popin_loader').css("display","none");$("#popin").html(""+data+"
");if(_this.popin_unclosable!=true){$("#popin").prepend("");$("#popin_btn_close").click(_this.hidePopin);}_this.core_format_form($("#popin"));_this.popin_resize();setTimeout(_this.popin_resize,500);setTimeout(_this.popin_resize,1000);setTimeout(function(){_this.popin_resize();$('#popin').css("opacity",1);},100);data=null;delete data;},error:function(xhr,status){_this.debugMessage("[POPIN ERROR]",xhr);}});datas=null;delete datas;};this.popinSetFullScreen=function(){};this.hidePopin=function(){_this.debugMessage("hidePopin()");if($("#popin").length==0)return false;if(!_this.popin_visible)return;if(_this.overlayID&&$("body").hasClass("overlayActive")){window.location.hash="overlay";}else{window.location.hash="";}$("body").removeClass("popinActive");if(_this.popin_ajax)_this.popin_ajax.abort();$('#popin_bg,#popin,#popin_loader,#popinCtn').css("display","none");$("#popin").removeClass();_this.popin_visible=false;_this.popin_url=null;_this.popin_id=null;_this.enableScroll("popin");$(document).trigger('POPIN_UNLOAD');if(_this.popinScript){for(var prop in _this.popinScript){var _type=typeof(_this.popinScript[prop]);switch(_type){case"function":case"string":_this.popinScript[prop]=undefined;break;default:clearInterval(_this.popinScript[prop]);$(_this.popinScript[prop]).unbind();_this.popinScript[prop]=undefined;break;}}_this.popinScript_class=undefined;_this.popinScript=undefined;}$("#popin").html('');};this.debugMessage=function($message,$more){if(!_this.debugMode)return;var d=new Date,dformat=[d.getMonth()+1,d.getDate(),d.getFullYear()].join('/')+' '+[d.getHours(),d.getMinutes(),d.getSeconds()].join(':');console.log("[DEBUG "+dformat+"] "+$message,$more);var debuggor=$("#debuggorMessages");if(debuggor.length==0){$("body").append("");debuggor=$("#debuggorMessages");$("#debuggorClose").click(function(){$("#debuggor").addClass("invisible");});}debuggor.prepend(""+$message+"
");};this.overlay_ajax;this.overlay_timeout1;this.overlay_hash;this.overlayScript_class;this.overlayScript;this.overlayID;this.overlayParams;this.previousOverlayID;this.previousOverlayParams;this.convFromDiscList;this.convFromDiscUID;this.refreshOverlay=function(){_this.debugMessage("[CORE] refreshOverlay()");if(!$("body").hasClass("overlayActive"))return;var currentID=_this.overlayID;var currentParams=_this.overlayParams;_this.hideOverlay("refreshOverlay");_this.showOverlay(currentID,currentParams);};this.showOverlay=function($id,$params){if($id==_this.overlayID&&$params==_this.overlayParams&&$("body").hasClass("overlayActive")){return;}if(_this.overlayID&&$("body").hasClass("overlayActive")){_this.previousOverlayID=_this.overlayID;_this.previousOverlayParams=_this.overlayParams;$("body").removeClass("overlay_"+_this.previousOverlayID);}$(document).trigger('OVERLAY_UNLOAD');if(_this.overlayScript){for(var prop in _this.overlayScript){var _type=typeof(_this.overlayScript[prop]);switch(_type){case"function":case"string":_this.overlayScript[prop]=undefined;break;default:clearInterval(_this.overlayScript[prop]);$(_this.overlayScript[prop]).unbind();_this.overlayScript[prop]=undefined;break;}}_this.overlayScript_class=undefined;_this.overlayScript=undefined;}$("#overlay").html("");$("#overlay").scrollTop(0);window.location.hash="overlay";_this.debugMessage("[CORE] showOverlay() id="+$id+" / $params="+$params);_this.overlayID=$id;_this.overlayParams=$params;var hash=$id+"_"+$params;if(_this.overlay_hash==hash)return false;if($_CHAT)$_CHAT.hideDiscutions();if($_CHAT&&!$_DCHAT)$_CHAT.closeConversations();_this.overlay_hash=hash;_this.disableScroll("overlay");$("#header .overlayTitle").html("");$("#overlay").html("");$("body").addClass("overlayActive");$("body").addClass("overlay_"+_this.overlayID);_this.checkSize();var overlayUrl=$_SITE_ROOT+"version5/"+$id+".php?overlay=1&"+$params+"&v=2";if(_this.overlay_timeout1)clearTimeout(_this.overlay_timeout1);if(_this.overlay_ajax)_this.overlay_ajax.abort();_this.overlay_ajax=$.ajax({url:overlayUrl,type:"GET",dataType:"html",success:function($data){_this.checkAjaxReturn($data);$("#overlay").html(""+$data+"
");_this.core_format_form($("#overlay"));var title=$("#overlay").find(".overlay_title");if(title.length==1){$("#header .overlayTitle").html(title.html());}else{$("#header .overlayTitle").html("");}_this.checkSize();_this.overlay_timeout1=setTimeout(_this.checkSize,1000);if($id=="chat_conversation"){if($_CHAT.chat_reply_message!=""){setTimeout(function(){$(".chat_conversation_input").html($_CHAT.chat_reply_message);if($_CHAT.activatedDiscution)$_CHAT.activatedDiscution.checkPlaceHolder();},100);};};$data=null;delete $data;},error:function(xhr,status){_this.debugMessage("[OVERLAY ERROR]",xhr);}});};this.hideOverlay=function($origine){if(!$("body").hasClass("overlayActive"))return false;_this.debugMessage("[CORE] hideOverlay() - "+$origine);if(_this.overlay_ajax)_this.overlay_ajax.abort();$("body").removeClass("overlayActive");$("body").removeClass("overlay_"+_this.overlayID);$("#header .overlayTitle").html("");_this.overlay_hash=null;window.location.hash="";if($_CHAT&&!$_DCHAT)$_CHAT.closeConversations();$(document).trigger('OVERLAY_UNLOAD');if(_this.overlayScript){for(var prop in _this.overlayScript){var _type=typeof(_this.overlayScript[prop]);switch(_type){case"function":case"string":_this.overlayScript[prop]=undefined;break;default:clearInterval(_this.overlayScript[prop]);$(_this.overlayScript[prop]).unbind();_this.overlayScript[prop]=undefined;break;}}_this.overlayScript_class=undefined;_this.overlayScript=undefined;}$("#overlay").html("");if((_this.overlayID=='chat_conversation'||_this.overlayID=='user_profil')&&_this.previousOverlayID){_this.showOverlay(_this.previousOverlayID,_this.previousOverlayParams);}else{_this.enableScroll("hideOverlay");if($_CHAT&&!$_DCHAT&&_this.convFromDiscList){_this.convFromDiscList=false;}}_this.previousOverlayID=null;_this.previousOverlayParams=null;_this.checkSize();};this.showUserGalerie=function($uid,$params){_this.closeMainMenu();if(typeof $uid==='undefined'||$uid==null||$uid==''||!$uid){this.showSystemMessage('Erreur : UID inconnu [showUserGalerie]');return false;}if(!$_USER_UID){window.location.href=_this.inscriptionUrl;return false;}_this.showPopin("user_galerie","uid="+$uid+"&"+$params);};this.showUserProfile=function($uid){if($uid=="low_results_btn"){if($('body').hasClass('index'))$_CORE.showPopin('usersSearchFilter');return false;}if(typeof $_EXHIB!=='undefined'&&_this._window_width>=1300){$_EXHIB.videoZoomOut();}if(typeof $uid==='undefined'||$uid==null||$uid==''||!$uid){this.showSystemMessage('Erreur : UID inconnu [showUserProfile]');return false;}if(!$_USER_UID){window.location.href=_this.inscriptionUrl;return false;}if($_CHAT)$_CHAT.hideDiscutions();$(".u_card[data-uid='"+$uid+"']").addClass("visited");_this.showOverlay("user_profil","uid="+$uid);_this.closeMainMenu();};this.showUserVideoOverlay=function($videoUID,$vow){if(!$_USER_UID){_this.showPopin("connection_required");return false;}if(!_this.is_premium&&$vow!=true&&!_this.is_light_premium){_this.showPopin("premium_required","access=video");return false;}_this.loadVideojs(function(){_this.showOverlay("popins/user_video","uid="+$videoUID);});};this.days=[];this.days2=[];this.months=[];this.getDayLabel=function($date){var now=new Date();var Difference_In_Time=now.getTime()-$date.getTime();var Difference_In_Days=Math.floor(Difference_In_Time/(1000*3600*24));var label="";if(Difference_In_Days<7){if($date.getDate()==now.getDate()&&$date.getMonth()==now.getMonth()&&$date.getFullYear()==now.getFullYear()){label=_this.days2[0];}else{var yesterday=new Date();yesterday.setDate(yesterday.getDate()-1);if($date.getDate()==yesterday.getDate()&&$date.getMonth()==yesterday.getMonth()&&$date.getFullYear()==yesterday.getFullYear()){label=_this.days2[1];}else{var dayNum=$date.getDay()-1;if(dayNum<=-1||dayNum>=7)dayNum=6;label=_this.days[dayNum];}}}else{var d=$date.getDate()+" "+_this.months[$date.getMonth()].toLowerCase();if(now.getFullYear()!=$date.getFullYear())d+=" "+$date.getFullYear();var dayNum=$date.getDay()-1;if(dayNum<=-1||dayNum>=7)dayNum=6;var dayLabel=_this.days[dayNum];if(dayLabel===undefined){label=d;}else{label=dayLabel+" "+d;}}return label;};this.initLabelTimeout;this.initDatesLabels=function($dates_labels){if(_this.initLabelTimeout)clearTimeout(_this.initLabelTimeout);if(!$dates_labels||$dates_labels=="")return;if($dates_labels.indexOf("error")>-1){_this.initLabelTimeout=setTimeout(function(){$_DLANG.getLabel("dates_labels",_this.initDatesLabels);},5000);}var tmp=$dates_labels.split("|");if(tmp.length<3){_this.initLabelTimeout=setTimeout(function(){$_DLANG.getLabel("dates_labels",_this.initDatesLabels);},5000);return;}_this.days=tmp[0].split(",");_this.months=tmp[1].split(",");_this.days2=tmp[2].split(",");};this.menuAvatarUploader;this.menuAvatarFile;this.menuAvatarInitUploader=function(){if(_this.menuAvatarUploader)return true;if(!$('.um_avatar').hasClass("no_photo"))return true;var chunk_size='1mb';var multipart=true;var resize={preserve_headers:true,width:2000,height:2000,quality:90,crop:false};if(_this.android){resize={preserve_headers:false,width:2000,height:2000,quality:90,crop:false}};_this.menuAvatarUploader=new plupload.Uploader({browse_button:'menu_avatar_uploader',runtimes:'html5,html4',unique_names:true,multipart:multipart,multi_selection:false,chunk_size:chunk_size,retry_interval:5000,max_retries:100,max_file_size:'50mb',filters:[{title:"Image",extensions:_this.images_ext}],url:$_SITE_ROOT+'_js/plupload/upload.php'});_this.menuAvatarUploader.bind('Error',function(up,err){_this.debugMessage("menuAvatarUploader Error");_this.showSystemMessage("ERREUR ["+err.code+"] : "+err.message);});_this.menuAvatarUploader.bind('FilesAdded',function(up,files){_this.debugMessage("menuAvatarUploader FilesAdded");_this.menuAvatarFile=files[files.length-1];_this.showPopin("photos_manager_add","origin=menu");});_this.menuAvatarUploader.init();};this.menuAddAvatar=function(e){_this.menuAvatarInitUploader();var f=e.target.files[0];setTimeout(function(){_this.menuAvatarUploader.addFile(f);},100);};this.uc_swipe_absoluteClick=function(e,$originalE){_this.debugMessage("uc_swipe_absoluteClick()");e.stopPropagation();e.stopImmediatePropagation();e.preventDefault();var originalTarget=$($originalE.target);if(originalTarget.hasClass("uc_sg_dot")){var forcedIndex=originalTarget.index();_this.uc_swipe_swipeEnd(e,forcedIndex);return false;}var uc_swipe_galery=$(e.target);var uc_sg_photos=uc_swipe_galery.find(".uc_sg_photos");var u_card=uc_swipe_galery.closest(".u_card");var user_uid=u_card.attr("data-uid");var currentIndex=Number(uc_sg_photos.attr("data-index"));if(currentIndex==0){_this.showUserGalerie(user_uid);return;}if($("body").hasClass("galery_forbidden")&&!u_card.hasClass("is_premium")){var url=$("#menuMobile #user_menu a.premium_form").attr("href");if(typeof url!=='undefined'){var tmp=url.split("?");url=tmp[0]+"?origin=user_galerie_carroussel";location.href=url;return;}else{url="/inscription-premium?origin=user_galerie_carroussel";}location.href=url;return;}var photo_uid=uc_sg_photos.find(".uc_sg_photo:eq("+currentIndex+")").attr("data-uid");_this.showUserGalerie(user_uid,"photo_uid="+photo_uid);};this.uc_swipe_preventEvent=function(e){e.stopPropagation();e.stopImmediatePropagation();e.preventDefault();};this.uc_swipe_swipeEnd=function(e,forcedIndex){e.stopPropagation();e.stopImmediatePropagation();e.preventDefault();var uc_swipe_galery=$(e.target);var uc_sg_photos=uc_swipe_galery.find(".uc_sg_photos");var uc_sg_dotsCtn=uc_swipe_galery.find(".uc_sg_dotsCtn");var u_card=uc_swipe_galery.closest(".u_card");var user_uid=u_card.attr("data-uid");var currentIndex=Number(uc_sg_photos.attr("data-index"));var maxIndex=Number(uc_sg_photos.attr("data-max"));var currentLeft=Number(uc_sg_photos.attr("data-left"));var newCurrentLeft=uc_sg_photos.css("left");newCurrentLeft=Number(newCurrentLeft.split("px").join(""));var galeryRecorded=Number(uc_swipe_galery.attr("data-galeryRecorded"));var diffX=newCurrentLeft-currentLeft;var newIndex;if(Math.abs(diffX)>=20){if(diffX>=0){newIndex=currentIndex-1;}else{newIndex=currentIndex+1;}}else{newIndex=currentIndex;}if(newIndex<0)newIndex=maxIndex-1;if(newIndex>maxIndex-1)newIndex=0;if(forcedIndex!==undefined)newIndex=forcedIndex;var allItems=uc_sg_dotsCtn.find(".uc_sg_dot");var itemIndex=newIndex;var maxIndex=allItems.length-1;var currentItem=uc_swipe_galery.find(".uc_sg_dots span:eq("+newIndex+")");TweenLite.to(allItems,0.1,{scale:0});if(itemIndex-1>=0){var pItem1=uc_sg_dotsCtn.find(".uc_sg_dot:eq("+(itemIndex-1)+")");TweenLite.to(pItem1,0.1,{scale:1});}if(itemIndex-2>=0){var pItem2=uc_sg_dotsCtn.find(".uc_sg_dot:eq("+(itemIndex-2)+")");TweenLite.to(pItem2,0.1,{scale:0.5});}if(itemIndex+1<=maxIndex){var nItem1=uc_sg_dotsCtn.find(".uc_sg_dot:eq("+(itemIndex+1)+")");TweenLite.to(nItem1,0.1,{scale:1});}if(itemIndex+2<=maxIndex){var nItem2=uc_sg_dotsCtn.find(".uc_sg_dot:eq("+(itemIndex+2)+")");TweenLite.to(nItem2,0.1,{scale:0.5});}TweenLite.to(currentItem,0.1,{scale:1});var navWidth=uc_swipe_galery.innerWidth();var pos=currentItem.position();var itemX=pos.left;var itemW=currentItem.innerWidth();var navItemsX=Math.round(-itemX+navWidth/2-itemW/2);TweenLite.to(uc_sg_dotsCtn,0.1,{x:navItemsX});if(newIndex!=0&&galeryRecorded==0){var datas2={};datas2.action='v5_recordGaleryView';$.ajax({url:$_SITE_ROOT+"actions.php",dataType:'json',data:datas2,async:true,cache:false,type:'POST',success:function($datas2){if($datas2.results.galery_forbidden==1){$("body").addClass("galery_forbidden");var premiumMessage=uc_swipe_galery.find('.uc_sg_prem');if(premiumMessage.length==0){$_DLANG.preloadLabels(["premium_popin_title","limited_access_galery"],function(){var pTitle=$_DLANG.getLabel("premium_popin_title");var pMessage=$_DLANG.getLabel("limited_access_galery");var pHtml="";uc_swipe_galery.append(pHtml);premiumMessage=uc_swipe_galery.find('.uc_sg_prem');TweenLite.to(premiumMessage,0.5,{opacity:1});});}}$datas2=null;delete $datas2;}});uc_swipe_galery.attr("data-galeryRecorded",1);}if($("body").hasClass("galery_forbidden")){var premiumMessage=uc_swipe_galery.find('.uc_sg_prem');if(newIndex==0){if(premiumMessage.length==1){TweenLite.to(premiumMessage,0.2,{opacity:0});}}else{if(premiumMessage.length==0){$_DLANG.preloadLabels(["premium_popin_title","limited_access_galery"],function(){var pTitle=$_DLANG.getLabel("premium_popin_title");var pMessage=$_DLANG.getLabel("limited_access_galery");var pHtml="";uc_swipe_galery.append(pHtml);premiumMessage=uc_swipe_galery.find('.uc_sg_prem');TweenLite.to(premiumMessage,0.5,{opacity:1});});}else{TweenLite.to(premiumMessage,0.5,{opacity:1});}}}var newLeft=-newIndex*100;TweenLite.to(uc_sg_photos,0.1,{left:0,marginLeft:newLeft+"%"});uc_sg_photos.attr("data-left",0);uc_sg_photos.attr("data-index",newIndex);uc_swipe_galery.find(".uc_sg_dots span.s").removeClass("s");uc_swipe_galery.find(".uc_sg_dots span:eq("+newIndex+")").addClass("s");};this.uc_swipe_moving=function(e,diffX,diffY){var uc_swipe_galery=$(e.target);var uc_sg_photos=uc_swipe_galery.find(".uc_sg_photos");var u_card=uc_swipe_galery.closest(".u_card");var user_uid=u_card.attr("data-uid");if(_this.isScrolling)return;var delta=10;if(Math.abs(diffX)0)comp=-delta;var currentLeft=Number(uc_sg_photos.attr("data-left"));var newLeft=currentLeft+diffX+comp;uc_sg_photos.css("left",newLeft+"px");};this.removeSwipeGalery=function($u_card){var uc_swipe_galery=$u_card.find(".uc_swipe_galery");if(uc_swipe_galery.length==0)return;uc_swipe_galery.unbind("SWIPE_ABORTED SWIPE_LEFT SWIPE_RIGHT ",_this.uc_swipe_preventEvent);uc_swipe_galery.unbind("SWIPE_ABSOLUTE_CLICK SWIPE_CLICK",_this.uc_swipe_absoluteClick);uc_swipe_galery.unbind("SWIPE_END",_this.uc_swipe_swipeEnd);uc_swipe_galery.unbind("SWIPE_MOVING",_this.uc_swipe_moving);_this.untrackSwipe(uc_swipe_galery);$u_card.removeClass("swipeGaleryAdded");uc_swipe_galery.remove();};this.addSwipeGalery=function($u_card,$preventPropagation){if($u_card.hasClass("swipeGaleryAdded"))return;$u_card.addClass("swipeGaleryAdded");if(!$_USER_UID)return;var user_uid=$u_card.attr("data-uid");var nbPhotos=0;if($u_card.find(".uc_nbPhotos").length>0){nbPhotos=Number($u_card.find(".uc_nbPhotos").text());}if(nbPhotos<=1){return;}var galeryRecorded=0;if(user_uid==$_USER_UID)galeryRecorded=1;var datas={};datas.action='v5_get_photos_list';datas.user_uid=user_uid;$.ajax({url:$_SITE_ROOT+"actions.php",dataType:'json',data:datas,async:true,cache:false,type:'POST',success:function($datas){if($datas.results.complete==1){var ucAvatar=$u_card.find(".uc_avatar");if(ucAvatar.length==1){var list=$datas.results.list;var i=0;var nb=list.length;var wP=nb*100;var htmlDots="";var html="";if(i==0){htmlDots+=" ";}else{htmlDots+=" ";}i++;}html+="
"+htmlDots+"
";ucAvatar.append(html);var uc_swipe_galery=$u_card.find(".uc_swipe_galery");var uc_sg_photos=$u_card.find(".uc_sg_photos");TweenLite.to(uc_swipe_galery,0,{alpha:0});uc_swipe_galery.bind("SWIPE_ABORTED SWIPE_LEFT SWIPE_RIGHT ",_this.uc_swipe_preventEvent);uc_swipe_galery.bind("SWIPE_ABSOLUTE_CLICK SWIPE_CLICK",_this.uc_swipe_absoluteClick);uc_swipe_galery.bind("SWIPE_END",_this.uc_swipe_swipeEnd);uc_swipe_galery.bind("SWIPE_MOVING",_this.uc_swipe_moving);uc_swipe_galery.trigger("SWIPE_END");TweenLite.to(uc_swipe_galery,0.1,{alpha:1,delay:0.1});if($preventPropagation==true){_this.trackSwipe(uc_swipe_galery,true);}else{_this.trackSwipe(uc_swipe_galery);}$u_card.addClass("hasSwipeGalery");}}$datas=null;delete $datas;},error:function($datas){}});datas=null;delete datas;};this.supportVariableFonts=function(){if("CSS"in window===false||"supports"in CSS===false){return false}return CSS.supports("(font-variation-settings: normal)");};this.switchDispoNOW=function(){var datas={};datas.action='setDispoNow';var btn=$(".dispoNowForm:first");var cards=$(".u_card[data-uid='"+$_USER_UID+"'],.a_card[data-user-uid='"+$_USER_UID+"'],.map_card[data-user-uid='"+$_USER_UID+"']");if(btn.hasClass("on")){$(".dispoNowForm").removeClass("on");datas.status=0;cards.removeClass("dispo_now");}else{$(".dispoNowForm").addClass("on");datas.status=1;_this.showSystemMessage($_DLANG.getLabel('dispo_now_enabled'),4000);cards.addClass("dispo_now");}$.ajax({url:$_SITE_ROOT+"actions.php",dataType:'json',data:datas,async:true,cache:false,type:'POST',success:function($datas){if($datas.results.complete==1){u_updateStatus("changeDispo");}else{}},error:function($datas){}});};this.clearAvatarLocalCache=function(){if(!$_USER_UID)return;var bgi=$("#user_menu .um_avatar").css("background-image");if(bgi=="none"||bgi==""||typeof bgi==='undefined')return;bgi=bgi.replace('url(','').replace(')','').replace('"','').replace("'",'').replace(/"/g,'');if(bgi=="")return;var lastSlashIndex=bgi.lastIndexOf("/");var parts=[bgi.substring(0,lastSlashIndex),bgi.substring(lastSlashIndex+1)];var fileName=parts[1];var ext=fileName.split('.').pop();var filePath1=parts[0]+"/small."+ext+"?clearCache="+new Date().getTime();var filePath2=parts[0]+"/medium."+ext+"?clearCache="+new Date().getTime();var filePath3=parts[0]+"/large."+ext+"?clearCache="+new Date().getTime();var filePath4=parts[0]+"/small3."+ext+"?clearCache="+new Date().getTime();var filePath5=parts[0]+"/medium3."+ext+"?clearCache="+new Date().getTime();var filePath6=parts[0]+"/large3."+ext+"?clearCache="+new Date().getTime();var img1=new Image();img1.src=filePath1;var img2=new Image();img2.src=filePath2;var img3=new Image();img3.src=filePath3;var img4=new Image();img4.src=filePath4;var img5=new Image();img5.src=filePath5;var img6=new Image();img6.src=filePath6;};this.copyTextToClipboard=function(text){if(!navigator.clipboard){var textArea=document.createElement("textarea");textArea.value=text;textArea.style.top="0";textArea.style.left="0";textArea.style.position="fixed";document.body.appendChild(textArea);textArea.focus();textArea.select();try{var successful=document.execCommand('copy');if(successful){_this.showSystemMessage($_DLANG.getLabel('clipboard_copy_complete'));}else{_this.showSystemMessage('ERROR: action impossible');}}catch(err){_this.showSystemMessage('ERROR: action impossible '+err);}document.body.removeChild(textArea);return;}navigator.clipboard.writeText(text).then(function(){_this.showSystemMessage($_DLANG.getLabel('clipboard_copy_complete'));},function(err){_this.showSystemMessage('ERROR: action impossible '+err);});};this.MD5=function(d){return d;};this.hideAddToHomeBtn=function(){$("#addToHome").remove();};this.showAddToHomeBtn=function($force){if($("#addToHome").length>0)return;var btnUrl=$_SITE_ROOT+"version5/_pages/addToHome.php?force="+$force;$.ajax({url:btnUrl,type:"GET",dataType:"html",success:function($data){$("body").append($data);$("#addToHome").on("click",_this.hideAddToHomeBtn);$data=null;delete $data;},error:function(xhr,status){points_this.debugMessage("showAddToHomeBtn error",xhr);}});};this.onVars=function(){$(document).ready(function(){var checkFonts=_this.supportVariableFonts();if(!checkFonts){$('head').append('');}$_DLANG.preloadLabels(["dates_labels","dispo_now_enabled","dispo_now_disabled","clipboard_copy_complete","discret_mode_on","discret_mode_off","dark_mode_on","dark_mode_off","favorite_add","favorite_remove","user_remove_favorite","user_add_favorite","self_chat_forbidden","self_favorite_forbidden","self_flash_forbidden","comment_recorded","disconnected_confirm"],function(){$_DLANG.getLabel("dates_labels",_this.initDatesLabels);});_this.address_state=window.history.pushState!==undefined;if(_this.address_state){$.address.state($_STATE_ROOT).init(function(){}).change(_this.addressChange);}else{$.address.autoUpdate(false).change(_this.addressChange);}_this.addressPrepareLinks();var previousHash;window.location.hash="";window.location.hash="";window.onhashchange=function(){if(window.location.hash!="#popin"){if(previousHash=="#popin")_this.hidePopin();}if(window.location.hash!="#overlay"&&window.location.hash!="#popin"){if(previousHash=="#overlay")_this.hideOverlay("onhashchange");}previousHash=window.location.hash;};$("#menuMobile a[rel='"+$_PAGE_ID+"'],#menuDesktop a[rel='"+$_PAGE_ID+"'],.um_subMenu a[rel='"+$_PAGE_ID+"'],.um_subMenu a[rel='"+$_PAGE_ID+"-"+$_PAGE_VARS+"']").addClass("selected");if($("#moreMenu .selected").length>0){$("#menuDesktop .mLink.more").addClass("selected");}$(document).trigger('CORE_LOADED');$_CORE.debugMessage("[CORE] CORE_LOADED");});};this.trackAdvStatsEvent=function($event,$v){if($v===undefined)$v=null;var datas={};datas.action='adv_stats_track';datas.event=$event;datas.v=$v;$.ajax({url:$_SITE_ROOT+"actions.php",dataType:'json',data:datas,async:true,cache:false,type:'POST'});};this.trackUserEvent=function($event,$more){var datas={};datas.action='track_user_event';datas.event=$event;datas.more=$more;$.ajax({url:$_SITE_ROOT+"actions.php",dataType:'json',data:datas,async:true,cache:false,type:'POST'});};this.addGoogleTagManager=function(){if($("#ga_code_script").length==1)return;var ga_code=$("body").attr("data-ga_code");var ga_html=" Chat number 1 for guys who like pumping and to be pumped
Inscription
Back Prev. Next
Members Ads Map Install the App Partners Blog Help / Contact Inscription Log in
Terms of Use - Legal Notice
Members Map Notifications Messages More Ads Partners Blog Help / Contact Inscription Log in Terms of Use - Legal Notice Follow us on X
Sign up with email
Sign in with Google
Sign in with Apple
Sign up with X
TheBlowers.com
Welcome to TheBlowers website! Enjoy a free classifieds service and an interactive chat. Join the club and its thousands of members! Are you feeling weary? Go to the pump!
Site map
Members Ads Map Partners Inscription Log in Help / Contact Terms of Use Legal Notice