Beruflich Dokumente
Kultur Dokumente
createElement("script");
b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChi
ld(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){l.
setTimeout(a,0)}};function hc(a,b){if(!ic){var c=jc;r(l.setImmediate)?l.setImmed
iate(c):(fc||(fc=gc()),fc(c));ic=!0}kc.push(new lc(a,b))}var ic=!1,kc=[];functio
n jc(){for(;kc.length;){var a=kc;kc=[];for(var b=0;b<a.length;b++){var c=a[b];tr
y{c.a.call(c.b)}catch(d){ec(d)}}}ic=!1}function lc(a,b){this.a=a;this.b=b};funct
ion mc(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}functi
on nc(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};functio
n U(a,b){this.b=0;this.o=void 0;this.a=this.d=null;this.g=this.j=!1;try{var c=th
is;a.call(b,function(a){V(c,2,a)},function(a){V(c,3,a)})}catch(d){V(this,3,d)}}U
.prototype.then=function(a,b,c){return oc(this,r(a)?a:null,r(b)?b:null,c)};mc(U)
;U.prototype.cancel=function(a){0==this.b&&hc(function(){var b=new W(a);pc(this,
b)},this)};
function pc(a,b){if(0==a.b)if(a.d){var c=a.d;if(c.a){for(var d=0,e=-1,f=0,g;g=c.
a[f];f++)if(g=g.I)if(d++,g==a&&(e=f),0<=e&&1<d)break;0<=e&&(0==c.b&&1==d?pc(c,b)
:(d=c.a.splice(e,1)[0],qc(c),d.O(b)))}}else V(a,3,b)}function rc(a,b){a.a&&a.a.l
ength||2!=a.b&&3!=a.b||sc(a);a.a||(a.a=[]);a.a.push(b)}
function oc(a,b,c,d){var e={I:null,T:null,O:null};e.I=new U(function(a,g){e.T=b?
function(c){try{var e=b.call(d,c);a(e)}catch(F){g(F)}}:a;e.O=c?function(b){try{v
ar e=c.call(d,b);void 0===e&&b instanceof W?g(b):a(e)}catch(F){g(F)}}:g});e.I.d=
a;rc(a,e);return e.I}U.prototype.q=function(a){this.b=0;V(this,2,a)};U.prototype
.p=function(a){this.b=0;V(this,3,a)};
function V(a,b,c){if(0==a.b){if(a==c)b=3,c=new TypeError("Promise cannot resolve
to itself");else{if(nc(c)){a.b=1;c.then(a.q,a.p,a);return}if(ca(c))try{var d=c.
then;if(r(d)){tc(a,c,d);return}}catch(e){b=3,c=e}}a.o=c;a.b=b;sc(a);3!=b||c inst
anceof W||uc(a,c)}}function tc(a,b,c){function d(b){f||(f=!0,a.p(b))}function e(
b){f||(f=!0,a.q(b))}a.b=1;var f=!1;try{c.call(b,e,d)}catch(g){d(g)}}function sc(
a){a.j||(a.j=!0,hc(a.C,a))}
U.prototype.C=function(){for(;this.a&&this.a.length;){var a=this.a;this.a=[];for
(var b=0;b<a.length;b++){var c=a[b],d=this.o;2==this.b?c.T(d):(qc(this),c.O(d))}
}this.j=!1};function qc(a){for(;a&&a.g;a=a.d)a.g=!1}function uc(a,b){a.g=!0;hc(f
unction(){a.g&&vc.call(null,b)})}var vc=ec;function W(a){v.call(this,a)}u(W,v);W
.prototype.name="cancel";/*
Portions of this code are from MochiKit, received by
The Closure Authors under the MIT license. All other code is Copyright
2005-2009 The Closure Authors. All Rights Reserved.
*/
function X(a,b){this.j=[];this.Q=a;this.P=b||null;this.g=this.a=!1;this.d=void 0
;this.C=this.W=this.q=!1;this.o=0;this.b=null;this.p=0}X.prototype.cancel=functi
on(a){if(this.a)this.d instanceof X&&this.d.cancel();else{if(this.b){var b=this.
b;delete this.b;a?b.cancel(a):(b.p--,0>=b.p&&b.cancel())}this.Q?this.Q.call(this
.P,this):this.C=!0;this.a||(a=new Y,wc(this),xc(this,!1,a))}};X.prototype.R=func
tion(a,b){this.q=!1;xc(this,a,b)};function xc(a,b,c){a.a=!0;a.d=c;a.g=!b;yc(a)}
function wc(a){if(a.a){if(!a.C)throw new zc;a.C=!1}}function Ac(a,b,c,d){a.j.pus
h([b,c,d]);a.a&&yc(a)}X.prototype.then=function(a,b,c){var d,e,f=new U(function(
a,b){d=a;e=b});Ac(this,d,function(a){a instanceof Y?f.cancel():e(a)});return f.t
hen(a,b,c)};mc(X);function Bc(a){return wa(a.j,function(a){return r(a[1])})}
function yc(a){if(a.o&&a.a&&Bc(a)){var b=a.o,c=Cc[b];c&&(l.clearTimeout(c.w),del
ete Cc[b]);a.o=0}a.b&&(a.b.p--,delete a.b);for(var b=a.d,d=c=!1;a.j.length&&!a.q
;){var e=a.j.shift(),f=e[0],g=e[1],e=e[2];if(f=a.g?g:f)try{var h=f.call(e||a.P,b
);void 0!==h&&(a.g=a.g&&(h==b||h instanceof Error),a.d=b=h);nc(b)&&(d=!0,a.q=!0)
}catch(m){b=m,a.g=!0,Bc(a)||(c=!0)}}a.d=b;d&&(h=s(a.R,a,!0),d=s(a.R,a,!1),b inst
anceof X?(Ac(b,h,d),b.W=!0):b.then(h,d));c&&(b=new Dc(b),Cc[b.w]=b,a.o=b.w)}
function zc(){v.call(this)}u(zc,v);zc.prototype.message="Deferred has already fi
red";zc.prototype.name="AlreadyCalledError";function Y(){v.call(this)}u(Y,v);Y.p
rototype.message="Deferred was canceled";Y.prototype.name="CanceledError";functi
on Dc(a){this.w=l.setTimeout(s(this.b,this),0);this.a=a}Dc.prototype.b=function(
){delete Cc[this.w];throw this.a;};var Cc={};function Ec(a,b){var c=b||{},d=c.do
cument||document,e=I("SCRIPT"),f={U:e,J:void 0},g=new X(Fc,f),h=null,m=null!=c.t