Files
crm.e5.pl/include/javascript/yui3/build/yui-base/yui-base-min.js

8 lines
11 KiB
JavaScript
Raw Normal View History

2024-04-27 09:23:34 +02:00
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 3.0.0
build: 1549
*/
(function(){var I={},B=new Date().getTime(),A,E,H=function(){if(window.addEventListener){return function(M,L,K,J){M.addEventListener(L,K,(!!J));};}else{if(window.attachEvent){return function(L,K,J){L.attachEvent("on"+K,J);};}else{return function(){};}}}(),F=function(){if(window.removeEventListener){return function(M,L,K,J){M.removeEventListener(L,K,!!J);};}else{if(window.detachEvent){return function(L,K,J){L.detachEvent("on"+K,J);};}else{return function(){};}}}(),D=function(){YUI.Env.windowLoaded=true;YUI.Env.DOMReady=true;F(window,"load",D);},C={"io.xdrReady":1,"io.start":1,"io.success":1,"io.failure":1},G=Array.prototype.slice;if(typeof YUI==="undefined"||!YUI){YUI=function(O,N,M,L,J){var K=this,R=arguments,Q,P=R.length;if(!(K instanceof YUI)){return new YUI(O,N,M,L,J);}else{K._init();for(Q=0;Q<P;Q++){K._config(R[Q]);}K._setup();return K;}};}YUI.prototype={_config:function(N){N=N||{};var O=this.config,L,K,J,M;M=O.modules;for(L in N){if(M&&L=="modules"){J=N[L];for(K in J){if(J.hasOwnProperty(K)){M[K]=J[K];}}}else{if(L=="win"){O[L]=N[L].contentWindow||N[L];O.doc=O[L].document;}else{O[L]=N[L];}}}},_init:function(L){var J="3.0.0",K=this;if(J.indexOf("@")>-1){J="test";}K.version=J;K.Env={mods:{},cdn:"http://yui.yahooapis.com/"+J+"/build/",bootstrapped:false,_idx:0,_used:{},_attached:{},_yidx:0,_uidx:0,_loaded:{}};K.Env._loaded[J]={};if(YUI.Env){K.Env._yidx=(++YUI.Env._yidx);K.Env._guidp=("yui_"+J+"-"+K.Env._yidx+"-"+B).replace(/\./g,"_");K.id=K.stamp(K);I[K.id]=K;}K.constructor=YUI;K.config={win:window||{},doc:document,debug:true,useBrowserConsole:true,throwFail:true,base:function(){var M,N,P,O;N=document.getElementsByTagName("script");for(P=0;P<N.length;P=P+1){O=N[P].src.match(/^(.*)yui\/yui[\.\-].*js(\?.*)?$/);M=O&&O[1];if(M){break;}}return M||this.Env.cdn;}(),loaderPath:"loader/loader-min.js"};},_setup:function(J){this.use("yui-base");},applyTo:function(P,O,L){if(!(O in C)){this.error(O+": applyTo not allowed");return null;}var K=I[P],N,J,M;if(K){N=O.split(".");J=K;for(M=0;M<N.length;M=M+1){J=J[N[M]];if(!J){this.error("applyTo not found: "+O);}}return J.apply(K,L);}return null;},add:function(K,M,J,L){YUI.Env.mods[K]={name:K,fn:M,version:J,details:L||{}};return this;},_attach:function(K,O){var T=YUI.Env.mods,L=this.Env._attached,Q,P=K.length,M,N,R,S,J;for(Q=0;Q<P;Q=Q+1){M=K[Q];N=T[M];if(!L[M]&&N){L[M]=true;R=N.details;S=R.requires;J=R.use;if(S){this._attach(this.Array(S));}if(N.fn){N.fn(this);}if(J){this._attach(this.Array(J));}}}},use:function(){if(this._loading){this._useQueue=this._useQueue||new this.Queue();this._useQueue.add(G.call(arguments,0));return this;}var K=this,T=G.call(arguments,0),W=YUI.Env.mods,X=K.Env._used,U,O=T[0],M=false,V=T[T.length-1],P,R,N,Q=[],J=[],S=function(b){if(X[b]){return;}var Y=W[b],a,c,Z;if(Y){X[b]=true;c=Y.details.requires;Z=Y.details.use;}else{if(!YUI.Env._loaded[K.version][b]){Q.push(b);}else{X[b]=true;}}if(c){if(K.Lang.isString(c)){S(c);}else{for(a=0;a<c.length;a=a+1){S(c[a]);}}}J.push(b);},L=function(Z){Z=Z||{success:true,msg:"not dynamic"};if(K.Env._callback){var Y=K.Env._callback;K.Env._callback=null;Y(K,Z);}if(K.fire){K.fire("yui:load",K,Z);}K._loading=false;while(K._useQueue&&K._useQueue.size()&&!K._loading){K.use.apply(K,K._useQueue.next());}};if(typeof V==="function"){T.pop();K.Env._callback=V;}else{V=null;}if(O==="*"){T=[];for(P in W){if(W.hasOwnProperty(P)){T.push(P);}}return K.use.apply(K,T);}if(K.Loader){M=true;U=new K.Loader(K.config);U.require(T);U.ignoreRegistered=true;U.allowRollup=false;U.calculate();T=U.sorted;}N=T.length;for(R=0;R<N;R=R+1){S(T[R]);}if(K.Loader&&Q.length){K._loading=true;U=new K.Loader(K.config);U.onSuccess=L;U.onFailure=L;U.onTimeout=L;U.context=K;U.attaching=T;U.require(Q);U.insert();}else{if(K.Get&&Q.length&&!K.Env.bootstrapped){K._loading=true;T=K.Array(arguments,0,true);K.Get.script(K.config.base+K.config.loaderPath,{onEnd:function(){K._loading=false;K.Env.bootstrapped=true;K._attach(["loader"]);K.use.apply(K,T);}});return K;}else{K._attach(J);L();}}return K;},namespace:function(){var J=arguments,N=null,L,K,M;for(L=0;L<J.length;L=L+1){M=(""+J[L]).