//>>built define("dojox/html/_base",["dojo/_base/declare","dojo/Deferred","dojo/dom-construct","dojo/html","dojo/_base/kernel","dojo/_base/lang","dojo/ready","dojo/_base/sniff","dojo/_base/url","dojo/_base/xhr","dojo/when","dojo/_base/window"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c){ var _d=_5.getObject("dojox.html",true); if(_8("ie")){ var _e=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g; } var _f=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g; var _10=_d._adjustCssPaths=function(_11,_12){ if(!_12||!_11){ return; } if(_e){ _12=_12.replace(_e,function(_13,pre,_14,url,_15){ return pre+(new _9(_11,"./"+url).toString())+_15; }); } return _12.replace(_f,function(_16,_17,_18,_19,_1a,_1b){ if(_18){ return "@import \""+(new _9(_11,"./"+_18).toString())+"\""+_1b; }else{ return "url("+(new _9(_11,"./"+_1a).toString())+")"+_1b; } }); }; var _1c=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi; var _1d=_d._adjustHtmlPaths=function(_1e,_1f){ var url=_1e||"./"; return _1f.replace(_1c,function(tag,_20,_21,_22,_23,_24,_25,end){ return _20+(_21?(_21+"="+_22+(new _9(url,_23).toString())+_22):("style="+_24+_10(url,_25)+_24))+end; }); }; var _26=_d._snarfStyles=function(_27,_28,_29){ _29.attributes=[]; _28=_28.replace(/<[!][-][-](.|\s)*?[-][-]>/g,function(_2a){ return _2a.replace(/<(\/?)style\b/ig,"<$1Style").replace(/<(\/?)link\b/ig,"<$1Link").replace(/@import "/ig,"@ import \""); }); return _28.replace(/(?:]*)>([\s\S]*?)<\/style>|]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_2b,_2c,_2d,_2e,_2f,_30){ var i,_31=(_2c||_2e||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1"); if(_2d){ i=_29.push(_27?_10(_27,_2d):_2d); }else{ i=_29.push("@import \""+_30+"\";"); _31=_31.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,""); } if(_31){ _31=_31.split(/\s+/); var _32={},tmp; for(var j=0,e=_31.length;j/g,function(_36){ return _36.replace(/<(\/?)script\b/ig,"<$1Script"); }); function _37(src){ if(_35.downloadRemote){ src=src.replace(/&([a-z0-9#]+);/g,function(m,_38){ switch(_38){ case "amp": return "&"; case "gt": return ">"; case "lt": return "<"; default: return _38.charAt(0)=="#"?String.fromCharCode(_38.substring(1)):"&"+_38+";"; } }); _a.get({url:src,sync:true,load:function(_39){ _35.code+=_39+";"; },error:_35.errBack}); } }; return _34.replace(/]*type=['"]?(?:dojo\/|text\/html\b))[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?>([\s\S]*?)<\/script>/gi,function(_3a,_3b,src,_3c){ if(src){ _37(src); }else{ _35.code+=_3c; } return ""; }); }; var _3d=_d.evalInGlobal=function(_3e,_3f){ _3f=_3f||_c.doc.body; var n=_3f.ownerDocument.createElement("script"); n.type="text/javascript"; _3f.appendChild(n); n.text=_3e; }; _d._ContentSetter=_1(_4._ContentSetter,{adjustPaths:false,referencePath:".",renderStyles:false,executeScripts:false,scriptHasHooks:false,scriptHookReplacement:null,_renderStyles:function(_40){ this._styleNodes=[]; var st,att,_41,doc=this.node.ownerDocument; var _42=doc.getElementsByTagName("head")[0]; for(var i=0,e=_40.length;i|)/g,""); } if(this.scriptHasHooks){ _48=_48.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement); } try{ _3d(_48,this.node); } catch(e){ this._onError("Exec","Error eval script in "+this.id+", "+e.message,e); } } var _4a=this.getInherited(arguments),_4b=arguments,d=new _2(); _7(_6.hitch(this,function(){ _4a.apply(this,_4b); _b(this.parseDeferred,function(){ d.resolve(); }); })); return d.promise; },tearDown:function(){ this.inherited(arguments); delete this._styles; if(this._styleNodes&&this._styleNodes.length){ while(this._styleNodes.length){ _3.destroy(this._styleNodes.pop()); } } delete this._styleNodes; _6.mixin(this,_d._ContentSetter.prototype); }}); _d.set=function(_4c,_4d,_4e){ if(!_4e){ return _4._setNodeContent(_4c,_4d,true); }else{ var op=new _d._ContentSetter(_6.mixin(_4e,{content:_4d,node:_4c})); return op.set(); } }; return _d; });