(function(){var a=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],h=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,g=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,c=typeof location!=="undefined"&&location.href,f=c&&location.protocol&&location.protocol.replace(/\:/,""),e=c&&location.hostname,d=c&&(location.port||void 0),b=[];define(function(){var k,j,i;typeof window!=="undefined"&&window.navigator&&window.document?j=function(m,n){var l=k.createXhr();l.open("GET",m,!0);l.onreadystatechange=function(){l.readyState===4&&n(l.responseText)};l.send(null)}:typeof process!=="undefined"&&process.versions&&process.versions.node?(i=require.nodeRequire("fs"),j=function(m,n){var l=i.readFileSync(m,"utf8");l.indexOf("\ufeff")===0&&(l=l.substring(1));n(l)}):typeof Packages!=="undefined"&&(j=function(m,r){var l=new java.io.File(m),p=java.lang.System.getProperty("line.separator"),l=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(l),"utf-8")),q,o,n="";try{q=new java.lang.StringBuffer;(o=l.readLine())&&o.length()&&o.charAt(0)===65279&&(o=o.substring(1));for(q.append(o);(o=l.readLine())!==null;){q.append(p),q.append(o)}n=String(q.toString())}finally{l.close()}r(n)});return k={version:"0.0.0",strip:function(l){if(l){var l=l.replace(h,""),m=l.match(g);m&&(l=m[1])}else{l=""}return l},jsEscape:function(l){return l.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},createXhr:function(){var m,o,l;if(typeof XMLHttpRequest!=="undefined"){return new XMLHttpRequest}else{for(o=0;o<3;o++){l=a[o];try{m=new ActiveXObject(l)}catch(n){}if(m){a=[l];break}}}if(!m){throw Error("createXhr(): XMLHttpRequest not available")}return m},get:j,parseName:function(m){var o=!1,l=m.indexOf("."),n=m.substring(0,l),m=m.substring(l+1,m.length),l=m.indexOf("!");l!==-1&&(o=m.substring(l+1,m.length),o=o==="strip",m=m.substring(0,l));return{moduleName:n,ext:m,strip:o}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(m,q,l,o){var p=k.xdRegExp.exec(m),n;if(!p){return !0}m=p[2];p=p[3];p=p.split(":");n=p[1];p=p[0];return(!m||m===q)&&(!p||p===l)&&(!n&&!p||n===o)},finishLoad:function(m,p,l,n,o){l=p?k.strip(l):l;o.isBuild&&(b[m]=l);n(l)},load:function(o,t,n,r){if(r.isBuild&&!r.inlineText){n()}else{var s=k.parseName(o),q=s.moduleName+"."+s.ext,l=t.toUrl(q),p=r&&r.text&&r.text.useXhr||k.useXhr;!c||p(l,f,e,d)?k.get(l,function(m){k.finishLoad(o,s.strip,m,n,r)}):t([q],function(m){k.finishLoad(s.moduleName+"."+s.ext,s.strip,m,n,r)})}},write:function(m,o,l){if(o in b){var n=k.jsEscape(b[o]);l.asModule(m+"!"+o,"define(function () { return '"+n+"';});\n")}},writeFile:function(m,r,l,p,q){var r=k.parseName(r),o=r.moduleName+"."+r.ext,n=l.toUrl(r.moduleName+"."+r.ext)+".js";k.load(o,l,function(){var s=function(t){return p(n,t)};s.asModule=function(u,t){return p.asModule(u,n,t)};k.write(m,o,s,q)},q)}}})})(); |