Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
thewickedkarma
GitHub Repository: thewickedkarma/blackeye-im
Path: blob/master/sites/yahoo/yahoo_files/boot.js
777 views
1
var DARLA,$sf,$yac;!function(){function t(t,e,r){var n=t||"",i=/\-min\.js$/gi,o=/\.html$/gi;return n&&(e&&-1!=n[nt](xt)&&(n=n[rt](xt,e)),r&&(-1!=n[nt](i)?n=n[rt](i,"-debug.js"):-1!=n[nt](o)&&(n=n[rt](o,"-debug.html")))),n}function e(e){var r,n=U;if(e){e[ft]||(e[ft]=Y),e[ut]||(e[ut]=H),e[ht]||(e[ht]=G),n=e.debug,r=e.lib_ver||"";try{r=r.match(xt)[0]}catch(i){r=""}e[ft]=t(e[ft],r,n),e[ht]=t(e[ht],r,n),e[ut]=t(e[ut],r,n)}}function r(t){var e,r=X;try{if(t&&typeof t==V)for(e in t){r=U;break}}catch(n){r=X}return r}function n(){qt[ct]={},qt.firstPos=z,qt.meta={},qt[W]={},Ft={},Nt={}}function i(){var t,e,r,n,i,o,a,c,s,h,u=0;for(t=g();e=t[u++];)if(r=e.id||"",r||(r="sf_tag_"+(new Date).getTime()+"_"+Math.round(100*Math.random()),e.id=r),!Ft[r]){try{e.setAttribute("type",K+"-processed")}catch(d){}if(Ft[r]=r,i=e.text||e.innerHTML||e.innerText||""){try{i=i[rt](Dt,"")[rt](Tt,"");try{i=JSON.parse(i)}catch(y){o=new Lt("return "+i),i=o(),o=z}}catch(y){o=i=z;continue}if(i)if(c=i[ct]){for(n=0;a=c[n++];)s=a.id,s&&(Nt[s]||(Nt[s]=1,qt[ct][s]=a,qt[ct][s].dataTagID=r,qt.firstPos||(qt.firstPos=a)));i[W]&&(qt[W]=f(qt[W],i[W])),i.meta&&(qt.meta=f(qt.meta,i.meta))}else{if(s=i.id,!s)continue;if(Nt[s])continue;h=i.html||i.src||"",h&&"string"==typeof h&&(Nt[s]=1,qt[ct][s]=i,qt[ct][s].dataTagID=r,qt.firstPos||(qt.firstPos=i),i.baseConf&&(qt[W]=f(qt[W],i.baseConf)))}}}}function o(){var t;try{Mt&&!Et&&$sf.host.boot(Gt)}catch(t){s(531,t[dt])}}function a(){try{$sf.host.onReady()}catch(t){}}function c(){var t,e,r=z;try{Pt=window,r=j&&j.host,t=r&&r.boot,j=Pt&&Pt.$sf,j&&(D=j.lib,r=Mt?r?r:j.host:z),D&&(T=D.lang,x=D.dom,T&&(P=T.cstr,C=T.cnum,L=T.cbool)),Mt&&r&&(F=r.Config,N=r.PosConfig,q=r.PosMeta,I=r.Position)}catch(n){e=U}return e!==U&&j&&D&&r&&T&&x&&P&&C&&F&&N&&q&&I?r&&t&&!r.boot&&(r.boot=_):F=N=q=I=z,r}function s(t,e){try{D&&D.log&&D.logger.note(t,e)}catch(r){}}function f(t,e,r){var n,i,o;if(t||(t={}),!e||typeof e!=V||e instanceof Rt==U)return t;if(e.nodeType)return t;for(i in e)try{if(n=e[i],o=typeof n,o==V&&n&&(n=typeof t[i]==V&&t[i]?f(t[i],n,r):f({},n,r)),r&&i in t)continue;t[i]=n}catch(a){continue}return t}function h(){var t,e,n,o,a,s={};c();try{t=j&&j.host}catch(h){t=z}try{o=t&&t[W]}catch(h){o=z}try{a=t&&F()}catch(h){a=z}try{e=Pt.DARLA_CONFIG}catch(h){e=z}try{n=Pt.$YAC_CONF}catch(h){n=z}return s=o?f(s,o,X):s,s=e?f(s,e,X):s,s=n?f(s,n,X):s,s=a?f(s,a,X):s,i(),s=f(s,qt[W],X),r(s)&&(s=z),s}function u(t,e){var r=["<",At," type='text/java",At,"' src='",t,"'","","","","></",At,">"];return e&&(r[7]="id='",r[8]=e,r[9]="'"),r.join("")}function d(){}function y(t,e){var r=document;t=t||0,t&&s(t),Mt||(r.open("text/html","replace"),r.write("<!-- sf err (",t||0,") ",e||""," -->"),r.close()),r=z}function l(t){return t&&t.tagName&&t.tagName.toLowerCase()||""}function m(t){return t&&Ct&&Ct.getElementById(t)||z}function p(t){return t&&Ct&&Ct.getElementsByTagName(t)||[]}function g(){var t,e,r=z,n="querySelectorAll",i=0;if(kt===z)try{kt=n in document}catch(o){kt=U}if(kt)try{r=Ct[n](At+"[type='"+K+"']")}catch(o){r=z}if(!r)for(t=p(At),r=[];e=t[i++];)e.type==K&&r.push(e);return r||[]}function v(){var t,e=m(jt);if(e)try{b.call(e)}catch(t){s(532,t[dt])}else s(533)}function b(){var t,e=this,r=U;l(e)!=At&&(e=m(jt)),e&&(t=e.readyState,e[Q]?"loaded"!=t&&"complete"!=t||(r=X,e[Q]=z):(r=X,e.onload=z),r&&(e=z,c(),j&&D&&T&&x?(b=d,a(),_(Gt)):s(534)))}function w(){var t,r,n,i,a,f,u;if(!Et&&Mt)if(r=c(),u=!!F,j||(Pt.$sf=j={}),r||($sf.host=r={}),r.boot){if(x&&!Bt)try{Bt=X,x.wait(o)}catch(d){s(539,d[dt])}}else if(r.boot=_,t=h()||{},e(t),n=t[ft],u)_(Gt);else if(f=it in t&&t[it]===U||ot in t&&t[ot]===U?U:X,f=f&&!!n&&!St,f&&(a=m(jt),a&&l(a)==At&&a.src==n&&(f=U,St=X)),f&&!St)try{i=p("head")[0],a=Ct.createElement(At),a.id=jt,a.type="text/java"+At,a.className="sf_lib",Pt.ActiveXObject?a[Q]=b:a.onload=b,a.src=n,St=X,setTimeout(v,pt),i.appendChild(a)}catch(d){s(535,d[dt])}}function $(t,e){var r,n,i=U,o=["hasError","hasErr","err","error"],a=0;if(t&&L){for(;r=o[a++];)if(r in t&&L(t[r])){i=X;break}i||e||(n=t.meta,n&&(i=$(n,X)))}return i}function A(t){var e,n,i,o,a,c,h,d,l,p,g=z,v=j&&j.ext;if(t)if(Mt){if(i=t.id){if(o=N.item(i),o.id=i,o.pos=i,a=t[W],r(a)||(o=f(o,a,X),o.dest||(o.dest=a.dest||""),o.w||(o.w=a.w||0),o.h||(o.h=a.h||0),o=N(o)),o&&(d=P(o.dest),d||(d=qt[ct][i].dataTagID,d&&(o=N(o,d)))),r(o))return void s(429,i);if(!d)return void s(430,i);if(c=m(d),!c)return void s(431,i);h=t.meta,h=r(h)?z:new q(h),n=new I(t,z,h,o),g=n}}else{try{l=top.document}catch(b){l=z}if(e=t[st]||"",e=e||u(t.src),l||e&&!$(t))if(l||!Ot||It)l?setTimeout(function(){y(514)},100):setTimeout(function(){y(537)},100);else{It=X;try{$sf.host=z,delete $sf.host,I=N=F=q=z}catch(b){}try{Ct.write(e)}catch(b){}}else{if(v&&v.msg)try{v.msg("noad")}catch(b){}else try{l=document.referrer,l&&-1!=l[tt]("http")?(p=l[tt]("/",9),p=-1==p?l.length:p,l=l.substring(0,p)):l="",l.length>8&&top[lt]("noad=1&id="+(t.id||t.pos||"unknown"),l)}catch(b){}setTimeout(function(){y(539)},100)}}else s(432);return g}function _(t){var n,a,c,f,u,d,y,l,p;if(Mt&&(!j||!T||!x))return s(542),U;if(Et)return s(538),U;if(Mt){if(d=h(),r(qt[ct])&&!Bt){Bt=X;try{x.wait(o)}catch(p){s(542,p[dt])}return}d||(d={}),e(d),Et=X;try{d&&(d[yt]||d[mt]||(d[mt]=J),d=F(d))}catch(g){d=z}if(r(d)||!d[ft])return d=z,Et=U,s(543),U;if(t===Gt&&d&&(d[at]===U||d[it]===U))return void(Et=U);try{u=new DARLA.Response("prefetched",qt.meta)}catch(p){return s(545,p[dt]),void(Et=U)}f=qt[ct];for(a in f)if(n=f[a],c=A(n),c&&t===Gt&&d[at]!==U&&d[it]!==U){try{u.add(c),n.r=1}catch(p){}if(l=m(n.dataTagID))try{l.setAttribute("type",K+"-booted")}catch(p){}}try{y=u.length()}catch(p){y=0,s(433,p[dt])}if(y){try{j.host[Z](u)}catch(p){s(540,p[dt])}return X}if(Yt)return;if(Yt=d.init,Yt&&Pt.DARLA&&(d[yt]||d[mt]))try{DARLA.event("sf_init",Yt)}catch(p){s(541,p[dt])}}else i(),Et=X,A(qt.firstPos);return X}var j,D,T,x,P,C,L,R,F,N,q,I,M,O,E,k,S,B,Y,G,H,J,U=!1,X=!0,z=null,K="text/x-safeframe",Q="onreadystatechange",V="object",W="conf",Z="render",tt="indexOf",et="position",rt="replace",nt="search",it="auto",ot=it+"_lib",at=it+"_"+Z,ct=et+"s",st="html",ft="hostFile",ht=Z+"File",ut="msgFile",dt="message",yt="servicePath",lt="postMessage",mt="x"+yt,pt=3e4,gt="http://l.yimg.com/rq/darla",vt="https://s.yimg.com/rq/darla",bt="3-4-2",wt="http://l.yimg.com/rq/darla/3-4-2/js/g-r-min.js",$t="http://fc.yahoo.com/sdarla/php/fc.php",At="script",_t="sf_auto_"+function(){var t=new Date;return[t.getDay(),"-",t.getDate(),"-",t.getMonth(),"-",t.getFullYear()].join("")}(),jt="sf_host_lib_"+_t,Dt=/^\s\s*/,Tt=/\s\s*$/,xt=/(\d+\-\d+\-\d+)|(9999)/,Pt=window,Ct=Pt&&Pt.document,Lt=Function,Rt=Object,Ft={},Nt={},qt={},It=U,Mt=U,Ot=U,Et=U,kt=z,St=U,Bt=U,Yt=z,Gt={};try{if(M=Pt.$sf&&$sf.host&&$sf.host.boot||z,M&&"function"==typeof M&&M!=_)return void(Pt[_t]=X);if(_t in Pt)return;Pt[_t]=X}catch(Ht){return void s(541)}O=gt,E=vt,B=bt,Y=wt,J=$t,O&&0==O[tt]("http:")||(O="http://l.yimg.com/rq/darla/"),E&&0==E[tt]("https:")||(E="https://s.yimg.com/rq/darla/"),B&&-1!=B[nt](xt)||(B="2-8-4"),J&&-1!=J[tt]("http")||(J="http://fc.yahoo.com/sdarla/php/fc.php");try{R=Ct.URL||location.href}catch(Ht){R=""}0==R[tt]("https:")&&(O=E,J=J[rt](/^http\:/i,"https:")),k=O+"/"+B,S=k+"/"+st,Y&&-1!=Y[tt](".js")||(Y=k+"/js/g-r-min.js");try{Mt=!(Pt!=top)}catch(Ht){Mt=U}if(G=S+"/r-sf."+st,H=S+"/msg."+st,Mt===U)try{Ot=!(Pt.parent!=top)}catch(Ht){Ot=U}n(),Mt?(c(),w()):Ot?(c(),_()):s(541)}();
2