server/renkan-web/src/main/webapp/static/lib/dojo/_firebug/firebug.js
changeset 309 0c3e6e66881f
parent 290 8a6eb26ac87f
equal deleted inserted replaced
308:7fcb9d12e181 309:0c3e6e66881f
       
     1 /*
       
     2 	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
       
     3 	Available via Academic Free License >= 2.1 OR the modified BSD license.
       
     4 	see: http://dojotoolkit.org/license for details
       
     5 */
       
     6 
       
     7 //>>built
       
     8 define("dojo/_firebug/firebug",["../_base/kernel","require","../_base/html","../sniff","../_base/array","../_base/lang","../_base/event","../_base/unload"],function(_1,_2,_3,_4){
       
     9 var _5=(/Trident/.test(window.navigator.userAgent));
       
    10 if(_5){
       
    11 var _6=["log","info","debug","warn","error"];
       
    12 for(var i=0;i<_6.length;i++){
       
    13 var m=_6[i];
       
    14 if(!console[m]||console[m]._fake){
       
    15 continue;
       
    16 }
       
    17 var n="_"+_6[i];
       
    18 console[n]=console[m];
       
    19 console[m]=(function(){
       
    20 var _7=n;
       
    21 return function(){
       
    22 console[_7](Array.prototype.join.call(arguments," "));
       
    23 };
       
    24 })();
       
    25 }
       
    26 try{
       
    27 console.clear();
       
    28 }
       
    29 catch(e){
       
    30 }
       
    31 }
       
    32 if(_4("ff")||_4("chrome")||_4("safari")||_5||window.firebug||(typeof console!="undefined"&&console.firebug)||_1.config.useCustomLogger||_4("air")){
       
    33 return;
       
    34 }
       
    35 try{
       
    36 if(window!=window.parent){
       
    37 if(window.parent["console"]){
       
    38 window.console=window.parent.console;
       
    39 }
       
    40 return;
       
    41 }
       
    42 }
       
    43 catch(e){
       
    44 }
       
    45 var _8=document;
       
    46 var _9=window;
       
    47 var _a=0;
       
    48 var _b=null;
       
    49 var _c=null;
       
    50 var _d=null;
       
    51 var _e=null;
       
    52 var _f=null;
       
    53 var _10=null;
       
    54 var _11=false;
       
    55 var _12=[];
       
    56 var _13=[];
       
    57 var _14={};
       
    58 var _15={};
       
    59 var _16=null;
       
    60 var _17;
       
    61 var _18;
       
    62 var _19=false;
       
    63 var _1a=null;
       
    64 var _1b=document.createElement("div");
       
    65 var _1c;
       
    66 var _1d;
       
    67 window.console={_connects:[],log:function(){
       
    68 _1e(arguments,"");
       
    69 },debug:function(){
       
    70 _1e(arguments,"debug");
       
    71 },info:function(){
       
    72 _1e(arguments,"info");
       
    73 },warn:function(){
       
    74 _1e(arguments,"warning");
       
    75 },error:function(){
       
    76 _1e(arguments,"error");
       
    77 },assert:function(_1f,_20){
       
    78 if(!_1f){
       
    79 var _21=[];
       
    80 for(var i=1;i<arguments.length;++i){
       
    81 _21.push(arguments[i]);
       
    82 }
       
    83 _1e(_21.length?_21:["Assertion Failure"],"error");
       
    84 throw _20?_20:"Assertion Failure";
       
    85 }
       
    86 },dir:function(obj){
       
    87 var str=_22(obj);
       
    88 str=str.replace(/\n/g,"<br />");
       
    89 str=str.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;");
       
    90 _23([str],"dir");
       
    91 },dirxml:function(_24){
       
    92 var _25=[];
       
    93 _26(_24,_25);
       
    94 _23(_25,"dirxml");
       
    95 },group:function(){
       
    96 _23(arguments,"group",_27);
       
    97 },groupEnd:function(){
       
    98 _23(arguments,"",_28);
       
    99 },time:function(_29){
       
   100 _14[_29]=new Date().getTime();
       
   101 },timeEnd:function(_2a){
       
   102 if(_2a in _14){
       
   103 var _2b=(new Date()).getTime()-_14[_2a];
       
   104 _1e([_2a+":",_2b+"ms"]);
       
   105 delete _14[_2a];
       
   106 }
       
   107 },count:function(_2c){
       
   108 if(!_15[_2c]){
       
   109 _15[_2c]=0;
       
   110 }
       
   111 _15[_2c]++;
       
   112 _1e([_2c+": "+_15[_2c]]);
       
   113 },trace:function(_2d){
       
   114 var _2e=_2d||3;
       
   115 var f=console.trace.caller;
       
   116 for(var i=0;i<_2e;i++){
       
   117 var _2f=f.toString();
       
   118 var _30=[];
       
   119 for(var a=0;a<f.arguments.length;a++){
       
   120 _30.push(f.arguments[a]);
       
   121 }
       
   122 if(f.arguments.length){
       
   123 }else{
       
   124 }
       
   125 f=f.caller;
       
   126 }
       
   127 },profile:function(){
       
   128 this.warn(["profile() not supported."]);
       
   129 },profileEnd:function(){
       
   130 },clear:function(){
       
   131 if(_c){
       
   132 while(_c.childNodes.length){
       
   133 _1.destroy(_c.firstChild);
       
   134 }
       
   135 }
       
   136 _1.forEach(this._connects,_1.disconnect);
       
   137 },open:function(){
       
   138 _31(true);
       
   139 },close:function(){
       
   140 if(_11){
       
   141 _31();
       
   142 }
       
   143 },_restoreBorder:function(){
       
   144 if(_1c){
       
   145 _1c.style.border=_1d;
       
   146 }
       
   147 },openDomInspector:function(){
       
   148 _19=true;
       
   149 _c.style.display="none";
       
   150 _16.style.display="block";
       
   151 _d.style.display="none";
       
   152 document.body.style.cursor="pointer";
       
   153 _17=_1.connect(document,"mousemove",function(evt){
       
   154 if(!_19){
       
   155 return;
       
   156 }
       
   157 if(!_1a){
       
   158 _1a=setTimeout(function(){
       
   159 _1a=null;
       
   160 },50);
       
   161 }else{
       
   162 return;
       
   163 }
       
   164 var _32=evt.target;
       
   165 if(_32&&(_1c!==_32)){
       
   166 var _33=true;
       
   167 console._restoreBorder();
       
   168 var _34=[];
       
   169 _26(_32,_34);
       
   170 _16.innerHTML=_34.join("");
       
   171 _1c=_32;
       
   172 _1d=_1c.style.border;
       
   173 _1c.style.border="#0000FF 1px solid";
       
   174 }
       
   175 });
       
   176 setTimeout(function(){
       
   177 _18=_1.connect(document,"click",function(evt){
       
   178 document.body.style.cursor="";
       
   179 _19=!_19;
       
   180 _1.disconnect(_18);
       
   181 });
       
   182 },30);
       
   183 },_closeDomInspector:function(){
       
   184 document.body.style.cursor="";
       
   185 _1.disconnect(_17);
       
   186 _1.disconnect(_18);
       
   187 _19=false;
       
   188 console._restoreBorder();
       
   189 },openConsole:function(){
       
   190 _c.style.display="block";
       
   191 _16.style.display="none";
       
   192 _d.style.display="none";
       
   193 console._closeDomInspector();
       
   194 },openObjectInspector:function(){
       
   195 _c.style.display="none";
       
   196 _16.style.display="none";
       
   197 _d.style.display="block";
       
   198 console._closeDomInspector();
       
   199 },recss:function(){
       
   200 var i,a,s;
       
   201 a=document.getElementsByTagName("link");
       
   202 for(i=0;i<a.length;i++){
       
   203 s=a[i];
       
   204 if(s.rel.toLowerCase().indexOf("stylesheet")>=0&&s.href){
       
   205 var h=s.href.replace(/(&|%5C?)forceReload=\d+/,"");
       
   206 s.href=h+(h.indexOf("?")>=0?"&":"?")+"forceReload="+new Date().valueOf();
       
   207 }
       
   208 }
       
   209 }};
       
   210 function _31(_35){
       
   211 _11=_35||!_11;
       
   212 if(_b){
       
   213 _b.style.display=_11?"block":"none";
       
   214 }
       
   215 };
       
   216 function _36(){
       
   217 _31(true);
       
   218 if(_f){
       
   219 _f.focus();
       
   220 }
       
   221 };
       
   222 function _37(x,y,w,h){
       
   223 var win=window.open("","_firebug","status=0,menubar=0,resizable=1,top="+y+",left="+x+",width="+w+",height="+h+",scrollbars=1,addressbar=0");
       
   224 if(!win){
       
   225 var msg="Firebug Lite could not open a pop-up window, most likely because of a blocker.\n"+"Either enable pop-ups for this domain, or change the djConfig to popup=false.";
       
   226 alert(msg);
       
   227 }
       
   228 _38(win);
       
   229 var _39=win.document;
       
   230 var _3a="<html style=\"height:100%;\"><head><title>Firebug Lite</title></head>\n"+"<body bgColor=\"#ccc\" style=\"height:97%;\" onresize=\"opener.onFirebugResize()\">\n"+"<div id=\"fb\"></div>"+"</body></html>";
       
   231 _39.write(_3a);
       
   232 _39.close();
       
   233 return win;
       
   234 };
       
   235 function _38(wn){
       
   236 var d=new Date();
       
   237 d.setTime(d.getTime()+(60*24*60*60*1000));
       
   238 d=d.toUTCString();
       
   239 var dc=wn.document,_3b;
       
   240 if(wn.innerWidth){
       
   241 _3b=function(){
       
   242 return {w:wn.innerWidth,h:wn.innerHeight};
       
   243 };
       
   244 }else{
       
   245 if(dc.documentElement&&dc.documentElement.clientWidth){
       
   246 _3b=function(){
       
   247 return {w:dc.documentElement.clientWidth,h:dc.documentElement.clientHeight};
       
   248 };
       
   249 }else{
       
   250 if(dc.body){
       
   251 _3b=function(){
       
   252 return {w:dc.body.clientWidth,h:dc.body.clientHeight};
       
   253 };
       
   254 }
       
   255 }
       
   256 }
       
   257 window.onFirebugResize=function(){
       
   258 _49(_3b().h);
       
   259 clearInterval(wn._firebugWin_resize);
       
   260 wn._firebugWin_resize=setTimeout(function(){
       
   261 var x=wn.screenLeft,y=wn.screenTop,w=wn.outerWidth||wn.document.body.offsetWidth,h=wn.outerHeight||wn.document.body.offsetHeight;
       
   262 document.cookie="_firebugPosition="+[x,y,w,h].join(",")+"; expires="+d+"; path=/";
       
   263 },5000);
       
   264 };
       
   265 };
       
   266 function _3c(){
       
   267 if(_b){
       
   268 return;
       
   269 }
       
   270 _31(true);
       
   271 if(_1.config.popup){
       
   272 var _3d="100%";
       
   273 var _3e=document.cookie.match(/(?:^|; )_firebugPosition=([^;]*)/);
       
   274 var p=_3e?_3e[1].split(","):[2,2,320,480];
       
   275 _9=_37(p[0],p[1],p[2],p[3]);
       
   276 _8=_9.document;
       
   277 _1.config.debugContainerId="fb";
       
   278 _9.console=window.console;
       
   279 _9.dojo=window.dojo;
       
   280 }else{
       
   281 _8=document;
       
   282 _3d=(_1.config.debugHeight||300)+"px";
       
   283 }
       
   284 var _3f=_8.createElement("link");
       
   285 _3f.href=_2.toUrl("./firebug.css");
       
   286 _3f.rel="stylesheet";
       
   287 _3f.type="text/css";
       
   288 var _40=_8.getElementsByTagName("head");
       
   289 if(_40){
       
   290 _40=_40[0];
       
   291 }
       
   292 if(!_40){
       
   293 _40=_8.getElementsByTagName("html")[0];
       
   294 }
       
   295 if(_4("ie")){
       
   296 window.setTimeout(function(){
       
   297 _40.appendChild(_3f);
       
   298 },0);
       
   299 }else{
       
   300 _40.appendChild(_3f);
       
   301 }
       
   302 if(_1.config.debugContainerId){
       
   303 _b=_8.getElementById(_1.config.debugContainerId);
       
   304 }
       
   305 if(!_b){
       
   306 _b=_8.createElement("div");
       
   307 _8.body.appendChild(_b);
       
   308 }
       
   309 _b.className+=" firebug";
       
   310 _b.id="firebug";
       
   311 _b.style.height=_3d;
       
   312 _b.style.display=(_11?"block":"none");
       
   313 var _41=function(_42,_43,_44,_45){
       
   314 return "<li class=\""+_45+"\"><a href=\"javascript:void(0);\" onclick=\"console."+_44+"(); return false;\" title=\""+_43+"\">"+_42+"</a></li>";
       
   315 };
       
   316 _b.innerHTML="<div id=\"firebugToolbar\">"+"  <ul id=\"fireBugTabs\" class=\"tabs\">"+_41("Clear","Remove All Console Logs","clear","")+_41("ReCSS","Refresh CSS without reloading page","recss","")+_41("Console","Show Console Logs","openConsole","gap")+_41("DOM","Show DOM Inspector","openDomInspector","")+_41("Object","Show Object Inspector","openObjectInspector","")+((_1.config.popup)?"":_41("Close","Close the console","close","gap"))+"\t</ul>"+"</div>"+"<input type=\"text\" id=\"firebugCommandLine\" />"+"<div id=\"firebugLog\"></div>"+"<div id=\"objectLog\" style=\"display:none;\">Click on an object in the Log display</div>"+"<div id=\"domInspect\" style=\"display:none;\">Hover over HTML elements in the main page. Click to hold selection.</div>";
       
   317 _10=_8.getElementById("firebugToolbar");
       
   318 _f=_8.getElementById("firebugCommandLine");
       
   319 _46(_f,"keydown",_47);
       
   320 _46(_8,_4("ie")||_4("safari")?"keydown":"keypress",_48);
       
   321 _c=_8.getElementById("firebugLog");
       
   322 _d=_8.getElementById("objectLog");
       
   323 _16=_8.getElementById("domInspect");
       
   324 _e=_8.getElementById("fireBugTabs");
       
   325 _49();
       
   326 _4a();
       
   327 };
       
   328 _1.addOnLoad(_3c);
       
   329 function _4b(){
       
   330 _8=null;
       
   331 if(_9.console){
       
   332 _9.console.clear();
       
   333 }
       
   334 _9=null;
       
   335 _b=null;
       
   336 _c=null;
       
   337 _d=null;
       
   338 _16=null;
       
   339 _f=null;
       
   340 _12=[];
       
   341 _13=[];
       
   342 _14={};
       
   343 };
       
   344 function _4c(){
       
   345 var _4d=_f.value;
       
   346 _f.value="";
       
   347 _23([">  ",_4d],"command");
       
   348 var _4e;
       
   349 try{
       
   350 _4e=eval(_4d);
       
   351 }
       
   352 catch(e){
       
   353 }
       
   354 };
       
   355 function _49(h){
       
   356 var _4f=25;
       
   357 var _50=h?h-(_4f+_f.offsetHeight+25+(h*0.01))+"px":(_b.offsetHeight-_4f-_f.offsetHeight)+"px";
       
   358 _c.style.top=_4f+"px";
       
   359 _c.style.height=_50;
       
   360 _d.style.height=_50;
       
   361 _d.style.top=_4f+"px";
       
   362 _16.style.height=_50;
       
   363 _16.style.top=_4f+"px";
       
   364 _f.style.bottom=0;
       
   365 _1.addOnWindowUnload(_4b);
       
   366 };
       
   367 function _23(_51,_52,_53){
       
   368 if(_c){
       
   369 _54(_51,_52,_53);
       
   370 }else{
       
   371 _12.push([_51,_52,_53]);
       
   372 }
       
   373 };
       
   374 function _4a(){
       
   375 var _55=_12;
       
   376 _12=[];
       
   377 for(var i=0;i<_55.length;++i){
       
   378 _54(_55[i][0],_55[i][1],_55[i][2]);
       
   379 }
       
   380 };
       
   381 function _54(_56,_57,_58){
       
   382 var _59=_c.scrollTop+_c.offsetHeight>=_c.scrollHeight;
       
   383 _58=_58||_5a;
       
   384 _58(_56,_57);
       
   385 if(_59){
       
   386 _c.scrollTop=_c.scrollHeight-_c.offsetHeight;
       
   387 }
       
   388 };
       
   389 function _5b(row){
       
   390 var _5c=_13.length?_13[_13.length-1]:_c;
       
   391 _5c.appendChild(row);
       
   392 };
       
   393 function _5a(_5d,_5e){
       
   394 var row=_c.ownerDocument.createElement("div");
       
   395 row.className="logRow"+(_5e?" logRow-"+_5e:"");
       
   396 row.innerHTML=_5d.join("");
       
   397 _5b(row);
       
   398 };
       
   399 function _27(_5f,_60){
       
   400 _1e(_5f,_60);
       
   401 var _61=_c.ownerDocument.createElement("div");
       
   402 _61.className="logGroupBox";
       
   403 _5b(_61);
       
   404 _13.push(_61);
       
   405 };
       
   406 function _28(){
       
   407 _13.pop();
       
   408 };
       
   409 function _1e(_62,_63){
       
   410 var _64=[];
       
   411 var _65=_62[0];
       
   412 var _66=0;
       
   413 if(typeof (_65)!="string"){
       
   414 _65="";
       
   415 _66=-1;
       
   416 }
       
   417 var _67=_68(_65);
       
   418 for(var i=0;i<_67.length;++i){
       
   419 var _69=_67[i];
       
   420 if(_69&&typeof _69=="object"){
       
   421 _69.appender(_62[++_66],_64);
       
   422 }else{
       
   423 _6a(_69,_64);
       
   424 }
       
   425 }
       
   426 var ids=[];
       
   427 var obs=[];
       
   428 for(i=_66+1;i<_62.length;++i){
       
   429 _6a(" ",_64);
       
   430 var _6b=_62[i];
       
   431 if(_6b===undefined||_6b===null){
       
   432 _6c(_6b,_64);
       
   433 }else{
       
   434 if(typeof (_6b)=="string"){
       
   435 _6a(_6b,_64);
       
   436 }else{
       
   437 if(_6b instanceof Date){
       
   438 _6a(_6b.toString(),_64);
       
   439 }else{
       
   440 if(_6b.nodeType==9){
       
   441 _6a("[ XmlDoc ]",_64);
       
   442 }else{
       
   443 var id="_a"+_a++;
       
   444 ids.push(id);
       
   445 obs.push(_6b);
       
   446 var str="<a id=\""+id+"\" href=\"javascript:void(0);\">"+_6d(_6b)+"</a>";
       
   447 _6e(str,_64);
       
   448 }
       
   449 }
       
   450 }
       
   451 }
       
   452 }
       
   453 _23(_64,_63);
       
   454 for(i=0;i<ids.length;i++){
       
   455 var btn=_8.getElementById(ids[i]);
       
   456 if(!btn){
       
   457 continue;
       
   458 }
       
   459 btn.obj=obs[i];
       
   460 _9.console._connects.push(_1.connect(btn,"onclick",function(){
       
   461 console.openObjectInspector();
       
   462 try{
       
   463 _22(this.obj);
       
   464 }
       
   465 catch(e){
       
   466 this.obj=e;
       
   467 }
       
   468 _d.innerHTML="<pre>"+_22(this.obj)+"</pre>";
       
   469 }));
       
   470 }
       
   471 };
       
   472 function _68(_6f){
       
   473 var _70=[];
       
   474 var reg=/((^%|[^\\]%)(\d+)?(\.)([a-zA-Z]))|((^%|[^\\]%)([a-zA-Z]))/;
       
   475 var _71={s:_6a,d:_72,i:_72,f:_73};
       
   476 for(var m=reg.exec(_6f);m;m=reg.exec(_6f)){
       
   477 var _74=m[8]?m[8]:m[5];
       
   478 var _75=_74 in _71?_71[_74]:_76;
       
   479 var _77=m[3]?parseInt(m[3]):(m[4]=="."?-1:0);
       
   480 _70.push(_6f.substr(0,m[0][0]=="%"?m.index:m.index+1));
       
   481 _70.push({appender:_75,precision:_77});
       
   482 _6f=_6f.substr(m.index+m[0].length);
       
   483 }
       
   484 _70.push(_6f);
       
   485 return _70;
       
   486 };
       
   487 function _78(_79){
       
   488 function _7a(ch){
       
   489 switch(ch){
       
   490 case "<":
       
   491 return "&lt;";
       
   492 case ">":
       
   493 return "&gt;";
       
   494 case "&":
       
   495 return "&amp;";
       
   496 case "'":
       
   497 return "&#39;";
       
   498 case "\"":
       
   499 return "&quot;";
       
   500 }
       
   501 return "?";
       
   502 };
       
   503 return String(_79).replace(/[<>&"']/g,_7a);
       
   504 };
       
   505 function _7b(_7c){
       
   506 try{
       
   507 return _7c+"";
       
   508 }
       
   509 catch(e){
       
   510 return null;
       
   511 }
       
   512 };
       
   513 function _6e(_7d,_7e){
       
   514 _7e.push(_7b(_7d));
       
   515 };
       
   516 function _6a(_7f,_80){
       
   517 _80.push(_78(_7b(_7f)));
       
   518 };
       
   519 function _6c(_81,_82){
       
   520 _82.push("<span class=\"objectBox-null\">",_78(_7b(_81)),"</span>");
       
   521 };
       
   522 function _83(_84,_85){
       
   523 _85.push("<span class=\"objectBox-string\">&quot;",_78(_7b(_84)),"&quot;</span>");
       
   524 };
       
   525 function _72(_86,_87){
       
   526 _87.push("<span class=\"objectBox-number\">",_78(_7b(_86)),"</span>");
       
   527 };
       
   528 function _73(_88,_89){
       
   529 _89.push("<span class=\"objectBox-number\">",_78(_7b(_88)),"</span>");
       
   530 };
       
   531 function _8a(_8b,_8c){
       
   532 _8c.push("<span class=\"objectBox-function\">",_6d(_8b),"</span>");
       
   533 };
       
   534 function _76(_8d,_8e){
       
   535 try{
       
   536 if(_8d===undefined){
       
   537 _6c("undefined",_8e);
       
   538 }else{
       
   539 if(_8d===null){
       
   540 _6c("null",_8e);
       
   541 }else{
       
   542 if(typeof _8d=="string"){
       
   543 _83(_8d,_8e);
       
   544 }else{
       
   545 if(typeof _8d=="number"){
       
   546 _72(_8d,_8e);
       
   547 }else{
       
   548 if(typeof _8d=="function"){
       
   549 _8a(_8d,_8e);
       
   550 }else{
       
   551 if(_8d.nodeType==1){
       
   552 _8f(_8d,_8e);
       
   553 }else{
       
   554 if(typeof _8d=="object"){
       
   555 _90(_8d,_8e);
       
   556 }else{
       
   557 _6a(_8d,_8e);
       
   558 }
       
   559 }
       
   560 }
       
   561 }
       
   562 }
       
   563 }
       
   564 }
       
   565 }
       
   566 catch(e){
       
   567 }
       
   568 };
       
   569 function _90(_91,_92){
       
   570 var _93=_7b(_91);
       
   571 var _94=/\[object (.*?)\]/;
       
   572 var m=_94.exec(_93);
       
   573 _92.push("<span class=\"objectBox-object\">",m?m[1]:_93,"</span>");
       
   574 };
       
   575 function _8f(_95,_96){
       
   576 _96.push("<span class=\"objectBox-selector\">");
       
   577 _96.push("<span class=\"selectorTag\">",_78(_95.nodeName.toLowerCase()),"</span>");
       
   578 if(_95.id){
       
   579 _96.push("<span class=\"selectorId\">#",_78(_95.id),"</span>");
       
   580 }
       
   581 if(_95.className){
       
   582 _96.push("<span class=\"selectorClass\">.",_78(_95.className),"</span>");
       
   583 }
       
   584 _96.push("</span>");
       
   585 };
       
   586 function _26(_97,_98){
       
   587 if(_97.nodeType==1){
       
   588 _98.push("<div class=\"objectBox-element\">","&lt;<span class=\"nodeTag\">",_97.nodeName.toLowerCase(),"</span>");
       
   589 for(var i=0;i<_97.attributes.length;++i){
       
   590 var _99=_97.attributes[i];
       
   591 if(!_99.specified){
       
   592 continue;
       
   593 }
       
   594 _98.push("&nbsp;<span class=\"nodeName\">",_99.nodeName.toLowerCase(),"</span>=&quot;<span class=\"nodeValue\">",_78(_99.nodeValue),"</span>&quot;");
       
   595 }
       
   596 if(_97.firstChild){
       
   597 _98.push("&gt;</div><div class=\"nodeChildren\">");
       
   598 for(var _9a=_97.firstChild;_9a;_9a=_9a.nextSibling){
       
   599 _26(_9a,_98);
       
   600 }
       
   601 _98.push("</div><div class=\"objectBox-element\">&lt;/<span class=\"nodeTag\">",_97.nodeName.toLowerCase(),"&gt;</span></div>");
       
   602 }else{
       
   603 _98.push("/&gt;</div>");
       
   604 }
       
   605 }else{
       
   606 if(_97.nodeType==3){
       
   607 _98.push("<div class=\"nodeText\">",_78(_97.nodeValue),"</div>");
       
   608 }
       
   609 }
       
   610 };
       
   611 function _46(_9b,_9c,_9d){
       
   612 if(document.all){
       
   613 _9b.attachEvent("on"+_9c,_9d);
       
   614 }else{
       
   615 _9b.addEventListener(_9c,_9d,false);
       
   616 }
       
   617 };
       
   618 function _9e(_9f,_a0,_a1){
       
   619 if(document.all){
       
   620 _9f.detachEvent("on"+_a0,_a1);
       
   621 }else{
       
   622 _9f.removeEventListener(_a0,_a1,false);
       
   623 }
       
   624 };
       
   625 function _a2(_a3){
       
   626 if(document.all){
       
   627 _a3.cancelBubble=true;
       
   628 }else{
       
   629 _a3.stopPropagation();
       
   630 }
       
   631 };
       
   632 function _a4(msg,_a5,_a6){
       
   633 var _a7=_a5.lastIndexOf("/");
       
   634 var _a8=_a7==-1?_a5:_a5.substr(_a7+1);
       
   635 var _a9=["<span class=\"errorMessage\">",msg,"</span>","<div class=\"objectBox-sourceLink\">",_a8," (line ",_a6,")</div>"];
       
   636 _23(_a9,"error");
       
   637 };
       
   638 var _aa=new Date().getTime();
       
   639 function _48(_ab){
       
   640 var _ac=(new Date()).getTime();
       
   641 if(_ac>_aa+200){
       
   642 _ab=_1.fixEvent(_ab);
       
   643 var _ad=_1.keys;
       
   644 var ekc=_ab.keyCode;
       
   645 _aa=_ac;
       
   646 if(ekc==_ad.F12){
       
   647 _31();
       
   648 }else{
       
   649 if((ekc==_ad.NUMPAD_ENTER||ekc==76)&&_ab.shiftKey&&(_ab.metaKey||_ab.ctrlKey)){
       
   650 _36();
       
   651 }else{
       
   652 return;
       
   653 }
       
   654 }
       
   655 _a2(_ab);
       
   656 }
       
   657 };
       
   658 function _47(e){
       
   659 var dk=_1.keys;
       
   660 if(e.keyCode==13&&_f.value){
       
   661 _ae(_f.value);
       
   662 _4c();
       
   663 }else{
       
   664 if(e.keyCode==27){
       
   665 _f.value="";
       
   666 }else{
       
   667 if(e.keyCode==dk.UP_ARROW||e.charCode==dk.UP_ARROW){
       
   668 _af("older");
       
   669 }else{
       
   670 if(e.keyCode==dk.DOWN_ARROW||e.charCode==dk.DOWN_ARROW){
       
   671 _af("newer");
       
   672 }else{
       
   673 if(e.keyCode==dk.HOME||e.charCode==dk.HOME){
       
   674 _b0=1;
       
   675 _af("older");
       
   676 }else{
       
   677 if(e.keyCode==dk.END||e.charCode==dk.END){
       
   678 _b0=999999;
       
   679 _af("newer");
       
   680 }
       
   681 }
       
   682 }
       
   683 }
       
   684 }
       
   685 }
       
   686 };
       
   687 var _b0=-1;
       
   688 var _b1=null;
       
   689 function _ae(_b2){
       
   690 var _b3=_b4("firebug_history");
       
   691 _b3=(_b3)?_1.fromJson(_b3):[];
       
   692 var pos=_1.indexOf(_b3,_b2);
       
   693 if(pos!=-1){
       
   694 _b3.splice(pos,1);
       
   695 }
       
   696 _b3.push(_b2);
       
   697 _b4("firebug_history",_1.toJson(_b3),30);
       
   698 while(_b3.length&&!_b4("firebug_history")){
       
   699 _b3.shift();
       
   700 _b4("firebug_history",_1.toJson(_b3),30);
       
   701 }
       
   702 _b1=null;
       
   703 _b0=-1;
       
   704 };
       
   705 function _af(_b5){
       
   706 var _b6=_b4("firebug_history");
       
   707 _b6=(_b6)?_1.fromJson(_b6):[];
       
   708 if(!_b6.length){
       
   709 return;
       
   710 }
       
   711 if(_b1===null){
       
   712 _b1=_f.value;
       
   713 }
       
   714 if(_b0==-1){
       
   715 _b0=_b6.length;
       
   716 }
       
   717 if(_b5=="older"){
       
   718 --_b0;
       
   719 if(_b0<0){
       
   720 _b0=0;
       
   721 }
       
   722 }else{
       
   723 if(_b5=="newer"){
       
   724 ++_b0;
       
   725 if(_b0>_b6.length){
       
   726 _b0=_b6.length;
       
   727 }
       
   728 }
       
   729 }
       
   730 if(_b0==_b6.length){
       
   731 _f.value=_b1;
       
   732 _b1=null;
       
   733 }else{
       
   734 _f.value=_b6[_b0];
       
   735 }
       
   736 };
       
   737 function _b4(_b7,_b8){
       
   738 var c=document.cookie;
       
   739 if(arguments.length==1){
       
   740 var _b9=c.match(new RegExp("(?:^|; )"+_b7+"=([^;]*)"));
       
   741 return _b9?decodeURIComponent(_b9[1]):undefined;
       
   742 }else{
       
   743 var d=new Date();
       
   744 d.setMonth(d.getMonth()+1);
       
   745 document.cookie=_b7+"="+encodeURIComponent(_b8)+((d.toUtcString)?"; expires="+d.toUTCString():"");
       
   746 }
       
   747 };
       
   748 function _ba(it){
       
   749 return it&&it instanceof Array||typeof it=="array";
       
   750 };
       
   751 function _bb(o){
       
   752 var cnt=0;
       
   753 for(var nm in o){
       
   754 cnt++;
       
   755 }
       
   756 return cnt;
       
   757 };
       
   758 function _22(o,i,txt,_bc){
       
   759 var ind=" \t";
       
   760 txt=txt||"";
       
   761 i=i||ind;
       
   762 _bc=_bc||[];
       
   763 var _bd;
       
   764 if(o&&o.nodeType==1){
       
   765 var _be=[];
       
   766 _26(o,_be);
       
   767 return _be.join("");
       
   768 }
       
   769 var br=",\n",cnt=0,_bf=_bb(o);
       
   770 if(o instanceof Date){
       
   771 return i+o.toString()+br;
       
   772 }
       
   773 looking:
       
   774 for(var nm in o){
       
   775 cnt++;
       
   776 if(cnt==_bf){
       
   777 br="\n";
       
   778 }
       
   779 if(o[nm]===window||o[nm]===document){
       
   780 }else{
       
   781 if(o[nm]===null){
       
   782 txt+=i+nm+" : NULL"+br;
       
   783 }else{
       
   784 if(o[nm]&&o[nm].nodeType){
       
   785 if(o[nm].nodeType==1){
       
   786 }else{
       
   787 if(o[nm].nodeType==3){
       
   788 txt+=i+nm+" : [ TextNode "+o[nm].data+" ]"+br;
       
   789 }
       
   790 }
       
   791 }else{
       
   792 if(typeof o[nm]=="object"&&(o[nm] instanceof String||o[nm] instanceof Number||o[nm] instanceof Boolean)){
       
   793 txt+=i+nm+" : "+o[nm]+","+br;
       
   794 }else{
       
   795 if(o[nm] instanceof Date){
       
   796 txt+=i+nm+" : "+o[nm].toString()+br;
       
   797 }else{
       
   798 if(typeof (o[nm])=="object"&&o[nm]){
       
   799 for(var j=0,_c0;_c0=_bc[j];j++){
       
   800 if(o[nm]===_c0){
       
   801 txt+=i+nm+" : RECURSION"+br;
       
   802 continue looking;
       
   803 }
       
   804 }
       
   805 _bc.push(o[nm]);
       
   806 _bd=(_ba(o[nm]))?["[","]"]:["{","}"];
       
   807 txt+=i+nm+" : "+_bd[0]+"\n";
       
   808 txt+=_22(o[nm],i+ind,"",_bc);
       
   809 txt+=i+_bd[1]+br;
       
   810 }else{
       
   811 if(typeof o[nm]=="undefined"){
       
   812 txt+=i+nm+" : undefined"+br;
       
   813 }else{
       
   814 if(nm=="toString"&&typeof o[nm]=="function"){
       
   815 var _c1=o[nm]();
       
   816 if(typeof _c1=="string"&&_c1.match(/function ?(.*?)\(/)){
       
   817 _c1=_78(_6d(o[nm]));
       
   818 }
       
   819 txt+=i+nm+" : "+_c1+br;
       
   820 }else{
       
   821 txt+=i+nm+" : "+_78(_6d(o[nm]))+br;
       
   822 }
       
   823 }
       
   824 }
       
   825 }
       
   826 }
       
   827 }
       
   828 }
       
   829 }
       
   830 }
       
   831 return txt;
       
   832 };
       
   833 function _6d(obj){
       
   834 var _c2=(obj instanceof Error);
       
   835 if(obj.nodeType==1){
       
   836 return _78("< "+obj.tagName.toLowerCase()+" id=\""+obj.id+"\" />");
       
   837 }
       
   838 if(obj.nodeType==3){
       
   839 return _78("[TextNode: \""+obj.nodeValue+"\"]");
       
   840 }
       
   841 var nm=(obj&&(obj.id||obj.name||obj.ObjectID||obj.widgetId));
       
   842 if(!_c2&&nm){
       
   843 return "{"+nm+"}";
       
   844 }
       
   845 var _c3=2;
       
   846 var _c4=4;
       
   847 var cnt=0;
       
   848 if(_c2){
       
   849 nm="[ Error: "+(obj.message||obj.description||obj)+" ]";
       
   850 }else{
       
   851 if(_ba(obj)){
       
   852 nm="["+obj.slice(0,_c4).join(",");
       
   853 if(obj.length>_c4){
       
   854 nm+=" ... ("+obj.length+" items)";
       
   855 }
       
   856 nm+="]";
       
   857 }else{
       
   858 if(typeof obj=="function"){
       
   859 nm=obj+"";
       
   860 var reg=/function\s*([^\(]*)(\([^\)]*\))[^\{]*\{/;
       
   861 var m=reg.exec(nm);
       
   862 if(m){
       
   863 if(!m[1]){
       
   864 m[1]="function";
       
   865 }
       
   866 nm=m[1]+m[2];
       
   867 }else{
       
   868 nm="function()";
       
   869 }
       
   870 }else{
       
   871 if(typeof obj!="object"||typeof obj=="string"){
       
   872 nm=obj+"";
       
   873 }else{
       
   874 nm="{";
       
   875 for(var i in obj){
       
   876 cnt++;
       
   877 if(cnt>_c3){
       
   878 break;
       
   879 }
       
   880 nm+=i+":"+_78(obj[i])+"  ";
       
   881 }
       
   882 nm+="}";
       
   883 }
       
   884 }
       
   885 }
       
   886 }
       
   887 return nm;
       
   888 };
       
   889 _46(document,_4("ie")||_4("safari")?"keydown":"keypress",_48);
       
   890 if((document.documentElement.getAttribute("debug")=="true")||(_1.config.isDebug)){
       
   891 _31(true);
       
   892 }
       
   893 _1.addOnWindowUnload(function(){
       
   894 _9e(document,_4("ie")||_4("safari")?"keydown":"keypress",_48);
       
   895 window.onFirebugResize=null;
       
   896 window.console=null;
       
   897 });
       
   898 });