/*
	Copyright (c) 2004-2016, The JS Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

//>>built
define("dojo/_base/loader","./kernel ../has require module ../json ./lang ./array".split(" "),function(h,C,w,O,D,t,E){var u=function(a){return a.replace(/\./g,"/")},P=/\/\/>>built/,z=[],Q=[],x=function(a,b,c){z.push(c);E.forEach(a.split(","),function(d){d=q(d,b.module);Q.push(d);F(d)});G()},G=function(){var a;for(a in H){var b=H[a];void 0===b.noReqPluginCheck&&(b.noReqPluginCheck=/loadInit!/.test(a)||/require!/.test(a)?1:0);if(!b.executed&&!b.noReqPluginCheck&&b.injected==R)return}S(function(){var c=
z;z=[];E.forEach(c,function(d){d(1)})})},T=/\/\/.*|\/\*[\s\S]*?\*\/|("(?:\\.|[^"])*"|'(?:\\.|[^'])*'|`(?:\\.|[^`])*`)/mg,A=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,U=/(^|\s)(require|define)\s*\(/m,I=function(a,b){var c=[],d=[];var k=[];for(b=b||a.replace(T,"$1");k=A.exec(b);){var e=A.lastIndex;var l=e-k[0].length;var r=void 0,p=b,n=/\(|\)/g,m=1;for(n.lastIndex=e;(r=n.exec(p))&&(m=")"==r[0]?m-1:m+1,0!=m););if(0!=m)throw"unmatched paren around character "+
n.lastIndex+" in: "+p;e=[h.trim(p.substring(l,n.lastIndex))+";\n",n.lastIndex];"loadInit"==k[2]?c.push(e[0]):d.push(e[0]);A.lastIndex=e[1]}k=c.concat(d);return k.length||!U.test(b)?[a.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 \x26\x26 dojo.loadInit("),k.join(""),k]:0},g=w.initSyncLoader(x,G,function(a,b){var c,d=[],k=[];if(P.test(b)||!(c=I(b)))return 0;var e=a.mid+"-*loadInit";for(var l in q("dojo",a).result.scopeMap)d.push(l),k.push('"'+l+'"');return"// xdomain rewrite of "+a.mid+"\ndefine('"+e+
"',{\n\tnames:"+D.stringify(d)+",\n\tdef:function("+d.join(",")+"){"+c[1]+"}});\n\ndefine("+D.stringify(d.concat(["dojo/loadInit!"+e]))+", function("+d.join(",")+"){\n"+c[0]+"});"}),V=g.sync,R=g.requested,W=g.arrived,J=g.nonmodule,X=g.executing,K=g.executed,v=g.syncExecStack,H=g.modules,L=g.execQ,q=g.getModule,F=g.injectModule,M=g.setArrived,Y=g.signal,Z=g.finishExec,aa=g.execModule,N=g.getLegacyMode,S=g.guardCheckComplete;x=g.dojoRequirePlugin;h.provide=function(a){var b=v[0],c=t.mixin(q(u(a),w.module),
{executed:X,result:t.getObject(a,!0)});M(c);b&&(b.provides||(b.provides=[])).push(function(){c.result=t.getObject(a);delete c.provides;c.executed!==K&&Z(c)});return c.result};C.add("config-publishRequireResult",1,0,0);h.require=function(a,b){var c=function(d,k){var e=q(u(d),w.module);if(v.length&&v[0].finish)v[0].finish.push(d);else{if(e.executed)return e.result;k&&(e.result=J);var l=N();F(e);l=N();e.executed!==K&&e.injected===W&&g.guardCheckComplete(function(){aa(e)});if(e.executed)return e.result;
l==V?e.cjs?L.unshift(e):v.length&&(v[0].finish=[d]):L.push(e)}}(a,b);C("config-publishRequireResult")&&!t.exists(a)&&void 0!==c&&t.setObject(a,c);return c};h.loadInit=function(a){a()};h.registerModulePath=function(a,b){var c={};c[a.replace(/\./g,"/")]=b;w({paths:c})};h.platformRequire=function(a){a=(a.common||[]).concat(a[h._name]||a["default"]||[]);for(var b;a.length;)t.isArray(b=a.shift())?h.require.apply(h,b):h.require(b)};h.requireIf=h.requireAfterIf=function(a,b,c){a&&h.require(b,c)};h.requireLocalization=
function(a,b,c){w(["../i18n"],function(d){d.getLocalization(a,b,c)})};return{extractLegacyApiApplications:I,require:x,loadInit:function(a,b,c){b([a],function(d){b(d.names,function(){for(var k="",e=[],l=0;l<arguments.length;l++)k+="var "+d.names[l]+"\x3d arguments["+l+"]; ",e.push(arguments[l]);eval(k);var r=b.module,p=[],n;k={provide:function(f){f=u(f);f=q(f,r);f!==r&&M(f)},require:function(f,B){f=u(f);B&&(q(f,r).result=J);p.push(f)},requireLocalization:function(f,B,y){n||(n=["dojo/i18n"]);y=(y||
h.locale).toLowerCase();f=u(f)+"/nls/"+(/root/i.test(y)?"":y+"/")+u(B);q(f,r).isXd&&n.push("dojo/i18n!"+f)},loadInit:function(f){f()}};l={};var m;try{for(m in k)l[m]=h[m],h[m]=k[m];d.def.apply(null,e)}catch(f){Y("error",[{src:O.id,id:"failedDojoLoadInit"},f])}finally{for(m in k)h[m]=l[m]}n&&(p=p.concat(n));p.length?x(p.join(","),b,c):c()})})}}});