//>>built
(function(f,m){var l,k=function(){},e=function(a){for(var b in a)return 0;return 1},c={}.toString,g=function(a){return"[object Function]"==c.call(a)},d=function(a){return"[object String]"==c.call(a)},b=function(a){return"[object Array]"==c.call(a)},a=function(a,b){if(a)for(var h=0;h<a.length;)b(a[h++])},h=function(a,b){for(var h in b)a[h]=b[h];return a},p=function(a,b){return h(Error(a),{src:"dojoLoader",info:b})},n=1,t=function(){return"_"+n++},q=function(a,b,h){return La(a,b,h,0,q)},s=this,r=s.document,
w=r&&r.createElement("DiV"),u=q.has=function(a){return g(v[a])?v[a]=v[a](s,r,w):v[a]},v=u.cache=m.hasCache;u.add=function(a,b,h,d){(void 0===v[a]||d)&&(v[a]=b);return h&&u(a)};u.add("host-webworker","undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);u("host-webworker")&&(h(m.hasCache,{"host-browser":0,dom:0,"dojo-dom-ready-api":0,"dojo-sniff":0,"dojo-inject-api":1,"host-webworker":1,"dojo-guarantee-console":0}),m.loaderPatch={injectUrl:function(a,b){try{importScripts(a),b()}catch(h){console.error(h)}}});
for(var x in f.has)u.add(x,f.has[x],0,1);var y=0,z=[],A=0,E=k,B=k,G;q.isXdUrl=k;q.initSyncLoader=function(a,b,h){A||(A=a,E=b,B=h);return{sync:"sync",requested:1,arrived:2,nonmodule:3,executing:4,executed:5,syncExecStack:z,modules:M,execQ:U,getModule:X,injectModule:na,setArrived:ba,signal:C,finishExec:ea,execModule:fa,dojoRequirePlugin:A,getLegacyMode:function(){return y},guardCheckComplete:ga}};var L=location.protocol,I=location.host;q.isXdUrl=function(a){return/^\./.test(a)?!1:/^\/\//.test(a)?!0:
(a=a.match(/^([^\/\:]+\:)\/+([^\/]+)/))&&(a[1]!=L||I&&a[2]!=I)};u.add("dojo-force-activex-xhr",!r.addEventListener&&"file:"==window.location.protocol);u.add("native-xhr","undefined"!=typeof XMLHttpRequest);if(u("native-xhr")&&!u("dojo-force-activex-xhr"))G=function(){return new XMLHttpRequest};else{var J=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],H;for(l=0;3>l;)try{if(H=J[l++],new ActiveXObject(H))break}catch(K){}G=function(){return new ActiveXObject(H)}}q.getXhr=G;u.add("dojo-gettext-api",
1);q.getText=function(a,b,h){var d=G();d.open("GET",oa(a),!1);d.send(null);if(200==d.status||!location.host&&!d.status)h&&h(d.responseText,b);else throw p("xhrFailed",d.status);return d.responseText};var F=u("csp-restrictions")?function(){}:new Function("return eval(arguments[0]);");q.eval=function(a,b){return F(a+"\r\n//# sourceURL\x3d"+b)};var D={},C=q.signal=function(h,d){var c=D[h];a(c&&c.slice(0),function(a){a.apply(null,b(d)?d:[d])})},P=q.on=function(a,b){var h=D[a]||(D[a]=[]);h.push(b);return{remove:function(){for(var a=
0;a<h.length;a++)if(h[a]===b){h.splice(a,1);break}}}},T=[],N={},Q=[],R={},O=q.map={},V=[],M={},S="",Z={},pa={},qa={},ca=0,ra=function(a,b){b=!1!==b;var h,d,c,p;for(h in pa)d=pa[h],(c=h.match(/^url\:(.+)/))?Z["url:"+Ma(c[1],a)]=d:"*now"==h?p=d:"*noref"!=h&&(c=ha(h,a,!0),Z[c.mid]=Z["url:"+c.url]=d);p&&p(Ca(a));b&&(pa={})},Na=function(a){return a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(a){return"\\"+a})},Da=function(a,b){b.splice(0,b.length);for(var h in a)b.push([h,a[h],RegExp("^"+Na(h)+"(/|$)"),
h.length]);b.sort(function(a,b){return b[3]-a[3]});return b},$a=function(b,h){a(b,function(a){h.push([d(a[0])?RegExp("^"+Na(a[0])+"$"):a[0],a[1]])})},Oa=function(a){var b=a.name;b||(b=a,a={name:b});a=h({main:"main"},a);a.location=a.location?a.location:b;a.packageMap&&(O[b]=a.packageMap);a.main.indexOf("./")||(a.main=a.main.substring(2));R[b]=a},Pa=[],ia=function(b,c,p){for(var n in b){"waitSeconds"==n&&(q.waitms=1E3*(b[n]||0));"cacheBust"==n&&(S=b[n]?d(b[n])?b[n]:(new Date).getTime()+"":"");if("baseUrl"==
n||"combo"==n)q[n]=b[n];if("async"==n){var g=b[n];q.legacyMode=y=d(g)&&/sync|legacyAsync/.test(g)?g:!g?"sync":!1;q.async=!y}b[n]!==v&&(q.rawConfig[n]=b[n],"has"!=n&&u.add("config-"+n,b[n],0,c))}q.baseUrl||(q.baseUrl="./");/\/$/.test(q.baseUrl)||(q.baseUrl+="/");for(n in b.has)u.add(n,b.has[n],0,c);a(b.packages,Oa);for(var e in b.packagePaths)a(b.packagePaths[e],function(a){var b=e+"/"+a;d(a)&&(a={name:a});a.location=b;Oa(a)});Da(h(O,b.map),V);a(V,function(a){a[1]=Da(a[1],[]);"*"==a[0]&&(V.star=a)});
Da(h(N,b.paths),Q);$a(b.aliases,T);if(c)Pa.push({config:b.config});else for(n in b.config)c=X(n,p),c.config=h(c.config||{},b.config[n]);b.cache&&(ra(),pa=b.cache,ra(0,!!b.cache["*noref"]));C("config",[b,q.rawConfig])};u("dojo-cdn");var sa=r.getElementsByTagName("script");l=0;for(var Y,aa,ta,ja;l<sa.length;){Y=sa[l++];if((ta=Y.getAttribute("src"))&&(ja=ta.match(/(((.*)\/)|^)dojo\.js(\W|$)/i)))aa=ja[3]||"",m.baseUrl=m.baseUrl||aa,ca=Y;if(ta=Y.getAttribute("data-dojo-config")||Y.getAttribute("djConfig"))qa=
q.eval("({ "+ta+" })","data-dojo-config"),ca=Y}q.rawConfig={};ia(m,1);u("dojo-cdn")&&((R.dojo.location=aa)&&(aa+="/"),R.dijit.location=aa+"../dijit/",R.dojox.location=aa+"../dojox/");ia(f,1);ia(qa,1);var ka=function(b){ga(function(){a(b.deps,na)})},La=function(a,c,n,g,e){var v;if(d(a)){if((v=X(a,g,!0))&&v.executed)return v.result;throw p("undefinedModule",a);}b(a)||(ia(a,0,g),a=c,c=n);if(b(a))if(a.length){n="require*"+t();for(var r,s=[],f=0;f<a.length;)r=a[f++],s.push(X(r,g));v=h(ua("",n,0,""),{injected:2,
deps:s,def:c||k,require:g?g.require:q,gc:1});M[v.mid]=v;ka(v);var u=la&&"sync"!=y;ga(function(){fa(v,u)});v.executed||U.push(v);da()}else c&&c();return e},Ca=function(a){if(!a)return q;var b=a.require;b||(b=function(h,d,c){return La(h,d,c,a,b)},a.require=h(b,q),b.module=a,b.toUrl=function(b){return Ma(b,a)},b.toAbsMid=function(b){return Ea(b,a)},b.syncLoadNls=function(b){b=ha(b,a);var h=M[b.mid];if(!h||!h.executed)if($=Z[b.mid]||Z["url:"+b.url])va($),h=M[b.mid];return h&&h.executed&&h.result});return b},
U=[],wa=[],W={},ab=function(a){a.injected=1;W[a.mid]=1;a.url&&(W[a.url]=a.pack||1);Qa()},ba=function(a){a.injected=2;delete W[a.mid];a.url&&delete W[a.url];e(W)&&(xa(),"xd"==y&&(y="sync"))},bb=q.idle=function(){return!wa.length&&e(W)&&!U.length&&!la},ya=function(a,b){if(b)for(var h=0;h<b.length;h++)if(b[h][2].test(a))return b[h];return 0},Ra=function(a){var b=[],h,d;for(a=a.replace(/\\/g,"/").split("/");a.length;)h=a.shift(),".."==h&&b.length&&".."!=d?(b.pop(),d=b[b.length-1]):"."!=h&&b.push(d=h);
return b.join("/")},ua=function(a,b,h,d){var c=q.isXdUrl(d);return{pid:a,mid:b,pack:h,url:d,executed:0,def:0,isXd:c,isAmd:!!(c||R[a]&&R[a].isAmd)}},Sa=function(b,h,d,c,n,e,q,t,v,r){var s,k,f,w;w=/^\./.test(b);if(/(^\/)|(\:)|(\.js$)/.test(b)||w&&!h)return ua(0,b,0,b);b=Ra(w?h.mid+"/../"+b:b);if(/^\./.test(b))throw p("irrationalPath",b);!r&&(!w&&e.star)&&(f=ya(b,e.star[1]));!f&&h&&(f=(f=ya(h.mid,e))&&ya(b,f[1]));f&&(b=f[1]+b.substring(f[3]));h=(ja=b.match(/^([^\/]+)(\/(.+))?$/))?ja[1]:"";(s=d[h])?b=
h+"/"+(k=ja[3]||s.main):h="";var x=0;a(t,function(a){var h=b.match(a[0]);h&&0<h.length&&(x=g(a[1])?b.replace(a[0],a[1]):a[1])});if(x)return Sa(x,0,d,c,n,e,q,t,v);if(d=c[b])return v?ua(d.pid,d.mid,d.pack,d.url):c[b];c=(f=ya(b,q))?f[1]+b.substring(f[3]):h?s.location+"/"+k:u("config-tlmSiblingOfDojo")?"../"+b:b;/(^\/)|(\:)/.test(c)||(c=n+c);return ua(h,b,s,Ra(c+".js"))},ha=function(a,b,h){return Sa(a,b,R,M,q.baseUrl,V,Q,T,void 0,h)},Ta=function(a,b,h){return a.normalize?a.normalize(b,function(a){return Ea(a,
h)}):Ea(b,h)},Ua=0,X=function(a,b,h){var d,c;(d=a.match(/^(.+?)\!(.*)$/))?(c=X(d[1],b,h),"sync"==y&&!c.executed&&(na(c),2===c.injected&&!c.executed&&ga(function(){fa(c)}),c.executed?za(c):U.unshift(c)),5===c.executed&&!c.load&&za(c),c.load?(d=Ta(c,d[2],b),a=c.mid+"!"+(c.dynamic?++Ua+"!":"")+d):(d=d[2],a=c.mid+"!"+ ++Ua+"!waitingForPlugin"),a={plugin:c,mid:a,req:Ca(b),prid:d}):a=ha(a,b);return M[a.mid]||!h&&(M[a.mid]=a)},Ea=q.toAbsMid=function(a,b){return ha(a,b).mid},Ma=q.toUrl=function(a,b){var h=
ha(a+"/x",b),d=h.url;return oa(0===h.pid?a:d.substring(0,d.length-5))},Va={injected:2,executed:5,def:3,result:3},Fa=function(a){return M[a]=h({mid:a},Va)},cb=Fa("require"),db=Fa("exports"),eb=Fa("module"),Aa={},Ga=0,za=function(a){var b=a.result;a.dynamic=b.dynamic;a.normalize=b.normalize;a.load=b.load;return a},fb=function(b){var d={};a(b.loadQ,function(a){var c=Ta(b,a.prid,a.req.module),p=b.dynamic?a.mid.replace(/waitingForPlugin$/,c):b.mid+"!"+c,c=h(h({},a),{mid:p,prid:c,injected:0});if(!M[p]||
!M[p].injected)Wa(M[p]=c);d[a.mid]=M[p];ba(a);delete M[a.mid]});b.loadQ=0;var c=function(a){for(var b=a.deps||[],h=0;h<b.length;h++)(a=d[b[h].mid])&&(b[h]=a)},p;for(p in M)c(M[p]);a(U,c)},ea=function(b){q.trace("loader-finish-exec",[b.mid]);b.executed=5;b.defOrder=Ga++;a(b.provides,function(a){a()});b.loadQ&&(za(b),fb(b));for(l=0;l<U.length;)U[l]===b?U.splice(l,1):l++;/^require\*/.test(b.mid)&&delete M[b.mid]},gb=[],fa=function(a,b){if(4===a.executed)return q.trace("loader-circular-dependency",[gb.concat(a.mid).join("-\x3e")]),
!a.def||b?Aa:a.cjs&&a.cjs.exports;if(!a.executed){if(!a.def)return Aa;var h=a.mid,d=a.deps||[],c,n=[],e=0;for(a.executed=4;c=d[e++];){c=c===cb?Ca(a):c===db?a.cjs.exports:c===eb?a.cjs:fa(c,b);if(c===Aa)return a.executed=0,q.trace("loader-exec-module",["abort",h]),Aa;n.push(c)}q.trace("loader-run-factory",[a.mid]);var h=a.def,t;z.unshift(a);if(u("config-dojo-loader-catches"))try{t=g(h)?h.apply(null,n):h}catch(v){C("error",a.result=p("factoryThrew",[a,v]))}else t=g(h)?h.apply(null,n):h;a.result=void 0===
t&&a.cjs?a.cjs.exports:t;z.shift(a);ea(a)}return a.result},la=0,ga=function(a){try{la++,a()}catch(b){throw b;}finally{la--}bb()&&C("idle",[])},da=function(){la||ga(function(){E();for(var a,b,h=0;h<U.length;)a=Ga,b=U[h],fa(b),a!=Ga?(E(),h=0):h++})};void 0===u("dojo-loader-eval-hint-url")&&u.add("dojo-loader-eval-hint-url",1);var oa="function"==typeof f.fixupUrl?f.fixupUrl:function(a){a+="";return a+(S?(/\?/.test(a)?"\x26":"?")+S:"")},Wa=function(a){var b=a.plugin;5===b.executed&&!b.load&&za(b);var h=
function(b){a.result=b;ba(a);ea(a);da()};b.load?b.load(a.prid,a.req,h):b.loadQ?b.loadQ.push(a):(b.loadQ=[a],U.unshift(b),na(b))},$=0,ma=0,Ha=0,va=function(a,b){u("config-stripStrict")&&(a=a.replace(/(["'])use strict\1/g,""));Ha=1;if(u("config-dojo-loader-catches"))try{a===$?$.call(null):q.eval(a,u("dojo-loader-eval-hint-url")?b.url:b.mid)}catch(h){C("error",p("evalModuleThrew",b))}else a===$?$.call(null):q.eval(a,u("dojo-loader-eval-hint-url")?b.url:b.mid);Ha=0},na=function(b){var d=b.mid,c=b.url;
if(!b.executed&&!b.injected&&!(W[d]||b.url&&(b.pack&&W[b.url]===b.pack||1==W[b.url])))if(ab(b),b.plugin)Wa(b);else{var n=function(){Xa(b);if(2!==b.injected){if(u("dojo-enforceDefine")){C("error",p("noDefine",b));return}ba(b);h(b,Va);q.trace("loader-define-nonmodule",[b.url])}y?!z.length&&da():da()};if($=Z[d]||Z["url:"+b.url])q.trace("loader-inject",["cache",b.mid,c]),va($,b),n();else{if(y)if(b.isXd)"sync"==y&&(y="xd");else if(!(b.isAmd&&"sync"!=y)){var g=function(h){if("sync"==y){z.unshift(b);va(h,
b);z.shift();Xa(b);b.cjs||(ba(b),ea(b));if(b.finish){h=d+"*finish";var p=b.finish;delete b.finish;Ia(h,["dojo",("dojo/require!"+p.join(",")).replace(/\./g,"/")],function(b){a(p,function(a){b.require(a)})});U.unshift(X(h))}n()}else(h=B(b,h))?(va(h,b),n()):(ma=b,q.injectUrl(oa(c),n,b),ma=0)};q.trace("loader-inject",["xhr",b.mid,c,"sync"!=y]);if(u("config-dojo-loader-catches"))try{q.getText(c,"sync"!=y,g)}catch(e){C("error",p("xhrInjectFailed",[b,e]))}else q.getText(c,"sync"!=y,g);return}q.trace("loader-inject",
["script",b.mid,c]);ma=b;q.injectUrl(oa(c),n,b);ma=0}}},Ja=function(a,b,d){q.trace("loader-define-module",[a.mid,b]);var c=a.mid;if(2===a.injected)return C("error",p("multipleDefine",a)),a;h(a,{deps:b,def:d,cjs:{id:a.mid,uri:a.url,exports:a.result={},setExports:function(b){a.cjs.exports=b},config:function(){return a.config}}});for(var n=0;b[n];n++)b[n]=X(b[n],a);y&&!W[c]&&(ka(a),U.push(a),da());ba(a);!g(d)&&!b.length&&(a.result=d,ea(a));return a},Xa=function(b,h){for(var d=[],c,p;wa.length;)p=wa.shift(),
h&&(p[0]=h.shift()),c=p[0]&&X(p[0])||b,d.push([c,p[1],p[2]]);ra(b);a(d,function(a){ka(Ja.apply(null,a))})},Ba=0,xa=k,Qa=k,xa=function(){Ba&&clearTimeout(Ba);Ba=0},Qa=function(){xa();q.waitms&&(Ba=s.setTimeout(function(){xa();C("error",p("timeout",W))},q.waitms))};u.add("ie-event-behavior",r.attachEvent&&"undefined"===typeof Windows&&("undefined"===typeof opera||"[object Opera]"!=opera.toString()));var Ka=function(a,b,h,d){if(u("ie-event-behavior"))return a.attachEvent(h,d),function(){a.detachEvent(h,
d)};a.addEventListener(b,d,!1);return function(){a.removeEventListener(b,d,!1)}},hb=Ka(window,"load","onload",function(){q.pageLoaded=1;try{"complete"!=r.readyState&&(r.readyState="complete")}catch(a){}hb()}),sa=r.getElementsByTagName("script");for(l=0;!ca;)if(!/^dojo/.test((Y=sa[l++])&&Y.type))ca=Y;q.injectUrl=function(a,b,h){h=h.node=r.createElement("script");var d=Ka(h,"load","onreadystatechange",function(a){a=a||window.event;var h=a.target||a.srcElement;if("load"===a.type||/complete|loaded/.test(h.readyState))d(),
c(),b&&b()}),c=Ka(h,"error","onerror",function(b){d();c();C("error",p("scriptError",[a,b]))});h.type="text/javascript";h.charset="utf-8";h.src=a;ca.parentNode.insertBefore(h,ca);return h};q.log=k;q.trace=k;var Ia=function(a,b,h){var c=arguments.length,n=["require","exports","module"],e=[0,a,b];1==c?e=[0,g(a)?n:[],a]:2==c&&d(a)?e=[a,g(b)?n:[],b]:3==c&&(e=[a,b,h]);q.trace("loader-define",e.slice(0,2));if((c=e[0]&&X(e[0]))&&!W[c.mid])ka(Ja(c,e[1],e[2]));else if(!u("ie-event-behavior")||Ha)wa.push(e);
else{c=c||ma;if(!c)for(a in W)if((n=M[a])&&n.node&&"interactive"===n.node.readyState){c=n;break}c?(ra(c),ka(Ja(c,e[1],e[2]))):C("error",p("ieDefineFailed",e[0]));da()}};Ia.amd={vendor:"dojotoolkit.org"};h(h(q,m.loaderPatch),f.loaderPatch);P("error",function(a){try{if(console.error(a),a instanceof Error)for(var b in a);}catch(h){}});h(q,{uid:t,cache:Z,packs:R});if(!s.define){s.define=Ia;s.require=q;a(Pa,function(a){ia(a)});var Ya=qa.deps||f.deps||m.deps,Za=qa.callback||f.callback||m.callback;q.boot=
Ya||Za?[Ya||[],Za]:0}})(this.dojoConfig||this.djConfig||this.require||{},{async:0,hasCache:{"config-selectorEngine":"lite","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-loader":1,dom:1,"host-browser":1},packages:[{location:"../app",name:"app"},{location:"../dgrid",main:"OnDemandGrid",name:"dgrid"},{location:"../dijit",name:"dijit"},{location:".",name:"dojo"},{location:"../dojox",name:"dojox"},{location:"../put-selector",main:"put",name:"put-selector"},{location:"../xstyle",name:"xstyle"}]});
require({cache:{"dojo/domReady":function(){define(["./has"],function(f){function m(a){b.push(a);d&&l()}function l(){if(!a){for(a=!0;b.length;)try{b.shift()(e)}catch(h){console.error(h,"in domReady callback",h.stack)}a=!1;m._onQEmpty()}}var k=function(){return this}(),e=document,c={loaded:1,complete:1},g="string"!=typeof e.readyState,d=!!c[e.readyState],b=[],a;m.load=function(a,b,h){m(h)};m._Q=b;m._onQEmpty=function(){};g&&(e.readyState="loading");if(!d){var h=[],p=function(a){a=a||k.event;d||"readystatechange"==
a.type&&!c[e.readyState]||(g&&(e.readyState="complete"),d=1,l())},n=function(a,h){a.addEventListener(h,p,!1);b.push(function(){a.removeEventListener(h,p,!1)})};if(!f("dom-addeventlistener")){var n=function(a,h){h="on"+h;a.attachEvent(h,p);b.push(function(){a.detachEvent(h,p)})},t=e.createElement("div");try{t.doScroll&&null===k.frameElement&&h.push(function(){try{return t.doScroll("left"),1}catch(a){}})}catch(q){}}n(e,"DOMContentLoaded");n(k,"load");"onreadystatechange"in e?n(e,"readystatechange"):
g||h.push(function(){return c[e.readyState]});if(h.length){var s=function(){if(!d){for(var a=h.length;a--;)if(h[a]()){p("poller");return}setTimeout(s,30)}};s()}}return m})},"dojo/has":function(){define(["require","module"],function(f,m){var l=f.has||function(){};l.add("dom-addeventlistener",!!document.addEventListener);l.add("touch","ontouchstart"in document||"onpointerdown"in document&&0<navigator.maxTouchPoints||window.navigator.msMaxTouchPoints);l.add("touch-events","ontouchstart"in document);
l.add("pointer-events","pointerEnabled"in window.navigator?window.navigator.pointerEnabled:"PointerEvent"in window);l.add("MSPointer",window.navigator.msPointerEnabled);l.add("device-width",screen.availWidth||innerWidth);var k=document.createElement("form");l.add("dom-attributes-explicit",0==k.attributes.length);l.add("dom-attributes-specified-flag",0<k.attributes.length&&40>k.attributes.length);l.clearElement=function(e){e.innerHTML="";return e};l.normalize=function(e,c){var g=e.match(/[\?:]|[^:\?]*/g),
d=0,b=function(a){var h=g[d++];if(":"==h)return 0;if("?"==g[d++]){if(!a&&l(h))return b();b(!0);return b(a)}return h||0};return(e=b())&&c(e)};l.load=function(e,c,g){e?c([e],g):g()};return l})},"dojo/dom":function(){define(["./sniff","./_base/window","./_base/kernel"],function(f,m,l){if(7>=f("ie"))try{document.execCommand("BackgroundImageCache",!1,!0)}catch(k){}var e={};f("ie")?e.byId=function(c,d){if("string"!=typeof c)return c;var b=d||m.doc,a=c&&b.getElementById(c);if(a&&(a.attributes.id.value==
c||a.id==c))return a;b=b.all[c];if(!b||b.nodeName)b=[b];for(var h=0;a=b[h++];)if(a.attributes&&a.attributes.id&&a.attributes.id.value==c||a.id==c)return a}:e.byId=function(c,d){return("string"==typeof c?(d||m.doc).getElementById(c):c)||null};l=l.global.document||null;f.add("dom-contains",!(!l||!l.contains));e.isDescendant=f("dom-contains")?function(c,d){return!(!(d=e.byId(d))||!d.contains(e.byId(c)))}:function(c,d){try{c=e.byId(c);for(d=e.byId(d);c;){if(c==d)return!0;c=c.parentNode}}catch(b){}return!1};
f.add("css-user-select",function(c,d,b){if(!b)return!1;c=b.style;d=["Khtml","O","Moz","Webkit"];b=d.length;var a="userSelect";do if("undefined"!==typeof c[a])return a;while(b--&&(a=d[b]+"UserSelect"));return!1});var c=f("css-user-select");e.setSelectable=c?function(g,d){e.byId(g).style[c]=d?"":"none"}:function(c,d){c=e.byId(c);var b=c.getElementsByTagName("*"),a=b.length;if(d)for(c.removeAttribute("unselectable");a--;)b[a].removeAttribute("unselectable");else for(c.setAttribute("unselectable","on");a--;)b[a].setAttribute("unselectable",
"on")};return e})},"dojo/sniff":function(){define(["./has"],function(f){var m=navigator,l=m.userAgent,m=m.appVersion,k=parseFloat(m);f.add("air",0<=l.indexOf("AdobeAIR"));f.add("wp",parseFloat(l.split("Windows Phone")[1])||void 0);f.add("msapp",parseFloat(l.split("MSAppHost/")[1])||void 0);f.add("khtml",0<=m.indexOf("Konqueror")?k:void 0);f.add("edge",parseFloat(l.split("Edge/")[1])||void 0);f.add("opr",parseFloat(l.split("OPR/")[1])||void 0);f.add("webkit",!f("wp")&&!f("edge")&&parseFloat(l.split("WebKit/")[1])||
void 0);f.add("chrome",!f("edge")&&!f("opr")&&parseFloat(l.split("Chrome/")[1])||void 0);f.add("android",!f("wp")&&parseFloat(l.split("Android ")[1])||void 0);f.add("safari",0<=m.indexOf("Safari")&&!f("wp")&&!f("chrome")&&!f("android")&&!f("edge")&&!f("opr")?parseFloat(m.split("Version/")[1]):void 0);f.add("mac",0<=m.indexOf("Macintosh"));f.add("quirks","BackCompat"==document.compatMode);if(!f("wp")&&l.match(/(iPhone|iPod|iPad)/)){var e=RegExp.$1.replace(/P/,"p"),c=l.match(/OS ([\d_]+)/)?RegExp.$1:
"1",c=parseFloat(c.replace(/_/,".").replace(/_/g,""));f.add(e,c);f.add("ios",c)}f.add("bb",(0<=l.indexOf("BlackBerry")||0<=l.indexOf("BB10"))&&parseFloat(l.split("Version/")[1])||void 0);f.add("trident",parseFloat(m.split("Trident/")[1])||void 0);f.add("svg","undefined"!==typeof SVGAngle);f("webkit")||(0<=l.indexOf("Opera")&&f.add("opera",9.8<=k?parseFloat(l.split("Version/")[1])||k:k),0<=l.indexOf("Gecko")&&(!f("wp")&&!f("khtml")&&!f("trident")&&!f("edge"))&&f.add("mozilla",k),f("mozilla")&&f.add("ff",
parseFloat(l.split("Firefox/")[1]||l.split("Minefield/")[1])||void 0),document.all&&!f("opera")&&(l=parseFloat(m.split("MSIE ")[1])||void 0,(m=document.documentMode)&&(5!=m&&Math.floor(l)!=m)&&(l=m),f.add("ie",l)),f.add("wii","undefined"!=typeof opera&&opera.wiiremote));return f})},"dojo/_base/window":function(){define(["./kernel","./lang","../sniff"],function(f,m,l){var k={global:f.global,doc:f.global.document||null,body:function(e){e=e||f.doc;return e.body||e.getElementsByTagName("body")[0]},setContext:function(e,
c){f.global=k.global=e;f.doc=k.doc=c},withGlobal:function(e,c,g,d){var b=f.global;try{return f.global=k.global=e,k.withDoc.call(null,e.document,c,g,d)}finally{f.global=k.global=b}},withDoc:function(e,c,g,d){var b=k.doc,a=l("quirks"),h=l("ie"),p,n,t;try{f.doc=k.doc=e;f.isQuirks=l.add("quirks","BackCompat"==f.doc.compatMode,!0,!0);if(l("ie")&&(t=e.parentWindow)&&t.navigator)p=parseFloat(t.navigator.appVersion.split("MSIE ")[1])||void 0,(n=e.documentMode)&&(5!=n&&Math.floor(p)!=n)&&(p=n),f.isIE=l.add("ie",
p,!0,!0);g&&"string"==typeof c&&(c=g[c]);return c.apply(g,d||[])}finally{f.doc=k.doc=b,f.isQuirks=l.add("quirks",a,!0,!0),f.isIE=l.add("ie",h,!0,!0)}}};m.mixin(f,k);return k})},"dojo/_base/kernel":function(){define(["../has","./config","require","module"],function(f,m,l,k){var e,c;e=function(){return this}();var g={},d={},b={config:m,global:e,dijit:g,dojox:d},g={dojo:["dojo",b],dijit:["dijit",g],dojox:["dojox",d]};k=l.map&&l.map[k.id.match(/[^\/]+/)[0]];for(c in k)g[c]?g[c][0]=k[c]:g[c]=[k[c],{}];
for(c in g)k=g[c],k[1]._scopeName=k[0],m.noGlobals||(e[k[0]]=k[1]);b.scopeMap=g;b.baseUrl=b.config.baseUrl=l.baseUrl;b.isAsync=l.async;b.locale=m.locale;e="$Rev: 91fa0cb $".match(/[0-9a-f]{7,}/);b.version={major:1,minor:11,patch:2,flag:"",revision:e?e[0]:NaN,toString:function(){var a=b.version;return a.major+"."+a.minor+"."+a.patch+a.flag+" ("+a.revision+")"}};f("csp-restrictions")||Function("d","d.eval \x3d function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(b);
b.exit=function(){};f("host-webworker");f.add("console-as-object",function(){return Function.prototype.bind&&console&&"object"===typeof console.log});"undefined"!=typeof console||(console={});k="assert count debug dir dirxml error group groupEnd info profile profileEnd time timeEnd trace warn log".split(" ");var a;for(e=0;a=k[e++];)console[a]?f("console-as-object")&&(console[a]=Function.prototype.bind.call(console[a],console)):function(){var b=a+"";console[b]="log"in console?function(){var a=Array.prototype.slice.call(arguments);
a.unshift(b+":");console.log(a.join(" "))}:function(){};console[b]._fake=!0}();b.deprecated=b.experimental=function(){};if(m.modulePaths){b.deprecated("dojo.modulePaths","use paths configuration");f={};for(c in m.modulePaths)f[c.replace(/\./g,"/")]=m.modulePaths[c];l({paths:f})}b.moduleUrl=function(a,d){b.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var c=null;a&&(c=l.toUrl(a.replace(/\./g,"/")+(d?"/"+d:"")+"/*.*").replace(/\/\*\.\*/,"")+(d?"":"/"));return c};b._hasResource={};return b})},
"dojo/_base/config":function(){define(["../has","require"],function(f,m){var l={},k=m.rawConfig,e;for(e in k)l[e]=k[e];if(!l.locale&&"undefined"!=typeof navigator&&(k=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language||navigator.userLanguage))l.locale=k.toLowerCase();return l})},"dojo/_base/lang":function(){define(["./kernel","../has","../sniff"],function(f,m){m.add("bug-for-in-skips-shadowed",function(){for(var a in{toString:1})return 0;return 1});var l=m("bug-for-in-skips-shadowed")?
"hasOwnProperty valueOf isPrototypeOf propertyIsEnumerable toLocaleString toString constructor".split(" "):[],k=l.length,e=function(a,b,d){d||(d=a[0]&&f.scopeMap[a[0]]?f.scopeMap[a.shift()][1]:f.global);try{for(var c=0;c<a.length;c++){var g=a[c];if(!(g in d))if(b)d[g]={};else return;d=d[g]}return d}catch(e){}},c=Object.prototype.toString,g=function(a,b,d){return(d||[]).concat(Array.prototype.slice.call(a,b||0))},d=/\{([^\}]+)\}/g,b={_extraNames:l,_mixin:function(a,b,d){var c,g,e,s={};for(c in b)if(g=
b[c],!(c in a)||a[c]!==g&&(!(c in s)||s[c]!==g))a[c]=d?d(g):g;if(m("bug-for-in-skips-shadowed")&&b)for(e=0;e<k;++e)if(c=l[e],g=b[c],!(c in a)||a[c]!==g&&(!(c in s)||s[c]!==g))a[c]=d?d(g):g;return a},mixin:function(a,h){a||(a={});for(var d=1,c=arguments.length;d<c;d++)b._mixin(a,arguments[d]);return a},setObject:function(a,b,d){var c=a.split(".");a=c.pop();return(d=e(c,!0,d))&&a?d[a]=b:void 0},getObject:function(a,b,d){return!a?d:e(a.split("."),b,d)},exists:function(a,h){return void 0!==b.getObject(a,
!1,h)},isString:function(a){return"string"==typeof a||a instanceof String},isArray:Array.isArray||function(a){return"[object Array]"==c.call(a)},isFunction:function(a){return"[object Function]"===c.call(a)},isObject:function(a){return void 0!==a&&(null===a||"object"==typeof a||b.isArray(a)||b.isFunction(a))},isArrayLike:function(a){return!!a&&!b.isString(a)&&!b.isFunction(a)&&!(a.tagName&&"form"==a.tagName.toLowerCase())&&(b.isArray(a)||isFinite(a.length))},isAlien:function(a){return a&&!b.isFunction(a)&&
/\{\s*\[native code\]\s*\}/.test(String(a))},extend:function(a,h){for(var d=1,c=arguments.length;d<c;d++)b._mixin(a.prototype,arguments[d]);return a},_hitchArgs:function(a,h){var d=b._toArray(arguments,2),c=b.isString(h);return function(){var g=b._toArray(arguments),e=c?(a||f.global)[h]:h;return e&&e.apply(a||this,d.concat(g))}},hitch:function(a,h){if(2<arguments.length)return b._hitchArgs.apply(f,arguments);h||(h=a,a=null);if(b.isString(h)){a=a||f.global;if(!a[h])throw['lang.hitch: scope["',h,'"] is null (scope\x3d"',
a,'")'].join("");return function(){return a[h].apply(a,arguments||[])}}return!a?h:function(){return h.apply(a,arguments||[])}},delegate:function(){function a(){}return function(h,d){a.prototype=h;var c=new a;a.prototype=null;d&&b._mixin(c,d);return c}}(),_toArray:m("ie")?function(){function a(a,b,d){d=d||[];for(b=b||0;b<a.length;b++)d.push(a[b]);return d}return function(b){return(b.item?a:g).apply(this,arguments)}}():g,partial:function(a){return b.hitch.apply(f,[null].concat(b._toArray(arguments)))},
clone:function(a){if(!a||"object"!=typeof a||b.isFunction(a))return a;if(a.nodeType&&"cloneNode"in a)return a.cloneNode(!0);if(a instanceof Date)return new Date(a.getTime());if(a instanceof RegExp)return RegExp(a);var h,d,c;if(b.isArray(a)){h=[];d=0;for(c=a.length;d<c;++d)d in a&&(h[d]=b.clone(a[d]))}else h=a.constructor?new a.constructor:{};return b._mixin(h,a,b.clone)},trim:String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replace:function(a,
h,c){return a.replace(c||d,b.isFunction(h)?h:function(a,d){return b.getObject(d,!1,h)})}};b.mixin(f,b);return b})},"dojo/parser":function(){define("require ./_base/kernel ./_base/lang ./_base/array ./_base/config ./dom ./_base/window ./_base/url ./aspect ./promise/all ./date/stamp ./Deferred ./has ./query ./on ./ready".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s){function r(a){return eval("("+a+")")}function w(a){var b=a._nameCaseMap,h=a.prototype;if(!b||b._extendCnt<v){var b=a._nameCaseMap=
{},d;for(d in h)"_"!==d.charAt(0)&&(b[d.toLowerCase()]=d);b._extendCnt=v}return b}function u(a,b){b||(b=f);var d=b._dojoParserCtorMap||(b._dojoParserCtorMap={}),h=a.join();if(!d[h]){for(var c=[],p=0,n=a.length;p<n;p++){var g=a[p];c[c.length]=d[g]=d[g]||l.getObject(g)||~g.indexOf("/")&&b(g)}p=c.shift();d[h]=c.length?p.createSubclass?p.createSubclass(c):p.extend.apply(p,c):p}return d[h]}new Date("X");var v=0;b.after(l,"extend",function(){v++},!0);var x={_clearCache:function(){v++;_ctorMap={}},_functionFromScript:function(a,
b){var d="",h="",c=a.getAttribute(b+"args")||a.getAttribute("args"),p=a.getAttribute("with"),c=(c||"").split(/\s*,\s*/);p&&p.length&&k.forEach(p.split(/\s*,\s*/),function(a){d+="with("+a+"){";h+="}"});return new Function(c,d+a.innerHTML+h)},instantiate:function(a,b,d){b=b||{};d=d||{};var h=(d.scope||m._scopeName)+"Type",c="data-"+(d.scope||m._scopeName)+"-",p=c+"type",n=c+"mixins",g=[];k.forEach(a,function(a){var d=h in b?b[h]:a.getAttribute(p)||a.getAttribute(h);if(d){var c=a.getAttribute(n),d=c?
[d].concat(c.split(/\s*,\s*/)):[d];g.push({node:a,types:d})}});return this._instantiate(g,b,d)},_instantiate:function(b,d,h,c){function p(a){!d._started&&!h.noStart&&k.forEach(a,function(a){"function"===typeof a.startup&&!a._started&&a.startup()});return a}b=k.map(b,function(a){var b=a.ctor||u(a.types,h.contextRequire);if(!b)throw Error("Unable to resolve constructor for: '"+a.types.join()+"'");return this.construct(b,a.node,d,h,a.scripts,a.inherited)},this);return c?a(b).then(p):p(b)},construct:function(a,
c,p,g,e,v){function s(a){P&&l.setObject(P,a);for(D=0;D<O.length;D++)b[O[D].advice||"after"](a,O[D].method,l.hitch(a,O[D].func),!0);for(D=0;D<V.length;D++)V[D].call(a);for(D=0;D<M.length;D++)a.watch(M[D].prop,M[D].func);for(D=0;D<S.length;D++)q(a,S[D].event,S[D].func);return a}var f=a&&a.prototype;g=g||{};var u={};g.defaults&&l.mixin(u,g.defaults);v&&l.mixin(u,v);var x;n("dom-attributes-explicit")?x=c.attributes:n("dom-attributes-specified-flag")?x=k.filter(c.attributes,function(a){return a.specified}):
(v=(/^input$|^img$/i.test(c.nodeName)?c:c.cloneNode(!1)).outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,""),x=k.map(v.split(/\s+/),function(a){var b=a.toLowerCase();return{name:a,value:"LI"==c.nodeName&&"value"==a||"enctype"==b?c.getAttribute(b):c.getAttributeNode(b).value}}));var K=g.scope||m._scopeName;v="data-"+K+"-";var F={};"dojo"!==K&&(F[v+"props"]="data-dojo-props",F[v+"type"]="data-dojo-type",F[v+"mixins"]="data-dojo-mixins",F[K+"type"]=
"dojotype",F[v+"id"]="data-dojo-id");for(var D=0,C,K=[],P,T;C=x[D++];){var N=C.name,Q=N.toLowerCase();C=C.value;switch(F[Q]||Q){case "data-dojo-type":case "dojotype":case "data-dojo-mixins":break;case "data-dojo-props":T=C;break;case "data-dojo-id":case "jsid":P=C;break;case "data-dojo-attach-point":case "dojoattachpoint":u.dojoAttachPoint=C;break;case "data-dojo-attach-event":case "dojoattachevent":u.dojoAttachEvent=C;break;case "class":u["class"]=c.className;break;case "style":u.style=c.style&&
c.style.cssText;break;default:if(N in f||(N=w(a)[Q]||N),N in f)switch(typeof f[N]){case "string":u[N]=C;break;case "number":u[N]=C.length?Number(C):NaN;break;case "boolean":u[N]="false"!=C.toLowerCase();break;case "function":""===C||-1!=C.search(/[^\w\.]+/i)?u[N]=new Function(C):u[N]=l.getObject(C,!1)||new Function(C);K.push(N);break;default:Q=f[N],u[N]=Q&&"length"in Q?C?C.split(/\s*,\s*/):[]:Q instanceof Date?""==C?new Date(""):"now"==C?new Date:h.fromISOString(C):Q instanceof d?m.baseUrl+C:r(C)}else u[N]=
C}}for(x=0;x<K.length;x++)F=K[x].toLowerCase(),c.removeAttribute(F),c[F]=null;if(T)try{T=r.call(g.propsThis,"{"+T+"}"),l.mixin(u,T)}catch(R){throw Error(R.toString()+" in data-dojo-props\x3d'"+T+"'");}l.mixin(u,p);e||(e=a&&(a._noScript||f._noScript)?[]:t("\x3e script[type^\x3d'dojo/']",c));var O=[],V=[],M=[],S=[];if(e)for(D=0;D<e.length;D++)F=e[D],c.removeChild(F),p=F.getAttribute(v+"event")||F.getAttribute("event"),g=F.getAttribute(v+"prop"),T=F.getAttribute(v+"method"),K=F.getAttribute(v+"advice"),
x=F.getAttribute("type"),F=this._functionFromScript(F,v),p?"dojo/connect"==x?O.push({method:p,func:F}):"dojo/on"==x?S.push({event:p,func:F}):u[p]=F:"dojo/aspect"==x?O.push({method:T,advice:K,func:F}):"dojo/watch"==x?M.push({prop:g,func:F}):V.push(F);a=(e=a.markupFactory||f.markupFactory)?e(u,c,a):new a(u,c);return a.then?a.then(s):s(a)},scan:function(a,b){function d(a){if(!a.inherited){a.inherited={};var b=a.node,h=d(a.parent),b={dir:b.getAttribute("dir")||h.dir,lang:b.getAttribute("lang")||h.lang,
textDir:b.getAttribute(t)||h.textDir},c;for(c in b)b[c]&&(a.inherited[c]=b[c])}return a.inherited}var h=[],c=[],n={},g=(b.scope||m._scopeName)+"Type",e="data-"+(b.scope||m._scopeName)+"-",q=e+"type",t=e+"textdir",e=e+"mixins",v=a.firstChild,s=b.inherited;if(!s){var r=function(a,b){return a.getAttribute&&a.getAttribute(b)||a.parentNode&&r(a.parentNode,b)},s={dir:r(a,"dir"),lang:r(a,"lang"),textDir:r(a,t)},w;for(w in s)s[w]||delete s[w]}for(var s={inherited:s},x,l;;)if(v)if(1!=v.nodeType)v=v.nextSibling;
else if(x&&"script"==v.nodeName.toLowerCase())(N=v.getAttribute("type"))&&/^dojo\/\w/i.test(N)&&x.push(v),v=v.nextSibling;else if(l)v=v.nextSibling;else{var N=v.getAttribute(q)||v.getAttribute(g);w=v.firstChild;if(!N&&(!w||3==w.nodeType&&!w.nextSibling))v=v.nextSibling;else{l=null;if(N){var Q=v.getAttribute(e);x=Q?[N].concat(Q.split(/\s*,\s*/)):[N];try{l=u(x,b.contextRequire)}catch(R){}l||k.forEach(x,function(a){~a.indexOf("/")&&!n[a]&&(n[a]=!0,c[c.length]=a)});Q=l&&!l.prototype._noScript?[]:null;
s={types:x,ctor:l,parent:s,node:v,scripts:Q};s.inherited=d(s);h.push(s)}else s={node:v,scripts:x,parent:s};x=Q;l=v.stopParser||l&&l.prototype.stopParser&&!b.template;v=w}}else{if(!s||!s.node)break;v=s.node.nextSibling;l=!1;s=s.parent;x=s.scripts}var O=new p;c.length?(b.contextRequire||f)(c,function(){O.resolve(k.filter(h,function(a){if(!a.ctor)try{a.ctor=u(a.types,b.contextRequire)}catch(d){}for(var h=a.parent;h&&!h.types;)h=h.parent;var c=a.ctor&&a.ctor.prototype;a.instantiateChildren=!(c&&c.stopParser&&
!b.template);a.instantiate=!h||h.instantiate&&h.instantiateChildren;return a.instantiate}))}):O.resolve(h);return O.promise},_require:function(a,b){var h=r("{"+a.innerHTML+"}"),d=[],c=[],n=new p,g=b&&b.contextRequire||f,e;for(e in h)d.push(e),c.push(h[e]);g(c,function(){for(var a=0;a<d.length;a++)l.setObject(d[a],arguments[a]);n.resolve(arguments)});return n.promise},_scanAmd:function(a,b){var h=new p,d=h.promise;h.resolve(!0);var c=this;t("script[type\x3d'dojo/require']",a).forEach(function(a){d=
d.then(function(){return c._require(a,b)});a.parentNode.removeChild(a)});return d},parse:function(a,b){a&&("string"!=typeof a&&!("nodeType"in a))&&(b=a,a=b.rootNode);var h=a?c.byId(a):g.body();b=b||{};var d=b.template?{template:!0}:{},p=[],n=this,e=this._scanAmd(h,b).then(function(){return n.scan(h,b)}).then(function(a){return n._instantiate(a,d,b,!0)}).then(function(a){return p=p.concat(a)}).otherwise(function(a){console.error("dojo/parser::parse() error",a);throw a;});l.mixin(p,e);return p}};m.parser=
x;e.parseOnLoad&&s(100,x,"parse");return x})},"dojo/_base/array":function(){define(["./kernel","../has","./lang"],function(f,m,l){function k(a){return g[a]=new Function("item","index","array",a)}function e(a){var b=!a;return function(d,c,e){var q=0,s=d&&d.length||0,r;s&&"string"==typeof d&&(d=d.split(""));"string"==typeof c&&(c=g[c]||k(c));if(e)for(;q<s;++q){if(r=!c.call(e,d[q],q,d),a^r)return!r}else for(;q<s;++q)if(r=!c(d[q],q,d),a^r)return!r;return b}}function c(a){var h=1,c=0,n=0;a||(h=c=n=-1);
return function(g,e,s,r){if(r&&0<h)return b.lastIndexOf(g,e,s);r=g&&g.length||0;var k=a?r+n:c;s===d?s=a?c:r+n:0>s?(s=r+s,0>s&&(s=c)):s=s>=r?r+n:s;for(r&&"string"==typeof g&&(g=g.split(""));s!=k;s+=h)if(g[s]==e)return s;return-1}}var g={},d,b={every:e(!1),some:e(!0),indexOf:c(!0),lastIndexOf:c(!1),forEach:function(a,b,d){var c=0,e=a&&a.length||0;e&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=g[b]||k(b));if(d)for(;c<e;++c)b.call(d,a[c],c,a);else for(;c<e;++c)b(a[c],c,a)},map:function(a,
b,d,c){var e=0,q=a&&a.length||0;c=new (c||Array)(q);q&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=g[b]||k(b));if(d)for(;e<q;++e)c[e]=b.call(d,a[e],e,a);else for(;e<q;++e)c[e]=b(a[e],e,a);return c},filter:function(a,b,d){var c=0,e=a&&a.length||0,q=[],s;e&&"string"==typeof a&&(a=a.split(""));"string"==typeof b&&(b=g[b]||k(b));if(d)for(;c<e;++c)s=a[c],b.call(d,s,c,a)&&q.push(s);else for(;c<e;++c)s=a[c],b(s,c,a)&&q.push(s);return q},clearCache:function(){g={}}};l.mixin(f,b);return b})},
"dojo/_base/url":function(){define(["./kernel"],function(f){var m=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,l=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/,k=function(){for(var e=arguments,c=[e[0]],g=1;g<e.length;g++)if(e[g]){var d=new k(e[g]+""),c=new k(c[0]+"");if(""==d.path&&!d.scheme&&!d.authority&&!d.query)null!=d.fragment&&(c.fragment=d.fragment),d=c;else if(!d.scheme&&(d.scheme=c.scheme,!d.authority&&(d.authority=c.authority,"/"!=d.path.charAt(0)))){for(var c=
(c.path.substring(0,c.path.lastIndexOf("/")+1)+d.path).split("/"),b=0;b<c.length;b++)"."==c[b]?b==c.length-1?c[b]="":(c.splice(b,1),b--):0<b&&(!(1==b&&""==c[0])&&".."==c[b]&&".."!=c[b-1])&&(b==c.length-1?(c.splice(b,1),c[b-1]=""):(c.splice(b-1,2),b-=2));d.path=c.join("/")}c=[];d.scheme&&c.push(d.scheme,":");d.authority&&c.push("//",d.authority);c.push(d.path);d.query&&c.push("?",d.query);d.fragment&&c.push("#",d.fragment)}this.uri=c.join("");e=this.uri.match(m);this.scheme=e[2]||(e[1]?"":null);this.authority=
e[4]||(e[3]?"":null);this.path=e[5];this.query=e[7]||(e[6]?"":null);this.fragment=e[9]||(e[8]?"":null);null!=this.authority&&(e=this.authority.match(l),this.user=e[3]||null,this.password=e[4]||null,this.host=e[6]||e[7],this.port=e[9]||null)};k.prototype.toString=function(){return this.uri};return f._Url=k})},"dojo/aspect":function(){define([],function(){function f(c,d,b,a){var h=c[d],p="around"==d,n;if(p){var e=b(function(){return h.advice(this,arguments)});n={remove:function(){e&&(e=c=b=null)},advice:function(a,
b){return e?e.apply(a,b):h.advice(a,b)}}}else n={remove:function(){if(n.advice){var a=n.previous,h=n.next;!h&&!a?delete c[d]:(a?a.next=h:c[d]=h,h&&(h.previous=a));c=b=n.advice=null}},id:c.nextId++,advice:b,receiveArguments:a};if(h&&!p)if("after"==d){for(;h.next&&(h=h.next););h.next=n;n.previous=h}else"before"==d&&(c[d]=n,n.next=h,h.previous=n);else c[d]=n;return n}function m(c){return function(d,b,a,h){var p=d[b],n;if(!p||p.target!=d)d[b]=n=function(){for(var a=n.nextId,b=arguments,d=n.before;d;)d.advice&&
(b=d.advice.apply(this,b)||b),d=d.next;if(n.around)var h=n.around.advice(this,b);for(d=n.after;d&&d.id<a;){if(d.advice)if(d.receiveArguments)var c=d.advice.apply(this,b),h=c===l?h:c;else h=d.advice.call(this,h,b);d=d.next}return h},p&&(n.around={advice:function(a,b){return p.apply(a,b)}}),n.target=d,n.nextId=n.nextId||0;d=f(n||p,c,a,h);a=null;return d}}var l,k=m("after"),e=m("before"),c=m("around");return{before:e,around:c,after:k}})},"dojo/promise/all":function(){define(["../_base/array","../Deferred",
"../when"],function(f,m,l){var k=f.some;return function(e){var c,g;e instanceof Array?g=e:e&&"object"===typeof e&&(c=e);var d,b=[];if(c){g=[];for(var a in c)Object.hasOwnProperty.call(c,a)&&(b.push(a),g.push(c[a]));d={}}else g&&(d=[]);if(!g||!g.length)return(new m).resolve(d);var h=new m;h.promise.always(function(){d=b=null});var p=g.length;k(g,function(a,g){c||b.push(g);l(a,function(a){h.isFulfilled()||(d[b[g]]=a,0===--p&&h.resolve(d))},h.reject);return h.isFulfilled()});return h.promise}})},"dojo/Deferred":function(){define(["./has",
"./_base/lang","./errors/CancelError","./promise/Promise","./promise/instrumentation"],function(f,m,l,k,e){var c=Object.freeze||function(){},g=function(a,b,c,g,e){2===b&&(h.instrumentRejected&&0===a.length)&&h.instrumentRejected(c,!1,g,e);for(e=0;e<a.length;e++)d(a[e],b,c,g)},d=function(d,c,g,e){var s=d[c],r=d.deferred;if(s)try{var k=s(g);if(0===c)"undefined"!==typeof k&&a(r,c,k);else{if(k&&"function"===typeof k.then){d.cancel=k.cancel;k.then(b(r,1),b(r,2),b(r,0));return}a(r,1,k)}}catch(f){a(r,2,
f)}else a(r,c,g);2===c&&h.instrumentRejected&&h.instrumentRejected(g,!!s,e,r.promise)},b=function(b,d){return function(c){a(b,d,c)}},a=function(a,b,d){if(!a.isCanceled())switch(b){case 0:a.progress(d);break;case 1:a.resolve(d);break;case 2:a.reject(d)}},h=function(a){var b=this.promise=new k,e=this,q,s,r,f=!1,u=[];Error.captureStackTrace&&(Error.captureStackTrace(e,h),Error.captureStackTrace(b,h));this.isResolved=b.isResolved=function(){return 1===q};this.isRejected=b.isRejected=function(){return 2===
q};this.isFulfilled=b.isFulfilled=function(){return!!q};this.isCanceled=b.isCanceled=function(){return f};this.progress=function(a,d){if(q){if(!0===d)throw Error("This deferred has already been fulfilled.");return b}g(u,0,a,null,e);return b};this.resolve=function(a,d){if(q){if(!0===d)throw Error("This deferred has already been fulfilled.");return b}g(u,q=1,s=a,null,e);u=null;return b};var v=this.reject=function(a,d){if(q){if(!0===d)throw Error("This deferred has already been fulfilled.");return b}Error.captureStackTrace&&
Error.captureStackTrace(r={},v);g(u,q=2,s=a,r,e);u=null;return b};this.then=b.then=function(a,c,p){var g=[p,a,c];g.cancel=b.cancel;g.deferred=new h(function(a){return g.cancel&&g.cancel(a)});q&&!u?d(g,q,s,r):u.push(g);return g.deferred.promise};this.cancel=b.cancel=function(b,d){if(q){if(!0===d)throw Error("This deferred has already been fulfilled.");}else{if(a){var c=a(b);b="undefined"===typeof c?b:c}f=!0;if(q){if(2===q&&s===b)return b}else return"undefined"===typeof b&&(b=new l),v(b),b}};c(b)};
h.prototype.toString=function(){return"[object Deferred]"};e&&e(h);return h})},"dojo/errors/CancelError":function(){define(["./create"],function(f){return f("CancelError",null,null,{dojoType:"cancel"})})},"dojo/errors/create":function(){define(["../_base/lang"],function(f){return function(m,l,k,e){k=k||Error;var c=function(g){if(k===Error){Error.captureStackTrace&&Error.captureStackTrace(this,c);var d=Error.call(this,g),b;for(b in d)d.hasOwnProperty(b)&&(this[b]=d[b]);this.message=g;this.stack=d.stack}else k.apply(this,
arguments);l&&l.apply(this,arguments)};c.prototype=f.delegate(k.prototype,e);c.prototype.name=m;return c.prototype.constructor=c}})},"dojo/promise/Promise":function(){define(["../_base/lang"],function(f){function m(){throw new TypeError("abstract");}return f.extend(function(){},{then:function(f,k,e){m()},cancel:function(f,k){m()},isResolved:function(){m()},isRejected:function(){m()},isFulfilled:function(){m()},isCanceled:function(){m()},always:function(f){return this.then(f,f)},otherwise:function(f){return this.then(null,
f)},trace:function(){return this},traceRejected:function(){return this},toString:function(){return"[object Promise]"}})})},"dojo/promise/instrumentation":function(){define(["./tracer","../has","../_base/lang","../_base/array"],function(f,m,l,k){function e(a,b,d){var c="";a&&a.stack&&(c+=a.stack);b&&b.stack&&(c+="\n    ----------------------------------------\n    rejected"+b.stack.split("\n").slice(1).join("\n").replace(/^\s+/," "));d&&d.stack&&(c+="\n    ----------------------------------------\n"+
d.stack);console.error(a,c)}function c(a,b,d,c){b||e(a,d,c)}function g(c,g,e,q){k.some(b,function(a){if(a.error===c)return g&&(a.handled=!0),!0})||b.push({error:c,rejection:e,handled:g,deferred:q,timestamp:(new Date).getTime()});a||(a=setTimeout(d,h))}function d(){var c=(new Date).getTime(),g=c-h;b=k.filter(b,function(a){return a.timestamp<g?(a.handled||e(a.error,a.rejection,a.deferred),!1):!0});a=b.length?setTimeout(d,b[0].timestamp+h-c):!1}m.add("config-useDeferredInstrumentation","report-unhandled-rejections");
var b=[],a=!1,h=1E3;return function(a){var b=m("config-useDeferredInstrumentation");if(b){f.on("resolved",l.hitch(console,"log","resolved"));f.on("rejected",l.hitch(console,"log","rejected"));f.on("progress",l.hitch(console,"log","progress"));var d=[];"string"===typeof b&&(d=b.split(","),b=d.shift());if("report-rejections"===b)a.instrumentRejected=c;else if("report-unhandled-rejections"===b||!0===b||1===b)a.instrumentRejected=g,h=parseInt(d[0],10)||h;else throw Error("Unsupported instrumentation usage \x3c"+
b+"\x3e");}}})},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(f,m,l){function k(g){setTimeout(function(){c.apply(e,g)},0)}var e=new l,c=e.emit;e.emit=null;m.prototype.trace=function(){var c=f._toArray(arguments);this.then(function(d){k(["resolved",d].concat(c))},function(d){k(["rejected",d].concat(c))},function(d){k(["progress",d].concat(c))});return this};m.prototype.traceRejected=function(){var c=f._toArray(arguments);this.otherwise(function(d){k(["rejected",
d].concat(c))});return this};return e})},"dojo/Evented":function(){define(["./aspect","./on"],function(f,m){function l(){}var k=f.after;l.prototype={on:function(e,c){return m.parse(this,e,c,function(g,d){return k(g,"on"+d,c,!0)})},emit:function(e,c){var g=[this];g.push.apply(g,arguments);return m.emit.apply(m,g)}};return l})},"dojo/on":function(){define(["./has!dom-addeventlistener?:./aspect","./_base/kernel","./sniff"],function(f,m,l){function k(a,c,h,g,e){if(g=c.match(/(.*):(.*)/))return c=g[2],
g=g[1],d.selector(g,c).call(e,a,h);l("touch")&&(b.test(c)&&(h=z(h)),!l("event-orientationchange")&&"orientationchange"==c&&(c="resize",a=window,h=z(h)));t&&(h=t(h));if(a.addEventListener){var n=c in p,v=n?p[c]:c;a.addEventListener(v,h,n);return{remove:function(){a.removeEventListener(v,h,n)}}}if(w&&a.attachEvent)return w(a,"on"+c,h);throw Error("Target must be an event emitter");}function e(){this.cancelable=!1;this.defaultPrevented=!0}function c(){this.bubbles=!1}var g=window.ScriptEngineMajorVersion;
l.add("jscript",g&&g()+ScriptEngineMinorVersion()/10);l.add("event-orientationchange",l("touch")&&!l("android"));l.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);l.add("event-focusin",function(a,b,d){return"onfocusin"in d});l("touch")&&l.add("touch-can-modify-event-delegate",function(){var a=function(){};a.prototype=document.createEvent("MouseEvents");try{var b=new a;b.target=null;return null===b.target}catch(d){return!1}});
var d=function(a,b,c,h){return"function"==typeof a.on&&"function"!=typeof b&&!a.nodeType?a.on(b,c):d.parse(a,b,c,k,h,this)};d.pausable=function(a,b,c,h){var p;a=d(a,b,function(){if(!p)return c.apply(this,arguments)},h);a.pause=function(){p=!0};a.resume=function(){p=!1};return a};d.once=function(a,b,c,h){var p=d(a,b,function(){p.remove();return c.apply(this,arguments)});return p};d.parse=function(a,b,c,h,p,g){var e;if(b.call)return b.call(g,a,c);b instanceof Array?e=b:-1<b.indexOf(",")&&(e=b.split(/\s*,\s*/));
if(e){var n=[];b=0;for(var v;v=e[b++];)n.push(d.parse(a,v,c,h,p,g));n.remove=function(){for(var a=0;a<n.length;a++)n[a].remove()};return n}return h(a,b,c,p,g)};var b=/^touch/;d.matches=function(a,b,d,c,h){h=h&&"function"==typeof h.matches?h:m.query;c=!1!==c;1!=a.nodeType&&(a=a.parentNode);for(;!h.matches(a,b,d);)if(a==d||!1===c||!(a=a.parentNode)||1!=a.nodeType)return!1;return a};d.selector=function(a,b,c){return function(h,p){function g(b){return d.matches(b,a,h,c,e)}var e="function"==typeof a?{matches:a}:
this,n=b.bubble;return n?d(h,n(g),p):d(h,b,function(a){var b=g(a.target);if(b)return a.selectorTarget=b,p.call(b,a)})}};var a=[].slice,h=d.emit=function(b,d,h){var p=a.call(arguments,2),g="on"+d;if("parentNode"in b){var n=p[0]={},v;for(v in h)n[v]=h[v];n.preventDefault=e;n.stopPropagation=c;n.target=b;n.type=d;h=n}do b[g]&&b[g].apply(b,p);while(h&&h.bubbles&&(b=b.parentNode));return h&&h.cancelable&&h},p=l("event-focusin")?{}:{focusin:"focus",focusout:"blur"};if(!l("event-stopimmediatepropagation"))var n=
function(){this.modified=this.immediatelyStopped=!0},t=function(a){return function(b){if(!b.immediatelyStopped)return b.stopImmediatePropagation=n,a.apply(this,arguments)}};if(l("dom-addeventlistener"))d.emit=function(a,b,c){if(a.dispatchEvent&&document.createEvent){var p=(a.ownerDocument||document).createEvent("HTMLEvents");p.initEvent(b,!!c.bubbles,!!c.cancelable);for(var g in c)g in p||(p[g]=c[g]);return a.dispatchEvent(p)&&p}return h.apply(d,arguments)};else{d._fixEvent=function(a,b){a||(a=(b&&
(b.ownerDocument||b.document||b).parentWindow||window).event);if(!a)return a;try{q&&(a.type==q.type&&a.srcElement==q.target)&&(a=q)}catch(d){}if(!a.target)switch(a.target=a.srcElement,a.currentTarget=b||a.srcElement,"mouseover"==a.type&&(a.relatedTarget=a.fromElement),"mouseout"==a.type&&(a.relatedTarget=a.toElement),a.stopPropagation||(a.stopPropagation=u,a.preventDefault=v),a.type){case "keypress":var c="charCode"in a?a.charCode:a.keyCode;10==c?(c=0,a.keyCode=13):13==c||27==c?c=0:3==c&&(c=99);a.charCode=
c;c=a;c.keyChar=c.charCode?String.fromCharCode(c.charCode):"";c.charOrCode=c.keyChar||c.keyCode}return a};var q,s=function(a){this.handle=a};s.prototype.remove=function(){delete _dojoIEListeners_[this.handle]};var r=function(a){return function(b){b=d._fixEvent(b,this);var c=a.call(this,b);b.modified&&(q||setTimeout(function(){q=null}),q=b);return c}},w=function(a,b,c){c=r(c);if(((a.ownerDocument?a.ownerDocument.parentWindow:a.parentWindow||a.window||window)!=top||5.8>l("jscript"))&&!l("config-_allow_leaks")){"undefined"==
typeof _dojoIEListeners_&&(_dojoIEListeners_=[]);var d=a[b];if(!d||!d.listeners){var h=d,d=Function("event","var callee \x3d arguments.callee; for(var i \x3d 0; i\x3ccallee.listeners.length; i++){var listener \x3d _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}");d.listeners=[];a[b]=d;d.global=this;h&&d.listeners.push(_dojoIEListeners_.push(h)-1)}d.listeners.push(a=d.global._dojoIEListeners_.push(c)-1);return new s(a)}return f.after(a,b,c,!0)},u=function(){this.cancelBubble=
!0},v=d._preventDefault=function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey)try{this.keyCode=0}catch(a){}this.defaultPrevented=!0;this.returnValue=!1;this.modified=!0}}if(l("touch"))var x=function(){},y=window.orientation,z=function(a){return function(b){var d=b.corrected;if(!d){var c=b.type;try{delete b.type}catch(h){}if(b.type){if(l("touch-can-modify-event-delegate"))x.prototype=b,d=new x;else{var d={},p;for(p in b)d[p]=b[p]}d.preventDefault=function(){b.preventDefault()};d.stopPropagation=
function(){b.stopPropagation()}}else d=b,d.type=c;b.corrected=d;if("resize"==c){if(y==window.orientation)return null;y=window.orientation;d.type="orientationchange";return a.call(this,d)}"rotation"in d||(d.rotation=0,d.scale=1);var c=d.changedTouches[0],g;for(g in c)delete d[g],d[g]=c[g]}return a.call(this,d)}};return d})},"dojo/when":function(){define(["./Deferred","./promise/Promise"],function(f,m){return function(l,k,e,c){var g=l&&"function"===typeof l.then,d=g&&l instanceof m;if(g)d||(g=new f(l.cancel),
l.then(g.resolve,g.reject,g.progress),l=g.promise);else return 1<arguments.length?k?k(l):l:(new f).resolve(l);return k||e||c?l.then(k,e,c):l}})},"dojo/date/stamp":function(){define(["../_base/lang","../_base/array"],function(f,m){var l={};f.setObject("dojo.date.stamp",l);l.fromISOString=function(k,e){l._isoRegExp||(l._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/);var c=l._isoRegExp.exec(k),g=null;if(c){c.shift();c[1]&&c[1]--;
c[6]&&(c[6]*=1E3);e&&(e=new Date(e),m.forEach(m.map("FullYear Month Date Hours Minutes Seconds Milliseconds".split(" "),function(a){return e["get"+a]()}),function(a,b){c[b]=c[b]||a}));g=new Date(c[0]||1970,c[1]||0,c[2]||1,c[3]||0,c[4]||0,c[5]||0,c[6]||0);100>c[0]&&g.setFullYear(c[0]||1970);var d=0,b=c[7]&&c[7].charAt(0);"Z"!=b&&(d=60*(c[8]||0)+(Number(c[9])||0),"-"!=b&&(d*=-1));b&&(d-=g.getTimezoneOffset());d&&g.setTime(g.getTime()+6E4*d)}return g};l.toISOString=function(k,e){var c=function(a){return 10>
a?"0"+a:a};e=e||{};var g=[],d=e.zulu?"getUTC":"get",b="";"time"!=e.selector&&(b=k[d+"FullYear"](),b=["0000".substr((b+"").length)+b,c(k[d+"Month"]()+1),c(k[d+"Date"]())].join("-"));g.push(b);if("date"!=e.selector){b=[c(k[d+"Hours"]()),c(k[d+"Minutes"]()),c(k[d+"Seconds"]())].join(":");d=k[d+"Milliseconds"]();e.milliseconds&&(b+="."+(100>d?"0":"")+c(d));if(e.zulu)b+="Z";else if("time"!=e.selector)var d=k.getTimezoneOffset(),a=Math.abs(d),b=b+((0<d?"-":"+")+c(Math.floor(a/60))+":"+c(a%60));g.push(b)}return g.join("T")};
return l})},"dojo/query":function(){define("./_base/kernel ./has ./dom ./on ./_base/array ./_base/lang ./selector/_loader ./selector/_loader!default".split(" "),function(f,m,l,k,e,c,g,d){function b(a,b){var d=function(d,c){if("string"==typeof c&&(c=l.byId(c),!c))return new b([]);var h="string"==typeof d?a(d,c):d?d.end&&d.on?d:[d]:[];return h.end&&h.on?h:new b(h)};d.matches=a.match||function(a,b,c){return 0<d.filter([a],b,c).length};d.filter=a.filter||function(a,b,c){return d(b,c).filter(function(b){return-1<
e.indexOf(a,b)})};if("function"!=typeof a){var c=a.search;a=function(a,b){return c(b||document,a)}}return d}m.add("array-extensible",function(){return 1==c.delegate([],{length:1}).length&&!m("bug-for-in-skips-shadowed")});var a=Array.prototype,h=a.slice,p=a.concat,n=e.forEach,t=function(a,b,d){b=[0].concat(h.call(b,0));d=d||f.global;return function(c){b[0]=c;return a.apply(d,b)}},q=function(a){var b=this instanceof s&&m("array-extensible");"number"==typeof a&&(a=Array(a));var d=a&&"length"in a?a:
arguments;if(b||!d.sort){for(var h=b?this:[],p=h.length=d.length,g=0;g<p;g++)h[g]=d[g];if(b)return h;d=h}c._mixin(d,r);d._NodeListCtor=function(a){return s(a)};return d},s=q,r=s.prototype=m("array-extensible")?[]:{};s._wrap=r._wrap=function(a,b,d){a=new (d||this._NodeListCtor||s)(a);return b?a._stash(b):a};s._adaptAsMap=function(a,b){return function(){return this.map(t(a,arguments,b))}};s._adaptAsForEach=function(a,b){return function(){this.forEach(t(a,arguments,b));return this}};s._adaptAsFilter=
function(a,b){return function(){return this.filter(t(a,arguments,b))}};s._adaptWithCondition=function(a,b,d){return function(){var c=arguments,h=t(a,c,d);if(b.call(d||f.global,c))return this.map(h);this.forEach(h);return this}};n(["slice","splice"],function(b){var d=a[b];r[b]=function(){return this._wrap(d.apply(this,arguments),"slice"==b?this:null)}});n(["indexOf","lastIndexOf","every","some"],function(a){var b=e[a];r[a]=function(){return b.apply(f,[this].concat(h.call(arguments,0)))}});c.extend(q,
{constructor:s,_NodeListCtor:s,toString:function(){return this.join(",")},_stash:function(a){this._parent=a;return this},on:function(a,b){var d=this.map(function(d){return k(d,a,b)});d.remove=function(){for(var a=0;a<d.length;a++)d[a].remove()};return d},end:function(){return this._parent?this._parent:new this._NodeListCtor(0)},concat:function(a){var b=h.call(this,0),d=e.map(arguments,function(a){return h.call(a,0)});return this._wrap(p.apply(b,d),this)},map:function(a,b){return this._wrap(e.map(this,
a,b),this)},forEach:function(a,b){n(this,a,b);return this},filter:function(a){var b=arguments,d=this,c=0;if("string"==typeof a){d=w._filterResult(this,b[0]);if(1==b.length)return d._stash(this);c=1}return this._wrap(e.filter(d,b[c],b[c+1]),this)},instantiate:function(a,b){var d=c.isFunction(a)?a:c.getObject(a);b=b||{};return this.forEach(function(a){new d(b,a)})},at:function(){var a=new this._NodeListCtor(0);n(arguments,function(b){0>b&&(b=this.length+b);this[b]&&a.push(this[b])},this);return a._stash(this)}});
var w=b(d,q);f.query=b(d,function(a){return q(a)});w.load=function(a,d,c){g.load(a,d,function(a){c(b(a,q))})};f._filterQueryResult=w._filterResult=function(a,b,d){return new q(w.filter(a,b,d))};f.NodeList=w.NodeList=q;return w})},"dojo/selector/_loader":function(){define(["../has","require"],function(f,m){if("undefined"!==typeof document){var l=document.createElement("div");f.add("dom-qsa2.1",!!l.querySelectorAll);f.add("dom-qsa3",function(){try{return l.innerHTML="\x3cp class\x3d'TEST'\x3e\x3c/p\x3e",
1==l.querySelectorAll(".TEST:empty").length}catch(e){}})}var k;return{load:function(e,c,g,d){if(d&&d.isBuild)g();else{d=m;e="default"==e?f("config-selectorEngine")||"css3":e;e="css2"==e||"lite"==e?"./lite":"css2.1"==e?f("dom-qsa2.1")?"./lite":"./acme":"css3"==e?f("dom-qsa3")?"./lite":"./acme":"acme"==e?"./acme":(d=c)&&e;if("?"==e.charAt(e.length-1)){e=e.substring(0,e.length-1);var b=!0}if(b&&(f("dom-compliant-qsa")||k))return g(k);d([e],function(a){"./lite"!=e&&(k=a);g(a)})}}}})},"dojo/selector/lite":function(){define(["../has",
"../_base/kernel"],function(f,m){var l=document.createElement("div"),k=l.matches||l.webkitMatchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector,e=l.querySelectorAll,c=/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g;f.add("dom-matches-selector",!!k);f.add("dom-qsa",!!e);var g=function(c,p){if(a&&-1<c.indexOf(","))return a(c,p);var n=p?p.ownerDocument||p:m.doc||document,t=(e?/^([\w]*)#([\w\-]+$)|^(\.)([\w\-\*]+$)|^(\w+$)/:/^([\w]*)#([\w\-]+)(?:\s+(.*))?$|(?:^|(>|.+\s+))([\w\-\*]+)(\S*$)/).exec(c);
p=p||n;if(t){var q=8===f("ie")&&f("quirks")?p.nodeType===n.nodeType:null!==p.parentNode&&9!==p.nodeType&&p.parentNode===n;if(t[2]&&q){var s=m.byId?m.byId(t[2],n):n.getElementById(t[2]);if(!s||t[1]&&t[1]!=s.tagName.toLowerCase())return[];if(p!=n)for(n=s;n!=p;)if(n=n.parentNode,!n)return[];return t[3]?g(t[3],s):[s]}if(t[3]&&p.getElementsByClassName)return p.getElementsByClassName(t[4]);if(t[5])if(s=p.getElementsByTagName(t[5]),t[4]||t[6])c=(t[4]||"")+t[6];else return s}if(e)return 1===p.nodeType&&"object"!==
p.nodeName.toLowerCase()?d(p,c,p.querySelectorAll):p.querySelectorAll(c);s||(s=p.getElementsByTagName("*"));t=[];n=0;for(q=s.length;n<q;n++){var r=s[n];1==r.nodeType&&b(r,c,p)&&t.push(r)}return t},d=function(a,b,d){var g=a,e=a.getAttribute("id"),s=e||"__dojo__",r=a.parentNode,k=/^\s*[+~]/.test(b);if(k&&!r)return[];e?s=s.replace(/'/g,"\\$\x26"):a.setAttribute("id",s);k&&r&&(a=a.parentNode);b=b.match(c);for(r=0;r<b.length;r++)b[r]="[id\x3d'"+s+"'] "+b[r];b=b.join(",");try{return d.call(a,b)}finally{e||
g.removeAttribute("id")}};if(!f("dom-matches-selector"))var b=function(){function a(b,d,c){var h=d.charAt(0);if('"'==h||"'"==h)d=d.slice(1,-1);d=d.replace(/\\/g,"");var p=r[c||""];return function(a){return(a=a.getAttribute(b))&&p(a,d)}}function b(a){return function(b,d){for(;(b=b.parentNode)!=d;)if(a(b,d))return!0}}function d(a){return function(b,d){b=b.parentNode;return a?b!=d&&a(b,d):b==d}}function c(a,b){return a?function(d,c){return b(d)&&a(d,c)}:b}var g="div"==l.tagName?"toLowerCase":"toUpperCase",
e={"":function(a){a=a[g]();return function(b){return b.tagName==a}},".":function(a){var b=" "+a+" ";return function(d){return-1<d.className.indexOf(a)&&-1<(" "+d.className+" ").indexOf(b)}},"#":function(a){return function(b){return b.id==a}}},r={"^\x3d":function(a,b){return 0==a.indexOf(b)},"*\x3d":function(a,b){return-1<a.indexOf(b)},"$\x3d":function(a,b){return a.substring(a.length-b.length,a.length)==b},"~\x3d":function(a,b){return-1<(" "+a+" ").indexOf(" "+b+" ")},"|\x3d":function(a,b){return 0==
(a+"-").indexOf(b+"-")},"\x3d":function(a,b){return a==b},"":function(a,b){return!0}},k={};return function(g,q,r){var f=k[q];if(!f){if(q.replace(/(?:\s*([> ])\s*)|(#|\.)?((?:\\.|[\w-])+)|\[\s*([\w-]+)\s*(.?=)?\s*("(?:\\.|[^"])+"|'(?:\\.|[^'])+'|(?:\\.|[^\]])*)\s*\]/g,function(g,q,v,r,k,w,u){r?f=c(f,e[v||""](r.replace(/\\/g,""))):q?f=(" "==q?b:d)(f):k&&(f=c(f,a(k,u,w)));return""}))throw Error("Syntax error in query");if(!f)return!0;k[q]=f}return f(g,r)}}();if(!f("dom-qsa"))var a=function(a,b){for(var d=
a.match(c),e=[],q=0;q<d.length;q++){a=new String(d[q].replace(/\s*$/,""));a.indexOf=escape;for(var s=g(a,b),r=0,k=s.length;r<k;r++){var f=s[r];e[f.sourceIndex]=f}}d=[];for(q in e)d.push(e[q]);return d};g.match=k?function(a,b,c){return c&&9!=c.nodeType?d(c,b,function(b){return k.call(a,b)}):k.call(a,b)}:b;return g})},"dojo/ready":function(){define(["./_base/kernel","./has","require","./domReady","./_base/lang"],function(f,m,l,k,e){var c=0,g=[],d=0;m=function(){c=1;f._postLoad=f.config.afterOnLoad=
!0;b()};var b=function(){if(!d){for(d=1;c&&(!k||0==k._Q.length)&&(l.idle?l.idle():1)&&g.length;){var a=g.shift();try{a()}catch(b){if(b.info=b.message,l.signal)l.signal("error",b);else throw b;}}d=0}};l.on&&l.on("idle",b);k&&(k._onQEmpty=b);var a=f.ready=f.addOnLoad=function(a,d,c){var h=e._toArray(arguments);"number"!=typeof a?(c=d,d=a,a=1E3):h.shift();c=c?e.hitch.apply(f,h):function(){d()};c.priority=a;for(h=0;h<g.length&&a>=g[h].priority;h++);g.splice(h,0,c);b()},h=f.config.addOnLoad;if(h)a[e.isArray(h)?
"apply":"call"](f,h);f.config.parseOnLoad&&!f.isAsync&&a(99,function(){f.parser||(f.deprecated("Add explicit require(['dojo/parser']);","","2.0"),l(["dojo/parser"]))});k?k(m):m();return a})},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(f,m,l){function k(a,b){throw Error("declare"+(b?" "+b:"")+": "+a);}function e(a,b,d){var c,h,g,p,e,n,q,t=this._inherited=this._inherited||{};"string"==typeof a&&(c=a,a=b,b=d);d=0;p=a.callee;(c=c||p.nom)||k("can't deduce a name to call inherited()",
this.declaredClass);e=this.constructor._meta;g=e.bases;q=t.p;if(c!=A){if(t.c!==p&&(q=0,n=g[0],e=n._meta,e.hidden[c]!==p)){(h=e.chains)&&"string"==typeof h[c]&&k("calling chained method with inherited: "+c,this.declaredClass);do if(e=n._meta,h=n.prototype,e&&(h[c]===p&&h.hasOwnProperty(c)||e.hidden[c]===p))break;while(n=g[++q]);q=n?q:-1}if(n=g[++q])if(h=n.prototype,n._meta&&h.hasOwnProperty(c))d=h[c];else{p=v[c];do if(h=n.prototype,(d=h[c])&&(n._meta?h.hasOwnProperty(c):d!==p))break;while(n=g[++q])}d=
n&&d||v[c]}else{if(t.c!==p&&(q=0,(e=g[0]._meta)&&e.ctor!==p)){h=e.chains;for((!h||"manual"!==h.constructor)&&k("calling chained constructor with inherited",this.declaredClass);(n=g[++q])&&!((e=n._meta)&&e.ctor===p););q=n?q:-1}for(;(n=g[++q])&&!(d=(e=n._meta)?e.ctor:n););d=n&&d}t.c=d;t.p=q;if(d)return!0===b?d:d.apply(this,b||a)}function c(a,b){return"string"==typeof a?this.__inherited(a,b,!0):this.__inherited(a,!0)}function g(a,b,d){var c=this.getInherited(a,b);if(c)return c.apply(this,d||b||a)}function d(a){for(var b=
this.constructor._meta.bases,d=0,c=b.length;d<c;++d)if(b[d]===a)return!0;return this instanceof a}function b(a,b){for(var d in b)d!=A&&b.hasOwnProperty(d)&&(a[d]=b[d]);if(m("bug-for-in-skips-shadowed"))for(var c=l._extraNames,h=c.length;h;)d=c[--h],d!=A&&b.hasOwnProperty(d)&&(a[d]=b[d])}function a(a){w.safeMixin(this.prototype,a);return this}function h(a,b){a instanceof Array||"function"==typeof a||(b=a,a=void 0);b=b||{};a=a||[];return w([this].concat(a),b)}function p(a,b){return function(){var d=
arguments,c=d,h=d[0],g,p;p=a.length;var e;if(!(this instanceof d.callee))return r(d);if(b&&(h&&h.preamble||this.preamble)){e=Array(a.length);e[0]=d;for(g=0;;){if(h=d[0])(h=h.preamble)&&(d=h.apply(this,d)||d);h=a[g].prototype;(h=h.hasOwnProperty("preamble")&&h.preamble)&&(d=h.apply(this,d)||d);if(++g==p)break;e[g]=d}}for(g=p-1;0<=g;--g)h=a[g],(h=(p=h._meta)?p.ctor:h)&&h.apply(this,e?e[g]:d);(h=this.postscript)&&h.apply(this,c)}}function n(a,b){return function(){var d=arguments,c=d,h=d[0];if(!(this instanceof
d.callee))return r(d);b&&(h&&(h=h.preamble)&&(c=h.apply(this,c)||c),(h=this.preamble)&&h.apply(this,c));a&&a.apply(this,d);(h=this.postscript)&&h.apply(this,d)}}function t(a){return function(){var b=arguments,d=0,c,h;if(!(this instanceof b.callee))return r(b);for(;c=a[d];++d)if(c=(h=c._meta)?h.ctor:c){c.apply(this,b);break}(c=this.postscript)&&c.apply(this,b)}}function q(a,b,d){return function(){var c,h,g=0,p=1;d&&(g=b.length-1,p=-1);for(;c=b[g];g+=p)h=c._meta,(c=(h?h.hidden:c.prototype)[a])&&c.apply(this,
arguments)}}function s(a){y.prototype=a.prototype;a=new y;y.prototype=null;return a}function r(a){var b=a.callee,d=s(b);b.apply(d,a);return d}function w(g,r,f){"string"!=typeof g&&(f=r,r=g,g="");f=f||{};var m,y,H,K,F,D,C,P=1,T=r;if("[object Array]"==x.call(r)){P=g;H=[];K=[{cls:0,refs:[]}];D={};for(var N=1,Q=r.length,R=0,O,V,M,S;R<Q;++R){(O=r[R])?"[object Function]"!=x.call(O)&&k("mixin #"+R+" is not a callable constructor.",P):k("mixin #"+R+" is unknown. Did you use dojo.require to pull it in?",P);
V=O._meta?O._meta.bases:[O];M=0;for(O=V.length-1;0<=O;--O)S=V[O].prototype,S.hasOwnProperty("declaredClass")||(S.declaredClass="uniqName_"+z++),S=S.declaredClass,D.hasOwnProperty(S)||(D[S]={count:0,refs:[],cls:V[O]},++N),S=D[S],M&&M!==S&&(S.refs.push(M),++M.count),M=S;++M.count;K[0].refs.push(M)}for(;K.length;){M=K.pop();H.push(M.cls);for(--N;y=M.refs,1==y.length;){M=y[0];if(!M||--M.count){M=0;break}H.push(M.cls);--N}if(M){R=0;for(Q=y.length;R<Q;++R)M=y[R],--M.count||K.push(M)}}N&&k("can't build consistent linearization",
P);O=r[0];H[0]=O?O._meta&&O===H[H.length-O._meta.bases.length]?O._meta.bases.length:1:0;D=H;H=D[0];P=D.length-H;r=D[P]}else D=[0],r?"[object Function]"==x.call(r)?(H=r._meta,D=D.concat(H?H.bases:r)):k("base class is not a callable constructor.",g):null!==r&&k("unknown base class. Did you use dojo.require to pull it in?",g);if(r)for(y=P-1;;--y){m=s(r);if(!y)break;H=D[y];(H._meta?b:u)(m,H.prototype);K=new Function;K.superclass=r;K.prototype=m;r=m.constructor=K}else m={};w.safeMixin(m,f);H=f.constructor;
H!==v.constructor&&(H.nom=A,m.constructor=H);for(y=P-1;y;--y)(H=D[y]._meta)&&H.chains&&(C=u(C||{},H.chains));m["-chains-"]&&(C=u(C||{},m["-chains-"]));H=!C||!C.hasOwnProperty(A);D[0]=K=C&&"manual"===C.constructor?t(D):1==D.length?n(f.constructor,H):p(D,H);K._meta={bases:D,hidden:f,chains:C,parents:T,ctor:f.constructor};K.superclass=r&&r.prototype;K.extend=a;K.createSubclass=h;K.prototype=m;m.constructor=K;m.getInherited=c;m.isInstanceOf=d;m.inherited=E;m.__inherited=e;g&&(m.declaredClass=g,l.setObject(g,
K));if(C)for(F in C)m[F]&&("string"==typeof C[F]&&F!=A)&&(H=m[F]=q(F,D,"after"===C[F]),H.nom=F);return K}var u=l.mixin,v=Object.prototype,x=v.toString,y,z=0,A="constructor";y=m("csp-restrictions")?function(){}:new Function;var E=f.config.isDebug?g:e;f.safeMixin=w.safeMixin=function(a,b){var d,c;for(d in b)if(c=b[d],(c!==v[d]||!(d in v))&&d!=A)"[object Function]"==x.call(c)&&(c.nom=d),a[d]=c;if(m("bug-for-in-skips-shadowed")&&b)for(var h=l._extraNames,g=h.length;g;)if(d=h[--g],c=b[d],(c!==v[d]||!(d in
v))&&d!=A)"[object Function]"==x.call(c)&&(c.nom=d),a[d]=c;return a};return f.declare=w})},"dojo/require":function(){define(["./_base/loader"],function(f){return{dynamic:0,normalize:function(f){return f},load:f.require}})},"dojo/_base/loader":function(){define("./kernel ../has require module ../json ./lang ./array".split(" "),function(f,m,l,k,e,c,g){var d=function(a){return a.replace(/\./g,"/")},b=/\/\/>>built/,a=[],h=[],p=function(b,d,c){a.push(c);g.forEach(b.split(","),function(a){a=I(a,d.module);
h.push(a);J(a)});n()},n=function(){var b,d;for(d in G)if(b=G[d],void 0===b.noReqPluginCheck&&(b.noReqPluginCheck=/loadInit\!/.test(d)||/require\!/.test(d)?1:0),!b.executed&&!b.noReqPluginCheck&&b.injected==x)return;P(function(){var b=a;a=[];g.forEach(b,function(a){a(1)})})},t=function(a,b,d){var c=/\(|\)/g,h=1;for(c.lastIndex=b;(b=c.exec(a))&&!(h=")"==b[0]?h-1:h+1,0==h););if(0!=h)throw"unmatched paren around character "+c.lastIndex+" in: "+a;return[f.trim(a.substring(d,c.lastIndex))+";\n",c.lastIndex]},
q=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,s=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,r=/(^|\s)(require|define)\s*\(/m,w=function(a,b){var d,c,h,g=[],p=[];d=[];for(b=b||a.replace(q,function(a){s.lastIndex=r.lastIndex=0;return s.test(a)||r.test(a)?"":a});d=s.exec(b);)c=s.lastIndex,h=c-d[0].length,c=t(b,c,h),"loadInit"==d[2]?g.push(c[0]):p.push(c[0]),s.lastIndex=c[1];d=g.concat(p);return d.length||!r.test(b)?[a.replace(/(^|\s)dojo\.loadInit\s*\(/g,
"\n0 \x26\x26 dojo.loadInit("),d.join(""),d]:0},u=l.initSyncLoader(p,n,function(a,d){var c,h,g=[],p=[];if(b.test(d)||!(c=w(d)))return 0;h=a.mid+"-*loadInit";for(var n in I("dojo",a).result.scopeMap)g.push(n),p.push('"'+n+'"');return"// xdomain rewrite of "+a.mid+"\ndefine('"+h+"',{\n\tnames:"+e.stringify(g)+",\n\tdef:function("+g.join(",")+"){"+c[1]+"}});\n\ndefine("+e.stringify(g.concat(["dojo/loadInit!"+h]))+", function("+g.join(",")+"){\n"+c[0]+"});"}),v=u.sync,x=u.requested,y=u.arrived,z=u.nonmodule,
A=u.executing,E=u.executed,B=u.syncExecStack,G=u.modules,L=u.execQ,I=u.getModule,J=u.injectModule,H=u.setArrived,K=u.signal,F=u.finishExec,D=u.execModule,C=u.getLegacyMode,P=u.guardCheckComplete,p=u.dojoRequirePlugin;f.provide=function(a){var b=B[0],h=c.mixin(I(d(a),l.module),{executed:A,result:c.getObject(a,!0)});H(h);b&&(b.provides||(b.provides=[])).push(function(){h.result=c.getObject(a);delete h.provides;h.executed!==E&&F(h)});return h.result};m.add("config-publishRequireResult",1,0,0);f.require=
function(a,b){var h=function(a,b){var c=I(d(a),l.module);if(B.length&&B[0].finish)B[0].finish.push(a);else{if(c.executed)return c.result;b&&(c.result=z);var h=C();J(c);h=C();c.executed!==E&&c.injected===y&&u.guardCheckComplete(function(){D(c)});if(c.executed)return c.result;h==v?c.cjs?L.unshift(c):B.length&&(B[0].finish=[a]):L.push(c)}}(a,b);m("config-publishRequireResult")&&(!c.exists(a)&&void 0!==h)&&c.setObject(a,h);return h};f.loadInit=function(a){a()};f.registerModulePath=function(a,b){var d=
{};d[a.replace(/\./g,"/")]=b;l({paths:d})};f.platformRequire=function(a){a=(a.common||[]).concat(a[f._name]||a["default"]||[]);for(var b;a.length;)c.isArray(b=a.shift())?f.require.apply(f,b):f.require(b)};f.requireIf=f.requireAfterIf=function(a,b,d){a&&f.require(b,d)};f.requireLocalization=function(a,b,d){l(["../i18n"],function(c){c.getLocalization(a,b,d)})};return{extractLegacyApiApplications:w,require:p,loadInit:function(a,b,c){b([a],function(a){b(a.names,function(){for(var h="",g=[],e=0;e<arguments.length;e++)h+=
"var "+a.names[e]+"\x3d arguments["+e+"]; ",g.push(arguments[e]);eval(h);var n=b.module,q=[],v,h={provide:function(a){a=d(a);a=I(a,n);a!==n&&H(a)},require:function(a,b){a=d(a);b&&(I(a,n).result=z);q.push(a)},requireLocalization:function(a,b,c){v||(v=["dojo/i18n"]);c=(c||f.locale).toLowerCase();a=d(a)+"/nls/"+(/root/i.test(c)?"":c+"/")+d(b);I(a,n).isXd&&v.push("dojo/i18n!"+a)},loadInit:function(a){a()}},e={},r;try{for(r in h)e[r]=f[r],f[r]=h[r];a.def.apply(null,g)}catch(t){K("error",[{src:k.id,id:"failedDojoLoadInit"},
t])}finally{for(r in h)f[r]=e[r]}v&&(q=q.concat(v));q.length?p(q.join(","),b,c):c()})})}}})},"dojo/json":function(){define(["./has"],function(f){var m="undefined"!=typeof JSON;f.add("json-parse",m);f.add("json-stringify",m&&'{"a":1}'==JSON.stringify({a:0},function(k,e){return e||1}));if(f("json-stringify"))return JSON;var l=function(k){return('"'+k.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};return{parse:f("json-parse")?
JSON.parse:function(k,e){if(e&&!/^([\s\[\{]*(?:"(?:\\.|[^"])*"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(k))throw new SyntaxError("Invalid characters in JSON");return eval("("+k+")")},stringify:function(k,e,c){function g(b,a,h){e&&(b=e(h,b));var p;p=typeof b;if("number"==p)return isFinite(b)?b+"":"null";if("boolean"==p)return b+"";if(null===b)return"null";if("string"==typeof b)return l(b);if("function"==p||"undefined"==p)return d;if("function"==typeof b.toJSON)return g(b.toJSON(h),
a,h);if(b instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/\{(\w+)(\+)?\}/g,function(a,d,c){a=b["getUTC"+d]()+(c?1:0);return 10>a?"0"+a:a});if(b.valueOf()!==b)return g(b.valueOf(),a,h);var n=c?a+c:"",t=c?" ":"",q=c?"\n":"";if(b instanceof Array){var t=b.length,s=[];for(h=0;h<t;h++)p=g(b[h],n,h),"string"!=typeof p&&(p="null"),s.push(q+n+p);return"["+s.join(",")+q+a+"]"}s=[];for(h in b){var r;if(b.hasOwnProperty(h)){if("number"==typeof h)r='"'+h+'"';else if("string"==
typeof h)r=l(h);else continue;p=g(b[h],n,h);"string"==typeof p&&s.push(q+n+r+":"+t+p)}}return"{"+s.join(",")+q+a+"}"}var d;"string"==typeof e&&(c=e,e=null);return g(k,"","")}}})},"dijit/registry":function(){define(["dojo/_base/array","dojo/_base/window","./main"],function(f,m,l){var k={},e={},c={length:0,add:function(c){if(e[c.id])throw Error("Tried to register widget with id\x3d\x3d"+c.id+" but that id is already registered");e[c.id]=c;this.length++},remove:function(c){e[c]&&(delete e[c],this.length--)},
byId:function(c){return"string"==typeof c?e[c]:c},byNode:function(c){return e[c.getAttribute("widgetId")]},toArray:function(){var c=[],d;for(d in e)c.push(e[d]);return c},getUniqueId:function(c){var d;do d=c+"_"+(c in k?++k[c]:k[c]=0);while(e[d]);return"dijit"==l._scopeName?d:l._scopeName+"_"+d},findWidgets:function(c,d){function b(c){for(c=c.firstChild;c;c=c.nextSibling)if(1==c.nodeType){var g=c.getAttribute("widgetId");g?(g=e[g])&&a.push(g):c!==d&&b(c)}}var a=[];b(c);return a},_destroyAll:function(){l._curFocus=
null;l._prevFocus=null;l._activeStack=[];f.forEach(c.findWidgets(m.body()),function(c){c._destroyed||(c.destroyRecursive?c.destroyRecursive():c.destroy&&c.destroy())})},getEnclosingWidget:function(c){for(;c;){var d=1==c.nodeType&&c.getAttribute("widgetId");if(d)return e[d];c=c.parentNode}return null},_hash:e};return l.registry=c})},"dijit/main":function(){define(["dojo/_base/kernel"],function(f){return f.dijit})},"dijit/form/TextBox":function(){define("dojo/_base/declare dojo/dom-construct dojo/dom-style dojo/_base/kernel dojo/_base/lang dojo/on dojo/sniff ./_FormValueWidget ./_TextBoxMixin dojo/text!./templates/TextBox.html ../main".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h){d=f("dijit.form.TextBox"+(g("dojo-bidi")?"_NoBidi":""),[d,b],{templateString:a,_singleNodeTemplate:'\x3cinput class\x3d"dijit dijitReset dijitLeft dijitInputField" data-dojo-attach-point\x3d"textbox,focusNode" autocomplete\x3d"off" type\x3d"${type}" ${!nameAttrSetting} /\x3e',_buttonInputDisabled:g("ie")?"disabled":"",baseClass:"dijitTextBox",postMixInProperties:function(){var a=this.type.toLowerCase();if(this.templateString&&"input"==this.templateString.toLowerCase()||
("hidden"==a||"file"==a)&&this.templateString==this.constructor.prototype.templateString)this.templateString=this._singleNodeTemplate;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);9>g("ie")&&this.defer(function(){try{var a=l.getComputedStyle(this.domNode);if(a){var b=a.fontFamily;if(b){var d=this.domNode.getElementsByTagName("INPUT");if(d)for(a=0;a<d.length;a++)d[a].style.fontFamily=b}}}catch(c){}})},_setPlaceHolderAttr:function(a){this._set("placeHolder",a);this._phspan||
(this._attachPoints.push("_phspan"),this._phspan=m.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after"),this.own(c(this._phspan,"mousedown",function(a){a.preventDefault()}),c(this._phspan,"touchend, pointerup, MSPointerUp",e.hitch(this,function(){this.focus()}))));this._phspan.innerHTML="";this._phspan.appendChild(this._phspan.ownerDocument.createTextNode(a));this._updatePlaceHolder()},_onInput:function(a){this.inherited(arguments);this._updatePlaceHolder()},_updatePlaceHolder:function(){this._phspan&&
(this._phspan.style.display=this.placeHolder&&!this.textbox.value?"":"none")},_setValueAttr:function(a,b,d){this.inherited(arguments);this._updatePlaceHolder()},getDisplayedValue:function(){k.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use get('displayedValue') instead.","","2.0");return this.get("displayedValue")},setDisplayedValue:function(a){k.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",
a)},_onBlur:function(a){this.disabled||(this.inherited(arguments),this._updatePlaceHolder(),g("mozilla")&&this.selectOnClick&&(this.textbox.selectionStart=this.textbox.selectionEnd=void 0))},_onFocus:function(a){!this.disabled&&!this.readOnly&&(this.inherited(arguments),this._updatePlaceHolder())}});9>g("ie")&&(d.prototype._isTextSelected=function(){var a=this.ownerDocument.selection.createRange();return a.parentElement()==this.textbox&&0<a.text.length},h._setSelectionRange=b._setSelectionRange=function(a,
b,d){a.createTextRange&&(a=a.createTextRange(),a.collapse(!0),a.moveStart("character",-99999),a.moveStart("character",b),a.moveEnd("character",d-b),a.select())});g("dojo-bidi")&&(d=f("dijit.form.TextBox",d,{_setPlaceHolderAttr:function(a){this.inherited(arguments);this.applyTextDir(this._phspan)}}));return d})},"dojo/dom-construct":function(){define("exports ./_base/kernel ./sniff ./_base/window ./dom ./dom-attr".split(" "),function(f,m,l,k,e,c){function g(a,b){var d=b.parentNode;d&&d.insertBefore(a,
b)}function d(a){if("innerHTML"in a)try{a.innerHTML="";return}catch(b){}for(var d;d=a.lastChild;)a.removeChild(d)}var b={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},a=/<\s*([\w\:]+)/,h={},p=0,n="__"+m._scopeName+"ToDomId",t;for(t in b)b.hasOwnProperty(t)&&(m=b[t],m.pre="option"==t?'\x3cselect multiple\x3d"multiple"\x3e':
"\x3c"+m.join("\x3e\x3c")+"\x3e",m.post="\x3c/"+m.reverse().join("\x3e\x3c/")+"\x3e");var q;8>=l("ie")&&(q=function(a){a.__dojo_html5_tested="yes";var b=s("div",{innerHTML:"\x3cnav\x3ea\x3c/nav\x3e",style:{visibility:"hidden"}},a.body);1!==b.childNodes.length&&"abbr article aside audio canvas details figcaption figure footer header hgroup mark meter nav output progress section summary time video".replace(/\b\w+\b/g,function(b){a.createElement(b)});r(b)});f.toDom=function(d,c){c=c||k.doc;var g=c[n];
g||(c[n]=g=++p+"",h[g]=c.createElement("div"));8>=l("ie")&&!c.__dojo_html5_tested&&c.body&&q(c);d+="";var e=d.match(a),r=e?e[1].toLowerCase():"",g=h[g];if(e&&b[r]){e=b[r];g.innerHTML=e.pre+d+e.post;for(e=e.length;e;--e)g=g.firstChild}else g.innerHTML=d;if(1==g.childNodes.length)return g.removeChild(g.firstChild);for(r=c.createDocumentFragment();e=g.firstChild;)r.appendChild(e);return r};f.place=function(a,b,d){b=e.byId(b);"string"==typeof a&&(a=/^\s*</.test(a)?f.toDom(a,b.ownerDocument):e.byId(a));
if("number"==typeof d){var c=b.childNodes;!c.length||c.length<=d?b.appendChild(a):g(a,c[0>d?0:d])}else switch(d){case "before":g(a,b);break;case "after":d=a;(c=b.parentNode)&&(c.lastChild==b?c.appendChild(d):c.insertBefore(d,b.nextSibling));break;case "replace":b.parentNode.replaceChild(a,b);break;case "only":f.empty(b);b.appendChild(a);break;case "first":if(b.firstChild){g(a,b.firstChild);break}default:b.appendChild(a)}return a};var s=f.create=function(a,b,d,h){var g=k.doc;d&&(d=e.byId(d),g=d.ownerDocument);
"string"==typeof a&&(a=g.createElement(a));b&&c.set(a,b);d&&f.place(a,d,h);return a};f.empty=function(a){d(e.byId(a))};var r=f.destroy=function(a){if(a=e.byId(a)){var b=a;a=a.parentNode;b.firstChild&&d(b);a&&(l("ie")&&a.canHaveChildren&&"removeNode"in b?b.removeNode(!1):a.removeChild(b))}}})},"dojo/dom-attr":function(){define("exports ./sniff ./_base/lang ./dom ./dom-style ./dom-prop".split(" "),function(f,m,l,k,e,c){function g(a,b){var d=a.getAttributeNode&&a.getAttributeNode(b);return!!d&&d.specified}
var d={innerHTML:1,textContent:1,className:1,htmlFor:m("ie"),value:1},b={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};f.has=function(a,h){var e=h.toLowerCase();return d[c.names[e]||h]||g(k.byId(a),b[e]||h)};f.get=function(a,h){a=k.byId(a);var e=h.toLowerCase(),n=c.names[e]||h,t=a[n];if(d[n]&&"undefined"!=typeof t)return t;if("textContent"==n)return c.get(a,n);if("href"!=n&&("boolean"==typeof t||l.isFunction(t)))return t;e=b[e]||h;return g(a,e)?a.getAttribute(e):null};f.set=
function(a,h,g){a=k.byId(a);if(2==arguments.length){for(var n in h)f.set(a,n,h[n]);return a}n=h.toLowerCase();var t=c.names[n]||h,q=d[t];if("style"==t&&"string"!=typeof g)return e.set(a,g),a;if(q||"boolean"==typeof g||l.isFunction(g))return c.set(a,h,g);a.setAttribute(b[n]||h,g);return a};f.remove=function(a,d){k.byId(a).removeAttribute(b[d.toLowerCase()]||d)};f.getNodeProp=function(a,d){a=k.byId(a);var e=d.toLowerCase(),n=c.names[e]||d;if(n in a&&"href"!=n)return a[n];e=b[e]||d;return g(a,e)?a.getAttribute(e):
null}})},"dojo/dom-style":function(){define(["./sniff","./dom"],function(f,m){function l(b,d,g){d=d.toLowerCase();if("auto"==g){if("height"==d)return b.offsetHeight;if("width"==d)return b.offsetWidth}if("fontweight"==d)switch(g){case 700:return"bold";default:return"normal"}d in a||(a[d]=h.test(d));return a[d]?c(b,g):g}var k,e={};k=f("webkit")?function(a){var b;if(1==a.nodeType){var d=a.ownerDocument.defaultView;b=d.getComputedStyle(a,null);!b&&a.style&&(a.style.display="",b=d.getComputedStyle(a,null))}return b||
{}}:f("ie")&&(9>f("ie")||f("quirks"))?function(a){return 1==a.nodeType&&a.currentStyle?a.currentStyle:{}}:function(a){return 1==a.nodeType?a.ownerDocument.defaultView.getComputedStyle(a,null):{}};e.getComputedStyle=k;var c;c=f("ie")?function(a,b){if(!b)return 0;if("medium"==b)return 4;if(b.slice&&"px"==b.slice(-2))return parseFloat(b);var d=a.style,c=a.runtimeStyle,h=d.left,g=c.left;c.left=a.currentStyle.left;try{d.left=b,b=d.pixelLeft}catch(e){b=0}d.left=h;c.left=g;return b}:function(a,b){return parseFloat(b)||
0};e.toPixelValue=c;var g=function(a,b){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(d){return b?{}:null}},d=9>f("ie")||10>f("ie")&&f("quirks")?function(a){try{return g(a).Opacity/100}catch(b){return 1}}:function(a){return k(a).opacity},b=9>f("ie")||10>f("ie")&&f("quirks")?function(a,d){""===d&&(d=1);var c=100*d;1===d?(a.style.zoom="",g(a)&&(a.style.filter=a.style.filter.replace(/\s*progid:DXImageTransform.Microsoft.Alpha\([^\)]+?\)/i,""))):(a.style.zoom=1,g(a)?g(a,1).Opacity=
c:a.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+c+")",g(a,1).Enabled=!0);if("tr"==a.tagName.toLowerCase())for(c=a.firstChild;c;c=c.nextSibling)"td"==c.tagName.toLowerCase()&&b(c,d);return d}:function(a,b){return a.style.opacity=b},a={left:!0,top:!0},h=/margin|padding|width|height|max|min|offset/,p={cssFloat:1,styleFloat:1,"float":1};e.get=function(a,b){var c=m.byId(a),h=arguments.length;if(2==h&&"opacity"==b)return d(c);b=p[b]?"cssFloat"in c.style?"cssFloat":"styleFloat":
b;var g=e.getComputedStyle(c);return 1==h?g:l(c,b,g[b]||c.style[b])};e.set=function(a,d,c){var h=m.byId(a),g=arguments.length,k="opacity"==d;d=p[d]?"cssFloat"in h.style?"cssFloat":"styleFloat":d;if(3==g)return k?b(h,c):h.style[d]=c;for(var f in d)e.set(a,f,d[f]);return e.getComputedStyle(h)};return e})},"dojo/dom-prop":function(){define("exports ./_base/kernel ./sniff ./_base/lang ./dom ./dom-style ./dom-construct ./_base/connect".split(" "),function(f,m,l,k,e,c,g,d){function b(a){var d="";a=a.childNodes;
for(var c=0,h;h=a[c];c++)8!=h.nodeType&&(d=1==h.nodeType?d+b(h):d+h.nodeValue);return d}var a={},h=1,p=m._scopeName+"attrid";l.add("dom-textContent",function(a,b,d){return"textContent"in d});f.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",textcontent:"textContent",valuetype:"valueType"};f.get=function(a,d){a=e.byId(a);var c=d.toLowerCase(),c=f.names[c]||d;return"textContent"==c&&!l("dom-textContent")?
b(a):a[c]};f.set=function(b,t,q){b=e.byId(b);if(2==arguments.length&&"string"!=typeof t){for(var s in t)f.set(b,s,t[s]);return b}s=t.toLowerCase();s=f.names[s]||t;if("style"==s&&"string"!=typeof q)return c.set(b,q),b;if("innerHTML"==s)return l("ie")&&b.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(g.empty(b),b.appendChild(g.toDom(q,b.ownerDocument))):b[s]=q,b;if("textContent"==s&&!l("dom-textContent"))return g.empty(b),b.appendChild(b.ownerDocument.createTextNode(q)),
b;if(k.isFunction(q)){var r=b[p];r||(r=h++,b[p]=r);a[r]||(a[r]={});var w=a[r][s];if(w)d.disconnect(w);else try{delete b[s]}catch(u){}q?a[r][s]=d.connect(b,s,q):b[s]=null;return b}b[s]=q;return b}})},"dojo/_base/connect":function(){define("./kernel ../on ../topic ../aspect ./event ../mouse ./sniff ./lang ../keys".split(" "),function(f,m,l,k,e,c,g,d){function b(a,b,h,g,e){g=d.hitch(h,g);if(!a||!a.addEventListener&&!a.attachEvent)return k.after(a||f.global,b,g,!0);"string"==typeof b&&"on"==b.substring(0,
2)&&(b=b.substring(2));a||(a=f.global);if(!e)switch(b){case "keypress":b=t;break;case "mouseenter":b=c.enter;break;case "mouseleave":b=c.leave}return m(a,b,g,e)}function a(a){a.keyChar=a.charCode?String.fromCharCode(a.charCode):"";a.charOrCode=a.keyChar||a.keyCode}g.add("events-keypress-typed",function(){var a={charCode:0};try{a=document.createEvent("KeyboardEvent"),(a.initKeyboardEvent||a.initKeyEvent).call(a,"keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(b){}return 0==a.charCode&&!g("opera")});var h=
{106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39,229:113},p=g("mac")?"metaKey":"ctrlKey",n=function(b,c){var h=d.mixin({},b,c);a(h);h.preventDefault=function(){b.preventDefault()};h.stopPropagation=function(){b.stopPropagation()};return h},t;t=g("events-keypress-typed")?function(a,b){var d=m(a,"keydown",function(a){var d=a.keyCode,c=13!=d&&32!=d&&(27!=d||!g("ie"))&&(48>d||90<d)&&(96>d||111<d)&&(186>d||192<d)&&(219>d||222<d)&&229!=d;if(c||a.ctrlKey){c=c?0:
d;if(a.ctrlKey){if(3==d||13==d)return b.call(a.currentTarget,a);c=95<c&&106>c?c-48:!a.shiftKey&&65<=c&&90>=c?c+32:h[c]||c}d=n(a,{type:"keypress",faux:!0,charCode:c});b.call(a.currentTarget,d);if(g("ie"))try{a.keyCode=d.keyCode}catch(e){}}}),c=m(a,"keypress",function(a){var d=a.charCode;a=n(a,{charCode:32<=d?d:0,faux:!0});return b.call(this,a)});return{remove:function(){d.remove();c.remove()}}}:g("opera")?function(a,b){return m(a,"keypress",function(a){var d=a.which;3==d&&(d=99);d=32>d&&!a.shiftKey?
0:d;a.ctrlKey&&(!a.shiftKey&&65<=d&&90>=d)&&(d+=32);return b.call(this,n(a,{charCode:d}))})}:function(b,d){return m(b,"keypress",function(b){a(b);return d.call(this,b)})};var q={_keypress:t,connect:function(a,d,c,h,g){var e=arguments,p=[],n=0;p.push("string"==typeof e[0]?null:e[n++],e[n++]);var q=e[n+1];p.push("string"==typeof q||"function"==typeof q?e[n++]:null,e[n++]);for(q=e.length;n<q;n++)p.push(e[n]);return b.apply(this,p)},disconnect:function(a){a&&a.remove()},subscribe:function(a,b,c){return l.subscribe(a,
d.hitch(b,c))},publish:function(a,b){return l.publish.apply(l,[a].concat(b))},connectPublisher:function(a,b,d){var c=function(){q.publish(a,arguments)};return d?q.connect(b,d,c):q.connect(b,c)},isCopyKey:function(a){return a[p]}};q.unsubscribe=q.disconnect;d.mixin(f,q);return q})},"dojo/topic":function(){define(["./Evented"],function(f){var m=new f;return{publish:function(f,k){return m.emit.apply(m,arguments)},subscribe:function(f,k){return m.on.apply(m,arguments)}}})},"dojo/_base/event":function(){define(["./kernel",
"../on","../has","../dom-geometry"],function(f,m,l,k){if(m._fixEvent){var e=m._fixEvent;m._fixEvent=function(c,d){(c=e(c,d))&&k.normalizeEvent(c);return c}}var c={fix:function(c,d){return m._fixEvent?m._fixEvent(c,d):c},stop:function(c){l("dom-addeventlistener")||c&&c.preventDefault?(c.preventDefault(),c.stopPropagation()):(c=c||window.event,c.cancelBubble=!0,m._preventDefault.call(c))}};f.fixEvent=c.fix;f.stopEvent=c.stop;return c})},"dojo/dom-geometry":function(){define(["./sniff","./_base/window",
"./dom","./dom-style"],function(f,m,l,k){function e(a,b,d,c,g,e){e=e||"px";a=a.style;isNaN(b)||(a.left=b+e);isNaN(d)||(a.top=d+e);0<=c&&(a.width=c+e);0<=g&&(a.height=g+e)}function c(a){return"button"==a.tagName.toLowerCase()||"input"==a.tagName.toLowerCase()&&"button"==(a.getAttribute("type")||"").toLowerCase()}function g(a){return"border-box"==d.boxModel||"table"==a.tagName.toLowerCase()||c(a)}var d={boxModel:"content-box"};f("ie")&&(d.boxModel="BackCompat"==document.compatMode?"border-box":"content-box");
d.getPadExtents=function(a,b){a=l.byId(a);var d=b||k.getComputedStyle(a),c=k.toPixelValue,g=c(a,d.paddingLeft),e=c(a,d.paddingTop),f=c(a,d.paddingRight),d=c(a,d.paddingBottom);return{l:g,t:e,r:f,b:d,w:g+f,h:e+d}};d.getBorderExtents=function(a,b){a=l.byId(a);var d=k.toPixelValue,c=b||k.getComputedStyle(a),g="none"!=c.borderLeftStyle?d(a,c.borderLeftWidth):0,e="none"!=c.borderTopStyle?d(a,c.borderTopWidth):0,f="none"!=c.borderRightStyle?d(a,c.borderRightWidth):0,d="none"!=c.borderBottomStyle?d(a,c.borderBottomWidth):
0;return{l:g,t:e,r:f,b:d,w:g+f,h:e+d}};d.getPadBorderExtents=function(a,b){a=l.byId(a);var c=b||k.getComputedStyle(a),g=d.getPadExtents(a,c),c=d.getBorderExtents(a,c);return{l:g.l+c.l,t:g.t+c.t,r:g.r+c.r,b:g.b+c.b,w:g.w+c.w,h:g.h+c.h}};d.getMarginExtents=function(a,b){a=l.byId(a);var d=b||k.getComputedStyle(a),c=k.toPixelValue,g=c(a,d.marginLeft),e=c(a,d.marginTop),f=c(a,d.marginRight),d=c(a,d.marginBottom);return{l:g,t:e,r:f,b:d,w:g+f,h:e+d}};d.getMarginBox=function(a,b){a=l.byId(a);var c=b||k.getComputedStyle(a),
g=d.getMarginExtents(a,c),e=a.offsetLeft-g.l,q=a.offsetTop-g.t,s=a.parentNode,r=k.toPixelValue;if(f("mozilla")){var w=parseFloat(c.left),c=parseFloat(c.top);!isNaN(w)&&!isNaN(c)?(e=w,q=c):s&&s.style&&(s=k.getComputedStyle(s),"visible"!=s.overflow&&(e+="none"!=s.borderLeftStyle?r(a,s.borderLeftWidth):0,q+="none"!=s.borderTopStyle?r(a,s.borderTopWidth):0))}else if((f("opera")||8==f("ie")&&!f("quirks"))&&s)s=k.getComputedStyle(s),e-="none"!=s.borderLeftStyle?r(a,s.borderLeftWidth):0,q-="none"!=s.borderTopStyle?
r(a,s.borderTopWidth):0;return{l:e,t:q,w:a.offsetWidth+g.w,h:a.offsetHeight+g.h}};d.getContentBox=function(a,b){a=l.byId(a);var c=b||k.getComputedStyle(a),g=a.clientWidth,e=d.getPadExtents(a,c),q=d.getBorderExtents(a,c);g?(c=a.clientHeight,q.w=q.h=0):(g=a.offsetWidth,c=a.offsetHeight);f("opera")&&(e.l+=q.l,e.t+=q.t);return{l:e.l,t:e.t,w:g-e.w-q.w,h:c-e.h-q.h}};d.setContentSize=function(a,b,c){a=l.byId(a);var n=b.w;b=b.h;g(a)&&(c=d.getPadBorderExtents(a,c),0<=n&&(n+=c.w),0<=b&&(b+=c.h));e(a,NaN,NaN,
n,b)};var b={l:0,t:0,w:0,h:0};d.setMarginBox=function(a,h,p){a=l.byId(a);var n=p||k.getComputedStyle(a);p=h.w;var t=h.h,q=g(a)?b:d.getPadBorderExtents(a,n),n=d.getMarginExtents(a,n);if(f("webkit")&&c(a)){var s=a.style;0<=p&&!s.width&&(s.width="4px");0<=t&&!s.height&&(s.height="4px")}0<=p&&(p=Math.max(p-q.w-n.w,0));0<=t&&(t=Math.max(t-q.h-n.h,0));e(a,h.l,h.t,p,t)};d.isBodyLtr=function(a){a=a||m.doc;return"ltr"==(m.body(a).dir||a.documentElement.dir||"ltr").toLowerCase()};d.docScroll=function(a){a=
a||m.doc;var b=m.doc.parentWindow||m.doc.defaultView;return"pageXOffset"in b?{x:b.pageXOffset,y:b.pageYOffset}:(b=f("quirks")?m.body(a):a.documentElement)&&{x:d.fixIeBiDiScrollLeft(b.scrollLeft||0,a),y:b.scrollTop||0}};d.getIeDocumentElementOffset=function(a){return{x:0,y:0}};d.fixIeBiDiScrollLeft=function(a,b){b=b||m.doc;var c=f("ie");if(c&&!d.isBodyLtr(b)){var g=f("quirks"),e=g?m.body(b):b.documentElement,q=m.global;6==c&&(!g&&q.frameElement&&e.scrollHeight>e.clientHeight)&&(a+=e.clientLeft);return 8>
c||g?a+e.clientWidth-e.scrollWidth:-a}return a};d.position=function(a,b){a=l.byId(a);var c=m.body(a.ownerDocument),g=a.getBoundingClientRect(),g={x:g.left,y:g.top,w:g.right-g.left,h:g.bottom-g.top};9>f("ie")&&(g.x-=f("quirks")?c.clientLeft+c.offsetLeft:0,g.y-=f("quirks")?c.clientTop+c.offsetTop:0);b&&(c=d.docScroll(a.ownerDocument),g.x+=c.x,g.y+=c.y);return g};d.getMarginSize=function(a,b){a=l.byId(a);var c=d.getMarginExtents(a,b||k.getComputedStyle(a)),g=a.getBoundingClientRect();return{w:g.right-
g.left+c.w,h:g.bottom-g.top+c.h}};d.normalizeEvent=function(a){"layerX"in a||(a.layerX=a.offsetX,a.layerY=a.offsetY);if(!("pageX"in a)){var b=a.target,b=b&&b.ownerDocument||document,c=f("quirks")?b.body:b.documentElement;a.pageX=a.clientX+d.fixIeBiDiScrollLeft(c.scrollLeft||0,b);a.pageY=a.clientY+(c.scrollTop||0)}};return d})},"dojo/mouse":function(){define(["./_base/kernel","./on","./has","./dom","./_base/window"],function(f,m,l,k,e){function c(g,d){var b=function(a,b){return m(a,g,function(c){if(d)return d(c,
b);if(!k.isDescendant(c.relatedTarget,a))return b.call(this,c)})};b.bubble=function(a){return c(g,function(b,d){var c=a(b.target),g=b.relatedTarget;if(c&&c!=(g&&1==g.nodeType&&a(g)))return d.call(c,b)})};return b}l.add("dom-quirks",e.doc&&"BackCompat"==e.doc.compatMode);l.add("events-mouseenter",e.doc&&"onmouseenter"in e.doc.createElement("div"));l.add("events-mousewheel",e.doc&&"onmousewheel"in e.doc);e=l("dom-quirks")&&l("ie")||!l("dom-addeventlistener")?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(c,
d){return c.button&d},isLeft:function(c){return c.button&1},isMiddle:function(c){return c.button&4},isRight:function(c){return c.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(c,d){return c.button==d},isLeft:function(c){return 0==c.button},isMiddle:function(c){return 1==c.button},isRight:function(c){return 2==c.button}};f.mouseButtons=e;f=l("events-mousewheel")?"mousewheel":function(c,d){return m(c,"DOMMouseScroll",function(b){b.wheelDelta=-b.detail;d.call(this,b)})};return{_eventHandler:c,
enter:c("mouseover"),leave:c("mouseout"),wheel:f,isLeft:e.isLeft,isMiddle:e.isMiddle,isRight:e.isRight}})},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(f,m,l){f._name="browser";m.mixin(f,{isBrowser:!0,isFF:l("ff"),isIE:l("ie"),isKhtml:l("khtml"),isWebKit:l("webkit"),isMozilla:l("mozilla"),isMoz:l("mozilla"),isOpera:l("opera"),isSafari:l("safari"),isChrome:l("chrome"),isMac:l("mac"),isIos:l("ios"),isAndroid:l("android"),isWii:l("wii"),isQuirks:l("quirks"),isAir:l("air")});
return l})},"dojo/keys":function(){define(["./_base/kernel","./sniff"],function(f,m){return f.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:m("webkit")?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,
NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:m("mac")&&!m("air")?m("safari")?91:224:17}})},"dijit/form/_FormValueWidget":function(){define(["dojo/_base/declare","dojo/sniff","./_FormWidget","./_FormValueMixin"],function(f,m,
l,k){return f("dijit.form._FormValueWidget",[l,k],{_layoutHackIE7:function(){if(7==m("ie"))for(var e=this.domNode,c=e.parentNode,g=e.firstChild||e,d=g.style.filter,b=this;c&&0==c.clientHeight;)(function(){var a=b.connect(c,"onscroll",function(){b.disconnect(a);g.style.filter=(new Date).getMilliseconds();b.defer(function(){g.style.filter=d})})})(),c=c.parentNode}})})},"dijit/form/_FormWidget":function(){define("dojo/_base/declare dojo/sniff dojo/_base/kernel dojo/ready ../_Widget ../_CssStateMixin ../_TemplatedMixin ./_FormWidgetMixin".split(" "),
function(f,m,l,k,e,c,g,d){m("dijit-legacy-requires")&&k(0,function(){require(["dijit/form/_FormValueWidget"])});return f("dijit.form._FormWidget",[e,g,c,d],{setDisabled:function(b){l.deprecated("setDisabled("+b+") is deprecated. Use set('disabled',"+b+") instead.","","2.0");this.set("disabled",b)},setValue:function(b){l.deprecated("dijit.form._FormWidget:setValue("+b+") is deprecated.  Use set('value',"+b+") instead.","","2.0");this.set("value",b)},getValue:function(){l.deprecated(this.declaredClass+
"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},postMixInProperties:function(){this.nameAttrSetting=this.name&&!m("msapp")?'name\x3d"'+this.name.replace(/"/g,"\x26quot;")+'"':"";this.inherited(arguments)}})})},"dijit/_Widget":function(){define("dojo/aspect dojo/_base/config dojo/_base/connect dojo/_base/declare dojo/has dojo/_base/kernel dojo/_base/lang dojo/query dojo/ready ./registry ./_WidgetBase ./_OnDijitClickMixin ./_FocusMixin dojo/uacss ./hccss".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n){function t(){}function q(a){return function(b,c,d,h){return b&&"string"==typeof c&&b[c]==t?b.on(c.substring(2).toLowerCase(),g.hitch(d,h)):a.apply(l,arguments)}}f.around(l,"connect",q);c.connect&&f.around(c,"connect",q);f=k("dijit._Widget",[h,p,n],{onClick:t,onDblClick:t,onKeyDown:t,onKeyPress:t,onKeyUp:t,onMouseDown:t,onMouseMove:t,onMouseOut:t,onMouseOver:t,onMouseLeave:t,onMouseEnter:t,onMouseUp:t,constructor:function(a){this._toConnect={};for(var b in a)this[b]===
t&&(this._toConnect[b.replace(/^on/,"").toLowerCase()]=a[b],delete a[b])},postCreate:function(){this.inherited(arguments);for(var a in this._toConnect)this.on(a,this._toConnect[a]);delete this._toConnect},on:function(a,b){return this[this._onMap(a)]===t?l.connect(this.domNode,a.toLowerCase(),this,b):this.inherited(arguments)},_setFocusedAttr:function(a){this._focused=a;this._set("focused",a)},setAttribute:function(a,b){c.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.",
"","2.0");this.set(a,b)},attr:function(a,b){return 2<=arguments.length||"object"===typeof a?this.set.apply(this,arguments):this.get(a)},getDescendants:function(){c.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?d("[widgetId]",this.containerNode).map(a.byNode):[]},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}});e("dijit-legacy-requires")&&b(0,function(){require(["dijit/_base"])});
return f})},"dijit/_WidgetBase":function(){define("require dojo/_base/array dojo/aspect dojo/_base/config dojo/_base/connect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/has dojo/_base/kernel dojo/_base/lang dojo/on dojo/ready dojo/Stateful dojo/topic dojo/_base/window ./Destroyable dojo/has!dojo-bidi?./_BidiMixin ./registry".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r,w,u,v,x,y,z){function A(a){return function(b){d[b?
"set":"remove"](this.domNode,a,b);this._set(a,b)}}n.add("dijit-legacy-requires",!t.isAsync);n.add("dojo-bidi",!1);n("dijit-legacy-requires")&&r(0,function(){f(["dijit/_base/manager"])});var E={};k=c("dijit._WidgetBase",[w,x],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:A("lang"),dir:"",_setDirAttr:A("dir"),"class":"",_setClassAttr:{node:"domNode",type:"class"},_setTypeAttr:null,style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(a){this._set("ownerDocument",
a)},attributeMap:{},_blankGif:k.blankGif||f.toUrl("dojo/resources/blank.gif"),textDir:"",_introspect:function(){var a=this.constructor;if(!a._setterAttrs){var b=a.prototype,c=a._setterAttrs=[],a=a._onMap={},d;for(d in b.attributeMap)c.push(d);for(d in b)/^on/.test(d)&&(a[d.substring(2).toLowerCase()]=d),/^_set[A-Z](.*)Attr$/.test(d)&&(d=d.charAt(4).toLowerCase()+d.substr(5,d.length-9),(!b.attributeMap||!(d in b.attributeMap))&&c.push(d))}},postscript:function(a,b){this.create(a,b)},create:function(a,
b){this._introspect();this.srcNodeRef=g.byId(b);this._connects=[];this._supportingWidgets=[];this.srcNodeRef&&(this.srcNodeRef.id&&"string"==typeof this.srcNodeRef.id)&&(this.id=this.srcNodeRef.id);a&&(this.params=a,q.mixin(this,a));this.postMixInProperties();this.id||(this.id=z.getUniqueId(this.declaredClass.replace(/\./g,"_")),this.params&&delete this.params.id);this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:document);this.ownerDocumentBody=v.body(this.ownerDocument);
z.add(this);this.buildRendering();var c;if(this.domNode){this._applyAttributes();var d=this.srcNodeRef;d&&(d.parentNode&&this.domNode!==d)&&(d.parentNode.replaceChild(this.domNode,d),c=!0);this.domNode.setAttribute("widgetId",this.id)}this.postCreate();c&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var a={},b;for(b in this.params||{})a[b]=this._get(b);m.forEach(this.constructor._setterAttrs,function(b){if(!(b in a)){var d=this._get(b);d&&this.set(b,d)}},this);for(b in a)this.set(b,
a[b])},postMixInProperties:function(){},buildRendering:function(){this.domNode||(this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div"));if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(m.map(a,function(a){return a+"Rtl"})));b.add(this.domNode,a)}},postCreate:function(){},startup:function(){this._started||(this._started=!0,m.forEach(this.getChildren(),function(a){!a._started&&(!a._destroyed&&q.isFunction(a.startup))&&(a.startup(),a._started=!0)}))},
destroyRecursive:function(a){this._beingDestroyed=!0;this.destroyDescendants(a);this.destroy(a)},destroy:function(a){function b(d){d.destroyRecursive?d.destroyRecursive(a):d.destroy&&d.destroy(a)}this._beingDestroyed=!0;this.uninitialize();m.forEach(this._connects,q.hitch(this,"disconnect"));m.forEach(this._supportingWidgets,b);this.domNode&&m.forEach(z.findWidgets(this.domNode,this.containerNode),b);this.destroyRendering(a);z.remove(this.id);this._destroyed=!0},destroyRendering:function(b){this.bgIframe&&
(this.bgIframe.destroy(b),delete this.bgIframe);this.domNode&&(b?d.remove(this.domNode,"widgetId"):a.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(b||a.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(a){m.forEach(this.getChildren(),function(b){b.destroyRecursive&&b.destroyRecursive(a)})},uninitialize:function(){return!1},_setStyleAttr:function(a){var b=this.domNode;q.isObject(a)?p.set(b,a):b.style.cssText=b.style.cssText?b.style.cssText+("; "+a):a;this._set("style",
a)},_attrToDom:function(a,c,h){h=3<=arguments.length?h:this.attributeMap[a];m.forEach(q.isArray(h)?h:[h],function(h){var g=this[h.node||h||"domNode"];switch(h.type||"attribute"){case "attribute":q.isFunction(c)&&(c=q.hitch(this,c));h=h.attribute?h.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;g.tagName?d.set(g,h,c):g.set(h,c);break;case "innerText":g.innerHTML="";g.appendChild(this.ownerDocument.createTextNode(c));break;case "innerHTML":g.innerHTML=c;break;case "class":b.replace(g,c,this[a]);
break;case "toggleClass":b.toggle(g,h.className||a,c)}},this)},get:function(a){var b=this._getAttrNames(a);return this[b.g]?this[b.g]():this._get(a)},set:function(a,b){if("object"===typeof a){for(var c in a)this.set(c,a[c]);return this}c=this._getAttrNames(a);var d=this[c.s];if(q.isFunction(d))var h=d.apply(this,Array.prototype.slice.call(arguments,1));else{var d=this.focusNode&&!q.isFunction(this.focusNode)?"focusNode":"domNode",g=this[d]&&this[d].tagName,e;if(e=g)if(!(e=E[g])){e=this[d];var p={},
n;for(n in e)p[n.toLowerCase()]=!0;e=E[g]=p}n=e;c=a in this.attributeMap?this.attributeMap[a]:c.s in this?this[c.s]:n&&c.l in n&&"function"!=typeof b||/^aria-|^data-|^role$/.test(a)?d:null;null!=c&&this._attrToDom(a,b,c);this._set(a,b)}return h||this},_attrPairNames:{},_getAttrNames:function(a){var b=this._attrPairNames;if(b[a])return b[a];var c=a.replace(/^[a-z]|-[a-zA-Z]/g,function(a){return a.charAt(a.length-1).toUpperCase()});return b[a]={n:a+"Node",s:"_set"+c+"Attr",g:"_get"+c+"Attr",l:c.toLowerCase()}},
_set:function(a,b){var c=this[a];this[a]=b;if(this._created&&!(c===b||c!==c&&b!==b))this._watchCallbacks&&this._watchCallbacks(a,c,b),this.emit("attrmodified-"+a,{detail:{prevValue:c,newValue:b}})},_get:function(a){return this[a]},emit:function(a,b,c){b=b||{};void 0===b.bubbles&&(b.bubbles=!0);void 0===b.cancelable&&(b.cancelable=!0);b.detail||(b.detail={});b.detail.widget=this;var d,h=this["on"+a];h&&(d=h.apply(this,c?c:[b]));this._started&&!this._beingDestroyed&&s.emit(this.domNode,a.toLowerCase(),
b);return d},on:function(a,b){var c=this._onMap(a);return c?l.after(this,c,b,!0):this.own(s(this.domNode,a,b))[0]},_onMap:function(a){var b=this.constructor,c=b._onMap;if(!c){var c=b._onMap={},d;for(d in b.prototype)/^on/.test(d)&&(c[d.replace(/^on/,"").toLowerCase()]=d)}return c["string"==typeof a&&a.toLowerCase()]},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getChildren:function(){return this.containerNode?z.findWidgets(this.containerNode):[]},getParent:function(){return z.getEnclosingWidget(this.domNode.parentNode)},
connect:function(a,b,c){return this.own(e.connect(a,b,this,c))[0]},disconnect:function(a){a.remove()},subscribe:function(a,b){return this.own(u.subscribe(a,q.hitch(this,b)))[0]},unsubscribe:function(a){a.remove()},isLeftToRight:function(){return this.dir?"ltr"==this.dir.toLowerCase():h.isBodyLtr(this.ownerDocument)},isFocusable:function(){return this.focus&&"none"!=p.get(this.domNode,"display")},placeAt:function(b,c){var d=!b.tagName&&z.byId(b);d&&d.addChild&&(!c||"number"===typeof c)?d.addChild(this,
c):(d=d&&"domNode"in d?d.containerNode&&!/after|before|replace/.test(c||"")?d.containerNode:d.domNode:g.byId(b,this.ownerDocument),a.place(this.domNode,d,c),!this._started&&(this.getParent()||{})._started&&this.startup());return this},defer:function(a,b){var c=setTimeout(q.hitch(this,function(){c&&(c=null,this._destroyed||q.hitch(this,a)())}),b||0);return{remove:function(){c&&(clearTimeout(c),c=null);return null}}}});n("dojo-bidi")&&k.extend(y);return k})},"dojo/dom-class":function(){define(["./_base/lang",
"./_base/array","./dom"],function(f,m,l){function k(b){if("string"==typeof b||b instanceof String){if(b&&!c.test(b))return g[0]=b,g;b=b.split(c);b.length&&!b[0]&&b.shift();b.length&&!b[b.length-1]&&b.pop();return b}return!b?[]:m.filter(b,function(a){return a})}var e,c=/\s+/,g=[""],d={};return e={contains:function(b,a){return 0<=(" "+l.byId(b).className+" ").indexOf(" "+a+" ")},add:function(b,a){b=l.byId(b);a=k(a);var c=b.className,d,c=c?" "+c+" ":" ";d=c.length;for(var g=0,e=a.length,q;g<e;++g)(q=
a[g])&&0>c.indexOf(" "+q+" ")&&(c+=q+" ");d<c.length&&(b.className=c.substr(1,c.length-2))},remove:function(b,a){b=l.byId(b);var c;if(void 0!==a){a=k(a);c=" "+b.className+" ";for(var d=0,g=a.length;d<g;++d)c=c.replace(" "+a[d]+" "," ");c=f.trim(c)}else c="";b.className!=c&&(b.className=c)},replace:function(b,a,c){b=l.byId(b);d.className=b.className;e.remove(d,c);e.add(d,a);b.className!==d.className&&(b.className=d.className)},toggle:function(b,a,c){b=l.byId(b);if(void 0===c){a=k(a);for(var d=0,g=
a.length,f;d<g;++d)f=a[d],e[e.contains(b,f)?"remove":"add"](b,f)}else e[c?"add":"remove"](b,a);return c}}})},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(f,m,l,k){return f("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(e){var c=this._attrPairNames;return c[e]?c[e]:c[e]={s:"_"+e+"Setter",g:"_"+e+"Getter"}},postscript:function(e){e&&this.set(e)},_get:function(e,c){return"function"===typeof this[c.g]?this[c.g]():this[e]},get:function(e){return this._get(e,
this._getAttrNames(e))},set:function(e,c){if("object"===typeof e){for(var g in e)e.hasOwnProperty(g)&&"_watchCallbacks"!=g&&this.set(g,e[g]);return this}g=this._getAttrNames(e);var d=this._get(e,g);g=this[g.s];var b;"function"===typeof g?b=g.apply(this,Array.prototype.slice.call(arguments,1)):this[e]=c;if(this._watchCallbacks){var a=this;k(b,function(){a._watchCallbacks(e,d,c)})}return this},_changeAttrValue:function(e,c){var g=this.get(e);this[e]=c;this._watchCallbacks&&this._watchCallbacks(e,g,
c);return this},watch:function(e,c){var g=this._watchCallbacks;if(!g)var d=this,g=this._watchCallbacks=function(a,b,c,e){var q=function(g){if(g){g=g.slice();for(var e=0,q=g.length;e<q;e++)g[e].call(d,a,b,c)}};q(g["_"+a]);e||q(g["*"])};!c&&"function"===typeof e?(c=e,e="*"):e="_"+e;var b=g[e];"object"!==typeof b&&(b=g[e]=[]);b.push(c);var a={};a.unwatch=a.remove=function(){var a=l.indexOf(b,c);-1<a&&b.splice(a,1)};return a}})})},"dijit/Destroyable":function(){define(["dojo/_base/array","dojo/aspect",
"dojo/_base/declare"],function(f,m,l){return l("dijit.Destroyable",null,{destroy:function(f){this._destroyed=!0},own:function(){var k=["destroyRecursive","destroy","remove"];f.forEach(arguments,function(e){function c(){d.remove();f.forEach(b,function(a){a.remove()})}var g,d=m.before(this,"destroy",function(a){e[g](a)}),b=[];e.then?(g="cancel",e.then(c,c)):f.forEach(k,function(a){"function"===typeof e[a]&&(g||(g=a),b.push(m.after(e,a,c,!0)))})},this);return arguments}})})},"dijit/_OnDijitClickMixin":function(){define("dojo/on dojo/_base/array dojo/keys dojo/_base/declare dojo/has ./a11yclick".split(" "),
function(f,m,l,k,e,c){f=k("dijit._OnDijitClickMixin",null,{connect:function(g,d,b){return this.inherited(arguments,[g,"ondijitclick"==d?c:d,b])}});f.a11yclick=c;return f})},"dijit/a11yclick":function(){define(["dojo/keys","dojo/mouse","dojo/on","dojo/touch"],function(f,m,l,k){function e(c){if((c.keyCode===f.ENTER||c.keyCode===f.SPACE)&&!/input|button|textarea/i.test(c.target.nodeName))for(c=c.target;c;c=c.parentNode)if(c.dojoClick)return!0}var c;l(document,"keydown",function(d){e(d)?(c=d.target,d.preventDefault()):
c=null});l(document,"keyup",function(d){e(d)&&d.target==c&&(c=null,l.emit(d.target,"click",{cancelable:!0,bubbles:!0,ctrlKey:d.ctrlKey,shiftKey:d.shiftKey,metaKey:d.metaKey,altKey:d.altKey,_origType:d.type}))});var g=function(c,b){c.dojoClick=!0;return l(c,"click",b)};g.click=g;g.press=function(c,b){var a=l(c,k.press,function(a){("mousedown"!=a.type||m.isLeft(a))&&b(a)}),h=l(c,"keydown",function(a){(a.keyCode===f.ENTER||a.keyCode===f.SPACE)&&b(a)});return{remove:function(){a.remove();h.remove()}}};
g.release=function(c,b){var a=l(c,k.release,function(a){("mouseup"!=a.type||m.isLeft(a))&&b(a)}),h=l(c,"keyup",function(a){(a.keyCode===f.ENTER||a.keyCode===f.SPACE)&&b(a)});return{remove:function(){a.remove();h.remove()}}};g.move=k.move;return g})},"dojo/touch":function(){define("./_base/kernel ./aspect ./dom ./dom-class ./_base/lang ./on ./has ./mouse ./domReady ./_base/window".split(" "),function(f,m,l,k,e,c,g,d,b,a){function h(a,b,d){return q&&d?function(a,b){return c(a,d,b)}:r?function(d,h){var g=
c(d,b,function(a){h.call(this,a);G=(new Date).getTime()}),e=c(d,a,function(a){(!G||(new Date).getTime()>G+1E3)&&h.call(this,a)});return{remove:function(){g.remove();e.remove()}}}:function(b,d){return c(b,a,d)}}function p(a){do if(void 0!==a.dojoClick)return a;while(a=a.parentNode)}function n(b,h,g){if(!d.isRight(b)){var e=p(b.target);if(u=!b.target.disabled&&e&&e.dojoClick)if(x=(v="useTarget"==u)?e:b.target,v&&b.preventDefault(),y=b.changedTouches?b.changedTouches[0].pageX-a.global.pageXOffset:b.clientX,
z=b.changedTouches?b.changedTouches[0].pageY-a.global.pageYOffset:b.clientY,A=("object"==typeof u?u.x:"number"==typeof u?u:0)||4,E=("object"==typeof u?u.y:"number"==typeof u?u:0)||4,!w){w=!0;var n=function(b){u=v?l.isDescendant(a.doc.elementFromPoint(b.changedTouches?b.changedTouches[0].pageX-a.global.pageXOffset:b.clientX,b.changedTouches?b.changedTouches[0].pageY-a.global.pageYOffset:b.clientY),x):u&&(b.changedTouches?b.changedTouches[0].target:b.target)==x&&Math.abs((b.changedTouches?b.changedTouches[0].pageX-
a.global.pageXOffset:b.clientX)-y)<=A&&Math.abs((b.changedTouches?b.changedTouches[0].pageY-a.global.pageYOffset:b.clientY)-z)<=E};a.doc.addEventListener(h,function(a){d.isRight(a)||(n(a),v&&a.preventDefault())},!0);a.doc.addEventListener(g,function(a){if(!d.isRight(a)&&(n(a),u)){B=(new Date).getTime();var b=v?x:a.target;"LABEL"===b.tagName&&(b=l.byId(b.getAttribute("for"))||b);var h=a.changedTouches?a.changedTouches[0]:a,g=function(b){var c=document.createEvent("MouseEvents");c._dojo_click=!0;c.initMouseEvent(b,
!0,!0,a.view,a.detail,h.screenX,h.screenY,h.clientX,h.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,null);return c},e=g("mousedown"),p=g("mouseup"),q=g("click");setTimeout(function(){c.emit(b,"mousedown",e);c.emit(b,"mouseup",p);c.emit(b,"click",q);B=(new Date).getTime()},0)}},!0);b=function(b){a.doc.addEventListener(b,function(a){var c=a.target;u&&(!a._dojo_click&&(new Date).getTime()<=B+1E3&&!("INPUT"==c.tagName&&k.contains(c,"dijitOffScreen")))&&(a.stopPropagation(),a.stopImmediatePropagation&&
a.stopImmediatePropagation(),"click"==b&&(("INPUT"!=c.tagName||"radio"==c.type&&(k.contains(c,"dijitCheckBoxInput")||k.contains(c,"mblRadioButton"))||"checkbox"==c.type&&(k.contains(c,"dijitCheckBoxInput")||k.contains(c,"mblCheckBox")))&&"TEXTAREA"!=c.tagName&&"AUDIO"!=c.tagName&&"VIDEO"!=c.tagName)&&a.preventDefault())},!0)};b("click");b("mousedown");b("mouseup")}}}var t=5>g("ios"),q=g("pointer-events")||g("MSPointer"),s=function(){var a={},b;for(b in{down:1,move:1,up:1,cancel:1,over:1,out:1})a[b]=
g("MSPointer")?"MSPointer"+b.charAt(0).toUpperCase()+b.slice(1):"pointer"+b;return a}(),r=g("touch-events"),w,u,v=!1,x,y,z,A,E,B,G,L;g("touch")&&(q?b(function(){a.doc.addEventListener(s.down,function(a){n(a,s.move,s.up)},!0)}):b(function(){function b(a){var c=e.delegate(a,{bubbles:!0});6<=g("ios")&&(c.touches=a.touches,c.altKey=a.altKey,c.changedTouches=a.changedTouches,c.ctrlKey=a.ctrlKey,c.metaKey=a.metaKey,c.shiftKey=a.shiftKey,c.targetTouches=a.targetTouches);return c}L=a.body();a.doc.addEventListener("touchstart",
function(a){G=(new Date).getTime();var b=L;L=a.target;c.emit(b,"dojotouchout",{relatedTarget:L,bubbles:!0});c.emit(L,"dojotouchover",{relatedTarget:b,bubbles:!0});n(a,"touchmove","touchend")},!0);c(a.doc,"touchmove",function(d){G=(new Date).getTime();var h=a.doc.elementFromPoint(d.pageX-(t?0:a.global.pageXOffset),d.pageY-(t?0:a.global.pageYOffset));h&&(L!==h&&(c.emit(L,"dojotouchout",{relatedTarget:h,bubbles:!0}),c.emit(h,"dojotouchover",{relatedTarget:L,bubbles:!0}),L=h),c.emit(h,"dojotouchmove",
b(d))||d.preventDefault())});c(a.doc,"touchend",function(d){G=(new Date).getTime();var h=a.doc.elementFromPoint(d.pageX-(t?0:a.global.pageXOffset),d.pageY-(t?0:a.global.pageYOffset))||a.body();c.emit(h,"dojotouchend",b(d))})}));m={press:h("mousedown","touchstart",s.down),move:h("mousemove","dojotouchmove",s.move),release:h("mouseup","dojotouchend",s.up),cancel:h(d.leave,"touchcancel",q?s.cancel:null),over:h("mouseover","dojotouchover",s.over),out:h("mouseout","dojotouchout",s.out),enter:d._eventHandler(h("mouseover",
"dojotouchover",s.over)),leave:d._eventHandler(h("mouseout","dojotouchout",s.out))};return f.touch=m})},"dijit/_FocusMixin":function(){define(["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(f,m,l,k){k.extend(m,{focused:!1,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()}});return l("dijit._FocusMixin",null,{_focusManager:f})})},"dijit/focus":function(){define("dojo/aspect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/Evented dojo/_base/lang dojo/on dojo/domReady dojo/sniff dojo/Stateful dojo/_base/window dojo/window ./a11y ./registry ./main".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r){var w,u,v=new (m([p,g],{curNode:null,activeStack:[],constructor:function(){var a=d.hitch(this,function(a){l.isDescendant(this.curNode,a)&&this.set("curNode",null);l.isDescendant(this.prevNode,a)&&this.set("prevNode",null)});f.before(c,"empty",a);f.before(c,"destroy",a)},registerIframe:function(a){return this.registerWin(a.contentWindow,a)},registerWin:function(a,c){var d=this,g=a.document&&a.document.body;if(g){var e=h("pointer-events")?"pointerdown":h("MSPointer")?
"MSPointerDown":h("touch-events")?"mousedown, touchstart":"mousedown",p=b(a.document,e,function(a){if(!a||!(a.target&&null==a.target.parentNode))d._onTouchNode(c||a.target,"mouse")}),n=b(g,"focusin",function(a){if(a.target.tagName){var b=a.target.tagName.toLowerCase();"#document"==b||"body"==b||(q.isFocusable(a.target)?d._onFocusNode(c||a.target):d._onTouchNode(c||a.target))}}),r=b(g,"focusout",function(a){d._onBlurNode(c||a.target)});return{remove:function(){p.remove();n.remove();r.remove();g=p=
n=r=null}}}},_onBlurNode:function(a){a=(new Date).getTime();a<w+100||(this._clearFocusTimer&&clearTimeout(this._clearFocusTimer),this._clearFocusTimer=setTimeout(d.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null)}),0),this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),a<u+100||(this._clearActiveWidgetsTimer=setTimeout(d.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([])}),0)))},_onTouchNode:function(a,b){u=(new Date).getTime();
this._clearActiveWidgetsTimer&&(clearTimeout(this._clearActiveWidgetsTimer),delete this._clearActiveWidgetsTimer);e.contains(a,"dijitPopup")&&(a=a.firstChild);var c=[];try{for(;a;){var d=k.get(a,"dijitPopupParent");if(d)a=s.byId(d).domNode;else if(a.tagName&&"body"==a.tagName.toLowerCase()){if(a===n.body())break;a=t.get(a.ownerDocument).frameElement}else{var h=a.getAttribute&&a.getAttribute("widgetId"),g=h&&s.byId(h);g&&!("mouse"==b&&g.get("disabled"))&&c.unshift(h);a=a.parentNode}}}catch(p){}this._setStack(c,
b)},_onFocusNode:function(a){a&&9!=a.nodeType&&(w=(new Date).getTime(),this._clearFocusTimer&&(clearTimeout(this._clearFocusTimer),delete this._clearFocusTimer),this._onTouchNode(a),a!=this.curNode&&(this.set("prevNode",this.curNode),this.set("curNode",a)))},_setStack:function(a,b){var c=this.activeStack,d=c.length-1,h=a.length-1;if(a[h]!=c[d]){this.set("activeStack",a);var g;for(g=d;0<=g&&c[g]!=a[g];g--)if(d=s.byId(c[g]))d._hasBeenBlurred=!0,d.set("focused",!1),d._focusManager==this&&d._onBlur(b),
this.emit("widget-blur",d,b);for(g++;g<=h;g++)if(d=s.byId(a[g]))d.set("focused",!0),d._focusManager==this&&d._onFocus(b),this.emit("widget-focus",d,b)}},focus:function(a){if(a)try{a.focus()}catch(b){}}}));a(function(){var a=v.registerWin(t.get(document));h("ie")&&b(window,"unload",function(){a&&(a.remove(),a=null)})});r.focus=function(a){v.focus(a)};for(var x in v)/^_/.test(x)||(r.focus[x]="function"==typeof v[x]?d.hitch(v,x):v[x]);v.watch(function(a,b,c){r.focus[a]=c});return v})},"dojo/window":function(){define("./_base/lang ./sniff ./_base/window ./dom ./dom-geometry ./dom-style ./dom-construct".split(" "),
function(f,m,l,k,e,c,g){m.add("rtl-adjust-position-for-verticalScrollBar",function(b,a){var c=l.body(a),d=g.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},c,"last"),n=g.create("div",{style:{overflow:"hidden",direction:"ltr"}},d,"last"),f=0!=e.position(n).x;d.removeChild(n);c.removeChild(d);return f});m.add("position-fixed-support",function(b,a){var c=l.body(a),d=g.create("span",{style:{visibility:"hidden",
position:"fixed",left:"1px",top:"1px"}},c,"last"),n=g.create("span",{style:{position:"fixed",left:"0",top:"0"}},d,"last"),f=e.position(n).x!=e.position(d).x;d.removeChild(n);c.removeChild(d);return f});var d={getBox:function(b){b=b||l.doc;var a="BackCompat"==b.compatMode?l.body(b):b.documentElement,c=e.docScroll(b);if(m("touch")){var g=d.get(b);b=g.innerWidth||a.clientWidth;a=g.innerHeight||a.clientHeight}else b=a.clientWidth,a=a.clientHeight;return{l:c.x,t:c.y,w:b,h:a}},get:function(b){if(m("ie")&&
d!==document.parentWindow){b.parentWindow.execScript("document._parentWindow \x3d window;","Javascript");var a=b._parentWindow;b._parentWindow=null;return a}return b.parentWindow||b.defaultView},scrollIntoView:function(b,a){try{b=k.byId(b);var d=b.ownerDocument||l.doc,g=l.body(d),n=d.documentElement||g.parentNode,f=m("ie")||m("trident"),q=m("webkit");if(!(b==g||b==n))if(!m("mozilla")&&(!f&&!q&&!m("opera")&&!m("trident")&&!m("edge"))&&"scrollIntoView"in b)b.scrollIntoView(!1);else{var s="BackCompat"==
d.compatMode,r=Math.min(g.clientWidth||n.clientWidth,n.clientWidth||g.clientWidth),w=Math.min(g.clientHeight||n.clientHeight,n.clientHeight||g.clientHeight),d=q||s?g:n,u=a||e.position(b),v=b.parentNode,q=function(a){return 6>=f||7==f&&s?!1:m("position-fixed-support")&&"fixed"==c.get(a,"position").toLowerCase()},x=this,y=function(a,b,c){"BODY"==a.tagName||"HTML"==a.tagName?x.get(a.ownerDocument).scrollBy(b,c):(b&&(a.scrollLeft+=b),c&&(a.scrollTop+=c))};if(!q(b))for(;v;){v==g&&(v=d);var z=e.position(v),
A=q(v),E="rtl"==c.getComputedStyle(v).direction.toLowerCase();if(v==d){z.w=r;z.h=w;if(d==n&&(f||m("trident"))&&E)z.x+=d.offsetWidth-z.w;z.x=0;z.y=0}else{var B=e.getPadBorderExtents(v);z.w-=B.w;z.h-=B.h;z.x+=B.l;z.y+=B.t;var G=v.clientWidth,L=z.w-G;0<G&&0<L&&(E&&m("rtl-adjust-position-for-verticalScrollBar")&&(z.x+=L),z.w=G);G=v.clientHeight;L=z.h-G;0<G&&0<L&&(z.h=G)}A&&(0>z.y&&(z.h+=z.y,z.y=0),0>z.x&&(z.w+=z.x,z.x=0),z.y+z.h>w&&(z.h=w-z.y),z.x+z.w>r&&(z.w=r-z.x));var I=u.x-z.x,J=u.y-z.y,H=I+u.w-z.w,
K=J+u.h-z.h,F,D;if(0<H*I&&(v.scrollLeft||v==d||v.scrollWidth>v.offsetHeight)){F=Math[0>I?"max":"min"](I,H);if(E&&(8==f&&!s||5<=m("trident")))F=-F;D=v.scrollLeft;y(v,F,0);F=v.scrollLeft-D;u.x-=F}if(0<K*J&&(v.scrollTop||v==d||v.scrollHeight>v.offsetHeight))F=Math.ceil(Math[0>J?"max":"min"](J,K)),D=v.scrollTop,y(v,0,F),F=v.scrollTop-D,u.y-=F;v=v!=d&&!A&&v.parentNode}}}catch(C){console.error("scrollIntoView: "+C),b.scrollIntoView(!1)}}};f.setObject("dojo.window",d);return d})},"dijit/a11y":function(){define("dojo/_base/array dojo/dom dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/sniff ./main".split(" "),
function(f,m,l,k,e,c,g){var d={_isElementShown:function(b){var a=k.get(b);return"hidden"!=a.visibility&&"collapsed"!=a.visibility&&"none"!=a.display&&"hidden"!=l.get(b,"type")},hasDefaultTabStop:function(b){switch(b.nodeName.toLowerCase()){case "a":return l.has(b,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return!0;case "iframe":var a;try{var c=b.contentDocument;if("designMode"in c&&"on"==c.designMode)return!0;a=c.body}catch(d){try{a=b.contentWindow.document.body}catch(g){return!1}}return a&&
("true"==a.contentEditable||a.firstChild&&"true"==a.firstChild.contentEditable);default:return"true"==b.contentEditable}},effectiveTabIndex:function(b){return l.get(b,"disabled")?void 0:l.has(b,"tabIndex")?+l.get(b,"tabIndex"):d.hasDefaultTabStop(b)?0:void 0},isTabNavigable:function(b){return 0<=d.effectiveTabIndex(b)},isFocusable:function(b){return-1<=d.effectiveTabIndex(b)},_getTabNavigable:function(b){function a(a){return a&&"input"==a.tagName.toLowerCase()&&a.type&&"radio"==a.type.toLowerCase()&&
a.name&&a.name.toLowerCase()}var h,g,e,f,q,k,r={},w=d._isElementShown,u=d.effectiveTabIndex,v=function(b){for(b=b.firstChild;b;b=b.nextSibling)if(!(1!=b.nodeType||9>=c("ie")&&"HTML"!==b.scopeName||!w(b))){var d=u(b);if(0<=d){if(0==d)h||(h=b),g=b;else if(0<d){if(!e||d<f)f=d,e=b;if(!q||d>=k)k=d,q=b}d=a(b);l.get(b,"checked")&&d&&(r[d]=b)}"SELECT"!=b.nodeName.toUpperCase()&&v(b)}};w(b)&&v(b);return{first:r[a(h)]||h,last:r[a(g)]||g,lowest:r[a(e)]||e,highest:r[a(q)]||q}},getFirstInTabbingOrder:function(b,
a){var c=d._getTabNavigable(m.byId(b,a));return c.lowest?c.lowest:c.first},getLastInTabbingOrder:function(b,a){var c=d._getTabNavigable(m.byId(b,a));return c.last?c.last:c.highest}};e.mixin(g,d);return d})},"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./domReady","./sniff","./_base/window"],function(f,m,l,k,e){var c=e.doc.documentElement;e=k("ie");var g=k("trident"),d=k("opera"),b=Math.floor,a=k("ff"),h=f.boxModel.replace(/-/,""),d={dj_quirks:k("quirks"),dj_opera:d,dj_khtml:k("khtml"),
dj_webkit:k("webkit"),dj_safari:k("safari"),dj_chrome:k("chrome"),dj_edge:k("edge"),dj_gecko:k("mozilla"),dj_ios:k("ios"),dj_android:k("android")};e&&(d.dj_ie=!0,d["dj_ie"+b(e)]=!0,d.dj_iequirks=k("quirks"));g&&(d.dj_trident=!0,d["dj_trident"+b(g)]=!0);a&&(d["dj_ff"+b(a)]=!0);d["dj_"+h]=!0;var p="",n;for(n in d)d[n]&&(p+=n+" ");c.className=m.trim(c.className+" "+p);l(function(){if(!f.isBodyLtr()){var a="dj_rtl dijitRtl "+p.replace(/ /g,"-rtl ");c.className=m.trim(c.className+" "+a+"dj_rtl dijitRtl "+
p.replace(/ /g,"-rtl "))}});return k})},"dijit/hccss":function(){define(["dojo/dom-class","dojo/hccss","dojo/domReady","dojo/_base/window"],function(f,m,l,k){l(function(){m("highcontrast")&&f.add(k.body(),"dijit_a11y")});return m})},"dojo/hccss":function(){define("require ./_base/config ./dom-class ./dom-style ./has ./domReady ./_base/window".split(" "),function(f,m,l,k,e,c,g){e.add("highcontrast",function(){var c=g.doc.createElement("div");try{c.style.cssText='border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;background-image: url("'+
(m.blankGif||f.toUrl("./resources/blank.gif"))+'");';g.body().appendChild(c);var b=k.getComputedStyle(c),a=b.backgroundImage;return b.borderTopColor==b.borderRightColor||a&&("none"==a||"url(invalid-url:)"==a)}catch(h){return console.warn("hccss: exception detecting high-contrast mode, document is likely hidden: "+h.toString()),!1}finally{8>=e("ie")?c.outerHTML="":g.body().removeChild(c)}});c(function(){e("highcontrast")&&l.add(g.body(),"dj_a11y")});return e})},"dijit/_CssStateMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom dojo/dom-class dojo/has dojo/_base/lang dojo/on dojo/domReady dojo/touch dojo/_base/window ./a11yclick ./registry".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p){m=m("dijit._CssStateMixin",[],{hovering:!1,active:!1,_applyAttributes:function(){this.inherited(arguments);f.forEach("disabled readOnly checked selected focused state hovering active _opened".split(" "),function(a){this.watch(a,c.hitch(this,"_setStateClass"))},this);for(var a in this.cssStateNodes||{})this._trackMouseState(this[a],this.cssStateNodes[a]);this._trackMouseState(this.domNode,this.baseClass);this._setStateClass()},_cssMouseEvent:function(a){if(!this.disabled)switch(a.type){case "mouseover":case "MSPointerOver":case "pointerover":this._set("hovering",
!0);this._set("active",this._mouseDown);break;case "mouseout":case "MSPointerOut":case "pointerout":this._set("hovering",!1);this._set("active",!1);break;case "mousedown":case "touchstart":case "MSPointerDown":case "pointerdown":case "keydown":this._set("active",!0);break;case "mouseup":case "dojotouchend":case "MSPointerUp":case "pointerup":case "keyup":this._set("active",!1)}},_setStateClass:function(){function a(c){b=b.concat(f.map(b,function(a){return a+c}),"dijit"+c)}var b=this.baseClass.split(" ");
this.isLeftToRight()||a("Rtl");var c="mixed"==this.checked?"Mixed":this.checked?"Checked":"";this.checked&&a(c);this.state&&a(this.state);this.selected&&a("Selected");this._opened&&a("Opened");this.disabled?a("Disabled"):this.readOnly?a("ReadOnly"):this.active?a("Active"):this.hovering&&a("Hover");this.focused&&a("Focused");var c=this.stateNode||this.domNode,d={};f.forEach(c.className.split(" "),function(a){d[a]=!0});"_stateClasses"in this&&f.forEach(this._stateClasses,function(a){delete d[a]});f.forEach(b,
function(a){d[a]=!0});var h=[],g;for(g in d)h.push(g);c.className=h.join(" ");this._stateClasses=b},_subnodeCssMouseEvent:function(a,b,c){function d(c){k.toggle(a,b+"Active",c)}if(!this.disabled&&!this.readOnly)switch(c.type){case "mouseover":case "MSPointerOver":case "pointerover":k.toggle(a,b+"Hover",!0);break;case "mouseout":case "MSPointerOut":case "pointerout":k.toggle(a,b+"Hover",!1);d(!1);break;case "mousedown":case "touchstart":case "MSPointerDown":case "pointerdown":case "keydown":d(!0);
break;case "mouseup":case "MSPointerUp":case "pointerup":case "dojotouchend":case "keyup":d(!1);break;case "focus":case "focusin":k.toggle(a,b+"Focused",!0);break;case "blur":case "focusout":k.toggle(a,b+"Focused",!1)}},_trackMouseState:function(a,b){a._cssState=b}});d(function(){function c(a,b,d){if(!d||!l.isDescendant(d,b))for(;b&&b!=d;b=b.parentNode)if(b._cssState){var h=p.getEnclosingWidget(b);h&&(b==h.domNode?h._cssMouseEvent(a):h._subnodeCssMouseEvent(b,b._cssState,a))}}var d=a.body(),e;g(d,
b.over,function(a){c(a,a.target,a.relatedTarget)});g(d,b.out,function(a){c(a,a.target,a.relatedTarget)});g(d,h.press,function(a){e=a.target;c(a,e)});g(d,h.release,function(a){c(a,e);e=null});g(d,"focusin, focusout",function(a){var b=a.target;if(b._cssState&&!b.getAttribute("widgetId")){var c=p.getEnclosingWidget(b);c&&c._subnodeCssMouseEvent(b,b._cssState,a)}})});return m})},"dijit/_TemplatedMixin":function(){define("dojo/cache dojo/_base/declare dojo/dom-construct dojo/_base/lang dojo/on dojo/sniff dojo/string ./_AttachMixin".split(" "),
function(f,m,l,k,e,c,g,d){var b=m("dijit._TemplatedMixin",d,{templateString:null,templatePath:null,_skipNodeCache:!1,searchContainerNode:!0,_stringRepl:function(a){var b=this.declaredClass,c=this;return g.substitute(a,this,function(a,d){"!"==d.charAt(0)&&(a=k.getObject(d.substr(1),!1,c));if("undefined"==typeof a)throw Error(b+" template:"+d);return null==a?"":"!"==d.charAt(0)?a:this._escapeValue(""+a)},this)},_escapeValue:function(a){return a.replace(/["'<>&]/g,function(a){return{"\x26":"\x26amp;",
"\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;"}[a]})},buildRendering:function(){if(!this._rendered){this.templateString||(this.templateString=f(this.templatePath,{sanitize:!0}));var a=b.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument),c;if(k.isString(a)){if(c=l.toDom(this._stringRepl(a),this.ownerDocument),1!=c.nodeType)throw Error("Invalid template: "+a);}else c=a.cloneNode(!0);this.domNode=c}this.inherited(arguments);this._rendered||this._fillContent(this.srcNodeRef);
this._rendered=!0},_fillContent:function(a){var b=this.containerNode;if(a&&b)for(;a.hasChildNodes();)b.appendChild(a.firstChild)}});b._templateCache={};b.getCachedTemplate=function(a,c,d){var e=b._templateCache,f=a,q=e[f];if(q){try{if(!q.ownerDocument||q.ownerDocument==(d||document))return q}catch(k){}l.destroy(q)}a=g.trim(a);if(c||a.match(/\$\{([^\}]+)\}/g))return e[f]=a;c=l.toDom(a,d);if(1!=c.nodeType)throw Error("Invalid template: "+a);return e[f]=c};c("ie")&&e(window,"unload",function(){var a=
b._templateCache,c;for(c in a){var d=a[c];"object"==typeof d&&l.destroy(d);delete a[c]}});return b})},"dojo/cache":function(){define(["./_base/kernel","./text"],function(f){return f.cache})},"dojo/text":function(){define(["./_base/kernel","require","./has","./request"],function(f,m,l,k){var e;e=function(a,b,c){k(a,{sync:!!b,headers:{"X-Requested-With":null}}).then(c)};var c={},g=function(a){if(a){a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var b=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
b&&(a=b[1])}else a="";return a},d={},b={};f.cache=function(a,b,d){var n;"string"==typeof a?/\//.test(a)?(n=a,d=b):n=m.toUrl(a.replace(/\./g,"/")+(b?"/"+b:"")):(n=a+"",d=b);a=void 0!=d&&"string"!=typeof d?d.value:d;d=d&&d.sanitize;if("string"==typeof a)return c[n]=a,d?g(a):a;if(null===a)return delete c[n],null;n in c||e(n,!0,function(a){c[n]=a});return d?g(c[n]):c[n]};return{dynamic:!0,normalize:function(a,b){var c=a.split("!"),d=c[0];return(/^\./.test(d)?b(d):d)+(c[1]?"!"+c[1]:"")},load:function(a,
h,p){a=a.split("!");var n=1<a.length,f=a[0],q=h.toUrl(a[0]);a="url:"+q;var k=d,r=function(a){p(n?g(a):a)};f in c?k=c[f]:h.cache&&a in h.cache?k=h.cache[a]:q in c&&(k=c[q]);if(k===d)if(b[q])b[q].push(r);else{var w=b[q]=[r];e(q,!h.async,function(a){c[f]=c[q]=a;for(var d=0;d<w.length;)w[d++](a);delete b[q]})}else r(k)}}})},"dojo/request":function(){define(["./request/default!"],function(f){return f})},"dojo/request/default":function(){define(["exports","require","../has"],function(f,m,l){var k=l("config-requestProvider");
k||(k="./xhr");f.getPlatformDefaultId=function(){return"./xhr"};f.load=function(e,c,g,d){m(["platform"==e?"./xhr":k],function(b){g(b)})}})},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(f,m){var l=/[&<>'"\/]/g,k={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;","/":"\x26#x2F;"},e={};m.setObject("dojo.string",e);e.escape=function(c){return!c?"":c.replace(l,function(c){return k[c]})};e.rep=function(c,g){if(0>=g||!c)return"";for(var d=[];;){g&
1&&d.push(c);if(!(g>>=1))break;c+=c}return d.join("")};e.pad=function(c,g,d,b){d||(d="0");c=String(c);g=e.rep(d,Math.ceil((g-c.length)/d.length));return b?c+g:g+c};e.substitute=function(c,g,d,b){b=b||f.global;d=d?m.hitch(b,d):function(a){return a};return c.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,function(a,c,e){if(""==c)return"$";a=m.getObject(c,!1,g);e&&(a=m.getObject(e,!1,b).call(b,a,c));return d(a,c).toString()})};e.trim=String.prototype.trim?m.trim:function(c){c=c.replace(/^\s+/,"");
for(var g=c.length-1;0<=g;g--)if(/\S/.test(c.charAt(g))){c=c.substring(0,g+1);break}return c};return e})},"dijit/_AttachMixin":function(){define("require dojo/_base/array dojo/_base/connect dojo/_base/declare dojo/_base/lang dojo/mouse dojo/on dojo/touch ./_WidgetBase".split(" "),function(f,m,l,k,e,c,g,d,b){var a=e.delegate(d,{mouseenter:c.enter,mouseleave:c.leave,keypress:l._keypress}),h;l=k("dijit._AttachMixin",null,{constructor:function(){this._attachPoints=[];this._attachEvents=[]},buildRendering:function(){this.inherited(arguments);
this._attachTemplateNodes(this.domNode);this._beforeFillContent()},_beforeFillContent:function(){},_attachTemplateNodes:function(a){for(var b=a;;)if(1==b.nodeType&&(this._processTemplateNode(b,function(a,b){return a.getAttribute(b)},this._attach)||this.searchContainerNode)&&b.firstChild)b=b.firstChild;else{if(b==a)break;for(;!b.nextSibling;)if(b=b.parentNode,b==a)return;b=b.nextSibling}},_processTemplateNode:function(a,b,c){var d=!0,h=this.attachScope||this,g=b(a,"dojoAttachPoint")||b(a,"data-dojo-attach-point");
if(g)for(var f=g.split(/\s*,\s*/);g=f.shift();)e.isArray(h[g])?h[g].push(a):h[g]=a,d="containerNode"!=g,this._attachPoints.push(g);if(b=b(a,"dojoAttachEvent")||b(a,"data-dojo-attach-event")){g=b.split(/\s*,\s*/);for(f=e.trim;b=g.shift();)if(b){var k=null;-1!=b.indexOf(":")?(k=b.split(":"),b=f(k[0]),k=f(k[1])):b=f(b);k||(k=b);this._attachEvents.push(c(a,b,e.hitch(h,k)))}}return d},_attach:function(b,c,d){c=c.replace(/^on/,"").toLowerCase();c="dijitclick"==c?h||(h=f("./a11yclick")):a[c]||c;return g(b,
c,d)},_detachTemplateNodes:function(){var a=this.attachScope||this;m.forEach(this._attachPoints,function(b){delete a[b]});this._attachPoints=[];m.forEach(this._attachEvents,function(a){a.remove()});this._attachEvents=[]},destroyRendering:function(){this._detachTemplateNodes();this.inherited(arguments)}});e.extend(b,{dojoAttachEvent:"",dojoAttachPoint:""});return l})},"dijit/form/_FormWidgetMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/mouse dojo/on dojo/sniff dojo/window ../a11y".split(" "),
function(f,m,l,k,e,c,g,d,b,a){return m("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text","aria-label":"focusNode",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:!1,intermediateChanges:!1,scrollOnFocus:!0,_setIdAttr:"focusNode",_setDisabledAttr:function(b){this._set("disabled",b);/^(button|input|select|textarea|optgroup|option|fieldset)$/i.test(this.focusNode.tagName)?l.set(this.focusNode,"disabled",b):this.focusNode.setAttribute("aria-disabled",b?"true":"false");this.valueNode&&
l.set(this.valueNode,"disabled",b);b?(this._set("hovering",!1),this._set("active",!1),b="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"_setTabIndexAttr"in this?this._setTabIndexAttr:"focusNode",f.forEach(e.isArray(b)?b:[b],function(b){b=this[b];d("webkit")||a.hasDefaultTabStop(b)?b.setAttribute("tabIndex","-1"):b.removeAttribute("tabIndex")},this)):""!=this.tabIndex&&this.set("tabIndex",this.tabIndex)},_onFocus:function(a){if("mouse"==a&&this.isFocusable())var c=this.own(g(this.focusNode,
"focus",function(){f.remove();c.remove()}))[0],n=d("pointer-events")?"pointerup":d("MSPointer")?"MSPointerUp":d("touch-events")?"touchend, mouseup":"mouseup",f=this.own(g(this.ownerDocumentBody,n,e.hitch(this,function(a){f.remove();c.remove();this.focused&&("touchend"==a.type?this.defer("focus"):this.focus())})))[0];this.scrollOnFocus&&this.defer(function(){b.scrollIntoView(this.domNode)});this.inherited(arguments)},isFocusable:function(){return!this.disabled&&this.focusNode&&"none"!=k.get(this.domNode,
"display")},focus:function(){if(!this.disabled&&this.focusNode.focus)try{this.focusNode.focus()}catch(a){}},compare:function(a,b){return"number"==typeof a&&"number"==typeof b?isNaN(a)&&isNaN(b)?0:a-b:a>b?1:a<b?-1:0},onChange:function(){},_onChangeActive:!1,_handleOnChange:function(a,b){if(void 0==this._lastValueReported&&(null===b||!this._onChangeActive))this._resetValue=this._lastValueReported=a;this._pendingOnChange=this._pendingOnChange||typeof a!=typeof this._lastValueReported||0!=this.compare(a,
this._lastValueReported);if((this.intermediateChanges||b||void 0===b)&&this._pendingOnChange)this._lastValueReported=a,this._pendingOnChange=!1,this._onChangeActive&&(this._onChangeHandle&&this._onChangeHandle.remove(),this._onChangeHandle=this.defer(function(){this._onChangeHandle=null;this.onChange(a)}))},create:function(){this.inherited(arguments);this._onChangeActive=!0},destroy:function(){this._onChangeHandle&&(this._onChangeHandle.remove(),this.onChange(this._lastValueReported));this.inherited(arguments)}})})},
"dijit/form/_FormValueMixin":function(){define("dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on ./_FormWidgetMixin".split(" "),function(f,m,l,k,e,c){return f("dijit.form._FormValueMixin",c,{readOnly:!1,_setReadOnlyAttr:function(c){m.set(this.focusNode,"readOnly",c);this._set("readOnly",c)},postCreate:function(){this.inherited(arguments);void 0===this._resetValue&&(this._lastValueReported=this._resetValue=this.value)},_setValueAttr:function(c,d){this._handleOnChange(c,d)},_handleOnChange:function(c,
d){this._set("value",c);this.inherited(arguments)},undo:function(){this._setValueAttr(this._lastValueReported,!1)},reset:function(){this._hasBeenBlurred=!1;this._setValueAttr(this._resetValue,!0)}})})},"dijit/form/_TextBoxMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom dojo/sniff dojo/keys dojo/_base/lang dojo/on ../main".split(" "),function(f,m,l,k,e,c,g,d){var b=m("dijit.form._TextBoxMixin"+(k("dojo-bidi")?"_NoBidi":""),null,{trim:!1,uppercase:!1,lowercase:!1,propercase:!1,
maxLength:"",selectOnClick:!1,placeHolder:"",_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints)},_setValueAttr:function(a,b,c){var d;void 0!==a&&(d=this.filter(a),"string"!=typeof c&&(c=null!==d&&("number"!=typeof d||!isNaN(d))?this.filter(this.format(d,this.constraints)):"",0!=this.compare(d,this.filter(this.parse(c,this.constraints)))&&(c=null)));if(null!=c&&("number"!=typeof c||!isNaN(c))&&this.textbox.value!=c)this.textbox.value=c,this._set("displayedValue",
this.get("displayedValue"));this.inherited(arguments,[d,b])},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},_setDisplayedValueAttr:function(a){null==a?a="":"string"!=typeof a&&(a=String(a));this.textbox.value=a;this._setValueAttr(this.get("value"),void 0);this._set("displayedValue",this.get("displayedValue"))},format:function(a){return null==a?"":a.toString?a.toString():a},parse:function(a){return a},_refreshState:function(){},onInput:function(){},_onInput:function(a){this._lastInputEventValue=
this.textbox.value;this._processInput(this._lastInputProducingEvent||a);delete this._lastInputProducingEvent;this.intermediateChanges&&this._handleOnChange(this.get("value"),!1)},_processInput:function(){this._refreshState();this._set("displayedValue",this.get("displayedValue"))},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);this.own(g(this.textbox,"keydown, keypress, paste, cut, compositionend",c.hitch(this,function(a){var b;if("keydown"==a.type&&
229!=a.keyCode){b=a.keyCode;switch(b){case e.SHIFT:case e.ALT:case e.CTRL:case e.META:case e.CAPS_LOCK:case e.NUM_LOCK:case e.SCROLL_LOCK:return}if(!a.ctrlKey&&!a.metaKey&&!a.altKey){switch(b){case e.NUMPAD_0:case e.NUMPAD_1:case e.NUMPAD_2:case e.NUMPAD_3:case e.NUMPAD_4:case e.NUMPAD_5:case e.NUMPAD_6:case e.NUMPAD_7:case e.NUMPAD_8:case e.NUMPAD_9:case e.NUMPAD_MULTIPLY:case e.NUMPAD_PLUS:case e.NUMPAD_ENTER:case e.NUMPAD_MINUS:case e.NUMPAD_PERIOD:case e.NUMPAD_DIVIDE:return}if(65<=b&&90>=b||
48<=b&&57>=b||b==e.SPACE)return;b=!1;for(var d in e)if(e[d]===a.keyCode){b=!0;break}if(!b)return}}(b=32<=a.charCode?String.fromCharCode(a.charCode):a.charCode)||(b=65<=a.keyCode&&90>=a.keyCode||48<=a.keyCode&&57>=a.keyCode||a.keyCode==e.SPACE?String.fromCharCode(a.keyCode):a.keyCode);b||(b=229);if("keypress"==a.type){if("string"!=typeof b)return;if("a"<=b&&"z">=b||"A"<=b&&"Z">=b||"0"<=b&&"9">=b||" "===b)if(a.ctrlKey||a.metaKey||a.altKey)return}var n={faux:!0},f;for(f in a)/^(layer[XY]|returnValue|keyLocation)$/.test(f)||
(d=a[f],"function"!=typeof d&&"undefined"!=typeof d&&(n[f]=d));c.mixin(n,{charOrCode:b,_wasConsumed:!1,preventDefault:function(){n._wasConsumed=!0;a.preventDefault()},stopPropagation:function(){a.stopPropagation()}});this._lastInputProducingEvent=n;!1===this.onInput(n)&&(n.preventDefault(),n.stopPropagation());if(!n._wasConsumed&&9>=k("ie"))switch(a.keyCode){case e.TAB:case e.ESCAPE:case e.DOWN_ARROW:case e.UP_ARROW:case e.LEFT_ARROW:case e.RIGHT_ARROW:break;default:if(a.keyCode==e.ENTER&&"textarea"!=
this.textbox.tagName.toLowerCase())break;this.defer(function(){this.textbox.value!==this._lastInputEventValue&&g.emit(this.textbox,"input",{bubbles:!0})})}})),g(this.textbox,"input",c.hitch(this,"_onInput")),g(this.domNode,"keypress",function(a){a.stopPropagation()}))},_blankValue:"",filter:function(a){if(null===a)return this._blankValue;if("string"!=typeof a)return a;this.trim&&(a=c.trim(a));this.uppercase&&(a=a.toUpperCase());this.lowercase&&(a=a.toLowerCase());this.propercase&&(a=a.replace(/[^\s]+/g,
function(a){return a.substring(0,1).toUpperCase()+a.substring(1)}));return a},_setBlurValue:function(){this._setValueAttr(this.get("value"),!0)},_onBlur:function(a){this.disabled||(this._setBlurValue(),this.inherited(arguments))},_isTextSelected:function(){return this.textbox.selectionStart!=this.textbox.selectionEnd},_onFocus:function(a){!this.disabled&&!this.readOnly&&(this.selectOnClick&&"mouse"==a&&(this._selectOnClickHandle=g.once(this.domNode,"mouseup, touchend",c.hitch(this,function(a){this._isTextSelected()||
b.selectInputText(this.textbox)})),this.own(this._selectOnClickHandle),this.defer(function(){this._selectOnClickHandle&&(this._selectOnClickHandle.remove(),this._selectOnClickHandle=null)},500)),this.inherited(arguments),this._refreshState())},reset:function(){this.textbox.value="";this.inherited(arguments)}});k("dojo-bidi")&&(b=m("dijit.form._TextBoxMixin",b,{_setValueAttr:function(){this.inherited(arguments);this.applyTextDir(this.focusNode)},_setDisplayedValueAttr:function(){this.inherited(arguments);
this.applyTextDir(this.focusNode)},_onInput:function(){this.applyTextDir(this.focusNode);this.inherited(arguments)}}));b._setSelectionRange=d._setSelectionRange=function(a,b,c){a.setSelectionRange&&a.setSelectionRange(b,c)};b.selectInputText=d.selectInputText=function(a,c,d){a=l.byId(a);isNaN(c)&&(c=0);isNaN(d)&&(d=a.value?a.value.length:0);try{a.focus(),b._setSelectionRange(a,c,d)}catch(g){}};return b})},"dijit/form/NumberSpinner":function(){define(["dojo/_base/declare","dojo/keys","./_Spinner",
"./NumberTextBox"],function(f,m,l,k){return f("dijit.form.NumberSpinner",[l,k.Mixin],{baseClass:"dijitTextBox dijitSpinner dijitNumberTextBox",adjust:function(e,c){var g=this.constraints,d=isNaN(e),b=!isNaN(g.max),a=!isNaN(g.min);d&&0!=c&&(e=0<c?a?g.min:b?g.max:0:b?this.constraints.max:a?g.min:0);var h=e+c;if(d||isNaN(h))return e;b&&h>g.max&&(h=g.max);a&&h<g.min&&(h=g.min);return h},_onKeyDown:function(e){if(!this.disabled&&!this.readOnly&&(e.keyCode==m.HOME||e.keyCode==m.END)&&!e.ctrlKey&&(!e.altKey&&
!e.metaKey)&&"undefined"!=typeof this.get("value")){var c=this.constraints[e.keyCode==m.HOME?"min":"max"];"number"==typeof c&&this._setValueAttr(c,!1);e.stopPropagation();e.preventDefault()}}})})},"dijit/form/_Spinner":function(){define("dojo/_base/declare dojo/keys dojo/_base/lang dojo/sniff dojo/mouse dojo/on ../typematic ./RangeBoundTextBox dojo/text!./templates/Spinner.html ./_TextBoxMixin".split(" "),function(f,m,l,k,e,c,g,d,b,a){return f("dijit.form._Spinner",d,{defaultTimeout:500,minimumTimeout:10,
timeoutChangeRate:0.9,smallDelta:1,largeDelta:10,templateString:b,baseClass:"dijitTextBox dijitSpinner",cssStateNodes:{upArrowNode:"dijitUpArrowButton",downArrowNode:"dijitDownArrowButton"},adjust:function(a){return a},_arrowPressed:function(b,c,d){!this.disabled&&!this.readOnly&&(this._setValueAttr(this.adjust(this.get("value"),c*d),!1),a.selectInputText(this.textbox,this.textbox.value.length))},_arrowReleased:function(){this._wheelTimer=null},_typematicCallback:function(a,b,c){var d=this.smallDelta;
b==this.textbox&&(b=c.keyCode,d=b==m.PAGE_UP||b==m.PAGE_DOWN?this.largeDelta:this.smallDelta,b=b==m.UP_ARROW||b==m.PAGE_UP?this.upArrowNode:this.downArrowNode);-1==a?this._arrowReleased(b):this._arrowPressed(b,b==this.upArrowNode?1:-1,d)},_wheelTimer:null,_mouseWheeled:function(a){if(this.focused){a.stopPropagation();a.preventDefault();var b=a.wheelDelta/120;Math.floor(b)!=b&&(b=0<a.wheelDelta?1:-1);a=a.detail?-1*a.detail:b;if(0!==a){var c=this[0<a?"upArrowNode":"downArrowNode"];this._arrowPressed(c,
a,this.smallDelta);this._wheelTimer&&this._wheelTimer.remove();this._wheelTimer=this.defer(function(){this._arrowReleased(c)},50)}}},_setConstraintsAttr:function(a){this.inherited(arguments);this.focusNode&&(void 0!==this.constraints.min?this.focusNode.setAttribute("aria-valuemin",this.constraints.min):this.focusNode.removeAttribute("aria-valuemin"),void 0!==this.constraints.max?this.focusNode.setAttribute("aria-valuemax",this.constraints.max):this.focusNode.removeAttribute("aria-valuemax"))},_setValueAttr:function(a,
b){this.focusNode.setAttribute("aria-valuenow",a);this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this.own(c(this.domNode,e.wheel,l.hitch(this,"_mouseWheeled")),g.addListener(this.upArrowNode,this.textbox,{keyCode:m.UP_ARROW,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout),g.addListener(this.downArrowNode,this.textbox,{keyCode:m.DOWN_ARROW,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,
"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout),g.addListener(this.upArrowNode,this.textbox,{keyCode:m.PAGE_UP,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout),g.addListener(this.downArrowNode,this.textbox,{keyCode:m.PAGE_DOWN,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout))}})})},"dijit/typematic":function(){define("dojo/_base/array dojo/_base/connect dojo/_base/lang dojo/on dojo/sniff ./main".split(" "),
function(f,m,l,k,e,c){var g=c.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(0>this._currentTimeout?this._initialDelay:1<this._subsequentDelay?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay),this._minDelay);this._timer=setTimeout(l.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(c,b,a,h,g,e,f,q){if(g!=this._obj){this.stop();this._initialDelay=f||500;this._subsequentDelay=
e||0.9;this._minDelay=q||10;this._obj=g;this._node=a;this._count=this._currentTimeout=-1;this._callback=l.hitch(b,h);this._evt={faux:!0};for(var k in c)"layerX"!=k&&"layerY"!=k&&(b=c[k],"function"!=typeof b&&"undefined"!=typeof b&&(this._evt[k]=b));this._fireEventAndReload()}},stop:function(){this._timer&&(clearTimeout(this._timer),this._timer=null);this._obj&&(this._callback(-1,this._node,this._evt),this._obj=null)},addKeyListener:function(c,b,a,h,e,n,t){var q="keyCode"in b?"keyCode":"charCode"in
b?"charCode":"charOrCode",s=[k(c,"keyCode"in b?"keydown":"charCode"in b?"keypress":m._keypress,l.hitch(this,function(f){f[q]==b[q]&&(void 0===b.ctrlKey||b.ctrlKey==f.ctrlKey)&&(void 0===b.altKey||b.altKey==f.altKey)&&(void 0===b.metaKey||b.metaKey==(f.metaKey||!1))&&(void 0===b.shiftKey||b.shiftKey==f.shiftKey)?(f.stopPropagation(),f.preventDefault(),g.trigger(f,a,c,h,b,e,n,t)):g._obj==b&&g.stop()})),k(c,"keyup",l.hitch(this,function(){g._obj==b&&g.stop()}))];return{remove:function(){f.forEach(s,
function(a){a.remove()})}}},addMouseListener:function(c,b,a,h,p,n){var t=[k(c,"mousedown",l.hitch(this,function(e){e.preventDefault();g.trigger(e,b,c,a,c,h,p,n)})),k(c,"mouseup",l.hitch(this,function(a){this._obj&&a.preventDefault();g.stop()})),k(c,"mouseout",l.hitch(this,function(a){this._obj&&a.preventDefault();g.stop()})),k(c,"dblclick",l.hitch(this,function(q){q.preventDefault();9>e("ie")&&(g.trigger(q,b,c,a,c,h,p,n),setTimeout(l.hitch(this,g.stop),50))}))];return{remove:function(){f.forEach(t,
function(a){a.remove()})}}},addListener:function(c,b,a,h,g,e,k,q){var s=[this.addKeyListener(b,a,h,g,e,k,q),this.addMouseListener(c,h,g,e,k,q)];return{remove:function(){f.forEach(s,function(a){a.remove()})}}}};return g})},"dijit/form/RangeBoundTextBox":function(){define(["dojo/_base/declare","dojo/i18n","./MappedTextBox","dojo/i18n!./nls/validate"],function(f,m,l){return f("dijit.form.RangeBoundTextBox",l,{rangeMessage:"",rangeCheck:function(f,e){return("min"in e?0<=this.compare(f,e.min):!0)&&("max"in
e?0>=this.compare(f,e.max):!0)},isInRange:function(){return this.rangeCheck(this.get("value"),this.constraints)},_isDefinitelyOutOfRange:function(){var f=this.get("value");if(null==f)return!1;var e=!1;"min"in this.constraints&&(e=this.constraints.min,e=0>this.compare(f,"number"==typeof e&&0<=e&&0!=f?0:e));!e&&"max"in this.constraints&&(e=this.constraints.max,e=0<this.compare(f,"number"!=typeof e||0<e?e:0));return e},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange()},
isValid:function(f){return this.inherited(arguments)&&(this._isEmpty(this.textbox.value)&&!this.required||this.isInRange(f))},getErrorMessage:function(f){var e=this.get("value");return null!=e&&""!==e&&("number"!=typeof e||!isNaN(e))&&!this.isInRange(f)?this.rangeMessage:this.inherited(arguments)},postMixInProperties:function(){this.inherited(arguments);this.rangeMessage||(this.messages=m.getLocalization("dijit.form","validate",this.lang),this.rangeMessage=this.messages.rangeMessage)}})})},"dojo/i18n":function(){define("./_base/kernel require ./has ./_base/array ./_base/config ./_base/lang ./_base/xhr ./json module".split(" "),
function(f,m,l,k,e,c,g,d,b){l.add("dojo-preload-i18n-Api",1);var a=f.i18n={},h=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,p=function(a,b,c,d){var h=[c+d];b=b.split("-");for(var g="",e=0;e<b.length;e++)if(g+=(g?"-":"")+b[e],!a||a[g])h.push(c+g+"/"+d),h.specificity=g;return h},n={},t=function(a,b,c){c=c?c.toLowerCase():f.locale;a=a.replace(/\./g,"/");b=b.replace(/\./g,"/");return/root/i.test(c)?a+"/nls/"+b:a+"/nls/"+c+"/"+b},q=f.getL10nName=function(a,c,d){return b.id+"!"+t(a,c,d)},s=function(a,b,d,
h,g,e){a([b],function(q){var f=c.clone(q.root||q.ROOT),v=p(!q._v1x&&q,g,d,h);a(v,function(){for(var a=1;a<v.length;a++)f=c.mixin(c.clone(f),arguments[a]);n[b+"/"+g]=f;f.$locale=v.specificity;e()})})},r=function(a){var b=e.extraLocale||[],b=c.isArray(b)?b:[b];b.push(a);return b},w=function(a,b,g){if(l("dojo-preload-i18n-Api")){var e=a.split("*"),p="preload"==e[1];p&&(n[a]||(n[a]=1,y(e[2],d.parse(e[3]),1,b)),g(1));if(!(e=p))v&&x.push([a,b,g]),e=v;if(e)return}a=h.exec(a);var q=a[1]+"/",t=a[5]||a[4],
w=q+t,e=(a=a[5]&&a[4])||f.locale||"",u=w+"/"+e;a=a?[e]:r(e);var m=a.length,B=function(){--m||g(c.delegate(n[u]))};k.forEach(a,function(a){var c=w+"/"+a;l("dojo-preload-i18n-Api")&&z(c);n[c]?B():s(b,w,q,t,a,B)})};l("dojo-preload-i18n-Api");var u=a.normalizeLocale=function(a){a=a?a.toLowerCase():f.locale;return"root"==a?"ROOT":a},v=0,x=[],y=a._preloadLocalizations=function(a,b,d,h){function g(a,b){h.isXdUrl(m.toUrl(a+".js"))||d?h([a],b):B([a],b,h)}function e(a,b){for(var c=a.split("-");c.length;){if(b(c.join("-")))return;
c.pop()}b("ROOT")}function p(){for(--v;!v&&x.length;)w.apply(null,x.shift())}function q(d){d=u(d);e(d,function(q){if(0<=k.indexOf(b,q)){var f=a.replace(/\./g,"/")+"_"+q;v++;g(f,function(a){for(var b in a){var g=a[b],f=b.match(/(.+)\/([^\/]+)$/),k;if(f&&(k=f[2],f=f[1]+"/",g._localized)){var r;if("ROOT"===q){var s=r=g._localized;delete g._localized;s.root=g;n[m.toAbsMid(b)]=s}else r=g._localized,n[m.toAbsMid(f+k+"/"+q)]=g;q!==d&&function(a,b,g,q){var f=[],k=[];e(d,function(c){q[c]&&(f.push(m.toAbsMid(a+
c+"/"+b)),k.push(m.toAbsMid(a+b+"/"+c)))});f.length?(v++,h(f,function(){for(var h=f.length-1;0<=h;h--)g=c.mixin(c.clone(g),arguments[h]),n[k[h]]=g;n[m.toAbsMid(a+b+"/"+d)]=c.clone(g);p()})):n[m.toAbsMid(a+b+"/"+d)]=g}(f,k,g,r)}}p()});return!0}return!1})}h=h||m;q();k.forEach(f.config.extraLocale,q)},z=function(){},A={},E=new Function("__bundle","__checkForLegacyModules","__mid","__amdValue","var define \x3d function(mid, factory){define.called \x3d 1; __amdValue.result \x3d factory || mid;},\t   require \x3d function(){define.called \x3d 1;};try{define.called \x3d 0;eval(__bundle);if(define.called\x3d\x3d1)return __amdValue;if((__checkForLegacyModules \x3d __checkForLegacyModules(__mid)))return __checkForLegacyModules;}catch(e){}try{return eval('('+__bundle+')');}catch(e){return e;}"),
B=function(a,b,c){var d=[];k.forEach(a,function(a){function b(c){c=E(c,z,a,A);c===A?d.push(n[h]=A.result):(c instanceof Error&&(console.error("failed to evaluate i18n bundle; url\x3d"+h,c),c={}),d.push(n[h]=/nls\/[^\/]+\/[^\/]+$/.test(h)?c:{root:c,_v1x:1}))}var h=c.toUrl(a+".js");if(n[h])d.push(n[h]);else{var e=c.syncLoadNls(a);e||(e=z(a.replace(/nls\/([^\/]*)\/([^\/]*)$/,"nls/$2/$1")));if(e)d.push(e);else if(g)g.get({url:h,sync:!0,load:b,error:function(){d.push(n[h]={})}});else try{c.getText(h,!0,
b)}catch(p){d.push(n[h]={})}}});b&&b.apply(null,d)},z=function(a){for(var b,c=a.split("/"),d=f.global[c[0]],h=1;d&&h<c.length-1;d=d[c[h++]]);d&&((b=d[c[h]])||(b=d[c[h].replace(/-/g,"_")]),b&&(n[a]=b));return b};a.getLocalization=function(a,b,c){var d;a=t(a,b,c);w(a,!m.isXdUrl(m.toUrl(a+".js"))?function(a,b){B(a,b,m)}:m,function(a){d=a});return d};return c.mixin(a,{dynamic:!0,normalize:function(a,b){return/^\./.test(a)?b(a):a},load:w,cache:n,getL10nName:q})})},"dojo/_base/xhr":function(){define("./kernel ./sniff require ../io-query ../dom ../dom-form ./Deferred ./config ./json ./lang ./array ../on ../aspect ../request/watch ../request/xhr ../request/util".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s){f._xhrObj=q._create;var r=f.config;f.objectToQuery=k.objectToQuery;f.queryToObject=k.queryToObject;f.fieldToObject=c.fieldToObject;f.formToObject=c.toObject;f.formToQuery=c.toQuery;f.formToJson=c.toJson;f._blockAsync=!1;var w=f._contentHandlers=f.contentHandlers={text:function(a){return a.responseText},json:function(a){return b.fromJson(a.responseText||null)},"json-comment-filtered":function(a){d.useCommentedJson||console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}\x26\x26\nUse djConfig.useCommentedJson\x3dtrue to turn off this message.");
a=a.responseText;var c=a.indexOf("/*"),h=a.lastIndexOf("*/");if(-1==c||-1==h)throw Error("JSON was not comment filtered");return b.fromJson(a.substring(c+2,h))},javascript:function(a){return f.eval(a.responseText)},xml:function(a){var b=a.responseXML;b&&(m("dom-qsa2.1")&&!b.querySelectorAll&&m("dom-parser"))&&(b=(new DOMParser).parseFromString(a.responseText,"application/xml"));if(m("ie")&&(!b||!b.documentElement)){var c=function(a){return"MSXML"+a+".DOMDocument"},c=["Microsoft.XMLDOM",c(6),c(4),
c(3),c(2)];h.some(c,function(c){try{var d=new ActiveXObject(c);d.async=!1;d.loadXML(a.responseText);b=d}catch(h){return!1}return!0})}return b},"json-comment-optional":function(a){return a.responseText&&/^[^{\[]*\/\*/.test(a.responseText)?w["json-comment-filtered"](a):w.json(a)}};f._ioSetArgs=function(b,d,h,p){var n={args:b,url:b.url},q=null;if(b.form){var q=e.byId(b.form),v=q.getAttributeNode("action");n.url=n.url||(v?v.value:f.doc?f.doc.URL:null);q=c.toObject(q)}v=[{}];q&&v.push(q);b.content&&v.push(b.content);
b.preventCache&&v.push({"dojo.preventCache":(new Date).valueOf()});n.query=k.objectToQuery(a.mixin.apply(null,v));n.handleAs=b.handleAs||"text";var s=new g(function(a){a.canceled=!0;d&&d(a);var b=a.ioArgs.error;b||(b=Error("request cancelled"),b.dojoType="cancel",a.ioArgs.error=b);return b});s.addCallback(h);var t=b.load;t&&a.isFunction(t)&&s.addCallback(function(a){return t.call(b,a,n)});var w=b.error;w&&a.isFunction(w)&&s.addErrback(function(a){return w.call(b,a,n)});var u=b.handle;u&&a.isFunction(u)&&
s.addBoth(function(a){return u.call(b,a,n)});s.addErrback(function(a){return p(a,s)});r.ioPublish&&(f.publish&&!1!==n.args.ioPublish)&&(s.addCallbacks(function(a){f.publish("/dojo/io/load",[s,a]);return a},function(a){f.publish("/dojo/io/error",[s,a]);return a}),s.addBoth(function(a){f.publish("/dojo/io/done",[s,a]);return a}));s.ioArgs=n;return s};var u=function(a){a=w[a.ioArgs.handleAs](a.ioArgs.xhr);return void 0===a?null:a},v=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},x=function(a){0>=
y&&(y=0,r.ioPublish&&(f.publish&&(!a||a&&!1!==a.ioArgs.args.ioPublish))&&f.publish("/dojo/io/stop"))},y=0;n.after(t,"_onAction",function(){y-=1});n.after(t,"_onInFlight",x);f._ioCancelAll=t.cancelAll;f._ioNotifyStart=function(a){r.ioPublish&&(f.publish&&!1!==a.ioArgs.args.ioPublish)&&(y||f.publish("/dojo/io/start"),y+=1,f.publish("/dojo/io/send",[a]))};f._ioWatch=function(b,c,d,h){b.ioArgs.options=b.ioArgs.args;a.mixin(b,{response:b.ioArgs,isValid:function(a){return c(b)},isReady:function(a){return d(b)},
handleResponse:function(a){return h(b)}});t(b);x(b)};f._ioAddQueryToUrl=function(a){a.query.length&&(a.url+=(-1==a.url.indexOf("?")?"?":"\x26")+a.query,a.query=null)};f.xhr=function(a,b,c){var d,h=f._ioSetArgs(b,function(a){d&&d.cancel()},u,v),g=h.ioArgs;"postData"in b?g.query=b.postData:"putData"in b?g.query=b.putData:"rawBody"in b?g.query=b.rawBody:(2<arguments.length&&!c||-1==="POST|PUT".indexOf(a.toUpperCase()))&&f._ioAddQueryToUrl(g);var e={method:a,handleAs:"text",timeout:b.timeout,withCredentials:b.withCredentials,
ioArgs:g};"undefined"!==typeof b.headers&&(e.headers=b.headers);"undefined"!==typeof b.contentType&&(e.headers||(e.headers={}),e.headers["Content-Type"]=b.contentType);"undefined"!==typeof g.query&&(e.data=g.query);"undefined"!==typeof b.sync&&(e.sync=b.sync);f._ioNotifyStart(h);try{d=q(g.url,e,!0)}catch(p){return h.cancel(),h}h.ioArgs.xhr=d.response.xhr;d.then(function(){h.resolve(h)}).otherwise(function(a){g.error=a;a.response&&(a.status=a.response.status,a.responseText=a.response.text,a.xhr=a.response.xhr);
h.reject(a)});return h};f.xhrGet=function(a){return f.xhr("GET",a)};f.rawXhrPost=f.xhrPost=function(a){return f.xhr("POST",a,!0)};f.rawXhrPut=f.xhrPut=function(a){return f.xhr("PUT",a,!0)};f.xhrDelete=function(a){return f.xhr("DELETE",a)};f._isDocumentOk=function(a){return s.checkStatus(a.status)};f._getText=function(a){var b;f.xhrGet({url:a,sync:!0,load:function(a){b=a}});return b};a.mixin(f.xhr,{_xhrObj:f._xhrObj,fieldToObject:c.fieldToObject,formToObject:c.toObject,objectToQuery:k.objectToQuery,
formToQuery:c.toQuery,formToJson:c.toJson,queryToObject:k.queryToObject,contentHandlers:w,_ioSetArgs:f._ioSetArgs,_ioCancelAll:f._ioCancelAll,_ioNotifyStart:f._ioNotifyStart,_ioWatch:f._ioWatch,_ioAddQueryToUrl:f._ioAddQueryToUrl,_isDocumentOk:f._isDocumentOk,_getText:f._getText,get:f.xhrGet,post:f.xhrPost,put:f.xhrPut,del:f.xhrDelete});return f.xhr})},"dojo/io-query":function(){define(["./_base/lang"],function(f){var m={};return{objectToQuery:function(l){var k=encodeURIComponent,e=[],c;for(c in l){var g=
l[c];if(g!=m[c]){var d=k(c)+"\x3d";if(f.isArray(g))for(var b=0,a=g.length;b<a;++b)e.push(d+k(g[b]));else e.push(d+k(g))}}return e.join("\x26")},queryToObject:function(l){var k=decodeURIComponent;l=l.split("\x26");for(var e={},c,g,d=0,b=l.length;d<b;++d)if(g=l[d],g.length){var a=g.indexOf("\x3d");0>a?(c=k(g),g=""):(c=k(g.slice(0,a)),g=k(g.slice(a+1)));"string"==typeof e[c]&&(e[c]=[e[c]]);f.isArray(e[c])?e[c].push(g):e[c]=g}return e}}})},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query",
"./json"],function(f,m,l,k){var e={fieldToObject:function(c){var g=null;if(c=m.byId(c)){var d=c.name,b=(c.type||"").toLowerCase();if(d&&b&&!c.disabled)if("radio"==b||"checkbox"==b)c.checked&&(g=c.value);else if(c.multiple){g=[];for(c=[c.firstChild];c.length;)for(d=c.pop();d;d=d.nextSibling)if(1==d.nodeType&&"option"==d.tagName.toLowerCase())d.selected&&g.push(d.value);else{d.nextSibling&&c.push(d.nextSibling);d.firstChild&&c.push(d.firstChild);break}}else g=c.value}return g},toObject:function(c){var g=
{};c=m.byId(c).elements;for(var d=0,b=c.length;d<b;++d){var a=c[d],h=a.name,p=(a.type||"").toLowerCase();if(h&&p&&0>"file|submit|image|reset|button".indexOf(p)&&!a.disabled){var n=g,k=h,a=e.fieldToObject(a);if(null!==a){var q=n[k];"string"==typeof q?n[k]=[q,a]:f.isArray(q)?q.push(a):n[k]=a}"image"==p&&(g[h+".x"]=g[h+".y"]=g[h].x=g[h].y=0)}}return g},toQuery:function(c){return l.objectToQuery(e.toObject(c))},toJson:function(c,g){return k.stringify(e.toObject(c),null,g?4:0)}};return e})},"dojo/_base/Deferred":function(){define("./kernel ../Deferred ../promise/Promise ../errors/CancelError ../has ./lang ../when".split(" "),
function(f,m,l,k,e,c,g){var d=function(){},b=Object.freeze||function(){},a=f.Deferred=function(h){function g(a){if(q)throw Error("This deferred has already been resolved");f=a;q=!0;n()}function n(){for(var a;!a&&v;){var b=v;v=v.next;if(a=b.progress==d)q=!1;var h=w?b.error:b.resolved;e("config-useDeferredInstrumentation")&&w&&m.instrumentRejected&&m.instrumentRejected(f,!!h);if(h)try{var g=h(f);g&&"function"===typeof g.then?g.then(c.hitch(b.deferred,"resolve"),c.hitch(b.deferred,"reject"),c.hitch(b.deferred,
"progress")):(h=a&&void 0===g,a&&!h&&(w=g instanceof Error),b.deferred[h&&w?"reject":"resolve"](h?f:g))}catch(p){b.deferred.reject(p)}else w?b.deferred.reject(f):b.deferred.resolve(f)}}var f,q,s,r,w,u,v,x=this.promise=new l;this.isResolved=x.isResolved=function(){return 0==r};this.isRejected=x.isRejected=function(){return 1==r};this.isFulfilled=x.isFulfilled=function(){return 0<=r};this.isCanceled=x.isCanceled=function(){return s};this.resolve=this.callback=function(a){this.fired=r=0;this.results=
[a,null];g(a)};this.reject=this.errback=function(a){w=!0;this.fired=r=1;e("config-useDeferredInstrumentation")&&m.instrumentRejected&&m.instrumentRejected(a,!!v);g(a);this.results=[null,a]};this.progress=function(a){for(var b=v;b;){var c=b.progress;c&&c(a);b=b.next}};this.addCallbacks=function(a,b){this.then(a,b,d);return this};x.then=this.then=function(b,c,h){var g=h==d?this:new a(x.cancel);b={resolved:b,error:c,progress:h,deferred:g};v?u=u.next=b:v=u=b;q&&n();return g.promise};var y=this;x.cancel=
this.cancel=function(){if(!q){var a=h&&h(y);q||(a instanceof Error||(a=new k(a)),a.log=!1,y.reject(a))}s=!0};b(x)};c.extend(a,{addCallback:function(a){return this.addCallbacks(c.hitch.apply(f,arguments))},addErrback:function(a){return this.addCallbacks(null,c.hitch.apply(f,arguments))},addBoth:function(a){var b=c.hitch.apply(f,arguments);return this.addCallbacks(b,b)},fired:-1});a.when=f.when=g;return a})},"dojo/_base/json":function(){define(["./kernel","../json"],function(f,m){f.fromJson=function(f){return eval("("+
f+")")};f._escapeString=m.stringify;f.toJsonIndentStr="\t";f.toJson=function(l,k){return m.stringify(l,function(e,c){if(c){var g=c.__json__||c.json;if("function"==typeof g)return g.call(c)}return c},k&&f.toJsonIndentStr)};return f})},"dojo/request/watch":function(){define("./util ../errors/RequestTimeoutError ../errors/CancelError ../_base/array ../_base/window ../has!host-browser?dom-addeventlistener?:../on:".split(" "),function(f,m,l,k,e,c){function g(){for(var c=+new Date,g=0,e;g<a.length&&(e=
a[g]);g++){var f=e.response,q=f.options;if(e.isCanceled&&e.isCanceled()||e.isValid&&!e.isValid(f))a.splice(g--,1),d._onAction&&d._onAction();else if(e.isReady&&e.isReady(f))a.splice(g--,1),e.handleResponse(f),d._onAction&&d._onAction();else if(e.startTime&&e.startTime+(q.timeout||0)<c)a.splice(g--,1),e.cancel(new m("Timeout exceeded",f)),d._onAction&&d._onAction()}d._onInFlight&&d._onInFlight(e);a.length||(clearInterval(b),b=null)}function d(c){c.response.options.timeout&&(c.startTime=+new Date);
c.isFulfilled()||(a.push(c),b||(b=setInterval(g,50)),c.response.options.sync&&g())}var b=null,a=[];d.cancelAll=function(){try{k.forEach(a,function(a){try{a.cancel(new l("All requests canceled."))}catch(b){}})}catch(b){}};e&&(c&&e.doc.attachEvent)&&c(e.global,"unload",function(){d.cancelAll()});return d})},"dojo/request/util":function(){define("exports ../errors/RequestError ../errors/CancelError ../Deferred ../io-query ../_base/array ../_base/lang ../promise/Promise".split(" "),function(f,m,l,k,e,
c,g,d){function b(a){return h(a)}function a(a){return void 0!==a.data?a.data:a.text}f.deepCopy=function(a,b){for(var c in b){var d=a[c],h=b[c];d!==h&&(d&&"object"===typeof d&&h&&"object"===typeof h?f.deepCopy(d,h):a[c]=h)}return a};f.deepCreate=function(a,b){b=b||{};var c=g.delegate(a),d,h;for(d in a)(h=a[d])&&"object"===typeof h&&(c[d]=f.deepCreate(h,b[d]));return f.deepCopy(c,b)};var h=Object.freeze||function(a){return a};f.deferred=function(c,e,t,q,s,r){var w=new k(function(a){e&&e(w,c);return!a||
!(a instanceof m)&&!(a instanceof l)?new l("Request canceled",c):a});w.response=c;w.isValid=t;w.isReady=q;w.handleResponse=s;t=w.then(b).otherwise(function(a){a.response=c;throw a;});f.notify&&t.then(g.hitch(f.notify,"emit","load"),g.hitch(f.notify,"emit","error"));q=t.then(a);s=new d;for(var u in q)q.hasOwnProperty(u)&&(s[u]=q[u]);s.response=t;h(s);r&&w.then(function(a){r.call(w,a)},function(a){r.call(w,c,a)});w.promise=s;w.then=s.then;return w};f.addCommonMethods=function(a,b){c.forEach(b||["GET",
"POST","PUT","DELETE"],function(b){a[("DELETE"===b?"DEL":b).toLowerCase()]=function(c,d){d=g.delegate(d||{});d.method=b;return a(c,d)}})};f.parseArgs=function(a,b,c){var d=b.data,h=b.query;if(d&&!c&&"object"===typeof d&&!(d instanceof ArrayBuffer||d instanceof Blob))b.data=e.objectToQuery(d);h?("object"===typeof h&&(h=e.objectToQuery(h)),b.preventCache&&(h+=(h?"\x26":"")+"request.preventCache\x3d"+ +new Date)):b.preventCache&&(h="request.preventCache\x3d"+ +new Date);a&&h&&(a+=(~a.indexOf("?")?"\x26":
"?")+h);return{url:a,options:b,getHeader:function(a){return null}}};f.checkStatus=function(a){a=a||0;return 200<=a&&300>a||304===a||1223===a||!a}})},"dojo/errors/RequestError":function(){define(["./create"],function(f){return f("RequestError",function(f,l){this.response=l})})},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],function(f,m){return f("RequestTimeoutError",null,m,{dojoType:"timeout"})})},"dojo/request/xhr":function(){define(["../errors/RequestError","./watch",
"./handlers","./util","../has"],function(f,m,l,k,e){function c(a,b){var c=a.xhr;a.status=a.xhr.status;try{a.text=c.responseText}catch(d){}"xml"===a.options.handleAs&&(a.data=c.responseXML);if(!b)try{l(a)}catch(h){b=h}var g;if(b)this.reject(b);else{try{l(a)}catch(e){g=e}k.checkStatus(c.status)?g?this.reject(g):this.resolve(a):(b=g?new f("Unable to load "+a.url+" status: "+c.status+" and an error in handleAs: transformation of response",a):new f("Unable to load "+a.url+" status: "+c.status,a),this.reject(b))}}
function g(a){return this.xhr.getResponseHeader(a)}function d(r,s,v){var l=e("native-formdata")&&s&&s.data&&s.data instanceof FormData,y=k.parseArgs(r,k.deepCreate(q,s),l);r=y.url;s=y.options;var z,A=k.deferred(y,n,a,h,c,function(){z&&z()}),E=y.xhr=d._create();if(!E)return A.cancel(new f("XHR was not created")),v?A:A.promise;y.getHeader=g;p&&(z=p(E,A,y));var B=s.data,G=!s.sync,L=s.method;try{E.open(L,r,G,s.user||t,s.password||t);s.withCredentials&&(E.withCredentials=s.withCredentials);e("native-response-type")&&
s.handleAs in b&&(E.responseType=b[s.handleAs]);var I=s.headers;r=l?!1:"application/x-www-form-urlencoded";if(I)for(var J in I)"content-type"===J.toLowerCase()?r=I[J]:I[J]&&E.setRequestHeader(J,I[J]);r&&!1!==r&&E.setRequestHeader("Content-Type",r);(!I||!("X-Requested-With"in I))&&E.setRequestHeader("X-Requested-With","XMLHttpRequest");k.notify&&k.notify.emit("send",y,A.promise.cancel);E.send(B)}catch(H){A.reject(H)}m(A);E=null;return v?A:A.promise}e.add("native-xhr",function(){return"undefined"!==
typeof XMLHttpRequest});e.add("dojo-force-activex-xhr",function(){return e("activex")&&"file:"===window.location.protocol});e.add("native-xhr2",function(){if(e("native-xhr")&&!e("dojo-force-activex-xhr")){var a=new XMLHttpRequest;return"undefined"!==typeof a.addEventListener&&("undefined"===typeof opera||"undefined"!==typeof a.upload)}});e.add("native-formdata",function(){return"undefined"!==typeof FormData});e.add("native-response-type",function(){return e("native-xhr")&&"undefined"!==typeof(new XMLHttpRequest).responseType});
e.add("native-xhr2-blob",function(){if(e("native-response-type")){var a=new XMLHttpRequest;a.open("GET","/",!0);a.responseType="blob";var b=a.responseType;a.abort();return"blob"===b}});var b={blob:e("native-xhr2-blob")?"blob":"arraybuffer",document:"document",arraybuffer:"arraybuffer"},a,h,p,n;e("native-xhr2")?(a=function(a){return!this.isFulfilled()},n=function(a,b){b.xhr.abort()},p=function(a,b,c){function d(a){b.handleResponse(c)}function h(a){a=new f("Unable to load "+c.url+" status: "+a.target.status,
c);b.handleResponse(c,a)}function g(a){a.lengthComputable?(c.loaded=a.loaded,c.total=a.total,b.progress(c)):3===c.xhr.readyState&&(c.loaded="loaded"in a?a.loaded:a.position,b.progress(c))}a.addEventListener("load",d,!1);a.addEventListener("error",h,!1);a.addEventListener("progress",g,!1);return function(){a.removeEventListener("load",d,!1);a.removeEventListener("error",h,!1);a.removeEventListener("progress",g,!1);a=null}}):(a=function(a){return a.xhr.readyState},h=function(a){return 4===a.xhr.readyState},
n=function(a,b){var c=b.xhr,d=typeof c.abort;("function"===d||"object"===d||"unknown"===d)&&c.abort()});var t,q={data:null,query:null,sync:!1,method:"GET"};d._create=function(){throw Error("XMLHTTP not available");};if(e("native-xhr")&&!e("dojo-force-activex-xhr"))d._create=function(){return new XMLHttpRequest};else if(e("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),d._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(s){try{new ActiveXObject("Microsoft.XMLHTTP"),d._create=
function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(r){}}k.addCommonMethods(d);return d})},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has","../selector/_loader"],function(f,m,l,k){function e(b){var c=a[b.options.handleAs];b.data=c?c(b):b.data||b.text;return b}k.add("activex","undefined"!==typeof ActiveXObject);k.add("dom-parser",function(a){return"DOMParser"in a});var c;if(k("activex")){var g=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0",
"MSXML2.DOMDocument.3.0","MSXML.DOMDocument"],d;c=function(a){function b(a){try{var h=new ActiveXObject(a);h.async=!1;h.loadXML(e);c=h;d=a}catch(g){return!1}return!0}var c=a.data,e=a.text;c&&(k("dom-qsa2.1")&&!c.querySelectorAll&&k("dom-parser"))&&(c=(new DOMParser).parseFromString(e,"application/xml"));if(!c||!c.documentElement)(!d||!b(d))&&l.some(g,b);return c}}var b=function(a){return!k("native-xhr2-blob")&&"blob"===a.options.handleAs&&"undefined"!==typeof Blob?new Blob([a.xhr.response],{type:a.xhr.getResponseHeader("Content-Type")}):
a.xhr.response},a={javascript:function(a){return m.eval(a.text||"")},json:function(a){return f.parse(a.text||null)},xml:c,blob:b,arraybuffer:b,document:b};e.register=function(b,c){a[b]=c};return e})},"dijit/form/MappedTextBox":function(){define(["dojo/_base/declare","dojo/sniff","dojo/dom-construct","./ValidationTextBox"],function(f,m,l,k){return f("dijit.form.MappedTextBox",k,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting=""},_setNameAttr:"valueNode",serialize:function(e){return e.toString?
e.toString():""},toString:function(){var e=this.filter(this.get("value"));return null!=e?"string"==typeof e?e:this.serialize(e,this.constraints):""},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);this.valueNode=l.place("\x3cinput type\x3d'hidden'"+(this.name&&!m("msapp")?' name\x3d"'+this.name.replace(/"/g,"\x26quot;")+'"':"")+"/\x3e",this.textbox,"after")},reset:function(){this.valueNode.value="";this.inherited(arguments)}})})},
"dijit/form/ValidationTextBox":function(){define("dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/i18n ./TextBox ../Tooltip dojo/text!./templates/ValidationTextBox.html dojo/i18n!./nls/validate".split(" "),function(f,m,l,k,e,c,g){var d=f("dijit.form.ValidationTextBox",e,{templateString:g,required:!1,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},pattern:".*",regExp:"",regExpGen:function(){},state:"",tooltipPosition:[],_deprecateRegExp:function(b,
a){a!=d.prototype[b]&&(m.deprecated("ValidationTextBox id\x3d"+this.id+", set('"+b+"', ...) is deprecated.  Use set('pattern', ...) instead.","","2.0"),this.set("pattern",a))},_setRegExpGenAttr:function(b){this._deprecateRegExp("regExpGen",b);this._set("regExpGen",this._computeRegexp)},_setRegExpAttr:function(b){this._deprecateRegExp("regExp",b)},_setValueAttr:function(){this.inherited(arguments);this._refreshState()},validator:function(b,a){return RegExp("^(?:"+this._computeRegexp(a)+")"+(this.required?
"":"?")+"$").test(b)&&(!this.required||!this._isEmpty(b))&&(this._isEmpty(b)||void 0!==this.parse(b,a))},_isValidSubset:function(){return 0==this.textbox.value.search(this._partialre)},isValid:function(){return this.validator(this.textbox.value,this.get("constraints"))},_isEmpty:function(b){return(this.trim?/^\s*$/:/^$/).test(b)},getErrorMessage:function(){var b="$_unset_$"==this.invalidMessage?this.messages.invalidMessage:!this.invalidMessage?this.promptMessage:this.invalidMessage,a="$_unset_$"==
this.missingMessage?this.messages.missingMessage:!this.missingMessage?b:this.missingMessage;return this.required&&this._isEmpty(this.textbox.value)?a:b},getPromptMessage:function(){return this.promptMessage},_maskValidSubsetError:!0,validate:function(b){var a="",c=this.disabled||this.isValid(b);c&&(this._maskValidSubsetError=!0);var d=this._isEmpty(this.textbox.value),g=!c&&b&&this._isValidSubset();this._set("state",c?"":((!this._hasBeenBlurred||b)&&d||g)&&(this._maskValidSubsetError||g&&!this._hasBeenBlurred&&
b)?"Incomplete":"Error");this.focusNode.setAttribute("aria-invalid","Error"==this.state?"true":"false");"Error"==this.state?(this._maskValidSubsetError=b&&g,a=this.getErrorMessage(b)):"Incomplete"==this.state?(a=this.getPromptMessage(b),this._maskValidSubsetError=!this._hasBeenBlurred||b):d&&(a=this.getPromptMessage(b));this.set("message",a);return c},displayMessage:function(b){b&&this.focused?c.show(b,this.domNode,this.tooltipPosition,!this.isLeftToRight()):c.hide(this.domNode)},_refreshState:function(){this._created&&
this.validate(this.focused);this.inherited(arguments)},constructor:function(b){this.constraints=l.clone(this.constraints);this.baseClass+=" dijitValidationTextBox"},startup:function(){this.inherited(arguments);this._refreshState()},_setConstraintsAttr:function(b){!b.locale&&this.lang&&(b.locale=this.lang);this._set("constraints",b);this._refreshState()},_setPatternAttr:function(b){this._set("pattern",b);this._refreshState()},_computeRegexp:function(b){var a=this.pattern;"function"==typeof a&&(a=a.call(this,
b));if(a!=this._lastRegExp){var c="";this._lastRegExp=a;".*"!=a&&a.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(a){switch(a.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":c+=a;break;case ")":c+="|$)";break;default:c+="(?:"+a+"|$)"}});try{"".search(c)}catch(d){c=this.pattern,console.warn("RegExp error in "+this.declaredClass+": "+this.pattern)}this._partialre="^(?:"+c+")$"}return a},postMixInProperties:function(){this.inherited(arguments);this.messages=
k.getLocalization("dijit.form","validate",this.lang);this._setConstraintsAttr(this.constraints)},_setDisabledAttr:function(b){this.inherited(arguments);this._refreshState()},_setRequiredAttr:function(b){this._set("required",b);this.focusNode.setAttribute("aria-required",b);this._refreshState()},_setMessageAttr:function(b){this._set("message",b);this.displayMessage(b)},reset:function(){this._maskValidSubsetError=!0;this.inherited(arguments)},_onBlur:function(){this.displayMessage("");this.inherited(arguments)},
destroy:function(){c.hide(this.domNode);this.inherited(arguments)}});return d})},"dijit/Tooltip":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/fx dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/lang dojo/mouse dojo/on dojo/sniff ./_base/manager ./place ./_Widget ./_TemplatedMixin ./BackgroundIframe dojo/text!./templates/Tooltip.html ./main".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r,w){function u(){}var v=m("dijit._MasterTooltip",[t,q],{duration:p.defaultDuration,
templateString:r,postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);this.bgIframe=new s(this.domNode);this.fadeIn=l.fadeIn({node:this.domNode,duration:this.duration,onEnd:d.hitch(this,"_onShow")});this.fadeOut=l.fadeOut({node:this.domNode,duration:this.duration,onEnd:d.hitch(this,"_onHide")})},show:function(a,b,c,h,e,p,f){if(!this.aroundNode||!(this.aroundNode===b&&this.containerNode.innerHTML==a))if("playing"==this.fadeOut.status())this._onDeck=arguments;else{this.containerNode.innerHTML=
a;e&&this.set("textDir",e);this.containerNode.align=h?"right":"left";var q=n.around(this.domNode,b,c&&c.length?c:x.defaultPosition,!h,d.hitch(this,"orient")),k=q.aroundNodePos;"M"==q.corner.charAt(0)&&"M"==q.aroundCorner.charAt(0)?(this.connectorNode.style.top=k.y+(k.h-this.connectorNode.offsetHeight>>1)-q.y+"px",this.connectorNode.style.left=""):"M"==q.corner.charAt(1)&&"M"==q.aroundCorner.charAt(1)?this.connectorNode.style.left=k.x+(k.w-this.connectorNode.offsetWidth>>1)-q.x+"px":(this.connectorNode.style.left=
"",this.connectorNode.style.top="");g.set(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=!0;this.aroundNode=b;this.onMouseEnter=p||u;this.onMouseLeave=f||u}},orient:function(a,b,d,g,e){this.connectorNode.style.top="";var p=g.h;g=g.w;a.className="dijitTooltip "+{"MR-ML":"dijitTooltipRight","ML-MR":"dijitTooltipLeft","TM-BM":"dijitTooltipAbove","BM-TM":"dijitTooltipBelow","BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight",
"TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[b+"-"+d];this.domNode.style.width="auto";var n=c.position(this.domNode);if(h("ie")||h("trident"))n.w+=2;var f=Math.min(Math.max(g,1),n.w);c.setMarginBox(this.domNode,{w:f});"B"==d.charAt(0)&&"B"==b.charAt(0)?(a=c.position(a),b=this.connectorNode.offsetHeight,a.h>p?(this.connectorNode.style.top=p-(e.h+b>>1)+"px",this.connectorNode.style.bottom=""):(this.connectorNode.style.bottom=Math.min(Math.max(e.h/
2-b/2,0),a.h-b)+"px",this.connectorNode.style.top="")):(this.connectorNode.style.top="",this.connectorNode.style.bottom="");return Math.max(0,n.w-g)},_onShow:function(){h("ie")&&(this.domNode.style.filter="")},hide:function(a){this._onDeck&&this._onDeck[1]==a?this._onDeck=null:this.aroundNode===a&&(this.fadeIn.stop(),this.isShowingNow=!1,this.aroundNode=null,this.fadeOut.play());this.onMouseEnter=this.onMouseLeave=u},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";
this._onDeck&&(this.show.apply(this,this._onDeck),this._onDeck=null)}});h("dojo-bidi")&&v.extend({_setAutoTextDir:function(a){this.applyTextDir(a);f.forEach(a.children,function(a){this._setAutoTextDir(a)},this)},_setTextDirAttr:function(a){this._set("textDir",a);"auto"==a?this._setAutoTextDir(this.containerNode):this.containerNode.dir=this.textDir}});w.showTooltip=function(a,b,c,d,h,g,e){c&&(c=f.map(c,function(a){return{after:"after-centered",before:"before-centered"}[a]||a}));x._masterTT||(w._masterTT=
x._masterTT=new v);return x._masterTT.show(a,b,c,d,h,g,e)};w.hideTooltip=function(a){return x._masterTT&&x._masterTT.hide(a)};var x=m("dijit.Tooltip",t,{label:"",showDelay:400,hideDelay:400,connectId:[],position:[],selector:"",_setConnectIdAttr:function(c){f.forEach(this._connections||[],function(a){f.forEach(a,function(a){a.remove()})},this);this._connectIds=f.filter(d.isArrayLike(c)?c:c?[c]:[],function(a){return k.byId(a,this.ownerDocument)},this);this._connections=f.map(this._connectIds,function(c){c=
k.byId(c,this.ownerDocument);var h=this.selector,g=h?function(b){return a.selector(h,b)}:function(a){return a},e=this;return[a(c,g(b.enter),function(){e._onHover(this)}),a(c,g("focusin"),function(){e._onHover(this)}),a(c,g(b.leave),d.hitch(e,"_onUnHover")),a(c,g("focusout"),d.hitch(e,"set","state","DORMANT"))]},this);this._set("connectId",c)},addTarget:function(a){a=a.id||a;-1==f.indexOf(this._connectIds,a)&&this.set("connectId",this._connectIds.concat(a))},removeTarget:function(a){a=f.indexOf(this._connectIds,
a.id||a);0<=a&&(this._connectIds.splice(a,1),this.set("connectId",this._connectIds))},buildRendering:function(){this.inherited(arguments);e.add(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var a=this.connectId;f.forEach(d.isArrayLike(a)?a:[a],this.addTarget,this)},getContent:function(a){return this.label||this.domNode.innerHTML},state:"DORMANT",_setStateAttr:function(a){if(!(this.state==a||"SHOW TIMER"==a&&"SHOWING"==this.state||"HIDE TIMER"==a&&"DORMANT"==this.state)){this._hideTimer&&
(this._hideTimer.remove(),delete this._hideTimer);this._showTimer&&(this._showTimer.remove(),delete this._showTimer);switch(a){case "DORMANT":this._connectNode&&(x.hide(this._connectNode),delete this._connectNode,this.onHide());break;case "SHOW TIMER":"SHOWING"!=this.state&&(this._showTimer=this.defer(function(){this.set("state","SHOWING")},this.showDelay));break;case "SHOWING":var b=this.getContent(this._connectNode);if(!b){this.set("state","DORMANT");return}x.show(b,this._connectNode,this.position,
!this.isLeftToRight(),this.textDir,d.hitch(this,"set","state","SHOWING"),d.hitch(this,"set","state","HIDE TIMER"));this.onShow(this._connectNode,this.position);break;case "HIDE TIMER":this._hideTimer=this.defer(function(){this.set("state","DORMANT")},this.hideDelay)}this._set("state",a)}},_onHover:function(a){this._connectNode&&a!=this._connectNode&&this.set("state","DORMANT");this._connectNode=a;this.set("state","SHOW TIMER")},_onUnHover:function(a){this.set("state","HIDE TIMER")},open:function(a){this.set("state",
"DORMANT");this._connectNode=a;this.set("state","SHOWING")},close:function(){this.set("state","DORMANT")},onShow:function(){},onHide:function(){},destroy:function(){this.set("state","DORMANT");f.forEach(this._connections||[],function(a){f.forEach(a,function(a){a.remove()})},this);this.inherited(arguments)}});x._MasterTooltip=v;x.show=w.showTooltip;x.hide=w.hideTooltip;x.defaultPosition=["after-centered","before-centered"];return x})},"dojo/_base/fx":function(){define("./kernel ./config ./lang ../Evented ./Color ../aspect ../sniff ../dom ../dom-style".split(" "),
function(f,m,l,k,e,c,g,d,b){var a=l.mixin,h={},p=h._Line=function(a,b){this.start=a;this.end=b};p.prototype.getValue=function(a){return(this.end-this.start)*a+this.start};var n=h.Animation=function(b){a(this,b);l.isArray(this.curve)&&(this.curve=new p(this.curve[0],this.curve[1]))};n.prototype=new k;l.extend(n,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var a=this._percent,b=this.easing;return b?b(a):a},_fire:function(a,b){var c=b||[];if(this[a])if(m.debugAtAllCosts)this[a].apply(this,
c);else try{this[a].apply(this,c)}catch(d){console.error("exception in animation handler for:",a),console.error(d)}return this},play:function(a,b){this._delayTimer&&this._clearTimer();if(b)this._stopTimer(),this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);var c=a||this.delay,d=l.hitch(this,"_play",b);if(0<c)return this._delayTimer=setTimeout(d,c),this;d();return this},_play:function(a){this._delayTimer&&this._clearTimer();
this._startTime=(new Date).valueOf();this._paused&&(this._startTime-=this.duration*this._percent);this._active=!0;this._paused=!1;a=this.curve.getValue(this._getStep());this._percent||(this._startRepeatCount||(this._startRepeatCount=this.repeat),this._fire("onBegin",[a]));this._fire("onPlay",[a]);this._cycle();return this},pause:function(){this._delayTimer&&this._clearTimer();this._stopTimer();if(!this._active)return this;this._paused=!0;this._fire("onPause",[this.curve.getValue(this._getStep())]);
return this},gotoPercent:function(a,b){this._stopTimer();this._active=this._paused=!0;this._percent=a;b&&this.play();return this},stop:function(a){this._delayTimer&&this._clearTimer();if(!this._timer)return this;this._stopTimer();a&&(this._percent=1);this._fire("onStop",[this.curve.getValue(this._getStep())]);this._active=this._paused=!1;return this},destroy:function(){this.stop()},status:function(){return this._active?this._paused?"paused":"playing":"stopped"},_cycle:function(){if(this._active){var a=
(new Date).valueOf(),a=0===this.duration?1:(a-this._startTime)/this.duration;1<=a&&(a=1);this._percent=a;this.easing&&(a=this.easing(a));this._fire("onAnimate",[this.curve.getValue(a)]);1>this._percent?this._startTimer():(this._active=!1,0<this.repeat?(this.repeat--,this.play(null,!0)):-1==this.repeat?this.play(null,!0):this._startRepeatCount&&(this.repeat=this._startRepeatCount,this._startRepeatCount=0),this._percent=0,this._fire("onEnd",[this.node]),!this.repeat&&this._stopTimer())}return this},
_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer}});var t=0,q=null,s={run:function(){}};l.extend(n,{_startTimer:function(){this._timer||(this._timer=c.after(s,"run",l.hitch(this,"_cycle"),!0),t++);q||(q=setInterval(l.hitch(s,"run"),this.rate))},_stopTimer:function(){this._timer&&(this._timer.remove(),this._timer=null,t--);0>=t&&(clearInterval(q),q=null,t=0)}});var r=g("ie")?function(a){var c=a.style;!c.width.length&&"auto"==b.get(a,"width")&&(c.width="auto")}:function(){};
h._fade=function(g){g.node=d.byId(g.node);var e=a({properties:{}},g);g=e.properties.opacity={};g.start=!("start"in e)?function(){return+b.get(e.node,"opacity")||0}:e.start;g.end=e.end;g=h.animateProperty(e);c.after(g,"beforeBegin",l.partial(r,e.node),!0);return g};h.fadeIn=function(b){return h._fade(a({end:1},b))};h.fadeOut=function(b){return h._fade(a({end:0},b))};h._defaultEasing=function(a){return 0.5+Math.sin((a+1.5)*Math.PI)/2};var w=function(a){this._properties=a;for(var b in a){var c=a[b];
c.start instanceof e&&(c.tempColor=new e)}};w.prototype.getValue=function(a){var b={},c;for(c in this._properties){var d=this._properties[c],h=d.start;h instanceof e?b[c]=e.blendColors(h,d.end,a,d.tempColor).toCss():l.isArray(h)||(b[c]=(d.end-h)*a+h+("opacity"!=c?d.units||"px":0))}return b};h.animateProperty=function(h){var g=h.node=d.byId(h.node);h.easing||(h.easing=f._defaultEasing);h=new n(h);c.after(h,"beforeBegin",l.hitch(h,function(){var c={},d;for(d in this.properties){if("width"==d||"height"==
d)this.node.display="block";var h=this.properties[d];l.isFunction(h)&&(h=h(g));h=c[d]=a({},l.isObject(h)?h:{end:h});l.isFunction(h.start)&&(h.start=h.start(g));l.isFunction(h.end)&&(h.end=h.end(g));var p=0<=d.toLowerCase().indexOf("color"),n=function(a,c){var d={height:a.offsetHeight,width:a.offsetWidth}[c];if(void 0!==d)return d;d=b.get(a,c);return"opacity"==c?+d:p?d:parseFloat(d)};"end"in h?"start"in h||(h.start=n(g,d)):h.end=n(g,d);p?(h.start=new e(h.start),h.end=new e(h.end)):h.start="opacity"==
d?+h.start:parseFloat(h.start)}this.curve=new w(c)}),!0);c.after(h,"onAnimate",l.hitch(b,"set",h.node),!0);return h};h.anim=function(a,b,c,d,g,e){return h.animateProperty({node:a,duration:c||n.prototype.duration,properties:b,easing:d,onEnd:g}).play(e||0)};a(f,h);f._Animation=n;return h})},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(f,m,l,k){var e=f.Color=function(c){c&&this.setColor(c)};e.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,
255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:k.transparentColor||[0,0,0,0]};m.extend(e,{r:255,g:255,b:255,a:1,_set:function(c,g,d,b){this.r=c;this.g=g;this.b=d;this.a=b},setColor:function(c){m.isString(c)?e.fromString(c,this):m.isArray(c)?e.fromArray(c,this):(this._set(c.r,c.g,c.b,c.a),c instanceof e||this.sanitize());return this},
sanitize:function(){return this},toRgb:function(){return[this.r,this.g,this.b]},toRgba:function(){return[this.r,this.g,this.b,this.a]},toHex:function(){return"#"+l.map(["r","g","b"],function(c){c=this[c].toString(16);return 2>c.length?"0"+c:c},this).join("")},toCss:function(c){var g=this.r+", "+this.g+", "+this.b;return(c?"rgba("+g+", "+this.a:"rgb("+g)+")"},toString:function(){return this.toCss(!0)}});e.blendColors=f.blendColors=function(c,g,d,b){var a=b||new e;l.forEach(["r","g","b","a"],function(b){a[b]=
c[b]+(g[b]-c[b])*d;"a"!=b&&(a[b]=Math.round(a[b]))});return a.sanitize()};e.fromRgb=f.colorFromRgb=function(c,g){var d=c.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return d&&e.fromArray(d[1].split(/\s*,\s*/),g)};e.fromHex=f.colorFromHex=function(c,g){var d=g||new e,b=4==c.length?4:8,a=(1<<b)-1;c=Number("0x"+c.substr(1));if(isNaN(c))return null;l.forEach(["b","g","r"],function(h){var g=c&a;c>>=b;d[h]=4==b?17*g:g});d.a=1;return d};e.fromArray=f.colorFromArray=function(c,g){var d=g||new e;d._set(Number(c[0]),
Number(c[1]),Number(c[2]),Number(c[3]));isNaN(d.a)&&(d.a=1);return d.sanitize()};e.fromString=f.colorFromString=function(c,g){var d=e.named[c];return d&&e.fromArray(d,g)||e.fromRgb(c,g)||e.fromHex(c,g)};return e})},"dijit/_base/manager":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/lang","../registry","../main"],function(f,m,l,k,e){var c={};f.forEach("byId getUniqueId findWidgets _destroyAll byNode getEnclosingWidget".split(" "),function(g){c[g]=k[g]});l.mixin(c,{defaultDuration:m.defaultDuration||
200});l.mixin(e,c);return e})},"dijit/place":function(){define("dojo/_base/array dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/_base/window ./Viewport ./main".split(" "),function(f,m,l,k,e,c,g){function d(a,b,d,g){var k=c.getEffectiveBox(a.ownerDocument);(!a.parentNode||"body"!=String(a.parentNode.tagName).toLowerCase())&&e.body(a.ownerDocument).appendChild(a);var q=null;f.some(b,function(b){var c=b.corner,h=b.pos,e=0,f={w:{L:k.l+k.w-h.x,R:h.x-k.l,M:k.w}[c.charAt(1)],h:{T:k.t+k.h-h.y,B:h.y-
k.t,M:k.h}[c.charAt(0)]},r=a.style;r.left=r.right="auto";d&&(e=d(a,b.aroundCorner,c,f,g),e="undefined"==typeof e?0:e);var s=a.style,l=s.display,B=s.visibility;"none"==s.display&&(s.visibility="hidden",s.display="");r=m.position(a);s.display=l;s.visibility=B;l={L:h.x,R:h.x-r.w,M:Math.max(k.l,Math.min(k.l+k.w,h.x+(r.w>>1))-r.w)}[c.charAt(1)];B={T:h.y,B:h.y-r.h,M:Math.max(k.t,Math.min(k.t+k.h,h.y+(r.h>>1))-r.h)}[c.charAt(0)];h=Math.max(k.l,l);s=Math.max(k.t,B);l=Math.min(k.l+k.w,l+r.w);B=Math.min(k.t+
k.h,B+r.h);l-=h;B-=s;e+=r.w-l+(r.h-B);if(null==q||e<q.overflow)q={corner:c,aroundCorner:b.aroundCorner,x:h,y:s,w:l,h:B,overflow:e,spaceAvailable:f};return!e});q.overflow&&d&&d(a,q.aroundCorner,q.corner,q.spaceAvailable,g);b=q.y;var s=q.x,r=e.body(a.ownerDocument);/relative|absolute/.test(l.get(r,"position"))&&(b-=l.get(r,"marginTop"),s-=l.get(r,"marginLeft"));r=a.style;r.top=b+"px";r.left=s+"px";r.right="auto";return q}var b={TL:"BR",TR:"BL",BL:"TR",BR:"TL"};return g.place={at:function(a,c,g,e,k){g=
f.map(g,function(a){var d={corner:a,aroundCorner:b[a],pos:{x:c.x,y:c.y}};e&&(d.pos.x+="L"==a.charAt(1)?e.x:-e.x,d.pos.y+="T"==a.charAt(0)?e.y:-e.y);return d});return d(a,g,k)},around:function(a,b,c,g,e){function q(a,b){B.push({aroundCorner:a,corner:b,pos:{x:{L:y,R:y+A,M:y+(A>>1)}[a.charAt(1)],y:{T:z,B:z+E,M:z+(E>>1)}[a.charAt(0)]}})}var s;if("string"==typeof b||"offsetWidth"in b||"ownerSVGElement"in b){if(s=m.position(b,!0),/^(above|below)/.test(c[0])){var r=m.getBorderExtents(b),w=b.firstChild?m.getBorderExtents(b.firstChild):
{t:0,l:0,b:0,r:0},u=m.getBorderExtents(a),v=a.firstChild?m.getBorderExtents(a.firstChild):{t:0,l:0,b:0,r:0};s.y+=Math.min(r.t+w.t,u.t+v.t);s.h-=Math.min(r.t+w.t,u.t+v.t)+Math.min(r.b+w.b,u.b+v.b)}}else s=b;if(b.parentNode){r="absolute"==l.getComputedStyle(b).position;for(b=b.parentNode;b&&1==b.nodeType&&"BODY"!=b.nodeName;){w=m.position(b,!0);u=l.getComputedStyle(b);/relative|absolute/.test(u.position)&&(r=!1);if(!r&&/hidden|auto|scroll/.test(u.overflow)){var v=Math.min(s.y+s.h,w.y+w.h),x=Math.min(s.x+
s.w,w.x+w.w);s.x=Math.max(s.x,w.x);s.y=Math.max(s.y,w.y);s.h=v-s.y;s.w=x-s.x}"absolute"==u.position&&(r=!0);b=b.parentNode}}var y=s.x,z=s.y,A="w"in s?s.w:s.w=s.width,E="h"in s?s.h:(k.deprecated("place.around: dijit/place.__Rectangle: { x:"+y+", y:"+z+", height:"+s.height+", width:"+A+" } has been deprecated.  Please use { x:"+y+", y:"+z+", h:"+s.height+", w:"+A+" }","","2.0"),s.h=s.height),B=[];f.forEach(c,function(a){var b=g;switch(a){case "above-centered":q("TM","BM");break;case "below-centered":q("BM",
"TM");break;case "after-centered":b=!b;case "before-centered":q(b?"ML":"MR",b?"MR":"ML");break;case "after":b=!b;case "before":q(b?"TL":"TR",b?"TR":"TL");q(b?"BL":"BR",b?"BR":"BL");break;case "below-alt":b=!b;case "below":q(b?"BL":"BR",b?"TL":"TR");q(b?"BR":"BL",b?"TR":"TL");break;case "above-alt":b=!b;case "above":q(b?"TL":"TR",b?"BL":"BR");q(b?"TR":"TL",b?"BR":"BL");break;default:q(a.aroundCorner,a.corner)}});a=d(a,B,e,{w:A,h:E});a.aroundNodePos=s;return a}}})},"dijit/Viewport":function(){define(["dojo/Evented",
"dojo/on","dojo/domReady","dojo/sniff","dojo/window"],function(f,m,l,k,e){var c=new f,g;l(function(){var d=e.getBox();c._rlh=m(window,"resize",function(){var a=e.getBox();d.h==a.h&&d.w==a.w||(d=a,c.emit("resize"))});if(8==k("ie")){var b=screen.deviceXDPI;setInterval(function(){screen.deviceXDPI!=b&&(b=screen.deviceXDPI,c.emit("resize"))},500)}k("ios")&&(m(document,"focusin",function(a){g=a.target}),m(document,"focusout",function(a){g=null}))});c.getEffectiveBox=function(c){c=e.getBox(c);var b=g&&
g.tagName&&g.tagName.toLowerCase();if(k("ios")&&g&&!g.readOnly&&("textarea"==b||"input"==b&&/^(color|email|number|password|search|tel|text|url)$/.test(g.type)))c.h*=0==orientation||180==orientation?0.66:0.4,b=g.getBoundingClientRect(),c.h=Math.max(c.h,b.top+b.height);return c};return c})},"dijit/BackgroundIframe":function(){define("require ./main dojo/_base/config dojo/dom-construct dojo/dom-style dojo/_base/lang dojo/on dojo/sniff".split(" "),function(f,m,l,k,e,c,g,d){d.add("config-bgIframe",d("ie")&&
!/IEMobile\/10\.0/.test(navigator.userAgent)||d("trident")&&/Windows NT 6.[01]/.test(navigator.userAgent));var b=new function(){var a=[];this.pop=function(){var b;a.length?(b=a.pop(),b.style.display=""):(9>d("ie")?(b="\x3ciframe src\x3d'"+(l.dojoBlankHtmlUrl||f.toUrl("dojo/resources/blank.html")||'javascript:""')+"' role\x3d'presentation' style\x3d'position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity\x3d\"0\");'\x3e",b=document.createElement(b)):(b=k.create("iframe"),b.src='javascript:""',
b.className="dijitBackgroundIframe",b.setAttribute("role","presentation"),e.set(b,"opacity",0.1)),b.tabIndex=-1);return b};this.push=function(b){b.style.display="none";a.push(b)}};m.BackgroundIframe=function(a){if(!a.id)throw Error("no id");if(d("config-bgIframe")){var h=this.iframe=b.pop();a.appendChild(h);7>d("ie")||d("quirks")?(this.resize(a),this._conn=g(a,"resize",c.hitch(this,"resize",a))):e.set(h,{width:"100%",height:"100%"})}};c.extend(m.BackgroundIframe,{resize:function(a){this.iframe&&e.set(this.iframe,
{width:a.offsetWidth+"px",height:a.offsetHeight+"px"})},destroy:function(){this._conn&&(this._conn.remove(),this._conn=null);this.iframe&&(this.iframe.parentNode.removeChild(this.iframe),b.push(this.iframe),delete this.iframe)}});return m.BackgroundIframe})},"dijit/form/NumberTextBox":function(){define("dojo/_base/declare dojo/_base/lang dojo/i18n dojo/string dojo/number ./RangeBoundTextBox".split(" "),function(f,m,l,k,e,c){var g=function(b){b=b||{};var a=l.getLocalization("dojo.cldr","number",l.normalizeLocale(b.locale)),
c=b.pattern?b.pattern:a[(b.type||"decimal")+"Format"];b="number"==typeof b.places?b.places:"string"===typeof b.places&&0<b.places.length?b.places.replace(/.*,/,""):-1!=c.indexOf(".")?c.split(".")[1].replace(/[^#0]/g,"").length:0;return{sep:a.decimal,places:b}},d=f("dijit.form.NumberTextBoxMixin",null,{pattern:function(b){return"("+(this.focused&&this.editOptions?this._regExpGenerator(m.delegate(b,this.editOptions))+"|":"")+this._regExpGenerator(b)+")"},value:NaN,editOptions:{pattern:"#.######"},_formatter:e.format,
_regExpGenerator:e.regexp,_decimalInfo:g(),postMixInProperties:function(){this.inherited(arguments);this._set("type","text")},_setConstraintsAttr:function(b){var a="number"==typeof b.places?b.places:0;a&&a++;"number"!=typeof b.max&&(b.max=9*Math.pow(10,15-a));"number"!=typeof b.min&&(b.min=-9*Math.pow(10,15-a));this.inherited(arguments,[b]);this.focusNode&&(this.focusNode.value&&!isNaN(this.value))&&this.set("value",this.value);this._decimalInfo=g(b)},_onFocus:function(){if(!this.disabled&&!this.readOnly){var b=
this.get("value");"number"==typeof b&&!isNaN(b)&&(b=this.format(b,this.constraints),void 0!==b&&(this.textbox.value=b));this.inherited(arguments)}},format:function(b,a){var c=String(b);if("number"!=typeof b)return c;if(isNaN(b))return"";if(!("rangeCheck"in this&&this.rangeCheck(b,a))&&!1!==a.exponent&&/\de[-+]?\d/i.test(c))return c;this.editOptions&&this.focused&&(a=m.mixin({},a,this.editOptions));return this._formatter(b,a)},_parser:e.parse,parse:function(b,a){var c=m.mixin({},a,this.editOptions&&
this.focused?this.editOptions:{});if(this.focused&&null!=c.places){var d=c.places,d="number"===typeof d?d:Number(d.split(",").pop());c.places="0,"+d}c=this._parser(b,c);this.editOptions&&(this.focused&&isNaN(c))&&(c=this._parser(b,a));return c},_getDisplayedValueAttr:function(){var b=this.inherited(arguments);return isNaN(b)?this.textbox.value:b},filter:function(b){if(null==b||"string"==typeof b&&""==b)return NaN;"number"==typeof b&&(!isNaN(b)&&0!=b)&&(b=e.round(b,this._decimalInfo.places));return this.inherited(arguments,
[b])},serialize:function(b,a){return"number"!=typeof b||isNaN(b)?"":this.inherited(arguments)},_setBlurValue:function(){var b=m.hitch(m.delegate(this,{focused:!0}),"get")("value");this._setValueAttr(b,!0)},_setValueAttr:function(b,a,c){if(void 0!==b&&void 0===c)if(c=String(b),"number"==typeof b)if(isNaN(b))c="";else{if("rangeCheck"in this&&this.rangeCheck(b,this.constraints)||!1===this.constraints.exponent||!/\de[-+]?\d/i.test(c))c=void 0}else b?b=void 0:(c="",b=NaN);this.inherited(arguments,[b,a,
c])},_getValueAttr:function(){var b=this.inherited(arguments);if(isNaN(b)&&""!==this.textbox.value){if(!1!==this.constraints.exponent&&/\de[-+]?\d/i.test(this.textbox.value)&&RegExp("^"+e._realNumberRegexp(m.delegate(this.constraints))+"$").test(this.textbox.value))return b=Number(this.textbox.value),isNaN(b)?void 0:b}else return b},isValid:function(b){if(!this.focused||this._isEmpty(this.textbox.value))return this.inherited(arguments);var a=this.get("value");return!isNaN(a)&&this.rangeCheck(a,this.constraints)?
!1!==this.constraints.exponent&&/\de[-+]?\d/i.test(this.textbox.value)?!0:this.inherited(arguments):!1},_isValidSubset:function(){var b="number"==typeof this.constraints.min,a="number"==typeof this.constraints.max,c=this.get("value");if(isNaN(c)||!b&&!a)return this.inherited(arguments);var d=c|0,g=0>c,e=-1!=this.textbox.value.indexOf(this._decimalInfo.sep),f=(this.maxLength||20)-this.textbox.value.length,s=e?this.textbox.value.split(this._decimalInfo.sep)[1].replace(/[^0-9]/g,""):"",d=e?d+"."+s:d+
"",f=k.rep("9",f),e=c;g?e=Number(d+f):c=Number(d+f);return!(b&&c<this.constraints.min||a&&e>this.constraints.max)}});f=f("dijit.form.NumberTextBox",[c,d],{baseClass:"dijitTextBox dijitNumberTextBox"});f.Mixin=d;return f})},"dojo/number":function(){define(["./_base/lang","./i18n","./i18n!./cldr/nls/number","./string","./regexp"],function(f,m,l,k,e){var c={};f.setObject("dojo.number",c);c.format=function(d,b){b=f.mixin({},b||{});var a=m.normalizeLocale(b.locale),a=m.getLocalization("dojo.cldr","number",
a);b.customs=a;a=b.pattern||a[(b.type||"decimal")+"Format"];return isNaN(d)||Infinity==Math.abs(d)?null:c._applyPattern(d,a,b)};c._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;c._applyPattern=function(d,b,a){a=a||{};var h=a.customs.group,g=a.customs.decimal;b=b.split(";");var e=b[0];b=b[0>d?1:0]||"-"+e;if(-1!=b.indexOf("%"))d*=100;else if(-1!=b.indexOf("\u2030"))d*=1E3;else if(-1!=b.indexOf("\u00a4"))h=a.customs.currencyGroup||h,g=a.customs.currencyDecimal||g,b=b.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/,
function(b,c,d,h){b=a[["symbol","currency","displayName"][d.length-1]]||a.currency||"";return!b?"":c+b+h});else if(-1!=b.indexOf("E"))throw Error("exponential notation not supported");var f=c._numberPatternRE,e=e.match(f);if(!e)throw Error("unable to find a number expression in pattern: "+b);!1===a.fractional&&(a.places=0);return b.replace(f,c._formatAbsolute(d,e[0],{decimal:g,group:h,places:a.places,round:a.round}))};c.round=function(c,b,a){a=10/(a||10);return(a*+c).toFixed(b)/a};if(0==(0.9).toFixed()){var g=
c.round;c.round=function(c,b,a){var h=Math.pow(10,-b||0),e=Math.abs(c);if(!c||e>=h)h=0;else if(e/=h,0.5>e||0.95<=e)h=0;return g(c,b,a)+(0<c?h:-h)}}c._formatAbsolute=function(d,b,a){a=a||{};!0===a.places&&(a.places=0);Infinity===a.places&&(a.places=6);b=b.split(".");var h="string"==typeof a.places&&a.places.indexOf(","),g=a.places;h?g=a.places.substring(h+1):0<=g||(g=(b[1]||[]).length);0>a.round||(d=c.round(d,g,a.round));d=String(Math.abs(d)).split(".");var e=d[1]||"";b[1]||a.places?(h&&(a.places=
a.places.substring(0,h)),h=void 0!==a.places?a.places:b[1]&&b[1].lastIndexOf("0")+1,h>e.length&&(d[1]=k.pad(e,h,"0",!0)),g<e.length&&(d[1]=e.substr(0,g))):d[1]&&d.pop();g=b[0].replace(",","");h=g.indexOf("0");-1!=h&&(h=g.length-h,h>d[0].length&&(d[0]=k.pad(d[0],h)),-1==g.indexOf("#")&&(d[0]=d[0].substr(d[0].length-h)));var g=b[0].lastIndexOf(","),f,q;-1!=g&&(f=b[0].length-g-1,b=b[0].substr(0,g),g=b.lastIndexOf(","),-1!=g&&(q=b.length-g-1));b=[];for(g=d[0];g;)h=g.length-f,b.push(0<h?g.substr(h):g),
g=0<h?g.slice(0,h):"",q&&(f=q,delete q);d[0]=b.reverse().join(a.group||",");return d.join(a.decimal||".")};c.regexp=function(d){return c._parseInfo(d).regexp};c._parseInfo=function(d){d=d||{};var b=m.normalizeLocale(d.locale),b=m.getLocalization("dojo.cldr","number",b),a=d.pattern||b[(d.type||"decimal")+"Format"],h=b.group,g=b.decimal,n=1;if(-1!=a.indexOf("%"))n/=100;else if(-1!=a.indexOf("\u2030"))n/=1E3;else{var f=-1!=a.indexOf("\u00a4");f&&(h=b.currencyGroup||h,g=b.currencyDecimal||g)}b=a.split(";");
1==b.length&&b.push("-"+b[0]);b=e.buildGroupRE(b,function(a){a="(?:"+e.escapeString(a,".")+")";return a.replace(c._numberPatternRE,function(a){var b={signed:!1,separator:d.strict?h:[h,""],fractional:d.fractional,decimal:g,exponent:!1};a=a.split(".");var e=d.places;1==a.length&&1!=n&&(a[1]="###");1==a.length||0===e?b.fractional=!1:(void 0===e&&(e=d.pattern?a[1].lastIndexOf("0")+1:Infinity),e&&void 0==d.fractional&&(b.fractional=!0),!d.places&&e<a[1].length&&(e+=","+a[1].length),b.places=e);a=a[0].split(",");
1<a.length&&(b.groupSize=a.pop().length,1<a.length&&(b.groupSize2=a.pop().length));return"("+c._realNumberRegexp(b)+")"})},!0);f&&(b=b.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(a,b,c,h){a=e.escapeString(d[["symbol","currency","displayName"][c.length-1]]||d.currency||"");if(!a)return"";b=b?"[\\s\\xa0]":"";h=h?"[\\s\\xa0]":"";return!d.strict?(b&&(b+="*"),h&&(h+="*"),"(?:"+b+a+h+")?"):b+a+h}));return{regexp:b.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:h,decimal:g,factor:n}};c.parse=function(d,
b){var a=c._parseInfo(b),h=RegExp("^"+a.regexp+"$").exec(d);if(!h)return NaN;var g=h[1];if(!h[1]){if(!h[2])return NaN;g=h[2];a.factor*=-1}g=g.replace(RegExp("["+a.group+"\\s\\xa0]","g"),"").replace(a.decimal,".");return g*a.factor};c._realNumberRegexp=function(d){d=d||{};"places"in d||(d.places=Infinity);"string"!=typeof d.decimal&&(d.decimal=".");if(!("fractional"in d)||/^0/.test(d.places))d.fractional=[!0,!1];"exponent"in d||(d.exponent=[!0,!1]);"eSigned"in d||(d.eSigned=[!0,!1]);var b=c._integerRegexp(d),
a=e.buildGroupRE(d.fractional,function(a){var b="";a&&0!==d.places&&(b="\\"+d.decimal,b=Infinity==d.places?"(?:"+b+"\\d+)?":b+("\\d{"+d.places+"}"));return b},!0),h=e.buildGroupRE(d.exponent,function(a){return a?"([eE]"+c._integerRegexp({signed:d.eSigned})+")":""}),b=b+a;a&&(b="(?:(?:"+b+")|(?:"+a+"))");return b+h};c._integerRegexp=function(c){c=c||{};"signed"in c||(c.signed=[!0,!1]);"separator"in c?"groupSize"in c||(c.groupSize=3):c.separator="";var b=e.buildGroupRE(c.signed,function(a){return a?
"[-+]":""},!0),a=e.buildGroupRE(c.separator,function(a){if(!a)return"(?:\\d+)";a=e.escapeString(a);" "==a?a="\\s":"\u00a0"==a&&(a="\\s\\xa0");var b=c.groupSize,g=c.groupSize2;return g?(a="(?:0|[1-9]\\d{0,"+(g-1)+"}(?:["+a+"]\\d{"+g+"})*["+a+"]\\d{"+b+"})",0<b-g?"(?:"+a+"|(?:0|[1-9]\\d{0,"+(b-1)+"}))":a):"(?:0|[1-9]\\d{0,"+(b-1)+"}(?:["+a+"]\\d{"+b+"})*)"},!0);return b+a};return c})},"dojo/regexp":function(){define(["./_base/kernel","./_base/lang"],function(f,m){var l={};m.setObject("dojo.regexp",
l);l.escapeString=function(f,e){return f.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,function(c){return e&&-1!=e.indexOf(c)?c:"\\"+c})};l.buildGroupRE=function(f,e,c){if(!(f instanceof Array))return e(f);for(var g=[],d=0;d<f.length;d++)g.push(e(f[d]));return l.group(g.join("|"),c)};l.group=function(f,e){return"("+(e?"?:":"")+f+")"};return l})},"dijit/form/Button":function(){define("require dojo/_base/declare dojo/dom-class dojo/has dojo/_base/kernel dojo/_base/lang dojo/ready ./_FormWidget ./_ButtonMixin dojo/text!./templates/Button.html ../a11yclick".split(" "),
function(f,m,l,k,e,c,g,d,b,a){k("dijit-legacy-requires")&&g(0,function(){f(["dijit/form/DropDownButton","dijit/form/ComboButton","dijit/form/ToggleButton"])});g=m("dijit.form.Button"+(k("dojo-bidi")?"_NoBidi":""),[d,b],{showLabel:!0,iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitButton",templateString:a,_setValueAttr:"valueNode",_setNameAttr:function(a){this.valueNode&&this.valueNode.setAttribute("name",a)},postCreate:function(){this.inherited(arguments);
this._setLabelFromContainer()},_setLabelFromContainer:function(){this.containerNode&&!this.label&&(this.label=c.trim(this.containerNode.innerHTML),this.onLabelSet())},_setShowLabelAttr:function(a){this.containerNode&&l.toggle(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",a)},setLabel:function(a){e.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",a)},onLabelSet:function(){this.inherited(arguments);!this.showLabel&&
!("title"in this.params)&&(this.titleNode.title=c.trim(this.containerNode.innerText||this.containerNode.textContent||""))}});k("dojo-bidi")&&(g=m("dijit.form.Button",g,{onLabelSet:function(){this.inherited(arguments);this.titleNode.title&&this.applyTextDir(this.titleNode,this.titleNode.title)},_setTextDirAttr:function(a){this._created&&this.textDir!=a&&(this._set("textDir",a),this._setLabelAttr(this.label))}}));return g})},"dijit/form/_ButtonMixin":function(){define(["dojo/_base/declare","dojo/dom",
"dojo/has","../registry"],function(f,m,l,k){var e=f("dijit.form._ButtonMixin"+(l("dojo-bidi")?"_NoBidi":""),null,{label:"",type:"button",__onClick:function(c){c.stopPropagation();c.preventDefault();this.disabled||this.valueNode.click(c);return!1},_onClick:function(c){if(this.disabled)return c.stopPropagation(),c.preventDefault(),!1;!1===this.onClick(c)&&c.preventDefault();var g=c.defaultPrevented;if(!g&&"submit"==this.type&&!(this.valueNode||this.focusNode).form)for(var d=this.domNode;d.parentNode;d=
d.parentNode){var b=k.byNode(d);if(b&&"function"==typeof b._onSubmit){b._onSubmit(c);c.preventDefault();g=!0;break}}return!g},postCreate:function(){this.inherited(arguments);m.setSelectable(this.focusNode,!1)},onClick:function(){return!0},_setLabelAttr:function(c){this._set("label",c);(this.containerNode||this.focusNode).innerHTML=c;this.onLabelSet()},onLabelSet:function(){}});l("dojo-bidi")&&(e=f("dijit.form._ButtonMixin",e,{onLabelSet:function(){this.inherited(arguments);this.applyTextDir(this.containerNode||
this.focusNode)}}));return e})},"dijit/form/DropDownButton":function(){define("dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/query ../registry ../popup ./Button ../_Container ../_HasDropDown dojo/text!./templates/DropDownButton.html ../a11yclick".split(" "),function(f,m,l,k,e,c,g,d,b,a){return f("dijit.form.DropDownButton",[g,d,b],{baseClass:"dijitDropDownButton",templateString:a,_fillContent:function(){var a=this.srcNodeRef,b=this.containerNode;if(a&&b)for(;a.hasChildNodes();){var c=
a.firstChild;c.hasAttribute&&(c.hasAttribute("data-dojo-type")||c.hasAttribute("dojoType")||c.hasAttribute("data-"+m._scopeName+"-type")||c.hasAttribute(m._scopeName+"Type"))?(this.dropDownContainer=this.ownerDocument.createElement("div"),this.dropDownContainer.appendChild(c)):b.appendChild(c)}},startup:function(){this._started||(!this.dropDown&&this.dropDownContainer&&(this.dropDown=e.byNode(this.dropDownContainer.firstChild),delete this.dropDownContainer),this.dropDown&&c.hide(this.dropDown),this.inherited(arguments))},
isLoaded:function(){var a=this.dropDown;return!!a&&(!a.href||a.isLoaded)},loadDropDown:function(a){var b=this.dropDown,c=b.on("load",l.hitch(this,function(){c.remove();a()}));b.refresh()},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}})})},"dijit/popup":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/has dojo/keys dojo/_base/lang dojo/on ./place ./BackgroundIframe ./Viewport ./main dojo/touch".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s){function r(){this._popupWrapper&&(c.destroy(this._popupWrapper),delete this._popupWrapper)}l=l(null,{_stack:[],_beginZIndex:1E3,_idGen:1,_repositionAll:function(){if(this._firstAroundNode){var a=this._firstAroundPosition,b=g.position(this._firstAroundNode,!0),c=b.x-a.x,a=b.y-a.y;if(c||a){this._firstAroundPosition=b;for(b=0;b<this._stack.length;b++){var d=this._stack[b].wrapper.style;d.top=parseFloat(d.top)+a+"px";"auto"==d.right?d.left=parseFloat(d.left)+
c+"px":d.right=parseFloat(d.right)-c+"px"}}this._aroundMoveListener=setTimeout(h.hitch(this,"_repositionAll"),c||a?10:50)}},_createWrapper:function(a){var b=a._popupWrapper,d=a.domNode;b||(b=c.create("div",{"class":"dijitPopup",style:{display:"none"},role:"region","aria-label":a["aria-label"]||a.label||a.name||a.id},a.ownerDocumentBody),b.appendChild(d),d=d.style,d.display="",d.visibility="",d.position="",d.top="0px",a._popupWrapper=b,m.after(a,"destroy",r,!0),"ontouchend"in document&&p(b,"touchend",
function(a){/^(input|button|textarea)$/i.test(a.target.tagName)||a.preventDefault()}),b.dojoClick=!0);return b},moveOffScreen:function(a){var b=this._createWrapper(a);a=g.isBodyLtr(a.ownerDocument);var c={visibility:"hidden",top:"-9999px",display:""};c[a?"left":"right"]="-9999px";c[a?"right":"left"]="auto";d.set(b,c);return b},hide:function(a){var b=this._createWrapper(a);d.set(b,{display:"none",height:"auto",overflowY:"visible",border:""});a=a.domNode;"_originalStyle"in a&&(a.style.cssText=a._originalStyle)},
getTopPopup:function(){for(var a=this._stack,b=a.length-1;0<b&&a[b].parent===a[b-1].widget;b--);return a[b]},open:function(c){for(var f=this._stack,r=c.popup,s=r.domNode,l=c.orient||["below","below-alt","above","above-alt"],m=c.parent?c.parent.isLeftToRight():g.isBodyLtr(r.ownerDocument),A=c.around,E=c.around&&c.around.id?c.around.id+"_dropdown":"popup_"+this._idGen++;f.length&&(!c.parent||!k.isDescendant(c.parent.domNode,f[f.length-1].widget.domNode));)this.close(f[f.length-1].widget);var B=this.moveOffScreen(r);
r.startup&&!r._started&&r.startup();var G,L=g.position(s);if("maxHeight"in c&&-1!=c.maxHeight)G=c.maxHeight||Infinity;else{G=q.getEffectiveBox(this.ownerDocument);var I=A?g.position(A,!1):{y:c.y-(c.padding||0),h:2*(c.padding||0)};G=Math.floor(Math.max(I.y,G.h-(I.y+I.h)))}L.h>G&&(L=d.getComputedStyle(s),d.set(B,{overflowY:"scroll",height:G+"px",border:L.borderLeftWidth+" "+L.borderLeftStyle+" "+L.borderLeftColor}),s._originalStyle=s.style.cssText,s.style.border="none");e.set(B,{id:E,style:{zIndex:this._beginZIndex+
f.length},"class":"dijitPopup "+(r.baseClass||r["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:c.parent?c.parent.id:""});0==f.length&&A&&(this._firstAroundNode=A,this._firstAroundPosition=g.position(A,!0),this._aroundMoveListener=setTimeout(h.hitch(this,"_repositionAll"),50));b("config-bgIframe")&&!r.bgIframe&&(r.bgIframe=new t(B));E=r.orient?h.hitch(r,"orient"):null;l=A?n.around(B,A,l,m,E):n.at(B,c,"R"==l?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],c.padding,E);B.style.visibility="visible";
s.style.visibility="visible";s=[];s.push(p(B,"keydown",h.hitch(this,function(b){if(b.keyCode==a.ESCAPE&&c.onCancel)b.stopPropagation(),b.preventDefault(),c.onCancel();else if(b.keyCode==a.TAB&&(b.stopPropagation(),b.preventDefault(),(b=this.getTopPopup())&&b.onCancel))b.onCancel()})));r.onCancel&&c.onCancel&&s.push(r.on("cancel",c.onCancel));s.push(r.on(r.onExecute?"execute":"change",h.hitch(this,function(){var a=this.getTopPopup();if(a&&a.onExecute)a.onExecute()})));f.push({widget:r,wrapper:B,parent:c.parent,
onExecute:c.onExecute,onCancel:c.onCancel,onClose:c.onClose,handlers:s});if(r.onOpen)r.onOpen(l);return l},close:function(a){for(var b=this._stack;a&&f.some(b,function(b){return b.widget==a})||!a&&b.length;){var c=b.pop(),d=c.widget,h=c.onClose;d.bgIframe&&(d.bgIframe.destroy(),delete d.bgIframe);if(d.onClose)d.onClose();for(var g;g=c.handlers.pop();)g.remove();d&&d.domNode&&this.hide(d);h&&h()}0==b.length&&this._aroundMoveListener&&(clearTimeout(this._aroundMoveListener),this._firstAroundNode=this._firstAroundPosition=
this._aroundMoveListener=null)}});return s.popup=new l})},"dijit/_Container":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/_base/kernel"],function(f,m,l,k){return m("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode)},addChild:function(e,c){var g=this.containerNode;if(0<c){for(g=g.firstChild;0<c;)1==g.nodeType&&c--,g=g.nextSibling;g?c="before":(g=this.containerNode,c="last")}l.place(e.domNode,
g,c);this._started&&!e._started&&e.startup()},removeChild:function(e){"number"==typeof e&&(e=this.getChildren()[e]);e&&(e=e.domNode)&&e.parentNode&&e.parentNode.removeChild(e)},hasChildren:function(){return 0<this.getChildren().length},_getSiblingOfChild:function(e,c){var g=this.getChildren(),d=f.indexOf(g,e);return g[d+c]},getIndexOfChild:function(e){return f.indexOf(this.getChildren(),e)}})})},"dijit/_HasDropDown":function(){define("dojo/_base/declare dojo/_base/Deferred dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/has dojo/keys dojo/_base/lang dojo/on dojo/touch ./registry ./focus ./popup ./_FocusMixin".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s){return f("dijit._HasDropDown",s,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:!0,forceWidth:!1,maxHeight:-1,dropDownPosition:["below","above"],_stopClickEvents:!0,_onDropDownMouseDown:function(b){!this.disabled&&!this.readOnly&&("MSPointerDown"!=b.type&&"pointerdown"!=b.type&&b.preventDefault(),this.own(h.once(this.ownerDocument,p.release,a.hitch(this,"_onDropDownMouseUp"))),this.toggleDropDown())},
_onDropDownMouseUp:function(a){var b=this.dropDown,d=!1;if(a&&this._opened){var h=c.position(this._buttonNode,!0);if(!(a.pageX>=h.x&&a.pageX<=h.x+h.w)||!(a.pageY>=h.y&&a.pageY<=h.y+h.h)){for(h=a.target;h&&!d;)e.contains(h,"dijitPopup")?d=!0:h=h.parentNode;if(d){h=a.target;if(b.onItemClick){for(var g;h&&!(g=n.byNode(h));)h=h.parentNode;if(g&&g.onClick&&g.getParent)g.getParent().onItemClick(g,a)}return}}}if(this._opened){if(b.focus&&(!1!==b.autoFocus||"mouseup"==a.type&&!this.hovering))this._focusDropDownTimer=
this.defer(function(){b.focus();delete this._focusDropDownTimer})}else this.focus&&this.defer("focus")},_onDropDownClick:function(a){this._stopClickEvents&&(a.stopPropagation(),a.preventDefault())},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var a={after:this.isLeftToRight()?"Right":"Left",before:this.isLeftToRight()?"Left":"Right",above:"Up",below:"Down",
left:"Left",right:"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";e.add(this._arrowWrapperNode||this._buttonNode,"dijit"+a+"ArrowButton")},postCreate:function(){this.inherited(arguments);var b=this.focusNode||this.domNode;this.own(h(this._buttonNode,p.press,a.hitch(this,"_onDropDownMouseDown")),h(this._buttonNode,"click",a.hitch(this,"_onDropDownClick")),h(b,"keydown",a.hitch(this,"_onKey")),h(b,"keyup",a.hitch(this,"_onKeyUp")))},destroy:function(){this._opened&&this.closeDropDown(!0);
this.dropDown&&(this.dropDown._destroyed||this.dropDown.destroyRecursive(),delete this.dropDown);this.inherited(arguments)},_onKey:function(a){if(!this.disabled&&!this.readOnly){var c=this.dropDown,d=a.target;if(c&&(this._opened&&c.handleKey)&&!1===c.handleKey(a))a.stopPropagation(),a.preventDefault();else if(c&&this._opened&&a.keyCode==b.ESCAPE)this.closeDropDown(),a.stopPropagation(),a.preventDefault();else if(!this._opened&&(a.keyCode==b.DOWN_ARROW||(a.keyCode==b.ENTER||a.keyCode==b.SPACE&&(!this._searchTimer||
a.ctrlKey||a.altKey||a.metaKey))&&("input"!==(d.tagName||"").toLowerCase()||d.type&&"text"!==d.type.toLowerCase())))this._toggleOnKeyUp=!0,a.stopPropagation(),a.preventDefault()}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var b=this.dropDown;b&&b.focus&&this.defer(a.hitch(b,"focus"),1)}},_onBlur:function(){this.closeDropDown(!1);this.inherited(arguments)},isLoaded:function(){return!0},loadDropDown:function(a){a()},loadAndOpenDropDown:function(){var b=
new m,c=a.hitch(this,function(){this.openDropDown();b.resolve(this.dropDown)});this.isLoaded()?c():this.loadDropDown(c);return b},toggleDropDown:function(){!this.disabled&&!this.readOnly&&(this._opened?this.closeDropDown(!0):this.loadAndOpenDropDown())},openDropDown:function(){var b=this.dropDown,d=b.domNode,h=this._aroundNode||this.domNode,g=this,n=q.open({parent:this,popup:b,around:h,orient:this.dropDownPosition,maxHeight:this.maxHeight,onExecute:function(){g.closeDropDown(!0)},onCancel:function(){g.closeDropDown(!0)},
onClose:function(){k.set(g._popupStateNode,"popupActive",!1);e.remove(g._popupStateNode,"dijitHasDropDownOpen");g._set("_opened",!1)}});if(this.forceWidth||this.autoWidth&&h.offsetWidth>b._popupWrapper.offsetWidth){var h=h.offsetWidth-b._popupWrapper.offsetWidth,p={w:b.domNode.offsetWidth+h};this._origStyle=d.style.cssText;a.isFunction(b.resize)?b.resize(p):c.setMarginBox(d,p);"R"==n.corner[1]&&(b._popupWrapper.style.left=b._popupWrapper.style.left.replace("px","")-h+"px")}k.set(this._popupStateNode,
"popupActive","true");e.add(this._popupStateNode,"dijitHasDropDownOpen");this._set("_opened",!0);this._popupStateNode.setAttribute("aria-expanded","true");this._popupStateNode.setAttribute("aria-owns",b.id);"presentation"!==d.getAttribute("role")&&!d.getAttribute("aria-labelledby")&&d.setAttribute("aria-labelledby",this.id);return n},closeDropDown:function(a){this._focusDropDownTimer&&(this._focusDropDownTimer.remove(),delete this._focusDropDownTimer);this._opened&&(this._popupStateNode.setAttribute("aria-expanded",
"false"),a&&this.focus&&this.focus(),q.close(this.dropDown),this._opened=!1);this._origStyle&&(this.dropDown.domNode.style.cssText=this._origStyle,delete this._origStyle)}})})},"dijit/form/ComboButton":function(){define("dojo/_base/declare dojo/keys ../focus ./DropDownButton dojo/text!./templates/ComboButton.html ../a11yclick".split(" "),function(f,m,l,k,e){return f("dijit.form.ComboButton",k,{templateString:e,_setIdAttr:"",_setTabIndexAttr:["focusNode","titleNode"],_setTitleAttr:"titleNode",optionsTitle:"",
baseClass:"dijitComboButton",cssStateNodes:{buttonNode:"dijitButtonNode",titleNode:"dijitButtonContents",_popupStateNode:"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyDown:function(c){if(c.keyCode==m[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"])l.focus(this._popupStateNode),c.stopPropagation(),c.preventDefault()},_onArrowKeyDown:function(c){if(c.keyCode==m[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"])l.focus(this.titleNode),c.stopPropagation(),c.preventDefault()},focus:function(c){this.disabled||
l.focus("start"==c?this.titleNode:this._popupStateNode)}})})},"dijit/form/ComboBox":function(){define(["dojo/_base/declare","./ValidationTextBox","./ComboBoxMixin"],function(f,m,l){return f("dijit.form.ComboBox",[m,l],{})})},"dijit/form/ComboBoxMixin":function(){define("dojo/_base/declare dojo/Deferred dojo/_base/kernel dojo/_base/lang dojo/store/util/QueryResults ./_AutoCompleterMixin ./_ComboBoxMenu ../_HasDropDown dojo/text!./templates/DropDownBox.html".split(" "),function(f,m,l,k,e,c,g,d,b){return f("dijit.form.ComboBoxMixin",
[d,c],{dropDownClass:g,hasDownArrow:!0,templateString:b,baseClass:"dijitTextBox dijitComboBox",cssStateNodes:{_buttonNode:"dijitDownArrowButton"},_setHasDownArrowAttr:function(a){this._set("hasDownArrow",a);this._buttonNode.style.display=a?"":"none"},_showResultList:function(){this.displayMessage("");this.inherited(arguments)},_setStoreAttr:function(a){a.get||k.mixin(a,{_oldAPI:!0,get:function(a){var b=new m;this.fetchItemByIdentity({identity:a,onItem:function(a){b.resolve(a)},onError:function(a){b.reject(a)}});
return b.promise},query:function(a,b){var c=new m(function(){d.abort&&d.abort()});c.total=new m;var d=this.fetch(k.mixin({query:a,onBegin:function(a){c.total.resolve(a)},onComplete:function(a){c.resolve(a)},onError:function(a){c.reject(a)}},b));return e(c)}});this._set("store",a)},postMixInProperties:function(){var a=this.params.store||this.store;a&&this._setStoreAttr(a);this.inherited(arguments);if(!this.params.store&&this.store&&!this.store._oldAPI){var b=this.declaredClass;k.mixin(this.store,{getValue:function(a,
c){l.deprecated(b+".store.getValue(item, attr) is deprecated for builtin store.  Use item.attr directly","","2.0");return a[c]},getLabel:function(a){l.deprecated(b+".store.getLabel(item) is deprecated for builtin store.  Use item.label directly","","2.0");return a.name},fetch:function(a){l.deprecated(b+".store.fetch() is deprecated for builtin store.","Use store.query()","2.0");require(["dojo/data/ObjectStore"],k.hitch(this,function(b){(new b({objectStore:this})).fetch(a)}))}})}},buildRendering:function(){this.inherited(arguments);
this.focusNode.setAttribute("aria-autocomplete",this.autoComplete?"both":"list")}})})},"dojo/store/util/QueryResults":function(){define(["../../_base/array","../../_base/lang","../../when"],function(f,m,l){var k=function(e){function c(c){e[c]=function(){var b=arguments,a=l(e,function(a){Array.prototype.unshift.call(b,a);return k(f[c].apply(f,b))});if("forEach"!==c||g)return a}}if(!e)return e;var g=!!e.then;g&&(e=m.delegate(e));c("forEach");c("filter");c("map");null==e.total&&(e.total=l(e,function(c){return c.length}));
return e};m.setObject("dojo.store.util.QueryResults",k);return k})},"dijit/form/_AutoCompleterMixin":function(){define("dojo/aspect dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/query dojo/regexp dojo/sniff ./DataList ./_TextBoxMixin ./_SearchMixin".split(" "),function(f,m,l,k,e,c,g,d,b,a,h){m=m("dijit.form._AutoCompleterMixin",h,{item:null,autoComplete:!0,highlightMatch:"first",labelAttr:"",labelType:"text",maxHeight:-1,_stopClickEvents:!1,_getCaretPos:function(a){var b=0;if("number"==
typeof a.selectionStart)b=a.selectionStart;else if(d("ie")){var c=a.ownerDocument.selection.createRange().duplicate();a=a.createTextRange();c.move("character",0);a.move("character",0);try{a.setEndPoint("EndToEnd",c),b=String(a.text).replace(/\r/g,"").length}catch(h){}}return b},_setCaretPos:function(b,c){c=parseInt(c);a.selectInputText(b,c,c)},_setDisabledAttr:function(a){this.inherited(arguments);this.domNode.setAttribute("aria-disabled",a?"true":"false")},_onKey:function(a){if(!(32<=a.charCode)){var b=
a.charCode||a.keyCode;if(!(b==k.ALT||b==k.CTRL||b==k.META||b==k.SHIFT)){var c=this.dropDown,d=null;this._abortQuery();this.inherited(arguments);if(!a.altKey&&!a.ctrlKey&&!a.metaKey)switch(this._opened&&(d=c.getHighlightedOption()),b){case k.PAGE_DOWN:case k.DOWN_ARROW:case k.PAGE_UP:case k.UP_ARROW:this._opened&&this._announceOption(d);a.stopPropagation();a.preventDefault();break;case k.ENTER:if(d){if(d==c.nextButton){this._nextSearch(1);a.stopPropagation();a.preventDefault();break}else if(d==c.previousButton){this._nextSearch(-1);
a.stopPropagation();a.preventDefault();break}a.stopPropagation();a.preventDefault()}else this._setBlurValue(),this._setCaretPos(this.focusNode,this.focusNode.value.length);case k.TAB:b=this.get("displayedValue");if(c&&(b==c._messages.previousMessage||b==c._messages.nextMessage))break;d&&this._selectOption(d);case k.ESCAPE:this._opened&&(this._lastQuery=null,this.closeDropDown())}}}},_autoCompleteText:function(b){var c=this.focusNode;a.selectInputText(c,c.value.length);var d=this.ignoreCase?"toLowerCase":
"substr";0==b[d](0).indexOf(this.focusNode.value[d](0))?(d=this.autoComplete?this._getCaretPos(c):c.value.length,d+1>c.value.length&&(c.value=b,a.selectInputText(c,d))):(c.value=b,a.selectInputText(c))},_openResultList:function(a,b,c){var d=this.dropDown.getHighlightedOption();this.dropDown.clearResultList();!a.length&&0==c.start?this.closeDropDown():(this._nextSearch=this.dropDown.onPage=e.hitch(this,function(b){a.nextPage(-1!==b);this.focus()}),this.dropDown.createOptions(a,c,e.hitch(this,"_getMenuLabelFromItem")),
this._showResultList(),"direction"in c?(c.direction?this.dropDown.highlightFirstOption():c.direction||this.dropDown.highlightLastOption(),d&&this._announceOption(this.dropDown.getHighlightedOption())):this.autoComplete&&(!this._prev_key_backspace&&!/^[*]+$/.test(b[this.searchAttr].toString()))&&this._announceOption(this.dropDown.containerNode.firstChild.nextSibling))},_showResultList:function(){this.closeDropDown(!0);this.openDropDown();this.domNode.setAttribute("aria-expanded","true")},loadDropDown:function(){this._startSearchAll()},
isLoaded:function(){return!1},closeDropDown:function(){this._abortQuery();this._opened&&(this.inherited(arguments),this.domNode.setAttribute("aria-expanded","false"))},_setBlurValue:function(){var a=this.get("displayedValue"),b=this.dropDown;b&&(a==b._messages.previousMessage||a==b._messages.nextMessage)?this._setValueAttr(this._lastValueReported,!0):"undefined"==typeof this.item?(this.item=null,this.set("displayedValue",a)):(this.value!=this._lastValueReported&&this._handleOnChange(this.value,!0),
this._refreshState());this.focusNode.removeAttribute("aria-activedescendant")},_setItemAttr:function(a,b,c){var d="";a&&(c||(c=this.store._oldAPI?this.store.getValue(a,this.searchAttr):a[this.searchAttr]),d=this._getValueField()!=this.searchAttr?this.store.getIdentity(a):c);this.set("value",d,b,c,a)},_announceOption:function(a){if(a){var b;if(a==this.dropDown.nextButton||a==this.dropDown.previousButton)b=a.innerHTML,this.item=void 0,this.value="";else{var c=this.dropDown.items[a.getAttribute("item")];
b=(this.store._oldAPI?this.store.getValue(c,this.searchAttr):c[this.searchAttr]).toString();this.set("item",c,!1,b)}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);this.focusNode.setAttribute("aria-activedescendant",l.get(a,"id"));this._autoCompleteText(b)}},_selectOption:function(a){this.closeDropDown();a&&this._announceOption(a);this._setCaretPos(this.focusNode,this.focusNode.value.length);this._handleOnChange(this.value,!0);this.focusNode.removeAttribute("aria-activedescendant")},
_startSearchAll:function(){this._startSearch("")},_startSearchFromInput:function(){this.item=void 0;this.inherited(arguments)},_startSearch:function(a){if(!this.dropDown){var b=this.id+"_popup";this.dropDown=new (e.isString(this.dropDownClass)?e.getObject(this.dropDownClass,!1):this.dropDownClass)({onChange:e.hitch(this,this._selectOption),id:b,dir:this.dir,textDir:this.textDir})}this._lastInput=a;this.inherited(arguments)},_getValueField:function(){return this.searchAttr},postMixInProperties:function(){this.inherited(arguments);
if(!this.store&&this.srcNodeRef&&(this.store=new b({},this.srcNodeRef),!("value"in this.params))){var a=this.item=this.store.fetchSelectedItem();if(a){var c=this._getValueField();this.value=this.store._oldAPI?this.store.getValue(a,c):a[c]}}},postCreate:function(){var a=c('label[for\x3d"'+this.id+'"]');a.length&&(a[0].id||(a[0].id=this.id+"_label"),this.domNode.setAttribute("aria-labelledby",a[0].id));this.inherited(arguments);f.after(this,"onSearch",e.hitch(this,"_openResultList"),!0)},_getMenuLabelFromItem:function(a){a=
this.labelFunc(a,this.store);var b=this.labelType;"none"!=this.highlightMatch&&("text"==this.labelType&&this._lastInput)&&(a=this.doHighlight(a,this._lastInput),b="html");return{html:"html"==b,label:a}},doHighlight:function(a,b){var c=(this.ignoreCase?"i":"")+("all"==this.highlightMatch?"g":""),d=this.queryExpr.indexOf("${0}");b=g.escapeString(b);return this._escapeHtml(a.replace(RegExp((0==d?"^":"")+"("+b+")"+(d==this.queryExpr.length-4?"$":""),c),"\uffff$1\uffff")).replace(/\uFFFF([^\uFFFF]+)\uFFFF/g,
'\x3cspan class\x3d"dijitComboBoxHighlightMatch"\x3e$1\x3c/span\x3e')},_escapeHtml:function(a){return a=String(a).replace(/&/gm,"\x26amp;").replace(/</gm,"\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,"\x26quot;")},reset:function(){this.item=null;this.inherited(arguments)},labelFunc:function(a,b){return(b._oldAPI?b.getValue(a,this.labelAttr||this.searchAttr):a[this.labelAttr||this.searchAttr]).toString()},_setValueAttr:function(a,b,c,d){this._set("item",d||null);null==a&&(a="");this.inherited(arguments)}});
d("dojo-bidi")&&m.extend({_setTextDirAttr:function(a){this.inherited(arguments);this.dropDown&&this.dropDown._set("textDir",a)}});return m})},"dijit/form/DataList":function(){define("dojo/_base/declare dojo/dom dojo/_base/lang dojo/query dojo/store/Memory ../registry".split(" "),function(f,m,l,k,e,c){function g(c){return{id:c.value,value:c.value,name:l.trim(c.innerText||c.textContent||"")}}return f("dijit.form.DataList",e,{constructor:function(d,b){this.domNode=m.byId(b);l.mixin(this,d);this.id&&
c.add(this);this.domNode.style.display="none";this.inherited(arguments,[{data:k("option",this.domNode).map(g)}])},destroy:function(){c.remove(this.id)},fetchSelectedItem:function(){var c=k("\x3e option[selected]",this.domNode)[0]||k("\x3e option",this.domNode)[0];return c&&g(c)}})})},"dojo/store/Memory":function(){define(["../_base/declare","./util/QueryResults","./util/SimpleQueryEngine"],function(f,m,l){return f("dojo.store.Memory",null,{constructor:function(f){for(var e in f)this[e]=f[e];this.setData(this.data||
[])},data:null,idProperty:"id",index:null,queryEngine:l,get:function(f){return this.data[this.index[f]]},getIdentity:function(f){return f[this.idProperty]},put:function(f,e){var c=this.data,g=this.index,d=this.idProperty,d=f[d]=e&&"id"in e?e.id:d in f?f[d]:Math.random();if(d in g){if(e&&!1===e.overwrite)throw Error("Object already exists");c[g[d]]=f}else g[d]=c.push(f)-1;return d},add:function(f,e){(e=e||{}).overwrite=!1;return this.put(f,e)},remove:function(f){var e=this.index,c=this.data;if(f in
e)return c.splice(e[f],1),this.setData(c),!0},query:function(f,e){return m(this.queryEngine(f,e)(this.data))},setData:function(f){f.items?(this.idProperty=f.identifier||this.idProperty,f=this.data=f.items):this.data=f;this.index={};for(var e=0,c=f.length;e<c;e++)this.index[f[e][this.idProperty]]=e}})})},"dojo/store/util/SimpleQueryEngine":function(){define(["../../_base/array"],function(f){return function(m,l){function k(c){c=f.filter(c,m);var g=l&&l.sort;g&&c.sort("function"==typeof g?g:function(b,
a){for(var c,d=0;c=g[d];d++){var e=b[c.attribute],f=a[c.attribute],e=null!=e?e.valueOf():e,f=null!=f?f.valueOf():f;if(e!=f)return!!c.descending==(null==e||e>f)?-1:1}return 0});if(l&&(l.start||l.count)){var d=c.length;c=c.slice(l.start||0,(l.start||0)+(l.count||Infinity));c.total=d}return c}switch(typeof m){default:throw Error("Can not query with a "+typeof m);case "object":case "undefined":var e=m;m=function(c){for(var g in e){var d=e[g];if(d&&d.test){if(!d.test(c[g],c))return!1}else if(d!=c[g])return!1}return!0};
break;case "string":if(!this[m])throw Error("No filter function "+m+" was found in store");m=this[m];case "function":}k.matches=m;return k}})},"dijit/form/_SearchMixin":function(){define("dojo/_base/declare dojo/keys dojo/_base/lang dojo/query dojo/string dojo/when ../registry".split(" "),function(f,m,l,k,e,c,g){return f("dijit.form._SearchMixin",null,{pageSize:Infinity,store:null,fetchProperties:{},query:{},list:"",_setListAttr:function(c){this._set("list",c)},searchDelay:200,searchAttr:"name",queryExpr:"${0}*",
ignoreCase:!0,_patternToRegExp:function(c){return RegExp("^"+c.replace(/(\\.)|(\*)|(\?)|\W/g,function(b,a,c,d){return c?".*":d?".":a?a:"\\"+b})+"$",this.ignoreCase?"mi":"m")},_abortQuery:function(){this.searchTimer&&(this.searchTimer=this.searchTimer.remove());this._queryDeferHandle&&(this._queryDeferHandle=this._queryDeferHandle.remove());this._fetchHandle&&(this._fetchHandle.abort&&(this._cancelingQuery=!0,this._fetchHandle.abort(),this._cancelingQuery=!1),this._fetchHandle.cancel&&(this._cancelingQuery=
!0,this._fetchHandle.cancel(),this._cancelingQuery=!1),this._fetchHandle=null)},_processInput:function(c){if(!this.disabled&&!this.readOnly){c=c.charOrCode;var b=!1;this._prev_key_backspace=!1;switch(c){case m.DELETE:case m.BACKSPACE:b=this._maskValidSubsetError=this._prev_key_backspace=!0;break;default:b="string"==typeof c||229==c}if(b)if(this.store)this.searchTimer=this.defer("_startSearchFromInput",1);else this.onSearch()}},onSearch:function(){},_startSearchFromInput:function(){this._startSearch(this.focusNode.value)},
_startSearch:function(d){this._abortQuery();var b=this,a=l.clone(this.query),h={start:0,count:this.pageSize,queryOptions:{ignoreCase:this.ignoreCase,deep:!0}},g=e.substitute(this.queryExpr,[d.replace(/([\\\*\?])/g,"\\$1")]),f,k=function(){var d=b._fetchHandle=b.store.query(a,h);!b.disabled&&!(b.readOnly||f!==b._lastQuery)&&c(d,function(g){b._fetchHandle=null;!b.disabled&&(!b.readOnly&&f===b._lastQuery)&&c(d.total,function(c){g.total=c;var d=b.pageSize;if(isNaN(d)||d>g.total)d=g.total;g.nextPage=function(c){h.direction=
c=!1!==c;h.count=d;c?(h.start+=g.length,h.start>=g.total&&(h.count=0)):(h.start-=d,0>h.start&&(h.count=Math.max(d+h.start,0),h.start=0));0>=h.count?(g.length=0,b.onSearch(g,a,h)):k()};b.onSearch(g,a,h)})},function(a){b._fetchHandle=null;b._cancelingQuery||console.error(b.declaredClass+" "+a.toString())})};l.mixin(h,this.fetchProperties);this.store._oldAPI?f=g:(f=this._patternToRegExp(g),f.toString=function(){return g});this._lastQuery=a[this.searchAttr]=f;this._queryDeferHandle=this.defer(k,this.searchDelay)},
constructor:function(){this.query={};this.fetchProperties={}},postMixInProperties:function(){if(!this.store){var c=this.list;c&&(this.store=g.byId(c))}this.inherited(arguments)}})})},"dijit/form/_ComboBoxMenu":function(){define("dojo/_base/declare dojo/dom-class dojo/dom-style dojo/keys ../_WidgetBase ../_TemplatedMixin ./_ComboBoxMenuMixin ./_ListMouseMixin".split(" "),function(f,m,l,k,e,c,g,d){return f("dijit.form._ComboBoxMenu",[e,c,d,g],{templateString:"\x3cdiv class\x3d'dijitReset dijitMenu' data-dojo-attach-point\x3d'containerNode' style\x3d'overflow: auto; overflow-x: hidden;' role\x3d'listbox'\x3e\x3cdiv class\x3d'dijitMenuItem dijitMenuPreviousButton' data-dojo-attach-point\x3d'previousButton' role\x3d'option'\x3e\x3c/div\x3e\x3cdiv class\x3d'dijitMenuItem dijitMenuNextButton' data-dojo-attach-point\x3d'nextButton' role\x3d'option'\x3e\x3c/div\x3e\x3c/div\x3e",
baseClass:"dijitComboBoxMenu",postCreate:function(){this.inherited(arguments);this.isLeftToRight()||(m.add(this.previousButton,"dijitMenuItemRtl"),m.add(this.nextButton,"dijitMenuItemRtl"));this.containerNode.setAttribute("role","listbox")},_createMenuItem:function(){var b=this.ownerDocument.createElement("div");b.className="dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl");b.setAttribute("role","option");return b},onHover:function(b){m.add(b,"dijitMenuItemHover")},onUnhover:function(b){m.remove(b,
"dijitMenuItemHover")},onSelect:function(b){m.add(b,"dijitMenuItemSelected")},onDeselect:function(b){m.remove(b,"dijitMenuItemSelected")},_page:function(b){var a=0,c=this.domNode.scrollTop,d=l.get(this.domNode,"height");for(this.getHighlightedOption()||this.selectNextNode();a<d;){var g=this.getHighlightedOption();if(b){if(!g.previousSibling||"none"==g.previousSibling.style.display)break;this.selectPreviousNode()}else{if(!g.nextSibling||"none"==g.nextSibling.style.display)break;this.selectNextNode()}g=
this.domNode.scrollTop;a+=(g-c)*(b?-1:1);c=g}},handleKey:function(b){switch(b.keyCode){case k.DOWN_ARROW:return this.selectNextNode(),!1;case k.PAGE_DOWN:return this._page(!1),!1;case k.UP_ARROW:return this.selectPreviousNode(),!1;case k.PAGE_UP:return this._page(!0),!1;default:return!0}}})})},"dijit/form/_ComboBoxMenuMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/has dojo/i18n dojo/i18n!./nls/ComboBox".split(" "),function(f,m,l,k,e){var c=m("dijit.form._ComboBoxMenuMixin"+
(k("dojo-bidi")?"_NoBidi":""),null,{_messages:null,postMixInProperties:function(){this.inherited(arguments);this._messages=e.getLocalization("dijit.form","ComboBox",this.lang)},buildRendering:function(){this.inherited(arguments);this.previousButton.innerHTML=this._messages.previousMessage;this.nextButton.innerHTML=this._messages.nextMessage},_setValueAttr:function(c){this._set("value",c);this.onChange(c)},onClick:function(c){if(c==this.previousButton)this._setSelectedAttr(null),this.onPage(-1);else if(c==
this.nextButton)this._setSelectedAttr(null),this.onPage(1);else this.onChange(c)},onChange:function(){},onPage:function(){},onClose:function(){this._setSelectedAttr(null)},_createOption:function(c,d){var b=this._createMenuItem(),a=d(c);a.html?b.innerHTML=a.label:b.appendChild(b.ownerDocument.createTextNode(a.label));""==b.innerHTML&&(b.innerHTML="\x26#160;");return b},createOptions:function(c,d,b){this.items=c;this.previousButton.style.display=0==d.start?"none":"";l.set(this.previousButton,"id",this.id+
"_prev");f.forEach(c,function(a,c){var d=this._createOption(a,b);d.setAttribute("item",c);l.set(d,"id",this.id+c);this.nextButton.parentNode.insertBefore(d,this.nextButton)},this);var a=!1;c.total&&!c.total.then&&-1!=c.total?d.start+d.count<c.total?a=!0:d.start+d.count>c.total&&d.count==c.length&&(a=!0):d.count==c.length&&(a=!0);this.nextButton.style.display=a?"":"none";l.set(this.nextButton,"id",this.id+"_next")},clearResultList:function(){for(var c=this.containerNode;2<c.childNodes.length;)c.removeChild(c.childNodes[c.childNodes.length-
2]);this._setSelectedAttr(null)},highlightFirstOption:function(){this.selectFirstNode()},highlightLastOption:function(){this.selectLastNode()},selectFirstNode:function(){this.inherited(arguments);this.getHighlightedOption()==this.previousButton&&this.selectNextNode()},selectLastNode:function(){this.inherited(arguments);this.getHighlightedOption()==this.nextButton&&this.selectPreviousNode()},getHighlightedOption:function(){return this.selected}});k("dojo-bidi")&&(c=m("dijit.form._ComboBoxMenuMixin",
c,{_createOption:function(){var c=this.inherited(arguments);this.applyTextDir(c);return c}}));return c})},"dijit/form/_ListMouseMixin":function(){define(["dojo/_base/declare","dojo/on","dojo/touch","./_ListBase"],function(f,m,l,k){return f("dijit.form._ListMouseMixin",k,{postCreate:function(){this.inherited(arguments);this.domNode.dojoClick=!0;this._listConnect("click","_onClick");this._listConnect("mousedown","_onMouseDown");this._listConnect("mouseup","_onMouseUp");this._listConnect("mouseover",
"_onMouseOver");this._listConnect("mouseout","_onMouseOut")},_onClick:function(e,c){this._setSelectedAttr(c,!1);this._deferredClick&&this._deferredClick.remove();this._deferredClick=this.defer(function(){this._deferredClick=null;this.onClick(c)})},_onMouseDown:function(e,c){this._hoveredNode&&(this.onUnhover(this._hoveredNode),this._hoveredNode=null);this._isDragging=!0;this._setSelectedAttr(c,!1)},_onMouseUp:function(e,c){this._isDragging=!1;var g=this.selected,d=this._hoveredNode;g&&c==g?this.defer(function(){this._onClick(e,
g)}):d&&this.defer(function(){this._onClick(e,d)})},_onMouseOut:function(e,c){this._hoveredNode&&(this.onUnhover(this._hoveredNode),this._hoveredNode=null);this._isDragging&&(this._cancelDrag=(new Date).getTime()+1E3)},_onMouseOver:function(e,c){this._cancelDrag&&((new Date).getTime()>this._cancelDrag&&(this._isDragging=!1),this._cancelDrag=null);this._hoveredNode=c;this.onHover(c);this._isDragging&&this._setSelectedAttr(c,!1)}})})},"dijit/form/_ListBase":function(){define(["dojo/_base/declare","dojo/on",
"dojo/window"],function(f,m,l){return f("dijit.form._ListBase",null,{selected:null,_listConnect:function(f,e){var c=this;return c.own(m(c.containerNode,m.selector(function(c,d,b){return c.parentNode==b},f),function(g){c[e](g,this)}))},selectFirstNode:function(){for(var f=this.containerNode.firstChild;f&&"none"==f.style.display;)f=f.nextSibling;this._setSelectedAttr(f,!0)},selectLastNode:function(){for(var f=this.containerNode.lastChild;f&&"none"==f.style.display;)f=f.previousSibling;this._setSelectedAttr(f,
!0)},selectNextNode:function(){var f=this.selected;if(f){for(f=f.nextSibling;f&&"none"==f.style.display;)f=f.nextSibling;f?this._setSelectedAttr(f,!0):this.selectFirstNode()}else this.selectFirstNode()},selectPreviousNode:function(){var f=this.selected;if(f){for(f=f.previousSibling;f&&"none"==f.style.display;)f=f.previousSibling;f?this._setSelectedAttr(f,!0):this.selectLastNode()}else this.selectLastNode()},_setSelectedAttr:function(f,e){if(this.selected!=f){var c=this.selected;if(c)this.onDeselect(c);
f&&(e&&l.scrollIntoView(f),this.onSelect(f));this._set("selected",f)}else if(f)this.onSelect(f)}})})},"dijit/form/CheckBox":function(){define("require dojo/_base/declare dojo/dom-attr dojo/has dojo/query dojo/ready ./ToggleButton ./_CheckBoxMixin dojo/text!./templates/CheckBox.html dojo/NodeList-dom ../a11yclick".split(" "),function(f,m,l,k,e,c,g,d,b){k("dijit-legacy-requires")&&c(0,function(){f(["dijit/form/RadioButton"])});return m("dijit.form.CheckBox",[g,d],{templateString:b,baseClass:"dijitCheckBox",
_setValueAttr:function(a,b){"string"==typeof a&&(this.inherited(arguments),a=!0);this._created&&this.set("checked",a,b)},_getValueAttr:function(){return this.checked&&this._get("value")},_setIconClassAttr:null,_setNameAttr:"focusNode",postMixInProperties:function(){this.inherited(arguments);this.checkedAttrSetting=""},_fillContent:function(){},_onFocus:function(){this.id&&e("label[for\x3d'"+this.id+"']").addClass("dijitFocusedLabel");this.inherited(arguments)},_onBlur:function(){this.id&&e("label[for\x3d'"+
this.id+"']").removeClass("dijitFocusedLabel");this.inherited(arguments)}})})},"dijit/form/ToggleButton":function(){define(["dojo/_base/declare","dojo/_base/kernel","./Button","./_ToggleButtonMixin"],function(f,m,l,k){return f("dijit.form.ToggleButton",[l,k],{baseClass:"dijitToggleButton",setChecked:function(e){m.deprecated("setChecked("+e+") is deprecated. Use set('checked',"+e+") instead.","","2.0");this.set("checked",e)}})})},"dijit/form/_ToggleButtonMixin":function(){define(["dojo/_base/declare",
"dojo/dom-attr"],function(f,m){return f("dijit.form._ToggleButtonMixin",null,{checked:!1,_aria_attr:"aria-pressed",_onClick:function(f){var k=this.checked;this._set("checked",!k);var e=this.inherited(arguments);this.set("checked",e?this.checked:k);return e},_setCheckedAttr:function(f,k){this._set("checked",f);var e=this.focusNode||this.domNode;this._created&&m.get(e,"checked")!=!!f&&m.set(e,"checked",!!f);e.setAttribute(this._aria_attr,String(f));this._handleOnChange(f,k)},postCreate:function(){this.inherited(arguments);
var f=this.focusNode||this.domNode;this.checked&&f.setAttribute("checked","checked");void 0===this._resetValue&&(this._lastValueReported=this._resetValue=this.checked)},reset:function(){this._hasBeenBlurred=!1;this.set("checked",this.params.checked||!1)}})})},"dijit/form/_CheckBoxMixin":function(){define(["dojo/_base/declare","dojo/dom-attr"],function(f,m){return f("dijit.form._CheckBoxMixin",null,{type:"checkbox",value:"on",readOnly:!1,_aria_attr:"aria-checked",_setReadOnlyAttr:function(f){this._set("readOnly",
f);m.set(this.focusNode,"readOnly",f)},_setLabelAttr:void 0,_getSubmitValue:function(f){return null==f||""===f?"on":f},_setValueAttr:function(f){f=this._getSubmitValue(f);this._set("value",f);m.set(this.focusNode,"value",f)},reset:function(){this.inherited(arguments);this._set("value",this._getSubmitValue(this.params.value));m.set(this.focusNode,"value",this.value)},_onClick:function(f){return this.readOnly?(f.stopPropagation(),f.preventDefault(),!1):this.inherited(arguments)}})})},"dojo/NodeList-dom":function(){define("./_base/kernel ./query ./_base/array ./_base/lang ./dom-class ./dom-construct ./dom-geometry ./dom-attr ./dom-style".split(" "),
function(f,m,l,k,e,c,g,d,b){function a(a){return function(b,c,d){return 2==arguments.length?a["string"==typeof c?"get":"set"](b,c):a.set(b,c,d)}}var h=function(a){return 1==a.length&&"string"==typeof a[0]},p=function(a){var b=a.parentNode;b&&b.removeChild(a)},n=m.NodeList,t=n._adaptWithCondition,q=n._adaptAsForEach,s=n._adaptAsMap;k.extend(n,{_normalize:function(a,b){var d=!0===a.parse;if("string"==typeof a.template){var h=a.templateFunc||f.string&&f.string.substitute;a=h?h(a.template,a):a}h=typeof a;
"string"==h||"number"==h?(a=c.toDom(a,b&&b.ownerDocument),a=11==a.nodeType?k._toArray(a.childNodes):[a]):k.isArrayLike(a)?k.isArray(a)||(a=k._toArray(a)):a=[a];d&&(a._runParse=!0);return a},_cloneNode:function(a){return a.cloneNode(!0)},_place:function(a,b,d,h){if(!(1!=b.nodeType&&"only"==d))for(var g,e=a.length,n=e-1;0<=n;n--){var p=h?this._cloneNode(a[n]):a[n];if(a._runParse&&f.parser&&f.parser.parse){g||(g=b.ownerDocument.createElement("div"));g.appendChild(p);f.parser.parse(g);for(p=g.firstChild;g.firstChild;)g.removeChild(g.firstChild)}n==
e-1?c.place(p,b,d):b.parentNode.insertBefore(p,b);b=p}},position:s(g.position),attr:t(a(d),h),style:t(a(b),h),addClass:q(e.add),removeClass:q(e.remove),toggleClass:q(e.toggle),replaceClass:q(e.replace),empty:q(c.empty),removeAttr:q(d.remove),marginBox:s(g.getMarginBox),place:function(a,b){var d=m(a)[0];return this.forEach(function(a){c.place(a,d,b)})},orphan:function(a){return(a?m._filterResult(this,a):this).forEach(p)},adopt:function(a,b){return m(a).place(this[0],b)._stash(this)},query:function(a){if(!a)return this;
var b=new n;this.map(function(c){m(a,c).forEach(function(a){void 0!==a&&b.push(a)})});return b._stash(this)},filter:function(a){var b=arguments,c=this,d=0;if("string"==typeof a){c=m._filterResult(this,b[0]);if(1==b.length)return c._stash(this);d=1}return this._wrap(l.filter(c,b[d],b[d+1]),this)},addContent:function(a,b){a=this._normalize(a,this[0]);for(var d=0,h;h=this[d];d++)a.length?this._place(a,h,b,0<d):c.empty(h);return this}});return n})},"dijit/form/Form":function(){define("dojo/_base/declare dojo/dom-attr dojo/_base/kernel dojo/sniff ../_Widget ../_TemplatedMixin ./_FormMixin ../layout/_ContentPaneResizeMixin".split(" "),
function(f,m,l,k,e,c,g,d){return f("dijit.form.Form",[e,c,g,d],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"\x3cform data-dojo-attach-point\x3d'containerNode' data-dojo-attach-event\x3d'onreset:_onReset,onsubmit:_onSubmit' ${!nameAttrSetting}\x3e\x3c/form\x3e",postMixInProperties:function(){this.nameAttrSetting=this.name?"name\x3d'"+this.name+"'":"";this.inherited(arguments)},execute:function(){},onExecute:function(){},_setEncTypeAttr:function(b){m.set(this.domNode,
"encType",b);k("ie")&&(this.domNode.encoding=b);this._set("encType",b)},reset:function(b){var a={returnValue:!0,preventDefault:function(){this.returnValue=!1},stopPropagation:function(){},currentTarget:b?b.target:this.domNode,target:b?b.target:this.domNode};!1!==this.onReset(a)&&a.returnValue&&this.inherited(arguments,[])},onReset:function(){return!0},_onReset:function(b){this.reset(b);b.stopPropagation();b.preventDefault();return!1},_onSubmit:function(b){var a=this.constructor.prototype;if(this.execute!=
a.execute||this.onExecute!=a.onExecute)l.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0"),this.onExecute(),this.execute(this.getValues());!1===this.onSubmit(b)&&(b.stopPropagation(),b.preventDefault())},onSubmit:function(){return this.isValid()},submit:function(){!1!==this.onSubmit()&&this.containerNode.submit()}})})},"dijit/form/_FormMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/on dojo/window".split(" "),
function(f,m,l,k,e,c){return m("dijit.form._FormMixin",null,{state:"",_getDescendantFormWidgets:function(c){var d=[];f.forEach(c||this.getChildren(),function(b){"value"in b?d.push(b):d=d.concat(this._getDescendantFormWidgets(b.getChildren()))},this);return d},reset:function(){f.forEach(this._getDescendantFormWidgets(),function(c){c.reset&&c.reset()})},validate:function(){var g=!1;return f.every(f.map(this._getDescendantFormWidgets(),function(d){d._hasBeenBlurred=!0;var b=d.disabled||!d.validate||
d.validate();!b&&!g&&(c.scrollIntoView(d.containerNode||d.domNode),d.focus(),g=!0);return b}),function(c){return c})},setValues:function(c){l.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",c)},_setValueAttr:function(c){var d={};f.forEach(this._getDescendantFormWidgets(),function(a){a.name&&(d[a.name]||(d[a.name]=[])).push(a)});for(var b in d)if(d.hasOwnProperty(b)){var a=d[b],h=k.getObject(b,!1,c);void 0!==h&&(h=[].concat(h),
"boolean"==typeof a[0].checked?f.forEach(a,function(a){a.set("value",-1!=f.indexOf(h,a._get("value")))}):a[0].multiple?a[0].set("value",h):f.forEach(a,function(a,b){a.set("value",h[b])}))}},getValues:function(){l.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var c={};f.forEach(this._getDescendantFormWidgets(),function(d){var b=d.name;if(b&&!d.disabled){var a=d.get("value");"boolean"==typeof d.checked?
/Radio/.test(d.declaredClass)?!1!==a?k.setObject(b,a,c):(a=k.getObject(b,!1,c),void 0===a&&k.setObject(b,null,c)):(d=k.getObject(b,!1,c),d||(d=[],k.setObject(b,d,c)),!1!==a&&d.push(a)):(d=k.getObject(b,!1,c),"undefined"!=typeof d?k.isArray(d)?d.push(a):k.setObject(b,[d,a],c):k.setObject(b,a,c))}});return c},isValid:function(){return""==this.state},onValidStateChange:function(){},_getState:function(){var c=f.map(this._descendants,function(c){return c.get("state")||""});return 0<=f.indexOf(c,"Error")?
"Error":0<=f.indexOf(c,"Incomplete")?"Incomplete":""},disconnectChildren:function(){},connectChildren:function(c){this._descendants=this._getDescendantFormWidgets();f.forEach(this._descendants,function(c){c._started||c.startup()});c||this._onChildChange()},_onChildChange:function(c){(!c||"state"==c||"disabled"==c)&&this._set("state",this._getState());if(!c||"value"==c||"disabled"==c||"checked"==c)this._onChangeDelayTimer&&this._onChangeDelayTimer.remove(),this._onChangeDelayTimer=this.defer(function(){delete this._onChangeDelayTimer;
this._set("value",this.get("value"))},10)},startup:function(){this.inherited(arguments);this._descendants=this._getDescendantFormWidgets();this.value=this.get("value");this.state=this._getState();var c=this;this.own(e(this.containerNode,"attrmodified-state, attrmodified-disabled, attrmodified-value, attrmodified-checked",function(d){d.target!=c.domNode&&c._onChildChange(d.type.replace("attrmodified-",""))}));this.watch("state",function(c,b,a){this.onValidStateChange(""==a)})},destroy:function(){this.inherited(arguments)}})})},
"dijit/layout/_ContentPaneResizeMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/lang dojo/query ../registry ../Viewport ./utils".split(" "),function(f,m,l,k,e,c,g,d,b,a){return m("dijit.layout._ContentPaneResizeMixin",null,{doLayout:!0,isLayoutContainer:!0,startup:function(){if(!this._started){var a=this.getParent();this._childOfLayoutWidget=a&&a.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);
this._isShown()&&this._onShow();this._childOfLayoutWidget||this.own(b.on("resize",c.hitch(this,"resize")))}},_checkIfSingleChild:function(){if(this.doLayout){var a=[],b=!1;g("\x3e *",this.containerNode).some(function(c){var g=d.byNode(c);g&&g.resize?a.push(g):!/script|link|style/i.test(c.nodeName)&&c.offsetHeight&&(b=!0)});this._singleChild=1==a.length&&!b?a[0]:null;l.toggle(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)}},resize:function(a,b){this._resizeCalled=!0;this._scheduleLayout(a,
b)},_scheduleLayout:function(a,b){this._isShown()?this._layout(a,b):(this._needLayout=!0,this._changeSize=a,this._resultSize=b)},_layout:function(b,d){delete this._needLayout;!this._wasShown&&!1!==this.open&&this._onShow();b&&k.setMarginBox(this.domNode,b);var g=this.containerNode;if(g===this.domNode){var e=d||{};c.mixin(e,b||{});if(!("h"in e)||!("w"in e))e=c.mixin(k.getMarginBox(g),e);this._contentBox=a.marginBox2contentBox(g,e)}else this._contentBox=k.getContentBox(g);this._layoutChildren()},_layoutChildren:function(){this._checkIfSingleChild();
if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||k.getContentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else for(var a=this.getChildren(),b,c=0;b=a[c++];)b.resize&&b.resize()},_isShown:function(){if(this._childOfLayoutWidget)return this._resizeCalled&&"open"in this?this.open:this._resizeCalled;if("open"in this)return this.open;var a=this.domNode,b=this.domNode.parentNode;return"none"!=a.style.display&&"hidden"!=a.style.visibility&&!l.contains(a,"dijitHidden")&&
b&&b.style&&"none"!=b.style.display},_onShow:function(){this._wasShown=!0;this._needLayout&&this._layout(this._changeSize,this._resultSize);this.inherited(arguments)}})})},"dijit/layout/utils":function(){define(["dojo/_base/array","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/lang"],function(f,m,l,k,e){function c(c,b){var a=c.resize?c.resize(b):l.setMarginBox(c.domNode,b);a?e.mixin(c,a):(e.mixin(c,l.getMarginBox(c.domNode)),e.mixin(c,b))}var g={marginBox2contentBox:function(c,
b){var a=k.getComputedStyle(c),h=l.getMarginExtents(c,a),g=l.getPadBorderExtents(c,a);return{l:k.toPixelValue(c,a.paddingLeft),t:k.toPixelValue(c,a.paddingTop),w:b.w-(h.w+g.w),h:b.h-(h.h+g.h)}},layoutChildren:function(d,b,a,h,g){b=e.mixin({},b);m.add(d,"dijitLayoutContainer");a=f.filter(a,function(a){return"center"!=a.region&&"client"!=a.layoutAlign}).concat(f.filter(a,function(a){return"center"==a.region||"client"==a.layoutAlign}));f.forEach(a,function(a){var d=a.domNode,e=a.region||a.layoutAlign;
if(!e)throw Error("No region setting for "+a.id);var f=d.style;f.left=b.l+"px";f.top=b.t+"px";f.position="absolute";m.add(d,"dijitAlign"+(e.substring(0,1).toUpperCase()+e.substring(1)));d={};h&&h==a.id&&(d["top"==a.region||"bottom"==a.region?"h":"w"]=g);"leading"==e&&(e=a.isLeftToRight()?"left":"right");"trailing"==e&&(e=a.isLeftToRight()?"right":"left");"top"==e||"bottom"==e?(d.w=b.w,c(a,d),b.h-=a.h,"top"==e?b.t+=a.h:f.top=b.t+b.h+"px"):"left"==e||"right"==e?(d.h=b.h,c(a,d),b.w-=a.w,"left"==e?b.l+=
a.w:f.left=b.l+b.w+"px"):("client"==e||"center"==e)&&c(a,b)})}};e.setObject("dijit.layout.utils",g);return g})},"dijit/form/RadioButton":function(){define(["dojo/_base/declare","./CheckBox","./_RadioButtonMixin"],function(f,m,l){return f("dijit.form.RadioButton",[m,l],{baseClass:"dijitRadio"})})},"dijit/form/_RadioButtonMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/_base/lang dojo/query!css2 ../registry".split(" "),function(f,m,l,k,e,c){return m("dijit.form._RadioButtonMixin",
null,{type:"radio",_getRelatedWidgets:function(){var g=[];e("input[type\x3dradio]",this.focusNode.form||this.ownerDocument).forEach(k.hitch(this,function(d){d.name==this.name&&d.form==this.focusNode.form&&(d=c.getEnclosingWidget(d))&&g.push(d)}));return g},_setCheckedAttr:function(c){this.inherited(arguments);this._created&&c&&f.forEach(this._getRelatedWidgets(),k.hitch(this,function(c){c!=this&&c.checked&&c.set("checked",!1)}))},_getSubmitValue:function(c){return null==c?"on":c},_onClick:function(c){if(this.checked||
this.disabled)return c.stopPropagation(),c.preventDefault(),!1;if(this.readOnly)return c.stopPropagation(),c.preventDefault(),f.forEach(this._getRelatedWidgets(),k.hitch(this,function(a){l.set(this.focusNode||this.domNode,"checked",a.checked)})),!1;var d=!1,b;f.some(this._getRelatedWidgets(),function(a){return a.checked?(b=a,!0):!1});this.checked=!0;b&&(b.checked=!1);if(!1===this.onClick(c)||c.defaultPrevented)d=!0;this.checked=!1;b&&(b.checked=!0);d?c.preventDefault():this.set("checked",!0);return!d}})})},
"dijit/form/Textarea":function(){define(["dojo/_base/declare","dojo/dom-style","./_ExpandingTextAreaMixin","./SimpleTextarea"],function(f,m,l,k){return f("dijit.form.Textarea",[k,l],{baseClass:"dijitTextBox dijitTextArea dijitExpandingTextArea",cols:"",buildRendering:function(){this.inherited(arguments);m.set(this.textbox,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"})}})})},"dijit/form/_ExpandingTextAreaMixin":function(){define("dojo/_base/declare dojo/dom-construct dojo/has dojo/_base/lang dojo/on dojo/_base/window ../Viewport".split(" "),
function(f,m,l,k,e,c,g){l.add("textarea-needs-help-shrinking",function(){var d=c.body(),b=m.create("textarea",{rows:"5",cols:"20",value:" ",style:{zoom:1,fontSize:"12px",height:"96px",overflow:"hidden",visibility:"hidden",position:"absolute",border:"5px solid white",margin:"0",padding:"0",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"}},d,"last"),a=b.scrollHeight>=b.clientHeight;d.removeChild(b);return a});return f("dijit.form._ExpandingTextAreaMixin",
null,{_setValueAttr:function(){this.inherited(arguments);this.resize()},postCreate:function(){this.inherited(arguments);var c=this.textbox;c.style.overflowY="hidden";this.own(e(c,"focus, resize",k.hitch(this,"_resizeLater")))},startup:function(){this.inherited(arguments);this.own(g.on("resize",k.hitch(this,"_resizeLater")));this._resizeLater()},_onInput:function(c){this.inherited(arguments);this.resize()},_estimateHeight:function(){var c=this.textbox;c.rows=(c.value.match(/\n/g)||[]).length+1},_resizeLater:function(){this.defer("resize")},
resize:function(){function c(){var a=!1;""===b.value&&(b.value=" ",a=!0);var d=b.scrollHeight;a&&(b.value="");return d}var b=this.textbox;"hidden"==b.style.overflowY&&(b.scrollTop=0);if(!this.busyResizing){this.busyResizing=!0;if(c()||b.offsetHeight){var a=c()+Math.max(b.offsetHeight-b.clientHeight,0),h=a+"px";h!=b.style.height&&(b.style.height=h,b.rows=1);if(l("textarea-needs-help-shrinking")){var g=c(),e=b.style.minHeight,f=4,q=b.scrollTop;b.style.minHeight=h;for(b.style.height="auto";0<a;){b.style.minHeight=
Math.max(a-f,4)+"px";h=c();g-=h;a-=g;if(g<f)break;g=h;f<<=1}b.style.height=a+"px";b.style.minHeight=e;b.scrollTop=q}b.style.overflowY=c()>b.clientHeight?"auto":"hidden";"hidden"==b.style.overflowY&&(b.scrollTop=0)}else this._estimateHeight();this.busyResizing=!1}}})})},"dijit/form/SimpleTextarea":function(){define(["dojo/_base/declare","dojo/dom-class","dojo/sniff","./TextBox"],function(f,m,l,k){return f("dijit.form.SimpleTextarea",k,{baseClass:"dijitTextBox dijitTextArea",rows:"3",cols:"20",templateString:"\x3ctextarea ${!nameAttrSetting} data-dojo-attach-point\x3d'focusNode,containerNode,textbox' autocomplete\x3d'off'\x3e\x3c/textarea\x3e",
postMixInProperties:function(){!this.value&&this.srcNodeRef&&(this.value=this.srcNodeRef.value);this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);l("ie")&&this.cols&&m.add(this.textbox,"dijitTextAreaCols")},filter:function(e){e&&(e=e.replace(/\r/g,""));return this.inherited(arguments)},_onInput:function(e){if(this.maxLength){var c=parseInt(this.maxLength),g=this.textbox.value.replace(/\r/g,""),c=g.length-c;if(0<c){var d=this.textbox;if(d.selectionStart){var b=d.selectionStart,
a=0;l("opera")&&(a=(this.textbox.value.substring(0,b).match(/\r/g)||[]).length);this.textbox.value=g.substring(0,b-c-a)+g.substring(b-a);d.setSelectionRange(b-c,b-c)}else this.ownerDocument.selection&&(d.focus(),g=this.ownerDocument.selection.createRange(),g.moveStart("character",-c),g.text="",g.select())}}this.inherited(arguments)}})})},"dijit/form/DateTextBox":function(){define(["dojo/_base/declare","../Calendar","./_DateTimeTextBox"],function(f,m,l){return f("dijit.form.DateTextBox",l,{baseClass:"dijitTextBox dijitComboBox dijitDateTextBox",
popupClass:m,_selector:"date",maxHeight:Infinity,value:new Date("")})})},"dijit/Calendar":function(){define("dojo/_base/array dojo/date dojo/date/locale dojo/_base/declare dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/sniff ./CalendarLite ./_Widget ./_CssStateMixin ./_TemplatedMixin ./form/DropDownButton".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r){var w=k("dijit.Calendar",[n,t,q],{baseClass:"dijitCalendar",cssStateNodes:{decrementMonth:"dijitCalendarArrow",
incrementMonth:"dijitCalendarArrow",previousYearLabelNode:"dijitCalendarPreviousYear",nextYearLabelNode:"dijitCalendarNextYear"},setValue:function(a){d.deprecated("dijit.Calendar:setValue() is deprecated.  Use set('value', ...) instead.","","2.0");this.set("value",a)},_createMonthWidget:function(){return new w._MonthDropDownButton({id:this.id+"_mddb",tabIndex:-1,onMonthSelect:a.hitch(this,"_onMonthSelect"),lang:this.lang,dateLocaleModule:this.dateLocaleModule},this.monthNode)},postCreate:function(){this.inherited(arguments);
this.own(h(this.domNode,"keydown",a.hitch(this,"_onKeyDown")),h(this.dateRowsNode,"mouseover",a.hitch(this,"_onDayMouseOver")),h(this.dateRowsNode,"mouseout",a.hitch(this,"_onDayMouseOut")),h(this.dateRowsNode,"mousedown",a.hitch(this,"_onDayMouseDown")),h(this.dateRowsNode,"mouseup",a.hitch(this,"_onDayMouseUp")))},_onMonthSelect:function(a){var b=new this.dateClassObj(this.currentFocus);b.setDate(1);b.setMonth(a);a=this.dateModule.getDaysInMonth(b);var c=this.currentFocus.getDate();b.setDate(Math.min(c,
a));this._setCurrentFocusAttr(b)},_onDayMouseOver:function(a){if((a=c.contains(a.target,"dijitCalendarDateLabel")?a.target.parentNode:a.target)&&(a.dijitDateValue&&!c.contains(a,"dijitCalendarDisabledDate")||a==this.previousYearLabelNode||a==this.nextYearLabelNode))c.add(a,"dijitCalendarHoveredDate"),this._currentNode=a},_onDayMouseOut:function(a){this._currentNode&&!(a.relatedTarget&&a.relatedTarget.parentNode==this._currentNode)&&(a="dijitCalendarHoveredDate",c.contains(this._currentNode,"dijitCalendarActiveDate")&&
(a+=" dijitCalendarActiveDate"),c.remove(this._currentNode,a),this._currentNode=null)},_onDayMouseDown:function(a){if((a=a.target.parentNode)&&a.dijitDateValue&&!c.contains(a,"dijitCalendarDisabledDate"))c.add(a,"dijitCalendarActiveDate"),this._currentNode=a},_onDayMouseUp:function(a){(a=a.target.parentNode)&&a.dijitDateValue&&c.remove(a,"dijitCalendarActiveDate")},handleKey:function(a){var c=-1,d,h=this.currentFocus;switch(a.keyCode){case b.RIGHT_ARROW:c=1;case b.LEFT_ARROW:d="day";this.isLeftToRight()||
(c*=-1);break;case b.DOWN_ARROW:c=1;case b.UP_ARROW:d="week";break;case b.PAGE_DOWN:c=1;case b.PAGE_UP:d=a.ctrlKey||a.altKey?"year":"month";break;case b.END:h=this.dateModule.add(h,"month",1),d="day";case b.HOME:h=new this.dateClassObj(h);h.setDate(1);break;default:return!0}d&&(h=this.dateModule.add(h,d,c));this._setCurrentFocusAttr(h);return!1},_onKeyDown:function(a){this.handleKey(a)||(a.stopPropagation(),a.preventDefault())},onValueSelected:function(){},onChange:function(a){this.onValueSelected(a)},
getClassForDate:function(){}});w._MonthDropDownButton=k("dijit.Calendar._MonthDropDownButton",r,{onMonthSelect:function(){},postCreate:function(){this.inherited(arguments);this.dropDown=new w._MonthDropDown({id:this.id+"_mdd",onChange:this.onMonthSelect})},_setMonthAttr:function(a){var b=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,a);this.dropDown.set("months",b);this.containerNode.innerHTML=(6==p("ie")?"":"\x3cdiv class\x3d'dijitSpacer'\x3e"+this.dropDown.domNode.innerHTML+
"\x3c/div\x3e")+"\x3cdiv class\x3d'dijitCalendarMonthLabel dijitCalendarCurrentMonthLabel'\x3e"+b[a.getMonth()]+"\x3c/div\x3e"}});w._MonthDropDown=k("dijit.Calendar._MonthDropDown",[t,s,q],{months:[],baseClass:"dijitCalendarMonthMenu dijitMenu",templateString:"\x3cdiv data-dojo-attach-event\x3d'ondijitclick:_onClick'\x3e\x3c/div\x3e",_setMonthsAttr:function(a){this.domNode.innerHTML="";f.forEach(a,function(a,b){g.create("div",{className:"dijitCalendarMonthLabel",month:b,innerHTML:a},this.domNode)._cssState=
"dijitCalendarMonthLabel"},this)},_onClick:function(a){this.onChange(e.get(a.target,"month"))},onChange:function(){}});return w})},"dojo/date":function(){define(["./has","./_base/lang"],function(f,m){var l={getDaysInMonth:function(f){var e=f.getMonth();return 1==e&&l.isLeapYear(f)?29:[31,28,31,30,31,30,31,31,30,31,30,31][e]},isLeapYear:function(f){f=f.getFullYear();return!(f%400)||!(f%4)&&!!(f%100)},getTimezoneName:function(f){var e=f.toString(),c="",g=e.indexOf("(");if(-1<g)c=e.substring(++g,e.indexOf(")"));
else if(g=/([A-Z\/]+) \d{4}$/,e=e.match(g))c=e[1];else if(e=f.toLocaleString(),g=/ ([A-Z\/]+)$/,e=e.match(g))c=e[1];return"AM"==c||"PM"==c?"":c},compare:function(f,e,c){f=new Date(+f);e=new Date(+(e||new Date));"date"==c?(f.setHours(0,0,0,0),e.setHours(0,0,0,0)):"time"==c&&(f.setFullYear(0,0,0),e.setFullYear(0,0,0));return f>e?1:f<e?-1:0},add:function(f,e,c){var g=new Date(+f),d=!1,b="Date";switch(e){case "day":break;case "weekday":var a;(e=c%5)?a=parseInt(c/5):(e=0<c?5:-5,a=0<c?(c-5)/5:(c+5)/5);
var h=f.getDay(),p=0;6==h&&0<c?p=1:0==h&&0>c&&(p=-1);h+=e;if(0==h||6==h)p=0<c?2:-2;c=7*a+e+p;break;case "year":b="FullYear";d=!0;break;case "week":c*=7;break;case "quarter":c*=3;case "month":d=!0;b="Month";break;default:b="UTC"+e.charAt(0).toUpperCase()+e.substring(1)+"s"}if(b)g["set"+b](g["get"+b]()+c);d&&g.getDate()<f.getDate()&&g.setDate(0);return g},difference:function(f,e,c){e=e||new Date;c=c||"day";var g=e.getFullYear()-f.getFullYear(),d=1;switch(c){case "quarter":f=f.getMonth();e=e.getMonth();
f=Math.floor(f/3)+1;e=Math.floor(e/3)+1;d=e+4*g-f;break;case "weekday":g=Math.round(l.difference(f,e,"day"));c=parseInt(l.difference(f,e,"week"));d=g%7;if(0==d)g=5*c;else{var b=0,a=f.getDay();e=e.getDay();c=parseInt(g/7);d=g%7;f=new Date(f);f.setDate(f.getDate()+7*c);f=f.getDay();if(0<g)switch(!0){case 6==a:b=-1;break;case 0==a:b=0;break;case 6==e:b=-1;break;case 0==e:b=-2;break;case 5<f+d:b=-2}else if(0>g)switch(!0){case 6==a:b=0;break;case 0==a:b=1;break;case 6==e:b=2;break;case 0==e:b=1;break;
case 0>f+d:b=2}g=g+b-2*c}d=g;break;case "year":d=g;break;case "month":d=e.getMonth()-f.getMonth()+12*g;break;case "week":d=parseInt(l.difference(f,e,"day")/7);break;case "day":d/=24;case "hour":d/=60;case "minute":d/=60;case "second":d/=1E3;case "millisecond":d*=e.getTime()-f.getTime()}return Math.round(d)}};m.mixin(m.getObject("dojo.date",!0),l);return l})},"dojo/date/locale":function(){define("../_base/lang ../_base/array ../date ../cldr/supplemental ../i18n ../regexp ../string ../i18n!../cldr/nls/gregorian module".split(" "),
function(f,m,l,k,e,c,g,d,b){function a(a,b,c,d){return d.replace(/([a-z])\1*/ig,function(h){var e,f,p=h.charAt(0);h=h.length;var q=["abbr","wide","narrow"];switch(p){case "G":e=b[4>h?"eraAbbr":"eraNames"][0>a.getFullYear()?0:1];break;case "y":e=a.getFullYear();switch(h){case 1:break;case 2:if(!c.fullYear){e=String(e);e=e.substr(e.length-2);break}default:f=!0}break;case "Q":case "q":e=Math.ceil((a.getMonth()+1)/3);f=!0;break;case "M":case "L":e=a.getMonth();3>h?(e+=1,f=!0):(p=["months","L"==p?"standAlone":
"format",q[h-3]].join("-"),e=b[p][e]);break;case "w":e=n._getWeekOfYear(a,0);f=!0;break;case "d":e=a.getDate();f=!0;break;case "D":e=n._getDayOfYear(a);f=!0;break;case "e":case "c":if(e=a.getDay(),2>h){e=(e-k.getFirstDayOfWeek(c.locale)+8)%7;break}case "E":e=a.getDay();3>h?(e+=1,f=!0):(p=["days","c"==p?"standAlone":"format",q[h-3]].join("-"),e=b[p][e]);break;case "a":p=12>a.getHours()?"am":"pm";e=c[p]||b["dayPeriods-format-wide-"+p];break;case "h":case "H":case "K":case "k":f=a.getHours();switch(p){case "h":e=
f%12||12;break;case "H":e=f;break;case "K":e=f%12;break;case "k":e=f||24}f=!0;break;case "m":e=a.getMinutes();f=!0;break;case "s":e=a.getSeconds();f=!0;break;case "S":e=Math.round(a.getMilliseconds()*Math.pow(10,h-3));f=!0;break;case "v":case "z":if(e=n._getZone(a,!0,c))break;h=4;case "Z":p=n._getZone(a,!1,c);p=[0>=p?"+":"-",g.pad(Math.floor(Math.abs(p)/60),2),g.pad(Math.abs(p)%60,2)];4==h&&(p.splice(0,0,"GMT"),p.splice(3,0,":"));e=p.join("");break;default:throw Error("dojo.date.locale.format: invalid pattern char: "+
d);}f&&(e=g.pad(e,h));return e})}function h(a,b,c,d){var h=function(a){return a};b=b||h;c=c||h;d=d||h;var e=a.match(/(''|[^'])+/g),g="'"==a.charAt(0);m.forEach(e,function(a,d){a?(e[d]=(g?c:b)(a.replace(/''/g,"'")),g=!g):e[d]=""});return d(e.join(""))}function p(a,b,d,h){h=c.escapeString(h);d.strict||(h=h.replace(" a"," ?a"));return h.replace(/([a-z])\1*/ig,function(c){var h;h=c.charAt(0);var e=c.length,g="",f="";d.strict?(1<e&&(g="0{"+(e-1)+"}"),2<e&&(f="0{"+(e-2)+"}")):(g="0?",f="0{0,2}");switch(h){case "y":h=
"\\d{2,4}";break;case "M":case "L":h=2<e?"\\S+?":"1[0-2]|"+g+"[1-9]";break;case "D":h="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+g+"[1-9][0-9]|"+f+"[1-9]";break;case "d":h="3[01]|[12]\\d|"+g+"[1-9]";break;case "w":h="[1-4][0-9]|5[0-3]|"+g+"[1-9]";break;case "E":case "e":case "c":h=".+?";break;case "h":h="1[0-2]|"+g+"[1-9]";break;case "k":h="1[01]|"+g+"\\d";break;case "H":h="1\\d|2[0-3]|"+g+"\\d";break;case "K":h="1\\d|2[0-4]|"+g+"[1-9]";break;case "m":case "s":h="[0-5]\\d";break;case "S":h="\\d{"+e+"}";
break;case "a":e=d.am||b["dayPeriods-format-wide-am"];g=d.pm||b["dayPeriods-format-wide-pm"];h=e+"|"+g;d.strict||(e!=e.toLowerCase()&&(h+="|"+e.toLowerCase()),g!=g.toLowerCase()&&(h+="|"+g.toLowerCase()),-1!=h.indexOf(".")&&(h+="|"+h.replace(/\./g,"")));h=h.replace(/\./g,"\\.");break;default:h=".*"}a&&a.push(c);return"("+h+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}var n={};f.setObject(b.id.replace(/\//g,"."),n);n._getZone=function(a,b,c){return b?l.getTimezoneName(a):a.getTimezoneOffset()};n.format=
function(b,c){c=c||{};var d=e.normalizeLocale(c.locale),g=c.formatLength||"short",d=n._getGregorianBundle(d),p=[],q=f.hitch(this,a,b,d,c);if("year"==c.selector)return h(d["dateFormatItem-yyyy"]||"yyyy",q);var k;"date"!=c.selector&&(k=c.timePattern||d["timeFormat-"+g])&&p.push(h(k,q));"time"!=c.selector&&(k=c.datePattern||d["dateFormat-"+g])&&p.push(h(k,q));return 1==p.length?p[0]:d["dateTimeFormat-"+g].replace(/\'/g,"").replace(/\{(\d+)\}/g,function(a,b){return p[b]})};n.regexp=function(a){return n._parseInfo(a).regexp};
n._parseInfo=function(a){a=a||{};var b=e.normalizeLocale(a.locale),b=n._getGregorianBundle(b),c=a.formatLength||"short",d=a.datePattern||b["dateFormat-"+c],g=a.timePattern||b["timeFormat-"+c],c="date"==a.selector?d:"time"==a.selector?g:b["dateTimeFormat-"+c].replace(/\{(\d+)\}/g,function(a,b){return[g,d][b]}),q=[];return{regexp:h(c,f.hitch(this,p,q,b,a)),tokens:q,bundle:b}};n.parse=function(a,b){var c=/[\u200E\u200F\u202A\u202E]/g,d=n._parseInfo(b),h=d.tokens,e=d.bundle,c=RegExp("^"+d.regexp.replace(c,
"")+"$",d.strict?"":"i").exec(a&&a.replace(c,""));if(!c)return null;var g=["abbr","wide","narrow"],f=[1970,0,1,0,0,0,0],p="",c=m.every(c,function(a,c){if(!c)return!0;var d=h[c-1],n=d.length,d=d.charAt(0);switch(d){case "y":if(2!=n&&b.strict)f[0]=a;else if(100>a)a=Number(a),d=""+(new Date).getFullYear(),n=100*d.substring(0,2),d=Math.min(Number(d.substring(2,4))+20,99),f[0]=a<d?n+a:n-100+a;else{if(b.strict)return!1;f[0]=a}break;case "M":case "L":if(2<n){if(n=e["months-"+("L"==d?"standAlone":"format")+
"-"+g[n-3]].concat(),b.strict||(a=a.replace(".","").toLowerCase(),n=m.map(n,function(a){return a.replace(".","").toLowerCase()})),a=m.indexOf(n,a),-1==a)return!1}else a--;f[1]=a;break;case "E":case "e":case "c":n=e["days-"+("c"==d?"standAlone":"format")+"-"+g[n-3]].concat();b.strict||(a=a.toLowerCase(),n=m.map(n,function(a){return a.toLowerCase()}));a=m.indexOf(n,a);if(-1==a)return!1;break;case "D":f[1]=0;case "d":f[2]=a;break;case "a":n=b.am||e["dayPeriods-format-wide-am"];d=b.pm||e["dayPeriods-format-wide-pm"];
if(!b.strict){var q=/\./g;a=a.replace(q,"").toLowerCase();n=n.replace(q,"").toLowerCase();d=d.replace(q,"").toLowerCase()}if(b.strict&&a!=n&&a!=d)return!1;p=a==d?"p":a==n?"a":"";break;case "K":24==a&&(a=0);case "h":case "H":case "k":if(23<a)return!1;f[3]=a;break;case "m":f[4]=a;break;case "s":f[5]=a;break;case "S":f[6]=a}return!0}),d=+f[3];"p"===p&&12>d?f[3]=d+12:"a"===p&&12==d&&(f[3]=0);d=new Date(f[0],f[1],f[2],f[3],f[4],f[5],f[6]);b.strict&&d.setFullYear(f[0]);var q=h.join(""),k=-1!=q.indexOf("d"),
q=-1!=q.indexOf("M");if(!c||q&&d.getMonth()>f[1]||k&&d.getDate()>f[2])return null;if(q&&d.getMonth()<f[1]||k&&d.getDate()<f[2])d=l.add(d,"hour",1);return d};var t=[],q={};n.addCustomFormats=function(a,b){t.push({pkg:a,name:b});q={}};n._getGregorianBundle=function(a){if(q[a])return q[a];var b={};m.forEach(t,function(c){c=e.getLocalization(c.pkg,c.name,a);b=f.mixin(b,c)},this);return q[a]=b};n.addCustomFormats(b.id.replace(/\/date\/locale$/,".cldr"),"gregorian");n.getNames=function(a,b,c,d){var h;d=
n._getGregorianBundle(d);a=[a,c,b];"standAlone"==c&&(c=a.join("-"),h=d[c],1==h[0]&&(h=void 0));a[1]="format";return(h||d[a.join("-")]).concat()};n.isWeekend=function(a,b){var c=k.getWeekend(b),d=(a||new Date).getDay();c.end<c.start&&(c.end+=7,d<c.start&&(d+=7));return d>=c.start&&d<=c.end};n._getDayOfYear=function(a){return l.difference(new Date(a.getFullYear(),0,1,a.getHours()),a)+1};n._getWeekOfYear=function(a,b){1==arguments.length&&(b=0);var c=(new Date(a.getFullYear(),0,1)).getDay(),d=Math.floor((n._getDayOfYear(a)+
(c-b+7)%7-1)/7);c==b&&d++;return d};return n})},"dojo/cldr/supplemental":function(){define(["../_base/lang","../i18n"],function(f,m){var l={};f.setObject("dojo.cldr.supplemental",l);l.getFirstDayOfWeek=function(f){f={bd:5,mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,iq:6,ir:6,jo:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,sy:6,ye:6,ag:0,ar:0,as:0,au:0,br:0,bs:0,bt:0,bw:0,by:0,bz:0,ca:0,cn:0,co:0,dm:0,"do":0,et:0,gt:0,gu:0,hk:0,hn:0,id:0,ie:0,il:0,"in":0,jm:0,jp:0,ke:0,kh:0,kr:0,la:0,mh:0,mm:0,mo:0,mt:0,mx:0,mz:0,
ni:0,np:0,nz:0,pa:0,pe:0,ph:0,pk:0,pr:0,py:0,sg:0,sv:0,th:0,tn:0,tt:0,tw:0,um:0,us:0,ve:0,vi:0,ws:0,za:0,zw:0}[l._region(f)];return void 0===f?1:f};l._region=function(f){f=m.normalizeLocale(f);f=f.split("-");var e=f[1];e?4==e.length&&(e=f[2]):e={aa:"et",ab:"ge",af:"za",ak:"gh",am:"et",ar:"eg",as:"in",av:"ru",ay:"bo",az:"az",ba:"ru",be:"by",bg:"bg",bi:"vu",bm:"ml",bn:"bd",bo:"cn",br:"fr",bs:"ba",ca:"es",ce:"ru",ch:"gu",co:"fr",cr:"ca",cs:"cz",cv:"ru",cy:"gb",da:"dk",de:"de",dv:"mv",dz:"bt",ee:"gh",
el:"gr",en:"us",es:"es",et:"ee",eu:"es",fa:"ir",ff:"sn",fi:"fi",fj:"fj",fo:"fo",fr:"fr",fy:"nl",ga:"ie",gd:"gb",gl:"es",gn:"py",gu:"in",gv:"gb",ha:"ng",he:"il",hi:"in",ho:"pg",hr:"hr",ht:"ht",hu:"hu",hy:"am",ia:"fr",id:"id",ig:"ng",ii:"cn",ik:"us","in":"id",is:"is",it:"it",iu:"ca",iw:"il",ja:"jp",ji:"ua",jv:"id",jw:"id",ka:"ge",kg:"cd",ki:"ke",kj:"na",kk:"kz",kl:"gl",km:"kh",kn:"in",ko:"kr",ks:"in",ku:"tr",kv:"ru",kw:"gb",ky:"kg",la:"va",lb:"lu",lg:"ug",li:"nl",ln:"cd",lo:"la",lt:"lt",lu:"cd",lv:"lv",
mg:"mg",mh:"mh",mi:"nz",mk:"mk",ml:"in",mn:"mn",mo:"ro",mr:"in",ms:"my",mt:"mt",my:"mm",na:"nr",nb:"no",nd:"zw",ne:"np",ng:"na",nl:"nl",nn:"no",no:"no",nr:"za",nv:"us",ny:"mw",oc:"fr",om:"et",or:"in",os:"ge",pa:"in",pl:"pl",ps:"af",pt:"br",qu:"pe",rm:"ch",rn:"bi",ro:"ro",ru:"ru",rw:"rw",sa:"in",sd:"in",se:"no",sg:"cf",si:"lk",sk:"sk",sl:"si",sm:"ws",sn:"zw",so:"so",sq:"al",sr:"rs",ss:"za",st:"za",su:"id",sv:"se",sw:"tz",ta:"in",te:"in",tg:"tj",th:"th",ti:"et",tk:"tm",tl:"ph",tn:"za",to:"to",tr:"tr",
ts:"za",tt:"ru",ty:"pf",ug:"cn",uk:"ua",ur:"pk",uz:"uz",ve:"za",vi:"vn",wa:"be",wo:"sn",xh:"za",yi:"il",yo:"ng",za:"cn",zh:"cn",zu:"za",ace:"id",ady:"ru",agq:"cm",alt:"ru",amo:"ng",asa:"tz",ast:"es",awa:"in",bal:"pk",ban:"id",bas:"cm",bax:"cm",bbc:"id",bem:"zm",bez:"tz",bfq:"in",bft:"pk",bfy:"in",bhb:"in",bho:"in",bik:"ph",bin:"ng",bjj:"in",bku:"ph",bqv:"ci",bra:"in",brx:"in",bss:"cm",btv:"pk",bua:"ru",buc:"yt",bug:"id",bya:"id",byn:"er",cch:"ng",ccp:"in",ceb:"ph",cgg:"ug",chk:"fm",chm:"ru",chp:"ca",
chr:"us",cja:"kh",cjm:"vn",ckb:"iq",crk:"ca",csb:"pl",dar:"ru",dav:"ke",den:"ca",dgr:"ca",dje:"ne",doi:"in",dsb:"de",dua:"cm",dyo:"sn",dyu:"bf",ebu:"ke",efi:"ng",ewo:"cm",fan:"gq",fil:"ph",fon:"bj",fur:"it",gaa:"gh",gag:"md",gbm:"in",gcr:"gf",gez:"et",gil:"ki",gon:"in",gor:"id",grt:"in",gsw:"ch",guz:"ke",gwi:"ca",haw:"us",hil:"ph",hne:"in",hnn:"ph",hoc:"in",hoj:"in",ibb:"ng",ilo:"ph",inh:"ru",jgo:"cm",jmc:"tz",kaa:"uz",kab:"dz",kaj:"ng",kam:"ke",kbd:"ru",kcg:"ng",kde:"tz",kdt:"th",kea:"cv",ken:"cm",
kfo:"ci",kfr:"in",kha:"in",khb:"cn",khq:"ml",kht:"in",kkj:"cm",kln:"ke",kmb:"ao",koi:"ru",kok:"in",kos:"fm",kpe:"lr",krc:"ru",kri:"sl",krl:"ru",kru:"in",ksb:"tz",ksf:"cm",ksh:"de",kum:"ru",lag:"tz",lah:"pk",lbe:"ru",lcp:"cn",lep:"in",lez:"ru",lif:"np",lis:"cn",lki:"ir",lmn:"in",lol:"cd",lua:"cd",luo:"ke",luy:"ke",lwl:"th",mad:"id",mag:"in",mai:"in",mak:"id",man:"gn",mas:"ke",mdf:"ru",mdh:"ph",mdr:"id",men:"sl",mer:"ke",mfe:"mu",mgh:"mz",mgo:"cm",min:"id",mni:"in",mnk:"gm",mnw:"mm",mos:"bf",mua:"cm",
mwr:"in",myv:"ru",nap:"it",naq:"na",nds:"de","new":"np",niu:"nu",nmg:"cm",nnh:"cm",nod:"th",nso:"za",nus:"sd",nym:"tz",nyn:"ug",pag:"ph",pam:"ph",pap:"bq",pau:"pw",pon:"fm",prd:"ir",raj:"in",rcf:"re",rej:"id",rjs:"np",rkt:"in",rof:"tz",rwk:"tz",saf:"gh",sah:"ru",saq:"ke",sas:"id",sat:"in",saz:"in",sbp:"tz",scn:"it",sco:"gb",sdh:"ir",seh:"mz",ses:"ml",shi:"ma",shn:"mm",sid:"et",sma:"se",smj:"se",smn:"fi",sms:"fi",snk:"ml",srn:"sr",srr:"sn",ssy:"er",suk:"tz",sus:"gn",swb:"yt",swc:"cd",syl:"bd",syr:"sy",
tbw:"ph",tcy:"in",tdd:"cn",tem:"sl",teo:"ug",tet:"tl",tig:"er",tiv:"ng",tkl:"tk",tmh:"ne",tpi:"pg",trv:"tw",tsg:"ph",tts:"th",tum:"mw",tvl:"tv",twq:"ne",tyv:"ru",tzm:"ma",udm:"ru",uli:"fm",umb:"ao",unr:"in",unx:"in",vai:"lr",vun:"tz",wae:"ch",wal:"et",war:"ph",xog:"ug",xsr:"np",yao:"mz",yap:"fm",yav:"cm",zza:"tr"}[f[0]];return e};l.getWeekend=function(f){var e=l._region(f);f={"in":0,af:4,dz:4,ir:4,om:4,sa:4,ye:4,ae:5,bh:5,eg:5,il:5,iq:5,jo:5,kw:5,ly:5,ma:5,qa:5,sd:5,sy:5,tn:5}[e];e={af:5,dz:5,ir:5,
om:5,sa:5,ye:5,ae:6,bh:5,eg:6,il:6,iq:6,jo:6,kw:6,ly:6,ma:6,qa:6,sd:6,sy:6,tn:6}[e];void 0===f&&(f=6);void 0===e&&(e=0);return{start:f,end:e}};return l})},"dijit/CalendarLite":function(){define("dojo/_base/array dojo/_base/declare dojo/cldr/supplemental dojo/date dojo/date/locale dojo/date/stamp dojo/dom dojo/dom-class dojo/_base/lang dojo/on dojo/sniff dojo/string ./_WidgetBase ./_TemplatedMixin dojo/text!./templates/Calendar.html ./a11yclick ./hccss".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p,
n,t,q){var s=m("dijit.CalendarLite",[n,t],{templateString:q,dowTemplateString:'\x3cth class\x3d"dijitReset dijitCalendarDayLabelTemplate" role\x3d"columnheader" scope\x3d"col"\x3e\x3cspan class\x3d"dijitCalendarDayLabel"\x3e${d}\x3c/span\x3e\x3c/th\x3e',dateTemplateString:'\x3ctd class\x3d"dijitReset" role\x3d"gridcell" data-dojo-attach-point\x3d"dateCells"\x3e\x3cspan class\x3d"dijitCalendarDateLabel" data-dojo-attach-point\x3d"dateLabels"\x3e\x3c/span\x3e\x3c/td\x3e',weekTemplateString:'\x3ctr class\x3d"dijitReset dijitCalendarWeekTemplate" role\x3d"row"\x3e${d}${d}${d}${d}${d}${d}${d}\x3c/tr\x3e',
value:new Date(""),datePackage:"",dayWidth:"narrow",tabIndex:"0",dayOffset:-1,currentFocus:new Date,_setSummaryAttr:"gridNode",baseClass:"dijitCalendar dijitCalendarLite",_isValidDate:function(a){return a&&!isNaN(a)&&"object"==typeof a&&a.toString()!=this.constructor.prototype.value.toString()},_getValueAttr:function(){var a=this._get("value");if(a&&!isNaN(a)){var b=new this.dateClassObj(a);b.setHours(0,0,0,0);b.getDate()<a.getDate()&&(b=this.dateModule.add(b,"hour",1));return b}return null},_setValueAttr:function(a,
b){"string"==typeof a&&(a=c.fromISOString(a));a=this._patchDate(a);if(this._isValidDate(a)&&!this.isDisabledDate(a,this.lang)){if(this._set("value",a),this.set("currentFocus",a),this._markSelectedDates([a]),this._created&&(b||"undefined"==typeof b))this.onChange(this.get("value"))}else this._set("value",null),this._markSelectedDates([])},_patchDate:function(a){a&&(a=new this.dateClassObj(a),a.setHours(1,0,0,0));return a},_setText:function(a,b){for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(a.ownerDocument.createTextNode(b))},
_populateGrid:function(){var a=new this.dateClassObj(this.currentFocus);a.setDate(1);var a=this._patchDate(a),b=a.getDay(),c=this.dateModule.getDaysInMonth(a),d=this.dateModule.getDaysInMonth(this.dateModule.add(a,"month",-1)),h=new this.dateClassObj,e=0<=this.dayOffset?this.dayOffset:l.getFirstDayOfWeek(this.lang);e>b&&(e-=7);if(!this.summary){var g=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,a);this.gridNode.setAttribute("summary",g[a.getMonth()])}this._date2cell={};f.forEach(this.dateCells,
function(g,f){var n=f+e,p=new this.dateClassObj(a),q="dijitCalendar",k=0;n<b?(n=d-b+n+1,k=-1,q+="Previous"):n>=b+c?(n=n-b-c+1,k=1,q+="Next"):(n=n-b+1,q+="Current");k&&(p=this.dateModule.add(p,"month",k));p.setDate(n);this.dateModule.compare(p,h,"date")||(q="dijitCalendarCurrentDate "+q);this.isDisabledDate(p,this.lang)?(q="dijitCalendarDisabledDate "+q,g.setAttribute("aria-disabled","true")):(q="dijitCalendarEnabledDate "+q,g.removeAttribute("aria-disabled"),g.setAttribute("aria-selected","false"));
(k=this.getClassForDate(p,this.lang))&&(q=k+" "+q);g.className=q+"Month dijitCalendarDateTemplate";q=p.valueOf();this._date2cell[q]=g;g.dijitDateValue=q;this._setText(this.dateLabels[f],p.getDateLocalized?p.getDateLocalized(this.lang):p.getDate())},this)},_populateControls:function(){var a=new this.dateClassObj(this.currentFocus);a.setDate(1);this.monthWidget.set("month",a);var b=a.getFullYear()-1,c=new this.dateClassObj;f.forEach(["previous","current","next"],function(a){c.setFullYear(b++);this._setText(this[a+
"YearLabelNode"],this.dateLocaleModule.format(c,{selector:"year",locale:this.lang}))},this)},goToToday:function(){this.set("value",new this.dateClassObj)},constructor:function(a){this.dateModule=a.datePackage?b.getObject(a.datePackage,!1):k;this.dateClassObj=this.dateModule.Date||Date;this.dateLocaleModule=a.datePackage?b.getObject(a.datePackage+".locale",!1):e},_createMonthWidget:function(){return s._MonthWidget({id:this.id+"_mddb",lang:this.lang,dateLocaleModule:this.dateLocaleModule},this.monthNode)},
buildRendering:function(){var a=this.dowTemplateString,b=this.dateLocaleModule.getNames("days",this.dayWidth,"standAlone",this.lang),c=0<=this.dayOffset?this.dayOffset:l.getFirstDayOfWeek(this.lang);this.dayCellsHtml=p.substitute([a,a,a,a,a,a,a].join(""),{d:""},function(){return b[c++%7]});a=p.substitute(this.weekTemplateString,{d:this.dateTemplateString});this.dateRowsHtml=[a,a,a,a,a,a].join("");this.dateCells=[];this.dateLabels=[];this.inherited(arguments);g.setSelectable(this.domNode,!1);a=new this.dateClassObj(this.currentFocus);
this.monthWidget=this._createMonthWidget();this.set("currentFocus",a,!1)},postCreate:function(){this.inherited(arguments);this._connectControls()},_connectControls:function(){var c=b.hitch(this,function(c,d,h){this[c].dojoClick=!0;return a(this[c],"click",b.hitch(this,function(){this._setCurrentFocusAttr(this.dateModule.add(this.currentFocus,d,h))}))});this.own(c("incrementMonth","month",1),c("decrementMonth","month",-1),c("nextYearLabelNode","year",1),c("previousYearLabelNode","year",-1))},_setCurrentFocusAttr:function(a,
b){var c=this.currentFocus,d=this._getNodeByDate(c);a=this._patchDate(a);this._set("currentFocus",a);if(!this._date2cell||0!=this.dateModule.difference(c,a,"month"))this._populateGrid(),this._populateControls(),this._markSelectedDates([this.value]);c=this._getNodeByDate(a);c.setAttribute("tabIndex",this.tabIndex);(this.focused||b)&&c.focus();d&&d!=c&&(h("webkit")?d.setAttribute("tabIndex","-1"):d.removeAttribute("tabIndex"))},focus:function(){this._setCurrentFocusAttr(this.currentFocus,!0)},_onDayClick:function(a){a.stopPropagation();
a.preventDefault();for(a=a.target;a&&!a.dijitDateValue;a=a.parentNode);a&&!d.contains(a,"dijitCalendarDisabledDate")&&this.set("value",a.dijitDateValue)},_getNodeByDate:function(a){return(a=this._patchDate(a))&&this._date2cell?this._date2cell[a.valueOf()]:null},_markSelectedDates:function(a){function c(a,b){d.toggle(b,"dijitCalendarSelectedDate",a);b.setAttribute("aria-selected",a?"true":"false")}f.forEach(this._selectedCells||[],b.partial(c,!1));this._selectedCells=f.filter(f.map(a,this._getNodeByDate,
this),function(a){return a});f.forEach(this._selectedCells,b.partial(c,!0))},onChange:function(){},isDisabledDate:function(){},getClassForDate:function(){}});s._MonthWidget=m("dijit.CalendarLite._MonthWidget",n,{_setMonthAttr:function(a){var b=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,a),c=6==h("ie")?"":"\x3cdiv class\x3d'dijitSpacer'\x3e"+f.map(b,function(a){return"\x3cdiv\x3e"+a+"\x3c/div\x3e"}).join("")+"\x3c/div\x3e";this.domNode.innerHTML=c+"\x3cdiv class\x3d'dijitCalendarMonthLabel dijitCalendarCurrentMonthLabel'\x3e"+
b[a.getMonth()]+"\x3c/div\x3e"}});return s})},"dijit/form/_DateTimeTextBox":function(){define("dojo/date dojo/date/locale dojo/date/stamp dojo/_base/declare dojo/_base/lang ./RangeBoundTextBox ../_HasDropDown dojo/text!./templates/DropDownBox.html".split(" "),function(f,m,l,k,e,c,g,d){new Date("X");return k("dijit.form._DateTimeTextBox",[c,g],{templateString:d,hasDownArrow:!0,cssStateNodes:{_buttonNode:"dijitDownArrowButton"},_unboundedConstraints:{},pattern:m.regexp,datePackage:"",postMixInProperties:function(){this.inherited(arguments);
this._set("type","text")},compare:function(b,a){var c=this._isInvalidDate(b),d=this._isInvalidDate(a);if(c||d)return c&&d?0:!c?1:-1;var c=this.format(b,this._unboundedConstraints),d=this.format(a,this._unboundedConstraints),g=this.parse(c,this._unboundedConstraints),e=this.parse(d,this._unboundedConstraints);return c==d?0:f.compare(g,e,this._selector)},autoWidth:!0,format:function(b,a){return!b?"":this.dateLocaleModule.format(b,a)},parse:function(b,a){return this.dateLocaleModule.parse(b,a)||(this._isEmpty(b)?
null:void 0)},serialize:function(b,a){b.toGregorian&&(b=b.toGregorian());return l.toISOString(b,a)},dropDownDefaultValue:new Date,value:new Date(""),_blankValue:null,popupClass:"",_selector:"",constructor:function(b){b=b||{};this.dateModule=b.datePackage?e.getObject(b.datePackage,!1):f;this.dateClassObj=this.dateModule.Date||Date;this.dateClassObj instanceof Date||(this.value=new this.dateClassObj(this.value));this.dateLocaleModule=b.datePackage?e.getObject(b.datePackage+".locale",!1):m;this._set("pattern",
this.dateLocaleModule.regexp);this._invalidDate=this.constructor.prototype.value.toString()},buildRendering:function(){this.inherited(arguments);this.hasDownArrow||(this._buttonNode.style.display="none");this.hasDownArrow||(this._buttonNode=this.domNode,this.baseClass+=" dijitComboBoxOpenOnClick")},_setConstraintsAttr:function(b){b.selector=this._selector;b.fullYear=!0;var a=l.fromISOString;"string"==typeof b.min&&(b.min=a(b.min),this.dateClassObj instanceof Date||(b.min=new this.dateClassObj(b.min)));
"string"==typeof b.max&&(b.max=a(b.max),this.dateClassObj instanceof Date||(b.max=new this.dateClassObj(b.max)));this.inherited(arguments);this._unboundedConstraints=e.mixin({},this.constraints,{min:null,max:null})},_isInvalidDate:function(b){return!b||isNaN(b)||"object"!=typeof b||b.toString()==this._invalidDate},_setValueAttr:function(b,a,c){void 0!==b&&("string"==typeof b&&(b=l.fromISOString(b)),this._isInvalidDate(b)&&(b=null),b instanceof Date&&!(this.dateClassObj instanceof Date)&&(b=new this.dateClassObj(b)));
this.inherited(arguments,[b,a,c]);this.value instanceof Date&&(this.filterString="");!1!==a&&this.dropDown&&this.dropDown.set("value",b,!1)},_set:function(b,a){if("value"==b){a instanceof Date&&!(this.dateClassObj instanceof Date)&&(a=new this.dateClassObj(a));var c=this._get("value");if(c instanceof this.dateClassObj&&0==this.compare(a,c))return}this.inherited(arguments)},_setDropDownDefaultValueAttr:function(b){this._isInvalidDate(b)&&(b=new this.dateClassObj);this._set("dropDownDefaultValue",b)},
openDropDown:function(b){this.dropDown&&this.dropDown.destroy();var a=e.isString(this.popupClass)?e.getObject(this.popupClass,!1):this.popupClass,c=this,d=this.get("value");this.dropDown=new a({onChange:function(a){c.set("value",a,!0)},id:this.id+"_popup",dir:c.dir,lang:c.lang,value:d,textDir:c.textDir,currentFocus:!this._isInvalidDate(d)?d:this.dropDownDefaultValue,constraints:c.constraints,filterString:c.filterString,datePackage:c.datePackage,isDisabledDate:function(a){return!c.rangeCheck(a,c.constraints)}});
this.inherited(arguments)},_getDisplayedValueAttr:function(){return this.textbox.value},_setDisplayedValueAttr:function(b,a){this._setValueAttr(this.parse(b,this.constraints),a,b)}})})},"dijit/tree/ForestStoreModel":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","dojo/_base/lang","./TreeStoreModel"],function(f,m,l,k,e){return m("dijit.tree.ForestStoreModel",e,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(c){this.root={store:this,root:!0,id:c.rootId,
label:c.rootLabel,children:c.rootChildren}},mayHaveChildren:function(c){return c===this.root||this.inherited(arguments)},getChildren:function(c,g,d){c===this.root?this.root.children?g(this.root.children):this.store.fetch({query:this.query,onComplete:k.hitch(this,function(b){this.root.children=b;g(b)}),onError:d}):this.inherited(arguments)},isItem:function(c){return c===this.root?!0:this.inherited(arguments)},fetchItemByIdentity:function(c){if(c.identity==this.root.id){var g=c.scope||l.global;c.onItem&&
c.onItem.call(g,this.root)}else this.inherited(arguments)},getIdentity:function(c){return c===this.root?this.root.id:this.inherited(arguments)},getLabel:function(c){return c===this.root?this.root.label:this.inherited(arguments)},newItem:function(c,g,d){return g===this.root?(this.onNewRootItem(c),this.store.newItem(c)):this.inherited(arguments)},onNewRootItem:function(){},pasteItem:function(c,g,d,b,a){if(g===this.root&&!b)this.onLeaveRoot(c);this.inherited(arguments,[c,g===this.root?null:g,d===this.root?
null:d,b,a]);if(d===this.root)this.onAddToRoot(c)},onAddToRoot:function(c){},onLeaveRoot:function(c){},_requeryTop:function(){var c=this.root.children||[];this.store.fetch({query:this.query,onComplete:k.hitch(this,function(g){this.root.children=g;if(c.length!=g.length||f.some(c,function(c,b){return g[b]!=c}))this.onChildrenChange(this.root,g)})})},onNewItem:function(c,g){this._requeryTop();this.inherited(arguments)},onDeleteItem:function(c){-1!=f.indexOf(this.root.children,c)&&this._requeryTop();
this.inherited(arguments)},onSetItem:function(c,g,d,b){this._requeryTop();this.inherited(arguments)}})})},"dijit/tree/TreeStoreModel":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/_base/lang"],function(f,m,l,k){return l("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:!1,constructor:function(e){k.mixin(this,e);this.connects=[];e=this.store;if(!e.getFeatures()["dojo.data.api.Identity"])throw Error("dijit.tree.TreeStoreModel: store must support dojo.data.Identity");
e.getFeatures()["dojo.data.api.Notification"]&&(this.connects=this.connects.concat([m.after(e,"onNew",k.hitch(this,"onNewItem"),!0),m.after(e,"onDelete",k.hitch(this,"onDeleteItem"),!0),m.after(e,"onSet",k.hitch(this,"onSetItem"),!0)]))},destroy:function(){for(var e;e=this.connects.pop();)e.remove()},getRoot:function(e,c){this.root?e(this.root):this.store.fetch({query:this.query,onComplete:k.hitch(this,function(c){if(1!=c.length)throw Error("dijit.tree.TreeStoreModel: root query returned "+c.length+
" items, but must return exactly one");this.root=c[0];e(this.root)}),onError:c})},mayHaveChildren:function(e){return f.some(this.childrenAttrs,function(c){return this.store.hasAttribute(e,c)},this)},getChildren:function(e,c,g){var d=this.store;if(d.isItemLoaded(e)){for(var b=[],a=0;a<this.childrenAttrs.length;a++)var h=d.getValues(e,this.childrenAttrs[a]),b=b.concat(h);var p=0;this.deferItemLoadingUntilExpand||f.forEach(b,function(a){d.isItemLoaded(a)||p++});0==p?c(b):f.forEach(b,function(a,h){d.isItemLoaded(a)||
d.loadItem({item:a,onItem:function(a){b[h]=a;0==--p&&c(b)},onError:g})})}else{var n=k.hitch(this,arguments.callee);d.loadItem({item:e,onItem:function(a){n(a,c,g)},onError:g})}},isItem:function(e){return this.store.isItem(e)},fetchItemByIdentity:function(e){this.store.fetchItemByIdentity(e)},getIdentity:function(e){return this.store.getIdentity(e)},getLabel:function(e){return this.labelAttr?this.store.getValue(e,this.labelAttr):this.store.getLabel(e)},newItem:function(e,c,g){var d={parent:c,attribute:this.childrenAttrs[0]},
b;this.newItemIdAttr&&e[this.newItemIdAttr]?this.fetchItemByIdentity({identity:e[this.newItemIdAttr],scope:this,onItem:function(a){a?this.pasteItem(a,null,c,!0,g):(b=this.store.newItem(e,d))&&void 0!=g&&this.pasteItem(b,c,c,!1,g)}}):(b=this.store.newItem(e,d))&&void 0!=g&&this.pasteItem(b,c,c,!1,g)},pasteItem:function(e,c,g,d,b){var a=this.store,h=this.childrenAttrs[0];c&&f.forEach(this.childrenAttrs,function(b){if(a.containsValue(c,b,e)){if(!d){var g=f.filter(a.getValues(c,b),function(a){return a!=
e});a.setValues(c,b,g)}h=b}});if(g)if("number"==typeof b){var p=a.getValues(g,h).slice();p.splice(b,0,e);a.setValues(g,h,p)}else a.setValues(g,h,a.getValues(g,h).concat(e))},onChange:function(){},onChildrenChange:function(){},onDelete:function(){},onNewItem:function(e,c){c&&this.getChildren(c.item,k.hitch(this,function(e){this.onChildrenChange(c.item,e)}))},onDeleteItem:function(e){this.onDelete(e)},onSetItem:function(e,c){if(-1!=f.indexOf(this.childrenAttrs,c))this.getChildren(e,k.hitch(this,function(c){this.onChildrenChange(e,
c)}));else this.onChange(e)}})})},"dijit/Tree":function(){define("dojo/_base/array dojo/aspect dojo/cookie dojo/_base/declare dojo/Deferred dojo/promise/all dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/errors/create dojo/fx dojo/has dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/topic dojo/touch dojo/when ./a11yclick ./focus ./registry ./_base/manager ./_Widget ./_TemplatedMixin ./_Container ./_Contained ./_CssStateMixin ./_KeyNavMixin dojo/text!./templates/TreeNode.html dojo/text!./templates/Tree.html ./tree/TreeStoreModel ./tree/ForestStoreModel ./tree/_dndSelector dojo/query!css2".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r,w,u,v,x,y,z,A,E,B,G,L,I,J,H,K,F,D,C){function P(a){return s.delegate(a.promise||a,{addCallback:function(a){this.then(a)},addErrback:function(a){this.otherwise(a)}})}var T=k("dijit._TreeNode",[E,B,G,L,I],{item:null,isTreeNode:!0,label:"",_setLabelAttr:function(a){this.labelNode["html"==this.labelType?"innerHTML":"innerText"in this.labelNode?"innerText":"textContent"]=a;this._set("label",a);n("dojo-bidi")&&this.applyTextDir(this.labelNode)},labelType:"text",
isExpandable:null,isExpanded:!1,state:"NotLoaded",templateString:H,baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow"},_setTooltipAttr:{node:"rowNode",type:"attribute",attribute:"title"},buildRendering:function(){this.inherited(arguments);this._setExpando();this._updateItemClasses(this.item);this.isExpandable&&this.labelNode.setAttribute("aria-expanded",this.isExpanded);this.setSelected(!1)},_setIndentAttr:function(b){var c=Math.max(b,0)*this.tree._nodePixelIndent+"px";a.set(this.domNode,
"backgroundPosition",c+" 0px");a.set(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",c);f.forEach(this.getChildren(),function(a){a.set("indent",b+1)});this._set("indent",b)},markProcessing:function(){this.state="Loading";this._setExpando(!0)},unmarkProcessing:function(){this._setExpando(!1)},_updateItemClasses:function(a){var b=this.tree,c=b.model;b._v10Compat&&a===c.root&&(a=null);this._applyClassAndStyle(a,"icon","Icon");this._applyClassAndStyle(a,"label","Label");this._applyClassAndStyle(a,
"row","Row");this.tree._startPaint(!0)},_applyClassAndStyle:function(b,c,h){var e="_"+c+"Class";c+="Node";var g=this[e];this[e]=this.tree["get"+h+"Class"](b,this.isExpanded);d.replace(this[c],this[e]||"",g||"");a.set(this[c],this.tree["get"+h+"Style"](b,this.isExpanded)||{})},_updateLayout:function(){var a=this.getParent(),a=!a||!a.rowNode||"none"==a.rowNode.style.display;d.toggle(this.domNode,"dijitTreeIsRoot",a);d.toggle(this.domNode,"dijitTreeIsLast",!a&&!this.getNextSibling())},_setExpando:function(a){var b=
["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"];a=a?0:this.isExpandable?this.isExpanded?1:2:3;d.replace(this.expandoNode,b[a],b);this.expandoNodeText.innerHTML=["*","-","+","*"][a]},expand:function(){if(this._expandDeferred)return P(this._expandDeferred);this._collapseDeferred&&(this._collapseDeferred.cancel(),delete this._collapseDeferred);this.isExpanded=!0;this.labelNode.setAttribute("aria-expanded","true");(this.tree.showRoot||this!==this.tree.rootNode)&&
this.containerNode.setAttribute("role","group");d.add(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);this==this.tree.rootNode&&this.tree.showRoot&&this.tree.domNode.setAttribute("aria-expanded","true");var a=p.wipeIn({node:this.containerNode,duration:A.defaultDuration}),b=this._expandDeferred=new e(function(){a.stop()});m.after(a,"onEnd",function(){b.resolve(!0)},!0);a.play();return P(b)},collapse:function(){if(this._collapseDeferred)return P(this._collapseDeferred);
this._expandDeferred&&(this._expandDeferred.cancel(),delete this._expandDeferred);this.isExpanded=!1;this.labelNode.setAttribute("aria-expanded","false");this==this.tree.rootNode&&this.tree.showRoot&&this.tree.domNode.setAttribute("aria-expanded","false");d.remove(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);var a=p.wipeOut({node:this.containerNode,duration:A.defaultDuration}),b=this._collapseDeferred=new e(function(){a.stop()});m.after(a,"onEnd",
function(){b.resolve(!0)},!0);a.play();return P(b)},indent:0,setChildItems:function(a){var b=this.tree,d=b.model,h=[],e=b.focusedChild,n=this.getChildren();f.forEach(n,function(a){G.prototype.removeChild.call(this,a)},this);this.defer(function(){f.forEach(n,function(a){if(!a._destroyed&&!a.getParent()){b.dndController.removeTreeNode(a);var c=function(a){var h=d.getIdentity(a.item),e=b._itemNodesMap[h];1==e.length?delete b._itemNodesMap[h]:(h=f.indexOf(e,a),-1!=h&&e.splice(h,1));f.forEach(a.getChildren(),
c)};c(a);if(b.persist){var h=f.map(a.getTreePath(),function(a){return b.model.getIdentity(a)}).join("/"),n;for(n in b._openedNodes)n.substr(0,h.length)==h&&delete b._openedNodes[n];b._saveExpandedNodes()}b.lastFocusedChild&&!g.isDescendant(b.lastFocusedChild,b.domNode)&&delete b.lastFocusedChild;e&&!g.isDescendant(e,b.domNode)&&b.focus();a.destroyRecursive()}})});this.state="Loaded";a&&0<a.length?(this.isExpandable=!0,f.forEach(a,function(a){var c=d.getIdentity(a),e=b._itemNodesMap[c],g;if(e)for(var f=
0;f<e.length;f++)if(e[f]&&!e[f].getParent()){g=e[f];g.set("indent",this.indent+1);break}g||(g=this.tree._createTreeNode({item:a,tree:b,isExpandable:d.mayHaveChildren(a),label:b.getLabel(a),labelType:b.model&&b.model.labelType||"text",tooltip:b.getTooltip(a),ownerDocument:b.ownerDocument,dir:b.dir,lang:b.lang,textDir:b.textDir,indent:this.indent+1}),e?e.push(g):b._itemNodesMap[c]=[g]);this.addChild(g);(this.tree.autoExpand||this.tree._state(g))&&h.push(b._expandNode(g))},this),f.forEach(this.getChildren(),
function(a){a._updateLayout()})):this.isExpandable=!1;this._setExpando&&this._setExpando(!1);this._updateItemClasses(this.item);a=c(h);this.tree._startPaint(a);return P(a)},getTreePath:function(){for(var a=this,b=[];a&&a!==this.tree.rootNode;)b.unshift(a.item),a=a.getParent();b.unshift(this.tree.rootNode.item);return b},getIdentity:function(){return this.tree.model.getIdentity(this.item)},removeChild:function(a){this.inherited(arguments);var b=this.getChildren();0==b.length&&(this.isExpandable=!1,
this.collapse());f.forEach(b,function(a){a._updateLayout()})},makeExpandable:function(){this.isExpandable=!0;this._setExpando(!1)},setSelected:function(a){this.labelNode.setAttribute("aria-selected",a?"true":"false");d.toggle(this.rowNode,"dijitTreeRowSelected",a)},focus:function(){y.focus(this.focusNode)}});n("dojo-bidi")&&T.extend({_setTextDirAttr:function(a){if(a&&(this.textDir!=a||!this._created))this._set("textDir",a),this.applyTextDir(this.labelNode),f.forEach(this.getChildren(),function(b){b.set("textDir",
a)},this)}});var N=k("dijit.Tree",[E,J,B,I],{baseClass:"dijitTree",store:null,model:null,query:null,label:"",showRoot:!0,childrenAttr:["children"],paths:[],path:[],selectedItems:null,selectedItem:null,openOnClick:!1,openOnDblClick:!1,templateString:K,persist:!1,autoExpand:!1,dndController:C,dndParams:"onDndDrop itemCreator onDndCancel checkAcceptance checkItemAcceptance dragThreshold betweenThreshold".split(" "),onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,
dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(a,b){w.publish(this.id,s.mixin({tree:this,event:a},b||{}))},postMixInProperties:function(){this.tree=this;this.autoExpand&&(this.persist=!1);this._itemNodesMap={};!this.cookieName&&this.id&&(this.cookieName=this.id+"SaveStateCookie");this.expandChildrenDeferred=new e;this.pendingCommandsPromise=this.expandChildrenDeferred.promise;this.inherited(arguments)},postCreate:function(){this._initState();var a=this;this.own(r(this.containerNode,
r.selector(".dijitTreeNode",u.enter),function(b){a._onNodeMouseEnter(z.byNode(this),b)}),r(this.containerNode,r.selector(".dijitTreeNode",u.leave),function(b){a._onNodeMouseLeave(z.byNode(this),b)}),r(this.containerNode,r.selector(".dijitTreeRow",x.press),function(b){a._onNodePress(z.getEnclosingWidget(this),b)}),r(this.containerNode,r.selector(".dijitTreeRow",x),function(b){a._onClick(z.getEnclosingWidget(this),b)}),r(this.containerNode,r.selector(".dijitTreeRow","dblclick"),function(b){a._onDblClick(z.getEnclosingWidget(this),
b)}));this.model||this._store2model();this.own(m.after(this.model,"onChange",s.hitch(this,"_onItemChange"),!0),m.after(this.model,"onChildrenChange",s.hitch(this,"_onItemChildrenChange"),!0),m.after(this.model,"onDelete",s.hitch(this,"_onItemDelete"),!0));this.inherited(arguments);if(this.dndController){s.isString(this.dndController)&&(this.dndController=s.getObject(this.dndController));for(var b={},c=0;c<this.dndParams.length;c++)this[this.dndParams[c]]&&(b[this.dndParams[c]]=this[this.dndParams[c]]);
this.dndController=new this.dndController(this,b)}this._load();this.onLoadDeferred=P(this.pendingCommandsPromise);this.onLoadDeferred.then(s.hitch(this,"onLoad"))},_store2model:function(){this._v10Compat=!0;t.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var a={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};this.params.mayHaveChildren&&(a.mayHaveChildren=s.hitch(this,"mayHaveChildren"));this.params.getItemChildren&&
(a.getChildren=s.hitch(this,function(a,b,c){this.getItemChildren(this._v10Compat&&a===this.model.root?null:a,b,c)}));this.model=new D(a);this.showRoot=Boolean(this.label)},onLoad:function(){},_load:function(){this.model.getRoot(s.hitch(this,function(a){var b=this.rootNode=this.tree._createTreeNode({item:a,tree:this,isExpandable:!0,label:this.label||this.getLabel(a),labelType:this.model.labelType||"text",textDir:this.textDir,indent:this.showRoot?0:-1});this.showRoot?(this.domNode.setAttribute("aria-multiselectable",
!this.dndController.singular),this.rootLoadingIndicator.style.display="none"):(b.rowNode.style.display="none",this.domNode.setAttribute("role","presentation"),this.domNode.removeAttribute("aria-expanded"),this.domNode.removeAttribute("aria-multiselectable"),this["aria-label"]?(b.containerNode.setAttribute("aria-label",this["aria-label"]),this.domNode.removeAttribute("aria-label")):this["aria-labelledby"]&&(b.containerNode.setAttribute("aria-labelledby",this["aria-labelledby"]),this.domNode.removeAttribute("aria-labelledby")),
b.labelNode.setAttribute("role","presentation"),b.labelNode.removeAttribute("aria-selected"),b.containerNode.setAttribute("role","tree"),b.containerNode.setAttribute("aria-expanded","true"),b.containerNode.setAttribute("aria-multiselectable",!this.dndController.singular));this.containerNode.appendChild(b.domNode);a=this.model.getIdentity(a);this._itemNodesMap[a]?this._itemNodesMap[a].push(b):this._itemNodesMap[a]=[b];b._updateLayout();this._expandNode(b).then(s.hitch(this,function(){this._destroyed||
(this.rootLoadingIndicator.style.display="none",this.expandChildrenDeferred.resolve(!0))}))}),s.hitch(this,function(a){console.error(this,": error loading root: ",a)}))},getNodesByItem:function(a){if(!a)return[];a=s.isString(a)?a:this.model.getIdentity(a);return[].concat(this._itemNodesMap[a])},_setSelectedItemAttr:function(a){this.set("selectedItems",[a])},_setSelectedItemsAttr:function(a){var b=this;return this.pendingCommandsPromise=this.pendingCommandsPromise.always(s.hitch(this,function(){var c=
f.map(a,function(a){return!a||s.isString(a)?a:b.model.getIdentity(a)}),d=[];f.forEach(c,function(a){d=d.concat(b._itemNodesMap[a]||[])});this.set("selectedNodes",d)}))},_setPathAttr:function(a){return a.length?P(this.set("paths",[a]).then(function(a){return a[0]})):P(this.set("paths",[]).then(function(a){return a[0]}))},_setPathsAttr:function(a){function b(a,c){var h=a.shift(),e=f.filter(c,function(a){return a.getIdentity()==h})[0];if(e)return a.length?d._expandNode(e).then(function(){return b(a,
e.getChildren())}):e;throw new N.PathError("Could not expand path at "+h);}var d=this;return P(this.pendingCommandsPromise=this.pendingCommandsPromise.always(function(){return c(f.map(a,function(a){a=f.map(a,function(a){return a&&s.isObject(a)?d.model.getIdentity(a):a});if(a.length)return b(a,[d.rootNode]);throw new N.PathError("Empty path");}))}).then(function(a){d.set("selectedNodes",a);return d.paths}))},_setSelectedNodeAttr:function(a){this.set("selectedNodes",[a])},_setSelectedNodesAttr:function(a){this.dndController.setSelection(a)},
expandAll:function(){function a(d){return b._expandNode(d).then(function(){var b=f.filter(d.getChildren()||[],function(a){return a.isExpandable});return c(f.map(b,a))})}var b=this;return P(a(this.rootNode))},collapseAll:function(){function a(d){var h=f.filter(d.getChildren()||[],function(a){return a.isExpandable}),h=c(f.map(h,a));return!d.isExpanded||d==b.rootNode&&!b.showRoot?h:h.then(function(){return b._collapseNode(d)})}var b=this;return P(a(this.rootNode))},mayHaveChildren:function(){},getItemChildren:function(){},
getLabel:function(a){return this.model.getLabel(a)},getIconClass:function(a,b){return!a||this.model.mayHaveChildren(a)?b?"dijitFolderOpened":"dijitFolderClosed":"dijitLeaf"},getLabelClass:function(){},getRowClass:function(){},getIconStyle:function(){},getLabelStyle:function(){},getRowStyle:function(){},getTooltip:function(){return""},_onDownArrow:function(a,b){var c=this._getNext(b);c&&c.isTreeNode&&this.focusNode(c)},_onUpArrow:function(a,b){var c=b.getPreviousSibling();if(c)for(b=c;b.isExpandable&&
b.isExpanded&&b.hasChildren();)c=b.getChildren(),b=c[c.length-1];else if(c=b.getParent(),this.showRoot||c!==this.rootNode)b=c;b&&b.isTreeNode&&this.focusNode(b)},_onRightArrow:function(a,b){b.isExpandable&&!b.isExpanded?this._expandNode(b):b.hasChildren()&&(b=b.getChildren()[0])&&b.isTreeNode&&this.focusNode(b)},_onLeftArrow:function(a,b){if(b.isExpandable&&b.isExpanded)this._collapseNode(b);else{var c=b.getParent();c&&(c.isTreeNode&&(this.showRoot||c!==this.rootNode))&&this.focusNode(c)}},focusLastChild:function(){var a=
this._getLast();a&&a.isTreeNode&&this.focusNode(a)},_getFirst:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0]},_getLast:function(){for(var a=this.rootNode;a.isExpanded;){var b=a.getChildren();if(!b.length)break;a=b[b.length-1]}return a},_getNext:function(a){if(a.isExpandable&&a.isExpanded&&a.hasChildren())return a.getChildren()[0];for(;a&&a.isTreeNode;){var b=a.getNextSibling();if(b)return b;a=a.getParent()}return null},childSelector:".dijitTreeRow",isExpandoNode:function(a,
b){return g.isDescendant(a,b.expandoNode)||g.isDescendant(a,b.expandoNodeText)},_onNodePress:function(a,b){this.focusNode(a)},__click:function(a,b,c,d){var h=this.isExpandoNode(b.target,a);a.isExpandable&&(c||h)?this._onExpandoClick({node:a}):(this._publish("execute",{item:a.item,node:a,evt:b}),this[d](a.item,a,b),this.focusNode(a));b.stopPropagation();b.preventDefault()},_onClick:function(a,b){this.__click(a,b,this.openOnClick,"onClick")},_onDblClick:function(a,b){this.__click(a,b,this.openOnDblClick,
"onDblClick")},_onExpandoClick:function(a){a=a.node;this.focusNode(a);a.isExpanded?this._collapseNode(a):this._expandNode(a)},onClick:function(){},onDblClick:function(){},onOpen:function(){},onClose:function(){},_getNextNode:function(a){t.deprecated(this.declaredClass+"::_getNextNode(node) is deprecated. Use _getNext(node) instead.","","2.0");return this._getNext(a)},_getRootOrFirstNode:function(){t.deprecated(this.declaredClass+"::_getRootOrFirstNode() is deprecated. Use _getFirst() instead.","",
"2.0");return this._getFirst()},_collapseNode:function(a){a._expandNodeDeferred&&delete a._expandNodeDeferred;if("Loading"!=a.state&&a.isExpanded){var b=a.collapse();this.onClose(a.item,a);this._state(a,!1);this._startPaint(b);return b}},_expandNode:function(a){if(a._expandNodeDeferred)return a._expandNodeDeferred;var b=this.model,c=a.item,d=this;a._loadDeferred||(a.markProcessing(),a._loadDeferred=new e,b.getChildren(c,function(b){a.unmarkProcessing();a.setChildItems(b).then(function(){a._loadDeferred.resolve(b)})},
function(b){console.error(d,": error loading "+a.label+" children: ",b);a._loadDeferred.reject(b)}));b=a._loadDeferred.then(s.hitch(this,function(){var b=a.expand();this.onOpen(a.item,a);this._state(a,!0);return b}));this._startPaint(b);return b},focusNode:function(a){var b=this.domNode.scrollLeft;this.focusChild(a);this.domNode.scrollLeft=b},_onNodeMouseEnter:function(){},_onNodeMouseLeave:function(){},_onItemChange:function(a){var b=this.model.getIdentity(a);if(b=this._itemNodesMap[b]){var c=this.getLabel(a),
d=this.getTooltip(a);f.forEach(b,function(b){b.set({item:a,label:c,tooltip:d});b._updateItemClasses(a)})}},_onItemChildrenChange:function(a,b){var c=this.model.getIdentity(a);(c=this._itemNodesMap[c])&&f.forEach(c,function(a){a.setChildItems(b)})},_onItemDelete:function(a){a=this.model.getIdentity(a);var b=this._itemNodesMap[a];b&&(f.forEach(b,function(a){this.dndController.removeTreeNode(a);var b=a.getParent();b&&b.removeChild(a);this.lastFocusedChild&&!g.isDescendant(this.lastFocusedChild,this.domNode)&&
delete this.lastFocusedChild;this.focusedChild&&!g.isDescendant(this.focusedChild,this.domNode)&&this.focus();a.destroyRecursive()},this),delete this._itemNodesMap[a])},_initState:function(){this._openedNodes={};if(this.persist&&this.cookieName){var a=l(this.cookieName);a&&f.forEach(a.split(","),function(a){this._openedNodes[a]=!0},this)}},_state:function(a,b){if(!this.persist)return!1;var c=f.map(a.getTreePath(),function(a){return this.model.getIdentity(a)},this).join("/");if(1===arguments.length)return this._openedNodes[c];
b?this._openedNodes[c]=!0:delete this._openedNodes[c];this._saveExpandedNodes()},_saveExpandedNodes:function(){if(this.persist&&this.cookieName){var a=[],b;for(b in this._openedNodes)a.push(b);l(this.cookieName,a.join(","),{expires:365})}},destroy:function(){this._curSearch&&(this._curSearch.timer.remove(),delete this._curSearch);this.rootNode&&this.rootNode.destroyRecursive();this.dndController&&!s.isString(this.dndController)&&this.dndController.destroy();this.rootNode=null;this.inherited(arguments)},
destroyRecursive:function(){this.destroy()},resize:function(a){a&&b.setMarginBox(this.domNode,a);this._nodePixelIndent=b.position(this.tree.indentDetector).w||this._nodePixelIndent;this.expandChildrenDeferred.then(s.hitch(this,function(){this.rootNode.set("indent",this.showRoot?0:-1);this._adjustWidths()}))},_outstandingPaintOperations:0,_startPaint:function(a){this._outstandingPaintOperations++;this._adjustWidthsTimer&&(this._adjustWidthsTimer.remove(),delete this._adjustWidthsTimer);var b=s.hitch(this,
function(){this._outstandingPaintOperations--;0>=this._outstandingPaintOperations&&(!this._adjustWidthsTimer&&this._started)&&(this._adjustWidthsTimer=this.defer("_adjustWidths"))});v(a,b,b)},_adjustWidths:function(){this._adjustWidthsTimer&&(this._adjustWidthsTimer.remove(),delete this._adjustWidthsTimer);this.containerNode.style.width="auto";this.containerNode.style.width=this.domNode.scrollWidth>this.domNode.offsetWidth?"auto":"100%"},_createTreeNode:function(a){return new T(a)},focus:function(){this.lastFocusedChild?
this.focusNode(this.lastFocusedChild):this.focusFirstChild()}});n("dojo-bidi")&&N.extend({_setTextDirAttr:function(a){a&&this.textDir!=a&&(this._set("textDir",a),this.rootNode.set("textDir",a))}});N.PathError=h("TreePathError");N._TreeNode=T;return N})},"dojo/cookie":function(){define(["./_base/kernel","./regexp"],function(f,m){f.cookie=function(f,k,e){var c=document.cookie,g;if(1==arguments.length)g=(g=c.match(RegExp("(?:^|; )"+m.escapeString(f)+"\x3d([^;]*)")))?decodeURIComponent(g[1]):void 0;else{e=
e||{};c=e.expires;if("number"==typeof c){var d=new Date;d.setTime(d.getTime()+864E5*c);c=e.expires=d}c&&c.toUTCString&&(e.expires=c.toUTCString());k=encodeURIComponent(k);var c=f+"\x3d"+k,b;for(b in e)c+="; "+b,d=e[b],!0!==d&&(c+="\x3d"+d);document.cookie=c}return g};f.cookie.isSupported=function(){"cookieEnabled"in navigator||(this("__djCookieTest__","CookiesAllowed"),navigator.cookieEnabled="CookiesAllowed"==this("__djCookieTest__"),navigator.cookieEnabled&&this("__djCookieTest__","",{expires:-1}));
return navigator.cookieEnabled};return f.cookie})},"dojo/fx":function(){define("./_base/lang ./Evented ./_base/kernel ./_base/array ./aspect ./_base/fx ./dom ./dom-style ./dom-geometry ./ready require".split(" "),function(f,m,l,k,e,c,g,d,b,a,h){l.isAsync||a(0,function(){h(["./fx/Toggler"])});l=l.fx={};a={_fire:function(a,b){this[a]&&this[a].apply(this,b||[]);return this}};var p=function(a){this._index=-1;this._animations=a||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;k.forEach(this._animations,
function(a){a&&("undefined"!=typeof a.duration&&(this.duration+=a.duration),a.delay&&(this.duration+=a.delay))},this)};p.prototype=new m;f.extend(p,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){this._onAnimateCtx.remove();this._onEndCtx.remove();this._onAnimateCtx=this._onEndCtx=null;this._index+1==this._animations.length?this._fire("onEnd"):(this._current=this._animations[++this._index],this._onAnimateCtx=e.after(this._current,"onAnimate",f.hitch(this,"_onAnimate"),
!0),this._onEndCtx=e.after(this._current,"onEnd",f.hitch(this,"_onEnd"),!0),this._current.play(0,!0))},play:function(a,b){this._current||(this._current=this._animations[this._index=0]);if(!b&&"playing"==this._current.status())return this;var c=e.after(this._current,"beforeBegin",f.hitch(this,function(){this._fire("beforeBegin")}),!0),d=e.after(this._current,"onBegin",f.hitch(this,function(a){this._fire("onBegin",arguments)}),!0),h=e.after(this._current,"onPlay",f.hitch(this,function(a){this._fire("onPlay",
arguments);c.remove();d.remove();h.remove()}));this._onAnimateCtx&&this._onAnimateCtx.remove();this._onAnimateCtx=e.after(this._current,"onAnimate",f.hitch(this,"_onAnimate"),!0);this._onEndCtx&&this._onEndCtx.remove();this._onEndCtx=e.after(this._current,"onEnd",f.hitch(this,"_onEnd"),!0);this._current.play.apply(this._current,arguments);return this},pause:function(){if(this._current){var a=e.after(this._current,"onPause",f.hitch(this,function(b){this._fire("onPause",arguments);a.remove()}),!0);
this._current.pause()}return this},gotoPercent:function(a,b){this.pause();var c=this.duration*a;this._current=null;k.some(this._animations,function(a,b){if(c<=a.duration)return this._current=a,this._index=b,!0;c-=a.duration;return!1},this);this._current&&this._current.gotoPercent(c/this._current.duration);b&&this.play();return this},stop:function(a){if(this._current){if(a){for(;this._index+1<this._animations.length;++this._index)this._animations[this._index].stop(!0);this._current=this._animations[this._index]}var b=
e.after(this._current,"onStop",f.hitch(this,function(a){this._fire("onStop",arguments);b.remove()}),!0);this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this.stop();this._onAnimateCtx&&this._onAnimateCtx.remove();this._onEndCtx&&this._onEndCtx.remove()}});f.extend(p,a);l.chain=function(a){return new p(f.isArray(a)?a:Array.prototype.slice.call(a,0))};var n=function(a){this._animations=a||[];this._connects=[];this.duration=
this._finished=0;k.forEach(a,function(a){var b=a.duration;a.delay&&(b+=a.delay);this.duration<b&&(this.duration=b);this._connects.push(e.after(a,"onEnd",f.hitch(this,"_onEnd"),!0))},this);this._pseudoAnimation=new c.Animation({curve:[0,1],duration:this.duration});var b=this;k.forEach("beforeBegin onBegin onPlay onAnimate onPause onStop onEnd".split(" "),function(a){b._connects.push(e.after(b._pseudoAnimation,a,function(){b._fire(a,arguments)},!0))})};f.extend(n,{_doAction:function(a,b){k.forEach(this._animations,
function(c){c[a].apply(c,b)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(a,b){var c=this._pseudoAnimation;c[a].apply(c,b)},play:function(a,b){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this},gotoPercent:function(a,b){var c=this.duration*a;k.forEach(this._animations,function(a){a.gotoPercent(a.duration<
c?1:c/a.duration,b)});this._call("gotoPercent",arguments);return this},stop:function(a){this._doAction("stop",arguments);this._call("stop",arguments);return this},status:function(){return this._pseudoAnimation.status()},destroy:function(){this.stop();k.forEach(this._connects,function(a){a.remove()})}});f.extend(n,a);l.combine=function(a){return new n(f.isArray(a)?a:Array.prototype.slice.call(a,0))};l.wipeIn=function(a){var b=a.node=g.byId(a.node),h=b.style,n;a=c.animateProperty(f.mixin({properties:{height:{start:function(){n=
h.overflow;h.overflow="hidden";if("hidden"==h.visibility||"none"==h.display)return h.height="1px",h.display="",h.visibility="",1;var a=d.get(b,"height");return Math.max(a,1)},end:function(){return b.scrollHeight}}}},a));var p=function(){h.height="auto";h.overflow=n};e.after(a,"onStop",p,!0);e.after(a,"onEnd",p,!0);return a};l.wipeOut=function(a){var b=(a.node=g.byId(a.node)).style,d;a=c.animateProperty(f.mixin({properties:{height:{end:1}}},a));e.after(a,"beforeBegin",function(){d=b.overflow;b.overflow=
"hidden";b.display=""},!0);var h=function(){b.overflow=d;b.height="auto";b.display="none"};e.after(a,"onStop",h,!0);e.after(a,"onEnd",h,!0);return a};l.slideTo=function(a){var h=null,n=null,p=function(a){return function(){var c=d.getComputedStyle(a),e=c.position;h="absolute"==e?a.offsetTop:parseInt(c.top)||0;n="absolute"==e?a.offsetLeft:parseInt(c.left)||0;"absolute"!=e&&"relative"!=e&&(c=b.position(a,!0),h=c.y,n=c.x,a.style.position="absolute",a.style.top=h+"px",a.style.left=n+"px")}}(a.node=g.byId(a.node));
p();a=c.animateProperty(f.mixin({properties:{top:a.top||0,left:a.left||0}},a));e.after(a,"beforeBegin",p,!0);return a};return l})},"dijit/_Contained":function(){define(["dojo/_base/declare","./registry"],function(f,m){return f("dijit._Contained",null,{_getSibling:function(f){var k=this.getParent();return k&&k._getSiblingOfChild&&k._getSiblingOfChild(this,"previous"==f?-1:1)||null},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},
getIndexInParent:function(){var f=this.getParent();return!f||!f.getIndexOfChild?-1:f.getIndexOfChild(this)}})})},"dijit/_KeyNavMixin":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on dijit/registry dijit/_FocusMixin".split(" "),function(f,m,l,k,e,c,g,d){return m("dijit._KeyNavMixin",d,{tabIndex:"0",childSelector:null,postCreate:function(){this.inherited(arguments);l.set(this.domNode,"tabIndex",this.tabIndex);if(!this._keyNavCodes){var b=this._keyNavCodes=
{};b[k.HOME]=e.hitch(this,"focusFirstChild");b[k.END]=e.hitch(this,"focusLastChild");b[this.isLeftToRight()?k.LEFT_ARROW:k.RIGHT_ARROW]=e.hitch(this,"_onLeftArrow");b[this.isLeftToRight()?k.RIGHT_ARROW:k.LEFT_ARROW]=e.hitch(this,"_onRightArrow");b[k.UP_ARROW]=e.hitch(this,"_onUpArrow");b[k.DOWN_ARROW]=e.hitch(this,"_onDownArrow")}var a=this,b="string"==typeof this.childSelector?this.childSelector:e.hitch(this,"childSelector");this.own(c(this.domNode,"keypress",e.hitch(this,"_onContainerKeypress")),
c(this.domNode,"keydown",e.hitch(this,"_onContainerKeydown")),c(this.domNode,"focus",e.hitch(this,"_onContainerFocus")),c(this.containerNode,c.selector(b,"focusin"),function(b){a._onChildFocus(g.getEnclosingWidget(this),b)}))},_onLeftArrow:function(){},_onRightArrow:function(){},_onUpArrow:function(){},_onDownArrow:function(){},focus:function(){this.focusFirstChild()},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,
-1)},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild())},focusLastChild:function(){this.focusChild(this._getLastFocusableChild())},focusChild:function(b,a){b&&(this.focusedChild&&b!==this.focusedChild&&this._onChildBlur(this.focusedChild),b.set("tabIndex",this.tabIndex),b.focus(a?"end":"start"))},_onContainerFocus:function(b){b.target!==this.domNode||this.focusedChild||this.focus()},_onFocus:function(){l.set(this.domNode,"tabIndex","-1");this.inherited(arguments)},_onBlur:function(b){l.set(this.domNode,
"tabIndex",this.tabIndex);this.focusedChild&&(this.focusedChild.set("tabIndex","-1"),this.lastFocusedChild=this.focusedChild,this._set("focusedChild",null));this.inherited(arguments)},_onChildFocus:function(b){b&&b!=this.focusedChild&&(this.focusedChild&&!this.focusedChild._destroyed&&this.focusedChild.set("tabIndex","-1"),b.set("tabIndex",this.tabIndex),this.lastFocused=b,this._set("focusedChild",b))},_searchString:"",multiCharSearchDuration:1E3,onKeyboardSearch:function(b,a,c,d){b&&this.focusChild(b)},
_keyboardSearchCompare:function(b,a){var c=b.domNode,c=(b.label||(c.focusNode?c.focusNode.label:"")||c.innerText||c.textContent||"").replace(/^\s+/,"").substr(0,a.length).toLowerCase();return a.length&&c==a?-1:0},_onContainerKeydown:function(b){var a=this._keyNavCodes[b.keyCode];a?(a(b,this.focusedChild),b.stopPropagation(),b.preventDefault(),this._searchString=""):b.keyCode==k.SPACE&&(this._searchTimer&&!b.ctrlKey&&!b.altKey&&!b.metaKey)&&(b.stopImmediatePropagation(),b.preventDefault(),this._keyboardSearch(b,
" "))},_onContainerKeypress:function(b){b.charCode<=k.SPACE||(b.ctrlKey||b.altKey||b.metaKey)||(b.preventDefault(),b.stopPropagation(),this._keyboardSearch(b,String.fromCharCode(b.charCode).toLowerCase()))},_keyboardSearch:function(b,a){var c=null,d,g=0;e.hitch(this,function(){this._searchTimer&&this._searchTimer.remove();this._searchString+=a;var b=/^(.)\1*$/.test(this._searchString)?1:this._searchString.length;d=this._searchString.substr(0,b);this._searchTimer=this.defer(function(){this._searchTimer=
null;this._searchString=""},this.multiCharSearchDuration);var e=this.focusedChild||null;if(1==b||!e)if(e=this._getNextFocusableChild(e,1),!e)return;b=e;do{var f=this._keyboardSearchCompare(e,d);f&&0==g++&&(c=e);if(-1==f){g=-1;break}e=this._getNextFocusableChild(e,1)}while(e&&e!=b)})();this.onKeyboardSearch(c,b,d,g)},_onChildBlur:function(){},_getNextFocusableChild:function(b,a){var c=b;do{if(b)b=this._getNext(b,a);else if(b=this[0<a?"_getFirst":"_getLast"](),!b)break;if(null!=b&&b!=c&&b.isFocusable())return b}while(b!=
c);return null},_getFirst:function(){return null},_getLast:function(){return null},_getNext:function(b,a){if(b)for(b=b.domNode;b;)if((b=b[0>a?"previousSibling":"nextSibling"])&&"getAttribute"in b){var c=g.byNode(b);if(c)return c}return null}})})},"dijit/tree/_dndSelector":function(){define("dojo/_base/array dojo/_base/declare dojo/_base/kernel dojo/_base/lang dojo/dnd/common dojo/dom dojo/mouse dojo/on dojo/touch ../a11yclick ./_dndContainer".split(" "),function(f,m,l,k,e,c,g,d,b,a,h){return m("dijit.tree._dndSelector",
h,{constructor:function(){this.selection={};this.anchor=null;this.events.push(d(this.tree.domNode,b.press,k.hitch(this,"onMouseDown")),d(this.tree.domNode,b.release,k.hitch(this,"onMouseUp")),d(this.tree.domNode,b.move,k.hitch(this,"onMouseMove")),d(this.tree.domNode,a.press,k.hitch(this,"onClickPress")),d(this.tree.domNode,a.release,k.hitch(this,"onClickRelease")))},singular:!1,getSelectedTreeNodes:function(){var a=[],b=this.selection,c;for(c in b)a.push(b[c]);return a},selectNone:function(){this.setSelection([]);
return this},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null},addTreeNode:function(a,b){this.setSelection(this.getSelectedTreeNodes().concat([a]));b&&(this.anchor=a);return a},removeTreeNode:function(a){var b=f.filter(this.getSelectedTreeNodes(),function(b){return!c.isDescendant(b.domNode,a.domNode)});this.setSelection(b);return a},isTreeNodeSelected:function(a){return a.id&&!!this.selection[a.id]},setSelection:function(a){var b=this.getSelectedTreeNodes();f.forEach(this._setDifference(b,
a),k.hitch(this,function(a){a.setSelected(!1);this.anchor==a&&delete this.anchor;delete this.selection[a.id]}));f.forEach(this._setDifference(a,b),k.hitch(this,function(a){a.setSelected(!0);this.selection[a.id]=a}));this._updateSelectionProperties()},_setDifference:function(a,b){f.forEach(b,function(a){a.__exclude__=!0});var c=f.filter(a,function(a){return!a.__exclude__});f.forEach(b,function(a){delete a.__exclude__});return c},_updateSelectionProperties:function(){var a=this.getSelectedTreeNodes(),
b=[],c=[];f.forEach(a,function(a){var d=a.getTreePath();c.push(a);b.push(d)},this);a=f.map(c,function(a){return a.item});this.tree._set("paths",b);this.tree._set("path",b[0]||[]);this.tree._set("selectedNodes",c);this.tree._set("selectedNode",c[0]||null);this.tree._set("selectedItems",a);this.tree._set("selectedItem",a[0]||null)},onClickPress:function(a){if(!this.current||!this.current.isExpandable||!this.tree.isExpandoNode(a.target,this.current)){"mousedown"==a.type&&g.isLeft(a)&&a.preventDefault();
var b="keydown"==a.type?this.tree.focusedChild:this.current;if(b){var c=e.getCopyKeyState(a),d=b.id;!this.singular&&!a.shiftKey&&this.selection[d]?this._doDeselect=!0:(this._doDeselect=!1,this.userSelect(b,c,a.shiftKey))}}},onClickRelease:function(a){this._doDeselect&&(this._doDeselect=!1,this.userSelect("keyup"==a.type?this.tree.focusedChild:this.current,e.getCopyKeyState(a),a.shiftKey))},onMouseMove:function(){this._doDeselect=!1},onMouseDown:function(){},onMouseUp:function(){},_compareNodes:function(a,
b){if(a===b)return 0;if("sourceIndex"in document.documentElement)return a.sourceIndex-b.sourceIndex;if("compareDocumentPosition"in document.documentElement)return a.compareDocumentPosition(b)&2?1:-1;if(document.createRange){var c=doc.createRange();c.setStartBefore(a);var d=doc.createRange();d.setStartBefore(b);return c.compareBoundaryPoints(c.END_TO_END,d)}throw Error("dijit.tree._compareNodes don't know how to compare two different nodes in this browser");},userSelect:function(a,b,c){if(this.singular)this.anchor==
a&&b?this.selectNone():(this.setSelection([a]),this.anchor=a);else if(c&&this.anchor){b=this._compareNodes(this.anchor.rowNode,a.rowNode);c=this.anchor;0>b?b=c:(b=a,a=c);for(c=[];b!=a;)c.push(b),b=this.tree._getNext(b);c.push(a);this.setSelection(c)}else this.selection[a.id]&&b?this.removeTreeNode(a):b?this.addTreeNode(a,!0):(this.setSelection([a]),this.anchor=a)},getItem:function(a){return{data:this.selection[a],type:["treeNode"]}},forInSelectedItems:function(a,b){b=b||l.global;for(var c in this.selection)a.call(b,
this.getItem(c),c,this)}})})},"dojo/dnd/common":function(){define(["../sniff","../_base/kernel","../_base/lang","../dom"],function(f,m,l,k){var e=l.getObject("dojo.dnd",!0);e.getCopyKeyState=function(c){return c[f("mac")?"metaKey":"ctrlKey"]};e._uniqueId=0;e.getUniqueId=function(){var c;do c=m._scopeName+"Unique"+ ++e._uniqueId;while(k.byId(c));return c};e._empty={};e.isFormElement=function(c){c=c.target;3==c.nodeType&&(c=c.parentNode);return 0<=" a button textarea input select option ".indexOf(" "+
c.tagName.toLowerCase()+" ")};return e})},"dijit/tree/_dndContainer":function(){define("dojo/aspect dojo/_base/declare dojo/dom-class dojo/_base/lang dojo/on dojo/touch".split(" "),function(f,m,l,k,e,c){return m("dijit.tree._dndContainer",null,{constructor:function(g,d){this.tree=g;this.node=g.domNode;k.mixin(this,d);this.containerState="";l.add(this.node,"dojoDndContainer");this.events=[e(this.node,c.enter,k.hitch(this,"onOverEvent")),e(this.node,c.leave,k.hitch(this,"onOutEvent")),f.after(this.tree,
"_onNodeMouseEnter",k.hitch(this,"onMouseOver"),!0),f.after(this.tree,"_onNodeMouseLeave",k.hitch(this,"onMouseOut"),!0),e(this.node,"dragstart, selectstart",function(b){b.preventDefault()})]},destroy:function(){for(var c;c=this.events.pop();)c.remove();this.node=this.parent=null},onMouseOver:function(c){this.current=c},onMouseOut:function(){this.current=null},_changeState:function(c,d){var b="dojoDnd"+c,a=c.toLowerCase()+"State";l.replace(this.node,b+d,b+this[a]);this[a]=d},_addItemClass:function(c,
d){l.add(c,"dojoDndItem"+d)},_removeItemClass:function(c,d){l.remove(c,"dojoDndItem"+d)},onOverEvent:function(){this._changeState("Container","Over")},onOutEvent:function(){this._changeState("Container","")}})})},"dijit/tree/dndSource":function(){define("dojo/_base/array dojo/_base/declare dojo/dnd/common dojo/dom-class dojo/dom-geometry dojo/_base/lang dojo/mouse dojo/on dojo/touch dojo/topic dojo/dnd/Manager ./_dndSelector".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p){return m("dijit.tree.dndSource",
p,{isSource:!0,accept:["text","treeNode"],copyOnly:!1,dragThreshold:5,betweenThreshold:0,generateText:!0,constructor:function(b,d){d||(d={});c.mixin(this,d);var h=d.accept instanceof Array?d.accept:["text","treeNode"];this.accept=null;if(h.length){this.accept={};for(var e=0;e<h.length;++e)this.accept[h[e]]=1}this.mouseDown=this.isDragging=!1;this.targetBox=this.targetAnchor=null;this.dropPosition="";this._lastY=this._lastX=0;this.sourceState="";this.isSource&&k.add(this.node,"dojoDndSource");this.targetState=
"";this.accept&&k.add(this.node,"dojoDndTarget");this.topics=[a.subscribe("/dnd/source/over",c.hitch(this,"onDndSourceOver")),a.subscribe("/dnd/start",c.hitch(this,"onDndStart")),a.subscribe("/dnd/drop",c.hitch(this,"onDndDrop")),a.subscribe("/dnd/cancel",c.hitch(this,"onDndCancel"))]},checkAcceptance:function(){return!0},copyState:function(a){return this.copyOnly||a},destroy:function(){this.inherited(arguments);for(var a;a=this.topics.pop();)a.remove();this.targetAnchor=null},_onDragMouse:function(a,
b){var c=h.manager(),d=this.targetAnchor,g=this.current,f=this.dropPosition,p="Over";if(g&&0<this.betweenThreshold){if(!this.targetBox||d!=g)this.targetBox=e.position(g.rowNode,!0);a.pageY-this.targetBox.y<=this.betweenThreshold?p="Before":a.pageY-this.targetBox.y>=this.targetBox.h-this.betweenThreshold&&(p="After")}if(b||g!=d||p!=f){d&&this._removeItemClass(d.rowNode,f);g&&this._addItemClass(g.rowNode,p);if(g)if(g==this.tree.rootNode&&"Over"!=p)c.canDrop(!1);else{f=d=!1;if(c.source==this){var f=
"Over"===p,k;for(k in this.selection){var l=this.selection[k];if(l.item===g.item){d=!0;break}l.getParent().id!==g.id&&(f=!1)}}c.canDrop(!d&&!f&&!this._isParentChildDrop(c.source,g.rowNode)&&this.checkItemAcceptance(g.rowNode,c.source,p.toLowerCase()))}else c.canDrop(!1);this.targetAnchor=g;this.dropPosition=p}},onMouseMove:function(a){if(!(this.isDragging&&"Disabled"==this.targetState)){this.inherited(arguments);var b=h.manager();if(this.isDragging)this._onDragMouse(a);else if(this.mouseDown&&this.isSource&&
(Math.abs(a.pageX-this._lastX)>=this.dragThreshold||Math.abs(a.pageY-this._lastY)>=this.dragThreshold)){var c=this.getSelectedTreeNodes();if(c.length){if(1<c.length){var d=this.selection,e=0,g=[],p,k;a:for(;p=c[e++];){for(k=p.getParent();k&&k!==this.tree;k=k.getParent())if(d[k.id])continue a;g.push(p)}c=g}c=f.map(c,function(a){return a.domNode});b.startDrag(this,c,this.copyState(l.getCopyKeyState(a)));this._onDragMouse(a,!0)}}}},onMouseDown:function(a){if("touchstart"==a.type||g.isLeft(a))this.mouseDown=
!0,this.mouseButton=a.button,this._lastX=a.pageX,this._lastY=a.pageY;this.inherited(arguments)},onMouseUp:function(a){this.mouseDown&&(this.mouseDown=!1,this.inherited(arguments))},onMouseOut:function(){this.inherited(arguments);this._unmarkTargetAnchor()},checkItemAcceptance:function(){return!0},onDndSourceOver:function(a){this!=a?(this.mouseDown=!1,this._unmarkTargetAnchor()):this.isDragging&&h.manager().canDrop(!1)},onDndStart:function(a,b,c){this.isSource&&this._changeState("Source",this==a?c?
"Copied":"Moved":"");b=this.checkAcceptance(a,b);this._changeState("Target",b?"":"Disabled");this==a&&h.manager().overSource(this);this.isDragging=!0},itemCreator:function(a){return f.map(a,function(a){return{id:a.id,name:a.textContent||a.innerText||""}})},onDndDrop:function(a,b,c){if("Over"==this.containerState){var d=this.tree,h=d.model,e=this.targetAnchor,g=!1;this.isDragging=!1;var p,k,l;p=e&&e.item||d.item;"Before"==this.dropPosition||"After"==this.dropPosition?(p=e.getParent()&&e.getParent().item||
d.item,k=e.getIndexInParent(),"After"==this.dropPosition?(k=e.getIndexInParent()+1,l=e.getNextSibling()&&e.getNextSibling().item):l=e.item):(p=e&&e.item||d.item,g=!0);var m;f.forEach(b,function(d,g){var s=a.getItem(d.id);if(-1!=f.indexOf(s.type,"treeNode"))var u=s.data,L=u.item,I=u.getParent().item;a==this?("number"==typeof k&&p==I&&u.getIndexInParent()<k&&(k-=1),h.pasteItem(L,I,p,c,k,l)):h.isItem(L)?h.pasteItem(L,I,p,c,k,l):(m||(m=this.itemCreator(b,e.rowNode,a)),h.newItem(m[g],p,k,l))},this);g&&
this.tree._expandNode(e)}this.onDndCancel()},onDndCancel:function(){this._unmarkTargetAnchor();this.mouseDown=this.isDragging=!1;delete this.mouseButton;this._changeState("Source","");this._changeState("Target","")},onOverEvent:function(){this.inherited(arguments);h.manager().overSource(this)},onOutEvent:function(){this._unmarkTargetAnchor();var a=h.manager();this.isDragging&&a.canDrop(!1);a.outSource(this);this.inherited(arguments)},_isParentChildDrop:function(a,b){if(!a.tree||a.tree!=this.tree)return!1;
for(var c=a.tree.domNode,d=a.selection,e=b.parentNode;e!=c&&!d[e.id];)e=e.parentNode;return e.id&&d[e.id]},_unmarkTargetAnchor:function(){this.targetAnchor&&(this._removeItemClass(this.targetAnchor.rowNode,this.dropPosition),this.dropPosition=this.targetBox=this.targetAnchor=null)},_markDndStatus:function(a){this._changeState("Source",a?"Copied":"Moved")}})})},"dojo/dnd/Manager":function(){define("../_base/array ../_base/declare ../_base/lang ../_base/window ../dom-class ../Evented ../has ../keys ../on ../topic ../touch ./common ./autoscroll ./Avatar".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t){var q=m("dojo.dnd.Manager",[c],{constructor:function(){this.source=this.avatar=null;this.nodes=[];this.copy=!0;this.target=null;this.canDropFlag=!1;this.events=[]},OFFSET_X:g("touch")?0:16,OFFSET_Y:g("touch")?-64:16,overSource:function(b){this.avatar&&(this.target=b&&"Disabled"!=b.targetState?b:null,this.canDropFlag=Boolean(this.target),this.avatar.update());a.publish("/dnd/source/over",b)},outSource:function(b){this.avatar?this.target==b&&(this.target=null,this.canDropFlag=
!1,this.avatar.update(),a.publish("/dnd/source/over",null)):a.publish("/dnd/source/over",null)},startDrag:function(c,d,g){function f(a){a.preventDefault();a.stopPropagation()}n.autoScrollStart(k.doc);this.source=c;this.nodes=d;this.copy=Boolean(g);this.avatar=this.makeAvatar();k.body().appendChild(this.avatar.node);a.publish("/dnd/start",c,d,this.copy);this.events=[b(k.doc,h.move,l.hitch(this,"onMouseMove")),b(k.doc,h.release,l.hitch(this,"onMouseUp")),b(k.doc,"keydown",l.hitch(this,"onKeyDown")),
b(k.doc,"keyup",l.hitch(this,"onKeyUp")),b(k.doc,"dragstart",f),b(k.body(),"selectstart",f)];e.add(k.body(),"dojoDnd"+(g?"Copy":"Move"))},canDrop:function(a){a=Boolean(this.target&&a);this.canDropFlag!=a&&(this.canDropFlag=a,this.avatar.update())},stopDrag:function(){e.remove(k.body(),["dojoDndCopy","dojoDndMove"]);f.forEach(this.events,function(a){a.remove()});this.events=[];this.avatar.destroy();this.source=this.target=this.avatar=null;this.nodes=[]},makeAvatar:function(){return new t(this)},updateAvatar:function(){this.avatar.update()},
onMouseMove:function(a){var b=this.avatar;b&&(n.autoScrollNodes(a),b=b.node.style,b.left=a.pageX+this.OFFSET_X+"px",b.top=a.pageY+this.OFFSET_Y+"px",b=Boolean(this.source.copyState(p.getCopyKeyState(a))),this.copy!=b&&this._setCopyStatus(b));g("touch")&&a.preventDefault()},onMouseUp:function(b){if(this.avatar){if(this.target&&this.canDropFlag){var c=Boolean(this.source.copyState(p.getCopyKeyState(b)));a.publish("/dnd/drop/before",this.source,this.nodes,c,this.target,b);a.publish("/dnd/drop",this.source,
this.nodes,c,this.target,b)}else a.publish("/dnd/cancel");this.stopDrag()}},onKeyDown:function(b){if(this.avatar)switch(b.keyCode){case d.CTRL:b=Boolean(this.source.copyState(!0));this.copy!=b&&this._setCopyStatus(b);break;case d.ESCAPE:a.publish("/dnd/cancel"),this.stopDrag()}},onKeyUp:function(a){this.avatar&&a.keyCode==d.CTRL&&(a=Boolean(this.source.copyState(!1)),this.copy!=a&&this._setCopyStatus(a))},_setCopyStatus:function(a){this.copy=a;this.source._markDndStatus(this.copy);this.updateAvatar();
e.replace(k.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"))}});p._manager=null;q.manager=p.manager=function(){p._manager||(p._manager=new q);return p._manager};return q})},"dojo/dnd/autoscroll":function(){define("../_base/lang ../sniff ../_base/window ../dom-geometry ../dom-style ../window".split(" "),function(f,m,l,k,e,c){var g={};f.setObject("dojo.dnd.autoscroll",g);g.getViewport=c.getBox;g.V_TRIGGER_AUTOSCROLL=32;g.H_TRIGGER_AUTOSCROLL=32;g.V_AUTOSCROLL_VALUE=16;
g.H_AUTOSCROLL_VALUE=16;var d,b=l.doc,a=Infinity,h=Infinity;g.autoScrollStart=function(e){b=e;d=c.getBox(b);e=l.body(b).parentNode;a=Math.max(e.scrollHeight-d.h,0);h=Math.max(e.scrollWidth-d.w,0)};g.autoScroll=function(e){var f=d||c.getBox(b),k=l.body(b).parentNode,q=0,s=0;e.clientX<g.H_TRIGGER_AUTOSCROLL?q=-g.H_AUTOSCROLL_VALUE:e.clientX>f.w-g.H_TRIGGER_AUTOSCROLL&&(q=Math.min(g.H_AUTOSCROLL_VALUE,h-k.scrollLeft));e.clientY<g.V_TRIGGER_AUTOSCROLL?s=-g.V_AUTOSCROLL_VALUE:e.clientY>f.h-g.V_TRIGGER_AUTOSCROLL&&
(s=Math.min(g.V_AUTOSCROLL_VALUE,a-k.scrollTop));window.scrollBy(q,s)};g._validNodes={div:1,p:1,td:1};g._validOverflow={auto:1,scroll:1};g.autoScrollNodes=function(a){for(var b,c,d,h,f,w,u=0,v=0,x=a.target;x;){if(1==x.nodeType&&x.tagName.toLowerCase()in g._validNodes){d=e.getComputedStyle(x);h=d.overflow.toLowerCase()in g._validOverflow;f=d.overflowX.toLowerCase()in g._validOverflow;w=d.overflowY.toLowerCase()in g._validOverflow;if(h||f||w)b=k.getContentBox(x,d),c=k.position(x,!0);if(h||f){d=Math.min(g.H_TRIGGER_AUTOSCROLL,
b.w/2);f=a.pageX-c.x;if(m("webkit")||m("opera"))f+=l.body().scrollLeft;u=0;0<f&&f<b.w&&(f<d?u=-d:f>b.w-d&&(u=d),x.scrollLeft+=u)}if(h||w){h=Math.min(g.V_TRIGGER_AUTOSCROLL,b.h/2);w=a.pageY-c.y;if(m("webkit")||m("opera"))w+=l.body().scrollTop;v=0;0<w&&w<b.h&&(w<h?v=-h:w>b.h-h&&(v=h),x.scrollTop+=v)}if(u||v)return}try{x=x.parentNode}catch(y){x=null}}g.autoScroll(a)};return g})},"dojo/dnd/Avatar":function(){define("../_base/declare ../_base/window ../dom ../dom-attr ../dom-class ../dom-construct ../hccss ../query".split(" "),
function(f,m,l,k,e,c,g,d){return f("dojo.dnd.Avatar",null,{constructor:function(b){this.manager=b;this.construct()},construct:function(){var b=c.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),a=this.manager.source,d,e=c.create("tbody",null,b),f=c.create("tr",null,e),l=c.create("td",null,f),q=Math.min(5,this.manager.nodes.length),s=0;g("highcontrast")&&c.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"\x3c"},l);c.create("span",{innerHTML:a.generateText?
this._generateText():""},l);for(k.set(f,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});s<q;++s)a.creator?d=a._normalizedCreator(a.getItem(this.manager.nodes[s].id).data,"avatar").node:(d=this.manager.nodes[s].cloneNode(!0),"tr"==d.tagName.toLowerCase()&&(f=c.create("table"),c.create("tbody",null,f).appendChild(d),d=f)),d.id="",f=c.create("tr",null,e),l=c.create("td",null,f),l.appendChild(d),k.set(f,{"class":"dojoDndAvatarItem",style:{opacity:(9-s)/10}});this.node=b},destroy:function(){c.destroy(this.node);
this.node=!1},update:function(){e.toggle(this.node,"dojoDndAvatarCanDrop",this.manager.canDropFlag);if(g("highcontrast")){var b=l.byId("a11yIcon"),a="+";this.manager.canDropFlag&&!this.manager.copy?a="\x3c ":!this.manager.canDropFlag&&!this.manager.copy?a="o":this.manager.canDropFlag||(a="x");b.innerHTML=a}d("tr.dojoDndAvatarHeader td span"+(g("highcontrast")?" span":""),this.node).forEach(function(a){a.innerHTML=this.manager.source.generateText?this._generateText():""},this)},_generateText:function(){return this.manager.nodes.length.toString()}})})},
"dojo/data/ItemFileWriteStore":function(){define("../_base/lang ../_base/declare ../_base/array ../_base/json ../_base/kernel ./ItemFileReadStore ../date/stamp".split(" "),function(f,m,l,k,e,c,g){return m("dojo.data.ItemFileWriteStore",c,{constructor:function(c){this._features["dojo.data.api.Write"]=!0;this._features["dojo.data.api.Notification"]=!0;this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};this._datatypeMap.Date.serialize||(this._datatypeMap.Date.serialize=function(b){return g.toISOString(b,
{zulu:!0})});c&&!1===c.referenceIntegrity&&(this.referenceIntegrity=!1);this._saveInProgress=!1},referenceIntegrity:!0,_assert:function(c){if(!c)throw Error("assertion failed in ItemFileWriteStore");},_getIdentifierAttribute:function(){return this.getFeatures()["dojo.data.api.Identity"]},newItem:function(c,b){this._assert(!this._saveInProgress);this._loadFinished||this._forceLoad();if("object"!=typeof c&&"undefined"!=typeof c)throw Error("newItem() was passed something other than an object");var a=
null,e=this._getIdentifierAttribute();if(e===Number)a=this._arrayOfAllItems.length;else{a=c[e];if("undefined"===typeof a)throw Error("newItem() was not passed an identity for the new item");if(f.isArray(a))throw Error("newItem() was not passed an single-valued identity");}this._itemsByIdentity&&this._assert("undefined"===typeof this._itemsByIdentity[a]);this._assert("undefined"===typeof this._pending._newItems[a]);this._assert("undefined"===typeof this._pending._deletedItems[a]);var g={};g[this._storeRefPropName]=
this;g[this._itemNumPropName]=this._arrayOfAllItems.length;this._itemsByIdentity&&(this._itemsByIdentity[a]=g,g[e]=[a]);this._arrayOfAllItems.push(g);e=null;if(b&&b.parent&&b.attribute){var e={item:b.parent,attribute:b.attribute,oldValue:void 0},n=this.getValues(b.parent,b.attribute);if(n&&0<n.length){var k=n.slice(0,n.length);e.oldValue=1===n.length?n[0]:n.slice(0,n.length);k.push(g);this._setValueOrValues(b.parent,b.attribute,k,!1);e.newValue=this.getValues(b.parent,b.attribute)}else this._setValueOrValues(b.parent,
b.attribute,g,!1),e.newValue=g}else g[this._rootItemPropName]=!0,this._arrayOfTopLevelItems.push(g);this._pending._newItems[a]=g;for(var q in c){if(q===this._storeRefPropName||q===this._itemNumPropName)throw Error("encountered bug in ItemFileWriteStore.newItem");a=c[q];f.isArray(a)||(a=[a]);g[q]=a;if(this.referenceIntegrity)for(n=0;n<a.length;n++)k=a[n],this.isItem(k)&&this._addReferenceToMap(k,g,q)}this.onNew(g,e);return g},_removeArrayElement:function(c,b){var a=l.indexOf(c,b);return-1!=a?(c.splice(a,
1),!0):!1},deleteItem:function(c){this._assert(!this._saveInProgress);this._assertIsItem(c);var b=c[this._itemNumPropName],a=this.getIdentity(c);if(this.referenceIntegrity){var e=this.getAttributes(c);c[this._reverseRefMap]&&(c["backup_"+this._reverseRefMap]=f.clone(c[this._reverseRefMap]));l.forEach(e,function(a){l.forEach(this.getValues(c,a),function(b){this.isItem(b)&&(c["backupRefs_"+this._reverseRefMap]||(c["backupRefs_"+this._reverseRefMap]=[]),c["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(b),
attr:a}),this._removeReferenceFromMap(b,c,a))},this)},this);if(e=c[this._reverseRefMap])for(var g in e){var n=null;if(n=this._itemsByIdentity?this._itemsByIdentity[g]:this._arrayOfAllItems[g])for(var k in e[g]){var q=this.getValues(n,k)||[],s=l.filter(q,function(b){return!(this.isItem(b)&&this.getIdentity(b)==a)},this);this._removeReferenceFromMap(c,n,k);s.length<q.length&&this._setValueOrValues(n,k,s,!0)}}}this._arrayOfAllItems[b]=null;c[this._storeRefPropName]=null;this._itemsByIdentity&&delete this._itemsByIdentity[a];
this._pending._deletedItems[a]=c;c[this._rootItemPropName]&&this._removeArrayElement(this._arrayOfTopLevelItems,c);this.onDelete(c);return!0},setValue:function(c,b,a){return this._setValueOrValues(c,b,a,!0)},setValues:function(c,b,a){return this._setValueOrValues(c,b,a,!0)},unsetAttribute:function(c,b){return this._setValueOrValues(c,b,[],!0)},_setValueOrValues:function(c,b,a,e){this._assert(!this._saveInProgress);this._assertIsItem(c);this._assert(f.isString(b));this._assert("undefined"!==typeof a);
var g=this._getIdentifierAttribute();if(b==g)throw Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");var g=this._getValueOrValues(c,b),n=this.getIdentity(c);if(!this._pending._modifiedItems[n]){var k={},q;for(q in c)k[q]=q===this._storeRefPropName||q===this._itemNumPropName||q===this._rootItemPropName?c[q]:q===this._reverseRefMap?f.clone(c[q]):c[q].slice(0,c[q].length);this._pending._modifiedItems[n]=k}n=!1;if(f.isArray(a)&&0===a.length){if(n=delete c[b],
a=void 0,this.referenceIntegrity&&g){q=g;f.isArray(q)||(q=[q]);for(var s=0;s<q.length;s++)k=q[s],this.isItem(k)&&this._removeReferenceFromMap(k,c,b)}}else{n=f.isArray(a)?a.slice(0,a.length):[a];if(this.referenceIntegrity)if(g){q=g;f.isArray(q)||(q=[q]);var r={};l.forEach(q,function(a){this.isItem(a)&&(a=this.getIdentity(a),r[a.toString()]=!0)},this);l.forEach(n,function(a){if(this.isItem(a)){var e=this.getIdentity(a);r[e.toString()]?delete r[e.toString()]:this._addReferenceToMap(a,c,b)}},this);for(s in r)this._removeReferenceFromMap(this._itemsByIdentity?
this._itemsByIdentity[s]:this._arrayOfAllItems[s],c,b)}else for(s=0;s<n.length;s++)k=n[s],this.isItem(k)&&this._addReferenceToMap(k,c,b);c[b]=n;n=!0}if(e)this.onSet(c,b,g,a);return n},_addReferenceToMap:function(c,b,a){b=this.getIdentity(b);var e=c[this._reverseRefMap];e||(e=c[this._reverseRefMap]={});(c=e[b])||(c=e[b]={});c[a]=!0},_removeReferenceFromMap:function(c,b,a){b=this.getIdentity(b);var e=c[this._reverseRefMap],g;if(e){for(g in e)g==b&&(delete e[g][a],this._isEmpty(e[g])&&delete e[g]);this._isEmpty(e)&&
delete c[this._reverseRefMap]}},_dumpReferenceMap:function(){var c;for(c=0;c<this._arrayOfAllItems.length;c++);},_getValueOrValues:function(c,b){var a=void 0;this.hasAttribute(c,b)&&(a=this.getValues(c,b),a=1==a.length?a[0]:a);return a},_flatten:function(c){if(this.isItem(c))return{_reference:this.getIdentity(c)};if("object"===typeof c)for(var b in this._datatypeMap){var a=this._datatypeMap[b];if(f.isObject(a)&&!f.isFunction(a)){if(c instanceof a.type){if(!a.serialize)throw Error("ItemFileWriteStore:  No serializer defined for type mapping: ["+
b+"]");return{_type:b,_value:a.serialize(c)}}}else if(c instanceof a)return{_type:b,_value:c.toString()}}return c},_getNewFileContentString:function(){var c={},b=this._getIdentifierAttribute();b!==Number&&(c.identifier=b);this._labelAttr&&(c.label=this._labelAttr);c.items=[];for(b=0;b<this._arrayOfAllItems.length;++b){var a=this._arrayOfAllItems[b];if(null!==a){var e={},g;for(g in a)if(g!==this._storeRefPropName&&g!==this._itemNumPropName&&g!==this._reverseRefMap&&g!==this._rootItemPropName){var f=
this.getValues(a,g);if(1==f.length)e[g]=this._flatten(f[0]);else for(var l=[],q=0;q<f.length;++q)l.push(this._flatten(f[q])),e[g]=l}c.items.push(e)}}return k.toJson(c,!0)},_isEmpty:function(c){var b=!0;if(f.isObject(c))for(var a in c){b=!1;break}else f.isArray(c)&&0<c.length&&(b=!1);return b},save:function(c){this._assert(!this._saveInProgress);this._saveInProgress=!0;var b=this,a=function(){b._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};b._saveInProgress=!1;c&&c.onComplete&&c.onComplete.call(c.scope||
e.global)},g=function(a){b._saveInProgress=!1;c&&c.onError&&c.onError.call(c.scope||e.global,a)};if(this._saveEverything){var f=this._getNewFileContentString();this._saveEverything(a,g,f)}this._saveCustom&&this._saveCustom(a,g);!this._saveEverything&&!this._saveCustom&&a()},revert:function(){this._assert(!this._saveInProgress);for(var c in this._pending._modifiedItems){var b=this._pending._modifiedItems[c],a=null,a=this._itemsByIdentity?this._itemsByIdentity[c]:this._arrayOfAllItems[c];b[this._storeRefPropName]=
this;for(var e in a)delete a[e];f.mixin(a,b)}var g;for(c in this._pending._deletedItems)g=this._pending._deletedItems[c],g[this._storeRefPropName]=this,b=g[this._itemNumPropName],g["backup_"+this._reverseRefMap]&&(g[this._reverseRefMap]=g["backup_"+this._reverseRefMap],delete g["backup_"+this._reverseRefMap]),this._arrayOfAllItems[b]=g,this._itemsByIdentity&&(this._itemsByIdentity[c]=g),g[this._rootItemPropName]&&this._arrayOfTopLevelItems.push(g);for(c in this._pending._deletedItems)g=this._pending._deletedItems[c],
g["backupRefs_"+this._reverseRefMap]&&(l.forEach(g["backupRefs_"+this._reverseRefMap],function(a){this._addReferenceToMap(this._itemsByIdentity?this._itemsByIdentity[a.id]:this._arrayOfAllItems[a.id],g,a.attr)},this),delete g["backupRefs_"+this._reverseRefMap]);for(c in this._pending._newItems)b=this._pending._newItems[c],b[this._storeRefPropName]=null,this._arrayOfAllItems[b[this._itemNumPropName]]=null,b[this._rootItemPropName]&&this._removeArrayElement(this._arrayOfTopLevelItems,b),this._itemsByIdentity&&
delete this._itemsByIdentity[c];this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};return!0},isDirty:function(c){return c?(c=this.getIdentity(c),(new Boolean(this._pending._newItems[c]||this._pending._modifiedItems[c]||this._pending._deletedItems[c])).valueOf()):!this._isEmpty(this._pending._newItems)||!this._isEmpty(this._pending._modifiedItems)||!this._isEmpty(this._pending._deletedItems)},onSet:function(c,b,a,e){},onNew:function(c,b){},onDelete:function(c){},close:function(c){if(this.clearOnClose){if(this.isDirty())throw Error("dojo.data.ItemFileWriteStore: There are unsaved changes present in the store.  Please save or revert the changes before invoking close.");
this.inherited(arguments)}}})})},"dojo/data/ItemFileReadStore":function(){define("../_base/kernel ../_base/lang ../_base/declare ../_base/array ../_base/xhr ../Evented ./util/filter ./util/simpleFetch ../date/stamp".split(" "),function(f,m,l,k,e,c,g,d,b){l=l("dojo.data.ItemFileReadStore",[c],{constructor:function(a){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=!1;this.url=this._ccUrl=this._jsonFileUrl=a.url;this._jsonData=a.data;this.data=null;this._datatypeMap=a.typeMap||
{};this._datatypeMap.Date||(this._datatypeMap.Date={type:Date,deserialize:function(a){return b.fromISOString(a)}});this._features={"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=!1;this._queuedFetches=[];void 0!==a.urlPreventCache&&(this.urlPreventCache=a.urlPreventCache?!0:!1);void 0!==a.hierarchical&&(this.hierarchical=a.hierarchical?
!0:!1);a.clearOnClose&&(this.clearOnClose=!0);"failOk"in a&&(this.failOk=a.failOk?!0:!1)},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:!1,urlPreventCache:!1,failOk:!1,hierarchical:!0,_assertIsItem:function(a){if(!this.isItem(a))throw Error(this.declaredClass+": Invalid item argument.");},_assertIsAttribute:function(a){if("string"!==typeof a)throw Error(this.declaredClass+": Invalid attribute argument.");},getValue:function(a,b,c){a=this.getValues(a,b);return 0<a.length?a[0]:c},getValues:function(a,
b){this._assertIsItem(a);this._assertIsAttribute(b);return(a[b]||[]).slice(0)},getAttributes:function(a){this._assertIsItem(a);var b=[],c;for(c in a)c!==this._storeRefPropName&&(c!==this._itemNumPropName&&c!==this._rootItemPropName&&c!==this._reverseRefMap)&&b.push(c);return b},hasAttribute:function(a,b){this._assertIsItem(a);this._assertIsAttribute(b);return b in a},containsValue:function(a,b,c){var d=void 0;"string"===typeof c&&(d=g.patternToRegExp(c,!1));return this._containsValue(a,b,c,d)},_containsValue:function(a,
b,c,d){return k.some(this.getValues(a,b),function(a){if(null!==a&&!m.isObject(a)&&d){if(a.toString().match(d))return!0}else if(c===a)return!0})},isItem:function(a){return a&&a[this._storeRefPropName]===this&&this._arrayOfAllItems[a[this._itemNumPropName]]===a?!0:!1},isItemLoaded:function(a){return this.isItem(a)},loadItem:function(a){this._assertIsItem(a.item)},getFeatures:function(){return this._features},getLabel:function(a){if(this._labelAttr&&this.isItem(a))return this.getValue(a,this._labelAttr)},
getLabelAttributes:function(a){return this._labelAttr?[this._labelAttr]:null},filter:function(a,b,c){var d=[],e,f;if(a.query){var k;e=a.queryOptions?a.queryOptions.ignoreCase:!1;var l={};for(f in a.query)k=a.query[f],"string"===typeof k?l[f]=g.patternToRegExp(k,e):k instanceof RegExp&&(l[f]=k);for(e=0;e<b.length;++e){var m=!0,u=b[e];if(null===u)m=!1;else for(f in a.query)k=a.query[f],this._containsValue(u,f,k,l[f])||(m=!1);m&&d.push(u)}}else for(e=0;e<b.length;++e)f=b[e],null!==f&&d.push(f);c(d,a)},
_fetchItems:function(a,b,c){var d=this;if(this._loadFinished)this.filter(a,this._getItemsArray(a.queryOptions),b);else if(this._jsonFileUrl!==this._ccUrl?(f.deprecated(this.declaredClass+": ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0"),this.url=this._ccUrl=this._jsonFileUrl):this.url!==this._ccUrl&&(this._ccUrl=this._jsonFileUrl=this.url),null!=this.data&&(this._jsonData=this.data,this.data=null),this._jsonFileUrl)if(this._loadInProgress)this._queuedFetches.push({args:a,
filter:m.hitch(d,"filter"),findCallback:m.hitch(d,b)});else{this._loadInProgress=!0;var g=e.get({url:d._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk});g.addCallback(function(e){try{d._getItemsFromLoadedData(e),d._loadFinished=!0,d._loadInProgress=!1,d.filter(a,d._getItemsArray(a.queryOptions),b),d._handleQueuedFetches()}catch(g){d._loadFinished=!0,d._loadInProgress=!1,c(g,a)}});g.addErrback(function(b){d._loadInProgress=!1;c(b,a)});var k=null;a.abort&&
(k=a.abort);a.abort=function(){g&&-1===g.fired&&g.cancel();k&&k.call(a)}}else if(this._jsonData)try{this._loadFinished=!0,this._getItemsFromLoadedData(this._jsonData),this._jsonData=null,d.filter(a,this._getItemsArray(a.queryOptions),b)}catch(l){c(l,a)}else c(Error(this.declaredClass+": No JSON source data was provided as either URL or a nested Javascript object."),a)},_handleQueuedFetches:function(){if(0<this._queuedFetches.length){for(var a=0;a<this._queuedFetches.length;a++){var b=this._queuedFetches[a],
c=b.args,d=b.filter,b=b.findCallback;d?d(c,this._getItemsArray(c.queryOptions),b):this.fetchItemByIdentity(c)}this._queuedFetches=[]}},_getItemsArray:function(a){return a&&a.deep?this._arrayOfAllItems:this._arrayOfTopLevelItems},close:function(a){this.clearOnClose&&(this._loadFinished&&!this._loadInProgress)&&(this._arrayOfAllItems=[],this._arrayOfTopLevelItems=[],this._loadFinished=!1,this._itemsByIdentity=null,this._loadInProgress=!1,this._queuedFetches=[])},_getItemsFromLoadedData:function(a){function b(a){return null!==
a&&"object"===typeof a&&(!m.isArray(a)||d)&&!m.isFunction(a)&&(a.constructor==Object||m.isArray(a))&&"undefined"===typeof a._reference&&"undefined"===typeof a._type&&"undefined"===typeof a._value&&e.hierarchical}function c(a){e._arrayOfAllItems.push(a);for(var d in a){var g=a[d];if(g)if(m.isArray(g))for(var f=0;f<g.length;++f){var k=g[f];b(k)&&c(k)}else b(g)&&c(g)}}var d=!1,e=this;this._labelAttr=a.label;var g,f;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=a.items;for(g=0;g<this._arrayOfTopLevelItems.length;++g)f=
this._arrayOfTopLevelItems[g],m.isArray(f)&&(d=!0),c(f),f[this._rootItemPropName]=!0;var k={},l;for(g=0;g<this._arrayOfAllItems.length;++g)for(l in f=this._arrayOfAllItems[g],f){if(l!==this._rootItemPropName){var u=f[l];null!==u?m.isArray(u)||(f[l]=[u]):f[l]=[null]}k[l]=l}for(;k[this._storeRefPropName];)this._storeRefPropName+="_";for(;k[this._itemNumPropName];)this._itemNumPropName+="_";for(;k[this._reverseRefMap];)this._reverseRefMap+="_";if(k=a.identifier){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=
k;for(g=0;g<this._arrayOfAllItems.length;++g)if(f=this._arrayOfAllItems[g],a=f[k],a=a[0],Object.hasOwnProperty.call(this._itemsByIdentity,a)){if(this._jsonFileUrl)throw Error(this.declaredClass+":  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+k+"].  Value collided: ["+a+"]");if(this._jsonData)throw Error(this.declaredClass+":  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+
k+"].  Value collided: ["+a+"]");}else this._itemsByIdentity[a]=f}else this._features["dojo.data.api.Identity"]=Number;for(g=0;g<this._arrayOfAllItems.length;++g)f=this._arrayOfAllItems[g],f[this._storeRefPropName]=this,f[this._itemNumPropName]=g;for(g=0;g<this._arrayOfAllItems.length;++g)for(l in f=this._arrayOfAllItems[g],f){a=f[l];for(k=0;k<a.length;++k)if(u=a[k],null!==u&&"object"==typeof u){if("_type"in u&&"_value"in u){var v=u._type,x=this._datatypeMap[v];if(x)if(m.isFunction(x))a[k]=new x(u._value);
else if(m.isFunction(x.deserialize))a[k]=x.deserialize(u._value);else throw Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");else throw Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+v+"'");}if(u._reference){u=u._reference;if(m.isObject(u))for(v=0;v<this._arrayOfAllItems.length;++v){var x=this._arrayOfAllItems[v],y=!0,z;for(z in u)x[z]!=u[z]&&
(y=!1);y&&(a[k]=x)}else a[k]=this._getItemByIdentity(u);this.referenceIntegrity&&(u=a[k],this.isItem(u)&&this._addReferenceToMap(u,f,l))}else this.isItem(u)&&this.referenceIntegrity&&this._addReferenceToMap(u,f,l)}}},_addReferenceToMap:function(a,b,c){},getIdentity:function(a){var b=this._features["dojo.data.api.Identity"];return b===Number?a[this._itemNumPropName]:(a=a[b])?a[0]:null},fetchItemByIdentity:function(a){var b,c;if(this._loadFinished)b=this._getItemByIdentity(a.identity),a.onItem&&(c=
a.scope?a.scope:f.global,a.onItem.call(c,b));else{var d=this;this._jsonFileUrl!==this._ccUrl?(f.deprecated(this.declaredClass+": ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0"),this.url=this._ccUrl=this._jsonFileUrl):this.url!==this._ccUrl&&(this._ccUrl=this._jsonFileUrl=this.url);null!=this.data&&null==this._jsonData&&(this._jsonData=this.data,this.data=null);this._jsonFileUrl?this._loadInProgress?this._queuedFetches.push({args:a}):
(this._loadInProgress=!0,c=e.get({url:d._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk}),c.addCallback(function(c){var e=a.scope?a.scope:f.global;try{d._getItemsFromLoadedData(c),d._loadFinished=!0,d._loadInProgress=!1,b=d._getItemByIdentity(a.identity),a.onItem&&a.onItem.call(e,b),d._handleQueuedFetches()}catch(g){d._loadInProgress=!1,a.onError&&a.onError.call(e,g)}}),c.addErrback(function(b){d._loadInProgress=!1;a.onError&&a.onError.call(a.scope?
a.scope:f.global,b)})):this._jsonData&&(d._getItemsFromLoadedData(d._jsonData),d._jsonData=null,d._loadFinished=!0,b=d._getItemByIdentity(a.identity),a.onItem&&(c=a.scope?a.scope:f.global,a.onItem.call(c,b)))}},_getItemByIdentity:function(a){var b=null;this._itemsByIdentity?Object.hasOwnProperty.call(this._itemsByIdentity,a)&&(b=this._itemsByIdentity[a]):Object.hasOwnProperty.call(this._arrayOfAllItems,a)&&(b=this._arrayOfAllItems[a]);void 0===b&&(b=null);return b},getIdentityAttributes:function(a){a=
this._features["dojo.data.api.Identity"];return a===Number?null:[a]},_forceLoad:function(){var a=this;this._jsonFileUrl!==this._ccUrl?(f.deprecated(this.declaredClass+": ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0"),this.url=this._ccUrl=this._jsonFileUrl):this.url!==this._ccUrl&&(this._ccUrl=this._jsonFileUrl=this.url);null!=this.data&&(this._jsonData=this.data,this.data=null);if(this._jsonFileUrl){var b=e.get({url:this._jsonFileUrl,
handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:!0});b.addCallback(function(b){try{if(!0!==a._loadInProgress&&!a._loadFinished)a._getItemsFromLoadedData(b),a._loadFinished=!0;else if(a._loadInProgress)throw Error(this.declaredClass+":  Unable to perform a synchronous load, an async load is in progress.");}catch(c){throw c;}});b.addErrback(function(a){throw a;})}else this._jsonData&&(a._getItemsFromLoadedData(a._jsonData),a._jsonData=null,a._loadFinished=
!0)}});m.extend(l,d);return l})},"dojo/data/util/filter":function(){define(["../../_base/lang"],function(f){var m={};f.setObject("dojo.data.util.filter",m);m.patternToRegExp=function(f,k){for(var e="^",c=null,g=0;g<f.length;g++)switch(c=f.charAt(g),c){case "\\":e+=c;g++;e+=f.charAt(g);break;case "*":e+=".*";break;case "?":e+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":e+="\\";default:e+=c}e+="$";return k?RegExp(e,"mi"):RegExp(e,
"m")};return m})},"dojo/data/util/simpleFetch":function(){define(["../../_base/lang","../../_base/kernel","./sorter"],function(f,m,l){var k={};f.setObject("dojo.data.util.simpleFetch",k);k.errorHandler=function(e,c){c.onError&&c.onError.call(c.scope||m.global,e,c)};k.fetchHandler=function(e,c){var g=c.abort||null,d=!1,b=c.start?c.start:0,a=c.count&&Infinity!==c.count?b+c.count:e.length;c.abort=function(){d=!0;g&&g.call(c)};var h=c.scope||m.global;c.store||(c.store=this);c.onBegin&&c.onBegin.call(h,
e.length,c);c.sort&&e.sort(l.createSortFunction(c.sort,this));if(c.onItem)for(var f=b;f<e.length&&f<a;++f){var k=e[f];d||c.onItem.call(h,k,c)}c.onComplete&&!d&&(f=null,c.onItem||(f=e.slice(b,a)),c.onComplete.call(h,f,c))};k.fetch=function(e){e=e||{};e.store||(e.store=this);this._fetchItems(e,f.hitch(this,"fetchHandler"),f.hitch(this,"errorHandler"));return e};return k})},"dojo/data/util/sorter":function(){define(["../../_base/lang"],function(f){var m={};f.setObject("dojo.data.util.sorter",m);m.basicComparator=
function(f,k){var e=-1;null===f&&(f=void 0);null===k&&(k=void 0);if(f==k)e=0;else if(f>k||null==f)e=1;return e};m.createSortFunction=function(f,k){function e(a,b,c,d){return function(e,g){var h=d.getValue(e,a),f=d.getValue(g,a);return b*c(h,f)}}for(var c=[],g,d=k.comparatorMap,b=m.basicComparator,a=0;a<f.length;a++){g=f[a];var h=g.attribute;if(h){g=g.descending?-1:1;var p=b;d&&("string"!==typeof h&&"toString"in h&&(h=h.toString()),p=d[h]||b);c.push(e(h,g,p,k))}}return function(a,b){for(var d=0;d<
c.length;){var e=c[d++](a,b);if(0!==e)return e}return 0}};return m})},"dojo/store/Observable":function(){define(["../_base/kernel","../_base/lang","../when","../_base/array"],function(f,m,l,k){f=function(e){function c(b,c){var d=e[b];d&&(e[b]=function(g){var f;"put"===b&&(f=e.getIdentity(g));if(a)return d.apply(this,arguments);a=!0;try{var k=d.apply(this,arguments);l(k,function(a){c("object"==typeof a&&a||g,f)});return k}finally{a=!1}})}var g=[],d=0;e=m.delegate(e);e.notify=function(a,b){d++;for(var c=
g.slice(),e=0,f=c.length;e<f;e++)c[e](a,b)};var b=e.query;e.query=function(a,c){c=c||{};var f=b.apply(this,arguments);if(f&&f.forEach){var t=m.mixin({},c);delete t.start;delete t.count;var q=e.queryEngine&&e.queryEngine(a,t),s=d,r=[],w;f.observe=function(a,b){1==r.push(a)&&g.push(w=function(a,g){l(f,function(h){var f=h.length!=c.count,n,l;if(++s!=d)throw Error("Query is out of date, you must observe() the query prior to any data modifications");var m,t=-1,x=-1;if(void 0!==g){var w=[].concat(h);q&&
!a&&(w=q(h));n=0;for(l=h.length;n<l;n++){var u=h[n];if(e.getIdentity(u)==g&&!(0>w.indexOf(u))){m=u;t=n;(q||!a)&&h.splice(n,1);break}}}if(q){if(a&&(q.matches?q.matches(a):q([a]).length))n=-1<t?t:h.length,h.splice(n,0,a),x=k.indexOf(q(h),a),h.splice(n,1),c.start&&0==x||!f&&x==h.length?x=-1:h.splice(x,0,a)}else a&&(void 0!==g?x=t:c.start||(x=e.defaultIndex||0,h.splice(x,0,a)));if((-1<t||-1<x)&&(b||!q||t!=x)){f=r.slice();for(n=0;h=f[n];n++)h(a||m,t,x)}})});var h={};h.remove=h.cancel=function(){var b=
k.indexOf(r,a);-1<b&&(r.splice(b,1),r.length||g.splice(k.indexOf(g,w),1))};return h}}return f};var a;c("put",function(a,b){e.notify(a,b)});c("add",function(a){e.notify(a)});c("remove",function(a){e.notify(void 0,a)});return e};m.setObject("dojo.store.Observable",f);return f})},"dojo/store/JsonRest":function(){define(["../_base/xhr","../_base/lang","../json","../_base/declare","./util/QueryResults"],function(f,m,l,k,e){return k("dojo.store.JsonRest",null,{constructor:function(c){this.headers={};k.safeMixin(this,
c)},headers:{},target:"",idProperty:"id",ascendingPrefix:"+",descendingPrefix:"-",_getTarget:function(c){var e=this.target;"undefined"!=typeof c&&(e="/"==e.charAt(e.length-1)||"\x3d"==e.charAt(e.length-1)?e+c:e+("/"+c));return e},get:function(c,e){e=e||{};var d=m.mixin({Accept:this.accepts},this.headers,e.headers||e);return f("GET",{url:this._getTarget(c),handleAs:"json",headers:d})},accepts:"application/javascript, application/json",getIdentity:function(c){return c[this.idProperty]},put:function(c,
e){e=e||{};var d="id"in e?e.id:this.getIdentity(c);return f("undefined"!=typeof d&&!e.incremental?"PUT":"POST",{url:this._getTarget(d),postData:l.stringify(c),handleAs:"json",headers:m.mixin({"Content-Type":"application/json",Accept:this.accepts,"If-Match":!0===e.overwrite?"*":null,"If-None-Match":!1===e.overwrite?"*":null},this.headers,e.headers)})},add:function(c,e){e=e||{};e.overwrite=!1;return this.put(c,e)},remove:function(c,e){e=e||{};return f("DELETE",{url:this._getTarget(c),headers:m.mixin({},
this.headers,e.headers)})},query:function(c,g){g=g||{};var d=m.mixin({Accept:this.accepts},this.headers,g.headers),b=-1<this.target.indexOf("?");if((c=c||"")&&"object"==typeof c)c=(c=f.objectToQuery(c))?(b?"\x26":"?")+c:"";if(0<=g.start||0<=g.count)d["X-Range"]="items\x3d"+(g.start||"0")+"-"+("count"in g&&Infinity!=g.count?g.count+(g.start||0)-1:""),this.rangeParam?(c+=(c||b?"\x26":"?")+this.rangeParam+"\x3d"+d["X-Range"],b=!0):d.Range=d["X-Range"];if(g&&g.sort){var a=this.sortParam;c+=(c||b?"\x26":
"?")+(a?a+"\x3d":"sort(");for(b=0;b<g.sort.length;b++){var h=g.sort[b];c+=(0<b?",":"")+(h.descending?this.descendingPrefix:this.ascendingPrefix)+encodeURIComponent(h.attribute)}a||(c+=")")}var k=f("GET",{url:this.target+(c||""),handleAs:"json",headers:d});k.total=k.then(function(){var a=k.ioArgs.xhr.getResponseHeader("Content-Range");a||(a=k.ioArgs.xhr.getResponseHeader("X-Content-Range"));return a&&(a=a.match(/\/(.*)/))&&+a[1]});return e(k)}})})},"dojo/data/ObjectStore":function(){define("../_base/lang ../Evented ../_base/declare ../_base/Deferred ../_base/array ../_base/connect ../regexp".split(" "),
function(f,m,l,k,e,c,g){function d(b){return"*"==b?".*":"?"==b?".":b}return l("dojo.data.ObjectStore",[m],{objectStore:null,constructor:function(b){this._dirtyObjects=[];b.labelAttribute&&(b.labelProperty=b.labelAttribute);f.mixin(this,b)},labelProperty:"label",getValue:function(b,a,c){return"function"===typeof b.get?b.get(a):a in b?b[a]:c},getValues:function(b,a){var c=this.getValue(b,a);return c instanceof Array?c:void 0===c?[]:[c]},getAttributes:function(b){var a=[],c;for(c in b)b.hasOwnProperty(c)&&
!("_"==c.charAt(0)&&"_"==c.charAt(1))&&a.push(c);return a},hasAttribute:function(b,a){return a in b},containsValue:function(b,a,c){return-1<e.indexOf(this.getValues(b,a),c)},isItem:function(b){return"object"==typeof b&&b&&!(b instanceof Date)},isItemLoaded:function(b){return b&&"function"!==typeof b.load},loadItem:function(b){var a;"function"===typeof b.item.load?k.when(b.item.load(),function(c){a=c;var d=c instanceof Error?b.onError:b.onItem;d&&d.call(b.scope,c)}):b.onItem&&b.onItem.call(b.scope,
b.item);return a},close:function(b){return b&&b.abort&&b.abort()},fetch:function(b){function a(a){b.onError&&b.onError.call(p,a,b)}b=f.delegate(b,b&&b.queryOptions);var c=this,p=b.scope||c,n=b.query;if("object"==typeof n){var n=f.delegate(n),l;for(l in n){var q=n[l];"string"==typeof q&&(n[l]=RegExp("^"+g.escapeString(q,"*?\\").replace(/\\.|\*|\?/g,d)+"$",b.ignoreCase?"mi":"m"),n[l].toString=function(a){return function(){return a}}(q))}}var s=this.objectStore.query(n,b);k.when(s.total,function(c){k.when(s,
function(a){b.onBegin&&b.onBegin.call(p,c||a.length,b);if(b.onItem)for(var d=0;d<a.length;d++)b.onItem.call(p,a[d],b);b.onComplete&&b.onComplete.call(p,b.onItem?null:a,b);return a},a)},a);b.abort=function(){s.cancel&&s.cancel()};s.observe&&(this.observing&&this.observing.cancel(),this.observing=s.observe(function(a,b,d){if(-1==e.indexOf(c._dirtyObjects,a))if(-1==b)c.onNew(a);else if(-1==d)c.onDelete(a);else for(var g in a)if(g!=c.objectStore.idProperty)c.onSet(a,g,null,a[g])},!0));this.onFetch(s);
b.store=this;return b},getFeatures:function(){return{"dojo.data.api.Read":!!this.objectStore.get,"dojo.data.api.Identity":!0,"dojo.data.api.Write":!!this.objectStore.put,"dojo.data.api.Notification":!0}},getLabel:function(b){if(this.isItem(b))return this.getValue(b,this.labelProperty)},getLabelAttributes:function(b){return[this.labelProperty]},getIdentity:function(b){return this.objectStore.getIdentity?this.objectStore.getIdentity(b):b[this.objectStore.idProperty||"id"]},getIdentityAttributes:function(b){return[this.objectStore.idProperty]},
fetchItemByIdentity:function(b){var a;k.when(this.objectStore.get(b.identity),function(c){a=c;b.onItem.call(b.scope,c)},function(a){b.onError.call(b.scope,a)});return a},newItem:function(b,a){if(a){var c=this.getValue(a.parent,a.attribute,[]),c=c.concat([b]);b.__parent=c;this.setValue(a.parent,a.attribute,c)}this._dirtyObjects.push({object:b,save:!0});this.onNew(b);return b},deleteItem:function(b){this.changing(b,!0);this.onDelete(b)},setValue:function(b,a,c){var d=b[a];this.changing(b);b[a]=c;this.onSet(b,
a,d,c)},setValues:function(b,a,c){if(!f.isArray(c))throw Error("setValues expects to be passed an Array object as its value");this.setValue(b,a,c)},unsetAttribute:function(b,a){this.changing(b);var c=b[a];delete b[a];this.onSet(b,a,c,void 0)},changing:function(b,a){b.__isDirty=!0;for(var c=0;c<this._dirtyObjects.length;c++){var d=this._dirtyObjects[c];if(b==d.object){a&&(d.object=!1,this._saveNotNeeded||(d.save=!0));return}}d=b instanceof Array?[]:{};for(c in b)b.hasOwnProperty(c)&&(d[c]=b[c]);this._dirtyObjects.push({object:!a&&
b,old:d,save:!this._saveNotNeeded})},save:function(b){b=b||{};var a,d=[],e=[],g=this,f=this._dirtyObjects,q=f.length;try{c.connect(b,"onError",function(){if(!1!==b.revertOnError){var a=f;f=e;g.revert();g._dirtyObjects=a}else g._dirtyObjects=f.concat(e)});if(this.objectStore.transaction)var l=this.objectStore.transaction();for(var m=0;m<f.length;m++){var w=f[m],u=w.object,v=w.old;delete u.__isDirty;u?a=this.objectStore.put(u,{overwrite:!!v}):"undefined"!=typeof v&&(a=this.objectStore.remove(this.getIdentity(v)));
e.push(w);f.splice(m--,1);k.when(a,function(a){--q||b.onComplete&&b.onComplete.call(b.scope,d)},function(a){q=-1;b.onError.call(b.scope,a)})}l&&l.commit()}catch(x){b.onError.call(b.scope,value)}},revert:function(){for(var b=this._dirtyObjects,a=b.length;0<a;){a--;var c=b[a],d=c.object,c=c.old;if(d&&c){for(var e in c)c.hasOwnProperty(e)&&d[e]!==c[e]&&(this.onSet(d,e,d[e],c[e]),d[e]=c[e]);for(e in d)c.hasOwnProperty(e)||(this.onSet(d,e,d[e]),delete d[e])}else if(c)this.onNew(c);else this.onDelete(d);
delete (d||c).__isDirty;b.splice(a,1)}},isDirty:function(b){return!b?!!this._dirtyObjects.length:b.__isDirty},onSet:function(){},onNew:function(){},onDelete:function(){},onFetch:function(b){}})})},"dijit/tree/ObjectStoreModel":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/Deferred dojo/_base/lang dojo/when ../Destroyable".split(" "),function(f,m,l,k,e,c,g){return l("dijit.tree.ObjectStoreModel",g,{store:null,labelAttr:"name",labelType:"text",root:null,query:null,constructor:function(c){e.mixin(this,
c);this.childrenCache={}},getRoot:function(d,b){if(this.root)d(this.root);else{var a=this.store.query(this.query);a.then&&this.own(a);c(a,e.hitch(this,function(b){if(1!=b.length)throw Error("dijit.tree.ObjectStoreModel: root query returned "+b.length+" items, but must return exactly one");this.root=b[0];d(this.root);a.observe&&a.observe(e.hitch(this,function(a){this.onChange(a)}),!0)}),b)}},mayHaveChildren:function(){return!0},getChildren:function(d,b,a){var g=this.store.getIdentity(d);if(this.childrenCache[g])c(this.childrenCache[g],
b,a);else{var f=this.childrenCache[g]=this.store.getChildren(d);f.then&&this.own(f);f.observe&&this.own(f.observe(e.hitch(this,function(a,b,g){this.onChange(a);b!=g&&c(f,e.hitch(this,"onChildrenChange",d))}),!0));c(f,b,a)}},isItem:function(){return!0},getIdentity:function(c){return this.store.getIdentity(c)},getLabel:function(c){return c[this.labelAttr]},newItem:function(c,b,a,e){return this.store.put(c,{parent:b,before:e})},pasteItem:function(c,b,a,g,p,n){var l=new k;if(b===a&&!g&&!n)return l.resolve(!0),
l;b&&!g?this.getChildren(b,e.hitch(this,function(e){e=[].concat(e);var g=f.indexOf(e,c);e.splice(g,1);this.onChildrenChange(b,e);l.resolve(this.store.put(c,{overwrite:!0,parent:a,oldParent:b,before:n}))})):l.resolve(this.store.put(c,{overwrite:!0,parent:a,oldParent:b,before:n}));return l},onChange:function(){},onChildrenChange:function(){},onDelete:function(){}})})},"dijit/layout/ContentPane":function(){define("dojo/_base/kernel dojo/_base/lang ../_Widget ../_Container ./_ContentPaneResizeMixin dojo/string dojo/html dojo/_base/array dojo/_base/declare dojo/_base/Deferred dojo/dom dojo/dom-attr dojo/dom-construct dojo/_base/xhr dojo/i18n dojo/when dojo/i18n!../nls/loading".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s){return b("dijit.layout.ContentPane",[l,k,e],{href:"",content:"",extractContent:!1,parseOnLoad:!0,parserScope:f._scopeName,preventCache:!1,preload:!1,refreshOnShow:!1,loadingMessage:"\x3cspan class\x3d'dijitContentPaneLoading'\x3e\x3cspan class\x3d'dijitInline dijitIconLoading'\x3e\x3c/span\x3e${loadingState}\x3c/span\x3e",errorMessage:"\x3cspan class\x3d'dijitContentPaneError'\x3e\x3cspan class\x3d'dijitInline dijitIconError'\x3e\x3c/span\x3e${errorState}\x3c/span\x3e",
isLoaded:!1,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,_setTitleAttr:null,stopParser:!0,template:!1,markupFactory:function(a,b,c){var d=new c(a,b);return!d.href&&d._contentSetter&&d._contentSetter.parseDeferred&&!d._contentSetter.parseDeferred.isFulfilled()?d._contentSetter.parseDeferred.then(function(){return d}):d},create:function(a,b){if((!a||!a.template)&&b&&!("href"in a)&&!("content"in a)){b=h.byId(b);for(var c=b.ownerDocument.createDocumentFragment();b.firstChild;)c.appendChild(b.firstChild);
a=m.delegate(a,{content:c})}this.inherited(arguments,[a,b])},postMixInProperties:function(){this.inherited(arguments);var a=q.getLocalization("dijit","loading",this.lang);this.loadingMessage=c.substitute(this.loadingMessage,a);this.errorMessage=c.substitute(this.errorMessage,a)},buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode);this.domNode.removeAttribute("title")},startup:function(){this.inherited(arguments);this._contentSetter&&d.forEach(this._contentSetter.parseResults,
function(a){!a._started&&(!a._destroyed&&m.isFunction(a.startup))&&(a.startup(),a._started=!0)},this)},_startChildren:function(){d.forEach(this.getChildren(),function(a){!a._started&&(!a._destroyed&&m.isFunction(a.startup))&&(a.startup(),a._started=!0)});this._contentSetter&&d.forEach(this._contentSetter.parseResults,function(a){!a._started&&(!a._destroyed&&m.isFunction(a.startup))&&(a.startup(),a._started=!0)},this)},setHref:function(a){f.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.",
"","2.0");return this.set("href",a)},_setHrefAttr:function(b){this.cancel();this.onLoadDeferred=new a(m.hitch(this,"cancel"));this.onLoadDeferred.then(m.hitch(this,"onLoad"));this._set("href",b);this.preload||this._created&&this._isShown()?this._load():this._hrefChanged=!0;return this.onLoadDeferred},setContent:function(a){f.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");this.set("content",a)},_setContentAttr:function(b){this._set("href",
"");this.cancel();this.onLoadDeferred=new a(m.hitch(this,"cancel"));this._created&&this.onLoadDeferred.then(m.hitch(this,"onLoad"));this._setContent(b||"");this._isDownloaded=!1;return this.onLoadDeferred},_getContentAttr:function(){return this.containerNode.innerHTML},cancel:function(){this._xhrDfd&&-1==this._xhrDfd.fired&&this._xhrDfd.cancel();delete this._xhrDfd;this.onLoadDeferred=null},destroy:function(){this.cancel();this.inherited(arguments)},destroyRecursive:function(a){this._beingDestroyed||
this.inherited(arguments)},_onShow:function(){this.inherited(arguments);if(this.href&&!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow))return this.refresh()},refresh:function(){this.cancel();this.onLoadDeferred=new a(m.hitch(this,"cancel"));this.onLoadDeferred.then(m.hitch(this,"onLoad"));this._load();return this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),!0);var a=this,b={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};
m.isObject(this.ioArgs)&&m.mixin(b,this.ioArgs);var c=this._xhrDfd=(this.ioMethod||t.get)(b),d;c.then(function(b){d=b;try{return a._isDownloaded=!0,a._setContent(b,!1)}catch(c){a._onError("Content",c)}},function(b){c.canceled||a._onError("Download",b);delete a._xhrDfd;return b}).then(function(){a.onDownloadEnd();delete a._xhrDfd;return d});delete this._hrefChanged},_onLoadHandler:function(a){this._set("isLoaded",!0);try{this.onLoadDeferred.resolve(a)}catch(b){console.error("Error "+this.widgetId+
" running custom onLoad code: "+b.message)}},_onUnloadHandler:function(){this._set("isLoaded",!1);try{this.onUnload()}catch(a){console.error("Error "+this.widgetId+" running custom onUnload code: "+a.message)}},destroyDescendants:function(a){this.isLoaded&&this._onUnloadHandler();var b=this._contentSetter;d.forEach(this.getChildren(),function(b){b.destroyRecursive?b.destroyRecursive(a):b.destroy&&b.destroy(a);b._destroyed=!0});b&&(d.forEach(b.parseResults,function(b){b._destroyed||(b.destroyRecursive?
b.destroyRecursive(a):b.destroy&&b.destroy(a),b._destroyed=!0)}),delete b.parseResults);a||n.empty(this.containerNode);delete this._singleChild},_setContent:function(a,b){a=this.preprocessContent(a);this.destroyDescendants();var c=this._contentSetter;c&&c instanceof g._ContentSetter||(c=this._contentSetter=new g._ContentSetter({node:this.containerNode,_onError:m.hitch(this,this._onError),onContentError:m.hitch(this,function(a){a=this.onContentError(a);try{this.containerNode.innerHTML=a}catch(b){console.error("Fatal "+
this.id+" could not change content due to "+b.message,b)}})}));var d=m.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:!a.domNode&&this.parseOnLoad,parserScope:this.parserScope,startup:!1,dir:this.dir,lang:this.lang,textDir:this.textDir},this._contentSetterParams||{}),d=c.set(m.isObject(a)&&a.domNode?a.domNode:a,d),e=this;return s(d&&d.then?d:c.parseDeferred,function(){delete e._contentSetterParams;b||(e._started&&(e._startChildren(),e._scheduleLayout()),e._onLoadHandler(a))})},
preprocessContent:function(a){return a},_onError:function(a,b,c){this.onLoadDeferred.reject(b);a=this["on"+a+"Error"].call(this,b);c?console.error(c,b):a&&this._setContent(a,!0)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}})})},"dojo/html":function(){define("./_base/kernel ./_base/lang ./_base/array ./_base/declare ./dom ./dom-construct ./parser".split(" "),
function(f,m,l,k,e,c,g){var d=0,b={_secureForInnerHtml:function(a){return a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")},_emptyNode:c.empty,_setNodeContent:function(a,b){c.empty(a);if(b)if("number"==typeof b&&(b=b.toString()),"string"==typeof b&&(b=c.toDom(b,a.ownerDocument)),!b.nodeType&&m.isArrayLike(b))for(var d=b.length,e=0;e<b.length;e=d==b.length?e+1:0)c.place(b[e],a,"last");else c.place(b,a,"last");return a},_ContentSetter:k("dojo.html._ContentSetter",null,{node:"",
content:"",id:"",cleanContent:!1,extractContent:!1,parseContent:!1,parserScope:f._scopeName,startup:!0,constructor:function(a,b){m.mixin(this,a||{});b=this.node=e.byId(this.node||b);this.id||(this.id=["Setter",b?b.id||b.tagName:"",d++].join("_"))},set:function(a,b){void 0!==a&&(this.content=a);b&&this._mixin(b);this.onBegin();this.setContent();var c=this.onEnd();return c&&c.then?c:this.node},setContent:function(){var a=this.node;if(!a)throw Error(this.declaredClass+": setContent given no node");try{a=
b._setNodeContent(a,this.content)}catch(c){var d=this.onContentError(c);try{a.innerHTML=d}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e)}}this.node=a},empty:function(){this.parseDeferred&&(this.parseDeferred.isResolved()||this.parseDeferred.cancel(),delete this.parseDeferred);this.parseResults&&this.parseResults.length&&(l.forEach(this.parseResults,function(a){a.destroy&&a.destroy()}),delete this.parseResults);c.empty(this.node)},onBegin:function(){var a=
this.content;if(m.isString(a)&&(this.cleanContent&&(a=b._secureForInnerHtml(a)),this.extractContent)){var c=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);c&&(a=c[1])}this.empty();this.content=a;return this.node},onEnd:function(){this.parseContent&&this._parse();return this.node},tearDown:function(){delete this.parseResults;delete this.parseDeferred;delete this.node;delete this.content},onContentError:function(a){return"Error occurred setting content: "+a},onExecError:function(a){return"Error occurred executing scripts: "+
a},_mixin:function(a){var b={},c;for(c in a)c in b||(this[c]=a[c])},_parse:function(){var a=this.node;try{var b={};l.forEach(["dir","lang","textDir"],function(a){this[a]&&(b[a]=this[a])},this);var c=this;this.parseDeferred=g.parse({rootNode:a,noStart:!this.startup,inherited:b,scope:this.parserScope}).then(function(a){return c.parseResults=a},function(a){c._onError("Content",a,"Error parsing in _ContentSetter#"+this.id)})}catch(d){this._onError("Content",d,"Error parsing in _ContentSetter#"+this.id)}},
_onError:function(a,c,d){a=this["on"+a+"Error"].call(this,c);d?console.error(d,c):a&&b._setNodeContent(this.node,a,!0)}}),set:function(a,c,d){void 0==c&&(console.warn("dojo.html.set: no cont argument provided, using empty string"),c="");"number"==typeof c&&(c=c.toString());return d?(new b._ContentSetter(m.mixin(d,{content:c,node:a}))).set():b._setNodeContent(a,c,!0)}};m.setObject("dojo.html",b);return b})},"dojox/layout/ContentPane":function(){define(["dojo/_base/lang","dojo/_base/xhr","dijit/layout/ContentPane",
"dojox/html/_base","dojo/_base/declare"],function(f,m,l,k,e){return e("dojox.layout.ContentPane",l,{adjustPaths:!1,cleanContent:!1,renderStyles:!1,executeScripts:!0,scriptHasHooks:!1,ioMethod:m.get,ioArgs:{},onExecError:function(c){},_setContent:function(c){var e=this._contentSetter;e&&e instanceof k._ContentSetter||(e=this._contentSetter=new k._ContentSetter({node:this.containerNode,_onError:f.hitch(this,this._onError),onContentError:f.hitch(this,function(c){c=this.onContentError(c);try{this.containerNode.innerHTML=
c}catch(b){console.error("Fatal "+this.id+" could not change content due to "+b.message,b)}})}));this._contentSetterParams={adjustPaths:Boolean(this.adjustPaths&&(this.href||this.referencePath)),referencePath:this.href||this.referencePath,renderStyles:this.renderStyles,executeScripts:this.executeScripts,scriptHasHooks:this.scriptHasHooks,scriptHookReplacement:"dijit.byId('"+this.id+"')"};return this.inherited("_setContent",arguments)},destroy:function(){var c=this._contentSetter;c&&c.tearDown();this.inherited(arguments)}})})},
"dojox/html/_base":function(){define("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".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p){var n=e.getObject("dojox.html",!0);if(d("ie"))var t=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;var q=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g,
s=n._adjustCssPaths=function(a,c){if(c&&a)return t&&(c=c.replace(t,function(c,d,e,g,h){return d+(new b(a,"./"+g)).toString()+h})),c.replace(q,function(c,d,e,g,h,f){return e?'@import "'+(new b(a,"./"+e)).toString()+'"'+f:"url("+(new b(a,"./"+h)).toString()+")"+f})},r=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi,w=n._adjustHtmlPaths=function(a,c){var d=a||"./";return c.replace(r,function(a,c,e,g,h,f,k,n){return c+(e?e+"\x3d"+g+(new b(d,h)).toString()+
g:"style\x3d"+f+s(d,k)+f)+n})},u=n._snarfStyles=function(a,b,c){c.attributes=[];b=b.replace(/<[!][-][-](.|\s)*?[-][-]>/g,function(a){return a.replace(/<(\/?)style\b/ig,"\x26lt;$1Style").replace(/<(\/?)link\b/ig,"\x26lt;$1Link").replace(/@import "/ig,'@ import "')});return b.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(b,d,e,g,h,f){b=(d||g||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");e?e=c.push(a?s(a,e):e):(e=c.push('@import "'+
f+'";'),b=b.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,""));if(b){b=b.split(/\s+/);f={};g=0;for(h=b.length;g<h;g++)d=b[g].split("\x3d"),f[d[0]]=d[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");c.attributes[e-1]=f}return""})},v=n._snarfScripts=function(b,c){function d(b){c.downloadRemote&&(b=b.replace(/&([a-z0-9#]+);/g,function(a,b){switch(b){case "amp":return"\x26";case "gt":return"\x3e";case "lt":return"\x3c";default:return"#"==b.charAt(0)?String.fromCharCode(b.substring(1)):"\x26"+b+";"}}),
a.get({url:b,sync:!0,load:function(a){""!==c.code&&(a="\n"+a);c.code+=a+";"},error:c.errBack}))}c.code="";b=b.replace(/<[!][-][-](.|\s)*?[-][-]>/g,function(a){return a.replace(/<(\/?)script\b/ig,"\x26lt;$1Script")});return b.replace(/<script\s*(?![^>]*type=['"]?(?:dojo\/|text\/html\b))[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?>([\s\S]*?)<\/script>/gi,function(a,b,e,g){e?d(e):(""!==c.code&&(g="\n"+g),c.code+=g+";");return""})},x=n.evalInGlobal=function(a,b){b=b||p.doc.body;var c=b.ownerDocument.createElement("script");
c.type="text/javascript";b.appendChild(c);c.text=a};n._ContentSetter=f(k._ContentSetter,{adjustPaths:!1,referencePath:".",renderStyles:!1,executeScripts:!1,scriptHasHooks:!1,scriptHookReplacement:null,_renderStyles:function(a){this._styleNodes=[];for(var b,c,d,e=this.node.ownerDocument,g=e.getElementsByTagName("head")[0],h=0,f=a.length;h<f;h++){d=a[h];c=a.attributes[h];b=e.createElement("style");b.setAttribute("type","text/css");for(var k in c)b.setAttribute(k,c[k]);this._styleNodes.push(b);g.appendChild(b);
b.styleSheet?b.styleSheet.cssText=d:b.appendChild(e.createTextNode(d))}},empty:function(){this.inherited("empty",arguments);this._styles=[]},onBegin:function(){this.inherited("onBegin",arguments);var a=this.content,b=this._styles;this._code=null;if(c.isString(a)){this.adjustPaths&&this.referencePath&&(a=w(this.referencePath,a));if(this.renderStyles||this.cleanContent)a=u(this.referencePath,a,b);if(this.executeScripts){var d=this,b={downloadRemote:!0,errBack:function(a){d._onError.call(d,"Exec",'Error downloading remote script in "'+
d.id+'"',a)}},a=v(a,b);this._code=b.code}}this.content=a},onEnd:function(){var a=this._code,b=this._styles;if(this._styleNodes&&this._styleNodes.length)for(;this._styleNodes.length;)l.destroy(this._styleNodes.pop());this.renderStyles&&(b&&b.length)&&this._renderStyles(b);var d=new m,e=this.getInherited(arguments),f=arguments,b=c.hitch(this,function(){e.apply(this,f);h(this.parseDeferred,function(){d.resolve()})});if(this.executeScripts&&a){this.cleanContent&&(a=a.replace(/(\x3c!--|(?:\/\/)?--\x3e|<!\[CDATA\[|\]\]>)/g,
""));this.scriptHasHooks&&(a=a.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement));try{x(a,this.node)}catch(k){this._onError("Exec","Error eval script in "+this.id+", "+k.message,k)}g(b)}else b();return d.promise},tearDown:function(){this.inherited(arguments);delete this._styles;if(this._styleNodes&&this._styleNodes.length)for(;this._styleNodes.length;)l.destroy(this._styleNodes.pop());delete this._styleNodes;c.mixin(this,n._ContentSetter.prototype)}});n.set=function(a,b,d){return d?(new n._ContentSetter(c.mixin(d,
{content:b,node:a}))).set():k._setNodeContent(a,b,!0)};return n})},"dijit/layout/BorderContainer":function(){define("dojo/_base/array dojo/cookie dojo/_base/declare dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/keys dojo/_base/lang dojo/on dojo/touch ../_WidgetBase ../_Widget ../_TemplatedMixin ./LayoutContainer ./utils".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s){var r=l("dijit.layout._Splitter",[n,t],{live:!0,templateString:'\x3cdiv class\x3d"dijitSplitter" data-dojo-attach-event\x3d"onkeydown:_onKeyDown,press:_startDrag,onmouseenter:_onMouse,onmouseleave:_onMouse" tabIndex\x3d"0" role\x3d"separator"\x3e\x3cdiv class\x3d"dijitSplitterThumb"\x3e\x3c/div\x3e\x3c/div\x3e',
constructor:function(){this._handlers=[]},postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);this._factor=/top|left/.test(this.region)?1:-1;this._cookieName=this.container.id+"_"+this.region},buildRendering:function(){this.inherited(arguments);k.add(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var a=m(this._cookieName);a&&(this.child.domNode.style[this.horizontal?"height":"width"]=a)}},_computeMaxSize:function(){var a=
this.horizontal?"h":"w",b=c.getMarginBox(this.child.domNode)[a],d=f.filter(this.container.getChildren(),function(a){return"center"==a.region})[0],a=c.getContentBox(d.domNode)[a]-10;return Math.min(this.child.maxSize,b+a)},_startDrag:function(d){this.cover||(this.cover=e.place("\x3cdiv class\x3ddijitSplitterCover\x3e\x3c/div\x3e",this.child.domNode,"after"));k.add(this.cover,"dijitSplitterCoverActive");this.fake&&e.destroy(this.fake);if(!(this._resize=this.live))(this.fake=this.domNode.cloneNode(!0)).removeAttribute("id"),
k.add(this.domNode,"dijitSplitterShadow"),e.place(this.fake,this.domNode,"after");k.add(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active");this.fake&&k.remove(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");var f=this._factor,n=this.horizontal,q=n?"pageY":"pageX",p=d[q],l=this.domNode.style,n=n?"h":"w",s=g.getComputedStyle(this.child.domNode),m=c.getMarginBox(this.child.domNode,s)[n],r=this._computeMaxSize(),t=Math.max(this.child.minSize,
c.getPadBorderExtents(this.child.domNode,s)[n]+10),n=this.region,w="top"==n||"bottom"==n?"top":"left",J=parseInt(l[w],10),H=this._resize,K=b.hitch(this.container,"_layoutChildren",this.child.id),n=this.ownerDocument;this._handlers=this._handlers.concat([a(n,h.move,this._drag=function(a,b){var c=a[q]-p,d=f*c+m,e=Math.max(Math.min(d,r),t);(H||b)&&K(e);l[w]=c+J+f*(e-d)+"px"}),a(n,"dragstart",function(a){a.stopPropagation();a.preventDefault()}),a(this.ownerDocumentBody,"selectstart",function(a){a.stopPropagation();
a.preventDefault()}),a(n,h.release,b.hitch(this,"_stopDrag"))]);d.stopPropagation();d.preventDefault()},_onMouse:function(a){a="mouseover"==a.type||"mouseenter"==a.type;k.toggle(this.domNode,"dijitSplitterHover",a);k.toggle(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",a)},_stopDrag:function(a){try{this.cover&&k.remove(this.cover,"dijitSplitterCoverActive"),this.fake&&e.destroy(this.fake),k.remove(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active dijitSplitterShadow"),
this._drag(a),this._drag(a,!0)}finally{this._cleanupHandlers(),delete this._drag}this.container.persist&&m(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},_cleanupHandlers:function(){for(var a;a=this._handlers.pop();)a.remove()},_onKeyDown:function(a){this._resize=!0;var b=this.horizontal,e=1;switch(a.keyCode){case b?d.UP_ARROW:d.LEFT_ARROW:e*=-1;case b?d.DOWN_ARROW:d.RIGHT_ARROW:break;default:return}b=c.getMarginSize(this.child.domNode)[b?"h":"w"]+this._factor*
e;this.container._layoutChildren(this.child.id,Math.max(Math.min(b,this._computeMaxSize()),this.child.minSize));a.stopPropagation();a.preventDefault()},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments)}}),w=l("dijit.layout._Gutter",[n,t],{templateString:'\x3cdiv class\x3d"dijitGutter" role\x3d"presentation"\x3e\x3c/div\x3e',postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region)},
buildRendering:function(){this.inherited(arguments);k.add(this.domNode,"dijitGutter"+(this.horizontal?"H":"V"))}});l=l("dijit.layout.BorderContainer",q,{gutters:!0,liveSplitters:!0,persist:!1,baseClass:"dijitBorderContainer",_splitterClass:r,postMixInProperties:function(){this.gutters||(this.baseClass+="NoGutter");this.inherited(arguments)},_setupChild:function(a){this.inherited(arguments);var c=a.region,d=a.isLeftToRight();"leading"==c&&(c=d?"left":"right");"trailing"==c&&(c=d?"right":"left");if(c&&
"center"!=c&&(a.splitter||this.gutters)&&!a._splitterWidget)d=a.splitter?this._splitterClass:w,b.isString(d)&&(d=b.getObject(d)),d=new d({id:a.id+"_splitter",container:this,child:a,region:c,live:this.liveSplitters}),d.isSplitter=!0,a._splitterWidget=d,c="bottom"==c||c==(this.isLeftToRight()?"right":"left"),e.place(d.domNode,a.domNode,c?"before":"after"),d.startup()},layout:function(){this._layoutChildren()},removeChild:function(a){var b=a._splitterWidget;b&&(b.destroy(),delete a._splitterWidget);
this.inherited(arguments)},getChildren:function(){return f.filter(this.inherited(arguments),function(a){return!a.isSplitter})},getSplitter:function(a){return f.filter(this.getChildren(),function(b){return b.region==a})[0]._splitterWidget},resize:function(a,b){if(!this.cs||!this.pe){var d=this.domNode;this.cs=g.getComputedStyle(d);this.pe=c.getPadExtents(d,this.cs);this.pe.r=g.toPixelValue(d,this.cs.paddingRight);this.pe.b=g.toPixelValue(d,this.cs.paddingBottom);g.set(d,"padding","0px")}this.inherited(arguments)},
_layoutChildren:function(a,b){if(this._borderBox&&this._borderBox.h){var c=[];f.forEach(this._getOrderedChildren(),function(a){c.push(a);a._splitterWidget&&c.push(a._splitterWidget)});s.layoutChildren(this.domNode,{l:this.pe.l,t:this.pe.t,w:this._borderBox.w-this.pe.w,h:this._borderBox.h-this.pe.h},c,a,b)}},destroyRecursive:function(){f.forEach(this.getChildren(),function(a){var b=a._splitterWidget;b&&b.destroy();delete a._splitterWidget});this.inherited(arguments)}});l.ChildWidgetProperties={splitter:!1,
minSize:0,maxSize:Infinity};b.mixin(l.ChildWidgetProperties,q.ChildWidgetProperties);b.extend(p,l.ChildWidgetProperties);l._Splitter=r;l._Gutter=w;return l})},"dijit/layout/LayoutContainer":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-style dojo/_base/lang ../_WidgetBase ./_LayoutWidget ./utils".split(" "),function(f,m,l,k,e,c,g,d){m=m("dijit.layout.LayoutContainer",g,{design:"headline",baseClass:"dijitLayoutContainer",startup:function(){this._started||(f.forEach(this.getChildren(),
this._setupChild,this),this.inherited(arguments))},_setupChild:function(b){this.inherited(arguments);b.region&&l.add(b.domNode,this.baseClass+"Pane")},_getOrderedChildren:function(){var b=f.map(this.getChildren(),function(a,b){return{pane:a,weight:["center"==a.region?Infinity:0,a.layoutPriority,("sidebar"==this.design?1:-1)*(/top|bottom/.test(a.region)?1:-1),b]}},this);b.sort(function(a,b){for(var c=a.weight,d=b.weight,e=0;e<c.length;e++)if(c[e]!=d[e])return c[e]-d[e];return 0});return f.map(b,function(a){return a.pane})},
layout:function(){d.layoutChildren(this.domNode,this._contentBox,this._getOrderedChildren())},addChild:function(b,a){this.inherited(arguments);this._started&&this.layout()},removeChild:function(b){this.inherited(arguments);this._started&&this.layout();l.remove(b.domNode,this.baseClass+"Pane");k.set(b.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});k.set(b.domNode,/top|bottom/.test(b.region)?"width":"height","auto")}});m.ChildWidgetProperties={region:"",layoutAlign:"",
layoutPriority:0};e.extend(c,m.ChildWidgetProperties);return m})},"dijit/layout/_LayoutWidget":function(){define("dojo/_base/lang ../_Widget ../_Container ../_Contained ../Viewport dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style".split(" "),function(f,m,l,k,e,c,g,d,b){return c("dijit.layout._LayoutWidget",[m,l,k],{baseClass:"dijitLayoutContainer",isLayoutContainer:!0,_setTitleAttr:null,buildRendering:function(){this.inherited(arguments);g.add(this.domNode,"dijitContainer")},startup:function(){if(!this._started){this.inherited(arguments);
var a=this.getParent&&this.getParent();if(!a||!a.isLayoutContainer)this.resize(),this.own(e.on("resize",f.hitch(this,"resize")))}},resize:function(a,c){var e=this.domNode;a&&d.setMarginBox(e,a);var g=c||{};f.mixin(g,a||{});if(!("h"in g)||!("w"in g))g=f.mixin(d.getMarginBox(e),g);var k=b.getComputedStyle(e),q=d.getMarginExtents(e,k),l=d.getBorderExtents(e,k),g=this._borderBox={w:g.w-(q.w+l.w),h:g.h-(q.h+l.h)},q=d.getPadExtents(e,k);this._contentBox={l:b.toPixelValue(e,k.paddingLeft),t:b.toPixelValue(e,
k.paddingTop),w:g.w-q.w,h:g.h-q.h};this.layout()},layout:function(){},_setupChild:function(a){g.add(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a,b){this.inherited(arguments);this._started&&this._setupChild(a)},removeChild:function(a){g.remove(a.domNode,this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}})})},"dijit/layout/TabContainer":function(){define(["dojo/_base/lang","dojo/_base/declare",
"./_TabContainerBase","./TabController","./ScrollingTabController"],function(f,m,l,k,e){return m("dijit.layout.TabContainer",l,{useMenu:!0,useSlider:!0,controllerWidget:"",_makeController:function(c){var e=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout");return new ("string"==typeof this.controllerWidget?f.getObject(this.controllerWidget):this.controllerWidget)({id:this.id+"_tablist",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir,tabPosition:this.tabPosition,
doLayout:this.doLayout,containerId:this.id,"class":e,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+(this.tabStrip?"":"No")+"Strip":null},c)},postMixInProperties:function(){this.inherited(arguments);this.controllerWidget||(this.controllerWidget=("top"==this.tabPosition||"bottom"==this.tabPosition)&&!this.nested?e:k)}})})},"dijit/layout/_TabContainerBase":function(){define("dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style ./StackContainer ./utils ../_TemplatedMixin dojo/text!./templates/TabContainer.html".split(" "),
function(f,m,l,k,e,c,g,d){return f("dijit.layout._TabContainerBase",[e,g],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:!1,nested:!1,templateString:d,postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.srcNodeRef&&k.set(this.srcNodeRef,"visibility","hidden");this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);this.tablist=this._makeController(this.tablistNode);this.doLayout||
m.add(this.domNode,"dijitTabContainerNoLayout");this.nested?(m.add(this.domNode,"dijitTabContainerNested"),m.add(this.tablist.containerNode,"dijitTabContainerTabListNested"),m.add(this.tablistSpacer,"dijitTabContainerSpacerNested"),m.add(this.containerNode,"dijitTabPaneWrapperNested")):m.add(this.domNode,"tabStrip-"+(this.tabStrip?"enabled":"disabled"))},_setupChild:function(b){m.add(b.domNode,"dijitTabPane");this.inherited(arguments)},startup:function(){this._started||(this.tablist.startup(),this.inherited(arguments))},
layout:function(){if(this._contentBox&&"undefined"!=typeof this._contentBox.l){var b=this.selectedChildWidget;if(this.doLayout){var a=this.tabPosition.replace(/-h/,"");this.tablist.region=a;a=[this.tablist,{domNode:this.tablistSpacer,region:a},{domNode:this.containerNode,region:"center"}];c.layoutChildren(this.domNode,this._contentBox,a);this._containerContentBox=c.marginBox2contentBox(this.containerNode,a[2]);b&&b.resize&&b.resize(this._containerContentBox)}else{if(this.tablist.resize){a=this.tablist.domNode.style;
a.width="0";var d=l.getContentBox(this.domNode).w;a.width="";this.tablist.resize({w:d})}b&&b.resize&&b.resize()}}},destroy:function(b){this.tablist&&this.tablist.destroy(b);this.inherited(arguments)}})})},"dijit/layout/StackContainer":function(){define("dojo/_base/array dojo/cookie dojo/_base/declare dojo/dom-class dojo/dom-construct dojo/has dojo/_base/lang dojo/on dojo/ready dojo/topic dojo/when ../registry ../_WidgetBase ./_LayoutWidget".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p,n,t){c("dijit-legacy-requires")&&
b(0,function(){require(["dijit/layout/StackController"])});l=l("dijit.layout.StackContainer",t,{doLayout:!0,persist:!1,baseClass:"dijitStackContainer",buildRendering:function(){this.inherited(arguments);k.add(this.domNode,"dijitLayoutContainer")},postCreate:function(){this.inherited(arguments);this.own(d(this.domNode,"keydown",g.hitch(this,"_onKeyDown")))},startup:function(){if(!this._started){var b=this.getChildren();f.forEach(b,this._setupChild,this);this.persist?this.selectedChildWidget=p.byId(m(this.id+
"_selectedChild")):f.some(b,function(a){a.selected&&(this.selectedChildWidget=a);return a.selected},this);var c=this.selectedChildWidget;!c&&b[0]&&(c=this.selectedChildWidget=b[0],c.selected=!0);a.publish(this.id+"-startup",{children:b,selected:c,textDir:this.textDir});this.inherited(arguments)}},resize:function(){if(!this._hasBeenShown){this._hasBeenShown=!0;var a=this.selectedChildWidget;a&&this._showChild(a)}this.inherited(arguments)},_setupChild:function(a){var b=a.domNode,c=e.place("\x3cdiv role\x3d'tabpanel' class\x3d'"+
this.baseClass+"ChildWrapper dijitHidden'\x3e",a.domNode,"replace"),d=a["aria-label"]||a.title||a.label;d&&c.setAttribute("aria-label",d);e.place(b,c);a._wrapper=c;this.inherited(arguments);"none"==b.style.display&&(b.style.display="block");a.domNode.removeAttribute("title")},addChild:function(b,c){this.inherited(arguments);this._started&&(a.publish(this.id+"-addChild",b,c),this.layout(),this.selectedChildWidget||this.selectChild(b))},removeChild:function(b){var c=f.indexOf(this.getChildren(),b);
this.inherited(arguments);e.destroy(b._wrapper);delete b._wrapper;this._started&&a.publish(this.id+"-removeChild",b);if(!this._descendantsBeingDestroyed){if(this.selectedChildWidget===b&&(this.selectedChildWidget=void 0,this._started)){var d=this.getChildren();d.length&&this.selectChild(d[Math.max(c-1,0)])}this._started&&this.layout()}},selectChild:function(b,c){var d;b=p.byId(b);this.selectedChildWidget!=b&&(d=this._transition(b,this.selectedChildWidget,c),this._set("selectedChildWidget",b),a.publish(this.id+
"-selectChild",b,this._focused),this.persist&&m(this.id+"_selectedChild",this.selectedChildWidget.id));return h(d||!0)},_transition:function(a,b){b&&this._hideChild(b);var c=this._showChild(a);a.resize&&(this.doLayout?a.resize(this._containerContentBox||this._contentBox):a.resize());return c},_adjacent:function(a){var b=this.getChildren(),c=f.indexOf(b,this.selectedChildWidget),c=c+(a?1:b.length-1);return b[c%b.length]},forward:function(){return this.selectChild(this._adjacent(!0),!0)},back:function(){return this.selectChild(this._adjacent(!1),
!0)},_onKeyDown:function(b){a.publish(this.id+"-containerKeyDown",{e:b,page:this})},layout:function(){var a=this.selectedChildWidget;a&&a.resize&&(this.doLayout?a.resize(this._containerContentBox||this._contentBox):a.resize())},_showChild:function(a){var b=this.getChildren();a.isFirstChild=a==b[0];a.isLastChild=a==b[b.length-1];a._set("selected",!0);a._wrapper&&k.replace(a._wrapper,"dijitVisible","dijitHidden");return a._onShow&&a._onShow()||!0},_hideChild:function(a){a._set("selected",!1);a._wrapper&&
k.replace(a._wrapper,"dijitHidden","dijitVisible");a.onHide&&a.onHide()},closeChild:function(a){if(!a.onClose||a.onClose(this,a))this.removeChild(a),a.destroyRecursive()},destroyDescendants:function(a){this._descendantsBeingDestroyed=!0;this.selectedChildWidget=void 0;f.forEach(this.getChildren(),function(b){a||this.removeChild(b);b.destroyRecursive(a)},this);this._descendantsBeingDestroyed=!1}});l.ChildWidgetProperties={selected:!1,disabled:!1,closable:!1,iconClass:"dijitNoIcon",showTitle:!0};g.extend(n,
l.ChildWidgetProperties);return l})},"dijit/layout/TabController":function(){define("dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/has dojo/i18n dojo/_base/lang ./StackController ../registry ../Menu ../MenuItem dojo/text!./templates/_TabButton.html dojo/i18n!../nls/common".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p){p=f("dijit.layout._TabButton"+(e("dojo-bidi")?"_NoBidi":""),d.StackButton,{baseClass:"dijitTab",cssStateNodes:{closeNode:"dijitTabCloseButton"},templateString:p,_setNameAttr:"focusNode",
scrollOnFocus:!1,buildRendering:function(){this.inherited(arguments);m.setSelectable(this.containerNode,!1)},startup:function(){this.inherited(arguments);var a=this.domNode;this.defer(function(){a.className=a.className},1)},_setCloseButtonAttr:function(a){this._set("closeButton",a);k.toggle(this.domNode,"dijitClosable",a);this.closeNode.style.display=a?"":"none";a&&(a=c.getLocalization("dijit","common"),this.closeNode&&l.set(this.closeNode,"title",a.itemClose))},_setDisabledAttr:function(a){this.inherited(arguments);
if(this.closeNode)if(a)l.remove(this.closeNode,"title");else{var b=c.getLocalization("dijit","common");l.set(this.closeNode,"title",b.itemClose)}},_setLabelAttr:function(a){this.inherited(arguments);!this.showLabel&&!this.params.title&&(this.iconNode.alt=g.trim(this.containerNode.innerText||this.containerNode.textContent||""))}});e("dojo-bidi")&&(p=f("dijit.layout._TabButton",p,{_setLabelAttr:function(a){this.inherited(arguments);this.applyTextDir(this.iconNode,this.iconNode.alt)}}));f=f("dijit.layout.TabController",
d,{baseClass:"dijitTabController",templateString:"\x3cdiv role\x3d'tablist' data-dojo-attach-event\x3d'onkeydown:onkeydown'\x3e\x3c/div\x3e",tabPosition:"top",buttonWidget:p,buttonWidgetCloseClass:"dijitTabCloseButton",postCreate:function(){this.inherited(arguments);var d=new a({id:this.id+"_Menu",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir,targetNodeIds:[this.domNode],selector:function(a){return k.contains(a,"dijitClosable")&&!k.contains(a,"dijitTabDisabled")}});
this.own(d);var e=c.getLocalization("dijit","common"),g=this;d.addChild(new h({label:e.itemClose,ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir,onClick:function(a){a=b.byNode(this.getParent().currentTarget);g.onCloseButtonClick(a.page)}}))}});f.TabButton=p;return f})},"dijit/layout/StackController":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-construct dojo/keys dojo/_base/lang dojo/on dojo/topic ../focus ../registry ../_Widget ../_TemplatedMixin ../_Container ../form/ToggleButton dojo/touch".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t){k=m("dijit.layout._StackButton",t,{tabIndex:"-1",closeButton:!1,_aria_attr:"aria-selected",buildRendering:function(a){this.inherited(arguments);(this.focusNode||this.domNode).setAttribute("role","tab")}});m=m("dijit.layout.StackController",[h,p,n],{baseClass:"dijitStackController",templateString:"\x3cspan role\x3d'tablist' data-dojo-attach-event\x3d'onkeydown'\x3e\x3c/span\x3e",containerId:"",buttonWidget:k,buttonWidgetCloseClass:"dijitStackCloseButton",pane2button:function(b){return a.byId(this.id+
"_"+b)},postCreate:function(){this.inherited(arguments);this.own(d.subscribe(this.containerId+"-startup",c.hitch(this,"onStartup")),d.subscribe(this.containerId+"-addChild",c.hitch(this,"onAddChild")),d.subscribe(this.containerId+"-removeChild",c.hitch(this,"onRemoveChild")),d.subscribe(this.containerId+"-selectChild",c.hitch(this,"onSelectChild")),d.subscribe(this.containerId+"-containerKeyDown",c.hitch(this,"onContainerKeyDown")));this.containerNode.dojoClick=!0;this.own(g(this.containerNode,"click",
c.hitch(this,function(b){var c=a.getEnclosingWidget(b.target);if(c!=this.containerNode&&!c.disabled&&c.page)for(b=b.target;b!==this.containerNode;b=b.parentNode)if(l.contains(b,this.buttonWidgetCloseClass)){this.onCloseButtonClick(c.page);break}else if(b==c.domNode){this.onButtonClick(c.page);break}})))},onStartup:function(b){this.textDir=b.textDir;f.forEach(b.children,this.onAddChild,this);if(b.selected)this.onSelectChild(b.selected);var d=a.byId(this.containerId).containerNode,e=c.hitch(this,"pane2button");
b={title:"label",showtitle:"showLabel",iconclass:"iconClass",closable:"closeButton",tooltip:"title",disabled:"disabled",textdir:"textdir"};var h=function(a,b){return g(d,"attrmodified-"+a,function(a){var c=e(a.detail&&a.detail.widget&&a.detail.widget.id);c&&c.set(b,a.detail.newValue)})},k;for(k in b)this.own(h(k,b[k]))},destroy:function(a){this.destroyDescendants(a);this.inherited(arguments)},onAddChild:function(a,b){var d=new (c.isString(this.buttonWidget)?c.getObject(this.buttonWidget):this.buttonWidget)({id:this.id+
"_"+a.id,name:this.id+"_"+a.id,label:a.title,disabled:a.disabled,ownerDocument:this.ownerDocument,dir:a.dir,lang:a.lang,textDir:a.textDir||this.textDir,showLabel:a.showTitle,iconClass:a.iconClass,closeButton:a.closable,title:a.tooltip,page:a});this.addChild(d,b);a.controlButton=d;if(!this._currentChild)this.onSelectChild(a);d=a._wrapper.getAttribute("aria-labelledby")?a._wrapper.getAttribute("aria-labelledby")+" "+d.id:d.id;a._wrapper.removeAttribute("aria-label");a._wrapper.setAttribute("aria-labelledby",
d)},onRemoveChild:function(a){this._currentChild===a&&(this._currentChild=null);var b=this.pane2button(a.id);b&&(this.removeChild(b),b.destroy());delete a.controlButton},onSelectChild:function(b){if(b){if(this._currentChild){var c=this.pane2button(this._currentChild.id);c.set("checked",!1);c.focusNode.setAttribute("tabIndex","-1")}c=this.pane2button(b.id);c.set("checked",!0);this._currentChild=b;c.focusNode.setAttribute("tabIndex","0");a.byId(this.containerId)}},onButtonClick:function(c){var d=this.pane2button(c.id);
b.focus(d.focusNode);this._currentChild&&this._currentChild.id===c.id&&d.set("checked",!0);a.byId(this.containerId).selectChild(c)},onCloseButtonClick:function(c){a.byId(this.containerId).closeChild(c);this._currentChild&&(c=this.pane2button(this._currentChild.id))&&b.focus(c.focusNode||c.domNode)},adjacent:function(a){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition)))a=!a;var b=this.getChildren(),c=f.indexOf(b,this.pane2button(this._currentChild.id)),d=b[c],e;do c=
(c+(a?1:b.length-1))%b.length,e=b[c];while(e.disabled&&e!=d);return e},onkeydown:function(a,b){if(!this.disabled&&!a.altKey){var c=null;if(a.ctrlKey||!a._djpage){switch(a.keyCode){case e.LEFT_ARROW:case e.UP_ARROW:a._djpage||(c=!1);break;case e.PAGE_UP:a.ctrlKey&&(c=!1);break;case e.RIGHT_ARROW:case e.DOWN_ARROW:a._djpage||(c=!0);break;case e.PAGE_DOWN:a.ctrlKey&&(c=!0);break;case e.HOME:for(var d=this.getChildren(),g=0;g<d.length;g++){var h=d[g];if(!h.disabled){this.onButtonClick(h.page);break}}a.stopPropagation();
a.preventDefault();break;case e.END:d=this.getChildren();for(g=d.length-1;0<=g;g--)if(h=d[g],!h.disabled){this.onButtonClick(h.page);break}a.stopPropagation();a.preventDefault();break;case e.DELETE:case 87:if(this._currentChild.closable&&(a.keyCode==e.DELETE||a.ctrlKey))this.onCloseButtonClick(this._currentChild),a.stopPropagation(),a.preventDefault();break;case e.TAB:a.ctrlKey&&(this.onButtonClick(this.adjacent(!a.shiftKey).page),a.stopPropagation(),a.preventDefault())}null!==c&&(this.onButtonClick(this.adjacent(c).page),
a.stopPropagation(),a.preventDefault())}}},onContainerKeyDown:function(a){a.e._djpage=a.page;this.onkeydown(a.e)}});m.StackButton=k;return m})},"dijit/Menu":function(){define("require dojo/_base/array dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-geometry dojo/dom-style dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/_base/window dojo/window ./popup ./DropDownMenu dojo/ready".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s){h("dijit-legacy-requires")&&s(0,function(){f(["dijit/MenuItem",
"dijit/PopupMenuItem","dijit/CheckedMenuItem","dijit/MenuSeparator"])});return l("dijit.Menu",q,{constructor:function(){this._bindings=[]},targetNodeIds:[],selector:"",contextMenuForWindow:!1,leftClickToOpen:!1,refocus:!0,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(this.ownerDocumentBody):m.forEach(this.targetNodeIds,this.bindDomNode,this);this.inherited(arguments)},_iframeContentWindow:function(a){return n.get(this._iframeContentDocument(a))||this._iframeContentDocument(a).__parent__||
a.name&&document.frames[a.name]||null},_iframeContentDocument:function(a){return a.contentDocument||a.contentWindow&&a.contentWindow.document||a.name&&document.frames[a.name]&&document.frames[a.name].document||null},bindDomNode:function(c){c=k.byId(c,this.ownerDocument);var g;if("iframe"==c.tagName.toLowerCase()){var h=c;g=this._iframeContentWindow(h);g=p.body(g.document)}else g=c==p.body(this.ownerDocument)?this.ownerDocument.documentElement:c;var f={node:c,iframe:h};e.set(c,"_dijitMenu"+this.id,
this._bindings.push(f));var n=b.hitch(this,function(b){var c=this.selector,e=c?function(b){return a.selector(c,b)}:function(a){return a},g=this;return[a(b,e(this.leftClickToOpen?"click":"contextmenu"),function(a){a.stopPropagation();a.preventDefault();(new Date).getTime()<g._lastKeyDown+500||g._scheduleOpen(this,h,{x:a.pageX,y:a.pageY},a.target)}),a(b,e("keydown"),function(a){if(93==a.keyCode||a.shiftKey&&a.keyCode==d.F10||g.leftClickToOpen&&a.keyCode==d.SPACE)a.stopPropagation(),a.preventDefault(),
g._scheduleOpen(this,h,null,a.target),g._lastKeyDown=(new Date).getTime()})]});f.connects=g?n(g):[];h&&(f.onloadHandler=b.hitch(this,function(){var a=this._iframeContentWindow(h),a=p.body(a.document);f.connects=n(a)}),h.addEventListener?h.addEventListener("load",f.onloadHandler,!1):h.attachEvent("onload",f.onloadHandler))},unBindDomNode:function(a){var b;try{b=k.byId(a,this.ownerDocument)}catch(c){return}a="_dijitMenu"+this.id;if(b&&e.has(b,a)){for(var d=e.get(b,a)-1,g=this._bindings[d],h;h=g.connects.pop();)h.remove();
(h=g.iframe)&&(h.removeEventListener?h.removeEventListener("load",g.onloadHandler,!1):h.detachEvent("onload",g.onloadHandler));e.remove(b,a);delete this._bindings[d]}},_scheduleOpen:function(a,b,c,d){this._openTimer||(this._openTimer=this.defer(function(){delete this._openTimer;this._openMyself({target:d,delegatedTarget:a,iframe:b,coords:c})},1))},_openMyself:function(a){function b(){m.refocus&&s&&s.focus();t.close(m)}var d=a.target,e=a.iframe,f=a.coords,n=!f;this.currentTarget=a.delegatedTarget;
if(f){if(e){a=c.position(e,!0);var d=this._iframeContentWindow(e),d=c.docScroll(d.document),p=g.getComputedStyle(e),l=g.toPixelValue,q=(h("ie")&&h("quirks")?0:l(e,p.paddingLeft))+(h("ie")&&h("quirks")?l(e,p.borderLeftWidth):0),e=(h("ie")&&h("quirks")?0:l(e,p.paddingTop))+(h("ie")&&h("quirks")?l(e,p.borderTopWidth):0);f.x+=a.x+q-d.x;f.y+=a.y+e-d.y}}else f=c.position(d,!0),f.x+=10,f.y+=10;var m=this,e=this._focusManager.get("prevNode");a=this._focusManager.get("curNode");var s=!a||k.isDescendant(a,
this.domNode)?e:a;t.open({popup:this,x:f.x,y:f.y,onExecute:b,onCancel:b,orient:this.isLeftToRight()?"L":"R"});this.focus();n||this.defer(function(){this._cleanUp(!0)});this._onBlur=function(){this.inherited("_onBlur",arguments);t.close(this)}},destroy:function(){m.forEach(this._bindings,function(a){a&&this.unBindDomNode(a.node)},this);this.inherited(arguments)}})})},"dijit/DropDownMenu":function(){define(["dojo/_base/declare","dojo/keys","dojo/text!./templates/Menu.html","./_MenuBase"],function(f,
m,l,k){return f("dijit.DropDownMenu",k,{templateString:l,baseClass:"dijitMenu",_onUpArrow:function(){this.focusPrev()},_onDownArrow:function(){this.focusNext()},_onRightArrow:function(e){this._moveToPopup(e);e.stopPropagation();e.preventDefault()},_onLeftArrow:function(e){if(this.parentMenu)if(this.parentMenu._isMenuBar)this.parentMenu.focusPrev();else this.onCancel(!1);else e.stopPropagation(),e.preventDefault()}})})},"dijit/_MenuBase":function(){define("dojo/_base/array dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/_base/lang dojo/mouse dojo/on dojo/window ./a11yclick ./registry ./_Widget ./_CssStateMixin ./_KeyNavContainer ./_TemplatedMixin".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q){return m("dijit._MenuBase",[p,q,t,n],{selected:null,_setSelectedAttr:function(a){this.selected!=a&&(this.selected&&(this.selected._setSelected(!1),this._onChildDeselect(this.selected)),a&&a._setSelected(!0),this._set("selected",a))},activated:!1,_setActivatedAttr:function(a){e.toggle(this.domNode,"dijitMenuActive",a);e.toggle(this.domNode,"dijitMenuPassive",!a);this._set("activated",a)},parentMenu:null,popupDelay:500,passivePopupDelay:Infinity,autoFocus:!1,
childSelector:function(a){var b=h.byNode(a);return a.parentNode==this.containerNode&&b&&b.focus},postCreate:function(){var b=this,e="string"==typeof this.childSelector?this.childSelector:c.hitch(this,"childSelector");this.own(d(this.containerNode,d.selector(e,g.enter),function(){b.onItemHover(h.byNode(this))}),d(this.containerNode,d.selector(e,g.leave),function(){b.onItemUnhover(h.byNode(this))}),d(this.containerNode,d.selector(e,a),function(a){b.onItemClick(h.byNode(this),a);a.stopPropagation()}),
d(this.containerNode,d.selector(e,"focusin"),function(){b._onItemFocus(h.byNode(this))}));this.inherited(arguments)},onKeyboardSearch:function(a,b,c,d){this.inherited(arguments);if(a&&(-1==d||a.popup&&1==d))this.onItemClick(a,b)},_keyboardSearchCompare:function(a,b){return a.shortcutKey?b==a.shortcutKey.toLowerCase()?-1:0:this.inherited(arguments)?1:0},onExecute:function(){},onCancel:function(){},_moveToPopup:function(a){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled)this.onItemClick(this.focusedChild,
a);else(a=this._getTopMenu())&&a._isMenuBar&&a.focusNext()},_onPopupHover:function(){this.set("selected",this.currentPopupItem);this._stopPendingCloseTimer()},onItemHover:function(a){this.activated?(this.set("selected",a),a.popup&&(!a.disabled&&!this.hover_timer)&&(this.hover_timer=this.defer(function(){this._openItemPopup(a)},this.popupDelay))):Infinity>this.passivePopupDelay&&(this.passive_hover_timer&&this.passive_hover_timer.remove(),this.passive_hover_timer=this.defer(function(){this.onItemClick(a,
{type:"click"})},this.passivePopupDelay));this._hoveredChild=a;a._set("hovering",!0)},_onChildDeselect:function(a){this._stopPopupTimer();this.currentPopupItem==a&&(this._stopPendingCloseTimer(),this._pendingClose_timer=this.defer(function(){this.currentPopupItem=this._pendingClose_timer=null;a._closePopup()},this.popupDelay))},onItemUnhover:function(a){this._hoveredChild==a&&(this._hoveredChild=null);this.passive_hover_timer&&(this.passive_hover_timer.remove(),this.passive_hover_timer=null);a._set("hovering",
!1)},_stopPopupTimer:function(){this.hover_timer&&(this.hover_timer=this.hover_timer.remove())},_stopPendingCloseTimer:function(){this._pendingClose_timer&&(this._pendingClose_timer=this._pendingClose_timer.remove())},_getTopMenu:function(){for(var a=this;a.parentMenu;a=a.parentMenu);return a},onItemClick:function(a,b){this.passive_hover_timer&&this.passive_hover_timer.remove();this.focusChild(a);if(a.disabled)return!1;if(a.popup){this.set("selected",a);this.set("activated",!0);var c=/^key/.test(b._origType||
b.type)||0==b.clientX&&0==b.clientY;this._openItemPopup(a,c)}else this.onExecute(),a._onClick?a._onClick(b):a.onClick(b)},_openItemPopup:function(a,b){if(a!=this.currentPopupItem){this.currentPopupItem&&(this._stopPendingCloseTimer(),this.currentPopupItem._closePopup());this._stopPopupTimer();var e=a.popup;e.parentMenu=this;this.own(this._mouseoverHandle=d.once(e.domNode,"mouseover",c.hitch(this,"_onPopupHover")));var g=this;a._openPopup({parent:this,orient:this._orient||["after","before"],onCancel:function(){b&&
g.focusChild(a);g._cleanUp()},onExecute:c.hitch(this,"_cleanUp",!0),onClose:function(){g._mouseoverHandle&&(g._mouseoverHandle.remove(),delete g._mouseoverHandle)}},b);this.currentPopupItem=a}},onOpen:function(){this.isShowingNow=!0;this.set("activated",!0)},onClose:function(){this.set("activated",!1);this.set("selected",null);this.isShowingNow=!1;this.parentMenu=null},_closeChild:function(){this._stopPopupTimer();this.currentPopupItem&&(this.focused&&(k.set(this.selected.focusNode,"tabIndex",this.tabIndex),
this.selected.focusNode.focus()),this.currentPopupItem._closePopup(),this.currentPopupItem=null)},_onItemFocus:function(a){if(this._hoveredChild&&this._hoveredChild!=a)this.onItemUnhover(this._hoveredChild);this.set("selected",a)},_onBlur:function(){this._cleanUp(!0);this.inherited(arguments)},_cleanUp:function(a){this._closeChild();"undefined"==typeof this.isShowingNow&&this.set("activated",!1);a&&this.set("selected",null)}})})},"dijit/_KeyNavContainer":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/_base/kernel dojo/keys dojo/_base/lang ./registry ./_Container ./_FocusMixin ./_KeyNavMixin".split(" "),
function(f,m,l,k,e,c,g,d,b,a){return m("dijit._KeyNavContainer",[b,a,d],{connectKeyNavHandlers:function(a,b){var d=this._keyNavCodes={},g=c.hitch(this,"focusPrev"),k=c.hitch(this,"focusNext");f.forEach(a,function(a){d[a]=g});f.forEach(b,function(a){d[a]=k});d[e.HOME]=c.hitch(this,"focusFirstChild");d[e.END]=c.hitch(this,"focusLastChild")},startupKeyNavChildren:function(){k.deprecated("startupKeyNavChildren() call no longer needed","","2.0")},startup:function(){this.inherited(arguments);f.forEach(this.getChildren(),
c.hitch(this,"_startupChild"))},addChild:function(a,b){this.inherited(arguments);this._startupChild(a)},_startupChild:function(a){a.set("tabIndex","-1")},_getFirst:function(){var a=this.getChildren();return a.length?a[0]:null},_getLast:function(){var a=this.getChildren();return a.length?a[a.length-1]:null},focusNext:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,1))},focusPrev:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,-1),!0)},childSelector:function(a){return(a=
g.byNode(a))&&a.getParent()==this}})})},"dijit/MenuItem":function(){define("dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/_base/kernel dojo/sniff dojo/_base/lang ./_Widget ./_TemplatedMixin ./_Contained ./_CssStateMixin dojo/text!./templates/MenuItem.html".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p){g=f("dijit.MenuItem"+(c("dojo-bidi")?"_NoBidi":""),[d,b,a,h],{templateString:p,baseClass:"dijitMenuItem",label:"",_setLabelAttr:function(a){this._set("label",a);var b="",c;c=a.search(/{\S}/);
if(0<=c){var b=a.charAt(c+1),d=a.substr(0,c);a=a.substr(c+3);c=d+b+a;a=d+'\x3cspan class\x3d"dijitMenuItemShortcutKey"\x3e'+b+"\x3c/span\x3e"+a}else c=a;this.domNode.setAttribute("aria-label",c+" "+this.accelKey);this.containerNode.innerHTML=a;this._set("shortcutKey",b)},iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},accelKey:"",disabled:!1,_fillContent:function(a){a&&!("label"in this.params)&&this._set("label",a.innerHTML)},buildRendering:function(){this.inherited(arguments);
l.set(this.containerNode,"id",this.id+"_text");this.accelKeyNode&&l.set(this.accelKeyNode,"id",this.id+"_accel");m.setSelectable(this.domNode,!1)},onClick:function(){},focus:function(){try{8==c("ie")&&this.containerNode.focus(),this.focusNode.focus()}catch(a){}},_setSelected:function(a){k.toggle(this.domNode,"dijitMenuItemSelected",a)},setLabel:function(a){e.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",a)},setDisabled:function(a){e.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.",
"","2.0");this.set("disabled",a)},_setDisabledAttr:function(a){this.focusNode.setAttribute("aria-disabled",a?"true":"false");this._set("disabled",a)},_setAccelKeyAttr:function(a){this.accelKeyNode&&(this.accelKeyNode.style.display=a?"":"none",this.accelKeyNode.innerHTML=a,l.set(this.containerNode,"colSpan",a?"1":"2"));this._set("accelKey",a)}});c("dojo-bidi")&&(g=f("dijit.MenuItem",g,{_setLabelAttr:function(a){this.inherited(arguments);"auto"===this.textDir&&this.applyTextDir(this.textDirNode)}}));
return g})},"dijit/layout/ScrollingTabController":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/fx dojo/_base/lang dojo/on dojo/query dojo/sniff ../registry dojo/text!./templates/ScrollingTabController.html dojo/text!./templates/_ScrollingTabControllerButton.html ./TabController ./utils ../_WidgetsInTemplateMixin ../Menu ../MenuItem ../form/Button ../_HasDropDown dojo/NodeList-dom ../a11yclick".split(" "),function(f,m,l,k,e,c,g,d,
b,a,h,p,n,t,q,s,r,w,u,v){p=m("dijit.layout.ScrollingTabController",[t,s],{baseClass:"dijitTabController dijitScrollingTabController",templateString:p,useMenu:!0,useSlider:!0,tabStripClass:"",_minScroll:5,_setClassAttr:{node:"containerNode",type:"class"},buildRendering:function(){this.inherited(arguments);var a=this.domNode;this.scrollNode=this.tablistWrapper;this._initButtons();this.tabStripClass||(this.tabStripClass="dijitTabContainer"+this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,
"")+"None",l.add(a,"tabStrip-disabled"));l.add(this.tablistWrapper,this.tabStripClass)},onStartup:function(){this.inherited(arguments);e.set(this.domNode,"visibility","");this._postStartup=!0;this.own(d(this.containerNode,"attrmodified-label, attrmodified-iconclass",g.hitch(this,function(a){this._dim&&this.resize(this._dim)})))},onAddChild:function(a,b){this.inherited(arguments);e.set(this.containerNode,"width",e.get(this.containerNode,"width")+200+"px")},onRemoveChild:function(a,b){var c=this.pane2button(a.id);
this._selectedTab===c.domNode&&(this._selectedTab=null);this.inherited(arguments)},_initButtons:function(){this._btnWidth=0;this._buttons=b("\x3e .tabStripButton",this.domNode).filter(function(a){if(this.useMenu&&a==this._menuBtn.domNode||this.useSlider&&(a==this._rightBtn.domNode||a==this._leftBtn.domNode))return this._btnWidth+=k.getMarginSize(a).w,!0;e.set(a,"display","none");return!1},this)},_getTabsWidth:function(){var a=this.getChildren();if(a.length){var b=a[this.isLeftToRight()?0:a.length-
1].domNode,a=a[this.isLeftToRight()?a.length-1:0].domNode;return a.offsetLeft+a.offsetWidth-b.offsetLeft}return 0},_enableBtn:function(a){var b=this._getTabsWidth();a=a||e.get(this.scrollNode,"width");return 0<b&&a<b},resize:function(a){this._dim=a;this.scrollNode.style.height="auto";var b=this._contentBox=q.marginBox2contentBox(this.domNode,{h:0,w:a.w});b.h=this.scrollNode.offsetHeight;k.setContentSize(this.domNode,b);b=this._enableBtn(this._contentBox.w);this._buttons.style("display",b?"":"none");
this._leftBtn.region="left";this._rightBtn.region="right";this._menuBtn.region=this.isLeftToRight()?"right":"left";q.layoutChildren(this.domNode,this._contentBox,[this._menuBtn,this._leftBtn,this._rightBtn,{domNode:this.scrollNode,region:"center"}]);this._selectedTab&&(this._anim&&"playing"==this._anim.status()&&this._anim.stop(),this.scrollNode.scrollLeft=this._convertToScrollLeft(this._getScrollForSelectedTab()));this._setButtonClass(this._getScroll());this._postResize=!0;return{h:this._contentBox.h,
w:a.w}},_getScroll:function(){return this.isLeftToRight()||8>a("ie")||a("trident")&&a("quirks")||a("webkit")?this.scrollNode.scrollLeft:e.get(this.containerNode,"width")-e.get(this.scrollNode,"width")+(a("trident")||a("edge")?-1:1)*this.scrollNode.scrollLeft},_convertToScrollLeft:function(b){if(this.isLeftToRight()||8>a("ie")||a("trident")&&a("quirks")||a("webkit"))return b;var c=e.get(this.containerNode,"width")-e.get(this.scrollNode,"width");return(a("trident")||a("edge")?-1:1)*(b-c)},onSelectChild:function(a,
b){var c=this.pane2button(a.id);if(c){var d=c.domNode;if(d!=this._selectedTab&&(this._selectedTab=d,this._postResize)){var g=this._getScroll();g>d.offsetLeft||g+e.get(this.scrollNode,"width")<d.offsetLeft+e.get(d,"width")?(d=this.createSmoothScroll(),b&&(d.onEnd=function(){c.focus()}),d.play()):b&&c.focus()}this.inherited(arguments)}},_getScrollBounds:function(){var a=this.getChildren(),b=e.get(this.scrollNode,"width"),c=e.get(this.containerNode,"width")-b,d=this._getTabsWidth();if(a.length&&d>b)return{min:this.isLeftToRight()?
0:a[a.length-1].domNode.offsetLeft,max:this.isLeftToRight()?a[a.length-1].domNode.offsetLeft+a[a.length-1].domNode.offsetWidth-b:c};a=this.isLeftToRight()?0:c;return{min:a,max:a}},_getScrollForSelectedTab:function(){var a=this._selectedTab,b=e.get(this.scrollNode,"width"),c=this._getScrollBounds(),a=a.offsetLeft+e.get(a,"width")/2-b/2;return a=Math.min(Math.max(a,c.min),c.max)},createSmoothScroll:function(a){if(0<arguments.length){var b=this._getScrollBounds();a=Math.min(Math.max(a,b.min),b.max)}else a=
this._getScrollForSelectedTab();this._anim&&"playing"==this._anim.status()&&this._anim.stop();var d=this,e=this.scrollNode,g=new c.Animation({beforeBegin:function(){this.curve&&delete this.curve;var b=e.scrollLeft,h=d._convertToScrollLeft(a);g.curve=new c._Line(b,h)},onAnimate:function(a){e.scrollLeft=a}});this._anim=g;this._setButtonClass(a);return g},_getBtnNode:function(a){for(a=a.target;a&&!l.contains(a,"tabStripButton");)a=a.parentNode;return a},doSlideRight:function(a){this.doSlide(1,this._getBtnNode(a))},
doSlideLeft:function(a){this.doSlide(-1,this._getBtnNode(a))},doSlide:function(a,b){if(!b||!l.contains(b,"dijitTabDisabled")){var c=0.75*e.get(this.scrollNode,"width")*a,c=this._getScroll()+c;this._setButtonClass(c);this.createSmoothScroll(c).play()}},_setButtonClass:function(a){var b=this._getScrollBounds();this._leftBtn.set("disabled",a<=b.min);this._rightBtn.set("disabled",a>=b.max)}});n=m("dijit.layout._ScrollingTabControllerButtonMixin",null,{baseClass:"dijitTab tabStripButton",templateString:n,
tabIndex:"",isFocusable:function(){return!1}});m("dijit.layout._ScrollingTabControllerButton",[u,n]);m("dijit.layout._ScrollingTabControllerMenuButton",[u,v,n],{containerId:"",tabIndex:"-1",isLoaded:function(){return!1},loadDropDown:function(a){this.dropDown=new r({id:this.containerId+"_menu",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir});var b=h.byId(this.containerId);f.forEach(b.getChildren(),function(a){var c=new w({id:a.id+"_stcMi",label:a.title,iconClass:a.iconClass,
disabled:a.disabled,ownerDocument:this.ownerDocument,dir:a.dir,lang:a.lang,textDir:a.textDir||b.textDir,onClick:function(){b.selectChild(a)}});this.dropDown.addChild(c)},this);a()},closeDropDown:function(a){this.inherited(arguments);this.dropDown&&(this._popupStateNode.removeAttribute("aria-owns"),this.dropDown.destroyRecursive(),delete this.dropDown)}});return p})},"dijit/_WidgetsInTemplateMixin":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/_base/lang","dojo/parser"],
function(f,m,l,k,e){return l("dijit._WidgetsInTemplateMixin",null,{_earlyTemplatedStartup:!1,contextRequire:null,_beforeFillContent:function(){if(/dojoType|data-dojo-type/i.test(this.domNode.innerHTML)){var c=this.domNode;this.containerNode&&!this.searchContainerNode&&(this.containerNode.stopParser=!0);e.parse(c,{noStart:!this._earlyTemplatedStartup,template:!0,inherited:{dir:this.dir,lang:this.lang,textDir:this.textDir},propsThis:this,contextRequire:this.contextRequire,scope:"dojo"}).then(k.hitch(this,
function(c){this._startupWidgets=c;for(var d=0;d<c.length;d++)this._processTemplateNode(c[d],function(b,a){return b[a]},function(b,a,c){return a in b?b.connect(b,a,c):b.on(a,c,!0)});this.containerNode&&this.containerNode.stopParser&&delete this.containerNode.stopParser}));if(!this._startupWidgets)throw Error(this.declaredClass+": parser returned unfilled promise (probably waiting for module auto-load), unsupported by _WidgetsInTemplateMixin.   Must pre-load all supporting widgets before instantiation.");
}},_processTemplateNode:function(c,e,d){return e(c,"dojoType")||e(c,"data-dojo-type")?!0:this.inherited(arguments)},startup:function(){f.forEach(this._startupWidgets,function(c){c&&(!c._started&&c.startup)&&c.startup()});this._startupWidgets=null;this.inherited(arguments)}})})},"dijit/layout/AccordionContainer":function(){define("require dojo/_base/array dojo/_base/declare dojo/_base/fx dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/keys dojo/_base/lang dojo/sniff dojo/topic ../focus ../_base/manager dojo/ready ../_Widget ../_Container ../_TemplatedMixin ../_CssStateMixin ./StackContainer ./ContentPane dojo/text!./templates/AccordionButton.html ../a11yclick".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r,w,u,v,x,y,z){function A(a,c){a.resize?a.resize(c):b.setMarginBox(a.domNode,c)}n=l("dijit.layout._AccordionButton",[r,u,v],{templateString:z,label:"",_setLabelAttr:{node:"titleTextNode",type:"innerHTML"},title:"",_setTitleAttr:{node:"titleTextNode",type:"attribute",attribute:"title"},iconClassAttr:"",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitAccordionTitle",getParent:function(){return this.parent},buildRendering:function(){this.inherited(arguments);
var a=this.id.replace(" ","_");c.set(this.titleTextNode,"id",a+"_title");this.focusNode.setAttribute("aria-labelledby",c.get(this.titleTextNode,"id"));e.setSelectable(this.domNode,!1)},getTitleHeight:function(){return b.getMarginSize(this.domNode).h},_onTitleClick:function(){this.getParent().selectChild(this.contentWidget,!0);t.focus(this.focusNode)},_onTitleKeyDown:function(a){return this.getParent()._onKeyDown(a,this.contentWidget)},_setSelectedAttr:function(a){this._set("selected",a);this.focusNode.setAttribute("aria-expanded",
a?"true":"false");this.focusNode.setAttribute("aria-selected",a?"true":"false");this.focusNode.setAttribute("tabIndex",a?"0":"-1")}});p("dojo-bidi")&&n.extend({_setLabelAttr:function(a){this._set("label",a);c.set(this.titleTextNode,"innerHTML",a);this.applyTextDir(this.titleTextNode)},_setTitleAttr:function(a){this._set("title",a);c.set(this.titleTextNode,"title",a);this.applyTextDir(this.titleTextNode)}});var E=l("dijit.layout._AccordionInnerContainer"+(p("dojo-bidi")?"_NoBidi":""),[r,v],{baseClass:"dijitAccordionInnerContainer",
isLayoutContainer:!0,buildRendering:function(){this.domNode=d.place("\x3cdiv class\x3d'"+this.baseClass+"' role\x3d'presentation'\x3e",this.contentWidget.domNode,"after");var a=this.contentWidget,b=h.isString(this.buttonWidget)?h.getObject(this.buttonWidget):this.buttonWidget;this.button=a._buttonWidget=(new b({contentWidget:a,label:a.title,title:a.tooltip,dir:a.dir,lang:a.lang,textDir:a.textDir||this.textDir,iconClass:a.iconClass,id:a.id+"_button",parent:this.parent})).placeAt(this.domNode);this.containerNode=
d.place("\x3cdiv class\x3d'dijitAccordionChildWrapper' role\x3d'tabpanel' style\x3d'display:none'\x3e",this.domNode);this.containerNode.setAttribute("aria-labelledby",this.button.id);d.place(this.contentWidget.domNode,this.containerNode)},postCreate:function(){this.inherited(arguments);var a=this.button,b=this.contentWidget;this._contentWidgetWatches=[b.watch("title",h.hitch(this,function(b,c,d){a.set("label",d)})),b.watch("tooltip",h.hitch(this,function(b,c,d){a.set("title",d)})),b.watch("iconClass",
h.hitch(this,function(b,c,d){a.set("iconClass",d)}))]},_setSelectedAttr:function(a){this._set("selected",a);this.button.set("selected",a);if(a&&(a=this.contentWidget,a.onSelected))a.onSelected()},startup:function(){this.contentWidget.startup()},destroy:function(){this.button.destroyRecursive();m.forEach(this._contentWidgetWatches||[],function(a){a.unwatch()});delete this.contentWidget._buttonWidget;delete this.contentWidget._wrapperWidget;this.inherited(arguments)},destroyDescendants:function(a){this.contentWidget.destroyRecursive(a)}});
p("dojo-bidi")&&(E=l("dijit.layout._AccordionInnerContainer",E,{postCreate:function(){this.inherited(arguments);var a=this.button;this._contentWidgetWatches.push(this.contentWidget.watch("textDir",function(b,c,d){a.set("textDir",d)}))}}));l=l("dijit.layout.AccordionContainer",x,{duration:q.defaultDuration,buttonWidget:n,baseClass:"dijitAccordionContainer",buildRendering:function(){this.inherited(arguments);this.domNode.style.overflow="hidden";this.domNode.setAttribute("role","tablist")},startup:function(){this._started||
(this.inherited(arguments),this.selectedChildWidget&&this.selectedChildWidget._wrapperWidget.set("selected",!0))},layout:function(){var a=this.selectedChildWidget;if(a){var c=a._wrapperWidget.domNode,d=b.getMarginExtents(c),c=b.getPadBorderExtents(c),e=a._wrapperWidget.containerNode,g=b.getMarginExtents(e),e=b.getPadBorderExtents(e),h=this._contentBox,f=0;m.forEach(this.getChildren(),function(c){c!=a&&(f+=b.getMarginSize(c._wrapperWidget.domNode).h)});this._verticalSpace=h.h-f-d.h-c.h-g.h-e.h-a._buttonWidget.getTitleHeight();
this._containerContentBox={h:this._verticalSpace,w:this._contentBox.w-d.w-c.w-g.w-e.w};a&&A(a,this._containerContentBox)}},_setupChild:function(a){a._wrapperWidget=E({contentWidget:a,buttonWidget:this.buttonWidget,id:a.id+"_wrapper",dir:a.dir,lang:a.lang,textDir:a.textDir||this.textDir,parent:this});this.inherited(arguments);d.place(a.domNode,a._wrapper,"replace")},removeChild:function(a){a._wrapperWidget&&(d.place(a.domNode,a._wrapperWidget.domNode,"after"),a._wrapperWidget.destroy(),delete a._wrapperWidget);
g.remove(a.domNode,"dijitHidden");this.inherited(arguments)},getChildren:function(){return m.map(this.inherited(arguments),function(a){return"dijit.layout._AccordionInnerContainer"==a.declaredClass?a.contentWidget:a},this)},destroy:function(){this._animation&&this._animation.stop();m.forEach(this.getChildren(),function(a){a._wrapperWidget?a._wrapperWidget.destroy():a.destroyRecursive()});this.inherited(arguments)},_showChild:function(a){a._wrapperWidget.containerNode.style.display="block";return this.inherited(arguments)},
_hideChild:function(a){a._wrapperWidget.containerNode.style.display="none";this.inherited(arguments)},_transition:function(a,c,d){8>p("ie")&&(d=!1);this._animation&&(this._animation.stop(!0),delete this._animation);var e=this;if(a){a._wrapperWidget.set("selected",!0);var g=this._showChild(a);this.doLayout&&A(a,this._containerContentBox)}c&&(c._wrapperWidget.set("selected",!1),d||this._hideChild(c));if(d){var h=a._wrapperWidget.containerNode,f=c._wrapperWidget.containerNode;d=a._wrapperWidget.containerNode;
a=b.getMarginExtents(d);d=b.getPadBorderExtents(d);var n=a.h+d.h;f.style.height=e._verticalSpace-n+"px";this._animation=new k.Animation({node:h,duration:this.duration,curve:[1,this._verticalSpace-n-1],onAnimate:function(a){a=Math.floor(a);h.style.height=a+"px";f.style.height=e._verticalSpace-n-a+"px"},onEnd:function(){delete e._animation;h.style.height="auto";c._wrapperWidget.containerNode.style.display="none";f.style.height="auto";e._hideChild(c)}});this._animation.onStop=this._animation.onEnd;this._animation.play()}return g},
_onKeyDown:function(b,c){if(!this.disabled&&!(b.altKey||!c&&!b.ctrlKey)){var d=b.keyCode;if(c&&(d==a.LEFT_ARROW||d==a.UP_ARROW)||b.ctrlKey&&d==a.PAGE_UP)this._adjacent(!1)._buttonWidget._onTitleClick(),b.stopPropagation(),b.preventDefault();else if(c&&(d==a.RIGHT_ARROW||d==a.DOWN_ARROW)||b.ctrlKey&&(d==a.PAGE_DOWN||d==a.TAB))this._adjacent(!0)._buttonWidget._onTitleClick(),b.stopPropagation(),b.preventDefault()}}});p("dijit-legacy-requires")&&s(0,function(){f(["dijit/layout/AccordionPane"])});l._InnerContainer=
E;l._Button=n;return l})},"dijit/layout/AccordionPane":function(){define(["dojo/_base/declare","dojo/_base/kernel","./ContentPane"],function(f,m,l){return f("dijit.layout.AccordionPane",l,{constructor:function(){m.deprecated("dijit.layout.AccordionPane deprecated, use ContentPane instead","","2.0")},onSelected:function(){}})})},"dojox/widget/Dialog":function(){define("dojo dojox dojo/text!./Dialog/Dialog.html dijit/Dialog dojo/window dojox/fx ./DialogSimple".split(" "),function(f,m,l){f.getObject("widget",
!0,m);return f.declare("dojox.widget.Dialog",m.widget.DialogSimple,{templateString:l,sizeToViewport:!1,viewportPadding:35,dimensions:null,easing:null,sizeDuration:dijit._defaultDuration,sizeMethod:"chain",showTitle:!1,draggable:!1,modal:!1,constructor:function(k,e){this.easing=k.easing||f._defaultEasing;this.dimensions=k.dimensions||[300,300]},_setup:function(){this.inherited(arguments);this._alreadyInitialized||(this._navIn=f.fadeIn({node:this.closeButtonNode}),this._navOut=f.fadeOut({node:this.closeButtonNode}),
this.showTitle||f.addClass(this.domNode,"dojoxDialogNoTitle"))},layout:function(f){this._setSize();this.inherited(arguments)},_setSize:function(){this._vp=f.window.getBox();var k=this.containerNode,e=this.sizeToViewport;return this._displaysize={w:e?k.scrollWidth:this.dimensions[0],h:e?k.scrollHeight:this.dimensions[1]}},show:function(){this.open||(this._setSize(),f.style(this.closeButtonNode,"opacity",0),f.style(this.domNode,{overflow:"hidden",opacity:0,width:"1px",height:"1px"}),f.style(this.containerNode,
{opacity:0,overflow:"hidden"}),this.inherited(arguments),this.modal?this._modalconnects.push(f.connect(f.body(),"onkeypress",function(k){k.charOrCode==f.keys.ESCAPE&&f.stopEvent(k)})):this._modalconnects.push(f.connect(dijit._underlay.domNode,"onclick",this,"onCancel")),this._modalconnects.push(f.connect(this.domNode,"onmouseenter",this,"_handleNav")),this._modalconnects.push(f.connect(this.domNode,"onmouseleave",this,"_handleNav")))},_handleNav:function(f){var e="mouseout"==f.type?"_navOut":"_navIn";
this["mouseout"==f.type?"_navIn":"_navOut"].stop();this[e].play()},_position:function(){if(this._started){this._sizing&&(this._sizing.stop(),this.disconnect(this._sizingConnect),delete this._sizing);this.inherited(arguments);this.open||f.style(this.containerNode,"opacity",0);var k=2*this.viewportPadding,e={node:this.domNode,duration:this.sizeDuration||dijit._defaultDuration,easing:this.easing,method:this.sizeMethod},c=this._displaysize||this._setSize();e.width=c.w=c.w+k>=this._vp.w||this.sizeToViewport?
this._vp.w-k:c.w;e.height=c.h=c.h+k>=this._vp.h||this.sizeToViewport?this._vp.h-k:c.h;this._sizing=m.fx.sizeTo(e);this._sizingConnect=this.connect(this._sizing,"onEnd","_showContent");this._sizing.play()}},_showContent:function(k){k=this.containerNode;f.style(this.domNode,{overflow:"visible",opacity:1});f.style(this.closeButtonNode,"opacity",1);f.style(k,{height:this._displaysize.h-this.titleNode.offsetHeight+"px",width:this._displaysize.w+"px",overflow:"auto"});f.anim(k,{opacity:1})}})})},"dojo/main":function(){define("./_base/kernel ./has require ./sniff ./_base/lang ./_base/array ./_base/config ./ready ./_base/declare ./_base/connect ./_base/Deferred ./_base/json ./_base/Color ./has!dojo-firebug?./_firebug/firebug ./_base/browser ./_base/loader".split(" "),
function(f,m,l,k,e,c,g,d){g.isDebug&&l(["./_firebug/firebug"]);var b=g.require;b&&(b=c.map(e.isArray(b)?b:[b],function(a){return a.replace(/\./g,"/")}),f.isAsync?l(b):d(1,function(){l(b)}));return f})},"dojo/_base/browser":function(){require.has&&require.has.add("config-selectorEngine","acme");define("../ready ./kernel ./connect ./unload ./window ./event ./html ./NodeList ../query ./xhr ./fx".split(" "),function(f){return f})},"dojo/_base/unload":function(){define(["./kernel","./lang","../on"],function(f,
m,l){var k=window,e={addOnWindowUnload:function(c,e){f.windowUnloaded||l(k,"unload",f.windowUnloaded=function(){});l(k,"unload",m.hitch(c,e))},addOnUnload:function(c,e){l(k,"beforeunload",m.hitch(c,e))}};f.addOnWindowUnload=e.addOnWindowUnload;f.addOnUnload=e.addOnUnload;return e})},"dojo/_base/html":function(){define("./kernel ../dom ../dom-style ../dom-attr ../dom-prop ../dom-class ../dom-construct ../dom-geometry".split(" "),function(f,m,l,k,e,c,g,d){f.byId=m.byId;f.isDescendant=m.isDescendant;
f.setSelectable=m.setSelectable;f.getAttr=k.get;f.setAttr=k.set;f.hasAttr=k.has;f.removeAttr=k.remove;f.getNodeProp=k.getNodeProp;f.attr=function(b,a,c){return 2==arguments.length?k["string"==typeof a?"get":"set"](b,a):k.set(b,a,c)};f.hasClass=c.contains;f.addClass=c.add;f.removeClass=c.remove;f.toggleClass=c.toggle;f.replaceClass=c.replace;f._toDom=f.toDom=g.toDom;f.place=g.place;f.create=g.create;f.empty=function(b){g.empty(b)};f._destroyElement=f.destroy=function(b){g.destroy(b)};f._getPadExtents=
f.getPadExtents=d.getPadExtents;f._getBorderExtents=f.getBorderExtents=d.getBorderExtents;f._getPadBorderExtents=f.getPadBorderExtents=d.getPadBorderExtents;f._getMarginExtents=f.getMarginExtents=d.getMarginExtents;f._getMarginSize=f.getMarginSize=d.getMarginSize;f._getMarginBox=f.getMarginBox=d.getMarginBox;f.setMarginBox=d.setMarginBox;f._getContentBox=f.getContentBox=d.getContentBox;f.setContentSize=d.setContentSize;f._isBodyLtr=f.isBodyLtr=d.isBodyLtr;f._docScroll=f.docScroll=d.docScroll;f._getIeDocumentElementOffset=
f.getIeDocumentElementOffset=d.getIeDocumentElementOffset;f._fixIeBiDiScrollLeft=f.fixIeBiDiScrollLeft=d.fixIeBiDiScrollLeft;f.position=d.position;f.marginBox=function(b,a){return a?d.setMarginBox(b,a):d.getMarginBox(b)};f.contentBox=function(b,a){return a?d.setContentSize(b,a):d.getContentBox(b)};f.coords=function(b,a){f.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");b=m.byId(b);var c=l.getComputedStyle(b),c=d.getMarginBox(b,c),e=d.position(b,a);c.x=e.x;c.y=e.y;return c};
f.getProp=e.get;f.setProp=e.set;f.prop=function(b,a,c){return 2==arguments.length?e["string"==typeof a?"get":"set"](b,a):e.set(b,a,c)};f.getStyle=l.get;f.setStyle=l.set;f.getComputedStyle=l.getComputedStyle;f.__toPixelValue=f.toPixelValue=l.toPixelValue;f.style=function(b,a,c){switch(arguments.length){case 1:return l.get(b);case 2:return l["string"==typeof a?"get":"set"](b,a)}return l.set(b,a,c)};return f})},"dojo/_base/NodeList":function(){define(["./kernel","../query","./array","./html","../NodeList-dom"],
function(f,m,l){m=m.NodeList;var k=m.prototype;k.connect=m._adaptAsForEach(function(){return f.connect.apply(this,arguments)});k.coords=m._adaptAsMap(f.coords);m.events="blur focus change click error keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup submit".split(" ");l.forEach(m.events,function(e){var c="on"+e;k[c]=function(e,d){return this.connect(c,e,d)}});return f.NodeList=m})},"dojox/main":function(){define(["dojo/_base/kernel"],function(f){return f.dojox})},
"dijit/Dialog":function(){define("require dojo/_base/array dojo/aspect dojo/_base/declare dojo/Deferred dojo/dom dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/_base/fx dojo/i18n dojo/keys dojo/_base/lang dojo/on dojo/ready dojo/sniff dojo/window dojo/dnd/Moveable dojo/dnd/TimedMoveable ./focus ./_base/manager ./_Widget ./_TemplatedMixin ./_CssStateMixin ./form/_FormMixin ./_DialogMixin ./DialogUnderlay ./layout/ContentPane ./layout/utils dojo/text!./templates/Dialog.html ./a11yclick dojo/i18n!./nls/common".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r,w,u,v,x,y,z,A,E,B,G,L,I,J){function H(){}var K=new e;K.resolve(!0);x=k("dijit._DialogBase"+(s("dojo-bidi")?"_NoBidi":""),[z,E,B,A],{templateString:J,baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},_setTitleAttr:{node:"titleNode",type:"innerHTML"},open:!1,duration:x.defaultDuration,refocus:!0,autofocus:!0,_firstFocusItem:null,_lastFocusItem:null,draggable:!0,_setDraggableAttr:function(a){this._set("draggable",a)},maxRatio:0.9,
closable:!0,_setClosableAttr:function(a){this.closeButtonNode.style.display=a?"":"none";this._set("closable",a)},postMixInProperties:function(){var a=h.getLocalization("dijit","common");n.mixin(this,a);this.inherited(arguments)},postCreate:function(){b.set(this.domNode,{display:"none",position:"absolute"});this.ownerDocumentBody.appendChild(this.domNode);this.inherited(arguments);l.after(this,"onExecute",n.hitch(this,"hide"),!0);l.after(this,"onCancel",n.hitch(this,"hide"),!0);this._modalconnects=
[]},onLoad:function(){this.resize();this._position();this.autofocus&&D.isTop(this)&&(this._getFocusItems(),v.focus(this._firstFocusItem));this.inherited(arguments)},focus:function(){this._getFocusItems();v.focus(this._firstFocusItem)},_endDrag:function(){var a=d.position(this.domNode),b=r.getBox(this.ownerDocument);a.y=Math.min(Math.max(a.y,0),b.h-a.h);a.x=Math.min(Math.max(a.x,0),b.w-a.w);this._relativePosition=a;this._position()},_setup:function(){var a=this.domNode;this.titleBar&&this.draggable?
(this._moveable=new (6==s("ie")?u:w)(a,{handle:this.titleBar}),l.after(this._moveable,"onMoveStop",n.hitch(this,"_endDrag"),!0)):g.add(a,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":m.map(this["class"].split(/\s/),function(a){return a+"_underlay"}).join(" "),_onKeyDown:n.hitch(this,"_onKey"),ownerDocument:this.ownerDocument}},_size:function(){this.resize()},_position:function(){if(!g.contains(this.ownerDocumentBody,"dojoMove")){var a=this.domNode,c=r.getBox(this.ownerDocument),
e=this._relativePosition,h=d.position(a),f=Math.floor(c.l+(e?Math.min(e.x,c.w-h.w):(c.w-h.w)/2)),c=Math.floor(c.t+(e?Math.min(e.y,c.h-h.h):(c.h-h.h)/2));b.set(a,{left:f+"px",top:c+"px"})}},_onKey:function(a){if(a.keyCode==p.TAB){this._getFocusItems();var b=a.target;this._firstFocusItem==this._lastFocusItem?(a.stopPropagation(),a.preventDefault()):b==this._firstFocusItem&&a.shiftKey?(v.focus(this._lastFocusItem),a.stopPropagation(),a.preventDefault()):b==this._lastFocusItem&&!a.shiftKey&&(v.focus(this._firstFocusItem),
a.stopPropagation(),a.preventDefault())}else this.closable&&a.keyCode==p.ESCAPE&&(this.onCancel(),a.stopPropagation(),a.preventDefault())},show:function(){if(this.open)return K.promise;this._started||this.startup();this._alreadyInitialized||(this._setup(),this._alreadyInitialized=!0);this._fadeOutDeferred&&(this._fadeOutDeferred.cancel(),D.hide(this));var c=r.get(this.ownerDocument);this._modalconnects.push(t(c,"scroll",n.hitch(this,"resize",null)));this._modalconnects.push(t(this.domNode,"keydown",
n.hitch(this,"_onKey")));b.set(this.domNode,{opacity:0,display:""});this._set("open",!0);this._onShow();this.resize();this._position();var d;this._fadeInDeferred=new e(n.hitch(this,function(){d.stop();delete this._fadeInDeferred}));this._fadeInDeferred.then(void 0,H);c=this._fadeInDeferred.promise;d=a.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:n.hitch(this,function(){D.show(this,this.underlayAttrs)}),onEnd:n.hitch(this,function(){this.autofocus&&D.isTop(this)&&(this._getFocusItems(),
v.focus(this._firstFocusItem));this._fadeInDeferred.resolve(!0);delete this._fadeInDeferred})}).play();return c},hide:function(){if(!this._alreadyInitialized||!this.open)return K.promise;this._fadeInDeferred&&this._fadeInDeferred.cancel();var b;this._fadeOutDeferred=new e(n.hitch(this,function(){b.stop();delete this._fadeOutDeferred}));this._fadeOutDeferred.then(void 0,H);this._fadeOutDeferred.then(n.hitch(this,"onHide"));var c=this._fadeOutDeferred.promise;b=a.fadeOut({node:this.domNode,duration:this.duration,
onEnd:n.hitch(this,function(){this.domNode.style.display="none";D.hide(this);this._fadeOutDeferred.resolve(!0);delete this._fadeOutDeferred})}).play();this._scrollConnected&&(this._scrollConnected=!1);for(var d;d=this._modalconnects.pop();)d.remove();this._relativePosition&&delete this._relativePosition;this._set("open",!1);return c},resize:function(a){if("none"!=this.domNode.style.display){this._checkIfSingleChild();if(!a){this._shrunk&&(this._singleChild&&"undefined"!=typeof this._singleChildOriginalStyle&&
(this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle,delete this._singleChildOriginalStyle),m.forEach([this.domNode,this.containerNode,this.titleBar,this.actionBarNode],function(a){a&&b.set(a,{position:"static",width:"auto",height:"auto"})}),this.domNode.style.position="absolute");var c=r.getBox(this.ownerDocument);c.w*=this.maxRatio;c.h*=this.maxRatio;var e=d.position(this.domNode);e.w>=c.w||e.h>=c.h?(a={w:Math.min(e.w,c.w),h:Math.min(e.h,c.h)},this._shrunk=!0):this._shrunk=!1}if(a){d.setMarginBox(this.domNode,
a);c=[];this.titleBar&&c.push({domNode:this.titleBar,region:"top"});this.actionBarNode&&c.push({domNode:this.actionBarNode,region:"bottom"});e={domNode:this.containerNode,region:"center"};c.push(e);var g=I.marginBox2contentBox(this.domNode,a);I.layoutChildren(this.domNode,g,c);this._singleChild?(c=I.marginBox2contentBox(this.containerNode,e),this._singleChild.resize({w:c.w,h:c.h})):(this.containerNode.style.overflow="auto",this._layoutChildren())}else this._layoutChildren();!s("touch")&&!a&&this._position()}},
_layoutChildren:function(){m.forEach(this.getChildren(),function(a){a.resize&&a.resize()})},destroy:function(){this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred&&this._fadeOutDeferred.cancel();this._moveable&&this._moveable.destroy();for(var a;a=this._modalconnects.pop();)a.remove();D.hide(this);this.inherited(arguments)}});s("dojo-bidi")&&(x=k("dijit._DialogBase",x,{_setTitleAttr:function(a){this._set("title",a);this.titleNode.innerHTML=a;this.applyTextDir(this.titleNode)},
_setTextDirAttr:function(a){this._created&&this.textDir!=a&&(this._set("textDir",a),this.set("title",this.title))}}));var F=k("dijit.Dialog",[L,x],{});F._DialogBase=x;var D=F._DialogLevelManager={_beginZIndex:950,show:function(a,c){C[C.length-1].focus=v.curNode;var d=C[C.length-1].dialog?C[C.length-1].zIndex+2:F._DialogLevelManager._beginZIndex;b.set(a.domNode,"zIndex",d);G.show(c,d-1);C.push({dialog:a,underlayAttrs:c,zIndex:d})},hide:function(a){if(C[C.length-1].dialog==a){C.pop();var b=C[C.length-
1];1==C.length?G.hide():G.show(b.underlayAttrs,b.zIndex-1);if(a.refocus){a=b.focus;if(b.dialog&&(!a||!c.isDescendant(a,b.dialog.domNode)))b.dialog._getFocusItems(),a=b.dialog._firstFocusItem;if(a)try{a.focus()}catch(d){}}}else b=m.indexOf(m.map(C,function(a){return a.dialog}),a),-1!=b&&C.splice(b,1)},isTop:function(a){return C[C.length-1].dialog==a}},C=F._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];v.watch("curNode",function(a,b,c){a=C[C.length-1].dialog;if(c&&a&&!a._fadeOutDeferred&&
c.ownerDocument==a.ownerDocument){do if(c==a.domNode||g.contains(c,"dijitPopup"))return;while(c=c.parentNode);a.focus()}});s("dijit-legacy-requires")&&q(0,function(){f(["dijit/TooltipDialog"])});return F})},"dojo/dnd/Moveable":function(){define("../_base/array ../_base/declare ../_base/lang ../dom ../dom-class ../Evented ../on ../topic ../touch ./common ./Mover ../_base/window".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p){return m("dojo.dnd.Moveable",[c],{handle:"",delay:0,skip:!1,constructor:function(a,
c){this.node=k.byId(a);c||(c={});this.handle=c.handle?k.byId(c.handle):null;this.handle||(this.handle=this.node);this.delay=0<c.delay?c.delay:0;this.skip=c.skip;this.mover=c.mover?c.mover:h;this.events=[g(this.handle,b.press,l.hitch(this,"onMouseDown")),g(this.handle,"dragstart",l.hitch(this,"onSelectStart")),g(this.handle,"selectstart",l.hitch(this,"onSelectStart"))]},markupFactory:function(a,b,c){return new c(b,a)},destroy:function(){f.forEach(this.events,function(a){a.remove()});this.events=this.node=
this.handle=null},onMouseDown:function(c){if(!this.skip||!a.isFormElement(c)){if(this.delay)this.events.push(g(this.handle,b.move,l.hitch(this,"onMouseMove")),g(this.handle.ownerDocument,b.release,l.hitch(this,"onMouseUp"))),this._lastX=c.pageX,this._lastY=c.pageY;else this.onDragDetected(c);c.stopPropagation();c.preventDefault()}},onMouseMove:function(a){if(Math.abs(a.pageX-this._lastX)>this.delay||Math.abs(a.pageY-this._lastY)>this.delay)this.onMouseUp(a),this.onDragDetected(a);a.stopPropagation();
a.preventDefault()},onMouseUp:function(a){for(var b=0;2>b;++b)this.events.pop().remove();a.stopPropagation();a.preventDefault()},onSelectStart:function(b){if(!this.skip||!a.isFormElement(b))b.stopPropagation(),b.preventDefault()},onDragDetected:function(a){new this.mover(this.node,a,this)},onMoveStart:function(a){d.publish("/dnd/move/start",a);e.add(p.body(),"dojoMove");e.add(this.node,"dojoMoveItem")},onMoveStop:function(a){d.publish("/dnd/move/stop",a);e.remove(p.body(),"dojoMove");e.remove(this.node,
"dojoMoveItem")},onFirstMove:function(){},onMove:function(a,b){this.onMoving(a,b);var c=a.node.style;c.left=b.l+"px";c.top=b.t+"px";this.onMoved(a,b)},onMoving:function(){},onMoved:function(){}})})},"dojo/dnd/Mover":function(){define("../_base/array ../_base/declare ../_base/lang ../sniff ../_base/window ../dom ../dom-geometry ../dom-style ../Evented ../on ../touch ./common ./autoscroll".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p,n){return m("dojo.dnd.Mover",[b],{constructor:function(b,d,e){function g(a){a.preventDefault();
a.stopPropagation()}this.node=c.byId(b);this.marginBox={l:d.pageX,t:d.pageY};this.mouseButton=d.button;d=this.host=e;b=b.ownerDocument;this.events=[a(b,h.move,l.hitch(this,"onFirstMove")),a(b,h.move,l.hitch(this,"onMouseMove")),a(b,h.release,l.hitch(this,"onMouseUp")),a(b,"dragstart",g),a(b.body,"selectstart",g)];n.autoScrollStart(b);if(d&&d.onMoveStart)d.onMoveStart(this)},onMouseMove:function(a){n.autoScroll(a);var b=this.marginBox;this.host.onMove(this,{l:b.l+a.pageX,t:b.t+a.pageY},a);a.preventDefault();
a.stopPropagation()},onMouseUp:function(a){(k("webkit")&&k("mac")&&2==this.mouseButton?0==a.button:this.mouseButton==a.button)&&this.destroy();a.preventDefault();a.stopPropagation()},onFirstMove:function(a){var b=this.node.style,c,h=this.host;switch(b.position){case "relative":case "absolute":c=Math.round(parseFloat(b.left))||0;b=Math.round(parseFloat(b.top))||0;break;default:b.position="absolute";b=g.getMarginBox(this.node);c=e.doc.body;var f=d.getComputedStyle(c),k=g.getMarginBox(c,f),f=g.getContentBox(c,
f);c=b.l-(f.l-k.l);b=b.t-(f.t-k.t)}this.marginBox.l=c-this.marginBox.l;this.marginBox.t=b-this.marginBox.t;if(h&&h.onFirstMove)h.onFirstMove(this,a);this.events.shift().remove()},destroy:function(){f.forEach(this.events,function(a){a.remove()});var a=this.host;if(a&&a.onMoveStop)a.onMoveStop(this);this.events=this.node=this.host=null}})})},"dojo/dnd/TimedMoveable":function(){define(["../_base/declare","./Moveable"],function(f,m){var l=m.prototype.onMove;return f("dojo.dnd.TimedMoveable",m,{timeout:40,
constructor:function(f,e){e||(e={});e.timeout&&("number"==typeof e.timeout&&0<=e.timeout)&&(this.timeout=e.timeout)},onMoveStop:function(f){f._timer&&(clearTimeout(f._timer),l.call(this,f,f._leftTop));m.prototype.onMoveStop.apply(this,arguments)},onMove:function(f,e){f._leftTop=e;if(!f._timer){var c=this;f._timer=setTimeout(function(){f._timer=null;l.call(c,f,f._leftTop)},this.timeout)}}})})},"dijit/_DialogMixin":function(){define(["dojo/_base/declare","./a11y"],function(f,m){return f("dijit._DialogMixin",
null,{actionBarTemplate:"",execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var f=m._getTabNavigable(this.domNode);this._firstFocusItem=f.lowest||f.first||this.closeButtonNode||this.domNode;this._lastFocusItem=f.last||f.highest||this._firstFocusItem}})})},"dijit/DialogUnderlay":function(){define("dojo/_base/declare dojo/_base/lang dojo/aspect dojo/dom-attr dojo/dom-style dojo/on dojo/window ./_Widget ./_TemplatedMixin ./BackgroundIframe ./Viewport ./main".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p){var n=f("dijit.DialogUnderlay",[d,b],{templateString:"\x3cdiv class\x3d'dijitDialogUnderlayWrapper'\x3e\x3cdiv class\x3d'dijitDialogUnderlay' tabIndex\x3d'-1' data-dojo-attach-point\x3d'node'\x3e\x3c/div\x3e\x3c/div\x3e",dialogId:"","class":"",_modalConnects:[],_setDialogIdAttr:function(a){k.set(this.node,"id",a+"_underlay");this._set("dialogId",a)},_setClassAttr:function(a){this.node.className="dijitDialogUnderlay "+a;this._set("class",a)},postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);
this.own(c(this.domNode,"keydown",m.hitch(this,"_onKeyDown")));this.inherited(arguments)},layout:function(){var a=this.node.style,b=this.domNode.style;b.display="none";var c=g.getBox(this.ownerDocument);b.top=c.t+"px";b.left=c.l+"px";a.width=c.w+"px";a.height=c.h+"px";b.display="block"},show:function(){this.domNode.style.display="block";this.open=!0;this.layout();this.bgIframe=new a(this.domNode);var b=g.get(this.ownerDocument);this._modalConnects=[h.on("resize",m.hitch(this,"layout")),c(b,"scroll",
m.hitch(this,"layout"))]},hide:function(){this.bgIframe.destroy();delete this.bgIframe;for(this.domNode.style.display="none";this._modalConnects.length;)this._modalConnects.pop().remove();this.open=!1},destroy:function(){for(;this._modalConnects.length;)this._modalConnects.pop().remove();this.inherited(arguments)},_onKeyDown:function(){}});n.show=function(a,b){var c=n._singleton;!c||c._destroyed?c=p._underlay=n._singleton=new n(a):a&&c.set(a);e.set(c.domNode,"zIndex",b);c.open||c.show()};n.hide=function(){var a=
n._singleton;a&&!a._destroyed&&a.hide()};return n})},"dojox/fx":function(){define(["./fx/_base"],function(f){return f})},"dojox/fx/_base":function(){define("dojo/_base/array dojo/_base/lang dojo/_base/fx dojo/fx dojo/dom dojo/dom-style dojo/dom-geometry dojo/_base/connect dojo/_base/html".split(" "),function(f,m,l,k,e,c,g,d,b){f=m.getObject("dojox.fx",!0);m.mixin(f,{anim:l.anim,animateProperty:l.animateProperty,fadeTo:l._fade,fadeIn:l.fadeIn,fadeOut:l.fadeOut,combine:k.combine,chain:k.chain,slideTo:k.slideTo,
wipeIn:k.wipeIn,wipeOut:k.wipeOut});f.sizeTo=function(a){var b=a.node=e.byId(a.node),d=a.method||"chain";a.duration||(a.duration=500);"chain"==d&&(a.duration=Math.floor(a.duration/2));var g,f,q,s,r,w=null,u=function(b){return function(){var d=c.getComputedStyle(b),e=d.position,h=d.width,k=d.height;g="absolute"==e?b.offsetTop:parseInt(d.top)||0;q="absolute"==e?b.offsetLeft:parseInt(d.left)||0;r="auto"==h?0:parseInt(h);w="auto"==k?0:parseInt(k);s=q-Math.floor((a.width-r)/2);f=g-Math.floor((a.height-
w)/2);"absolute"!=e&&"relative"!=e&&(d=c.coords(b,!0),g=d.y,q=d.x,b.style.position="absolute",b.style.top=g+"px",b.style.left=q+"px")}}(b),b=l.animateProperty(m.mixin({properties:{height:function(){u();return{end:a.height||0,start:w}},top:function(){return{start:g,end:f}}}},a)),d=l.animateProperty(m.mixin({properties:{width:function(){return{start:r,end:a.width||0}},left:function(){return{start:q,end:s}}}},a));return k["combine"==a.method?"combine":"chain"]([b,d])};f.slideBy=function(a){var b,f,k=
function(a){return function(){var d=c.getComputedStyle(a),e=d.position;b="absolute"==e?a.offsetTop:parseInt(d.top)||0;f="absolute"==e?a.offsetLeft:parseInt(d.left)||0;"absolute"!=e&&"relative"!=e&&(d=g.coords(a,!0),b=d.y,f=d.x,a.style.position="absolute",a.style.top=b+"px",a.style.left=f+"px")}}(a.node=e.byId(a.node));k();a=l.animateProperty(m.mixin({properties:{top:b+(a.top||0),left:f+(a.left||0)}},a));d.connect(a,"beforeBegin",a,k);return a};f.crossFade=function(a){var c=a.nodes[0]=e.byId(a.nodes[0]),
d=b.style(c,"opacity"),g=a.nodes[1]=e.byId(a.nodes[1]);b.style(g,"opacity");return k.combine([l[0==d?"fadeIn":"fadeOut"](m.mixin({node:c},a)),l[0==d?"fadeOut":"fadeIn"](m.mixin({node:g},a))])};f.highlight=function(a){var c=a.node=e.byId(a.node);a.duration=a.duration||400;var g=a.color||"#ffff99",f=b.style(c,"backgroundColor");"rgba(0, 0, 0, 0)"==f&&(f="transparent");a=l.animateProperty(m.mixin({properties:{backgroundColor:{start:g,end:f}}},a));"transparent"==f&&d.connect(a,"onEnd",a,function(){c.style.backgroundColor=
f});return a};f.wipeTo=function(a){a.node=e.byId(a.node);var c=a.node,d=c.style,g=a.width?"width":"height",f={};f[g]={start:function(){d.overflow="hidden";if("hidden"==d.visibility||"none"==d.display)return d[g]="1px",d.display="",d.visibility="",1;var a=b.style(c,g);return Math.max(a,1)},end:a[g]};return l.animateProperty(m.mixin({properties:f},a))};return f})},"dojox/widget/DialogSimple":function(){define(["dojo/_base/declare","dijit/Dialog","dojox/layout/ContentPane"],function(f,m,l){return f("dojox.widget.DialogSimple",
[l,m._DialogBase],{})})},"dojox/widget/Standby":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/array dojo/_base/event dojo/_base/sniff dojo/dom dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/window dojo/_base/window dojo/_base/fx dojo/fx dijit/_Widget dijit/_TemplatedMixin dijit/registry".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r){f.experimental("dojox.widget.Standby");return m("dojox.widget.Standby",[q,s],{image:require.toUrl("dojox/widget/Standby/images/loading.gif").toString(),
imageText:"Please Wait...",text:"Please wait...",centerIndicator:"image",target:"",color:"#C0C0C0",duration:500,zIndex:"auto",opacity:0.75,templateString:'\x3cdiv\x3e\x3cdiv style\x3d"display: none; opacity: 0; z-index: 9999; position: absolute; cursor:wait;" dojoAttachPoint\x3d"_underlayNode"\x3e\x3c/div\x3e\x3cimg src\x3d"${image}" style\x3d"opacity: 0; display: none; z-index: -10000; position: absolute; top: 0px; left: 0px; cursor:wait;" dojoAttachPoint\x3d"_imageNode"\x3e\x3cdiv style\x3d"opacity: 0; display: none; z-index: -10000; position: absolute; top: 0px;" dojoAttachPoint\x3d"_textNode"\x3e\x3c/div\x3e\x3c/div\x3e',
_underlayNode:null,_imageNode:null,_textNode:null,_centerNode:null,_displayed:!1,_resizeCheck:null,_started:!1,_parent:null,startup:function(b){if(!this._started){if("string"===typeof this.target){var h=r.byId(this.target);this.target=h?h.domNode:c.byId(this.target)}this.text&&(this._textNode.innerHTML=this.text);"image"===this.centerIndicator?(this._centerNode=this._imageNode,g.set(this._imageNode,"src",this.image),g.set(this._imageNode,"alt",this.imageText)):this._centerNode=this._textNode;a.set(this._underlayNode,
{display:"none",backgroundColor:this.color});a.set(this._centerNode,"display","none");this.connect(this._underlayNode,"onclick","_ignore");this.domNode.parentNode&&this.domNode.parentNode!=p.body()&&p.body().appendChild(this.domNode);7==e("ie")&&(this._ieFixNode=d.create("div"),a.set(this._ieFixNode,{opacity:"0",zIndex:"-1000",position:"absolute",top:"-1000px"}),p.body().appendChild(this._ieFixNode));this.inherited(arguments)}},show:function(){this._displayed||(this._anim&&(this._anim.stop(),delete this._anim),
this._displayed=!0,this._size(),this._disableOverflow(),this._fadeIn())},hide:function(){if(this._displayed)try{this._anim&&(this._anim.stop(),delete this._anim),this._size()}catch(a){console.error(a)}finally{this._fadeOut(),this._displayed=!1,null!==this._resizeCheck&&(clearInterval(this._resizeCheck),this._resizeCheck=null)}},isVisible:function(){return this._displayed},onShow:function(){},onHide:function(){},uninitialize:function(){this._displayed=!1;this._resizeCheck&&clearInterval(this._resizeCheck);
a.set(this._centerNode,"display","none");a.set(this._underlayNode,"display","none");7==e("ie")&&this._ieFixNode&&(p.body().removeChild(this._ieFixNode),delete this._ieFixNode);this._anim&&(this._anim.stop(),delete this._anim);this._centerNode=this._textNode=this._imageNode=this.target=null;this.inherited(arguments)},_size:function(){if(this._displayed){var c=g.get(p.body(),"dir");c&&(c=c.toLowerCase());var d,f=this._scrollerWidths(),k=this.target,n=a.get(this._centerNode,"display");a.set(this._centerNode,
"display","block");var l=b.position(k,!0);if(k===p.body()||k===p.doc)l=h.getBox(),l.x=l.l,l.y=l.t;var q=b.getMarginBox(this._centerNode);a.set(this._centerNode,"display",n);this._ieFixNode&&(d=-this._ieFixNode.offsetTop/1E3,l.x=Math.floor((l.x+0.9)/d),l.y=Math.floor((l.y+0.9)/d),l.w=Math.floor((l.w+0.9)/d),l.h=Math.floor((l.h+0.9)/d));var m=a.get(k,"zIndex"),s=n=m;if("auto"===this.zIndex)if("auto"!=m)n=parseInt(n,10),s=parseInt(s,10);else{var r=k;if(r&&r!==p.body()&&r!==p.doc){r=k.parentNode;for(d=
-1E5;r&&r!==p.body();){if((m=a.get(r,"zIndex"))&&"auto"!==m)m=parseInt(m,10),d<m&&(d=m,n=m+1,s=m+1);r=r.parentNode}}}else n=parseInt(this.zIndex,10),s=parseInt(this.zIndex,10);a.set(this._centerNode,"zIndex",s);a.set(this._underlayNode,"zIndex",n);if((n=k.parentNode)&&n!==p.body()&&k!==p.body()&&k!==p.doc){r=l.h;s=l.w;k=b.position(n,!0);this._ieFixNode&&(d=-this._ieFixNode.offsetTop/1E3,k.x=Math.floor((k.x+0.9)/d),k.y=Math.floor((k.y+0.9)/d),k.w=Math.floor((k.w+0.9)/d),k.h=Math.floor((k.h+0.9)/d));
k.w-=n.scrollHeight>n.clientHeight&&0<n.clientHeight?f.v:0;k.h-=n.scrollWidth>n.clientWidth&&0<n.clientWidth?f.h:0;"rtl"===c&&(e("opera")?(l.x+=n.scrollHeight>n.clientHeight&&0<n.clientHeight?f.v:0,k.x+=n.scrollHeight>n.clientHeight&&0<n.clientHeight?f.v:0):e("ie")?k.x+=n.scrollHeight>n.clientHeight&&0<n.clientHeight?f.v:0:e("webkit"));k.w<l.w&&(l.w-=k.w);k.h<l.h&&(l.h-=k.h);var t=k.y,I=k.y+k.h,J=l.y,H=l.y+r,c=k.x;d=k.x+k.w;var m=l.x,K=l.x+s;if(H>t&&J<t)l.y=k.y,r-=t-J,l.h=r<k.h?r:l.h-2*(n.scrollWidth>
n.clientWidth&&0<n.clientWidth?f.h:0);else if(J<I&&H>I)l.h=I-J;else if(H<=t||J>=I)l.h=0;if(K>c&&m<c)l.x=k.x,s-=c-m,l.w=s<k.w?s:l.w-2*(n.scrollHeight>n.clientHeight&&0<n.clientHeight?f.w:0);else if(m<d&&K>d)l.w=d-m;else if(K<=c||m>=d)l.w=0}0<l.h&&0<l.w?(a.set(this._underlayNode,{display:"block",width:l.w+"px",height:l.h+"px",top:l.y+"px",left:l.x+"px"}),f=["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],this._cloneStyles(f),e("ie")||(f=
"MozBorderRadius MozBorderRadiusTopleft MozBorderRadiusTopright MozBorderRadiusBottomleft MozBorderRadiusBottomright WebkitBorderRadius WebkitBorderTopLeftRadius WebkitBorderTopRightRadius WebkitBorderBottomLeftRadius WebkitBorderBottomRightRadius".split(" "),this._cloneStyles(f,this)),f=l.h/2-q.h/2,n=l.w/2-q.w/2,l.h>=q.h&&l.w>=q.w?a.set(this._centerNode,{top:f+l.y+"px",left:n+l.x+"px",display:"block"}):a.set(this._centerNode,"display","none")):(a.set(this._underlayNode,"display","none"),a.set(this._centerNode,
"display","none"));if(null===this._resizeCheck){var F=this;this._resizeCheck=setInterval(function(){F._size()},100)}}},_cloneStyles:function(b){l.forEach(b,function(b){a.set(this._underlayNode,b,a.get(this.target,b))},this)},_fadeIn:function(){var a=this,b=n.animateProperty({duration:a.duration,node:a._underlayNode,properties:{opacity:{start:0,end:a.opacity}}}),c=n.animateProperty({duration:a.duration,node:a._centerNode,properties:{opacity:{start:0,end:1}},onEnd:function(){a.onShow();delete a._anim}});
this._anim=t.combine([b,c]);this._anim.play()},_fadeOut:function(){var b=this,c=n.animateProperty({duration:b.duration,node:b._underlayNode,properties:{opacity:{start:b.opacity,end:0}},onEnd:function(){a.set(this.node,{display:"none",zIndex:"-1000"})}}),d=n.animateProperty({duration:b.duration,node:b._centerNode,properties:{opacity:{start:1,end:0}},onEnd:function(){a.set(this.node,{display:"none",zIndex:"-1000"});b.onHide();b._enableOverflow();delete b._anim}});this._anim=t.combine([c,d]);this._anim.play()},
_ignore:function(a){a&&k.stop(a)},_scrollerWidths:function(){var c=d.create("div");a.set(c,{position:"absolute",opacity:0,overflow:"hidden",width:"50px",height:"50px",zIndex:"-100",top:"-200px",padding:"0px",margin:"0px"});var e=d.create("div");a.set(e,{width:"200px",height:"10px"});c.appendChild(e);p.body().appendChild(c);e=b.getContentBox(c);a.set(c,"overflow","scroll");var g=b.getContentBox(c);p.body().removeChild(c);return{v:e.w-g.w,h:e.h-g.h}},_setTextAttr:function(a){this.text=this._textNode.innerHTML=
a},_setColorAttr:function(b){a.set(this._underlayNode,"backgroundColor",b);this.color=b},_setImageTextAttr:function(a){g.set(this._imageNode,"alt",a);this.imageText=a},_setImageAttr:function(a){g.set(this._imageNode,"src",a);this.image=a},_setCenterIndicatorAttr:function(b){this.centerIndicator=b;"image"===b?(this._centerNode=this._imageNode,a.set(this._textNode,"display","none")):(this._centerNode=this._textNode,a.set(this._imageNode,"display","none"))},_setTargetAttr:function(a){if("string"===typeof a){var b=
r.byId(a);this._set("target",b?b.domNode:c.byId(a))}},_disableOverflow:function(){if(this.target===p.body()||this.target===p.doc){this._overflowDisabled=!0;var b=p.body();this._oldOverflow=b.style&&b.style.overflow?a.get(b,"overflow"):"";if(e("ie")&&!e("quirks")){if(b.parentNode&&b.parentNode.style&&b.parentNode.style.overflow)this._oldBodyParentOverflow=b.parentNode.style.overflow;else try{this._oldBodyParentOverflow=a.get(b.parentNode,"overflow")}catch(c){this._oldBodyParentOverflow="scroll"}a.set(b.parentNode,
"overflow","hidden")}a.set(b,"overflow","hidden")}},_enableOverflow:function(){if(this._overflowDisabled){delete this._overflowDisabled;var b=p.body();e("ie")&&!e("quirks")&&(b.parentNode.style.overflow=this._oldBodyParentOverflow,delete this._oldBodyParentOverflow);a.set(b,"overflow",this._oldOverflow);if(e("webkit")){var c=d.create("div",{style:{height:"2px"}});b.appendChild(c);setTimeout(function(){b.removeChild(c)},0)}delete this._oldOverflow}}})})},"dijit/PopupMenuItem":function(){define("dojo/_base/declare dojo/dom-style dojo/_base/lang dojo/query ./popup ./registry ./MenuItem ./hccss".split(" "),
function(f,m,l,k,e,c,g){return f("dijit.PopupMenuItem",g,{baseClass:"dijitMenuItem dijitPopupMenuItem",_fillContent:function(){if(this.srcNodeRef){var c=k("*",this.srcNodeRef);this.inherited(arguments,[c[0]]);this.dropDownContainer=this.srcNodeRef}},_openPopup:function(c,b){var a=this.popup;e.open(l.delegate(c,{popup:this.popup,around:this.domNode}));b&&a.focus&&a.focus()},_closePopup:function(){e.close(this.popup);this.popup.parentMenu=null},startup:function(){if(!this._started){this.inherited(arguments);
if(!this.popup){var d=k("[widgetId]",this.dropDownContainer)[0];this.popup=c.byNode(d)}this.ownerDocumentBody.appendChild(this.popup.domNode);this.popup.domNode.setAttribute("aria-labelledby",this.containerNode.id);this.popup.startup();this.popup.domNode.style.display="none";this.arrowWrapper&&m.set(this.arrowWrapper,"visibility","");this.focusNode.setAttribute("aria-haspopup","true")}},destroyDescendants:function(c){this.popup&&(this.popup._destroyed||this.popup.destroyRecursive(c),delete this.popup);
this.inherited(arguments)}})})},"dijit/CheckedMenuItem":function(){define(["dojo/_base/declare","dojo/dom-class","./MenuItem","dojo/text!./templates/CheckedMenuItem.html","./hccss"],function(f,m,l,k){return f("dijit.CheckedMenuItem",l,{baseClass:"dijitMenuItem dijitCheckedMenuItem",templateString:k,checked:!1,_setCheckedAttr:function(e){this.domNode.setAttribute("aria-checked",e?"true":"false");this._set("checked",e)},iconClass:"",role:"menuitemcheckbox",checkedChar:"\x26#10003;",onChange:function(){},
_onClick:function(e){this.disabled||(this.set("checked",!this.checked),this.onChange(this.checked));this.onClick(e)}})})},"dijit/MenuSeparator":function(){define("dojo/_base/declare dojo/dom ./_WidgetBase ./_TemplatedMixin ./_Contained dojo/text!./templates/MenuSeparator.html".split(" "),function(f,m,l,k,e,c){return f("dijit.MenuSeparator",[l,k,e],{templateString:c,buildRendering:function(){this.inherited(arguments);m.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})})},"dijit/Editor":function(){define("require dojo/_base/array dojo/_base/declare dojo/Deferred dojo/i18n dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/keys dojo/_base/lang dojo/sniff dojo/string dojo/topic ./_Container ./Toolbar ./ToolbarSeparator ./layout/_LayoutWidget ./form/ToggleButton ./_editor/_Plugin ./_editor/plugins/EnterKeyHandling ./_editor/html ./_editor/range ./_editor/RichText ./main dojo/i18n!./_editor/nls/commands".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r,w,u,v,x,y,z,A,E){function B(a){return new v({command:a.name})}function G(a){return new v({buttonClass:u,command:a.name})}l=l("dijit.Editor",A,{plugins:null,extraPlugins:null,constructor:function(){h.isArray(this.plugins)||(this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull",x]);this._plugins=
[];this._editInterval=1E3*this.editActionInterval;if(p("ie")||p("trident")||p("edge"))this.events.push("onBeforeDeactivate"),this.events.push("onBeforeActivate")},postMixInProperties:function(){this.setValueDeferred=new k;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);h.isArray(this.extraPlugins)&&(this.plugins=this.plugins.concat(this.extraPlugins));this.commands=e.getLocalization("dijit._editor",
"commands",this.lang);p("webkit")&&b.set(this.domNode,"KhtmlUserSelect","none")},startup:function(){this.inherited(arguments);this.toolbar||(this.toolbar=new s({ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,"aria-label":this.id}),this.header.appendChild(this.toolbar.domNode));m.forEach(this.plugins,this.addPlugin,this);this.setValueDeferred.resolve(!0);g.add(this.iframe.parentNode,"dijitEditorIFrameContainer");g.add(this.iframe,"dijitEditorIFrame");c.set(this.iframe,"allowTransparency",
!0);this.toolbar.startup();this.onNormalizedDisplayChanged()},destroy:function(){m.forEach(this._plugins,function(a){a&&a.destroy&&a.destroy()});this._plugins=[];this.toolbar.destroyRecursive();delete this.toolbar;this.inherited(arguments)},addPlugin:function(a,b){var c=h.isString(a)?{name:a}:h.isFunction(a)?{ctor:a}:a;if(!c.setEditor){var d={args:c,plugin:null,editor:this};c.name&&(v.registry[c.name]?d.plugin=v.registry[c.name](c):t.publish(E._scopeName+".Editor.getPlugin",d));if(!d.plugin)try{var e=
c.ctor||h.getObject(c.name)||f(c.name);e&&(d.plugin=new e(c))}catch(g){throw Error(this.id+": cannot find plugin ["+c.name+"]");}if(!d.plugin)throw Error(this.id+": cannot find plugin ["+c.name+"]");a=d.plugin}1<arguments.length?this._plugins[b]=a:this._plugins.push(a);a.setEditor(this);h.isFunction(a.setToolbar)&&a.setToolbar(this.toolbar)},resize:function(a){a&&w.prototype.resize.apply(this,arguments)},layout:function(){var a=this._contentBox.h-(this.getHeaderHeight()+this.getFooterHeight()+d.getPadBorderExtents(this.iframe.parentNode).h+
d.getMarginExtents(this.iframe.parentNode).h);this.editingArea.style.height=a+"px";this.iframe&&(this.iframe.style.height="100%");this._layoutMode=!0},_onIEMouseDown:function(a){var b,c=this.document.body,d=c.clientWidth,e=c.clientHeight,g=c.clientLeft,h=c.offsetWidth,f=c.offsetHeight,k=c.offsetLeft;/^rtl$/i.test(c.dir||"")?d<h&&(a.x>d&&a.x<h)&&(b=!0):a.x<g&&a.x>k&&(b=!0);b||e<f&&(a.y>e&&a.y<f)&&(b=!0);b||(delete this._cursorToStart,delete this._savedSelection,"BODY"==a.target.tagName&&this.defer("placeCursorAtEnd"),
this.inherited(arguments))},onBeforeActivate:function(){this._restoreSelection()},onBeforeDeactivate:function(a){this.customUndo&&this.endEditing(!0);"BODY"!=a.target.tagName&&this._saveSelection()},customUndo:!0,editActionInterval:3,beginEditing:function(a){this._inEditing||(this._inEditing=!0,this._beginEditing(a));0<this.editActionInterval&&(this._editTimer&&this._editTimer.remove(),this._editTimer=this.defer("endEditing",this._editInterval))},_steps:[],_undoedSteps:[],execCommand:function(a){if(this.customUndo&&
("undo"==a||"redo"==a))return this[a]();this.customUndo&&(this.endEditing(),this._beginEditing());var b=this.inherited(arguments);this.customUndo&&this._endEditing();return b},_pasteImpl:function(){return this._clipboardCommand("paste")},_cutImpl:function(){return this._clipboardCommand("cut")},_copyImpl:function(){return this._clipboardCommand("copy")},_clipboardCommand:function(a){var b;try{if(b=this.document.execCommand(a,!1,null),p("webkit")&&!b)throw{};}catch(c){b=n.substitute,alert(b(this.commands.systemShortcut,
[this.commands[a],b(this.commands[p("mac")?"appleKey":"ctrlKey"],[{cut:"X",copy:"C",paste:"V"}[a]])])),b=!1}return b},queryCommandEnabled:function(a){return this.customUndo&&("undo"==a||"redo"==a)?"undo"==a?1<this._steps.length:0<this._undoedSteps.length:this.inherited(arguments)},_moveToBookmark:function(a){var b=a.mark,c=a.mark;a=a.isCollapsed;var d,e,g;if(c)if(9>p("ie")||9===p("ie")&&p("quirks"))if(h.isArray(c))b=[],m.forEach(c,function(a){b.push(z.getNode(a,this.editNode))},this),this.selection.moveToBookmark({mark:b,
isCollapsed:a});else{if(c.startContainer&&c.endContainer&&(g=z.getSelection(this.window))&&g.removeAllRanges)g.removeAllRanges(),a=z.create(this.window),d=z.getNode(c.startContainer,this.editNode),e=z.getNode(c.endContainer,this.editNode),d&&e&&(a.setStart(d,c.startOffset),a.setEnd(e,c.endOffset),g.addRange(a))}else if((g=z.getSelection(this.window))&&g.removeAllRanges)g.removeAllRanges(),a=z.create(this.window),d=z.getNode(c.startContainer,this.editNode),e=z.getNode(c.endContainer,this.editNode),
d&&e&&(a.setStart(d,c.startOffset),a.setEnd(e,c.endOffset),g.addRange(a))},_changeToStep:function(a,b){this.setValue(b.text);var c=b.bookmark;c&&this._moveToBookmark(c)},undo:function(){var a=!1;if(!this._undoRedoActive){this._undoRedoActive=!0;this.endEditing(!0);var b=this._steps.pop();b&&0<this._steps.length&&(this.focus(),this._changeToStep(b,this._steps[this._steps.length-1]),this._undoedSteps.push(b),this.onDisplayChanged(),delete this._undoRedoActive,a=!0);delete this._undoRedoActive}return a},
redo:function(){var a=!1;if(!this._undoRedoActive){this._undoRedoActive=!0;this.endEditing(!0);var b=this._undoedSteps.pop();b&&0<this._steps.length&&(this.focus(),this._changeToStep(this._steps[this._steps.length-1],b),this._steps.push(b),this.onDisplayChanged(),a=!0);delete this._undoRedoActive}return a},endEditing:function(a){this._editTimer&&(this._editTimer=this._editTimer.remove());this._inEditing&&(this._endEditing(a),this._inEditing=!1)},_getBookmark:function(){var a=this.selection.getBookmark(),
b=[];if(a&&a.mark){var c=a.mark;if(9>p("ie")||9===p("ie")&&p("quirks")){var d=z.getSelection(this.window);if(h.isArray(c))m.forEach(a.mark,function(a){b.push(z.getIndex(a,this.editNode).o)},this),a.mark=b;else if(d){var e;d.rangeCount&&(e=d.getRangeAt(0));a.mark=e?e.cloneRange():this.selection.getBookmark()}}try{a.mark&&a.mark.startContainer&&(b=z.getIndex(a.mark.startContainer,this.editNode).o,a.mark={startContainer:b,startOffset:a.mark.startOffset,endContainer:a.mark.endContainer===a.mark.startContainer?
b:z.getIndex(a.mark.endContainer,this.editNode).o,endOffset:a.mark.endOffset})}catch(g){a.mark=null}}return a},_beginEditing:function(){0===this._steps.length&&this._steps.push({text:y.getChildrenHtml(this.editNode),bookmark:this._getBookmark()})},_endEditing:function(){var a=y.getChildrenHtml(this.editNode);this._undoedSteps=[];this._steps.push({text:a,bookmark:this._getBookmark()})},onKeyDown:function(b){!p("ie")&&(!this.iframe&&b.keyCode==a.TAB&&!this.tabIndent)&&this._saveSelection();if(this.customUndo){var c=
b.keyCode;if(b.ctrlKey&&!b.shiftKey&&!b.altKey){if(90==c||122==c){b.stopPropagation();b.preventDefault();this.undo();return}if(89==c||121==c){b.stopPropagation();b.preventDefault();this.redo();return}}this.inherited(arguments);switch(c){case a.ENTER:case a.BACKSPACE:case a.DELETE:this.beginEditing();break;case 88:case 86:if(b.ctrlKey&&!b.altKey&&!b.metaKey){this.endEditing();88==b.keyCode?this.beginEditing("cut"):this.beginEditing("paste");this.defer("endEditing",1);break}default:if(!b.ctrlKey&&!b.altKey&&
!b.metaKey&&(b.keyCode<a.F1||b.keyCode>a.F15)){this.beginEditing();break}case a.ALT:this.endEditing();break;case a.UP_ARROW:case a.DOWN_ARROW:case a.LEFT_ARROW:case a.RIGHT_ARROW:case a.HOME:case a.END:case a.PAGE_UP:case a.PAGE_DOWN:this.endEditing(!0);case a.CTRL:case a.SHIFT:case a.TAB:}}else this.inherited(arguments)},_onBlur:function(){this.inherited(arguments);this.endEditing(!0)},_saveSelection:function(){try{this._savedSelection=this._getBookmark()}catch(a){}},_restoreSelection:function(){this._savedSelection&&
(delete this._cursorToStart,this.selection.isCollapsed()&&this._moveToBookmark(this._savedSelection),delete this._savedSelection)},onClick:function(){this.endEditing(!0);this.inherited(arguments)},replaceValue:function(a){this.customUndo?this.isClosed?this.setValue(a):(this.beginEditing(),a||(a="\x26#160;"),this.setValue(a),this.endEditing()):this.inherited(arguments)},_setDisabledAttr:function(a){this.setValueDeferred.then(h.hitch(this,function(){!this.disabled&&a||!this._buttonEnabledPlugins&&a?
m.forEach(this._plugins,function(a){a.set("disabled",!0)}):this.disabled&&!a&&m.forEach(this._plugins,function(a){a.set("disabled",!1)})}));this.inherited(arguments)},_setStateClass:function(){try{this.inherited(arguments),this.document&&this.document.body&&b.set(this.document.body,"color",b.get(this.iframe,"color"))}catch(a){}}});h.mixin(v.registry,{undo:B,redo:B,cut:B,copy:B,paste:B,insertOrderedList:B,insertUnorderedList:B,indent:B,outdent:B,justifyCenter:B,justifyFull:B,justifyLeft:B,justifyRight:B,
"delete":B,selectAll:B,removeFormat:B,unlink:B,insertHorizontalRule:B,bold:G,italic:G,underline:G,strikethrough:G,subscript:G,superscript:G,"|":function(){return new v({setEditor:function(a){this.editor=a;this.button=new r({ownerDocument:a.ownerDocument})}})}});return l})},"dijit/Toolbar":function(){define("require dojo/_base/declare dojo/has dojo/keys dojo/ready ./_Widget ./_KeyNavContainer ./_TemplatedMixin".split(" "),function(f,m,l,k,e,c,g,d){l("dijit-legacy-requires")&&e(0,function(){f(["dijit/ToolbarSeparator"])});
return m("dijit.Toolbar",[c,d,g],{templateString:'\x3cdiv class\x3d"dijit" role\x3d"toolbar" tabIndex\x3d"${tabIndex}" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e',baseClass:"dijitToolbar",_onLeftArrow:function(){this.focusPrev()},_onRightArrow:function(){this.focusNext()}})})},"dijit/ToolbarSeparator":function(){define(["dojo/_base/declare","dojo/dom","./_Widget","./_TemplatedMixin"],function(f,m,l,k){return f("dijit.ToolbarSeparator",[l,k],{templateString:'\x3cdiv class\x3d"dijitToolbarSeparator dijitInline" role\x3d"presentation"\x3e\x3c/div\x3e',
buildRendering:function(){this.inherited(arguments);m.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})})},"dijit/_editor/_Plugin":function(){define(["dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","../Destroyable","../form/Button"],function(f,m,l,k,e){m=m("dijit._editor._Plugin",k,{constructor:function(c){this.params=c||{};l.mixin(this,this.params);this._attrPairNames={}},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,command:"",useDefaultCommand:!0,buttonClass:e,
disabled:!1,getLabel:function(c){return this.editor.commands[c]},_initButton:function(){if(this.command.length){var c=this.getLabel(this.command),e=this.editor,d=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);this.button||(c=l.mixin({label:c,ownerDocument:e.ownerDocument,dir:e.dir,lang:e.lang,showLabel:!1,iconClass:d,dropDown:this.dropDown,tabIndex:"-1"},this.params||{}),delete c.name,this.button=new this.buttonClass(c))}this.get("disabled")&&
this.button&&this.button.set("disabled",this.get("disabled"))},destroy:function(){this.dropDown&&this.dropDown.destroyRecursive();this.inherited(arguments)},connect:function(c,e,d){this.own(f.connect(c,e,this,d))},updateState:function(){var c=this.editor,e=this.command,d,b;if(c&&c.isLoaded&&e.length){var a=this.get("disabled");if(this.button)try{b=!a&&c.queryCommandEnabled(e),this.enabled!==b&&(this.enabled=b,this.button.set("disabled",!b)),b&&"boolean"==typeof this.button.checked&&(d=c.queryCommandState(e),
this.checked!==d&&(this.checked=d,this.button.set("checked",c.queryCommandState(e))))}catch(h){}}},setEditor:function(c){this.editor=c;this._initButton();this.button&&this.useDefaultCommand&&(this.editor.queryCommandAvailable(this.command)?this.own(this.button.on("click",l.hitch(this.editor,"execCommand",this.command,this.commandArg))):this.button.domNode.style.display="none");this.own(this.editor.on("NormalizedDisplayChanged",l.hitch(this,"updateState")))},setToolbar:function(c){this.button&&c.addChild(this.button)},
set:function(c,e){if("object"===typeof c){for(var d in c)this.set(d,c[d]);return this}d=this._getAttrNames(c);if(this[d.s])var b=this[d.s].apply(this,Array.prototype.slice.call(arguments,1));else this._set(c,e);return b||this},get:function(c){var e=this._getAttrNames(c);return this[e.g]?this[e.g]():this[c]},_setDisabledAttr:function(c){this._set("disabled",c);this.updateState()},_getAttrNames:function(c){var e=this._attrPairNames;if(e[c])return e[c];var d=c.charAt(0).toUpperCase()+c.substr(1);return e[c]=
{s:"_set"+d+"Attr",g:"_get"+d+"Attr"}},_set:function(c,e){this[c]=e}});m.registry={};return m})},"dijit/_editor/plugins/EnterKeyHandling":function(){define("dojo/_base/declare dojo/dom-construct dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/_base/window dojo/window ../_Plugin ../RichText ../range".split(" "),function(f,m,l,k,e,c,g,d,b,a,h){return f("dijit._editor.plugins.EnterKeyHandling",b,{blockNodeForEnter:"BR",constructor:function(a){a&&("blockNodeForEnter"in a&&(a.blockNodeForEnter=a.blockNodeForEnter.toUpperCase()),
k.mixin(this,a))},setEditor:function(a){if(this.editor!==a)if(this.editor=a,"BR"==this.blockNodeForEnter)this.editor.customUndo=!0,a.onLoadDeferred.then(k.hitch(this,function(b){this.own(e(a.document,"keydown",k.hitch(this,function(a){if(a.keyCode==l.ENTER){var b=k.mixin({},a);b.shiftKey=!0;this.handleEnterKey(b)||(a.stopPropagation(),a.preventDefault())}})));9<=c("ie")&&10>=c("ie")&&this.own(e(a.document,"paste",k.hitch(this,function(a){setTimeout(k.hitch(this,function(){var a=this.editor.document.selection.createRange();
a.move("character",-1);a.select();a.move("character",1);a.select()}),0)})));return b}));else if(this.blockNodeForEnter){var b=k.hitch(this,"handleEnterKey");a.addKeyHandler(13,0,0,b);a.addKeyHandler(13,0,1,b);this.own(this.editor.on("KeyPressed",k.hitch(this,"onKeyPressed")))}},onKeyPressed:function(){if(this._checkListLater){if(this.editor.selection.isCollapsed()){var b=this.editor.selection.getAncestorElement("LI");if(b){c("mozilla")&&"LI"==b.parentNode.parentNode.nodeName&&(b=b.parentNode.parentNode);
var d=b.firstChild;if(d&&1==d.nodeType&&("UL"==d.nodeName||"OL"==d.nodeName))b.insertBefore(d.ownerDocument.createTextNode("\u00a0"),d),d=h.create(this.editor.window),d.setStart(b.firstChild,0),b=h.getSelection(this.editor.window,!0),b.removeAllRanges(),b.addRange(d)}else a.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter),(b=this.editor.selection.getAncestorElement(this.blockNodeForEnter))?(b.innerHTML=this.bogusHtmlContent,9>=c("ie")&&(b=this.editor.document.selection.createRange(),
b.move("character",-1),b.select())):console.error("onKeyPressed: Cannot find the new block node")}this._checkListLater=!1}this._pressedEnterInBlock&&(this._pressedEnterInBlock.previousSibling&&this.removeTrailingBr(this._pressedEnterInBlock.previousSibling),delete this._pressedEnterInBlock)},bogusHtmlContent:"\x26#160;",blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(b){var e,g,f,k,l=this.editor.document,w,u,v;if(b.shiftKey){b=this.editor.selection.getParentElement();if(k=h.getAncestor(b,
this.blockNodes)){if("LI"==k.tagName)return!0;b=h.getSelection(this.editor.window);e=b.getRangeAt(0);e.collapsed||(e.deleteContents(),b=h.getSelection(this.editor.window),e=b.getRangeAt(0));if(h.atBeginningOfContainer(k,e.startContainer,e.startOffset))w=l.createElement("br"),e=h.create(this.editor.window),k.insertBefore(w,k.firstChild),e.setStartAfter(w),b.removeAllRanges(),b.addRange(e);else if(h.atEndOfContainer(k,e.startContainer,e.startOffset))e=h.create(this.editor.window),w=l.createElement("br"),
k.appendChild(w),k.appendChild(l.createTextNode("\u00a0")),e.setStart(k.lastChild,0),b.removeAllRanges(),b.addRange(e);else return(u=e.startContainer)&&3==u.nodeType?(v=u.nodeValue,g=l.createTextNode(v.substring(0,e.startOffset)),f=l.createTextNode(v.substring(e.startOffset)),k=l.createElement("br"),""==f.nodeValue&&c("webkit")&&(f=l.createTextNode("\u00a0")),m.place(g,u,"after"),m.place(k,g,"after"),m.place(f,k,"after"),m.destroy(u),e=h.create(this.editor.window),e.setStart(f,0),b.removeAllRanges(),
b.addRange(e),!1):!0}else if(b=h.getSelection(this.editor.window),b.rangeCount){if((e=b.getRangeAt(0))&&e.startContainer)e.collapsed||(e.deleteContents(),b=h.getSelection(this.editor.window),e=b.getRangeAt(0)),(u=e.startContainer)&&3==u.nodeType?(k=e.startOffset,u.length<k&&(f=this._adjustNodeAndOffset(u,k),u=f.node,k=f.offset),v=u.nodeValue,g=l.createTextNode(v.substring(0,k)),f=l.createTextNode(v.substring(k)),k=l.createElement("br"),f.length||(f=l.createTextNode("\u00a0")),g.length?m.place(g,u,
"after"):g=u,m.place(k,g,"after"),m.place(f,k,"after"),m.destroy(u)):(0<=e.startOffset&&(w=u.childNodes[e.startOffset]),k=l.createElement("br"),f=l.createTextNode("\u00a0"),w?(m.place(k,w,"before"),m.place(f,k,"after")):(u.appendChild(k),u.appendChild(f))),e=h.create(this.editor.window),e.setStart(f,0),e.setEnd(f,f.length),b.removeAllRanges(),b.addRange(e),this.editor.selection.collapse(!0)}else a.prototype.execCommand.call(this.editor,"inserthtml","\x3cbr\x3e");return!1}var x=!0;b=h.getSelection(this.editor.window);
e=b.getRangeAt(0);e.collapsed||(e.deleteContents(),b=h.getSelection(this.editor.window),e=b.getRangeAt(0));w=h.getBlockAncestor(e.endContainer,null,this.editor.editNode);var y=w.blockNode;if(this._checkListLater=y&&("LI"==y.nodeName||"LI"==y.parentNode.nodeName))return c("mozilla")&&(this._pressedEnterInBlock=y),/^(\s|&nbsp;|&#160;|\xA0|<span\b[^>]*\bclass=['"]Apple-style-span['"][^>]*>(\s|&nbsp;|&#160;|\xA0)<\/span>)?(<br>)?$/.test(y.innerHTML)&&(y.innerHTML="",c("webkit")&&(e=h.create(this.editor.window),
e.setStart(y,0),b.removeAllRanges(),b.addRange(e)),this._checkListLater=!1),!0;if(!w.blockNode||w.blockNode===this.editor.editNode){try{a.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter)}catch(z){}w={blockNode:this.editor.selection.getAncestorElement(this.blockNodeForEnter),blockContainer:this.editor.editNode};if(w.blockNode){if(w.blockNode!=this.editor.editNode&&!(w.blockNode.textContent||w.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length)return this.removeTrailingBr(w.blockNode),
!1}else w.blockNode=this.editor.editNode;b=h.getSelection(this.editor.window);e=b.getRangeAt(0)}y=l.createElement(this.blockNodeForEnter);y.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(w.blockNode);f=e.endOffset;x=e.endContainer;x.length<f&&(f=this._adjustNodeAndOffset(x,f),x=f.node,f=f.offset);if(h.atEndOfContainer(w.blockNode,x,f))w.blockNode===w.blockContainer?w.blockNode.appendChild(y):m.place(y,w.blockNode,"after"),x=!1,e=h.create(this.editor.window),e.setStart(y,0),b.removeAllRanges(),
b.addRange(e),this.editor.height&&d.scrollIntoView(y);else if(h.atBeginningOfContainer(w.blockNode,e.startContainer,e.startOffset))m.place(y,w.blockNode,w.blockNode===w.blockContainer?"first":"before"),y.nextSibling&&this.editor.height&&(e=h.create(this.editor.window),e.setStart(y.nextSibling,0),b.removeAllRanges(),b.addRange(e),d.scrollIntoView(y.nextSibling)),x=!1;else{w.blockNode===w.blockContainer?w.blockNode.appendChild(y):m.place(y,w.blockNode,"after");x=!1;w.blockNode.style&&(y.style&&w.blockNode.style.cssText)&&
(y.style.cssText=w.blockNode.style.cssText);if((u=e.startContainer)&&3==u.nodeType){f=e.endOffset;u.length<f&&(f=this._adjustNodeAndOffset(u,f),u=f.node,f=f.offset);v=u.nodeValue;g=l.createTextNode(v.substring(0,f));f=l.createTextNode(v.substring(f,v.length));m.place(g,u,"before");m.place(f,u,"after");m.destroy(u);for(g=g.parentNode;g!==w.blockNode;){v=l.createElement(g.tagName);g.style&&(v.style&&g.style.cssText)&&(v.style.cssText=g.style.cssText);"FONT"===g.tagName&&(g.color&&(v.color=g.color),
g.face&&(v.face=g.face),g.size&&(v.size=g.size));for(e=f;e;)u=e.nextSibling,v.appendChild(e),e=u;m.place(v,g,"after");f=v;g=g.parentNode}e=f;if(1==e.nodeType||3==e.nodeType&&e.nodeValue)y.innerHTML="";for(g=e;e;)u=e.nextSibling,y.appendChild(e),e=u}e=h.create(this.editor.window);l=g;if("BR"!==this.blockNodeForEnter){for(;l;)k=l,l=u=l.firstChild;k&&k.parentNode?(y=k.parentNode,e.setStart(y,0),b.removeAllRanges(),b.addRange(e),this.editor.height&&d.scrollIntoView(y),c("mozilla")&&(this._pressedEnterInBlock=
w.blockNode)):x=!0}else e.setStart(y,0),b.removeAllRanges(),b.addRange(e),this.editor.height&&d.scrollIntoView(y),c("mozilla")&&(this._pressedEnterInBlock=w.blockNode)}return x},_adjustNodeAndOffset:function(a,b){for(;a.length<b&&a.nextSibling&&3==a.nextSibling.nodeType;)b-=a.length,a=a.nextSibling;return{node:a,offset:b}},removeTrailingBr:function(a){if(a=/P|DIV|LI/i.test(a.tagName)?a:this.editor.selection.getParentOfType(a,["P","DIV","LI"]))a.lastChild&&(1<a.childNodes.length&&3==a.lastChild.nodeType&&
/^[\s\xAD]*$/.test(a.lastChild.nodeValue)||"BR"==a.lastChild.tagName)&&m.destroy(a.lastChild),a.childNodes.length||(a.innerHTML=this.bogusHtmlContent)}})})},"dijit/_editor/RichText":function(){define("dojo/_base/array dojo/_base/config dojo/_base/declare dojo/_base/Deferred dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/query dojo/domReady dojo/sniff dojo/string dojo/topic dojo/_base/unload dojo/_base/url dojo/window ../_Widget ../_CssStateMixin ../selection ./range ./html ../focus ../main".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r,w,u,v,x,y,z,A,E,B,G,L,I){var J=l("dijit._editor.RichText",[z,A],{constructor:function(a){this.contentPreFilters=[];this.contentPostFilters=[];this.contentDomPreFilters=[];this.contentDomPostFilters=[];this.editingAreaStyleSheets=[];this.events=[].concat(this.events);this._keyHandlers={};a&&n.isString(a.value)&&(this.value=a.value);this.onLoadDeferred=new k},baseClass:"dijitEditor",inheritWidth:!1,focusOnLoad:!1,name:"",styleSheets:"",height:"300px",minHeight:"1em",
isClosed:!0,isLoaded:!1,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",_NAME_CONTENT_SEP:"@@**%%:%%**@@",onLoadDeferred:null,isTabIndent:!1,disableSpellCheck:!1,postCreate:function(){"textarea"===this.domNode.tagName.toLowerCase()&&console.warn("RichText should not be used with the TEXTAREA tag.  See dijit._editor.RichText docs.");this.contentPreFilters=[n.trim,n.hitch(this,"_preFixUrlAttributes")].concat(this.contentPreFilters);r("mozilla")&&(this.contentPreFilters=[this._normalizeFontStyle].concat(this.contentPreFilters),
this.contentPostFilters=[this._removeMozBogus].concat(this.contentPostFilters));r("webkit")&&(this.contentPreFilters=[this._removeWebkitBogus].concat(this.contentPreFilters),this.contentPostFilters=[this._removeWebkitBogus].concat(this.contentPostFilters));if(r("ie")||r("trident"))this.contentPostFilters=[this._normalizeFontStyle].concat(this.contentPostFilters),this.contentDomPostFilters=[n.hitch(this,"_stripBreakerNodes")].concat(this.contentDomPostFilters);this.contentDomPostFilters=[n.hitch(this,
"_stripTrailingEmptyNodes")].concat(this.contentDomPostFilters);this.inherited(arguments);u.publish(I._scopeName+"._editor.RichText::init",this)},startup:function(){this.inherited(arguments);this.open();this.setupDefaultShortcuts()},setupDefaultShortcuts:function(){var a=n.hitch(this,function(a,b){return function(){return!this.execCommand(a,b)}}),b={b:a("bold"),i:a("italic"),u:a("underline"),a:a("selectall"),s:function(){this.save(!0)},m:function(){this.isTabIndent=!this.isTabIndent},1:a("formatblock",
"h1"),2:a("formatblock","h2"),3:a("formatblock","h3"),4:a("formatblock","h4"),"\\":a("insertunorderedlist")};r("ie")||(b.Z=a("redo"));for(var c in b)this.addKeyHandler(c,!0,!1,b[c])},events:["onKeyDown","onKeyUp"],captureEvents:[],_editorCommandsLocalized:!1,_localizeEditorCommands:function(){if(J._editorCommandsLocalized)this._local2NativeFormatNames=J._local2NativeFormatNames,this._native2LocalFormatNames=J._native2LocalFormatNames;else{J._editorCommandsLocalized=!0;J._local2NativeFormatNames={};
J._native2LocalFormatNames={};this._local2NativeFormatNames=J._local2NativeFormatNames;this._native2LocalFormatNames=J._native2LocalFormatNames;for(var a="div p pre h1 h2 h3 h4 h5 h6 ol ul address".split(" "),b="",c,e=0;c=a[e++];)b="l"!==c.charAt(1)?b+("\x3c"+c+"\x3e\x3cspan\x3econtent\x3c/span\x3e\x3c/"+c+"\x3e\x3cbr/\x3e"):b+("\x3c"+c+"\x3e\x3cli\x3econtent\x3c/li\x3e\x3c/"+c+"\x3e\x3cbr/\x3e");var g=d.create("div",{style:{position:"absolute",top:"0px",zIndex:10,opacity:0.01},innerHTML:b});this.ownerDocumentBody.appendChild(g);
a=n.hitch(this,function(){for(var a=g.firstChild;a;)try{this.selection.selectElement(a.firstChild);var b=a.tagName.toLowerCase();this._local2NativeFormatNames[b]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[b]]=b;a=a.nextSibling.nextSibling}catch(c){}d.destroy(g)});this.defer(a)}},open:function(b){if(!this.onLoadDeferred||0<=this.onLoadDeferred.fired)this.onLoadDeferred=new k;this.isClosed||this.close();u.publish(I._scopeName+"._editor.RichText::open",
this);1===arguments.length&&b.nodeName&&(this.domNode=b);var h=this.domNode,f;if(n.isString(this.value))f=this.value,h.innerHTML="";else if(h.nodeName&&"textarea"==h.nodeName.toLowerCase()){var l=this.textarea=h;this.name=l.name;f=l.value;h=this.domNode=this.ownerDocument.createElement("div");h.setAttribute("widgetId",this.id);l.removeAttribute("widgetId");h.cssText=l.cssText;h.className+=" "+l.className;d.place(h,l,"before");var p=n.hitch(this,function(){a.set(l,{display:"block",position:"absolute",
top:"-1000px"});if(r("ie")){var b=l.style;this.__overflow=b.overflow;b.overflow="hidden"}});r("ie")?this.defer(p,10):p();if(l.form){var q=l.value;this.reset=function(){this.getValue()!==q&&this.replaceValue(q)};t(l.form,"submit",n.hitch(this,function(){c.set(l,"disabled",this.disabled);l.value=this.getValue()}))}}else f=G.getChildrenHtml(h),h.innerHTML="";this.value=f;h.nodeName&&"LI"===h.nodeName&&(h.innerHTML=" \x3cbr\x3e");this.header=h.ownerDocument.createElement("div");h.appendChild(this.header);
this.editingArea=h.ownerDocument.createElement("div");h.appendChild(this.editingArea);this.footer=h.ownerDocument.createElement("div");h.appendChild(this.footer);this.name||(this.name=this.id+"_AUTOGEN");if(""!==this.name&&(!m.useXDomain||m.allowXdRichTextSave)){if((f=e.byId(I._scopeName+"._editor.RichText.value"))&&""!==f.value)for(var p=f.value.split(this._SEPARATOR),s=0,w;w=p[s++];)if(w=w.split(this._NAME_CONTENT_SEP),w[0]===this.name){this.value=w[1];p=p.splice(s,1);f.value=p.join(this._SEPARATOR);
break}J._globalSaveHandler||(J._globalSaveHandler={},v.addOnUnload(function(){for(var a in J._globalSaveHandler){var b=J._globalSaveHandler[a];n.isFunction(b)&&b()}}));J._globalSaveHandler[this.id]=n.hitch(this,"_saveContent")}this.isClosed=!1;f=this.editorObject=this.iframe=this.ownerDocument.createElement("iframe");f.id=this.id+"_iframe";f.style.border="none";f.style.width="100%";this._layoutMode?f.style.height="100%":7<=r("ie")?(this.height&&(f.style.height=this.height),this.minHeight&&(f.style.minHeight=
this.minHeight)):f.style.height=this.height?this.height:this.minHeight;f.frameBorder=0;f._loadFunc=n.hitch(this,function(a){this.window=a;this.document=a.document;this.selection=new E.SelectionManager(a);r("ie")&&this._localizeEditorCommands();this.onLoad(this.get("value"))});p=this._getIframeDocTxt().replace(/\\/g,"\\\\").replace(/'/g,"\\'");p=11>r("ie")?'javascript:document.open();try{parent.window;}catch(e){document.domain\x3d"'+document.domain+"\";}document.write('"+p+"');document.close()":"javascript: '"+
p+"'";this.editingArea.appendChild(f);f.src=p;"LI"===h.nodeName&&(h.lastChild.style.marginTop="-1.2em");g.add(this.domNode,this.baseClass)},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_getIframeDocTxt:function(){var b=a.getComputedStyle(this.domNode),c;if(this["aria-label"])c=this["aria-label"];else{var d=q('label[for\x3d"'+this.id+'"]',this.ownerDocument)[0]||e.byId(this["aria-labelledby"],this.ownerDocument);d&&(c=d.textContent||d.innerHTML||"")}var d="\x3cdiv id\x3d'dijitEditorBody' role\x3d'textbox' aria-multiline\x3d'true' "+
(c?" aria-label\x3d'"+w.escape(c)+"'":"")+"\x3e\x3c/div\x3e",g=[b.fontWeight,b.fontSize,b.fontFamily].join(" "),f=b.lineHeight,f=0<=f.indexOf("px")?parseFloat(f)/parseFloat(b.fontSize):0<=f.indexOf("em")?parseFloat(f):"normal",k="",l=this;this.style.replace(/(^|;)\s*(line-|font-?)[^;]+/ig,function(b){b=b.replace(/^;/ig,"")+";";var c=b.split(":")[0];if(c){var c=n.trim(c),c=c.toLowerCase(),d,e="";for(d=0;d<c.length;d++){var g=c.charAt(d);switch(g){case "-":d++,g=c.charAt(d).toUpperCase();default:e+=
g}}a.set(l.domNode,e,"")}k+=b+";"});this.iframe.setAttribute("title",c);return["\x3c!DOCTYPE html\x3e","\x3chtml lang\x3d'"+(this.lang||h.locale.replace(/-.*/,""))+"'"+(this.isLeftToRight()?"":" dir\x3d'rtl'")+"\x3e\n","\x3chead\x3e\n\x3cmeta http-equiv\x3d'Content-Type' content\x3d'text/html'\x3e\n",c?"\x3ctitle\x3e"+w.escape(c)+"\x3c/title\x3e":"","\x3cstyle\x3e\n\tbody,html {\n\t\tbackground:transparent;\n\t\tpadding: 1px 0 0 0;\n\t\tmargin: -1px 0 0 0;\n\t}\n\tbody,html,#dijitEditorBody { outline: none; }html { height: 100%; width: 100%; overflow: hidden; }\n",
this.height?"\tbody,#dijitEditorBody { height: 100%; width: 100%; overflow: auto; }\n":"\tbody,#dijitEditorBody { min-height: "+this.minHeight+"; width: 100%; overflow-x: auto; overflow-y: hidden; }\n","\tbody{\n\t\ttop:0px;\n\t\tleft:0px;\n\t\tright:0px;\n\t\tfont:",g,";\n",this.height||r("opera")?"":"\t\tposition: fixed;\n","\t\tline-height:",f,";\n\t}\n\tp{ margin: 1em 0; }\n\tli \x3e ul:-moz-first-node, li \x3e ol:-moz-first-node{ padding-top: 1.2em; }\n",r("ie")||r("trident")||r("edge")?"":"\tli{ min-height:1.2em; }\n",
"\x3c/style\x3e\n",this._applyEditingAreaStyleSheets(),"\n\x3c/head\x3e\n\x3cbody role\x3d'application'",c?" aria-label\x3d'"+w.escape(c)+"'":"","onload\x3d'try{frameElement \x26\x26 frameElement._loadFunc(window,document)}catch(e){document.domain\x3d\""+document.domain+"\";frameElement._loadFunc(window,document)}' ","style\x3d'"+k+"'\x3e",d,"\x3c/body\x3e\n\x3c/html\x3e"].join("")},_applyEditingAreaStyleSheets:function(){var a=[];this.styleSheets&&(a=this.styleSheets.split(";"),this.styleSheets=
"");a=a.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];for(var b="",c=0,d,e=y.get(this.ownerDocument);d=a[c++];)d=(new x(e.location,d)).toString(),this.editingAreaStyleSheets.push(d),b+='\x3clink rel\x3d"stylesheet" type\x3d"text/css" href\x3d"'+d+'"/\x3e';return b},addStyleSheet:function(a){var b=a.toString(),c=y.get(this.ownerDocument);if("."===b.charAt(0)||"/"!==b.charAt(0)&&!a.host)b=(new x(c.location,b)).toString();-1<f.indexOf(this.editingAreaStyleSheets,b)||(this.editingAreaStyleSheets.push(b),
this.onLoadDeferred.then(n.hitch(this,function(){if(this.document.createStyleSheet)this.document.createStyleSheet(b);else{var a=this.document.getElementsByTagName("head")[0],c=this.document.createElement("link");c.rel="stylesheet";c.type="text/css";c.href=b;a.appendChild(c)}})))},removeStyleSheet:function(a){var b=a.toString(),c=y.get(this.ownerDocument);if("."===b.charAt(0)||"/"!==b.charAt(0)&&!a.host)b=(new x(c.location,b)).toString();a=f.indexOf(this.editingAreaStyleSheets,b);-1!==a&&(delete this.editingAreaStyleSheets[a],
q('link[href\x3d"'+b+'"]',this.window.document).orphan())},disabled:!1,_mozSettingProps:{styleWithCSS:!1},_setDisabledAttr:function(a){a=!!a;this._set("disabled",a);if(this.isLoaded){var b=r("ie")&&(this.isLoaded||!this.focusOnLoad);b&&(this.editNode.unselectable="on");this.editNode.contentEditable=!a;this.editNode.tabIndex=a?"-1":this.tabIndex;b&&this.defer(function(){this.editNode&&(this.editNode.unselectable="off")});if(r("mozilla")&&!a&&this._mozSettingProps){a=this._mozSettingProps;for(var c in a)if(a.hasOwnProperty(c))try{this.document.execCommand(c,
!1,a[c])}catch(d){}}this._disabledOK=!0}},onLoad:function(a){this.window.__registeredWindow||(this.window.__registeredWindow=!0,this._iframeRegHandle=L.registerIframe(this.iframe));this.editNode=this.document.body.firstChild;var b=this;this.beforeIframeNode=d.place("\x3cdiv tabIndex\x3d-1\x3e\x3c/div\x3e",this.iframe,"before");this.afterIframeNode=d.place("\x3cdiv tabIndex\x3d-1\x3e\x3c/div\x3e",this.iframe,"after");this.iframe.onfocus=this.document.onfocus=function(){b.editNode.focus()};this.focusNode=
this.editNode;var c=this.events.concat(this.captureEvents),e=this.iframe?this.document:this.editNode;this.own.apply(this,f.map(c,function(a){var b=a.toLowerCase().replace(/^on/,"");return t(e,b,n.hitch(this,a))},this));this.own(t(e,"mouseup",n.hitch(this,"onClick")));r("ie")&&(this.own(t(this.document,"mousedown",n.hitch(this,"_onIEMouseDown"))),this.editNode.style.zoom=1);r("webkit")&&(this._webkitListener=this.own(t(this.document,"mouseup",n.hitch(this,"onDisplayChanged")))[0],this.own(t(this.document,
"mousedown",n.hitch(this,function(a){(a=a.target)&&(a===this.document.body||a===this.document)&&this.defer("placeCursorAtEnd")}))));if(r("ie"))try{this.document.execCommand("RespectVisibilityInDesign",!0,null)}catch(g){}this.isLoaded=!0;this.set("disabled",this.disabled);c=n.hitch(this,function(){this.setValue(a);this.onLoadDeferred&&!this.onLoadDeferred.isFulfilled()&&this.onLoadDeferred.resolve(!0);this.onDisplayChanged();this.focusOnLoad&&s(n.hitch(this,"defer","focus",this.updateInterval));this.value=
this.getValue(!0)});this.setValueDeferred?this.setValueDeferred.then(c):c()},onKeyDown:function(a){if(a.keyCode===p.SHIFT||a.keyCode===p.ALT||a.keyCode===p.META||a.keyCode===p.CTRL)return!0;if(a.keyCode===p.TAB&&this.isTabIndent&&(a.stopPropagation(),a.preventDefault(),this.queryCommandEnabled(a.shiftKey?"outdent":"indent")))this.execCommand(a.shiftKey?"outdent":"indent");if(a.keyCode==p.TAB&&!this.isTabIndent&&!a.ctrlKey&&!a.altKey)return a.shiftKey?this.beforeIframeNode.focus():this.afterIframeNode.focus(),
!0;9>r("ie")&&(a.keyCode===p.BACKSPACE&&"Control"===this.document.selection.type)&&(a.stopPropagation(),a.preventDefault(),this.execCommand("delete"));r("ff")&&(a.keyCode===p.PAGE_UP||a.keyCode===p.PAGE_DOWN)&&this.editNode.clientHeight>=this.editNode.scrollHeight&&a.preventDefault();var b=this._keyHandlers[a.keyCode],c=arguments;b&&!a.altKey&&f.some(b,function(b){if(!(b.shift^a.shiftKey)&&!(b.ctrl^(a.ctrlKey||a.metaKey)))return b.handler.apply(this,c)||a.preventDefault(),!0},this);this.defer("onKeyPressed",
1);return!0},onKeyUp:function(){},setDisabled:function(a){h.deprecated("dijit.Editor::setDisabled is deprecated",'use dijit.Editor::attr("disabled",boolean) instead',2);this.set("disabled",a)},_setValueAttr:function(a){this.setValue(a)},_setDisableSpellCheckAttr:function(a){this.document?c.set(this.document.body,"spellcheck",!a):this.onLoadDeferred.then(n.hitch(this,function(){c.set(this.document.body,"spellcheck",!a)}));this._set("disableSpellCheck",a)},addKeyHandler:function(a,b,c,d){"string"==
typeof a&&(a=a.toUpperCase().charCodeAt(0));n.isArray(this._keyHandlers[a])||(this._keyHandlers[a]=[]);this._keyHandlers[a].push({shift:c||!1,ctrl:b||!1,handler:d})},onKeyPressed:function(){this.onDisplayChanged()},onClick:function(a){this.onDisplayChanged(a)},_onIEMouseDown:function(){!this.focused&&!this.disabled&&this.focus()},_onBlur:function(a){(r("ie")||r("trident"))&&this.defer(function(){L.curNode||this.ownerDocumentBody.focus()});this.inherited(arguments);var b=this.getValue(!0);if(b!==this.value)this.onChange(b);
this._set("value",b)},_onFocus:function(a){this.disabled||(this._disabledOK||this.set("disabled",!1),this.inherited(arguments))},blur:function(){!r("ie")&&this.window.document.documentElement&&this.window.document.documentElement.focus?this.window.document.documentElement.focus():this.ownerDocumentBody.focus&&this.ownerDocumentBody.focus()},focus:function(){this.isLoaded?9>r("ie")?this.iframe.fireEvent("onfocus",document.createEventObject()):this.editNode.focus():this.focusOnLoad=!0},updateInterval:200,
_updateTimer:null,onDisplayChanged:function(){this._updateTimer&&this._updateTimer.remove();this._updateTimer=this.defer("onNormalizedDisplayChanged",this.updateInterval)},onNormalizedDisplayChanged:function(){delete this._updateTimer},onChange:function(){},_normalizeCommand:function(a,b){var c=a.toLowerCase();"formatblock"===c?r("safari")&&void 0===b&&(c="heading"):"hilitecolor"===c&&!r("mozilla")&&(c="backcolor");return c},_qcaCache:{},queryCommandAvailable:function(a){var b=this._qcaCache[a];return void 0!==
b?b:this._qcaCache[a]=this._queryCommandAvailable(a)},_queryCommandAvailable:function(a){switch(a.toLowerCase()){case "bold":case "italic":case "underline":case "subscript":case "superscript":case "fontname":case "fontsize":case "forecolor":case "hilitecolor":case "justifycenter":case "justifyfull":case "justifyleft":case "justifyright":case "delete":case "selectall":case "toggledir":case "createlink":case "unlink":case "removeformat":case "inserthorizontalrule":case "insertimage":case "insertorderedlist":case "insertunorderedlist":case "indent":case "outdent":case "formatblock":case "inserthtml":case "undo":case "redo":case "strikethrough":case "tabindent":case "cut":case "copy":case "paste":return!0;
case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":return r("ie")||r("trident")||r("edge");case "inserttable":case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":return!r("webkit");default:return!1}},execCommand:function(a,b){var c;this.focused&&this.focus();a=this._normalizeCommand(a,b);if(void 0!==b){if("heading"===a)throw Error("unimplemented");if("formatblock"===
a&&(r("ie")||r("trident")))b="\x3c"+b+"\x3e"}var d="_"+a+"Impl";if(this[d])c=this[d](b);else if((b=1<arguments.length?b:null)||"createlink"!==a)c=this.document.execCommand(a,!1,b);this.onDisplayChanged();return c},queryCommandEnabled:function(a){if(this.disabled||!this._disabledOK)return!1;a=this._normalizeCommand(a);var b="_"+a+"EnabledImpl";return this[b]?this[b](a):this._browserQueryCommandEnabled(a)},queryCommandState:function(a){if(this.disabled||!this._disabledOK)return!1;a=this._normalizeCommand(a);
try{return this.document.queryCommandState(a)}catch(b){return!1}},queryCommandValue:function(a){if(this.disabled||!this._disabledOK)return!1;a=this._normalizeCommand(a);if(r("ie")&&"formatblock"===a)a=this._native2LocalFormatNames[this.document.queryCommandValue(a)];else if(r("mozilla")&&"hilitecolor"===a){var b;try{b=this.document.queryCommandValue("styleWithCSS")}catch(c){b=!1}this.document.execCommand("styleWithCSS",!1,!0);a=this.document.queryCommandValue(a);this.document.execCommand("styleWithCSS",
!1,b)}else a=this.document.queryCommandValue(a);return a},_sCall:function(a,b){return this.selection[a].apply(this.selection,b)},placeCursorAtStart:function(){this.focus();var a=!1;if(r("mozilla"))for(var b=this.editNode.firstChild;b;){if(3===b.nodeType){if(0<b.nodeValue.replace(/^\s+|\s+$/g,"").length){a=!0;this.selection.selectElement(b);break}}else if(1===b.nodeType){var a=!0,c=b.tagName?b.tagName.toLowerCase():"";/br|input|img|base|meta|area|basefont|hr|link/.test(c)?this.selection.selectElement(b):
this.selection.selectElementChildren(b);break}b=b.nextSibling}else a=!0,this.selection.selectElementChildren(this.editNode);a&&this.selection.collapse(!0)},placeCursorAtEnd:function(){this.focus();var a=!1;if(r("mozilla"))for(var b=this.editNode.lastChild;b;){if(3===b.nodeType){if(0<b.nodeValue.replace(/^\s+|\s+$/g,"").length){a=!0;this.selection.selectElement(b);break}}else if(1===b.nodeType){a=!0;this.selection.selectElement(b.lastChild||b);break}b=b.previousSibling}else a=!0,this.selection.selectElementChildren(this.editNode);
a&&this.selection.collapse(!1)},getValue:function(a){return this.textarea&&(this.isClosed||!this.isLoaded)?this.textarea.value:this.isLoaded?this._postFilterContent(null,a):this.value},_getValueAttr:function(){return this.getValue(!0)},setValue:function(a){if(this.isLoaded){if(this.textarea&&(this.isClosed||!this.isLoaded))this.textarea.value=a;else{a=this._preFilterContent(a);var b=this.isClosed?this.domNode:this.editNode;b.innerHTML=a;this._preDomFilterContent(b)}this.onDisplayChanged();this._set("value",
this.getValue(!0))}else this.onLoadDeferred.then(n.hitch(this,function(){this.setValue(a)}))},replaceValue:function(a){this.isClosed?this.setValue(a):this.window&&this.window.getSelection&&!r("mozilla")?this.setValue(a):this.window&&this.window.getSelection?(a=this._preFilterContent(a),this.execCommand("selectall"),this.execCommand("inserthtml",a),this._preDomFilterContent(this.editNode)):this.document&&this.document.selection&&this.setValue(a);this._set("value",this.getValue(!0))},_preFilterContent:function(a){var b=
a;f.forEach(this.contentPreFilters,function(a){a&&(b=a(b))});return b},_preDomFilterContent:function(a){a=a||this.editNode;f.forEach(this.contentDomPreFilters,function(b){b&&n.isFunction(b)&&b(a)},this)},_postFilterContent:function(a,b){var c;n.isString(a)?c=a:(a=a||this.editNode,this.contentDomPostFilters.length&&(b&&(a=n.clone(a)),f.forEach(this.contentDomPostFilters,function(b){a=b(a)})),c=G.getChildrenHtml(a));n.trim(c.replace(/^\xA0\xA0*/,"").replace(/\xA0\xA0*$/,"")).length||(c="");f.forEach(this.contentPostFilters,
function(a){c=a(c)});return c},_saveContent:function(){var a=e.byId(I._scopeName+"._editor.RichText.value");a&&(a.value&&(a.value+=this._SEPARATOR),a.value+=this.name+this._NAME_CONTENT_SEP+this.getValue(!0))},escapeXml:function(a,b){a=a.replace(/&/gm,"\x26amp;").replace(/</gm,"\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,"\x26quot;");b||(a=a.replace(/'/gm,"\x26#39;"));return a},getNodeHtml:function(a){h.deprecated("dijit.Editor::getNodeHtml is deprecated","use dijit/_editor/html::getNodeHtml instead",
2);return G.getNodeHtml(a)},getNodeChildrenHtml:function(a){h.deprecated("dijit.Editor::getNodeChildrenHtml is deprecated","use dijit/_editor/html::getChildrenHtml instead",2);return G.getChildrenHtml(a)},close:function(a){if(!this.isClosed){arguments.length||(a=!0);a&&this._set("value",this.getValue(!0));this.interval&&clearInterval(this.interval);this._webkitListener&&(this._webkitListener.remove(),delete this._webkitListener);r("ie")&&(this.iframe.onfocus=null);this.iframe._loadFunc=null;this._iframeRegHandle&&
(this._iframeRegHandle.remove(),delete this._iframeRegHandle);if(this.textarea){var b=this.textarea.style;b.position="";b.left=b.top="";r("ie")&&(b.overflow=this.__overflow,this.__overflow=null);this.textarea.value=this.value;d.destroy(this.domNode);this.domNode=this.textarea}else this.domNode.innerHTML=this.value;delete this.iframe;g.remove(this.domNode,this.baseClass);this.isClosed=!0;this.isLoaded=!1;delete this.editNode;delete this.focusNode;this.window&&this.window._frameElement&&(this.window._frameElement=
null);this.editorObject=this.editingArea=this.document=this.window=null}},destroy:function(){this.isClosed||this.close(!1);this._updateTimer&&this._updateTimer.remove();this.inherited(arguments);J._globalSaveHandler&&delete J._globalSaveHandler[this.id]},_removeMozBogus:function(a){return a.replace(/\stype="_moz"/gi,"").replace(/\s_moz_dirty=""/gi,"").replace(/_moz_resizing="(true|false)"/gi,"")},_removeWebkitBogus:function(a){a=a.replace(/\sclass="webkit-block-placeholder"/gi,"");a=a.replace(/\sclass="apple-style-span"/gi,
"");return a=a.replace(/<meta charset=\"utf-8\" \/>/gi,"")},_normalizeFontStyle:function(a){return a.replace(/<(\/)?strong([ \>])/gi,"\x3c$1b$2").replace(/<(\/)?em([ \>])/gi,"\x3c$1i$2")},_preFixUrlAttributes:function(a){return a.replace(/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl\x3d$2$3$5$2").replace(/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl\x3d$2$3$5$2")},_browserQueryCommandEnabled:function(a){if(!a)return!1;
var b=9>r("ie")?this.document.selection.createRange():this.document;try{return b.queryCommandEnabled(a)}catch(c){return!1}},_createlinkEnabledImpl:function(){var a=!0;return a=r("opera")?this.window.getSelection().isCollapsed?!0:this.document.queryCommandEnabled("createlink"):this._browserQueryCommandEnabled("createlink")},_unlinkEnabledImpl:function(){var a=!0;return a=r("mozilla")||r("webkit")?this.selection.hasAncestorElement("a"):this._browserQueryCommandEnabled("unlink")},_inserttableEnabledImpl:function(){var a=
!0;return a=r("mozilla")||r("webkit")?!0:this._browserQueryCommandEnabled("inserttable")},_cutEnabledImpl:function(){var a=!0;r("webkit")?((a=this.window.getSelection())&&(a=a.toString()),a=!!a):a=this._browserQueryCommandEnabled("cut");return a},_copyEnabledImpl:function(){var a=!0;r("webkit")?((a=this.window.getSelection())&&(a=a.toString()),a=!!a):a=this._browserQueryCommandEnabled("copy");return a},_pasteEnabledImpl:function(){var a=!0;return r("webkit")?!0:a=this._browserQueryCommandEnabled("paste")},
_inserthorizontalruleImpl:function(a){return r("ie")?this._inserthtmlImpl("\x3chr\x3e"):this.document.execCommand("inserthorizontalrule",!1,a)},_unlinkImpl:function(a){return this.queryCommandEnabled("unlink")&&(r("mozilla")||r("webkit"))?(a=this.selection.getAncestorElement("a"),this.selection.selectElement(a),this.document.execCommand("unlink",!1,null)):this.document.execCommand("unlink",!1,a)},_hilitecolorImpl:function(a){var b;this._handleTextColorOrProperties("hilitecolor",a)||(r("mozilla")?
(this.document.execCommand("styleWithCSS",!1,!0),b=this.document.execCommand("hilitecolor",!1,a),this.document.execCommand("styleWithCSS",!1,!1)):b=this.document.execCommand("hilitecolor",!1,a));return b},_backcolorImpl:function(a){r("ie")&&(a=a?a:null);var b=this._handleTextColorOrProperties("backcolor",a);b||(b=this.document.execCommand("backcolor",!1,a));return b},_forecolorImpl:function(a){r("ie")&&(a=a?a:null);var b=!1;(b=this._handleTextColorOrProperties("forecolor",a))||(b=this.document.execCommand("forecolor",
!1,a));return b},_inserthtmlImpl:function(a){a=this._preFilterContent(a);var b=!0;if(9>r("ie")){var c=this.document.selection.createRange();if("CONTROL"===this.document.selection.type.toUpperCase()){for(var e=c.item(0);c.length;)c.remove(c.item(0));e.outerHTML=a}else c.pasteHTML(a);c.select()}else if(8>r("trident")){var g=B.getSelection(this.window);if(g&&g.rangeCount&&g.getRangeAt){c=g.getRangeAt(0);c.deleteContents();var h=d.create("div");h.innerHTML=a;for(var f,e=this.document.createDocumentFragment();a=
h.firstChild;)f=e.appendChild(a);c.insertNode(e);f&&(c=c.cloneRange(),c.setStartAfter(f),c.collapse(!1),g.removeAllRanges(),g.addRange(c))}}else r("mozilla")&&!a.length?this.selection.remove():b=this.document.execCommand("inserthtml",!1,a);return b},_boldImpl:function(a){var b=!1;if(r("ie")||r("trident"))this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("bold");b||(b=this.document.execCommand("bold",!1,a));return b},_italicImpl:function(a){var b=!1;if(r("ie")||r("trident"))this._adaptIESelection(),
b=this._adaptIEFormatAreaAndExec("italic");b||(b=this.document.execCommand("italic",!1,a));return b},_underlineImpl:function(a){var b=!1;if(r("ie")||r("trident"))this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("underline");b||(b=this.document.execCommand("underline",!1,a));return b},_strikethroughImpl:function(a){var b=!1;if(r("ie")||r("trident"))this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("strikethrough");b||(b=this.document.execCommand("strikethrough",!1,a));return b},_superscriptImpl:function(a){var b=
!1;if(r("ie")||r("trident"))this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("superscript");b||(b=this.document.execCommand("superscript",!1,a));return b},_subscriptImpl:function(a){var b=!1;if(r("ie")||r("trident"))this._adaptIESelection(),b=this._adaptIEFormatAreaAndExec("subscript");b||(b=this.document.execCommand("subscript",!1,a));return b},_fontnameImpl:function(a){var b;if(r("ie")||r("trident"))b=this._handleTextColorOrProperties("fontname",a);b||(b=this.document.execCommand("fontname",
!1,a));return b},_fontsizeImpl:function(a){var b;if(r("ie")||r("trident"))b=this._handleTextColorOrProperties("fontsize",a);b||(b=this.document.execCommand("fontsize",!1,a));return b},_insertorderedlistImpl:function(a){var b=!1;if(r("ie")||r("trident")||r("edge"))b=this._adaptIEList("insertorderedlist",a);b||(b=this.document.execCommand("insertorderedlist",!1,a));return b},_insertunorderedlistImpl:function(a){var b=!1;if(r("ie")||r("trident")||r("edge"))b=this._adaptIEList("insertunorderedlist",a);
b||(b=this.document.execCommand("insertunorderedlist",!1,a));return b},getHeaderHeight:function(){return this._getNodeChildrenHeight(this.header)},getFooterHeight:function(){return this._getNodeChildrenHeight(this.footer)},_getNodeChildrenHeight:function(a){var c=0;if(a&&a.childNodes){var d;for(d=0;d<a.childNodes.length;d++)var e=b.position(a.childNodes[d]),c=c+e.h}return c},_isNodeEmpty:function(a,b){return 1===a.nodeType?0<a.childNodes.length?this._isNodeEmpty(a.childNodes[0],b):!0:3===a.nodeType?
""===a.nodeValue.substring(b):!1},_removeStartingRangeFromRange:function(a,b){if(a.nextSibling)b.setStart(a.nextSibling,0);else{for(var c=a.parentNode;c&&null==c.nextSibling;)c=c.parentNode;c&&b.setStart(c.nextSibling,0)}return b},_adaptIESelection:function(){var a=B.getSelection(this.window);if(a&&a.rangeCount&&!a.isCollapsed){for(var b=a.getRangeAt(0),c=b.startContainer,d=b.startOffset;3===c.nodeType&&d>=c.length&&c.nextSibling;)d-=c.length,c=c.nextSibling;for(var e=null;this._isNodeEmpty(c,d)&&
c!==e;)e=c,b=this._removeStartingRangeFromRange(c,b),c=b.startContainer,d=0;a.removeAllRanges();a.addRange(b)}},_adaptIEFormatAreaAndExec:function(a){var b=B.getSelection(this.window),c=this.document,e,g,h,k,l,n,p;if(a&&b&&b.isCollapsed){if(this.queryCommandValue(a)){a=this._tagNamesForCommand(a);h=b.getRangeAt(0);k=h.startContainer;3===k.nodeType&&(g=h.endOffset,k.length<g&&(g=this._adjustNodeAndOffset(e,g),k=g.node));for(;k&&k!==this.editNode;){e=k.tagName?k.tagName.toLowerCase():"";if(-1<f.indexOf(a,
e)){p=k;break}k=k.parentNode}if(p&&(e=h.startContainer,a=c.createElement(p.tagName),d.place(a,p,"after"),e&&3===e.nodeType)){g=h.endOffset;e.length<g&&(g=this._adjustNodeAndOffset(e,g),e=g.node,g=g.offset);k=e.nodeValue;h=c.createTextNode(k.substring(0,g));var m=k.substring(g,k.length);m&&(l=c.createTextNode(m));d.place(h,e,"before");l&&(n=c.createElement("span"),n.className="ieFormatBreakerSpan",d.place(n,e,"after"),d.place(l,n,"after"),l=n);d.destroy(e);h=h.parentNode;for(e=[];h!==p;){k=h.tagName;
g={tagName:k};e.push(g);k=c.createElement(k);h.style&&(k.style&&h.style.cssText)&&(k.style.cssText=h.style.cssText,g.cssText=h.style.cssText);"FONT"===h.tagName&&(h.color&&(k.color=h.color,g.color=h.color),h.face&&(k.face=h.face,g.face=h.face),h.size&&(k.size=h.size,g.size=h.size));h.className&&(k.className=h.className,g.className=h.className);if(l)for(;l;)g=l.nextSibling,k.appendChild(l),l=g;k.tagName==h.tagName?(n=c.createElement("span"),n.className="ieFormatBreakerSpan",d.place(n,h,"after"),d.place(k,
n,"after")):d.place(k,h,"after");l=k;h=h.parentNode}if(l){if(1===l.nodeType||3===l.nodeType&&l.nodeValue)a.innerHTML="";for(;l;)g=l.nextSibling,a.appendChild(l),l=g}if(e.length){g=e.pop();l=c.createElement(g.tagName);g.cssText&&l.style&&(l.style.cssText=g.cssText);g.className&&(l.className=g.className);"FONT"===g.tagName&&(g.color&&(l.color=g.color),g.face&&(l.face=g.face),g.size&&(l.size=g.size));for(d.place(l,a,"before");e.length;)g=e.pop(),p=c.createElement(g.tagName),g.cssText&&p.style&&(p.style.cssText=
g.cssText),g.className&&(p.className=g.className),"FONT"===g.tagName&&(g.color&&(p.color=g.color),g.face&&(p.face=g.face),g.size&&(p.size=g.size)),l.appendChild(p),l=p;p=c.createTextNode(".");n.appendChild(p);l.appendChild(p)}else n=c.createElement("span"),n.className="ieFormatBreakerSpan",p=c.createTextNode("."),n.appendChild(p),d.place(n,a,"before");l=B.create(this.window);l.setStart(p,0);l.setEnd(p,p.length);b.removeAllRanges();b.addRange(l);this.selection.collapse(!1);p.parentNode.innerHTML="";
a.firstChild||d.destroy(a);return!0}return!1}h=b.getRangeAt(0);if((e=h.startContainer)&&3===e.nodeType)return g=h.startOffset,e.length<g&&(g=this._adjustNodeAndOffset(e,g),e=g.node,g=g.offset),k=e.nodeValue,h=c.createTextNode(k.substring(0,g)),m=k.substring(g),""!==m&&(l=c.createTextNode(k.substring(g))),n=c.createElement("span"),p=c.createTextNode("."),n.appendChild(p),h.length?d.place(h,e,"after"):h=e,d.place(n,h,"after"),l&&d.place(l,n,"after"),d.destroy(e),l=B.create(this.window),l.setStart(p,
0),l.setEnd(p,p.length),b.removeAllRanges(),b.addRange(l),c.execCommand(a),d.place(n.firstChild,n,"before"),d.destroy(n),l.setStart(p,0),l.setEnd(p,p.length),b.removeAllRanges(),b.addRange(l),this.selection.collapse(!1),p.parentNode.innerHTML="",!0}else return!1},_adaptIEList:function(a){var b=B.getSelection(this.window);if(b.isCollapsed&&b.rangeCount&&!this.queryCommandValue(a)){var c=b.getRangeAt(0),e=c.startContainer;if(e&&3==e.nodeType&&!c.startOffset)return c="ul","insertorderedlist"===a&&(c=
"ol"),a=this.document.createElement(c),c=d.create("li",null,a),d.place(a,e,"before"),c.appendChild(e),d.create("br",null,a,"after"),a=B.create(this.window),a.setStart(e,0),a.setEnd(e,e.length),b.removeAllRanges(),b.addRange(a),this.selection.collapse(!0),!0}return!1},_handleTextColorOrProperties:function(b,c){var e=B.getSelection(this.window),g=this.document,h,f,k,l,p;c=c||null;if(b&&(e&&e.isCollapsed)&&e.rangeCount&&(f=e.getRangeAt(0),(h=f.startContainer)&&3===h.nodeType)){p=f.startOffset;h.length<
p&&(f=this._adjustNodeAndOffset(h,p),h=f.node,p=f.offset);k=h.nodeValue;f=g.createTextNode(k.substring(0,p));""!==k.substring(p)&&(l=g.createTextNode(k.substring(p)));k=g.createElement("span");p=g.createTextNode(".");k.appendChild(p);g=g.createElement("span");k.appendChild(g);f.length?d.place(f,h,"after"):f=h;d.place(k,f,"after");l&&d.place(l,k,"after");d.destroy(h);h=B.create(this.window);h.setStart(p,0);h.setEnd(p,p.length);e.removeAllRanges();e.addRange(h);if(r("webkit")){e="color";if("hilitecolor"===
b||"backcolor"===b)e="backgroundColor";a.set(k,e,c);this.selection.remove();d.destroy(g);k.innerHTML="\x26#160;";this.selection.selectElement(k);this.focus()}else this.execCommand(b,c),d.place(k.firstChild,k,"before"),d.destroy(k),h.setStart(p,0),h.setEnd(p,p.length),e.removeAllRanges(),e.addRange(h),this.selection.collapse(!1),p.parentNode.removeChild(p);return!0}return!1},_adjustNodeAndOffset:function(a,b){for(;a.length<b&&a.nextSibling&&3===a.nextSibling.nodeType;)b-=a.length,a=a.nextSibling;return{node:a,
offset:b}},_tagNamesForCommand:function(a){return"bold"===a?["b","strong"]:"italic"===a?["i","em"]:"strikethrough"===a?["s","strike"]:"superscript"===a?["sup"]:"subscript"===a?["sub"]:"underline"===a?["u"]:[]},_stripBreakerNodes:function(a){if(this.isLoaded)return q(".ieFormatBreakerSpan",a).forEach(function(a){for(;a.firstChild;)d.place(a.firstChild,a,"before");d.destroy(a)}),a},_stripTrailingEmptyNodes:function(a){for(;a.lastChild&&(/^(p|div|br)$/i.test(a.lastChild.nodeName)&&0==a.lastChild.children.length&&
/^[\s\xA0]*$/.test(a.lastChild.textContent||a.lastChild.innerText||"")||3===a.lastChild.nodeType&&/^[\s\xA0]*$/.test(a.lastChild.nodeValue));)d.destroy(a.lastChild);return a},_setTextDirAttr:function(a){this._set("textDir",a);this.onLoadDeferred.then(n.hitch(this,function(){this.editNode.dir=a}))}});return J})},"dijit/selection":function(){define("dojo/_base/array dojo/dom dojo/_base/lang dojo/sniff dojo/_base/window dijit/focus".split(" "),function(f,m,l,k,e,c){var g=function(b){var a=b.document;
this.getType=function(){if(a.getSelection){var c="text",d;try{d=b.getSelection()}catch(e){}d&&1==d.rangeCount&&(d=d.getRangeAt(0),d.startContainer==d.endContainer&&(1==d.endOffset-d.startOffset&&3!=d.startContainer.nodeType)&&(c="control"));return c}return a.selection.type.toLowerCase()};this.getSelectedText=function(){if(a.getSelection){var c=b.getSelection();return c?c.toString():""}return"control"==this.getType()?null:a.selection.createRange().text};this.getSelectedHtml=function(){if(a.getSelection){var c=
b.getSelection();if(c&&c.rangeCount){var d,e="";for(d=0;d<c.rangeCount;d++){var g=c.getRangeAt(d).cloneContents(),f=a.createElement("div");f.appendChild(g);e+=f.innerHTML}return e}return null}return"control"==this.getType()?null:a.selection.createRange().htmlText};this.getSelectedElement=function(){if("control"==this.getType()){if(a.getSelection){var c=b.getSelection();return c.anchorNode.childNodes[c.anchorOffset]}if((c=a.selection.createRange())&&c.item)return a.selection.createRange().item(0)}return null};
this.getParentElement=function(){if("control"==this.getType()){var b=this.getSelectedElement();if(b)return b.parentNode}else if(a.getSelection){if(b=a.getSelection()){for(b=b.anchorNode;b&&1!=b.nodeType;)b=b.parentNode;return b}}else return b=a.selection.createRange(),b.collapse(!0),b.parentElement();return null};this.hasAncestorElement=function(a){return null!=this.getAncestorElement.apply(this,arguments)};this.getAncestorElement=function(a){var b=this.getSelectedElement()||this.getParentElement();
return this.getParentOfType(b,arguments)};this.isTag=function(a,b){if(a&&a.tagName)for(var c=a.tagName.toLowerCase(),d=0;d<b.length;d++){var e=String(b[d]).toLowerCase();if(c==e)return e}return""};this.getParentOfType=function(a,b){for(;a;){if(this.isTag(a,b).length)return a;a=a.parentNode}return null};this.collapse=function(c){if(a.getSelection){var d=b.getSelection();d.removeAllRanges?c?d.collapseToStart():d.collapseToEnd():d.collapse(c)}else d=a.selection.createRange(),d.collapse(c),d.select()};
this.remove=function(){var c=a.selection;a.getSelection?(c=b.getSelection(),c.deleteFromDocument()):"none"!=c.type.toLowerCase()&&c.clear();return c};this.selectElementChildren=function(c,d){var e;c=m.byId(c);if(a.getSelection){var g=b.getSelection();k("opera")?(e=g.rangeCount?g.getRangeAt(0):a.createRange(),e.setStart(c,0),e.setEnd(c,3==c.nodeType?c.length:c.childNodes.length),g.addRange(e)):g.selectAllChildren(c)}else if(e=c.ownerDocument.body.createTextRange(),e.moveToElementText(c),!d)try{e.select()}catch(f){}};
this.selectElement=function(b,c){var d;b=m.byId(b);if(a.getSelection){var g=a.getSelection();d=a.createRange();g.removeAllRanges&&(k("opera")&&g.getRangeAt(0)&&(d=g.getRangeAt(0)),d.selectNode(b),g.removeAllRanges(),g.addRange(d))}else try{g=b.tagName?b.tagName.toLowerCase():"",d="img"===g||"table"===g?e.body(a).createControlRange():e.body(a).createRange(),d.addElement(b),c||d.select()}catch(f){this.selectElementChildren(b,c)}};this.inSelection=function(c){if(c){var d,e;if(a.getSelection){var g=b.getSelection();
g&&0<g.rangeCount&&(e=g.getRangeAt(0));if(e&&e.compareBoundaryPoints&&a.createRange)try{if(d=a.createRange(),d.setStart(c,0),1===e.compareBoundaryPoints(e.START_TO_END,d))return!0}catch(f){}}else{e=a.selection.createRange();try{d=c.ownerDocument.body.createTextRange(),d.moveToElementText(c)}catch(k){}if(e&&d&&1===e.compareEndPoints("EndToStart",d))return!0}}return!1};this.getBookmark=function(){var d,e,g=a.selection,f=c.curNode;if(a.getSelection){if(g=b.getSelection())if(g.isCollapsed){if(d=f?f.tagName:
"")if(d=d.toLowerCase(),"textarea"==d||"input"==d&&(!f.type||"text"==f.type.toLowerCase()))return g={start:f.selectionStart,end:f.selectionEnd,node:f,pRange:!0},{isCollapsed:g.end<=g.start,mark:g};d={isCollapsed:!0};g.rangeCount&&(d.mark=g.getRangeAt(0).cloneRange())}else e=g.getRangeAt(0),d={isCollapsed:!1,mark:e.cloneRange()}}else if(g){d=f?f.tagName:"";d=d.toLowerCase();if(f&&d&&("button"==d||"textarea"==d||"input"==d)){if(g.type&&"none"==g.type.toLowerCase())return{isCollapsed:!0,mark:null};e=
g.createRange();return{isCollapsed:e.text&&e.text.length?!1:!0,mark:{range:e,pRange:!0}}}d={};try{e=g.createRange(),d.isCollapsed=!("Text"==g.type?e.htmlText.length:e.length)}catch(k){return d.isCollapsed=!0,d}if("CONTROL"==g.type.toUpperCase())if(e.length){d.mark=[];g=0;for(f=e.length;g<f;)d.mark.push(e.item(g++))}else d.isCollapsed=!0,d.mark=null;else d.mark=e.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return d};this.moveToBookmark=function(c){if(c=
c.mark)if(a.getSelection){var d=b.getSelection();d&&d.removeAllRanges?c.pRange?(d=c.node,d.selectionStart=c.start,d.selectionEnd=c.end):(d.removeAllRanges(),d.addRange(c)):console.warn("No idea how to restore selection for this browser!")}else if(a.selection&&c){var e;c.pRange?e=c.range:l.isArray(c)?(e=a.body.createControlRange(),f.forEach(c,function(a){e.addElement(a)})):(e=a.body.createTextRange(),e.moveToBookmark(c));e.select()}};this.isCollapsed=function(){return this.getBookmark().isCollapsed}},
d=new g(window);d.SelectionManager=g;return d})},"dijit/_editor/range":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/lang"],function(f,m,l){var k={getIndex:function(c,d){for(var b=[],a=[],e=c,f,k;c!=d;){var l=0;for(f=c.parentNode;k=f.childNodes[l++];)if(k===c){--l;break}b.unshift(l);a.unshift(l-f.childNodes.length);c=f}if(0<b.length&&3==e.nodeType){for(k=e.previousSibling;k&&3==k.nodeType;)b[b.length-1]--,k=k.previousSibling;for(k=e.nextSibling;k&&3==k.nodeType;)a[a.length-
1]++,k=k.nextSibling}return{o:b,r:a}},getNode:function(c,d){if(!l.isArray(c)||0==c.length)return d;var b=d;f.every(c,function(a){if(0<=a&&a<b.childNodes.length)b=b.childNodes[a];else return b=null,!1;return!0});return b},getCommonAncestor:function(c,d,b){b=b||c.ownerDocument.body;var a=function(a){for(var c=[];a;)if(c.unshift(a),a!==b)a=a.parentNode;else break;return c};c=a(c);d=a(d);for(var a=Math.min(c.length,d.length),e=c[0],f=1;f<a;f++)if(c[f]===d[f])e=c[f];else break;return e},getAncestor:function(c,
d,b){for(b=b||c.ownerDocument.body;c&&c!==b;){var a=c.nodeName.toUpperCase();if(d.test(a))return c;c=c.parentNode}return null},BlockTagNames:/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|DT|DE)$/,getBlockAncestor:function(c,d,b){b=b||c.ownerDocument.body;d=d||k.BlockTagNames;for(var a=null,e;c&&c!==b;){var f=c.nodeName.toUpperCase();!a&&d.test(f)&&(a=c);!e&&/^(?:BODY|TD|TH|CAPTION)$/.test(f)&&(e=c);c=c.parentNode}return{blockNode:a,blockContainer:e||c.ownerDocument.body}},atBeginningOfContainer:function(c,
d,b){var a=!1,e=0==b;!e&&3==d.nodeType&&/^[\s\xA0]+$/.test(d.nodeValue.substr(0,b))&&(e=!0);if(e)for(a=!0;d&&d!==c;){if(d.previousSibling){a=!1;break}d=d.parentNode}return a},atEndOfContainer:function(c,d,b){var a=!1,e=b==(d.length||d.childNodes.length);!e&&3==d.nodeType&&/^[\s\xA0]+$/.test(d.nodeValue.substr(b))&&(e=!0);if(e)for(a=!0;d&&d!==c;){if(d.nextSibling){a=!1;break}d=d.parentNode}return a},adjacentNoneTextNode:function(c,d){for(var b=c,a=0-c.length||0,e=d?"nextSibling":"previousSibling";b&&
3==b.nodeType;)a+=b.length,b=b[e];return[b,a]},create:function(e){e=e||window;return e.getSelection?e.document.createRange():new c},getSelection:function(c,d){if(c.getSelection)return c.getSelection();var b=new e.selection(c);d||b._getCurrentSelection();return b}};if(!window.getSelection)var e=k.ie={cachedSelection:{},selection:function(g){this._ranges=[];this.addRange=function(c,b){this._ranges.push(c);b||c._select();this.rangeCount=this._ranges.length};this.removeAllRanges=function(){this._ranges=
[];this.rangeCount=0};this.getRangeAt=function(c){return this._ranges[c]};this._getCurrentSelection=function(){this.removeAllRanges();var d;d=g.document.selection.createRange();d="CONTROL"==g.document.selection.type.toUpperCase()?new c(e.decomposeControlRange(d)):new c(e.decomposeTextRange(d));d?(this.addRange(d,!0),this.isCollapsed=d.collapsed):this.isCollapsed=!0}},decomposeControlRange:function(c){var d=c.item(0),b=c.item(c.length-1);c=d.parentNode;var a=b.parentNode,d=k.getIndex(d,c).o[0],b=k.getIndex(b,
a).o[0]+1;return[c,d,a,b]},getEndPoint:function(c,d){var b=c.duplicate();b.collapse(!d);var a="EndTo"+(d?"End":"Start"),e=b.parentElement(),l,n,m;0<e.childNodes.length?f.every(e.childNodes,function(d,f){var q;if(3!=d.nodeType)if(b.moveToElementText(d),0<b.compareEndPoints(a,c))if(m&&3==m.nodeType)l=m,q=!0;else return l=e,n=f,!1;else{if(f==e.childNodes.length-1)return l=e,n=e.childNodes.length,!1}else f==e.childNodes.length-1&&(l=d,q=!0);if(q&&l){l=(q=k.adjacentNoneTextNode(l)[0])?q.nextSibling:e.firstChild;
var u=k.adjacentNoneTextNode(l);q=u[0];u=u[1];q?(b.moveToElementText(q),b.collapse(!1)):b.moveToElementText(e);b.setEndPoint(a,c);n=b.text.length-u;return!1}m=d;return!0}):(l=e,n=0);if(!d&&1==l.nodeType&&n==l.childNodes.length){var q=l.nextSibling;q&&3==q.nodeType&&(l=q,n=0)}return[l,n]},setEndPoint:function(c,d,b){c=c.duplicate();var a;if(3!=d.nodeType)if(0<b){if(a=d.childNodes[b-1])if(3==a.nodeType)d=a,b=a.length;else if(a.nextSibling&&3==a.nextSibling.nodeType)d=a.nextSibling,b=0;else{c.moveToElementText(a.nextSibling?
a:d);var e=a.parentNode;a=e.insertBefore(a.ownerDocument.createTextNode(" "),a.nextSibling);c.collapse(!1);e.removeChild(a)}}else c.moveToElementText(d),c.collapse(!0);3==d.nodeType&&(a=k.adjacentNoneTextNode(d),e=a[0],a=a[1],e?(c.moveToElementText(e),c.collapse(!1),"inherit"!=e.contentEditable&&a++):(c.moveToElementText(d.parentNode),c.collapse(!0),c.move("character",1),c.move("character",-1)),b+=a,0<b&&c.move("character",b)!=b&&console.error("Error when moving!"));return c},decomposeTextRange:function(c){var d=
e.getEndPoint(c),b=d[0],a=d[1],h=d[0],d=d[1];c.htmlText.length&&(c.htmlText==c.text?d=a+c.text.length:(d=e.getEndPoint(c,!0),h=d[0],d=d[1]));return[b,a,h,d]},setRange:function(c,d,b,a,h,f){d=e.setEndPoint(c,d,b);c.setEndPoint("StartToStart",d);if(!f)var k=e.setEndPoint(c,a,h);c.setEndPoint("EndToEnd",k||d);return c}},c=k.W3CRange=m(null,{constructor:function(){0<arguments.length?(this.setStart(arguments[0][0],arguments[0][1]),this.setEnd(arguments[0][2],arguments[0][3])):(this.startContainer=this.commonAncestorContainer=
null,this.startOffset=0,this.endContainer=null,this.endOffset=0,this.collapsed=!0)},_updateInternal:function(){this.commonAncestorContainer=this.startContainer!==this.endContainer?k.getCommonAncestor(this.startContainer,this.endContainer):this.startContainer;this.collapsed=this.startContainer===this.endContainer&&this.startOffset==this.endOffset},setStart:function(c,d){d=parseInt(d);this.startContainer===c&&this.startOffset==d||(delete this._cachedBookmark,this.startContainer=c,this.startOffset=d,
this.endContainer?this._updateInternal():this.setEnd(c,d))},setEnd:function(c,d){d=parseInt(d);this.endContainer===c&&this.endOffset==d||(delete this._cachedBookmark,this.endContainer=c,this.endOffset=d,this.startContainer?this._updateInternal():this.setStart(c,d))},setStartAfter:function(c,d){this._setPoint("setStart",c,d,1)},setStartBefore:function(c,d){this._setPoint("setStart",c,d,0)},setEndAfter:function(c,d){this._setPoint("setEnd",c,d,1)},setEndBefore:function(c,d){this._setPoint("setEnd",
c,d,0)},_setPoint:function(c,d,b,a){b=k.getIndex(d,d.parentNode).o;this[c](d.parentNode,b.pop()+a)},_getIERange:function(){var c=(this._body||this.endContainer.ownerDocument.body).createTextRange();e.setRange(c,this.startContainer,this.startOffset,this.endContainer,this.endOffset,this.collapsed);return c},getBookmark:function(){this._getIERange();return this._cachedBookmark},_select:function(){this._getIERange().select()},deleteContents:function(){var c=this.startContainer,d=this._getIERange();3===
c.nodeType&&!this.startOffset&&this.setStartBefore(c);d.pasteHTML("");this.endContainer=this.startContainer;this.endOffset=this.startOffset;this.collapsed=!0},cloneRange:function(){var e=new c([this.startContainer,this.startOffset,this.endContainer,this.endOffset]);e._body=this._body;return e},detach:function(){this.startContainer=this.commonAncestorContainer=this._body=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=!0}});l.setObject("dijit.range",k);return k})},"dijit/_editor/html":function(){define(["dojo/_base/array",
"dojo/_base/lang","dojo/sniff"],function(f,m,l){var k={};m.setObject("dijit._editor.html",k);var e=k.escapeXml=function(c,e){c=c.replace(/&/gm,"\x26amp;").replace(/</gm,"\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,"\x26quot;");e||(c=c.replace(/'/gm,"\x26#39;"));return c};k.getNodeHtml=function(c){var e=[];k.getNodeHtmlHelper(c,e);return e.join("")};k.getNodeHtmlHelper=function(c,g){switch(c.nodeType){case 1:var d=c.nodeName.toLowerCase();if(!d||"/"==d.charAt(0))return"";g.push("\x3c",d);var b=
[],a={},h;if(l("dom-attributes-explicit")||l("dom-attributes-specified-flag"))for(var p=0;h=c.attributes[p++];){var n=h.name;if("_dj"!==n.substr(0,3)&&(!l("dom-attributes-specified-flag")||h.specified)&&!(n in a)){h=h.value;if("src"==n||"href"==n)c.getAttribute("_djrealurl")&&(h=c.getAttribute("_djrealurl"));8===l("ie")&&"style"===n&&(h=h.replace("HEIGHT:","height:").replace("WIDTH:","width:"));b.push([n,h]);a[n]=h}}else{var m=(/^input$|^img$/i.test(c.nodeName)?c:c.cloneNode(!1)).outerHTML,a=m.match(/[\w-]+=("[^"]*"|'[^']*'|\S*)/gi),
m=m.substr(0,m.indexOf("\x3e"));f.forEach(a,function(a){if(a){var e=a.indexOf("\x3d");if(0<e&&(a=a.substring(0,e),"_dj"!=a.substr(0,3)))if(("src"==a||"href"==a)&&c.getAttribute("_djrealurl"))b.push([a,c.getAttribute("_djrealurl")]);else{var g;switch(a){case "style":g=c.style.cssText.toLowerCase();break;case "class":g=c.className;break;case "width":if("img"===d){(e=/width=(\S+)/i.exec(m))&&(g=e[1]);break}case "height":if("img"===d){(e=/height=(\S+)/i.exec(m))&&(g=e[1]);break}default:g=c.getAttribute(a)}null!=
g&&b.push([a,g.toString()])}}},this)}b.sort(function(a,b){return a[0]<b[0]?-1:a[0]==b[0]?0:1});for(a=0;h=b[a++];)g.push(" ",h[0],'\x3d"',"string"===typeof h[1]?e(h[1],!0):h[1],'"');switch(d){case "br":case "hr":case "img":case "input":case "base":case "meta":case "area":case "basefont":g.push(" /\x3e");break;case "script":g.push("\x3e",c.innerHTML,"\x3c/",d,"\x3e");break;default:g.push("\x3e"),c.hasChildNodes()&&k.getChildrenHtmlHelper(c,g),g.push("\x3c/",d,"\x3e")}break;case 4:case 3:g.push(e(c.nodeValue,
!0));break;case 8:g.push("\x3c!--",e(c.nodeValue,!0),"--\x3e");break;default:g.push("\x3c!-- Element not recognized - Type: ",c.nodeType," Name: ",c.nodeName,"--\x3e")}};k.getChildrenHtml=function(c){var e=[];k.getChildrenHtmlHelper(c,e);return e.join("")};k.getChildrenHtmlHelper=function(c,e){if(c)for(var d=c.childNodes||c,b=!l("ie")||d!==c,a,h=0;a=d[h++];)(!b||a.parentNode==c)&&k.getNodeHtmlHelper(a,e)};return k})},"dijit/TooltipDialog":function(){define("dojo/_base/declare dojo/dom-class dojo/has dojo/keys dojo/_base/lang dojo/on ./focus ./layout/ContentPane ./_DialogMixin ./form/_FormMixin ./_TemplatedMixin dojo/text!./templates/TooltipDialog.html ./main".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n){f=f("dijit.TooltipDialog",[d,h,a,b],{title:"",doLayout:!1,autofocus:!0,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:p,_setTitleAttr:"containerNode",postCreate:function(){this.inherited(arguments);this.own(c(this.domNode,"keydown",e.hitch(this,"_onKey")))},orient:function(a,b,c){a={"MR-ML":"dijitTooltipRight","ML-MR":"dijitTooltipLeft","TM-BM":"dijitTooltipAbove","BM-TM":"dijitTooltipBelow","BL-TL":"dijitTooltipBelow dijitTooltipABLeft",
"TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft","BR-TL":"dijitTooltipBelow dijitTooltipABLeft","BL-TR":"dijitTooltipBelow dijitTooltipABRight","TL-BR":"dijitTooltipAbove dijitTooltipABRight","TR-BL":"dijitTooltipAbove dijitTooltipABLeft"}[b+"-"+c];m.replace(this.domNode,a,this._currentOrientClass||"");this._currentOrientClass=a},focus:function(){this._getFocusItems();
g.focus(this._firstFocusItem)},onOpen:function(a){this.orient(this.domNode,a.aroundCorner,a.corner);var b=a.aroundNodePos;"M"==a.corner.charAt(0)&&"M"==a.aroundCorner.charAt(0)?(this.connectorNode.style.top=b.y+(b.h-this.connectorNode.offsetHeight>>1)-a.y+"px",this.connectorNode.style.left=""):"M"==a.corner.charAt(1)&&"M"==a.aroundCorner.charAt(1)&&(this.connectorNode.style.left=b.x+(b.w-this.connectorNode.offsetWidth>>1)-a.x+"px");this._onShow()},onClose:function(){this.onHide()},_onKey:function(a){if(a.keyCode==
k.ESCAPE)this.defer("onCancel"),a.stopPropagation(),a.preventDefault();else if(a.keyCode==k.TAB){var b=a.target;this._getFocusItems();this._firstFocusItem==this._lastFocusItem?(a.stopPropagation(),a.preventDefault()):b==this._firstFocusItem&&a.shiftKey?(g.focus(this._lastFocusItem),a.stopPropagation(),a.preventDefault()):b==this._lastFocusItem&&!a.shiftKey?(g.focus(this._firstFocusItem),a.stopPropagation(),a.preventDefault()):a.stopPropagation()}}});l("dojo-bidi")&&f.extend({_setTitleAttr:function(a){this.containerNode.title=
this.textDir&&this.enforceTextDirWithUcc?this.enforceTextDirWithUcc(null,a):a;this._set("title",a)},_setTextDirAttr:function(a){if(!this._created||this.textDir!=a)this._set("textDir",a),this.textDir&&this.title&&(this.containerNode.title=this.enforceTextDirWithUcc(null,this.title))}});return f})},"dijit/ProgressBar":function(){define("require dojo/_base/declare dojo/dom-class dojo/_base/lang dojo/number ./_Widget ./_TemplatedMixin dojo/text!./templates/ProgressBar.html".split(" "),function(f,m,l,
k,e,c,g,d){return m("dijit.ProgressBar",[c,g],{progress:"0",value:"",maximum:100,places:0,indeterminate:!1,label:"",name:"",templateString:d,_indeterminateHighContrastImagePath:f.toUrl("./themes/a11y/indeterminate_progress.gif"),postMixInProperties:function(){this.inherited(arguments);this.params&&"value"in this.params||(this.value=this.indeterminate?Infinity:this.progress)},buildRendering:function(){this.inherited(arguments);this.indeterminateHighContrastImage.setAttribute("src",this._indeterminateHighContrastImagePath.toString());
this.update()},_setDirAttr:function(b){var a="rtl"==b.toLowerCase();l.toggle(this.domNode,"dijitProgressBarRtl",a);l.toggle(this.domNode,"dijitProgressBarIndeterminateRtl",this.indeterminate&&a);this.inherited(arguments)},update:function(b){k.mixin(this,b||{});b=this.internalProgress;var a=this.domNode,c=1;this.indeterminate?a.removeAttribute("aria-valuenow"):(-1!=String(this.progress).indexOf("%")?(c=Math.min(parseFloat(this.progress)/100,1),this.progress=c*this.maximum):(this.progress=Math.min(this.progress,
this.maximum),c=this.maximum?this.progress/this.maximum:0),a.setAttribute("aria-valuenow",this.progress));a.setAttribute("aria-labelledby",this.labelNode.id);a.setAttribute("aria-valuemin",0);a.setAttribute("aria-valuemax",this.maximum);this.labelNode.innerHTML=this.report(c);l.toggle(this.domNode,"dijitProgressBarIndeterminate",this.indeterminate);l.toggle(this.domNode,"dijitProgressBarIndeterminateRtl",this.indeterminate&&!this.isLeftToRight());b.style.width=100*c+"%";this.onChange()},_setValueAttr:function(b){this._set("value",
b);Infinity==b?this.update({indeterminate:!0}):this.update({indeterminate:!1,progress:b})},_setLabelAttr:function(b){this._set("label",b);this.update()},_setIndeterminateAttr:function(b){this._set("indeterminate",b);this.update()},report:function(b){return this.label?this.label:this.indeterminate?"\x26#160;":e.format(b,{type:"percent",places:this.places,locale:this.lang})},onChange:function(){}})})},"dijit/ConfirmDialog":function(){define(["dojo/_base/declare","./Dialog","./_ConfirmDialogMixin"],
function(f,m,l){return f("dijit.ConfirmDialog",[m,l],{})})},"dijit/_ConfirmDialogMixin":function(){define(["dojo/_base/declare","./_WidgetsInTemplateMixin","dojo/i18n!./nls/common","dojo/text!./templates/actionBar.html","./form/Button"],function(f,m,l,k){return f("dijit._ConfirmDialogMixin",m,{actionBarTemplate:k,buttonOk:l.buttonOk,_setButtonOkAttr:{node:"okButton",attribute:"label"},buttonCancel:l.buttonCancel,_setButtonCancelAttr:{node:"cancelButton",attribute:"label"}})})},"dijit/_editor/plugins/LinkDialog":function(){define("require dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/query dojo/string ../_Plugin ../../form/DropDownButton ../range".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p){var n=m("dijit._editor.plugins.LinkDialog",a,{buttonClass:h,useDefaultCommand:!1,urlRegExp:"((https?|ftps?|file)\\://|./|../|/|)(/[a-zA-Z]{1,1}:/|)(((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)*(?:[a-zA-Z](?:[-\\da-zA-Z]{0,80}[\\da-zA-Z])?)\\.?)|(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])|(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]|(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]|(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])|0[xX]0*[\\da-fA-F]{1,8}|([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}|([\\da-fA-F]{1,4}\\:){6}((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])))(\\:\\d+)?(/(?:[^?#\\s/]+/)*(?:[^?#\\s/]{0,}(?:\\?[^?#\\s/]*)?(?:#.*)?)?)?",
emailRegExp:"\x3c?(mailto\\:)([!#-'*+\\-\\/-9\x3d?A-Z^-~]+[.])*[!#-'*+\\-\\/-9\x3d?A-Z^-~]+@((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)+(?:[a-zA-Z](?:[-\\da-zA-Z]{0,6}[\\da-zA-Z])?)\\.?)|localhost|^[^-][a-zA-Z0-9_-]*\x3e?",htmlTemplate:'\x3ca href\x3d"${urlInput}" _djrealurl\x3d"${urlInput}" target\x3d"${targetSelect}"\x3e${textInput}\x3c/a\x3e',tag:"a",_hostRxp:/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/,_userAtRxp:/^([!#-'*+\-\/-9=?A-Z^-~]+[.])*[!#-'*+\-\/-9=?A-Z^-~]+@/i,
linkDialogTemplate:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_urlInput'\x3e${url}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_urlInput' name\x3d'urlInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_textInput' name\x3d'textInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_targetSelect'\x3e${target}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect id\x3d'${id}_targetSelect' name\x3d'targetSelect' data-dojo-type\x3d'dijit.form.Select'\x3e\x3coption selected\x3d'selected' value\x3d'_self'\x3e${currentWindow}\x3c/option\x3e\x3coption value\x3d'_blank'\x3e${newWindow}\x3c/option\x3e\x3coption value\x3d'_top'\x3e${topWindow}\x3c/option\x3e\x3coption value\x3d'_parent'\x3e${parentWindow}\x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
_initButton:function(){this.inherited(arguments);this.button.loadDropDown=e.hitch(this,"_loadDropDown");this._connectTagEvents()},_loadDropDown:function(a){f("dojo/i18n ../../TooltipDialog ../../registry ../../form/Button ../../form/Select ../../form/ValidationTextBox dojo/i18n!../../nls/common dojo/i18n!../nls/LinkDialog".split(" "),e.hitch(this,function(d,g,h){var f=this;this.tag="insertImage"==this.command?"img":"a";d=e.delegate(d.getLocalization("dijit","common",this.lang),d.getLocalization("dijit._editor",
"LinkDialog",this.lang));var l=this.dropDown=this.button.dropDown=new g({title:d[this.command+"Title"],ownerDocument:this.editor.ownerDocument,dir:this.editor.dir,execute:e.hitch(this,"setValue"),onOpen:function(){f._onOpenDialog();g.prototype.onOpen.apply(this,arguments)},onCancel:function(){setTimeout(e.hitch(f,"_onCloseDialog"),0)}});d.urlRegExp=this.urlRegExp;d.id=h.getUniqueId(this.editor.id);this._uniqueId=d.id;this._setContent(l.title+"\x3cdiv style\x3d'border-bottom: 1px black solid;padding-bottom:2pt;margin-bottom:4pt'\x3e\x3c/div\x3e"+
b.substitute(this.linkDialogTemplate,d));l.startup();this._urlInput=h.byId(this._uniqueId+"_urlInput");this._textInput=h.byId(this._uniqueId+"_textInput");this._setButton=h.byId(this._uniqueId+"_setButton");this.own(h.byId(this._uniqueId+"_cancelButton").on("click",e.hitch(this.dropDown,"onCancel")));this._urlInput&&this.own(this._urlInput.on("change",e.hitch(this,"_checkAndFixInput")));this._textInput&&this.own(this._textInput.on("change",e.hitch(this,"_checkAndFixInput")));this._urlRegExp=RegExp("^"+
this.urlRegExp+"$","i");this._emailRegExp=RegExp("^"+this.emailRegExp+"$","i");this._urlInput.isValid=e.hitch(this,function(){var a=this._urlInput.get("value");return this._urlRegExp.test(a)||this._emailRegExp.test(a)});this.own(c(l.domNode,"keydown",e.hitch(this,e.hitch(this,function(a){a&&(a.keyCode==k.ENTER&&!a.shiftKey&&!a.metaKey&&!a.ctrlKey&&!a.altKey)&&!this._setButton.get("disabled")&&(l.onExecute(),l.execute(l.get("value")))}))));a()}))},_checkAndFixInput:function(){var a=this,b=this._urlInput.get("value");
this._delayedCheck&&(clearTimeout(this._delayedCheck),this._delayedCheck=null);this._delayedCheck=setTimeout(function(){var c=b,d=!1,g=!1;c&&1<c.length&&(c=e.trim(c),0!==c.indexOf("mailto:")&&(0<c.indexOf("/")?-1===c.indexOf("://")&&"/"!==c.charAt(0)&&c.indexOf("./")&&0!==c.indexOf("../")&&a._hostRxp.test(c)&&(d=!0):a._userAtRxp.test(c)&&(g=!0)));d&&a._urlInput.set("value","http://"+c);g&&a._urlInput.set("value","mailto:"+c);a._setButton.set("disabled",!a._isValid())},250)},_connectTagEvents:function(){this.editor.onLoadDeferred.then(e.hitch(this,
function(){this.own(c(this.editor.editNode,"dblclick",e.hitch(this,"_onDblClick")))}))},_isValid:function(){return this._urlInput.isValid()&&this._textInput.isValid()},_setContent:function(a){this.dropDown.set({parserScope:"dojo",content:a})},_checkValues:function(a){a&&a.urlInput&&(a.urlInput=a.urlInput.replace(/"/g,"\x26quot;"));return a},setValue:function(a){this._onCloseDialog();if(9>g("ie")){var c=p.getSelection(this.editor.window).getRangeAt(0).endContainer;3===c.nodeType&&(c=c.parentNode);
c&&(c.nodeName&&c.nodeName.toLowerCase()!==this.tag)&&(c=this.editor.selection.getSelectedElement(this.tag));c&&(c.nodeName&&c.nodeName.toLowerCase()===this.tag)&&this.editor.queryCommandEnabled("unlink")&&(this.editor.selection.selectElementChildren(c),this.editor.execCommand("unlink"))}a=this._checkValues(a);this.editor.execCommand("inserthtml",b.substitute(this.htmlTemplate,a));d("a",this.editor.document).forEach(function(a){!a.innerHTML&&!l.has(a,"name")&&a.parentNode.removeChild(a)},this)},_onCloseDialog:function(){this.editor.focused&&
this.editor.focus()},_getCurrentValues:function(a){var b,c,d;a&&a.tagName.toLowerCase()===this.tag?(b=a.getAttribute("_djrealurl")||a.getAttribute("href"),d=a.getAttribute("target")||"_self",c=a.textContent||a.innerText,this.editor.selection.selectElement(a,!0)):c=this.editor.selection.getSelectedText();return{urlInput:b||"",textInput:c||"",targetSelect:d||""}},_onOpenDialog:function(){var a,b;if(g("ie")){if(b=p.getSelection(this.editor.window),b.rangeCount){var c=b.getRangeAt(0);a=c.endContainer;
3===a.nodeType&&(a=a.parentNode);a&&(a.nodeName&&a.nodeName.toLowerCase()!==this.tag)&&(a=this.editor.selection.getSelectedElement(this.tag));if(!a||a.nodeName&&a.nodeName.toLowerCase()!==this.tag)if((b=this.editor.selection.getAncestorElement(this.tag))&&b.nodeName&&b.nodeName.toLowerCase()==this.tag)a=b,this.editor.selection.selectElement(a);else if(c.startContainer===c.endContainer&&(b=c.startContainer.firstChild)&&b.nodeName&&b.nodeName.toLowerCase()==this.tag)a=b,this.editor.selection.selectElement(a)}}else a=
this.editor.selection.getAncestorElement(this.tag);this.dropDown.reset();this._setButton.set("disabled",!0);this.dropDown.set("value",this._getCurrentValues(a))},_onDblClick:function(a){if(a&&a.target&&(a=a.target,(a.tagName?a.tagName.toLowerCase():"")===this.tag&&l.get(a,"href"))){var b=this.editor;this.editor.selection.selectElement(a);b.onDisplayChanged();b._updateTimer&&(b._updateTimer.remove(),delete b._updateTimer);b.onNormalizedDisplayChanged();var c=this.button;setTimeout(function(){c.set("disabled",
!1);c.loadAndOpenDropDown().then(function(){c.dropDown.focus&&c.dropDown.focus()})},10)}}}),t=m("dijit._editor.plugins.ImgLinkDialog",[n],{linkDialogTemplate:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_urlInput'\x3e${url}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' regExp\x3d'${urlRegExp}' required\x3d'true' id\x3d'${id}_urlInput' name\x3d'urlInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'false' id\x3d'${id}_textInput' name\x3d'textInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
htmlTemplate:'\x3cimg src\x3d"${urlInput}" _djrealurl\x3d"${urlInput}" alt\x3d"${textInput}" /\x3e',tag:"img",_getCurrentValues:function(a){var b,c;a&&a.tagName.toLowerCase()===this.tag?(b=a.getAttribute("_djrealurl")||a.getAttribute("src"),c=a.getAttribute("alt"),this.editor.selection.selectElement(a,!0)):c=this.editor.selection.getSelectedText();return{urlInput:b||"",textInput:c||""}},_isValid:function(){return this._urlInput.isValid()},_connectTagEvents:function(){this.inherited(arguments);this.editor.onLoadDeferred.then(e.hitch(this,
function(){this.own(c(this.editor.editNode,"mousedown",e.hitch(this,"_selectTag")))}))},_selectTag:function(a){a&&a.target&&(a=a.target,(a.tagName?a.tagName.toLowerCase():"")===this.tag&&this.editor.selection.selectElement(a))},_checkValues:function(a){a&&a.urlInput&&(a.urlInput=a.urlInput.replace(/"/g,"\x26quot;"));a&&a.textInput&&(a.textInput=a.textInput.replace(/"/g,"\x26quot;"));return a},_onDblClick:function(a){if(a&&a.target&&(a=a.target,(a.tagName?a.tagName.toLowerCase():"")===this.tag&&l.get(a,
"src"))){var b=this.editor;this.editor.selection.selectElement(a);b.onDisplayChanged();b._updateTimer&&(b._updateTimer.remove(),delete b._updateTimer);b.onNormalizedDisplayChanged();var c=this.button;setTimeout(function(){c.set("disabled",!1);c.loadAndOpenDropDown().then(function(){c.dropDown.focus&&c.dropDown.focus()})},10)}}});a.registry.createLink=function(){return new n({command:"createLink"})};a.registry.insertImage=function(){return new t({command:"insertImage"})};n.ImgLinkDialog=t;return n})},
"dijit/_editor/plugins/FontChoice":function(){define("require dojo/_base/array dojo/_base/declare dojo/dom-construct dojo/i18n dojo/_base/lang dojo/store/Memory ../../registry ../../_Widget ../../_TemplatedMixin ../../_WidgetsInTemplateMixin ../../form/FilteringSelect ../_Plugin ../range dojo/i18n!../nls/FontChoice".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p,n,t){f=l("dijit._editor.plugins._FontDropDown",[b,a,h],{label:"",plainText:!1,templateString:"\x3cspan style\x3d'white-space: nowrap' class\x3d'dijit dijitReset dijitInline'\x3e\x3clabel class\x3d'dijitLeft dijitInline' for\x3d'${selectId}'\x3e${label}\x3c/label\x3e\x3cinput data-dojo-type\x3d'../../form/FilteringSelect' required\x3d'false' data-dojo-props\x3d'labelType:\"html\", labelAttr:\"label\", searchAttr:\"name\"' class\x3d'${comboClass}' tabIndex\x3d'-1' id\x3d'${selectId}' data-dojo-attach-point\x3d'select' value\x3d''/\x3e\x3c/span\x3e",
contextRequire:f,postMixInProperties:function(){this.inherited(arguments);this.strings=e.getLocalization("dijit._editor","FontChoice");this.label=this.strings[this.command];this.id=d.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.selectId=this.id+"_select";this.inherited(arguments)},postCreate:function(){this.select.set("store",new g({idProperty:"value",data:m.map(this.values,function(a){var b=this.strings[a]||a;return{label:this.getLabel(a,b),name:b,value:a}},this)}));this.select.set("value",
"",!1);this.disabled=this.select.get("disabled")},_setValueAttr:function(a,b){b=!1!==b;this.select.set("value",0>m.indexOf(this.values,a)?"":a,b);b||(this.select._lastValueReported=null)},_getValueAttr:function(){return this.select.get("value")},focus:function(){this.select.focus()},_setDisabledAttr:function(a){this._set("disabled",a);this.select.set("disabled",a)}});var q=l("dijit._editor.plugins._FontNameDropDown",f,{generic:!1,command:"fontName",comboClass:"dijitFontNameCombo",postMixInProperties:function(){this.values||
(this.values=this.generic?["serif","sans-serif","monospace","cursive","fantasy"]:["Arial","Times New Roman","Comic Sans MS","Courier New"]);this.inherited(arguments)},getLabel:function(a,b){return this.plainText?b:"\x3cdiv style\x3d'font-family: "+a+"'\x3e"+b+"\x3c/div\x3e"},_setValueAttr:function(a,b){this.generic&&(a={Arial:"sans-serif",Helvetica:"sans-serif",Myriad:"sans-serif",Times:"serif","Times New Roman":"serif","Comic Sans MS":"cursive","Apple Chancery":"cursive",Courier:"monospace","Courier New":"monospace",
Papyrus:"fantasy","Estrangelo Edessa":"cursive",Gabriola:"fantasy"}[a]||a);this.inherited(arguments,[a,!1!==b])}}),s=l("dijit._editor.plugins._FontSizeDropDown",f,{command:"fontSize",comboClass:"dijitFontSizeCombo",values:[1,2,3,4,5,6,7],getLabel:function(a,b){return this.plainText?b:"\x3cfont size\x3d"+a+"'\x3e"+b+"\x3c/font\x3e"},_setValueAttr:function(a,b){b=!1!==b;a.indexOf&&-1!=a.indexOf("px")&&(a={10:1,13:2,16:3,18:4,24:5,32:6,48:7}[parseInt(a,10)]||a);this.inherited(arguments,[a,b])}}),r=l("dijit._editor.plugins._FormatBlockDropDown",
f,{command:"formatBlock",comboClass:"dijitFormatBlockCombo",values:"noFormat p h1 h2 h3 pre".split(" "),postCreate:function(){this.inherited(arguments);this.set("value","noFormat",!1)},getLabel:function(a,b){return this.plainText||"noFormat"==a?b:"\x3c"+a+"\x3e"+b+"\x3c/"+a+"\x3e"},_execCommand:function(a,b,d){if("noFormat"===d){var e;if((b=t.getSelection(a.window))&&0<b.rangeCount){d=b.getRangeAt(0);var g;if(d){b=d.startContainer;for(e=d.endContainer;b&&b!==a.editNode&&b!==a.document.body&&1!==b.nodeType;)b=
b.parentNode;for(;e&&e!==a.editNode&&e!==a.document.body&&1!==e.nodeType;)e=e.parentNode;var h=c.hitch(this,function(b,c){if(b.childNodes&&b.childNodes.length){var d;for(d=0;d<b.childNodes.length;d++){var e=b.childNodes[d];if(1==e.nodeType&&a.selection.inSelection(e)){var g=e.tagName?e.tagName.toLowerCase():"";-1!==m.indexOf(this.values,g)&&c.push(e);h(e,c)}}}});d=c.hitch(this,function(b){if(b&&b.length){for(a.beginEditing();b.length;)this._removeFormat(a,b.pop());a.endEditing()}});var f=[];if(b==
e){var k;for(e=b;e&&e!==a.editNode&&e!==a.document.body;){if(1==e.nodeType&&(g=e.tagName?e.tagName.toLowerCase():"",-1!==m.indexOf(this.values,g))){k=e;break}e=e.parentNode}h(b,f);k&&(f=[k].concat(f))}else for(e=b;a.selection.inSelection(e);)1==e.nodeType&&(g=e.tagName?e.tagName.toLowerCase():"",-1!==m.indexOf(this.values,g)&&f.push(e),h(e,f)),e=e.nextSibling;d(f);a.onDisplayChanged()}}}else a.execCommand(b,d)},_removeFormat:function(a,b){if(a.customUndo){for(;b.firstChild;)k.place(b.firstChild,b,
"before");b.parentNode.removeChild(b)}else{a.selection.selectElementChildren(b);var c=a.selection.getSelectedHtml();a.selection.selectElement(b);a.execCommand("inserthtml",c||"")}}}),w=l("dijit._editor.plugins.FontChoice",n,{useDefaultCommand:!1,_initButton:function(){var a={fontName:q,fontSize:s,formatBlock:r}[this.command],b=this.params;this.params.custom&&(b.values=this.params.custom);var d=this.editor;this.button=new a(c.delegate({dir:d.dir,lang:d.lang},b));this.own(this.button.select.on("change",
c.hitch(this,function(a){this.editor.focused&&this.editor.focus();"fontName"==this.command&&-1!=a.indexOf(" ")&&(a="'"+a+"'");this.button._execCommand?this.button._execCommand(this.editor,this.command,a):this.editor.execCommand(this.command,a)})))},updateState:function(){var a=this.editor,b=this.command;if(a&&(a.isLoaded&&b.length)&&this.button){var d=this.get("disabled");this.button.set("disabled",d);if(!d){var e;try{e=a.queryCommandValue(b)||""}catch(g){e=""}(d=c.isString(e)&&(e.match(/'([^']*)'/)||
e.match(/"([^"]*)"/)))&&(e=d[1]);if("formatBlock"===b)if(!e||"p"==e){e=null;var h;if((b=t.getSelection(this.editor.window))&&0<b.rangeCount)if(b=b.getRangeAt(0))h=b.endContainer;for(;h&&h!==a.editNode&&h!==a.document;){if((b=h.tagName?h.tagName.toLowerCase():"")&&-1<m.indexOf(this.button.values,b)){e=b;break}h=h.parentNode}e||(e="noFormat")}else 0>m.indexOf(this.button.values,e)&&(e="noFormat");e!==this.button.get("value")&&this.button.set("value",e,!1)}}}});m.forEach(["fontName","fontSize","formatBlock"],
function(a){n.registry[a]=function(b){return new w({command:a,plainText:b.plainText})}});w._FontDropDown=f;w._FontNameDropDown=q;w._FontSizeDropDown=s;w._FormatBlockDropDown=r;return w})},"dijit/form/FilteringSelect":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/when","./MappedTextBox","./ComboBoxMixin"],function(f,m,l,k,e){return f("dijit.form.FilteringSelect",[k,e],{required:!0,_lastDisplayedValue:"",_isValidSubset:function(){return this._opened},isValid:function(){return!!this.item||
!this.required&&""==this.get("displayedValue")},_refreshState:function(){this.searchTimer||this.inherited(arguments)},_callbackSetLabel:function(c,e,d,b){e&&e[this.searchAttr]!==this._lastQuery||!e&&c.length&&this.store.getIdentity(c[0])!=this._lastQuery||(c.length?this.set("item",c[0],b):this.set("value","",b||void 0===b&&!this.focused,this.textbox.value,null))},_openResultList:function(c,e,d){e[this.searchAttr]===this._lastQuery&&(this.inherited(arguments),void 0===this.item&&this.validate(!0))},
_getValueAttr:function(){return this.valueNode.value},_getValueField:function(){return"value"},_setValueAttr:function(c,e,d,b){this._onChangeActive||(e=null);if(void 0===b){if(null===c||""===c)if(c="",!m.isString(d)){this._setDisplayedValueAttr(d||"",e);return}var a=this;this._lastQuery=c;l(this.store.get(c),function(b){a._callbackSetLabel(b?[b]:[],void 0,void 0,e)})}else this.valueNode.value=c,this.inherited(arguments,[c,e,d,b])},_setItemAttr:function(c,e,d){this.inherited(arguments);this._lastDisplayedValue=
this.textbox.value},_getDisplayQueryString:function(c){return c.replace(/([\\\*\?])/g,"\\$1")},_setDisplayedValueAttr:function(c,e){null==c&&(c="");if(!this._created){if(!("displayedValue"in this.params))return;e=!1}if(this.store){this.closeDropDown();var d=m.clone(this.query),b=this._getDisplayQueryString(c),a;this.store._oldAPI?a=b:(a=this._patternToRegExp(b),a.toString=function(){return b});this._lastQuery=d[this.searchAttr]=a;this._lastDisplayedValue=this.textbox.value=c;this._set("displayedValue",
c);var h=this,f={queryOptions:{ignoreCase:this.ignoreCase,deep:!0}};m.mixin(f,this.fetchProperties);this._fetchHandle=this.store.query(d,f);l(this._fetchHandle,function(a){h._fetchHandle=null;h._callbackSetLabel(a||[],d,f,e)},function(a){h._fetchHandle=null;h._cancelingQuery||console.error("dijit.form.FilteringSelect: "+a.toString())})}},undo:function(){this.set("displayedValue",this._lastDisplayedValue)}})})},"dijit/_editor/plugins/TextColor":function(){define("require dojo/colors dojo/_base/declare dojo/_base/lang ../_Plugin ../../form/DropDownButton".split(" "),
function(f,m,l,k,e,c){var g=l("dijit._editor.plugins.TextColor",e,{buttonClass:c,colorPicker:"dijit/ColorPalette",useDefaultCommand:!1,_initButton:function(){this.command=this.name;this.inherited(arguments);var c=this;this.button.loadDropDown=function(b){function a(a){c.button.dropDown=new a({dir:c.editor.dir,ownerDocument:c.editor.ownerDocument,value:c.value,onChange:function(a){c.editor.execCommand(c.command,a)},onExecute:function(){c.editor.execCommand(c.command,this.get("value"))}});b()}"string"==
typeof c.colorPicker?f([c.colorPicker],a):a(c.colorPicker)}},updateState:function(){var c=this.editor,b=this.command;if(c&&c.isLoaded&&b.length){if(this.button){var a=this.get("disabled");this.button.set("disabled",a);if(a)return;var e;try{e=c.queryCommandValue(b)||""}catch(g){e=""}}""==e&&(e="#000000");"transparent"==e&&(e="#ffffff");"string"==typeof e?-1<e.indexOf("rgb")&&(e=m.fromRgb(e).toHex()):(e=((e&255)<<16|e&65280|(e&16711680)>>>16).toString(16),e="#000000".slice(0,7-e.length)+e);this.value=
e;(c=this.button.dropDown)&&(c.get&&e!==c.get("value"))&&c.set("value",e,!1)}}});e.registry.foreColor=function(c){return new g(c)};e.registry.hiliteColor=function(c){return new g(c)};return g})},"dojo/colors":function(){define(["./_base/kernel","./_base/lang","./_base/Color","./_base/array"],function(f,m,l,k){var e={};m.setObject("dojo.colors",e);var c=function(c,b,a){0>a&&++a;1<a&&--a;var e=6*a;return 1>e?c+(b-c)*e:1>2*a?b:2>3*a?c+6*(b-c)*(2/3-a):c};f.colorFromRgb=l.fromRgb=function(d,b){var a=d.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);
if(a){var e=a[2].split(/\s*,\s*/),g=e.length,a=a[1];if("rgb"==a&&3==g||"rgba"==a&&4==g)return a=e[0],"%"==a.charAt(a.length-1)?(a=k.map(e,function(a){return 2.56*parseFloat(a)}),4==g&&(a[3]=e[3]),l.fromArray(a,b)):l.fromArray(e,b);if("hsl"==a&&3==g||"hsla"==a&&4==g){var a=(parseFloat(e[0])%360+360)%360/360,f=parseFloat(e[1])/100,m=parseFloat(e[2])/100,f=0.5>=m?m*(f+1):m+f-m*f,m=2*m-f,a=[256*c(m,f,a+1/3),256*c(m,f,a),256*c(m,f,a-1/3),1];4==g&&(a[3]=e[3]);return l.fromArray(a,b)}}return null};var g=
function(c,b,a){c=Number(c);return isNaN(c)?a:c<b?b:c>a?a:c};l.prototype.sanitize=function(){this.r=Math.round(g(this.r,0,255));this.g=Math.round(g(this.g,0,255));this.b=Math.round(g(this.b,0,255));this.a=g(this.a,0,1);return this};e.makeGrey=l.makeGrey=function(c,b){return l.fromArray([c,c,c,b])};m.mixin(l.named,{aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,
226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,
150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],
hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,
136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],
navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,
87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});return l})},"dijit/_editor/plugins/FullScreen":function(){define("dojo/aspect dojo/_base/declare dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/i18n dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/_base/window dojo/window ../../focus ../_Plugin ../../form/ToggleButton ../../registry dojo/i18n!../nls/commands".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s){var r=m("dijit._editor.plugins.FullScreen",t,{zIndex:500,_origState:null,_origiFrameState:null,_resizeHandle:null,isFullscreen:!1,toggle:function(){this.button.set("checked",!this.button.get("checked"))},_initButton:function(){var a=c.getLocalization("dijit._editor","commands"),b=this.editor;this.button=new q({label:a.fullScreen,ownerDocument:b.ownerDocument,dir:b.dir,lang:b.lang,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"FullScreen",
tabIndex:"-1",onChange:d.hitch(this,"_setFullScreen")})},setEditor:function(a){this.editor=a;this._initButton();this.editor.addKeyHandler(g.F11,!0,!0,d.hitch(this,function(a){this.toggle();a.stopPropagation();a.preventDefault();this.editor.defer("focus",250);return!0}));this.own(b(this.editor.domNode,"keydown",d.hitch(this,"_containFocus")))},_containFocus:function(a){if(this.isFullscreen){var b=this.editor;if(!b.isTabIndent&&b._fullscreen_oldOnKeyDown&&a.keyCode===g.TAB){a=n.curNode;var c=this._getAltViewNode();
a==b.iframe||c&&a===c?setTimeout(d.hitch(this,function(){b.toolbar.focus()}),10):c&&"none"===e.get(b.iframe,"display")?setTimeout(d.hitch(this,function(){n.focus(c)}),10):setTimeout(d.hitch(this,function(){b.focus()}),10);event.stopPropagation();event.preventDefault()}else b._fullscreen_oldOnKeyDown&&b._fullscreen_oldOnKeyDown(a)}},_resizeEditor:function(){var a=p.getBox(this.editor.ownerDocument);k.setMarginBox(this.editor.domNode,{w:a.w,h:a.h});var b=this.editor.getHeaderHeight(),c=this.editor.getFooterHeight(),
d=k.getPadBorderExtents(this.editor.domNode),e=k.getPadBorderExtents(this.editor.iframe.parentNode),g=k.getMarginExtents(this.editor.iframe.parentNode),b=a.h-(b+d.h+c);k.setMarginBox(this.editor.iframe.parentNode,{h:b,w:a.w});k.setMarginBox(this.editor.iframe,{h:b-(e.h+g.h)})},_getAltViewNode:function(){},_setFullScreen:function(c){var g=this.editor,h=g.ownerDocumentBody,n=g.domNode.parentNode,m=p.getBox(g.ownerDocument);if(this.isFullscreen=c){for(;n&&n!==h;)l.add(n,"dijitForceStatic"),n=n.parentNode;
this._editorResizeHolder=this.editor.resize;g.resize=function(){};g._fullscreen_oldOnKeyDown=g.onKeyDown;g.onKeyDown=d.hitch(this,this._containFocus);this._origState={};this._origiFrameState={};n=(c=g.domNode)&&c.style||{};this._origState={width:n.width||"",height:n.height||"",top:e.get(c,"top")||"",left:e.get(c,"left")||"",position:e.get(c,"position")||"static",marginBox:k.getMarginBox(g.domNode)};c=(c=g.iframe)&&c.style||{};n=e.get(g.iframe,"backgroundColor");this._origiFrameState={backgroundColor:n||
"transparent",width:c.width||"auto",height:c.height||"auto",zIndex:c.zIndex||""};e.set(g.domNode,{position:"absolute",top:"0px",left:"0px",zIndex:this.zIndex,width:m.w+"px",height:m.h+"px"});e.set(g.iframe,{height:"100%",width:"100%",zIndex:this.zIndex,backgroundColor:"transparent"!==n&&"rgba(0, 0, 0, 0)"!==n?n:"white"});e.set(g.iframe.parentNode,{height:"95%",width:"100%"});this._oldOverflow=h.style&&h.style.overflow?e.get(h,"overflow"):"";if(a("ie")&&!a("quirks")){if(h.parentNode&&h.parentNode.style&&
h.parentNode.style.overflow)this._oldBodyParentOverflow=h.parentNode.style.overflow;else try{this._oldBodyParentOverflow=e.get(h.parentNode,"overflow")}catch(q){this._oldBodyParentOverflow="scroll"}e.set(h.parentNode,"overflow","hidden")}e.set(h,"overflow","hidden");this._resizeHandle=b(window,"resize",d.hitch(this,function(){var a=p.getBox(g.ownerDocument);if("_prevW"in this&&"_prevH"in this){if(a.w===this._prevW&&a.h===this._prevH)return}else this._prevW=a.w,this._prevH=a.h;this._resizer&&(clearTimeout(this._resizer),
delete this._resizer);this._resizer=setTimeout(d.hitch(this,function(){delete this._resizer;this._resizeEditor()}),10)}));this._resizeHandle2=f.after(g,"onResize",d.hitch(this,function(){this._resizer&&(clearTimeout(this._resizer),delete this._resizer);this._resizer=setTimeout(d.hitch(this,function(){delete this._resizer;this._resizeEditor()}),10)}));this._resizeEditor();var r=this.editor.toolbar.domNode;setTimeout(function(){p.scrollIntoView(r)},250)}else{this._resizeHandle&&(this._resizeHandle.remove(),
this._resizeHandle=null);this._resizeHandle2&&(this._resizeHandle2.remove(),this._resizeHandle2=null);this._rst&&(clearTimeout(this._rst),this._rst=null);for(;n&&n!==h;)l.remove(n,"dijitForceStatic"),n=n.parentNode;this._editorResizeHolder&&(this.editor.resize=this._editorResizeHolder);if(this._origState||this._origiFrameState){g._fullscreen_oldOnKeyDown&&(g.onKeyDown=g._fullscreen_oldOnKeyDown,delete g._fullscreen_oldOnKeyDown);var t=this;setTimeout(function(){var b=t._origState.marginBox,c=t._origState.height;
a("ie")&&!a("quirks")&&(h.parentNode.style.overflow=t._oldBodyParentOverflow,delete t._oldBodyParentOverflow);e.set(h,"overflow",t._oldOverflow);delete t._oldOverflow;e.set(g.domNode,t._origState);e.set(g.iframe.parentNode,{height:"",width:""});e.set(g.iframe,t._origiFrameState);delete t._origState;delete t._origiFrameState;var f=s.getEnclosingWidget(g.domNode.parentNode);f&&f.resize?f.resize():(!c||0>c.indexOf("%"))&&setTimeout(d.hitch(this,function(){g.resize({h:b.h})}),0);p.scrollIntoView(t.editor.toolbar.domNode)},
100)}}},updateState:function(){this.button.set("disabled",this.get("disabled"))},destroy:function(){this._resizeHandle&&(this._resizeHandle.remove(),this._resizeHandle=null);this._resizeHandle2&&(this._resizeHandle2.remove(),this._resizeHandle2=null);this._resizer&&(clearTimeout(this._resizer),this._resizer=null);this.inherited(arguments)}});t.registry.fullScreen=t.registry.fullscreen=function(a){return new r({zIndex:"zIndex"in a?a.zIndex:500})};return r})},"dijit/_editor/plugins/ViewSource":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/i18n dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/window ../../focus ../_Plugin ../../form/ToggleButton ../.. ../../registry dojo/i18n!../nls/commands".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r,w){var u=l("dijit._editor.plugins.ViewSource",q,{stripScripts:!0,stripComments:!0,stripIFrames:!0,readOnly:!1,_fsPlugin:null,toggle:function(){p("webkit")&&(this._vsFocused=!0);this.button.set("checked",!this.button.get("checked"))},_initButton:function(){var b=d.getLocalization("dijit._editor","commands"),c=this.editor;this.button=new s({label:b.viewSource,ownerDocument:c.ownerDocument,dir:c.dir,lang:c.lang,showLabel:!1,iconClass:this.iconClassPrefix+" "+
this.iconClassPrefix+"ViewSource",tabIndex:"-1",onChange:a.hitch(this,"_showSource")});this.button.set("readOnly",!1)},setEditor:function(c){this.editor=c;this._initButton();this.editor.addKeyHandler(b.F12,!0,!0,a.hitch(this,function(b){this.button.focus();this.toggle();b.stopPropagation();b.preventDefault();setTimeout(a.hitch(this,function(){this.editor.focused&&this.editor.focus()}),100)}))},_showSource:function(b){var c=this.editor,d=c._plugins,e;this._sourceShown=b;var k=this;try{this.sourceArea||
this._createSourceView();if(b)c._sourceQueryCommandEnabled=c.queryCommandEnabled,c.queryCommandEnabled=function(a){return"viewsource"===a.toLowerCase()},this.editor.onDisplayChanged(),e=c.get("value"),e=this._filter(e),c.set("value",e),f.forEach(d,function(a){a&&(!(a instanceof u)&&a.isInstanceOf(q))&&a.set("disabled",!0)}),this._fsPlugin&&(this._fsPlugin._getAltViewNode=function(){return k.sourceArea}),this.sourceArea.value=e,this.sourceArea.style.height=c.iframe.style.height,this.sourceArea.style.width=
c.iframe.style.width,c.iframe.parentNode.style.position="relative",g.set(c.iframe,{position:"absolute",top:0,visibility:"hidden"}),g.set(this.sourceArea,{display:"block"}),this._resizeHandle=h(window,"resize",a.hitch(this,function(){var b=n.getBox(c.ownerDocument);if(!("_prevW"in this&&"_prevH"in this)||!(b.w===this._prevW&&b.h===this._prevH))this._prevW=b.w,this._prevH=b.h,this._resizer&&(clearTimeout(this._resizer),delete this._resizer),this._resizer=setTimeout(a.hitch(this,function(){delete this._resizer;
this._resize()}),10)})),setTimeout(a.hitch(this,this._resize),100),this.editor.onNormalizedDisplayChanged(),this.editor.__oldGetValue=this.editor.getValue,this.editor.getValue=a.hitch(this,function(){var a=this.sourceArea.value;return a=this._filter(a)}),this._setListener=m.after(this.editor,"setValue",a.hitch(this,function(a){a=this._filter(a||"");this.sourceArea.value=a}),!0);else{if(!c._sourceQueryCommandEnabled)return;this._setListener.remove();delete this._setListener;this._resizeHandle.remove();
delete this._resizeHandle;this.editor.__oldGetValue&&(this.editor.getValue=this.editor.__oldGetValue,delete this.editor.__oldGetValue);c.queryCommandEnabled=c._sourceQueryCommandEnabled;this._readOnly||(e=this.sourceArea.value,e=this._filter(e),c.beginEditing(),c.set("value",e),c.endEditing());f.forEach(d,function(a){a&&a.isInstanceOf(q)&&a.set("disabled",!1)});g.set(this.sourceArea,"display","none");g.set(c.iframe,{position:"relative",visibility:"visible"});delete c._sourceQueryCommandEnabled;this.editor.onDisplayChanged()}setTimeout(a.hitch(this,
function(){var a=c.domNode.parentNode;a&&(a=w.getEnclosingWidget(a))&&a.resize&&a.resize();c.resize()}),300)}catch(l){}},updateState:function(){this.button.set("disabled",this.get("disabled"))},_resize:function(){var a=this.editor,b=a.getHeaderHeight(),d=a.getFooterHeight(),e=c.position(a.domNode),g=c.getPadBorderExtents(a.iframe.parentNode),f=c.getMarginExtents(a.iframe.parentNode),h=c.getPadBorderExtents(a.domNode),k=e.w-h.w,e=e.h-(b+h.h+d);this._fsPlugin&&this._fsPlugin.isFullscreen&&(a=n.getBox(a.ownerDocument),
k=a.w-h.w,e=a.h-(b+h.h+d));c.setMarginBox(this.sourceArea,{w:Math.round(k-(g.w+f.w)),h:Math.round(e-(g.h+f.h))})},_createSourceView:function(){var c=this.editor,d=c._plugins;this.sourceArea=e.create("textarea");this.readOnly&&(k.set(this.sourceArea,"readOnly",!0),this._readOnly=!0);g.set(this.sourceArea,{padding:"0px",margin:"0px",borderWidth:"0px",borderStyle:"none"});k.set(this.sourceArea,"aria-label",this.editor.id);e.place(this.sourceArea,c.iframe,"before");p("ie")&&c.iframe.parentNode.lastChild!==
c.iframe&&g.set(c.iframe.parentNode.lastChild,{width:"0px",height:"0px",padding:"0px",margin:"0px",borderWidth:"0px",borderStyle:"none"});c._viewsource_oldFocus=c.focus;var f=this;c.focus=function(){if(f._sourceShown)f.setSourceAreaCaret();else try{this._vsFocused?(delete this._vsFocused,t.focus(c.editNode)):c._viewsource_oldFocus()}catch(a){}};var l,n;for(l=0;l<d.length;l++)if((n=d[l])&&("dijit._editor.plugins.FullScreen"===n.declaredClass||n.declaredClass===r._scopeName+"._editor.plugins.FullScreen")){this._fsPlugin=
n;break}this._fsPlugin&&(this._fsPlugin._viewsource_getAltViewNode=this._fsPlugin._getAltViewNode,this._fsPlugin._getAltViewNode=function(){return f._sourceShown?f.sourceArea:this._viewsource_getAltViewNode()});this.own(h(this.sourceArea,"keydown",a.hitch(this,function(d){this._sourceShown&&(d.keyCode==b.F12&&d.ctrlKey&&d.shiftKey)&&(this.button.focus(),this.button.set("checked",!1),setTimeout(a.hitch(this,function(){c.focus()}),100),d.stopPropagation(),d.preventDefault())})))},_stripScripts:function(a){a&&
(a=a.replace(/<\s*script[^>]*>((.|\s)*?)<\\?\/\s*script\s*>/ig,""),a=a.replace(/<\s*script\b([^<>]|\s)*>?/ig,""),a=a.replace(/<[^>]*=(\s|)*[("|')]javascript:[^$1][(\s|.)]*[$1][^>]*>/ig,""));return a},_stripComments:function(a){a&&(a=a.replace(/\x3c!--(.|\s){1,}?--\x3e/g,""));return a},_stripIFrames:function(a){a&&(a=a.replace(/<\s*iframe[^>]*>((.|\s)*?)<\\?\/\s*iframe\s*>/ig,""));return a},_filter:function(a){a&&(this.stripScripts&&(a=this._stripScripts(a)),this.stripComments&&(a=this._stripComments(a)),
this.stripIFrames&&(a=this._stripIFrames(a)));return a},setSourceAreaCaret:function(){var a=this.sourceArea;t.focus(a);this._sourceShown&&!this.readOnly&&(a.setSelectionRange?a.setSelectionRange(0,0):this.sourceArea.createTextRange&&(a=a.createTextRange(),a.collapse(!0),a.moveStart("character",-99999),a.moveStart("character",0),a.moveEnd("character",0),a.select()))},destroy:function(){this._resizer&&(clearTimeout(this._resizer),delete this._resizer);this._resizeHandle&&(this._resizeHandle.remove(),
delete this._resizeHandle);this._setListener&&(this._setListener.remove(),delete this._setListener);this.inherited(arguments)}});q.registry.viewSource=q.registry.viewsource=function(a){return new u({readOnly:"readOnly"in a?a.readOnly:!1,stripComments:"stripComments"in a?a.stripComments:!0,stripScripts:"stripScripts"in a?a.stripScripts:!0,stripIFrames:"stripIFrames"in a?a.stripIFrames:!0})};return u})},"dojox/editor/plugins/InsertEntity":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/TooltipDialog dijit/form/DropDownButton dojo/_base/connect dojo/_base/declare dojo/i18n dojox/html/entities dojox/editor/plugins/EntityPalette dojo/i18n!dojox/editor/plugins/nls/InsertEntity".split(" "),
function(f,m,l,k){var e=f.declare("dojox.editor.plugins.InsertEntity",k,{iconClassPrefix:"dijitAdditionalEditorIcon",_initButton:function(){this.dropDown=new l.editor.plugins.EntityPalette({showCode:this.showCode,showEntityName:this.showEntityName});this.connect(this.dropDown,"onChange",function(c){this.button.closeDropDown();this.editor.focus();this.editor.execCommand("inserthtml",c)});var c=f.i18n.getLocalization("dojox.editor.plugins","InsertEntity");this.button=new m.form.DropDownButton({label:c.insertEntity,
showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"InsertEntity",tabIndex:"-1",dropDown:this.dropDown})},updateState:function(){this.button.set("disabled",this.get("disabled"))},setEditor:function(c){this.editor=c;this._initButton();this.editor.addKeyHandler("s",!0,!0,f.hitch(this,function(){this.button.openDropDown();this.dropDown.focus()}));c.contentPreFilters.push(this._preFilterEntities);c.contentPostFilters.push(this._postFilterEntities)},_preFilterEntities:function(c){return l.html.entities.decode(c,
l.html.entities.latin)},_postFilterEntities:function(c){return l.html.entities.encode(c,l.html.entities.latin)}});f.subscribe(m._scopeName+".Editor.getPlugin",null,function(c){if(!c.plugin&&"insertentity"===(c.args.name?c.args.name.toLowerCase():""))c.plugin=new e({showCode:"showCode"in c.args?c.args.showCode:!1,showEntityName:"showEntityName"in c.args?c.args.showEntityName:!1})});return e})},"dojox/html/entities":function(){define(["dojo/_base/lang"],function(f){var m=f.getObject("dojox.html.entities",
!0),l=function(e,c){var g,d;if(c._encCache&&c._encCache.regexp&&c._encCache.mapper&&c.length==c._encCache.length)g=c._encCache.mapper,d=c._encCache.regexp;else{g={};d=["["];var b;for(b=0;b<c.length;b++)g[c[b][0]]="\x26"+c[b][1]+";",d.push(c[b][0]);d.push("]");d=RegExp(d.join(""),"g");c._encCache={mapper:g,regexp:d,length:c.length}}return e=e.replace(d,function(a){return g[a]})},k=function(e,c){var g,d;if(c._decCache&&c._decCache.regexp&&c._decCache.mapper&&c.length==c._decCache.length)g=c._decCache.mapper,
d=c._decCache.regexp;else{g={};d=["("];var b;for(b=0;b<c.length;b++){var a="\x26"+c[b][1]+";";b&&d.push("|");g[a]=c[b][0];d.push(a)}d.push(")");d=RegExp(d.join(""),"g");c._decCache={mapper:g,regexp:d,length:c.length}}return e=e.replace(d,function(a){return g[a]})};m.html=[["\x26","amp"],['"',"quot"],["\x3c","lt"],["\x3e","gt"],["\u00a0","nbsp"]];m.latin=[["\u00a1","iexcl"],["\u00a2","cent"],["\u00a3","pound"],["\u20ac","euro"],["\u00a4","curren"],["\u00a5","yen"],["\u00a6","brvbar"],["\u00a7","sect"],
["\u00a8","uml"],["\u00a9","copy"],["\u00aa","ordf"],["\u00ab","laquo"],["\u00ac","not"],["\u00ad","shy"],["\u00ae","reg"],["\u00af","macr"],["\u00b0","deg"],["\u00b1","plusmn"],["\u00b2","sup2"],["\u00b3","sup3"],["\u00b4","acute"],["\u00b5","micro"],["\u00b6","para"],["\u00b7","middot"],["\u00b8","cedil"],["\u00b9","sup1"],["\u00ba","ordm"],["\u00bb","raquo"],["\u00bc","frac14"],["\u00bd","frac12"],["\u00be","frac34"],["\u00bf","iquest"],["\u00c0","Agrave"],["\u00c1","Aacute"],["\u00c2","Acirc"],
["\u00c3","Atilde"],["\u00c4","Auml"],["\u00c5","Aring"],["\u00c6","AElig"],["\u00c7","Ccedil"],["\u00c8","Egrave"],["\u00c9","Eacute"],["\u00ca","Ecirc"],["\u00cb","Euml"],["\u00cc","Igrave"],["\u00cd","Iacute"],["\u00ce","Icirc"],["\u00cf","Iuml"],["\u00d0","ETH"],["\u00d1","Ntilde"],["\u00d2","Ograve"],["\u00d3","Oacute"],["\u00d4","Ocirc"],["\u00d5","Otilde"],["\u00d6","Ouml"],["\u00d7","times"],["\u00d8","Oslash"],["\u00d9","Ugrave"],["\u00da","Uacute"],["\u00db","Ucirc"],["\u00dc","Uuml"],["\u00dd",
"Yacute"],["\u00de","THORN"],["\u00df","szlig"],["\u00e0","agrave"],["\u00e1","aacute"],["\u00e2","acirc"],["\u00e3","atilde"],["\u00e4","auml"],["\u00e5","aring"],["\u00e6","aelig"],["\u00e7","ccedil"],["\u00e8","egrave"],["\u00e9","eacute"],["\u00ea","ecirc"],["\u00eb","euml"],["\u00ec","igrave"],["\u00ed","iacute"],["\u00ee","icirc"],["\u00ef","iuml"],["\u00f0","eth"],["\u00f1","ntilde"],["\u00f2","ograve"],["\u00f3","oacute"],["\u00f4","ocirc"],["\u00f5","otilde"],["\u00f6","ouml"],["\u00f7",
"divide"],["\u00f8","oslash"],["\u00f9","ugrave"],["\u00fa","uacute"],["\u00fb","ucirc"],["\u00fc","uuml"],["\u00fd","yacute"],["\u00fe","thorn"],["\u00ff","yuml"],["\u0192","fnof"],["\u0391","Alpha"],["\u0392","Beta"],["\u0393","Gamma"],["\u0394","Delta"],["\u0395","Epsilon"],["\u0396","Zeta"],["\u0397","Eta"],["\u0398","Theta"],["\u0399","Iota"],["\u039a","Kappa"],["\u039b","Lambda"],["\u039c","Mu"],["\u039d","Nu"],["\u039e","Xi"],["\u039f","Omicron"],["\u03a0","Pi"],["\u03a1","Rho"],["\u03a3",
"Sigma"],["\u03a4","Tau"],["\u03a5","Upsilon"],["\u03a6","Phi"],["\u03a7","Chi"],["\u03a8","Psi"],["\u03a9","Omega"],["\u03b1","alpha"],["\u03b2","beta"],["\u03b3","gamma"],["\u03b4","delta"],["\u03b5","epsilon"],["\u03b6","zeta"],["\u03b7","eta"],["\u03b8","theta"],["\u03b9","iota"],["\u03ba","kappa"],["\u03bb","lambda"],["\u03bc","mu"],["\u03bd","nu"],["\u03be","xi"],["\u03bf","omicron"],["\u03c0","pi"],["\u03c1","rho"],["\u03c2","sigmaf"],["\u03c3","sigma"],["\u03c4","tau"],["\u03c5","upsilon"],
["\u03c6","phi"],["\u03c7","chi"],["\u03c8","psi"],["\u03c9","omega"],["\u03d1","thetasym"],["\u03d2","upsih"],["\u03d6","piv"],["\u2022","bull"],["\u2026","hellip"],["\u2032","prime"],["\u2033","Prime"],["\u203e","oline"],["\u2044","frasl"],["\u2118","weierp"],["\u2111","image"],["\u211c","real"],["\u2122","trade"],["\u2135","alefsym"],["\u2190","larr"],["\u2191","uarr"],["\u2192","rarr"],["\u2193","darr"],["\u2194","harr"],["\u21b5","crarr"],["\u21d0","lArr"],["\u21d1","uArr"],["\u21d2","rArr"],
["\u21d3","dArr"],["\u21d4","hArr"],["\u2200","forall"],["\u2202","part"],["\u2203","exist"],["\u2205","empty"],["\u2207","nabla"],["\u2208","isin"],["\u2209","notin"],["\u220b","ni"],["\u220f","prod"],["\u2211","sum"],["\u2212","minus"],["\u2217","lowast"],["\u221a","radic"],["\u221d","prop"],["\u221e","infin"],["\u2220","ang"],["\u2227","and"],["\u2228","or"],["\u2229","cap"],["\u222a","cup"],["\u222b","int"],["\u2234","there4"],["\u223c","sim"],["\u2245","cong"],["\u2248","asymp"],["\u2260","ne"],
["\u2261","equiv"],["\u2264","le"],["\u2265","ge"],["\u2282","sub"],["\u2283","sup"],["\u2284","nsub"],["\u2286","sube"],["\u2287","supe"],["\u2295","oplus"],["\u2297","otimes"],["\u22a5","perp"],["\u22c5","sdot"],["\u2308","lceil"],["\u2309","rceil"],["\u230a","lfloor"],["\u230b","rfloor"],["\u2329","lang"],["\u232a","rang"],["\u25ca","loz"],["\u2660","spades"],["\u2663","clubs"],["\u2665","hearts"],["\u2666","diams"],["\u0152","OElig"],["\u0153","oelig"],["\u0160","Scaron"],["\u0161","scaron"],
["\u0178","Yuml"],["\u02c6","circ"],["\u02dc","tilde"],["\u2002","ensp"],["\u2003","emsp"],["\u2009","thinsp"],["\u200c","zwnj"],["\u200d","zwj"],["\u200e","lrm"],["\u200f","rlm"],["\u2013","ndash"],["\u2014","mdash"],["\u2018","lsquo"],["\u2019","rsquo"],["\u201a","sbquo"],["\u201c","ldquo"],["\u201d","rdquo"],["\u201e","bdquo"],["\u2020","dagger"],["\u2021","Dagger"],["\u2030","permil"],["\u2039","lsaquo"],["\u203a","rsaquo"]];m.encode=function(e,c){e&&(c?e=l(e,c):(e=l(e,m.html),e=l(e,m.latin)));
return e};m.decode=function(e,c){e&&(c?e=k(e,c):(e=k(e,m.html),e=k(e,m.latin)));return e};return m})},"dojox/editor/plugins/EntityPalette":function(){define("dojo dijit dojox dijit/_Widget dijit/_TemplatedMixin dijit/_PaletteMixin dojo/_base/connect dojo/_base/declare dojo/i18n dojo/i18n!dojox/editor/plugins/nls/latinEntities".split(" "),function(f,m,l,k,e,c){f.experimental("dojox.editor.plugins.EntityPalette");m=f.declare("dojox.editor.plugins.EntityPalette",[k,e,c],{templateString:'\x3cdiv class\x3d"dojoxEntityPalette"\x3e\n\t\x3ctable\x3e\n\t\t\x3ctbody\x3e\n\t\t\t\x3ctr\x3e\n\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\x3ctable class\x3d"dijitPaletteTable"\x3e\n\t\t\t\t\t\t\x3ctbody dojoAttachPoint\x3d"gridNode"\x3e\x3c/tbody\x3e\n\t\t\t\t   \x3c/table\x3e\n\t\t\t\t\x3c/td\x3e\n\t\t\t\x3c/tr\x3e\n\t\t\t\x3ctr\x3e\n\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\x3ctable dojoAttachPoint\x3d"previewPane" class\x3d"dojoxEntityPalettePreviewTable"\x3e\n\t\t\t\t\t\t\x3ctbody\x3e\n\t\t\t\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\t\t\t\x3cth class\x3d"dojoxEntityPalettePreviewHeader"\x3ePreview\x3c/th\x3e\n\t\t\t\t\t\t\t\t\x3cth class\x3d"dojoxEntityPalettePreviewHeader" dojoAttachPoint\x3d"codeHeader"\x3eCode\x3c/th\x3e\n\t\t\t\t\t\t\t\t\x3cth class\x3d"dojoxEntityPalettePreviewHeader" dojoAttachPoint\x3d"entityHeader"\x3eName\x3c/th\x3e\n\t\t\t\t\t\t\t\t\x3cth class\x3d"dojoxEntityPalettePreviewHeader"\x3eDescription\x3c/th\x3e\n\t\t\t\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\t\t\t\x3ctd class\x3d"dojoxEntityPalettePreviewDetailEntity" dojoAttachPoint\x3d"previewNode"\x3e\x3c/td\x3e\n\t\t\t\t\t\t\t\t\x3ctd class\x3d"dojoxEntityPalettePreviewDetail" dojoAttachPoint\x3d"codeNode"\x3e\x3c/td\x3e\n\t\t\t\t\t\t\t\t\x3ctd class\x3d"dojoxEntityPalettePreviewDetail" dojoAttachPoint\x3d"entityNode"\x3e\x3c/td\x3e\n\t\t\t\t\t\t\t\t\x3ctd class\x3d"dojoxEntityPalettePreviewDetail" dojoAttachPoint\x3d"descNode"\x3e\x3c/td\x3e\n\t\t\t\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\t\t\x3c/tbody\x3e\n\t\t\t\t\t\x3c/table\x3e\n\t\t\t\t\x3c/td\x3e\n\t\t\t\x3c/tr\x3e\n\t\t\x3c/tbody\x3e\n\t\x3c/table\x3e\n\x3c/div\x3e',
baseClass:"dojoxEntityPalette",showPreview:!0,showCode:!1,showEntityName:!1,palette:"latin",dyeClass:"dojox.editor.plugins.LatinEntity",paletteClass:"editorLatinEntityPalette",cellClass:"dojoxEntityPaletteCell",postMixInProperties:function(){var c=f.i18n.getLocalization("dojox.editor.plugins","latinEntities"),d=0,b;for(b in c)d++;var d=Math.floor(Math.sqrt(d)),a=0,e=[],k=[];for(b in c)a++,k.push(b),0===a%d&&(e.push(k),k=[]);0<k.length&&e.push(k);this._palette=e},buildRendering:function(){this.inherited(arguments);
var c=f.i18n.getLocalization("dojox.editor.plugins","latinEntities");this._preparePalette(this._palette,c);c=f.query(".dojoxEntityPaletteCell",this.gridNode);f.forEach(c,function(c){this.connect(c,"onmouseenter","_onCellMouseEnter")},this)},_onCellMouseEnter:function(c){this._displayDetails(c.target)},postCreate:function(){this.inherited(arguments);f.style(this.codeHeader,"display",this.showCode?"":"none");f.style(this.codeNode,"display",this.showCode?"":"none");f.style(this.entityHeader,"display",
this.showEntityName?"":"none");f.style(this.entityNode,"display",this.showEntityName?"":"none");this.showPreview||f.style(this.previewNode,"display","none")},_setCurrent:function(c){this.inherited(arguments);this.showPreview&&this._displayDetails(c)},_displayDetails:function(c){var d=this._getDye(c);d?(c=d.getValue(),d=d._alias,this.previewNode.innerHTML=c,this.codeNode.innerHTML="\x26amp;#"+parseInt(c.charCodeAt(0),10)+";",this.entityNode.innerHTML="\x26amp;"+d+";",c=f.i18n.getLocalization("dojox.editor.plugins",
"latinEntities"),this.descNode.innerHTML=c[d].replace("\n","\x3cbr\x3e")):(this.previewNode.innerHTML="",this.codeNode.innerHTML="",this.entityNode.innerHTML="",this.descNode.innerHTML="")}});m.LatinEntity=f.declare("dojox.editor.plugins.LatinEntity",null,{constructor:function(c){this._alias=c},getValue:function(){return"\x26"+this._alias+";"},fillCell:function(c){c.innerHTML=this.getValue()}});return m})},"dijit/_PaletteMixin":function(){define("dojo/_base/declare dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/keys dojo/_base/lang dojo/on ./_CssStateMixin ./a11yclick ./focus ./typematic".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h){return f("dijit._PaletteMixin",d,{defaultTimeout:500,timeoutChangeRate:0.9,value:"",_selectedCell:-1,tabIndex:"0",cellClass:"dijitPaletteCell",dyeClass:null,_dyeFactory:function(a){return new ("string"==typeof this.dyeClass?c.getObject(this.dyeClass):this.dyeClass)(a)},_preparePalette:function(a,d){this._cells=[];var f=this._blankGif;this.own(g(this.gridNode,b,c.hitch(this,"_onCellClick")));for(var l=0;l<a.length;l++)for(var m=k.create("tr",{tabIndex:"-1",role:"row"},
this.gridNode),r=0;r<a[l].length;r++){var w=a[l][r];if(w){var u=this._dyeFactory(w,l,r,d[w]),w=k.create("td",{"class":this.cellClass,tabIndex:"-1",title:d[w],role:"gridcell"},m);u.fillCell(w,f);w.idx=this._cells.length;this._cells.push({node:w,dye:u})}}this._xDim=a[0].length;this._yDim=a.length;var v={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:this.isLeftToRight()?1:-1,LEFT_ARROW:this.isLeftToRight()?-1:1},x;for(x in v)this.own(h.addKeyListener(this.domNode,{keyCode:e[x],ctrlKey:!1,altKey:!1,
shiftKey:!1},this,function(){var a=v[x];return function(b){this._navigateByKey(a,b)}}(),this.timeoutChangeRate,this.defaultTimeout))},postCreate:function(){this.inherited(arguments);this._setCurrent(this._cells[0].node)},focus:function(){a.focus(this._currentFocus)},_onCellClick:function(b){for(var c=b.target;"TD"!=c.tagName;){if(!c.parentNode||c==this.gridNode)return;c=c.parentNode}var d=this._getDye(c).getValue();this._setCurrent(c);a.focus(c);this._setValueAttr(d,!0);b.stopPropagation();b.preventDefault()},
_setCurrent:function(a){"_currentFocus"in this&&m.set(this._currentFocus,"tabIndex","-1");(this._currentFocus=a)&&m.set(a,"tabIndex",this.tabIndex)},_setValueAttr:function(a,b){0<=this._selectedCell&&l.remove(this._cells[this._selectedCell].node,this.cellClass+"Selected");this._selectedCell=-1;if(a)for(var c=0;c<this._cells.length;c++)if(a==this._cells[c].dye.getValue()){this._selectedCell=c;l.add(this._cells[c].node,this.cellClass+"Selected");break}this._set("value",0<=this._selectedCell?a:null);
if(b||void 0===b)this.onChange(a)},onChange:function(){},_navigateByKey:function(b,d){if(-1!=d){var e=this._currentFocus.idx+b;e<this._cells.length&&-1<e&&(e=this._cells[e].node,this._setCurrent(e),this.defer(c.hitch(a,"focus",e)))}},_getDye:function(a){return this._cells[a.idx].dye}})})},"dojox/editor/plugins/TablePlugins":function(){define("dojo/_base/declare dojo/_base/array dojo/_base/Color dojo/aspect dojo/dom-attr dojo/dom-style dijit/_editor/_Plugin dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/Dialog dijit/Menu dijit/MenuItem dijit/MenuSeparator dijit/ColorPalette dojox/widget/ColorPicker dojo/text!./resources/insertTable.html dojo/text!./resources/modifyTable.html dojo/i18n!./nls/TableDialog dijit/_base/popup dijit/popup dojo/_base/connect dijit/TooltipDialog dijit/form/Button dijit/form/DropDownButton dijit/form/TextBox dijit/form/FilteringSelect".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r,w,u){function v(a){return new y(a)}dojo.experimental("dojox.editor.plugins.TablePlugins");var x=f(g,{tablesConnected:!1,currentlyAvailable:!1,alwaysAvailable:!1,availableCurrentlySet:!1,initialized:!1,tableData:null,shiftKeyDown:!1,editorDomNode:null,undoEnabled:!0,refCount:0,doMixins:function(){dojo.mixin(this.editor,{getAncestorElement:function(a){return this._sCall("getAncestorElement",[a])},hasAncestorElement:function(a){return this._sCall("hasAncestorElement",
[a])},selectElement:function(a){this._sCall("selectElement",[a])},byId:function(a){return dojo.byId(a,this.document)},query:function(a,b,c){a=dojo.query(a,b||this.document);return c?a[0]:a}})},initialize:function(a){this.refCount++;a.customUndo=!0;this.initialized||(this.initialized=!0,this.editor=a,this.editor._tablePluginHandler=this,a.onLoadDeferred.addCallback(dojo.hitch(this,function(){this.editorDomNode=this.editor.editNode||this.editor.iframe.document.body.firstChild;this._myListeners=[dojo.connect(this.editorDomNode,
"mouseup",this.editor,"onClick"),dojo.connect(this.editor,"onDisplayChanged",this,"checkAvailable"),dojo.connect(this.editor,"onBlur",this,"checkAvailable"),dojo.connect(this.editor,"_saveSelection",this,function(){this._savedTableInfo=this.getTableInfo()}),dojo.connect(this.editor,"_restoreSelection",this,function(){delete this._savedTableInfo})];this.doMixins();this.connectDraggable()})))},getTableInfo:function(a){if(this._savedTableInfo)return this._savedTableInfo;a&&this._tempStoreTableData(!1);
if(this.tableData)return this.tableData;var b,c,d,e,g,f,h;if(c=this.editor.getAncestorElement("td"))b=c.parentNode;(e=this.editor.getAncestorElement("table"))?(d=dojo.query("td",e),d.forEach(function(a,b){c==a&&(f=b)}),a=dojo.query("tr",e),a.forEach(function(a,c){b==a&&(h=c)}),g=d.length/a.length,a={tbl:e,td:c,tr:b,trs:a,tds:d,rows:a.length,cols:g,tdIndex:f,trIndex:h,colIndex:f%g}):a={};this.tableData=a;this._tempStoreTableData(500);return this.tableData},connectDraggable:function(){dojo.isIE&&(this.editorDomNode.ondragstart=
dojo.hitch(this,"onDragStart"),this.editorDomNode.ondragend=dojo.hitch(this,"onDragEnd"))},onDragStart:function(){var a=window.event;a.srcElement.id||(a.srcElement.id="tbl_"+(new Date).getTime())},onDragEnd:function(){var a=window.event.srcElement,b=a.id,c=this.editor.document;"table"==a.tagName.toLowerCase()&&setTimeout(function(){var a=dojo.byId(b,c);dojo.removeAttr(a,"align")},100)},checkAvailable:function(){if(this.availableCurrentlySet)return this.currentlyAvailable;if(!this.editor)return!1;
if(this.alwaysAvailable)return!0;(this.currentlyAvailable=this.editor.focused&&(this._savedTableInfo?this._savedTableInfo.tbl:this.editor.hasAncestorElement("table")))?this.connectTableKeys():this.disconnectTableKeys();this._tempAvailability(500);dojo.publish(this.editor.id+"_tablePlugins",[this.currentlyAvailable]);return this.currentlyAvailable},_prepareTable:function(a){a=this.editor.query("td",a);a[0].id||a.forEach(function(a,b){a.id||(a.id="tdid"+b+this.getTimeStamp())},this);return a},getTimeStamp:function(){return(new Date).getTime()},
_tempStoreTableData:function(a){!0!==a&&(!1===a?this.tableData=null:void 0===a?console.warn("_tempStoreTableData must be passed an argument"):setTimeout(dojo.hitch(this,function(){this.tableData=null}),a))},_tempAvailability:function(a){!0===a?this.availableCurrentlySet=!0:!1===a?this.availableCurrentlySet=!1:void 0===a?console.warn("_tempAvailability must be passed an argument"):(this.availableCurrentlySet=!0,setTimeout(dojo.hitch(this,function(){this.availableCurrentlySet=!1}),a))},connectTableKeys:function(){if(!this.tablesConnected){this.tablesConnected=
!0;var a=this.editor.iframe?this.editor.document:this.editor.editNode;this.cnKeyDn=dojo.connect(a,"onkeydown",this,"onKeyDown");this.cnKeyUp=dojo.connect(a,"onkeyup",this,"onKeyUp");this._myListeners.push(dojo.connect(a,"onkeypress",this,"onKeyUp"))}},disconnectTableKeys:function(){dojo.disconnect(this.cnKeyDn);dojo.disconnect(this.cnKeyUp);this.tablesConnected=!1},onKeyDown:function(a){var b=a.keyCode;16==b&&(this.shiftKeyDown=!0);9==b&&(b=this.getTableInfo(),b.tdIndex=this.shiftKeyDown?b.tdIndex-
1:tabTo=b.tdIndex+1,0<=b.tdIndex&&b.tdIndex<b.tds.length?(this.editor.selectElement(b.tds[b.tdIndex]),this.currentlyAvailable=!0,this._tempAvailability(!0),this._tempStoreTableData(!0),this.stopEvent=!0):(this.stopEvent=!1,this.onDisplayChanged()),this.stopEvent&&dojo.stopEvent(a))},onKeyUp:function(a){var b=a.keyCode;16==b&&(this.shiftKeyDown=!1);if(37==b||38==b||39==b||40==b)this.onDisplayChanged();9==b&&this.stopEvent&&dojo.stopEvent(a)},onDisplayChanged:function(){this.currentlyAvailable=!1;this._tempStoreTableData(!1);
this._tempAvailability(!1);this.checkAvailable()},uninitialize:function(a){this.editor==a&&(this.refCount--,!this.refCount&&this.initialized&&(this.tablesConnected&&this.disconnectTableKeys(),this.initialized=!1,dojo.forEach(this._myListeners,function(a){dojo.disconnect(a)}),delete this._myListeners,delete this.editor._tablePluginHandler,delete this.editor),this.inherited(arguments))}}),y=f("dojox.editor.plugins.TablePlugins",g,{iconClassPrefix:"editorIcon",useDefaultCommand:!1,buttonClass:dijit.form.Button,
commandName:"",label:"",alwaysAvailable:!1,undoEnabled:!0,onDisplayChanged:function(a){this.alwaysAvailable||(this.available=a,this.button.set("disabled",!this.available))},setEditor:function(a){this.editor=a;this.editor.customUndo=!0;this.inherited(arguments);this._availableTopic=dojo.subscribe(this.editor.id+"_tablePlugins",this,"onDisplayChanged");this.onEditorLoaded()},onEditorLoaded:function(){this.editor._tablePluginHandler?this.editor._tablePluginHandler.initialize(this.editor):(new x).initialize(this.editor)},
selectTable:function(){var a=this.getTableInfo();a&&a.tbl&&this.editor._sCall("selectElement",[a.tbl])},_initButton:function(){this.command=this.name;this.label=this.editor.commands[this.command]=this._makeTitle(this.command);this.inherited(arguments);delete this.command;this.connect(this.button,"onClick","modTable");this.onDisplayChanged(!1)},modTable:function(a,b){dojo.isIE&&this.editor.focus();this.begEdit();var c=this.getTableInfo(),d,e,g,f=!1;switch(dojo.isString(a)?a:this.name){case "insertTableRowBefore":d=
c.tbl.insertRow(c.trIndex);for(g=0;g<c.cols;g++)e=d.insertCell(-1),e.innerHTML="\x26nbsp;";break;case "insertTableRowAfter":d=c.tbl.insertRow(c.trIndex+1);for(g=0;g<c.cols;g++)e=d.insertCell(-1),e.innerHTML="\x26nbsp;";break;case "insertTableColumnBefore":c.trs.forEach(function(a){e=a.insertCell(c.colIndex);e.innerHTML="\x26nbsp;"});f=!0;break;case "insertTableColumnAfter":c.trs.forEach(function(a){e=a.insertCell(c.colIndex+1);e.innerHTML="\x26nbsp;"});f=!0;break;case "deleteTableRow":c.tbl.deleteRow(c.trIndex);
break;case "deleteTableColumn":c.trs.forEach(function(a){a.deleteCell(c.colIndex)}),f=!0}f&&this.makeColumnsEven();this.endEdit()},begEdit:function(){this.editor._tablePluginHandler.undoEnabled&&(this.editor.customUndo?this.editor.beginEditing():this.valBeforeUndo=this.editor.getValue())},endEdit:function(){if(this.editor._tablePluginHandler.undoEnabled){if(this.editor.customUndo)this.editor.endEditing();else{var a=this.editor.getValue();this.editor.setValue(this.valBeforeUndo);this.editor.replaceValue(a)}this.editor.onDisplayChanged()}},
makeColumnsEven:function(){setTimeout(dojo.hitch(this,function(){var a=this.getTableInfo(!0),b=Math.floor(100/a.cols);a.tds.forEach(function(a){dojo.attr(a,"width",b+"%")})}),10)},getTableInfo:function(a){return this.editor._tablePluginHandler.getTableInfo(a)},_makeTitle:function(a){this._strings=dojo.i18n.getLocalization("dojox.editor.plugins","TableDialog");return this._strings[a+"Title"]||this._strings[a+"Label"]||a},getSelectedCells:function(){var a=[],b=this.getTableInfo().tbl;this.editor._tablePluginHandler._prepareTable(b);
var c=this.editor,b=c._sCall("getSelectedHtml",[null]).match(/id="*\w*"*/g);dojo.forEach(b,function(b){b=b.substring(3,b.length);'"'==b.charAt(0)&&'"'==b.charAt(b.length-1)&&(b=b.substring(1,b.length-1));(b=c.byId(b))&&"td"==b.tagName.toLowerCase()&&a.push(b)},this);if(!a.length&&(b=dijit.range.getSelection(c.window),b.rangeCount))for(b=b.getRangeAt(0).startContainer;b&&b!=c.editNode&&b!=c.document;){if(1===b.nodeType&&"td"===(b.tagName?b.tagName.toLowerCase():""))return[b];b=b.parentNode}return a},
updateState:function(){this.button&&((this.available||this.alwaysAvailable)&&!this.get("disabled")?this.button.set("disabled",!1):this.button.set("disabled",!0))},destroy:function(){this.inherited(arguments);dojo.unsubscribe(this._availableTopic);this.editor._tablePluginHandler.uninitialize(this.editor)}}),z=f(y,{constructor:function(){this.connect(this,"setEditor",function(a){a.onLoadDeferred.addCallback(dojo.hitch(this,function(){this._createContextMenu()}));this.button.domNode.style.display="none"})},
destroy:function(){this.menu&&(this.menu.destroyRecursive(),delete this.menu);this.inherited(arguments)},_initButton:function(){this.inherited(arguments);"tableContextMenu"===this.name&&(this.button.domNode.display="none")},_createContextMenu:function(){var a=new p({targetNodeIds:[this.editor.iframe]});a.addChild(new n({label:u.selectTableLabel,onClick:dojo.hitch(this,"selectTable")}));a.addChild(new t);a.addChild(new n({label:u.insertTableRowBeforeLabel,onClick:dojo.hitch(this,"modTable","insertTableRowBefore")}));
a.addChild(new n({label:u.insertTableRowAfterLabel,onClick:dojo.hitch(this,"modTable","insertTableRowAfter")}));a.addChild(new n({label:u.insertTableColumnBeforeLabel,onClick:dojo.hitch(this,"modTable","insertTableColumnBefore")}));a.addChild(new n({label:u.insertTableColumnAfterLabel,onClick:dojo.hitch(this,"modTable","insertTableColumnAfter")}));a.addChild(new t);a.addChild(new n({label:u.deleteTableRowLabel,onClick:dojo.hitch(this,"modTable","deleteTableRow")}));a.addChild(new n({label:u.deleteTableColumnLabel,
onClick:dojo.hitch(this,"modTable","deleteTableColumn")}));this.menu=a}}),A=f("dojox.editor.plugins.EditorTableDialog",[h,b,a],{baseClass:"EditorTableDialog",templateString:r,postMixInProperties:function(){dojo.mixin(this,u);this.inherited(arguments)},postCreate:function(){dojo.addClass(this.domNode,this.baseClass);this.inherited(arguments)},onInsert:function(){for(var a=this.selectRow.get("value")||1,b=this.selectCol.get("value")||1,c=this.selectWidth.get("value"),d=this.selectWidthType.get("value"),
e=this.selectBorder.get("value"),g=this.selectPad.get("value"),f=this.selectSpace.get("value"),h="tbl_"+(new Date).getTime(),c='\x3ctable id\x3d"'+h+'"width\x3d"'+c+("percent"==d?"%":"")+'" border\x3d"'+e+'" cellspacing\x3d"'+f+'" cellpadding\x3d"'+g+'"\x3e\n',d=0;d<a;d++){c+="\t\x3ctr\x3e\n";for(e=0;e<b;e++)c+='\t\t\x3ctd width\x3d"'+Math.floor(100/b)+'%"\x3e\x26nbsp;\x3c/td\x3e\n';c+="\t\x3c/tr\x3e\n"}var c=c+"\x3c/table\x3e\x3cbr /\x3e",k=dojo.connect(this,"onHide",function(){dojo.disconnect(k);
var a=this;setTimeout(function(){a.destroyRecursive()},10)});this.hide();this.onBuildTable({htmlText:c,id:h})},onCancel:function(){var a=dojo.connect(this,"onHide",function(){dojo.disconnect(a);var b=this;setTimeout(function(){b.destroyRecursive()},10)})},onBuildTable:function(a){}}),E=f("dojox.editor.plugins.InsertTable",y,{alwaysAvailable:!0,modTable:function(){var a=new A({});a.show();var b=dojo.connect(a,"onBuildTable",this,function(a){dojo.disconnect(b);this.editor.focus();this.editor.execCommand("inserthtml",
a.htmlText)})}}),B=f([h,b,a],{baseClass:"EditorTableDialog",table:null,tableAtts:{},templateString:w,postMixInProperties:function(){dojo.mixin(this,u);this.inherited(arguments)},postCreate:function(){dojo.addClass(this.domNode,this.baseClass);this.inherited(arguments);var a=new this.colorPicker({params:this.params});this.connect(a,"onChange",function(b){this._started&&(dijit.popup.close(a),this.setBrdColor(b))});this.connect(a,"onBlur",function(){dijit.popup.close(a)});this.connect(this.borderCol,
"click",function(){a.set("value",this.brdColor,!1);dijit.popup.open({popup:a,around:this.borderCol});a.focus()});var b=new this.colorPicker({params:this.params});this.connect(b,"onChange",function(a){this._started&&(dijit.popup.close(b),this.setBkColor(a))});this.connect(b,"onBlur",function(){dijit.popup.close(b)});this.connect(this.backgroundCol,"click",function(){b.set("value",this.bkColor,!1);dijit.popup.open({popup:b,around:this.backgroundCol});b.focus()});this.own(a,b);this.pickers=[a,b];this.setBrdColor(c.get(this.table,
"borderColor"));this.setBkColor(c.get(this.table,"backgroundColor"));var d=e.get(this.table,"width");d||(d=this.table.style.width);var g="pixels";dojo.isString(d)&&-1<d.indexOf("%")&&(g="percent",d=d.replace(/%/,""));d?(this.selectWidth.set("value",d),this.selectWidthType.set("value",g)):(this.selectWidth.set("value",""),this.selectWidthType.set("value","percent"));this.selectBorder.set("value",e.get(this.table,"border"));this.selectPad.set("value",e.get(this.table,"cellPadding"));this.selectSpace.set("value",
e.get(this.table,"cellSpacing"));this.selectAlign.set("value",e.get(this.table,"align"))},startup:function(){m.forEach(this.pickers,function(a){a.startup()});this.inherited(arguments)},setBrdColor:function(a){this.brdColor=a;c.set(this.borderCol,"backgroundColor",a)},setBkColor:function(a){this.bkColor=a;c.set(this.backgroundCol,"backgroundColor",a)},onSet:function(){c.set(this.table,"borderColor",this.brdColor);c.set(this.table,"backgroundColor",this.bkColor);this.selectWidth.get("value")&&(c.set(this.table,
"width",""),e.set(this.table,"width",this.selectWidth.get("value")+("pixels"==this.selectWidthType.get("value")?"":"%")));e.set(this.table,"border",this.selectBorder.get("value"));e.set(this.table,"cellPadding",this.selectPad.get("value"));e.set(this.table,"cellSpacing",this.selectSpace.get("value"));e.set(this.table,"align",this.selectAlign.get("value"));var a=dojo.connect(this,"onHide",function(){dojo.disconnect(a);var b=this;setTimeout(function(){b.destroyRecursive()},10)});this.hide()},onCancel:function(){var a=
dojo.connect(this,"onHide",function(){dojo.disconnect(a);var b=this;setTimeout(function(){b.destroyRecursive()},10)})},onSetTable:function(a){}}),G=f("dojox.editor.plugins.ModifyTable",y,{colorPicker:q,modTable:function(){if(this.editor._tablePluginHandler.checkAvailable()){var a=this.getTableInfo(),a=new B({table:a.tbl,colorPicker:"string"===typeof this.colorPicker?require(this.colorPicker):this.colorPicker,params:this.params});a.show();this.connect(a,"onSetTable",function(a){var b=this.getTableInfo();
c.set(b.td,"backgroundColor",a)})}}}),L=f([d,b,a],{colorPicker:s,templateString:"\x3cdiv style\x3d'display: none; position: absolute; top: -10000; z-index: -10000'\x3e\x3cdiv dojoType\x3d'dijit.TooltipDialog' dojoAttachPoint\x3d'dialog' class\x3d'dojoxEditorColorPicker'\x3e\x3cdiv dojoAttachPoint\x3d'_colorPicker'\x3e\x3c/div\x3e\x3cdiv style\x3d'margin: 0.5em 0em 0em 0em'\x3e\x3cbutton dojoType\x3d'dijit.form.Button' type\x3d'submit' dojoAttachPoint\x3d'_setButton'\x3e${buttonSet}\x3c/button\x3e\x26nbsp;\x3cbutton dojoType\x3d'dijit.form.Button' type\x3d'button' dojoAttachPoint\x3d'_cancelButton'\x3e${buttonCancel}\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e",
widgetsInTemplate:!0,constructor:function(){dojo.mixin(this,u)},postCreate:function(){this._colorPicker=new ("string"==typeof this.colorPicker?require(this.colorPicker):this.colorPicker)({params:this.params},this._colorPicker)},startup:function(){this._started||(this.inherited(arguments),this.connect(this.dialog,"execute",function(){this.onChange(this.get("value"))}),this.connect(this._cancelButton,"onClick",function(){dijit.popup.close(this.dialog)}),this.connect(this.dialog,"onCancel","onCancel"),
dojo.style(this.domNode,"display","block"))},_setValueAttr:function(a,b){this._colorPicker.set("value",a,b)},_getValueAttr:function(){return this._colorPicker.get("value")},onChange:function(a){},onCancel:function(){}}),I=f("dojox.editor.plugins.ColorTableCell",y,{colorPicker:s,constructor:function(){this.closable=!0;this.buttonClass=dijit.form.DropDownButton;var a=this,b,c={colorPicker:this.colorPicker,params:this.params};this.dropDown?(b=this.dropDown,b.set(c)):(b=new L(c),b.startup(),this.dropDown=
b.dialog);this.connect(b,"onChange",function(a){this.editor.focus();this.modTable(null,a)});this.connect(b,"onCancel",function(){this.editor.focus()});k.before(this.dropDown,"onOpen",function(){var c=a.getTableInfo();if((c=a.getSelectedCells(c.tbl))&&0<c.length){for(var c=c[0]===a.lastObject?c[0]:c[c.length-1],d;c&&c!==a.editor.document&&("transparent"===(d=dojo.style(c,"backgroundColor"))||0===d.indexOf("rgba"));)c=c.parentNode;"transparent"!==d&&0!==d.indexOf("rgba")&&b.set("value",l.fromString(d).toHex())}});
this.connect(this,"setEditor",function(a){a.onLoadDeferred.addCallback(dojo.hitch(this,function(){this.connect(this.editor.editNode,"onmouseup",function(a){this.lastObject=a.target})}))})},_initButton:function(){this.command=this.name;this.label=this.editor.commands[this.command]=this._makeTitle(this.command);this.inherited(arguments);delete this.command;this.onDisplayChanged(!1)},modTable:function(a,b){this.begEdit();var c=this.getTableInfo(),c=this.getSelectedCells(c.tbl);dojo.forEach(c,function(a){dojo.style(a,
"backgroundColor",b)});this.endEdit()}});g.registry.insertTableRowBefore=v;g.registry.insertTableRowAfter=v;g.registry.insertTableColumnBefore=v;g.registry.insertTableColumnAfter=v;g.registry.deleteTableRow=v;g.registry.deleteTableColumn=v;g.registry.colorTableCell=function(a){return new I(a)};g.registry.modifyTable=function(a){return new G(a)};g.registry.insertTable=function(a){return new E(a)};g.registry.tableContextMenu=function(a){return new z(a)};return y})},"dijit/ColorPalette":function(){define("require dojo/text!./templates/ColorPalette.html ./_Widget ./_TemplatedMixin ./_PaletteMixin ./hccss dojo/i18n dojo/_base/Color dojo/_base/declare dojo/dom-construct dojo/string dojo/i18n!dojo/nls/colors dojo/colors".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h){var p=b("dijit.ColorPalette",[l,k,e],{palette:"7x10",_palettes:{"7x10":["white seashell cornsilk lemonchiffon lightyellow palegreen paleturquoise lightcyan lavender plum".split(" "),"lightgray pink bisque moccasin khaki lightgreen lightseagreen lightskyblue cornflowerblue violet".split(" "),"silver lightcoral sandybrown orange palegoldenrod chartreuse mediumturquoise skyblue mediumslateblue orchid".split(" "),"gray red orangered darkorange yellow limegreen darkseagreen royalblue slateblue mediumorchid".split(" "),
"dimgray crimson chocolate coral gold forestgreen seagreen blue blueviolet darkorchid".split(" "),"darkslategray firebrick saddlebrown sienna olive green darkcyan mediumblue darkslateblue darkmagenta".split(" "),"black darkred maroon brown darkolivegreen darkgreen midnightblue navy indigo purple".split(" ")],"3x4":[["white","lime","green","blue"],["silver","yellow","fuchsia","navy"],["gray","red","purple","black"]]},templateString:m,baseClass:"dijitColorPalette",_dyeFactory:function(a,b,c,d){return new this._dyeClass(a,
b,c,d)},buildRendering:function(){this.inherited(arguments);this._dyeClass=b(p._Color,{palette:this.palette});this._preparePalette(this._palettes[this.palette],g.getLocalization("dojo","colors",this.lang))}});p._Color=b("dijit._Color",d,{template:"\x3cspan class\x3d'dijitInline dijitPaletteImg'\x3e\x3cimg src\x3d'${blankGif}' alt\x3d'${alt}' title\x3d'${title}' class\x3d'dijitColorPaletteSwatch' style\x3d'background-color: ${color}'/\x3e\x3c/span\x3e",hcTemplate:"\x3cspan class\x3d'dijitInline dijitPaletteImg' style\x3d'position: relative; overflow: hidden; height: 12px; width: 14px;'\x3e\x3cimg src\x3d'${image}' alt\x3d'${alt}' title\x3d'${title}' style\x3d'position: absolute; left: ${left}px; top: ${top}px; ${size}'/\x3e\x3c/span\x3e",
_imagePaths:{"7x10":f.toUrl("./themes/a11y/colors7x10.png"),"3x4":f.toUrl("./themes/a11y/colors3x4.png")},constructor:function(a,b,c,e){this._title=e;this._row=b;this._col=c;this.setColor(d.named[a])},getValue:function(){return this.toHex()},fillCell:function(b,d){var e=h.substitute(c("highcontrast")?this.hcTemplate:this.template,{color:this.toHex(),blankGif:d,alt:this._title,title:this._title,image:this._imagePaths[this.palette].toString(),left:-20*this._col-5,top:-20*this._row-5,size:"7x10"==this.palette?
"height: 145px; width: 206px":"height: 64px; width: 86px"});a.place(e,b)}});return p})},"dojox/widget/ColorPicker":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/html dojo/_base/connect dojo/_base/sniff dojo/_base/window dojo/_base/event dojo/dom dojo/dom-class dojo/keys dojo/fx dojo/dnd/move dijit/registry dijit/_base/focus dijit/form/_FormWidget dijit/typematic dojox/color dojo/i18n dojo/i18n!./nls/ColorPicker dojo/i18n!dojo/cldr/nls/number dojo/text!./ColorPicker/ColorPicker.html".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r,w,u,v,x,y,z){f.experimental("dojox.widget.ColorPicker");return m("dojox.widget.ColorPicker",r,{showRgb:!0,showHsv:!0,showHex:!0,webSafe:!0,animatePoint:!0,slideDuration:250,liveUpdate:!1,PICKER_HUE_H:150,PICKER_SAT_VAL_H:150,PICKER_SAT_VAL_W:150,PICKER_HUE_SELECTOR_H:8,PICKER_SAT_SELECTOR_H:10,PICKER_SAT_SELECTOR_W:10,value:"#ffffff",_underlay:require.toUrl("dojox/widget/ColorPicker/images/underlay.png"),_hueUnderlay:require.toUrl("dojox/widget/ColorPicker/images/hue.png"),
_pickerPointer:require.toUrl("dojox/widget/ColorPicker/images/pickerPointer.png"),_huePickerPointer:require.toUrl("dojox/widget/ColorPicker/images/hueHandle.png"),_huePickerPointerAlly:require.toUrl("dojox/widget/ColorPicker/images/hueHandleA11y.png"),templateString:z,postMixInProperties:function(){h.contains(d.body(),"dijit_a11y")&&(this._huePickerPointer=this._huePickerPointerAlly);this._uId=q.getUniqueId(this.id);l.mixin(this,v.getLocalization("dojox.widget","ColorPicker"));l.mixin(this,v.getLocalization("dojo.cldr",
"number"));this.inherited(arguments)},postCreate:function(){this.inherited(arguments);7>g("ie")&&(this.colorUnderlay.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d'"+this._underlay+"', sizingMethod\x3d'scale')",this.colorUnderlay.src=this._blankGif.toString());this.showRgb||(this.rgbNode.style.visibility="hidden");this.showHsv||(this.hsvNode.style.visibility="hidden");this.showHex||(this.hexNode.style.visibility="hidden");this.webSafe||(this.safePreviewNode.style.visibility=
"hidden")},startup:function(){this._started||(this._started=!0,this.set("value",this.value),this._mover=new t.boxConstrainedMoveable(this.cursorNode,{box:{t:-(this.PICKER_SAT_SELECTOR_H/2),l:-(this.PICKER_SAT_SELECTOR_W/2),w:this.PICKER_SAT_VAL_W,h:this.PICKER_SAT_VAL_H}}),this._hueMover=new t.boxConstrainedMoveable(this.hueCursorNode,{box:{t:-(this.PICKER_HUE_SELECTOR_H/2),l:0,w:0,h:this.PICKER_HUE_H}}),this._subs=[],this._subs.push(c.subscribe("/dnd/move/stop",l.hitch(this,"_clearTimer"))),this._subs.push(c.subscribe("/dnd/move/start",
l.hitch(this,"_setTimer"))),this._keyListeners=[],this._connects.push(w.addKeyListener(this.hueCursorNode,{charOrCode:p.UP_ARROW,shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1},this,l.hitch(this,this._updateHueCursorNode),25,25)),this._connects.push(w.addKeyListener(this.hueCursorNode,{charOrCode:p.DOWN_ARROW,shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1},this,l.hitch(this,this._updateHueCursorNode),25,25)),this._connects.push(w.addKeyListener(this.cursorNode,{charOrCode:p.UP_ARROW,shiftKey:!1,metaKey:!1,
ctrlKey:!1,altKey:!1},this,l.hitch(this,this._updateCursorNode),25,25)),this._connects.push(w.addKeyListener(this.cursorNode,{charOrCode:p.DOWN_ARROW,shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1},this,l.hitch(this,this._updateCursorNode),25,25)),this._connects.push(w.addKeyListener(this.cursorNode,{charOrCode:p.LEFT_ARROW,shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1},this,l.hitch(this,this._updateCursorNode),25,25)),this._connects.push(w.addKeyListener(this.cursorNode,{charOrCode:p.RIGHT_ARROW,shiftKey:!1,
metaKey:!1,ctrlKey:!1,altKey:!1},this,l.hitch(this,this._updateCursorNode),25,25)))},_setValueAttr:function(a,b){this._started&&this.setColor(a,b)},setColor:function(a,b){a=u.fromString(a);this._updatePickerLocations(a);this._updateColorInputs(a);this._updateValue(a,b)},_setTimer:function(b){b.node!=this.cursorNode&&b.node!=this.hueCursorNode||(s.focus(b.node),a.setSelectable(this.domNode,!1),this._timer=setInterval(l.hitch(this,"_updateColor"),45))},_clearTimer:function(b){this._timer&&(clearInterval(this._timer),
this._timer=null,this.onChange(this.value),a.setSelectable(this.domNode,!0))},_setHue:function(a){e.style(this.colorUnderlay,"backgroundColor",u.fromHsv(a,100,100).toHex())},_updateHueCursorNode:function(a,b,c){if(-1!==a){a=e.style(this.hueCursorNode,"top");b=this.PICKER_HUE_SELECTOR_H/2;a+=b;var d=!1;c.charOrCode==p.UP_ARROW?0<a&&(a-=1,d=!0):c.charOrCode==p.DOWN_ARROW&&a<this.PICKER_HUE_H&&(a+=1,d=!0);d&&e.style(this.hueCursorNode,"top",a-b+"px")}else this._updateColor(!0)},_updateCursorNode:function(a,
b,c){b=this.PICKER_SAT_SELECTOR_H/2;var d=this.PICKER_SAT_SELECTOR_W/2;if(-1!==a){a=e.style(this.cursorNode,"top");var g=e.style(this.cursorNode,"left");a+=b;var g=g+d,f=!1;c.charOrCode==p.UP_ARROW?0<a&&(a-=1,f=!0):c.charOrCode==p.DOWN_ARROW?a<this.PICKER_SAT_VAL_H&&(a+=1,f=!0):c.charOrCode==p.LEFT_ARROW?0<g&&(g-=1,f=!0):c.charOrCode==p.RIGHT_ARROW&&g<this.PICKER_SAT_VAL_W&&(g+=1,f=!0);f&&(g-=d,e.style(this.cursorNode,"top",a-b+"px"),e.style(this.cursorNode,"left",g+"px"))}else this._updateColor(!0)},
_updateColor:function(a){var b=this.PICKER_HUE_SELECTOR_H/2,c=this.PICKER_SAT_SELECTOR_H/2,d=this.PICKER_SAT_SELECTOR_W/2,b=e.style(this.hueCursorNode,"top")+b,c=e.style(this.cursorNode,"top")+c,d=e.style(this.cursorNode,"left")+d,b=Math.round(360-360*(b/this.PICKER_HUE_H)),d=u.fromHsv(b,100*(d/this.PICKER_SAT_VAL_W),100-100*(c/this.PICKER_SAT_VAL_H));this._updateColorInputs(d);this._updateValue(d,a);b!=this._hue&&this._setHue(b)},_colorInputChange:function(a){var b,c=!1;switch(a.target){case this.hexCode:b=
u.fromString(a.target.value);c=!0;break;case this.Rval:case this.Gval:case this.Bval:b=u.fromArray([this.Rval.value,this.Gval.value,this.Bval.value]);c=!0;break;case this.Hval:case this.Sval:case this.Vval:b=u.fromHsv(this.Hval.value,this.Sval.value,this.Vval.value),c=!0}c&&(this._updatePickerLocations(b),this._updateColorInputs(b),this._updateValue(b,!0))},_updateValue:function(a,b){var c=a.toHex();this.value=this.valueNode.value=c;if(b&&(!this._timer||this.liveUpdate))this.onChange(c)},_updatePickerLocations:function(a){var b=
this.PICKER_HUE_SELECTOR_H/2,c=this.PICKER_SAT_SELECTOR_H/2,d=this.PICKER_SAT_SELECTOR_W/2;a=a.toHsv();b=Math.round(this.PICKER_HUE_H-a.h/360*this.PICKER_HUE_H)-b;d=Math.round(a.s/100*this.PICKER_SAT_VAL_W)-d;c=Math.round(this.PICKER_SAT_VAL_H-a.v/100*this.PICKER_SAT_VAL_H)-c;this.animatePoint?(n.slideTo({node:this.hueCursorNode,duration:this.slideDuration,top:b,left:0}).play(),n.slideTo({node:this.cursorNode,duration:this.slideDuration,top:c,left:d}).play()):(e.style(this.hueCursorNode,"top",b+"px"),
e.style(this.cursorNode,{left:d+"px",top:c+"px"}));a.h!=this._hue&&this._setHue(a.h)},_updateColorInputs:function(a){var b=a.toHex();this.showRgb&&(this.Rval.value=a.r,this.Gval.value=a.g,this.Bval.value=a.b);this.showHsv&&(a=a.toHsv(),this.Hval.value=Math.round(a.h),this.Sval.value=Math.round(a.s),this.Vval.value=Math.round(a.v));this.showHex&&(this.hexCode.value=b);this.previewNode.style.backgroundColor=b;this.webSafe&&(this.safePreviewNode.style.backgroundColor=b)},_setHuePoint:function(a){a=a.layerY-
this.PICKER_HUE_SELECTOR_H/2;this.animatePoint?n.slideTo({node:this.hueCursorNode,duration:this.slideDuration,top:a,left:0,onEnd:l.hitch(this,function(){this._updateColor(!1);s.focus(this.hueCursorNode)})}).play():(e.style(this.hueCursorNode,"top",a+"px"),this._updateColor(!1))},_setPoint:function(a){var b=a.layerY-this.PICKER_SAT_SELECTOR_H/2,c=a.layerX-this.PICKER_SAT_SELECTOR_W/2;a&&s.focus(a.target);this.animatePoint?n.slideTo({node:this.cursorNode,duration:this.slideDuration,top:b,left:c,onEnd:l.hitch(this,
function(){this._updateColor(!0);s.focus(this.cursorNode)})}).play():(e.style(this.cursorNode,{left:c+"px",top:b+"px"}),this._updateColor(!1))},_handleKey:function(a){},focus:function(){this.focused||s.focus(this.focusNode)},_stopDrag:function(a){b.stop(a)},destroy:function(){this.inherited(arguments);k.forEach(this._subs,function(a){c.unsubscribe(a)});delete this._subs}})})},"dojo/dnd/move":function(){define("../_base/declare ../dom-geometry ../dom-style ./common ./Mover ./Moveable".split(" "),function(f,
m,l,k,e,c){k=f("dojo.dnd.move.constrainedMoveable",c,{constraints:function(){},within:!1,constructor:function(c,d){d||(d={});this.constraints=d.constraints;this.within=d.within},onFirstMove:function(c){var d=this.constraintBox=this.constraints.call(this,c);d.r=d.l+d.w;d.b=d.t+d.h;this.within&&(c=m.getMarginSize(c.node),d.r-=c.w,d.b-=c.h)},onMove:function(c,d){var b=this.constraintBox,a=c.node.style;this.onMoving(c,d);d.l=d.l<b.l?b.l:b.r<d.l?b.r:d.l;d.t=d.t<b.t?b.t:b.b<d.t?b.b:d.t;a.left=d.l+"px";
a.top=d.t+"px";this.onMoved(c,d)}});e=f("dojo.dnd.move.boxConstrainedMoveable",k,{box:{},constructor:function(c,d){var b=d&&d.box;this.constraints=function(){return b}}});f=f("dojo.dnd.move.parentConstrainedMoveable",k,{area:"content",constructor:function(c,d){var b=d&&d.area;this.constraints=function(){var a=this.node.parentNode,c=l.getComputedStyle(a),d=m.getMarginBox(a,c);if("margin"==b)return d;var e=m.getMarginExtents(a,c);d.l+=e.l;d.t+=e.t;d.w-=e.w;d.h-=e.h;if("border"==b)return d;e=m.getBorderExtents(a,
c);d.l+=e.l;d.t+=e.t;d.w-=e.w;d.h-=e.h;if("padding"==b)return d;e=m.getPadExtents(a,c);d.l+=e.l;d.t+=e.t;d.w-=e.w;d.h-=e.h;return d}}});return{constrainedMoveable:k,boxConstrainedMoveable:e,parentConstrainedMoveable:f}})},"dijit/_base/focus":function(){define("dojo/_base/array dojo/dom dojo/_base/lang dojo/topic dojo/_base/window ../focus ../selection ../main".split(" "),function(f,m,l,k,e,c,g,d){c.focus=function(b){if(b){var a="node"in b?b.node:b,g=b.bookmark;b=b.openedForWindow;var f=g?g.isCollapsed:
!1;if(a){var k="iframe"==a.tagName.toLowerCase()?a.contentWindow:a;if(k&&k.focus)try{k.focus()}catch(l){}c._onFocusNode(a)}if(g&&e.withGlobal(b||e.global,d.isCollapsed)&&!f){b&&b.focus();try{e.withGlobal(b||e.global,d.moveToBookmark,null,[g])}catch(m){}}}};c.watch("curNode",function(b,a,c){d._curFocus=c;d._prevFocus=a;c&&k.publish("focusNode",c)});c.watch("activeStack",function(b,a,c){d._activeStack=c});c.on("widget-blur",function(b,a){k.publish("widgetBlur",b,a)});c.on("widget-focus",function(b,
a){k.publish("widgetFocus",b,a)});l.mixin(d,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return d.getBookmark().isCollapsed},getBookmark:function(){return(e.global==window?g:new g.SelectionManager(e.global)).getBookmark()},moveToBookmark:function(b){return(e.global==window?g:new g.SelectionManager(e.global)).moveToBookmark(b)},getFocus:function(b,a){var g=!c.curNode||b&&m.isDescendant(c.curNode,b.domNode)?d._prevFocus:c.curNode;return{node:g,bookmark:g&&g==c.curNode&&e.withGlobal(a||e.global,
d.getBookmark),openedForWindow:a}},_activeStack:[],registerIframe:function(b){return c.registerIframe(b)},unregisterIframe:function(b){b&&b.remove()},registerWin:function(b,a){return c.registerWin(b,a)},unregisterWin:function(b){b&&b.remove()}});return d})},"dojox/color":function(){define(["./color/_base"],function(f){return f})},"dojox/color/_base":function(){define(["../main","dojo/_base/lang","dojo/_base/Color","dojo/colors"],function(f,m,l,k){f=m.getObject("color",!0,f);f.Color=l;f.blend=l.blendColors;
f.fromRgb=l.fromRgb;f.fromHex=l.fromHex;f.fromArray=l.fromArray;f.fromString=l.fromString;f.greyscale=k.makeGrey;m.mixin(f,{fromCmy:function(e,c,g){m.isArray(e)?(c=e[1],g=e[2],e=e[0]):m.isObject(e)&&(c=e.m,g=e.y,e=e.c);c=1-c/100;g=1-g/100;return new l({r:Math.round(255*(1-e/100)),g:Math.round(255*c),b:Math.round(255*g)})},fromCmyk:function(e,c,g,d){m.isArray(e)?(c=e[1],g=e[2],d=e[3],e=e[0]):m.isObject(e)&&(c=e.m,g=e.y,d=e.b,e=e.c);c/=100;g/=100;d/=100;e=1-Math.min(1,e/100*(1-d)+d);c=1-Math.min(1,
c*(1-d)+d);g=1-Math.min(1,g*(1-d)+d);return new l({r:Math.round(255*e),g:Math.round(255*c),b:Math.round(255*g)})},fromHsl:function(e,c,g){m.isArray(e)?(c=e[1],g=e[2],e=e[0]):m.isObject(e)&&(c=e.s,g=e.l,e=e.h);c/=100;for(g/=100;0>e;)e+=360;for(;360<=e;)e-=360;var d,b;120>e?(d=(120-e)/60,b=e/60,e=0):240>e?(d=0,b=(240-e)/60,e=(e-120)/60):(d=(e-240)/60,b=0,e=(360-e)/60);d=2*c*Math.min(d,1)+(1-c);b=2*c*Math.min(b,1)+(1-c);e=2*c*Math.min(e,1)+(1-c);0.5>g?(d*=g,b*=g,e*=g):(d=(1-g)*d+2*g-1,b=(1-g)*b+2*g-
1,e=(1-g)*e+2*g-1);return new l({r:Math.round(255*d),g:Math.round(255*b),b:Math.round(255*e)})}});f.fromHsv=function(e,c,g){m.isArray(e)?(c=e[1],g=e[2],e=e[0]):m.isObject(e)&&(c=e.s,g=e.v,e=e.h);360==e&&(e=0);c/=100;g/=100;var d,b,a;if(0==c)b=a=d=g;else{var f=e/60;e=Math.floor(f);var k=f-e,f=g*(1-c),n=g*(1-c*k);c=g*(1-c*(1-k));switch(e){case 0:d=g;b=c;a=f;break;case 1:d=n;b=g;a=f;break;case 2:d=f;b=g;a=c;break;case 3:d=f;b=n;a=g;break;case 4:d=c;b=f;a=g;break;case 5:d=g,b=f,a=n}}return new l({r:Math.round(255*
d),g:Math.round(255*b),b:Math.round(255*a)})};m.extend(l,{toCmy:function(){var e=1-this.g/255,c=1-this.b/255;return{c:Math.round(100*(1-this.r/255)),m:Math.round(100*e),y:Math.round(100*c)}},toCmyk:function(){var e,c,g,d=this.r/255;e=this.g/255;c=this.b/255;g=Math.min(1-d,1-e,1-c);e=(1-e-g)/(1-g);c=(1-c-g)/(1-g);return{c:Math.round(100*((1-d-g)/(1-g))),m:Math.round(100*e),y:Math.round(100*c),b:Math.round(100*g)}},toHsl:function(){var e=this.r/255,c=this.g/255,g=this.b/255,d=Math.min(e,g,c),b=Math.max(e,
c,g),a=b-d,f=0,k=0,d=(d+b)/2;0<d&&1>d&&(k=a/(0.5>d?2*d:2-2*d));0<a&&(b==e&&b!=c&&(f+=(c-g)/a),b==c&&b!=g&&(f+=2+(g-e)/a),b==g&&b!=e&&(f+=4+(e-c)/a),f*=60);return{h:f,s:Math.round(100*k),l:Math.round(100*d)}},toHsv:function(){var e=this.r/255,c=this.g/255,g=this.b/255,d=Math.min(e,g,c),b=Math.max(e,c,g),d=b-d,a=null,f=0==b?0:d/b;0==f?a=0:(a=e==b?60*(c-g)/d:c==b?120+60*(g-e)/d:240+60*(e-c)/d,0>a&&(a+=360));return{h:a,s:Math.round(100*f),v:Math.round(100*b)}}});return f})},"dijit/_base/popup":function(){define(["dojo/dom-class",
"dojo/_base/window","../popup","../BackgroundIframe"],function(f,m,l){var k=l._createWrapper;l._createWrapper=function(c){c.declaredClass||(c={_popupWrapper:c.parentNode&&f.contains(c.parentNode,"dijitPopup")?c.parentNode:null,domNode:c,destroy:function(){},ownerDocument:c.ownerDocument,ownerDocumentBody:m.body(c.ownerDocument)});return k.call(this,c)};var e=l.open;l.open=function(c){if(c.orient&&"string"!=typeof c.orient&&!("length"in c.orient)){var g=[],d;for(d in c.orient)g.push({aroundCorner:d,
corner:c.orient[d]});c.orient=g}return e.call(this,c)};return l})},"dojox/editor/plugins/ResizeTableColumn":function(){define(["dojo","dijit","dojox","./TablePlugins"],function(f,m,l,k){var e=f.declare("dojox.editor.plugins.ResizeTableColumn",k,{constructor:function(){this.isLtr=this.dir?"ltr"==this.dir:f._isBodyLtr();this.ruleDiv=f.create("div",{style:"top: -10000px; z-index: 10001"},f.body(),"last")},setEditor:function(c){function e(a,b){var c=f.query("\x3e td",a.parentNode);switch(b){case "first":return c[0]==
a;case "last":return c[c.length-1]==a;default:return!1}}function d(a){for(a=a.nextSibling;a&&!(a.tagName&&"td"==a.tagName.toLowerCase());)a=a.nextSibling;return a}function b(a){for(;(a=a.parentNode)&&"table"!=a.tagName.toLowerCase(););return a}function a(a){for(var c=f.query("td",b(a)),d=c.length,e=0;e<d;e++)if(f.position(c[e]).x==f.position(a).x)return c[e];return null}function h(a,b){function c(a,b){if(!b)return 0;if("medium"==b)return 1;if(b.slice&&"px"==b.slice(-2))return parseFloat(b);with(a){var d=
style.left,e=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=b,b=style.pixelLeft}catch(g){b=0}style.left=d;runtimeStyle.left=e}return b}if(f.isIE){var d=a.currentStyle,e=c(a,d.borderLeftWidth),g=c(a,d.borderRightWidth),h=c(a,d.paddingLeft),d=c(a,d.paddingRight);a.style.width=b-e-g-h-d}else f.marginBox(a,{w:b})}var k=this.ruleDiv;this.editor=c;this.editor.customUndo=!0;this.onEditorLoaded();c.onLoadDeferred.addCallback(f.hitch(this,function(){this.connect(this.editor.editNode,
"onmousemove",function(a){var h=f.position(c.iframe,!0),l=h.x,m=a.clientX;if(this.isDragging){var r=this.activeCell;a=f.position(r);h=a.x;a=a.w;var w=d(r),u,v,x=f.position(b(r).parentNode),r=x.x,x=x.w;w&&(u=f.position(w),v=u.x,u=u.w);(this.isLtr&&(k.headerColumn&&w&&r<m&&m<h+a||!w&&h<m&&m<r+x||w&&h<m&&m<v+u)||!this.isLtr&&(k.headerColumn&&w&&r>m&&m>h||!w&&h+a>m&&m>r||w&&h+a>m&&m>v))&&f.style(k,{left:l+m+"px"})}else if(v=a.target,v.tagName&&"td"==v.tagName.toLowerCase()){u=f.position(v);a=u.x;w=u.w;
l=l+u.x-2;if(this.isLtr){if(k.headerColumn=!0,!e(v,"first")||m>a+w/2)l+=w,k.headerColumn=!1}else k.headerColumn=!1,e(v,"first")&&m>a+w/2&&(l+=w,k.headerColumn=!0);f.style(k,{position:"absolute",cursor:"col-resize",display:"block",width:"4px",backgroundColor:"transparent",top:h.y+u.y+"px",left:l+"px",height:u.h+"px"});this.activeCell=v}else f.style(k,{display:"none",top:"-10000px"})});this.connect(k,"onmousedown",function(a){var d=f.position(c.iframe,!0),e=f.position(b(this.activeCell));this.isDragging=
!0;f.style(c.editNode,{cursor:"col-resize"});f.style(k,{width:"1px",left:a.clientX+"px",top:d.y+e.y+"px",height:e.h+"px",backgroundColor:"#777"})});this.connect(k,"onmouseup",function(l){var m=this.activeCell,q=f.position(m),s=q.w,r=q.x,q=d(m),w,u,v=f.position(c.iframe).x,x=b(m),y=f.position(x),z=x.getAttribute("cellspacing");l=l.clientX;var A=a(m),E,B;if(!z||0>(z=parseInt(z,10)))z=2;q&&(w=f.position(q),u=w.x,w=w.w,E=a(q));this.isLtr?k.headerColumn?r=v+r+s-l:(r=l-v-r,q&&(B=v+u+w-l-z)):k.headerColumn?
r=l-v-r:(r=v+r+s-l,q&&(B=l-v-u-z));this.isDragging=!1;h(A,r);q&&(k.headerColumn||h(E,B));(k.headerColumn&&e(m,"first")||e(m,"last"))&&f.marginBox(x,{w:y.w+r-s});h(A,f.position(m).w);q&&h(E,f.position(q).w);f.style(c.editNode,{cursor:"auto"});f.style(k,{display:"none",top:"-10000px"});this.activeCell=null})}))}});f.subscribe(m._scopeName+".Editor.getPlugin",null,function(c){if(!c.plugin&&c.args&&c.args.command){var g=c.args.command.charAt(0).toLowerCase()+c.args.command.substring(1,c.args.command.length);
"resizeTableColumn"==g&&(c.plugin=new e({commandName:g}))}});return e})},"dojox/editor/plugins/PasteFromWord":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/_base/manager dijit/_editor/RichText dijit/form/Button dijit/Dialog dojox/html/format dojo/_base/connect dojo/_base/declare dojo/i18n dojo/string dojo/i18n!dojox/editor/plugins/nls/PasteFromWord dojo/i18n!dijit/nls/common dojo/i18n!dijit/_editor/nls/commands".split(" "),function(f,m,l,k){var e=f.declare("dojox.editor.plugins.PasteFromWord",
k,{iconClassPrefix:"dijitAdditionalEditorIcon",width:"400px",height:"300px",_template:"\x3cdiv class\x3d'dijitPasteFromWordEmbeddedRTE'\x3e\x3cdiv style\x3d'width: ${width}; padding-top: 5px; padding-bottom: 5px;'\x3e${instructions}\x3c/div\x3e\x3cdiv id\x3d'${uId}_rte' style\x3d'width: ${width}; height: ${height}'\x3e\x3c/div\x3e\x3ctable style\x3d'width: ${width}' tabindex\x3d'-1'\x3e\x3ctbody\x3e\x3ctr\x3e\x3ctd align\x3d'center'\x3e\x3cbutton type\x3d'button' dojoType\x3d'dijit.form.Button' id\x3d'${uId}_paste'\x3e${paste}\x3c/button\x3e\x26nbsp;\x3cbutton type\x3d'button' dojoType\x3d'dijit.form.Button' id\x3d'${uId}_cancel'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e\x3c/div\x3e",
_filters:[{regexp:/(<meta\s*[^>]*\s*>)|(<\s*link\s* href="file:[^>]*\s*>)|(<\/?\s*\w+:[^>]*\s*>)/gi,handler:""},{regexp:/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,handler:""},{regexp:/(class="Mso[^"]*")|(\x3c!--(.|\s){1,}?--\x3e)/gi,handler:""},{regexp:/(<p[^>]*>\s*(\&nbsp;|\u00A0)*\s*<\/p[^>]*>)|(<p[^>]*>\s*<font[^>]*>\s*(\&nbsp;|\u00A0)*\s*<\/\s*font\s*>\s<\/p[^>]*>)/ig,handler:""},{regexp:/(style="[^"]*mso-[^;][^"]*")|(style="margin:\s*[^;"]*;")/gi,
handler:""},{regexp:/(<\s*script[^>]*>((.|\s)*?)<\\?\/\s*script\s*>)|(<\s*script\b([^<>]|\s)*>?)|(<[^>]*=(\s|)*[("|')]javascript:[^$1][(\s|.)]*[$1][^>]*>)/ig,handler:""},{regexp:/<(\/?)o\:p[^>]*>/gi,handler:""}],_initButton:function(){this._filters=this._filters.slice(0);var c=f.i18n.getLocalization("dojox.editor.plugins","PasteFromWord");f.mixin(c,f.i18n.getLocalization("dijit","common"));f.mixin(c,f.i18n.getLocalization("dijit._editor","commands"));this.button=new m.form.Button({label:c.pasteFromWord,
showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"PasteFromWord",tabIndex:"-1",onClick:f.hitch(this,"_openDialog")});this._uId=m.getUniqueId(this.editor.id);c.uId=this._uId;c.width=this.width||"400px";c.height=this.height||"300px";this._dialog=(new m.Dialog({title:c.pasteFromWord})).placeAt(f.body());this._dialog.set("content",f.string.substitute(this._template,c));f.style(f.byId(this._uId+"_rte"),"opacity",0.001);this.connect(m.byId(this._uId+"_paste"),"onClick","_paste");this.connect(m.byId(this._uId+
"_cancel"),"onClick","_cancel");this.connect(this._dialog,"onHide","_clearDialog")},updateState:function(){this.button.set("disabled",this.get("disabled"))},setEditor:function(c){this.editor=c;this._initButton()},_openDialog:function(){this._dialog.show();this._rte||setTimeout(f.hitch(this,function(){this._rte=new m._editor.RichText({height:this.height||"300px"},this._uId+"_rte");this._rte.startup();this._rte.onLoadDeferred.addCallback(f.hitch(this,function(){f.animateProperty({node:this._rte.domNode,
properties:{opacity:{start:0.001,end:1}}}).play()}))}),100)},_paste:function(){var c=l.html.format.prettyPrint(this._rte.get("value"));this._dialog.hide();var e;for(e=0;e<this._filters.length;e++)var d=this._filters[e],c=c.replace(d.regexp,d.handler);c=l.html.format.prettyPrint(c);this.editor.focus();this.editor.execCommand("inserthtml",c)},_cancel:function(){this._dialog.hide()},_clearDialog:function(){this._rte.set("value","")},destroy:function(){this._rte&&this._rte.destroy();this._dialog&&this._dialog.destroyRecursive();
delete this._dialog;delete this._rte;this.inherited(arguments)}});f.subscribe(m._scopeName+".Editor.getPlugin",null,function(c){!c.plugin&&"pastefromword"===c.args.name.toLowerCase()&&(c.plugin=new e({width:"width"in c.args?c.args.width:"400px",height:"height"in c.args?c.args.width:"300px"}))});return e})},"dojox/html/format":function(){define(["dojo/_base/kernel","./entities","dojo/_base/array","dojo/_base/window","dojo/_base/sniff"],function(f,m,l,k,e){var c=f.getObject("dojox.html.format",!0);
c.prettyPrint=function(c,d,b,a,h){var p=[],n=0,t=[],q="\t",s="",r=[],w,u=/[=]([^"']+?)(\s|>)/g,v=/style=("[^"]*"|'[^']*'|\S*)/gi,x=/[\w-]+=("[^"]*"|'[^']*'|\S*)/gi;if(d&&0<d&&10>d){q="";for(w=0;w<d;w++)q+=" "}d=k.doc.createElement("div");d.innerHTML=c;var y=m.encode,z=m.decode,A=d.ownerDocument.createElement("div"),E=function(a){a=a.cloneNode(!1);A.appendChild(a);a=A.innerHTML;A.innerHTML="";return a},B=function(){var a;for(a=0;a<n;a++)p.push(q)},G=function(){p.push("\n")},L=function(a){var c,d;a=
a.split("\n");for(c=0;c<a.length;c++)a[c]=f.trim(a[c]);a=a.join(" ");a=f.trim(a);if(""!==a){var e=[];if(b&&0<b){var g="";for(c=0;c<n;c++)g+=q;c=g.length;g=b;for(b>c&&(g-=c);a;)if(a.length>b){for(c=g;0<c&&" "!==a.charAt(c);c--);if(!c)for(c=g;c<a.length&&" "!==a.charAt(c);c++);var h=a.substring(0,c),h=f.trim(h);a=f.trim(a.substring(c==a.length?a.length:c+1,a.length));if(h){d="";for(c=0;c<n;c++)d+=q;h=d+h+"\n"}e.push(h)}else{d="";for(c=0;c<n;c++)d+=q;a=d+a+"\n";e.push(a);a=null}return e.join("")}d="";
for(c=0;c<n;c++)d+=q;return d+a+"\n"}return""},I=function(a){if(a){var b=a;b&&(b=b.replace(/&quot;/gi,'"'),b=b.replace(/&gt;/gi,"\x3e"),b=b.replace(/&lt;/gi,"\x3c"),b=b.replace(/&amp;/gi,"\x26"));var c,d;a=0;for(var e=b.split("\n"),g=[],b=0;b<e.length;b++){var h=e[b],k=-1<h.indexOf("\n");if(h=f.trim(h)){k=a;for(c=0;c<h.length;c++)d=h.charAt(c),"{"===d?a++:"}"===d&&(a--,k=a);d="";for(c=0;c<n+k;c++)d+=q;g.push(d+h+"\n")}else k&&0===b&&g.push("\n")}a=g.join("")}return a},J=function(a){var b=a.nodeName.toLowerCase(),
c=f.trim(E(a));a=c.substring(0,c.indexOf("\x3e")+1);a=a.replace(u,'\x3d"$1"$2');a=a.replace(v,function(a){var b=a.substring(0,6);a=a.substring(6,a.length);var c=a.charAt(0);a=f.trim(a.substring(1,a.length-1));a=a.split(";");var d=[];l.forEach(a,function(a){if(a=f.trim(a))a=a.substring(0,a.indexOf(":")).toLowerCase()+a.substring(a.indexOf(":"),a.length),d.push(a)});d=d.sort();a=d.join("; ");var e=f.trim(a);return!e||";"===e?"":b+c+(a+";")+c});var d=[];a=a.replace(x,function(a){d.push(f.trim(a));return""});
d=d.sort();a="\x3c"+b;d.length&&(a+=" "+d.join(" "));-1!=c.indexOf("\x3c/")?(t.push(b),a+="\x3e"):(a=h?a+" /\x3e":a+"\x3e",t.push(!1));a:switch(b){case "a":case "b":case "strong":case "s":case "strike":case "i":case "u":case "em":case "sup":case "sub":case "span":case "font":case "big":case "cite":case "q":case "small":b=!0;break a;default:b=!1}r.push(b);s&&!b&&(p.push(L(s)),s="");b?s+=a:(B(),p.push(a),G(),n++)},H=function(b){var c=b.childNodes;if(c){var d;for(d=0;d<c.length;d++){var g=c[d];if(1===
g.nodeType){var h=f.trim(g.tagName.toLowerCase());!(e("ie")&&g.parentNode!=b)&&!(h&&"/"===h.charAt(0))&&(J(g),"script"===h?p.push(I(g.innerHTML)):"pre"===h?(g=g.innerHTML,e("mozilla")&&(g=g.replace("\x3cbr\x3e","\n"),g=g.replace("\x3cpre\x3e",""),g=g.replace("\x3c/pre\x3e","")),"\n"!==g.charAt(g.length-1)&&(g+="\n"),p.push(g)):H(g),g=r.pop(),s&&!g&&(p.push(L(s)),s=""),(h=t.pop())?(h="\x3c/"+h+"\x3e",g?s+=h:(n--,B(),p.push(h),G())):n--)}else 3===g.nodeType||4===g.nodeType?s+=y(g.nodeValue,a):8===g.nodeType&&
(g=z(g.nodeValue,a),B(),p.push("\x3c!--"),G(),n++,p.push(L(g)),n--,B(),p.push("--\x3e"),G())}}};H(d);s&&(p.push(L(s)),s="");return p.join("")};return c})},"dojox/editor/plugins/InsertAnchor":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/_base/manager dijit/_editor/range dijit/_Templated dijit/TooltipDialog dijit/form/ValidationTextBox dijit/form/Select dijit/form/Button dijit/form/DropDownButton dojo/_base/declare dojo/i18n dojo/string dojo/NodeList-dom dojox/editor/plugins/ToolbarLineBreak dojo/i18n!dojox/editor/plugins/nls/InsertAnchor dojo/i18n!dijit/nls/common".split(" "),
function(f,m,l,k){var e=f.declare("dojox.editor.plugins.InsertAnchor",k,{htmlTemplate:'\x3ca name\x3d"${anchorInput}" class\x3d"dijitEditorPluginInsertAnchorStyle"\x3e${textInput}\x3c/a\x3e',iconClassPrefix:"dijitAdditionalEditorIcon",_template:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_anchorInput'\x3e${anchor}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_anchorInput' name\x3d'anchorInput' intermediateChanges\x3d'true'\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_textInput' name\x3d'textInput' intermediateChanges\x3d'true'\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton dojoType\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton dojoType\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${cancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
_initButton:function(){var c=this,e=f.i18n.getLocalization("dojox.editor.plugins","InsertAnchor",this.lang),d=this.dropDown=new m.TooltipDialog({title:e.title,execute:f.hitch(this,"setValue"),onOpen:function(){c._onOpenDialog();m.TooltipDialog.prototype.onOpen.apply(this,arguments)},onCancel:function(){setTimeout(f.hitch(c,"_onCloseDialog"),0)}});this.button=new m.form.DropDownButton({label:e.insertAnchor,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"InsertAnchor",tabIndex:"-1",
dropDown:this.dropDown});e.id=m.getUniqueId(this.editor.id);this._uniqueId=e.id;this.dropDown.set("content",d.title+"\x3cdiv style\x3d'border-bottom: 1px black solid;padding-bottom:2pt;margin-bottom:4pt'\x3e\x3c/div\x3e"+f.string.substitute(this._template,e));d.startup();this._anchorInput=m.byId(this._uniqueId+"_anchorInput");this._textInput=m.byId(this._uniqueId+"_textInput");this._setButton=m.byId(this._uniqueId+"_setButton");this.connect(m.byId(this._uniqueId+"_cancelButton"),"onClick",function(){this.dropDown.onCancel()});
this._anchorInput&&this.connect(this._anchorInput,"onChange","_checkInput");this._textInput&&this.connect(this._anchorInput,"onChange","_checkInput");this.editor.contentDomPreFilters.push(f.hitch(this,this._preDomFilter));this.editor.contentDomPostFilters.push(f.hitch(this,this._postDomFilter));this._setup()},updateState:function(){this.button.set("disabled",this.get("disabled"))},setEditor:function(c){this.editor=c;this._initButton()},_checkInput:function(){var c=!0;this._anchorInput.isValid()&&
(c=!1);this._setButton.set("disabled",c)},_setup:function(){this.editor.onLoadDeferred.addCallback(f.hitch(this,function(){this.connect(this.editor.editNode,"ondblclick",this._onDblClick);setTimeout(f.hitch(this,function(){this._applyStyles()}),100)}))},getAnchorStyle:function(){var c=f.moduleUrl(l._scopeName,"editor/plugins/resources").toString();if(!c.match(/^https?:\/\//i)&&!c.match(/^file:\/\//i)){var e;e="/"===c.charAt(0)?f.doc.location.protocol+"//"+f.doc.location.host:this._calcBaseUrl(f.global.location.href);
"/"!==e[e.length-1]&&"/"!==c.charAt(0)&&(e+="/");c=e+c}return"@media screen {\n\t.dijitEditorPluginInsertAnchorStyle {\n\t\tbackground-image: url({MODURL}/images/anchor.gif);\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: top left;\n\t\tborder-width: 1px;\n\t\tborder-style: dashed;\n\t\tborder-color: #D0D0D0;\n\t\tpadding-left: 20px;\n\t}\n}\n".replace(/\{MODURL\}/gi,c)},_applyStyles:function(){if(!this._styled)try{this._styled=!0;var c=this.editor.document,e=this.getAnchorStyle();if(f.isIE)c.createStyleSheet("").cssText=
e;else{var d=c.createElement("style");d.appendChild(c.createTextNode(e));c.getElementsByTagName("head")[0].appendChild(d)}}catch(b){}},_calcBaseUrl:function(c){var e=null;null!==c&&(e=c.indexOf("?"),-1!=e&&(c=c.substring(0,e)),e=c.lastIndexOf("/"),e=0<e&&e<c.length?c.substring(0,e):c);return e},_checkValues:function(c){c&&(c.anchorInput&&(c.anchorInput=c.anchorInput.replace(/"/g,"\x26quot;")),c.textInput||(c.textInput="\x26nbsp;"));return c},setValue:function(c){this._onCloseDialog();if(!this.editor.window.getSelection){var e=
m.range.getSelection(this.editor.window).getRangeAt(0).endContainer;3===e.nodeType&&(e=e.parentNode);e&&(e.nodeName&&"a"!==e.nodeName.toLowerCase())&&(e=this.editor._sCall("getSelectedElement",["a"]));e&&(e.nodeName&&"a"===e.nodeName.toLowerCase())&&this.editor.queryCommandEnabled("unlink")&&(this.editor._sCall("selectElementChildren",[e]),this.editor.execCommand("unlink"))}c=this._checkValues(c);this.editor.execCommand("inserthtml",f.string.substitute(this.htmlTemplate,c))},_onCloseDialog:function(){this.editor.focus()},
_getCurrentValues:function(c){var e,d;c&&"a"===c.tagName.toLowerCase()&&f.attr(c,"name")?(e=f.attr(c,"name"),d=c.textContent||c.innerText,this.editor._sCall("selectElement",[c,!0])):d=this.editor._sCall("getSelectedText");return{anchorInput:e||"",textInput:d||""}},_onOpenDialog:function(){var c;this.editor.window.getSelection?c=this.editor._sCall("getAncestorElement",["a"]):(c=m.range.getSelection(this.editor.window).getRangeAt(0).endContainer,3===c.nodeType&&(c=c.parentNode),c&&(c.nodeName&&"a"!==
c.nodeName.toLowerCase())&&(c=this.editor._sCall("getSelectedElement",["a"])));this.dropDown.reset();this._setButton.set("disabled",!0);this.dropDown.set("value",this._getCurrentValues(c))},_onDblClick:function(c){if(c&&c.target&&(c=c.target,"a"===(c.tagName?c.tagName.toLowerCase():"")&&f.attr(c,"name")))this.editor.onDisplayChanged(),this.editor._sCall("selectElement",[c]),setTimeout(f.hitch(this,function(){this.button.set("disabled",!1);this.button.openDropDown();this.button.dropDown.focus&&this.button.dropDown.focus()}),
10)},_preDomFilter:function(c){f.query("a[name]:not([href])",this.editor.editNode).addClass("dijitEditorPluginInsertAnchorStyle")},_postDomFilter:function(c){c&&f.query("a[name]:not([href])",c).removeClass("dijitEditorPluginInsertAnchorStyle");return c}});f.subscribe(m._scopeName+".Editor.getPlugin",null,function(c){if(!c.plugin){var g=c.args.name;g&&(g=g.toLowerCase());"insertanchor"===g&&(c.plugin=new e)}});return e})},"dijit/_Templated":function(){define("./_WidgetBase ./_TemplatedMixin ./_WidgetsInTemplateMixin dojo/_base/array dojo/_base/declare dojo/_base/lang dojo/_base/kernel".split(" "),
function(f,m,l,k,e,c,g){c.extend(f,{waiRole:"",waiState:""});return e("dijit._Templated",[m,l],{constructor:function(){g.deprecated(this.declaredClass+": dijit._Templated deprecated, use dijit._TemplatedMixin and if necessary dijit._WidgetsInTemplateMixin","","2.0")},_processNode:function(c,b){var a=this.inherited(arguments),e=b(c,"waiRole");e&&c.setAttribute("role",e);(e=b(c,"waiState"))&&k.forEach(e.split(/\s*,\s*/),function(a){-1!=a.indexOf("-")&&(a=a.split("-"),c.setAttribute("aria-"+a[0],a[1]))});
return a}})})},"dijit/form/Select":function(){define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/i18n dojo/keys dojo/_base/lang dojo/on dojo/sniff ./_FormSelectWidget ../_HasDropDown ../DropDownMenu ../MenuItem ../MenuSeparator ../Tooltip ../_KeyNavMixin ../registry dojo/text!./templates/Select.html dojo/i18n!./nls/validate".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r,w,u){function v(a){return function(b){this._isLoaded?this.inherited(a,arguments):
this.loadDropDown(d.hitch(this,a,b))}}var x=m("dijit.form._SelectMenu",n,{autoFocus:!0,buildRendering:function(){this.inherited(arguments);this.domNode.setAttribute("role","listbox")},postCreate:function(){this.inherited(arguments);this.own(b(this.domNode,"selectstart",function(a){a.preventDefault();a.stopPropagation()}))},focus:function(){var a=!1,b=this.parentWidget.value;d.isArray(b)&&(b=b[b.length-1]);b&&f.forEach(this.parentWidget._getChildren(),function(c){c.option&&b===c.option.value&&(a=!0,
this.focusChild(c,!1))},this);a||this.inherited(arguments)}});e=m("dijit.form.Select"+(a("dojo-bidi")?"_NoBidi":""),[h,p,r],{baseClass:"dijitSelect dijitValidationTextBox",templateString:u,_buttonInputDisabled:a("ie")?"disabled":"",required:!1,state:"",message:"",tooltipPosition:[],emptyLabel:"\x26#160;",_isLoaded:!1,_childrenLoaded:!1,labelType:"html",_fillContent:function(){this.inherited(arguments);if(this.options.length&&!this.value&&this.srcNodeRef){var a=this.srcNodeRef.selectedIndex||0;this._set("value",
this.options[0<=a?a:0].value)}this.dropDown=new x({id:this.id+"_menu",parentWidget:this});k.add(this.dropDown.domNode,this.baseClass.replace(/\s+|$/g,"Menu "))},_getMenuItemForOption:function(a){if(!a.value&&!a.label)return new q({ownerDocument:this.ownerDocument});var b=d.hitch(this,"_setValueAttr",a);a=new t({option:a,label:("text"===this.labelType?(a.label||"").toString().replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;"):a.label)||this.emptyLabel,onClick:b,ownerDocument:this.ownerDocument,dir:this.dir,
textDir:this.textDir,disabled:a.disabled||!1});a.focusNode.setAttribute("role","option");return a},_addOptionItem:function(a){this.dropDown&&this.dropDown.addChild(this._getMenuItemForOption(a))},_getChildren:function(){return!this.dropDown?[]:this.dropDown.getChildren()},focus:function(){if(!this.disabled&&this.focusNode.focus)try{this.focusNode.focus()}catch(a){}},focusChild:function(a){a&&this.set("value",a.option)},_getFirst:function(){var a=this._getChildren();return a.length?a[0]:null},_getLast:function(){var a=
this._getChildren();return a.length?a[a.length-1]:null},childSelector:function(a){return(a=w.byNode(a))&&a.getParent()==this.dropDown},onKeyboardSearch:function(a,b,c,d){a&&this.focusChild(a)},_loadChildren:function(a){if(!0===a)if(this.dropDown&&(delete this.dropDown.focusedChild,this.focusedChild=null),this.options.length)this.inherited(arguments);else{f.forEach(this._getChildren(),function(a){a.destroyRecursive()});var b=new t({ownerDocument:this.ownerDocument,label:this.emptyLabel});this.dropDown.addChild(b)}else this._updateSelection();
this._isLoaded=!1;this._childrenLoaded=!0;this._loadingStore||this._setValueAttr(this.value,!1)},_refreshState:function(){this._started&&this.validate(this.focused)},startup:function(){this.inherited(arguments);this._refreshState()},_setValueAttr:function(a){this.inherited(arguments);l.set(this.valueNode,"value",this.get("value"));this._refreshState()},_setNameAttr:"valueNode",_setDisabledAttr:function(a){this.inherited(arguments);this._refreshState()},_setRequiredAttr:function(a){this._set("required",
a);this.focusNode.setAttribute("aria-required",a);this._refreshState()},_setOptionsAttr:function(a){this._isLoaded=!1;this._set("options",a)},_setDisplay:function(a){a=("text"===this.labelType?(a||"").replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;"):a)||this.emptyLabel;this.containerNode.innerHTML='\x3cspan role\x3d"option" aria-selected\x3d"true" class\x3d"dijitReset dijitInline '+this.baseClass.replace(/\s+|$/g,"Label ")+'"\x3e'+a+"\x3c/span\x3e"},validate:function(a){a=this.disabled||this.isValid(a);
this._set("state",a?"":this._hasBeenBlurred?"Error":"Incomplete");this.focusNode.setAttribute("aria-invalid",a?"false":"true");var b=a?"":this._missingMsg;b&&this.focused&&this._hasBeenBlurred?s.show(b,this.domNode,this.tooltipPosition,!this.isLeftToRight()):s.hide(this.domNode);this._set("message",b);return a},isValid:function(){return!this.required||0===this.value||!/^\s*$/.test(this.value||"")},reset:function(){this.inherited(arguments);s.hide(this.domNode);this._refreshState()},postMixInProperties:function(){this.inherited(arguments);
this._missingMsg=c.getLocalization("dijit.form","validate",this.lang).missingMessage},postCreate:function(){this.inherited(arguments);this.own(b(this.domNode,"selectstart",function(a){a.preventDefault();a.stopPropagation()}));this.domNode.setAttribute("aria-expanded","false");var a=this._keyNavCodes;delete a[g.LEFT_ARROW];delete a[g.RIGHT_ARROW]},_setStyleAttr:function(a){this.inherited(arguments);k.toggle(this.domNode,this.baseClass.replace(/\s+|$/g,"FixedWidth "),!!this.domNode.style.width)},isLoaded:function(){return this._isLoaded},
loadDropDown:function(a){this._loadChildren(!0);this._isLoaded=!0;a()},destroy:function(a){this.dropDown&&!this.dropDown._destroyed&&(this.dropDown.destroyRecursive(a),delete this.dropDown);s.hide(this.domNode);this.inherited(arguments)},_onFocus:function(){this.validate(!0)},_onBlur:function(){s.hide(this.domNode);this.inherited(arguments);this.validate(!1)}});a("dojo-bidi")&&(e=m("dijit.form.Select",e,{_setDisplay:function(a){this.inherited(arguments);this.applyTextDir(this.containerNode)}}));e._Menu=
x;e.prototype._onContainerKeydown=v("_onContainerKeydown");e.prototype._onContainerKeypress=v("_onContainerKeypress");return e})},"dijit/form/_FormSelectWidget":function(){define("dojo/_base/array dojo/_base/Deferred dojo/aspect dojo/data/util/sorter dojo/_base/declare dojo/dom dojo/dom-class dojo/_base/kernel dojo/_base/lang dojo/query dojo/when dojo/store/util/QueryResults ./_FormValueWidget".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p,n){return e("dijit.form._FormSelectWidget",n,{multiple:!1,options:null,
store:null,_setStoreAttr:function(a){this._created&&this._deprecatedSetStore(a)},query:null,_setQueryAttr:function(a){this._created&&this._deprecatedSetStore(this.store,this.selectedValue,{query:a})},queryOptions:null,_setQueryOptionsAttr:function(a){this._created&&this._deprecatedSetStore(this.store,this.selectedValue,{queryOptions:a})},labelAttr:"",onFetch:null,sortByLabel:!0,loadChildrenOnOpen:!1,onLoadDeferred:null,getOptions:function(a){var c=this.options||[];if(null==a)return c;if(b.isArrayLike(a))return f.map(a,
"return this.getOptions(item);",this);b.isString(a)&&(a={value:a});b.isObject(a)&&(f.some(c,function(b,c){for(var d in a)if(!(d in b)||b[d]!=a[d])return!1;a=c;return!0})||(a=-1));return 0<=a&&a<c.length?c[a]:null},addOption:function(a){f.forEach(b.isArrayLike(a)?a:[a],function(a){a&&b.isObject(a)&&this.options.push(a)},this);this._loadChildren()},removeOption:function(a){a=this.getOptions(b.isArrayLike(a)?a:[a]);f.forEach(a,function(a){a&&(this.options=f.filter(this.options,function(b){return b.value!==
a.value||b.label!==a.label}),this._removeOptionItem(a))},this);this._loadChildren()},updateOption:function(a){f.forEach(b.isArrayLike(a)?a:[a],function(a){var b=this.getOptions({value:a.value}),c;if(b)for(c in a)b[c]=a[c]},this);this._loadChildren()},setStore:function(a,b,c){d.deprecated(this.declaredClass+"::setStore(store, selectedValue, fetchArgs) is deprecated. Use set('query', fetchArgs.query), set('queryOptions', fetchArgs.queryOptions), set('store', store), or set('value', selectedValue) instead.",
"","2.0");this._deprecatedSetStore(a,b,c)},_deprecatedSetStore:function(a,c,d){var e=this.store;d=d||{};if(e!==a){for(var g;g=this._notifyConnections.pop();)g.remove();a.get||(b.mixin(a,{_oldAPI:!0,get:function(a){var b=new m;this.fetchItemByIdentity({identity:a,onItem:function(a){b.resolve(a)},onError:function(a){b.reject(a)}});return b.promise},query:function(a,c){var d=new m(function(){e.abort&&e.abort()});d.total=new m;var e=this.fetch(b.mixin({query:a,onBegin:function(a){d.total.resolve(a)},
onComplete:function(a){d.resolve(a)},onError:function(a){d.reject(a)}},c));return new p(d)}}),a.getFeatures()["dojo.data.api.Notification"]&&(this._notifyConnections=[l.after(a,"onNew",b.hitch(this,"_onNewItem"),!0),l.after(a,"onDelete",b.hitch(this,"_onDeleteItem"),!0),l.after(a,"onSet",b.hitch(this,"_onSetItem"),!0)]));this._set("store",a)}this.options&&this.options.length&&this.removeOption(this.options);this._queryRes&&this._queryRes.close&&this._queryRes.close();this._observeHandle&&this._observeHandle.remove&&
(this._observeHandle.remove(),this._observeHandle=null);d.query&&this._set("query",d.query);d.queryOptions&&this._set("queryOptions",d.queryOptions);a&&a.query&&(this._loadingStore=!0,this.onLoadDeferred=new m,this._queryRes=a.query(this.query,this.queryOptions),h(this._queryRes,b.hitch(this,function(e){if(this.sortByLabel&&!d.sort&&e.length)if(a.getValue)e.sort(k.createSortFunction([{attribute:a.getLabelAttributes(e[0])[0]}],a));else{var g=this.labelAttr;e.sort(function(a,b){return a[g]>b[g]?1:b[g]>
a[g]?-1:0})}d.onFetch&&(e=d.onFetch.call(this,e,d));f.forEach(e,function(a){this._addOptionForItem(a)},this);this._queryRes.observe&&(this._observeHandle=this._queryRes.observe(b.hitch(this,function(a,b,c){b==c?this._onSetItem(a):(-1!=b&&this._onDeleteItem(a),-1!=c&&this._onNewItem(a))}),!0));this._loadingStore=!1;this.set("value","_pendingValue"in this?this._pendingValue:c);delete this._pendingValue;this.loadChildrenOnOpen?this._pseudoLoadChildren(e):this._loadChildren();this.onLoadDeferred.resolve(!0);
this.onSetStore()}),b.hitch(this,function(a){console.error("dijit.form.Select: "+a.toString());this.onLoadDeferred.reject(a)})));return e},_setValueAttr:function(a,c){this._onChangeActive||(c=null);if(this._loadingStore)this._pendingValue=a;else if(null!=a){a=b.isArrayLike(a)?f.map(a,function(a){return b.isObject(a)?a:{value:a}}):b.isObject(a)?[a]:[{value:a}];a=f.filter(this.getOptions(a),function(a){return a&&a.value});var d=this.getOptions()||[];if(!this.multiple&&(!a[0]||!a[0].value)&&d.length)a[0]=
d[0];f.forEach(d,function(b){b.selected=f.some(a,function(a){return a.value===b.value})});d=f.map(a,function(a){return a.value});if(!("undefined"==typeof d||"undefined"==typeof d[0])){var e=f.map(a,function(a){return a.label});this._setDisplay(this.multiple?e:e[0]);this.inherited(arguments,[this.multiple?d:d[0],c]);this._updateSelection()}}},_getDisplayedValueAttr:function(){var a=f.map([].concat(this.get("selectedOptions")),function(a){return a&&"label"in a?a.label:a?a.value:null},this);return this.multiple?
a:a[0]},_setDisplayedValueAttr:function(a){this.set("value",this.getOptions("string"==typeof a?{label:a}:a))},_loadChildren:function(){this._loadingStore||(f.forEach(this._getChildren(),function(a){a.destroyRecursive()}),f.forEach(this.options,this._addOptionItem,this),this._updateSelection())},_updateSelection:function(){this.focusedChild=null;this._set("value",this._getValueFromOpts());var a=[].concat(this.value);if(a&&a[0]){var b=this;f.forEach(this._getChildren(),function(c){var d=f.some(a,function(a){return c.option&&
a===c.option.value});d&&!b.multiple&&(b.focusedChild=c);g.toggle(c.domNode,this.baseClass.replace(/\s+|$/g,"SelectedOption "),d);c.domNode.setAttribute("aria-selected",d?"true":"false")},this)}},_getValueFromOpts:function(){var a=this.getOptions()||[];if(!this.multiple&&a.length){var b=f.filter(a,function(a){return a.selected})[0];if(b&&b.value)return b.value;a[0].selected=!0;return a[0].value}return this.multiple?f.map(f.filter(a,function(a){return a.selected}),function(a){return a.value})||[]:""},
_onNewItem:function(a,b){(!b||!b.parent)&&this._addOptionForItem(a)},_onDeleteItem:function(a){this.removeOption({value:this.store.getIdentity(a)})},_onSetItem:function(a){this.updateOption(this._getOptionObjForItem(a))},_getOptionObjForItem:function(a){var b=this.store,c=this.labelAttr&&this.labelAttr in a?a[this.labelAttr]:b.getLabel(a);return{value:c?b.getIdentity(a):null,label:c,item:a}},_addOptionForItem:function(a){var b=this.store;b.isItemLoaded&&!b.isItemLoaded(a)?b.loadItem({item:a,onItem:function(a){this._addOptionForItem(a)},
scope:this}):(a=this._getOptionObjForItem(a),this.addOption(a))},constructor:function(a){this._oValue=(a||{}).value||null;this._notifyConnections=[]},buildRendering:function(){this.inherited(arguments);c.setSelectable(this.focusNode,!1)},_fillContent:function(){this.options||(this.options=this.srcNodeRef?a("\x3e *",this.srcNodeRef).map(function(a){return"separator"===a.getAttribute("type")?{value:"",label:"",selected:!1,disabled:!1}:{value:a.getAttribute("data-"+d._scopeName+"-value")||a.getAttribute("value"),
label:String(a.innerHTML),selected:a.getAttribute("selected")||!1,disabled:a.getAttribute("disabled")||!1}},this):[]);this.value?this.multiple&&"string"==typeof this.value&&this._set("value",this.value.split(",")):this._set("value",this._getValueFromOpts())},postCreate:function(){this.inherited(arguments);l.after(this,"onChange",b.hitch(this,"_updateSelection"));var a=this.store;if(a&&(a.getIdentity||a.getFeatures()["dojo.data.api.Identity"]))this.store=null,this._deprecatedSetStore(a,this._oValue,
{query:this.query,queryOptions:this.queryOptions});this._storeInitialized=!0},startup:function(){this._loadChildren();this.inherited(arguments)},destroy:function(){for(var a;a=this._notifyConnections.pop();)a.remove();this._queryRes&&this._queryRes.close&&this._queryRes.close();this._observeHandle&&this._observeHandle.remove&&(this._observeHandle.remove(),this._observeHandle=null);this.inherited(arguments)},_addOptionItem:function(){},_removeOptionItem:function(){},_setDisplay:function(){},_getChildren:function(){return[]},
_getSelectedOptionsAttr:function(){return this.getOptions({selected:!0})},_pseudoLoadChildren:function(){},onSetStore:function(){}})})},"dojox/editor/plugins/ToolbarLineBreak":function(){define("dojo dijit dojox dijit/_Widget dijit/_TemplatedMixin dijit/_editor/_Plugin dojo/_base/declare".split(" "),function(f,m,l,k,e,c,g){var d=g("dojox.editor.plugins.ToolbarLineBreak",[k,e],{templateString:"\x3cspan class\x3d'dijit dijitReset'\x3e\x3cbr\x3e\x3c/span\x3e",postCreate:function(){f.setSelectable(this.domNode,
!1)},isFocusable:function(){return!1}});f.subscribe(m._scopeName+".Editor.getPlugin",null,function(b){if(!b.plugin){var a=b.args.name.toLowerCase();if("||"===a||"toolbarlinebreak"===a)b.plugin=new c({button:new d,setEditor:function(a){this.editor=a}})}});return d})},"dojox/editor/plugins/Blockquote":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/form/ToggleButton dojo/_base/connect dojo/_base/declare dojo/i18n dojo/i18n!dojox/editor/plugins/nls/Blockquote".split(" "),function(f,m,
l,k){var e=f.declare("dojox.editor.plugins.Blockquote",k,{iconClassPrefix:"dijitAdditionalEditorIcon",_initButton:function(){this._nlsResources=f.i18n.getLocalization("dojox.editor.plugins","Blockquote");this.button=new m.form.ToggleButton({label:this._nlsResources.blockquote,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"Blockquote",tabIndex:"-1",onClick:f.hitch(this,"_toggleQuote")})},setEditor:function(c){this.editor=c;this._initButton();this.connect(this.editor,"onNormalizedDisplayChanged",
"updateState");c.customUndo=!0},_toggleQuote:function(c){try{var e=this.editor;e.focus();var d=this.button.get("checked"),b=m.range.getSelection(e.window),a,h,k,l;b&&0<b.rangeCount&&(a=b.getRangeAt(0));if(a){e.beginEditing();if(d){var t,q;if(a.startContainer===a.endContainer){if(this._isRootInline(a.startContainer)){for(k=a.startContainer;k&&k.parentNode!==e.editNode;)k=k.parentNode;for(;k&&k.previousSibling&&(this._isTextElement(k)||1===k.nodeType&&this._isInlineFormat(this._getTagName(k)));)k=k.previousSibling;
k&&(1===k.nodeType&&!this._isInlineFormat(this._getTagName(k)))&&(k=k.nextSibling);if(k){t=e.document.createElement("blockquote");f.place(t,k,"after");t.appendChild(k);for(l=t.nextSibling;l&&(this._isTextElement(l)||1===l.nodeType&&this._isInlineFormat(this._getTagName(l)));)t.appendChild(l),l=t.nextSibling}}else{for(var s=a.startContainer;(this._isTextElement(s)||this._isInlineFormat(this._getTagName(s))||"li"===this._getTagName(s))&&s!==e.editNode&&s!==e.document.body;)s=s.parentNode;s!==e.editNode&&
s!==s.ownerDocument.documentElement&&(t=e.document.createElement("blockquote"),f.place(t,s,"after"),t.appendChild(s))}t&&(e._sCall("selectElementChildren",[t]),e._sCall("collapse",[!0]))}else{var r;k=a.startContainer;for(l=a.endContainer;k&&this._isTextElement(k)&&k.parentNode!==e.editNode;)k=k.parentNode;for(r=k;r.nextSibling&&e._sCall("inSelection",[r]);)r=r.nextSibling;l=r;if(l===e.editNode||l===e.document.body){t=e.document.createElement("blockquote");f.place(t,k,"after");q=this._getTagName(k);
if(this._isTextElement(k)||this._isInlineFormat(q))for(e=k;e&&(this._isTextElement(e)||1===e.nodeType&&this._isInlineFormat(this._getTagName(e)));)t.appendChild(e),e=t.nextSibling;else t.appendChild(k);return}l=l.nextSibling;for(r=k;r&&r!==l;){if(1===r.nodeType){if(q=this._getTagName(r),"br"!==q){if(!window.getSelection&&"p"===q&&this._isEmpty(r)){r=r.nextSibling;continue}this._isInlineFormat(q)?t||(t=e.document.createElement("blockquote"),f.place(t,r,"after")):(t&&this._isEmpty(t)&&t.parentNode.removeChild(t),
t=e.document.createElement("blockquote"),f.place(t,r,"after"));t.appendChild(r);r=t}}else this._isTextElement(r)&&(t||(t=e.document.createElement("blockquote"),f.place(t,r,"after")),t.appendChild(r),r=t);r=r.nextSibling}t&&(this._isEmpty(t)?t.parentNode.removeChild(t):(e._sCall("selectElementChildren",[t]),e._sCall("collapse",[!0])))}}else if(t=!1,a.startContainer===a.endContainer){for(h=a.endContainer;h&&h!==e.editNode&&h!==e.document.body;){if("blockquote"===(h.tagName?h.tagName.toLowerCase():"")){t=
!0;break}h=h.parentNode}if(t){for(var w;h.firstChild;)w=h.firstChild,f.place(w,h,"before");h.parentNode.removeChild(h);w&&(e._sCall("selectElementChildren",[w]),e._sCall("collapse",[!0]))}}else{for(k=a.startContainer;k&&this._isTextElement(k)&&k.parentNode!==e.editNode;)k=k.parentNode;for(a=[];k&&k.nextSibling&&e._sCall("inSelection",[k]);)k.parentNode&&"blockquote"===this._getTagName(k.parentNode)&&(k=k.parentNode),a.push(k),k=k.nextSibling;for(var u=this._findBlockQuotes(a);u.length;){var v=u.pop();
if(v.parentNode){for(;v.firstChild;)f.place(v.firstChild,v,"before");v.parentNode.removeChild(v)}}}e.endEditing()}e.onNormalizedDisplayChanged()}catch(x){}},updateState:function(){var c=this.editor,e=this.get("disabled");if(c&&c.isLoaded&&this.button&&(this.button.set("disabled",e),!e)){var d,e=!1,b=m.range.getSelection(c.window);if(b&&0<b.rangeCount&&(b=b.getRangeAt(0)))d=b.endContainer;for(;d&&d!==c.editNode&&d!==c.document;){if("blockquote"===(d.tagName?d.tagName.toLowerCase():"")){e=!0;break}d=
d.parentNode}this.button.set("checked",e)}},_findBlockQuotes:function(c){var e=[];if(c){var d;for(d=0;d<c.length;d++){var b=c[d];1===b.nodeType&&("blockquote"===this._getTagName(b)&&e.push(b),b.childNodes&&0<b.childNodes.length&&(e=e.concat(this._findBlockQuotes(b.childNodes))))}}return e},_getTagName:function(c){var e="";c&&1===c.nodeType&&(e=c.tagName?c.tagName.toLowerCase():"");return e},_isRootInline:function(c){var e=this.editor;if(this._isTextElement(c)&&c.parentNode===e.editNode||1===c.nodeType&&
this._isInlineFormat(c)&&c.parentNode===e.editNode)return!0;if(this._isTextElement(c)&&this._isInlineFormat(this._getTagName(c.parentNode))){for(c=c.parentNode;c&&c!==e.editNode&&this._isInlineFormat(this._getTagName(c));)c=c.parentNode;if(c===e.editNode)return!0}return!1},_isTextElement:function(c){return c&&3===c.nodeType||4===c.nodeType?!0:!1},_isEmpty:function(c){if(c.childNodes){var e=!0,d;for(d=0;d<c.childNodes.length;d++){var b=c.childNodes[d];if(1===b.nodeType){if("p"!==this._getTagName(b)||
f.trim(b.innerHTML)){e=!1;break}}else if(this._isTextElement(b)){if((b=f.trim(b.nodeValue))&&"\x26nbsp;"!==b&&"\u00a0"!==b){e=!1;break}}else{e=!1;break}}return e}return!0},_isInlineFormat:function(c){switch(c){case "a":case "b":case "strong":case "s":case "strike":case "i":case "u":case "em":case "sup":case "sub":case "span":case "font":case "big":case "cite":case "q":case "img":case "small":return!0;default:return!1}}});f.subscribe(m._scopeName+".Editor.getPlugin",null,function(c){!c.plugin&&"blockquote"===
c.args.name.toLowerCase()&&(c.plugin=new e({}))});return e})},"dojox/editor/plugins/LocalImage":function(){define("dojo dijit dijit/registry dijit/_base/popup dijit/_editor/_Plugin dijit/_editor/plugins/LinkDialog dijit/TooltipDialog dijit/form/_TextBoxMixin dijit/form/Button dijit/form/ValidationTextBox dijit/form/DropDownButton dojo/_base/connect dojo/_base/declare dojo/_base/sniff dojox/form/FileUploader dojo/i18n!dojox/editor/plugins/nls/LocalImage".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p,
n,t,q,s){var r=f.declare("dojox.editor.plugins.LocalImage",c.ImgLinkDialog,{uploadable:!1,uploadUrl:"",baseImageUrl:"",fileMask:"*.jpg;*.jpeg;*.gif;*.png;*.bmp",urlRegExp:"",htmlFieldName:"uploadedfile",_isLocalFile:!1,_messages:"",_cssPrefix:"dijitEditorEilDialog",_closable:!0,linkDialogTemplate:"\x3cdiv style\x3d'border-bottom: 1px solid black; padding-bottom: 2pt; margin-bottom: 4pt;'\x3e\x3c/div\x3e\x3cdiv class\x3d'dijitEditorEilDialogDescription'\x3e${prePopuTextUrl}${prePopuTextBrowse}\x3c/div\x3e\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3clabel for\x3d'${id}_urlInput' title\x3d'${prePopuTextUrl}${prePopuTextBrowse}'\x3e${url}\x3c/label\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd class\x3d'dijitEditorEilDialogField'\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' class\x3d'dijitEditorEilDialogField'regExp\x3d'${urlRegExp}' title\x3d'${prePopuTextUrl}${prePopuTextBrowse}'  selectOnClick\x3d'true' required\x3d'true' id\x3d'${id}_urlInput' name\x3d'urlInput' intermediateChanges\x3d'true' invalidMessage\x3d'${invalidMessage}' prePopuText\x3d'\x26lt;${prePopuTextUrl}${prePopuTextBrowse}\x26gt'\x3e\x3c/td\x3e\x3ctd\x3e\x3cdiv id\x3d'${id}_browse' style\x3d'display:${uploadable}'\x3e${browse}\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.TextBox' required\x3d'false' id\x3d'${id}_textInput' name\x3d'textInput' intermediateChanges\x3d'true' selectOnClick\x3d'true' class\x3d'dijitEditorEilDialogField'\x3e\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton dojoType\x3d'dijit.form.Button' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
_initButton:function(){var b=this;this._messages=s;this.tag="img";var c=this.dropDown=new g({title:s[this.command+"Title"],onOpen:function(){b._initialFileUploader();b._onOpenDialog();g.prototype.onOpen.apply(this,arguments);setTimeout(function(){d.selectInputText(b._urlInput.textbox);b._urlInput.isLoadComplete=!0},0)},onClose:function(){f.disconnect(b.blurHandler);b.blurHandler=null;this.onHide()},onCancel:function(){setTimeout(f.hitch(b,"_onCloseDialog"),0)}}),e=this.getLabel(this.command),m=this.iconClassPrefix+
" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1),e=f.mixin({label:e,showLabel:!1,iconClass:m,dropDown:this.dropDown,tabIndex:"-1"},this.params||{});t("ie")||(e.closeDropDown=function(a){b._closable&&this._opened&&(k.close(this.dropDown),a&&this.focus(),this._opened=!1,this.state="");setTimeout(function(){b._closable=!0},10)});this.button=new h(e);var e=this.fileMask.split(";"),n="";f.forEach(e,function(a){a=a.replace(/\./,"\\.").replace(/\*/g,".*");n+="|"+a+"|"+
a.toUpperCase()});s.urlRegExp=this.urlRegExp=n.substring(1);this.uploadable||(s.prePopuTextBrowse=".");s.id=l.getUniqueId(this.editor.id);s.uploadable=this.uploadable?"inline":"none";this._uniqueId=s.id;this._setContent("\x3cdiv class\x3d'"+this._cssPrefix+"Title'\x3e"+c.title+"\x3c/div\x3e"+f.string.substitute(this.linkDialogTemplate,s));c.startup();c=this._urlInput=l.byId(this._uniqueId+"_urlInput");this._textInput=l.byId(this._uniqueId+"_textInput");this._setButton=l.byId(this._uniqueId+"_setButton");
if(c){var p=a.prototype,c=f.mixin(c,{isLoadComplete:!1,isValid:function(a){return this.isLoadComplete?p.isValid.apply(this,arguments):0<this.get("value").length},reset:function(){this.isLoadComplete=!1;p.reset.apply(this,arguments)}});this.connect(c,"onKeyDown","_cancelFileUpload");this.connect(c,"onChange","_checkAndFixInput")}this._setButton&&this.connect(this._setButton,"onClick","_checkAndSetValue");this._connectTagEvents()},_initialFileUploader:function(){var a=null,b=this,c=b._uniqueId+"_browse",
d=b._urlInput;b.uploadable&&!b._fileUploader&&(a=b._fileUploader=new q({force:"html",uploadUrl:b.uploadUrl,htmlFieldName:b.htmlFieldName,uploadOnChange:!1,selectMultipleFiles:!1,showProgress:!0},c),a.reset=function(){b._isLocalFile=!1;a._resetHTML()},b.connect(a,"onClick",function(){d.validate(!1);t("ie")||(b._closable=!1)}),b.connect(a,"onChange",function(a){b._isLocalFile=!0;d.set("value",a[0].name);d.focus()}),b.connect(a,"onComplete",function(a){var c=b.baseImageUrl,c=c&&"/"==c.charAt(c.length-
1)?c:c+"/";d.set("value",c+a[0].file);b._isLocalFile=!1;b._setDialogStatus(!0);b.setValue(b.dropDown.get("value"))}),b.connect(a,"onError",function(a){b._setDialogStatus(!0)}))},_checkAndFixInput:function(){this._setButton.set("disabled",!this._isValid())},_isValid:function(){return this._urlInput.isValid()},_cancelFileUpload:function(){this._fileUploader.reset();this._isLocalFile=!1},_checkAndSetValue:function(){this._fileUploader&&this._isLocalFile?(this._setDialogStatus(!1),this._fileUploader.upload()):
this.setValue(this.dropDown.get("value"))},_setDialogStatus:function(a){this._urlInput.set("disabled",!a);this._textInput.set("disabled",!a);this._setButton.set("disabled",!a)},destroy:function(){this.inherited(arguments);this._fileUploader&&(this._fileUploader.destroy(),delete this._fileUploader)}});m=function(a){return new r({command:"insertImage",uploadable:"uploadable"in a?a.uploadable:!1,uploadUrl:"uploadable"in a&&"uploadUrl"in a?a.uploadUrl:"",htmlFieldName:"uploadable"in a&&"htmlFieldName"in
a?a.htmlFieldName:"uploadedfile",baseImageUrl:"uploadable"in a&&"baseImageUrl"in a?a.baseImageUrl:"",fileMask:"fileMask"in a?a.fileMask:"*.jpg;*.jpeg;*.gif;*.png;*.bmp"})};e.registry.LocalImage=m;e.registry.localImage=m;e.registry.localimage=m;return r})},"dojox/form/FileUploader":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/window dojo/_base/sniff dojo/query dojo/dom dojo/dom-style dojo/dom-geometry dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-form dojo/_base/config dijit/_base/manager dojo/io/iframe dojo/_base/Color dojo/_base/unload dijit/_Widget dijit/_TemplatedMixin dijit/_Contained dojox/embed/Flash dojox/embed/flashVars dojox/html/styles".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r,w,u,v,x,y,z,A,E,B){f.deprecated("dojox.form.FileUploader","Use dojox.form.Uploader","2.0");return m("dojox.form.FileUploader",[x,y,z],{swfPath:s.uploaderPath||require.toUrl("dojox/form/resources/fileuploader.swf"),templateString:'\x3cdiv\x3e\x3cdiv dojoAttachPoint\x3d"progNode"\x3e\x3cdiv dojoAttachPoint\x3d"progTextNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d"insideNode" class\x3d"uploaderInsideNode"\x3e\x3c/div\x3e\x3c/div\x3e',uploadUrl:"",
isDebug:!1,devMode:!1,baseClass:"dojoxUploaderNorm",hoverClass:"dojoxUploaderHover",activeClass:"dojoxUploaderActive",disabledClass:"dojoxUploaderDisabled",force:"",uploaderType:"",flashObject:null,flashMovie:null,insideNode:null,deferredUploading:1,fileListId:"",uploadOnChange:!1,selectMultipleFiles:!0,htmlFieldName:"uploadedfile",flashFieldName:"flashUploadFiles",fileMask:null,minFlashVersion:9,tabIndex:-1,showProgress:!1,progressMessage:"Loading",progressBackgroundUrl:require.toUrl("dijit/themes/tundra/images/buttonActive.png"),
progressBackgroundColor:"#ededed",progressWidgetId:"",skipServerCheck:!1,serverTimeout:5E3,log:function(){this.isDebug&&console.log(Array.prototype.slice.call(arguments).join(" "))},constructor:function(){this._subs=[]},postMixInProperties:function(){this.fileList=[];this._cons=[];this.fileMask=this.fileMask||[];this.fileInputs=[];this.fileCount=0;this._disabled=this.flashReady=!1;this.force=this.force.toLowerCase();this.uploaderType=(A.available>=this.minFlashVersion||"flash"==this.force)&&"html"!=
this.force?"flash":"html";this.deferredUploading=!0===this.deferredUploading?1:this.deferredUploading;this._refNode=this.srcNodeRef;this.getButtonStyle()},startup:function(){},postCreate:function(){this.inherited(arguments);this.setButtonStyle();var a;"flash"==this.uploaderType?a="createFlashUploader":(this.uploaderType="html",a="createHtmlUploader");this[a]();this.fileListId&&this.connect(b.byId(this.fileListId),"click",function(a){a=a.target.parentNode.parentNode.parentNode;a.id&&-1<a.id.indexOf("file_")&&
this.removeFile(a.id.split("file_")[1])});v.addOnUnload(this,this.destroy)},getHiddenNode:function(b){if(!b)return null;var c=null;for(b=b.parentNode;b&&"body"!=b.tagName.toLowerCase();){if("none"==a.get(b,"display")){c=b;break}b=b.parentNode}return c},getButtonStyle:function(){var b=this.srcNodeRef;(this._hiddenNode=this.getHiddenNode(b))&&a.set(this._hiddenNode,"display","block");if(!b&&this.button&&this.button.domNode){var c=!0,b=this.button.domNode.className+" dijitButtonNode",e=this.getText(d(".dijitButtonText",
this.button.domNode)[0]);this.srcNodeRef=b=t.place('\x3cbutton id\x3d"'+this.button.id+'" class\x3d"'+b+'"\x3e'+e+"\x3c/button\x3e",this.button.domNode,"after");this.button.destroy();this.baseClass="dijitButton";this.hoverClass="dijitButtonHover";this.pressClass="dijitButtonActive";this.disabledClass="dijitButtonDisabled"}else!this.srcNodeRef&&this.button&&(b=this.button);p.get(b,"class")&&(this.baseClass+=" "+p.get(b,"class"));p.set(b,"class",this.baseClass);this.norm=this.getStyle(b);this.width=
this.norm.w;this.height=this.norm.h;"flash"==this.uploaderType?(this.over=this.getTempNodeStyle(b,this.baseClass+" "+this.hoverClass,c),this.down=this.getTempNodeStyle(b,this.baseClass+" "+this.activeClass,c),this.dsbl=this.getTempNodeStyle(b,this.baseClass+" "+this.disabledClass,c),this.fhtml={cn:this.getText(b),nr:this.norm,ov:this.over,dn:this.down,ds:this.dsbl}):(this.fhtml={cn:this.getText(b),nr:this.norm},"middle"==this.norm.va&&(this.norm.lh=this.norm.h));this.devMode&&(this.log("classes - base:",
this.baseClass," hover:",this.hoverClass,"active:",this.activeClass),this.log("fhtml:",this.fhtml),this.log("norm:",this.norm),this.log("over:",this.over),this.log("down:",this.down))},setButtonStyle:function(){a.set(this.domNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+"px",padding:"0px",lineHeight:"normal",position:"relative"});"html"==this.uploaderType&&"middle"==this.norm.va&&a.set(this.domNode,"lineHeight",this.norm.lh+"px");this.showProgress?(this.progTextNode.innerHTML=this.progressMessage,
a.set(this.progTextNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+0+"px",padding:"0px",margin:"0px",left:"0px",lineHeight:this.fhtml.nr.h+0+"px",position:"absolute"}),a.set(this.progNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+0+"px",padding:"0px",margin:"0px",left:"0px",position:"absolute",display:"none",backgroundImage:"url("+this.progressBackgroundUrl+")",backgroundPosition:"bottom",backgroundRepeat:"repeat-x",backgroundColor:this.progressBackgroundColor})):t.destroy(this.progNode);
a.set(this.insideNode,{position:"absolute",top:"0px",left:"0px",display:""});n.add(this.domNode,this.srcNodeRef.className);-1<this.fhtml.nr.d.indexOf("inline")&&n.add(this.domNode,"dijitInline");try{this.insideNode.innerHTML=this.fhtml.cn}catch(b){if("flash"==this.uploaderType){this.insideNode=this.insideNode.parentNode.removeChild(this.insideNode);c.body().appendChild(this.insideNode);this.insideNode.innerHTML=this.fhtml.cn;var d=e.connect(this,"onReady",this,function(){e.disconnect(d);this.insideNode=
this.insideNode.parentNode.removeChild(this.insideNode);this.domNode.appendChild(this.insideNode)})}else this.insideNode.appendChild(document.createTextNode(this.fhtml.cn))}this._hiddenNode&&a.set(this._hiddenNode,"display","none")},onChange:function(a){},onProgress:function(a){},onComplete:function(a){},onCancel:function(){},onError:function(a){},onReady:function(a){},onLoad:function(a){},submit:function(a){a=a?q.toObject(a):null;this.upload(a);return!1},upload:function(b){if(!this.fileList.length)return!1;
if(!this.uploadUrl)return console.warn("uploadUrl not provided. Aborting."),!1;this.showProgress||this.set("disabled",!0);if(this.progressWidgetId){var c=r.byId(this.progressWidgetId).domNode;"none"==a.get(c,"display")&&(this.restoreProgDisplay="none",a.set(c,"display","block"));"hidden"==a.get(c,"visibility")&&(this.restoreProgDisplay="hidden",a.set(c,"visibility","visible"))}b&&!b.target&&(this.postData=b);this.log("upload type:",this.uploaderType," - postData:",this.postData);for(b=0;b<this.fileList.length;b++)c=
this.fileList[b],c.bytesLoaded=0,c.bytesTotal=c.size||1E5,c.percent=0;"flash"==this.uploaderType?this.uploadFlash():this.uploadHTML();return!1},removeFile:function(a,b){var c;for(c=0;c<this.fileList.length;c++)if(this.fileList[c].name==a){b||this.fileList.splice(c,1);break}"flash"==this.uploaderType?this.flashMovie.removeFile(a):b||(t.destroy(this.fileInputs[c]),this.fileInputs.splice(c,1),this._renumberInputs());this.fileListId&&t.destroy("file_"+a)},destroy:function(){"flash"==this.uploaderType&&
!this.flashMovie?this._cons.push(e.connect(this,"onLoad",this,"destroy")):(k.forEach(this._subs,e.unsubscribe,dojo),k.forEach(this._cons,e.disconnect,dojo),this.scrollConnect&&e.disconnect(this.scrollConnect),"flash"==this.uploaderType?(this.flashObject.destroy(),delete this.flashObject):(t.destroy(this._fileInput),t.destroy(this._formNode)),this.inherited(arguments))},_displayProgress:function(b){!0===b?("flash"==this.uploaderType?a.set(this.insideNode,"top","-2500px"):a.set(this.insideNode,"display",
"none"),a.set(this.progNode,"display","")):!1===b?(a.set(this.insideNode,{display:"",top:"0"}),a.set(this.progNode,"display","none")):a.set(this.progNode,"width",b*this.fhtml.nr.w+"px")},_animateProgress:function(){this._displayProgress(!0);var a=!1,b=e.connect(this,"_complete",function(){e.disconnect(b);a=!0}),c=0,d=setInterval(l.hitch(this,function(){c+=5;c>this.fhtml.nr.w&&(c=0,a=!0);this._displayProgress(c/this.fhtml.nr.w);a&&(clearInterval(d),setTimeout(l.hitch(this,function(){this._displayProgress(!1)}),
500))}),50)},_error:function(a){"string"==typeof a&&(a=Error(a));this.onError(a)},_addToFileList:function(){if(this.fileListId){var a="";k.forEach(this.fileList,function(b){a+='\x3ctable id\x3d"file_'+b.name+'" class\x3d"fileToUpload"\x3e\x3ctr\x3e\x3ctd class\x3d"fileToUploadClose"\x3e\x3c/td\x3e\x3ctd class\x3d"fileToUploadName"\x3e'+b.name+'\x3c/td\x3e\x3ctd class\x3d"fileToUploadSize"\x3e'+(b.size?Math.ceil(0.001*b.size)+"kb":"")+"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e"},this);b.byId(this.fileListId).innerHTML=
a}},_change:function(a){g("ie")&&k.forEach(a,function(a){a.name=a.name.split("\\")[a.name.split("\\").length-1]});this.selectMultipleFiles?this.fileList=this.fileList.concat(a):(this.fileList[0]&&this.removeFile(this.fileList[0].name,!0),this.fileList=a);this._addToFileList();this.onChange(a);this.uploadOnChange?("html"==this.uploaderType&&this._buildFileInput(),this.upload()):"html"==this.uploaderType&&this.selectMultipleFiles&&(this._buildFileInput(),this._connectInput())},_complete:function(b){b=
l.isArray(b)?b:[b];k.forEach(b,function(a){a.ERROR&&this._error(a.ERROR)},this);k.forEach(this.fileList,function(a){a.bytesLoaded=1;a.bytesTotal=1;a.percent=100;this._progress(a)},this);k.forEach(this.fileList,function(a){this.removeFile(a.name,!0)},this);this.onComplete(b);this.fileList=[];this._resetHTML();this.set("disabled",!1);this.restoreProgDisplay&&setTimeout(l.hitch(this,function(){a.set(r.byId(this.progressWidgetId).domNode,"none"==this.restoreProgDisplay?"display":"visibility",this.restoreProgDisplay)}),
500)},_progress:function(a){for(var b=0,c=0,d=0;d<this.fileList.length;d++){var e=this.fileList[d];e.name==a.name&&(e.bytesLoaded=a.bytesLoaded,e.bytesTotal=a.bytesTotal,e.percent=Math.ceil(100*(e.bytesLoaded/e.bytesTotal)),this.log(e.name,"percent:",e.percent));c+=Math.ceil(0.001*e.bytesLoaded);b+=Math.ceil(0.001*e.bytesTotal)}a=Math.ceil(100*(c/b));this.progressWidgetId&&r.byId(this.progressWidgetId).update({progress:a+"%"});this.showProgress&&this._displayProgress(0.01*a);this.onProgress(this.fileList)},
_getDisabledAttr:function(){return this._disabled},_setDisabledAttr:function(b){if(this._disabled!=b){if("flash"==this.uploaderType){if(!this.flashReady){var c=e.connect(this,"onLoad",this,function(){e.disconnect(c);this._setDisabledAttr(b)});return}this._disabled=b;this.flashMovie.doDisable(b)}else this._disabled=b,a.set(this._fileInput,"display",this._disabled?"none":"");n.toggle(this.domNode,this.disabledClass,b)}},_onFlashBlur:function(){this.flashMovie.blur();if(!this.nextFocusObject&&this.tabIndex)for(var a=
d("[tabIndex]"),b=0;b<a.length;b++)if(a[b].tabIndex>=Number(this.tabIndex)+1){this.nextFocusObject=a[b];break}this.nextFocusObject.focus()},_disconnect:function(){k.forEach(this._cons,e.disconnect,dojo)},uploadHTML:function(){this.selectMultipleFiles&&t.destroy(this._fileInput);this._setHtmlPostData();this.showProgress&&this._animateProgress();w.send({url:this.uploadUrl.toString(),form:this._formNode,handleAs:"json",error:l.hitch(this,function(a){this._error("HTML Upload Error:"+a.message)}),load:l.hitch(this,
function(a,b,c){this._complete(a)})})},createHtmlUploader:function(){this._buildForm();this._setFormStyle();this._buildFileInput();this._connectInput();this._styleContent();a.set(this.insideNode,"visibility","visible");this.onReady()},_connectInput:function(){this._disconnect();this._cons.push(e.connect(this._fileInput,"mouseover",this,function(a){n.add(this.domNode,this.hoverClass);this.onMouseOver(a)}));this._cons.push(e.connect(this._fileInput,"mouseout",this,function(a){setTimeout(l.hitch(this,
function(){n.remove(this.domNode,this.activeClass);n.remove(this.domNode,this.hoverClass);this.onMouseOut(a);this._checkHtmlCancel("off")}),0)}));this._cons.push(e.connect(this._fileInput,"mousedown",this,function(a){n.add(this.domNode,this.activeClass);n.remove(this.domNode,this.hoverClass);this.onMouseDown(a)}));this._cons.push(e.connect(this._fileInput,"mouseup",this,function(a){n.remove(this.domNode,this.activeClass);this.onMouseUp(a);this.onClick(a);this._checkHtmlCancel("up")}));this._cons.push(e.connect(this._fileInput,
"change",this,function(){this._checkHtmlCancel("change");var a=this._fileInput.value;a?this._change([{name:a,type:"",size:0}]):this._change([])}));0<=this.tabIndex&&p.set(this.domNode,"tabIndex",this.tabIndex)},_checkHtmlCancel:function(a){"change"==a&&(this.dialogIsOpen=!1);"up"==a&&(this.dialogIsOpen=!0);if("off"==a){if(this.dialogIsOpen)this.onCancel();this.dialogIsOpen=!1}},_styleContent:function(){var b=this.fhtml.nr;a.set(this.insideNode,{width:b.w+"px",height:"middle"==b.va?b.h+"px":"auto",
textAlign:b.ta,paddingTop:b.p[0]+"px",paddingRight:b.p[1]+"px",paddingBottom:b.p[2]+"px",paddingLeft:b.p[3]+"px"});try{a.set(this.insideNode,"lineHeight","inherit")}catch(c){}},_resetHTML:function(){"html"==this.uploaderType&&this._formNode&&(this.fileInputs=[],d("*",this._formNode).forEach(function(a){t.destroy(a)}),this.fileCount=0,this._buildFileInput(),this._connectInput())},_buildForm:function(){this._formNode||(9>g("ie")||g("ie")&&g("quirks")?(this._formNode=document.createElement('\x3cform enctype\x3d"multipart/form-data" method\x3d"post"\x3e'),
this._formNode.encoding="multipart/form-data",this._formNode.id=r.getUniqueId("FileUploaderForm"),this.domNode.appendChild(this._formNode)):this._formNode=t.create("form",{enctype:"multipart/form-data",method:"post",id:r.getUniqueId("FileUploaderForm")},this.domNode))},_buildFileInput:function(){this._fileInput&&(this._disconnect(),this._fileInput.id+=this.fileCount,a.set(this._fileInput,"display","none"));this._fileInput=document.createElement("input");this.fileInputs.push(this._fileInput);var b=
this.htmlFieldName;this.selectMultipleFiles&&(b+=this.fileCount,this.fileCount++);p.set(this._fileInput,{id:this.id,name:b,type:"file"});n.add(this._fileInput,"dijitFileInputReal");this._formNode.appendChild(this._fileInput);b=h.getMarginBox(this._fileInput);a.set(this._fileInput,{position:"relative",left:this.fhtml.nr.w-b.w+"px",opacity:0})},_renumberInputs:function(){if(this.selectMultipleFiles){var a;this.fileCount=0;k.forEach(this.fileInputs,function(b){a=this.htmlFieldName+this.fileCount;this.fileCount++;
p.set(b,"name",a)},this)}},_setFormStyle:function(){var b=Math.max(2,Math.max(Math.ceil(this.fhtml.nr.w/60),Math.ceil(this.fhtml.nr.h/15)));B.insertCssRule("#"+this._formNode.id+" input","font-size:"+b+"em");a.set(this.domNode,{overflow:"hidden",position:"relative"});a.set(this.insideNode,"position","absolute")},_setHtmlPostData:function(){if(this.postData)for(var a in this.postData)t.create("input",{type:"hidden",name:a,value:this.postData[a]},this._formNode)},uploadFlash:function(){try{if(this.showProgress){this._displayProgress(!0);
var a=e.connect(this,"_complete",this,function(){e.disconnect(a);this._displayProgress(!1)})}var b={},c;for(c in this.postData)b[c]=this.postData[c];this.flashMovie.doUpload(b)}catch(d){this._error("FileUploader - Sorry, the SWF failed to initialize."+d)}},createFlashUploader:function(){if(this.uploadUrl=this.uploadUrl.toString())if(0>this.uploadUrl.toLowerCase().indexOf("http")&&0!=this.uploadUrl.indexOf("/")){var b=window.location.href.split("/");b.pop();b=b.join("/")+"/";this.uploadUrl=b+this.uploadUrl;
this.log("SWF Fixed - Relative loc:",b," abs loc:",this.uploadUrl)}else this.log("SWF URL unmodified:",this.uploadUrl);else console.warn("Warning: no uploadUrl provided.");b={expressInstall:!0,path:this.swfPath.uri||this.swfPath,width:this.fhtml.nr.w,height:this.fhtml.nr.h,allowScriptAccess:"always",allowNetworking:"all",vars:{uploadDataFieldName:this.flashFieldName,uploadUrl:this.uploadUrl,uploadOnSelect:this.uploadOnChange,deferredUploading:this.deferredUploading||0,selectMultipleFiles:this.selectMultipleFiles,
id:this.id,isDebug:this.isDebug,devMode:this.devMode,flashButton:E.serialize("fh",this.fhtml),fileMask:E.serialize("fm",this.fileMask),noReturnCheck:this.skipServerCheck,serverTimeout:this.serverTimeout},params:{scale:"noscale",wmode:"opaque",allowScriptAccess:"always",allowNetworking:"all"}};this.flashObject=new A(b,this.insideNode);this.flashObject.onError=l.hitch(function(a){this._error("Flash Error: "+a)});this.flashObject.onReady=l.hitch(this,function(){a.set(this.insideNode,"visibility","visible");
this.log("FileUploader flash object ready");this.onReady(this)});this.flashObject.onLoad=l.hitch(this,function(a){this.flashMovie=a;this.flashReady=!0;this.onLoad(this)});this._connectFlash()},_connectFlash:function(){this._doSub("/filesSelected","_change");this._doSub("/filesUploaded","_complete");this._doSub("/filesProgress","_progress");this._doSub("/filesError","_error");this._doSub("/filesCanceled","onCancel");this._doSub("/stageBlur","_onFlashBlur");this._doSub("/up","onMouseUp");this._doSub("/down",
"onMouseDown");this._doSub("/over","onMouseOver");this._doSub("/out","onMouseOut");this.connect(this.domNode,"focus",function(){this.flashMovie.focus();this.flashMovie.doFocus()});0<=this.tabIndex&&p.set(this.domNode,"tabIndex",this.tabIndex)},_doSub:function(a,b){this._subs.push(e.subscribe(this.id+a,this,b))},urlencode:function(a){return!a||"none"==a?!1:a.replace(/:/g,"||").replace(/\./g,"^^").replace("url(","").replace(")","").replace(/'/g,"").replace(/"/g,"")},isButton:function(a){a=a.tagName.toLowerCase();
return"button"==a||"input"==a},getTextStyle:function(b){var c={};c.ff=a.get(b,"fontFamily");if(c.ff){c.ff=c.ff.replace(", ",",");c.ff=c.ff.replace(/\"|\'/g,"");c.ff="sans-serif"==c.ff?"Arial":c.ff;c.fw=a.get(b,"fontWeight");c.fi=a.get(b,"fontStyle");c.fs=parseInt(a.get(b,"fontSize"),10);if(-1<a.get(b,"fontSize").indexOf("%"))for(var d=b;d.tagName;){if(-1==a.get(d,"fontSize").indexOf("%")){c.fs=parseInt(a.get(d,"fontSize"),10);break}"body"==d.tagName.toLowerCase()&&(c.fs=0.16*parseInt(a.get(d,"fontSize"),
10));d=d.parentNode}c.fc=(new u(a.get(b,"color"))).toHex();c.fc=parseInt(c.fc.substring(1,Infinity),16)}c.lh=a.get(b,"lineHeight");c.ta=a.get(b,"textAlign");c.ta="start"==c.ta||!c.ta?"left":c.ta;c.va=this.isButton(b)?"middle":c.lh==c.h?"middle":a.get(b,"verticalAlign");return c},getText:function(a){a=l.trim(a.innerHTML);-1<a.indexOf("\x3c")&&(a=escape(a));return a},getStyle:function(b){var c={},d=h.getContentBox(b),e=h.getPadExtents(b);c.p=[e.t,e.w-e.l,e.h-e.t,e.l];c.w=d.w+e.w;c.h=d.h+e.h;c.d=a.get(b,
"display");d=new u(a.get(b,"backgroundColor"));c.bc=0==d.a?"#ffffff":d.toHex();c.bc=parseInt(c.bc.substring(1,Infinity),16);if(d=this.urlencode(a.get(b,"backgroundImage")))c.bi={url:d,rp:a.get(b,"backgroundRepeat"),pos:escape(a.get(b,"backgroundPosition"))},c.bi.pos||(d=a.get(b,"backgroundPositionX"),e=a.get(b,"backgroundPositionY"),c.bi.pos=escape(("left"==d?"0%":"right"==d?"100%":d)+" "+("top"==e?"0%":"bottom"==e?"100%":e)));return l.mixin(c,this.getTextStyle(b))},getTempNodeStyle:function(a,b,
c){if(c){c=t.place("\x3c"+a.tagName+"\x3e\x3cspan\x3e"+a.innerHTML+"\x3c/span\x3e\x3c/"+a.tagName+"\x3e",a.parentNode);var d=c.firstChild;n.add(d,a.className);n.add(c,b);a=this.getStyle(d)}else c=t.place("\x3c"+a.tagName+"\x3e"+a.innerHTML+"\x3c/"+a.tagName+"\x3e",a.parentNode),n.add(c,a.className),n.add(c,b),c.id=a.id,a=this.getStyle(c);t.destroy(c);return a}})})},"dojo/io/iframe":function(){define("../_base/config ../_base/json ../_base/kernel ../_base/lang ../_base/xhr ../sniff ../_base/window ../dom ../dom-construct ../query require ../aspect ../request/iframe".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n){l.deprecated("dojo/io/iframe","Use dojo/request/iframe.","2.0");c=n._iframeName;c=c.substring(0,c.lastIndexOf("_"));var t=k.delegate(n,{create:function(){return t._frame=n.create.apply(n,arguments)},get:null,post:null,send:function(a){var b,c=e._ioSetArgs(a,function(a){b&&b.cancel()},function(a){var c=null;a=a.ioArgs;try{var d=a.handleAs;"xml"===d||"html"===d?c=b.response.data:(c=b.response.text,"json"===d?c=m.fromJson(c):"javascript"===d&&(c=l.eval(c)))}catch(e){c=
e}return c},function(a,b){b.ioArgs._hasError=!0;return a}),g=c.ioArgs,h="GET",k=d.byId(a.form);a.method&&("POST"===a.method.toUpperCase()&&k)&&(h="POST");a={method:h,handleAs:"json"===a.handleAs||"javascript"===a.handleAs?"text":a.handleAs,form:a.form,query:k?null:a.content,data:k?a.content:null,timeout:a.timeout,ioArgs:g};a.method&&(a.method=a.method.toUpperCase());if(f.ioPublish&&l.publish&&!1!==g.args.ioPublish)var t=p.after(n,"_notifyStart",function(a){a.options.ioArgs===g&&(t.remove(),e._ioNotifyStart(c))},
!0);b=n(g.url,a,!0);g._callNext=b._callNext;b.then(function(){c.resolve(c)}).otherwise(function(a){c.ioArgs.error=a;c.reject(a)});return c},_iframeOnload:g.global[c+"_onload"]});k.setObject("dojo.io.iframe",t);return t})},"dojo/request/iframe":function(){define("module require ./watch ./util ./handlers ../_base/lang ../io-query ../query ../has ../dom ../dom-construct ../_base/window ../NodeList-dom".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p){function n(a){return!this.isFulfilled()}function t(a){return!!this._finished}
function q(a,b){if(!b)try{var g=a.options,f=r.doc(r._frame),h=g.handleAs;if("html"!==h){if("xml"===h)if("html"===f.documentElement.tagName.toLowerCase()){d("a",f.documentElement).orphan();var k=f.documentElement.innerText||f.documentElement.textContent,k=k.replace(/>\s+</g,"\x3e\x3c");a.text=c.trim(k)}else a.data=f;else a.text=f.getElementsByTagName("textarea")[0].value;e(a)}else a.data=f}catch(l){b=l}b?this.reject(b):this._finished?this.resolve(a):this.reject(Error("Invalid dojo/request/iframe request state"))}
function s(a){this._callNext()}function r(a,b,c){var d=k.parseArgs(a,k.deepCreate(v,b),!0);a=d.url;b=d.options;if("GET"!==b.method&&"POST"!==b.method)throw Error(b.method+" not supported by dojo/request/iframe");r._frame||(r._frame=r.create(r._iframeName,u+"();"));a=k.deferred(d,null,n,t,q,s);a._callNext=function(){this._calledNext||(this._calledNext=!0,r._currentDfd=null,r._fireNextRequest())};a._legacy=c;r._dfdQueue.push(a);r._fireNextRequest();l(a);return c?a:a.promise}var w=f.id.replace(/[\/\.\-]/g,
"_"),u=w+"_onload";p.global[u]||(p.global[u]=function(){var b=r._currentDfd;if(b){var c=a.byId(b.response.options.form)||b._tmpForm;if(c){for(var d=b._contentToClean,e=0;e<d.length;e++)for(var g=d[e],f=0;f<c.childNodes.length;f++){var k=c.childNodes[f];if(k.name===g){h.destroy(k);break}}b._originalAction&&c.setAttribute("action",b._originalAction);b._originalMethod&&(c.setAttribute("method",b._originalMethod),c.method=b._originalMethod);b._originalTarget&&(c.setAttribute("target",b._originalTarget),
c.target=b._originalTarget)}b._tmpForm&&(h.destroy(b._tmpForm),delete b._tmpForm);b._finished=!0}else r._fireNextRequest()});var v={method:"POST"};r.create=function(a,c,d){if(p.global[a])return p.global[a];if(p.global.frames[a])return p.global.frames[a];d||(b("config-useXDomain")&&!b("config-dojoBlankHtmlUrl")&&console.warn("dojo/request/iframe: When using cross-domain Dojo builds, please save dojo/resources/blank.html to your domain and set dojoConfig.dojoBlankHtmlUrl to the path on your domain to blank.html"),
d=b("config-dojoBlankHtmlUrl")||m.toUrl("dojo/resources/blank.html"));c=h.place('\x3ciframe id\x3d"'+a+'" name\x3d"'+a+'" src\x3d"'+d+'" onload\x3d"'+c+'" style\x3d"position: absolute; left: 1px; top: 1px; height: 1px; width: 1px; visibility: hidden"\x3e',p.body());return p.global[a]=c};r.doc=function(a){if(a.contentDocument)return a.contentDocument;var b=a.name;if(b){var c=p.doc.getElementsByTagName("iframe");if(a.document&&c[b].contentWindow&&c[b].contentWindow.document)return c[b].contentWindow.document;
if(p.doc.frames[b]&&p.doc.frames[b].document)return p.doc.frames[b].document}return null};r.setSrc=function(a,b,c){a=p.global.frames[a.name];a.contentWindow&&(a=a.contentWindow);try{c?a.location.replace(b):a.location=b}catch(d){}};r._iframeName=w+"_IoIframe";r._notifyStart=function(){};r._dfdQueue=[];r._currentDfd=null;r._fireNextRequest=function(){var b;try{if(!r._currentDfd&&r._dfdQueue.length){do b=r._currentDfd=r._dfdQueue.shift();while(b&&(b.canceled||b.isCanceled&&b.isCanceled())&&r._dfdQueue.length);
if(!b||b.canceled||b.isCanceled&&b.isCanceled())r._currentDfd=null;else{var d=b.response,e=d.options,f=b._contentToClean=[],l=a.byId(e.form),m=k.notify,n=e.data||null,v;!b._legacy&&"POST"===e.method&&!l?l=b._tmpForm=h.create("form",{name:w+"_form",style:{position:"absolute",top:"-1000px",left:"-1000px"}},p.body()):"GET"===e.method&&(l&&-1<d.url.indexOf("?"))&&(v=d.url.slice(d.url.indexOf("?")+1),n=c.mixin(g.queryToObject(v),n));if(l){if(!b._legacy){var q=l;do q=q.parentNode;while(q&&q!==p.doc.documentElement);
q||(l.style.position="absolute",l.style.left="-1000px",l.style.top="-1000px",p.body().appendChild(l));l.name||(l.name=w+"_form")}if(n){var q=function(a,b){h.create("input",{type:"hidden",name:a,value:b},l);f.push(a)},s;for(s in n){var t=n[s];if(c.isArray(t)&&1<t.length)for(v=0;v<t.length;v++)q(s,t[v]);else l[s]?l[s].value=t:q(s,t)}}var u=l.getAttributeNode("action"),F=l.getAttributeNode("method"),D=l.getAttributeNode("target");d.url&&(b._originalAction=u?u.value:null,u?u.value=d.url:l.setAttribute("action",
d.url));if(b._legacy){if(!F||!F.value)F?F.value=e.method:l.setAttribute("method",e.method)}else b._originalMethod=F?F.value:null,F?F.value=e.method:l.setAttribute("method",e.method);b._originalTarget=D?D.value:null;D?D.value=r._iframeName:l.setAttribute("target",r._iframeName);l.target=r._iframeName;m&&m.emit("send",d,b.promise.cancel);r._notifyStart(d);l.submit()}else e="",d.options.data&&(e=d.options.data,"string"!==typeof e&&(e=g.objectToQuery(e))),q=d.url+(-1<d.url.indexOf("?")?"\x26":"?")+e,
m&&m.emit("send",d,b.promise.cancel),r._notifyStart(d),r.setSrc(r._frame,q,!0)}}}catch(C){b.reject(C)}};k.addCommonMethods(r,["GET","POST"]);return r})},"dojox/embed/Flash":function(){define("dojo/_base/lang dojo/_base/unload dojo/_base/array dojo/query dojo/has dojo/dom dojo/on dojo/window dojo/string".split(" "),function(f,m,l,k,e,c,g,d,b){function a(a){a=f.delegate(q,a);if(!("path"in a))return console.error("dojox.embed.Flash(ctor):: no path reference to a Flash movie was provided."),null;"id"in
a||(a.id=n+t++);return a}var h,p,n="dojox-embed-flash-",t=0,q={expressInstall:!1,width:320,height:240,swLiveConnect:"true",allowScriptAccess:"sameDomain",allowNetworking:"all",style:null,redirect:null};e("ie")?(h=function(c){c=a(c);if(!c)return null;var d,e=c.path;if(c.vars){var g=[];for(d in c.vars)g.push(encodeURIComponent(d)+"\x3d"+encodeURIComponent(c.vars[d]));c.params.FlashVars=g.join("\x26");delete c.vars}e='\x3cobject id\x3d"'+b.escape(String(c.id))+'" classid\x3d"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width\x3d"'+
b.escape(String(c.width))+'" height\x3d"'+b.escape(String(c.height))+'"'+(c.style?' style\x3d"'+b.escape(String(c.style))+'"':"")+'\x3e\x3cparam name\x3d"movie" value\x3d"'+b.escape(String(e))+'" /\x3e';if(c.params)for(d in c.params)e+='\x3cparam name\x3d"'+b.escape(d)+'" value\x3d"'+b.escape(String(c.params[d]))+'" /\x3e';return{id:c.id,markup:e+"\x3c/object\x3e"}},p=function(){for(var a=10,b=null;!b&&7<a;)try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a--)}catch(c){}return b?(a=b.GetVariable("$version").split(" ")[1].split(","),
{major:null!=a[0]?parseInt(a[0]):0,minor:null!=a[1]?parseInt(a[1]):0,rev:null!=a[2]?parseInt(a[2]):0}):{major:0,minor:0,rev:0}}(),m.addOnWindowUnload(function(){console.warn("***************UNLOAD");var a=function(){};k("object").reverse().style("display","none").forEach(function(b){for(var c in b)if("FlashVars"!=c&&"function"==typeof b[c])try{b[c]=a}catch(d){}})})):(h=function(c){c=a(c);if(!c)return null;var d,e=c.path;if(c.vars){var g=[];for(d in c.vars)g.push(encodeURIComponent(d)+"\x3d"+encodeURIComponent(c.vars[d]));
c.params.flashVars=g.join("\x26");delete c.vars}e='\x3cembed type\x3d"application/x-shockwave-flash" src\x3d"'+b.escape(String(e))+'" id\x3d"'+b.escape(String(c.id))+'" width\x3d"'+b.escape(String(c.width))+'" height\x3d"'+b.escape(String(c.height))+'"'+(c.style?' style\x3d"'+b.escape(String(c.style))+'" ':"")+'pluginspage\x3d"'+window.location.protocol+'//www.adobe.com/go/getflashplayer" ';if(c.params)for(d in c.params)e+=" "+b.escape(d)+'\x3d"'+b.escape(String(c.params[d]))+'"';return{id:c.id,markup:e+
" /\x3e"}},p=function(){var a=navigator.plugins["Shockwave Flash"];return a&&a.description?(a=a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."),{major:null!=a[0]?parseInt(a[0]):0,minor:null!=a[1]?parseInt(a[1]):0,rev:null!=a[2]?parseInt(a[2]):0}):{major:0,minor:0,rev:0}}());var s=function(a,b){if(-1<location.href.toLowerCase().indexOf("file://"))throw Error("dojox.embed.Flash can't be run directly from a file. To instatiate the required SWF correctly it must be run from a server, like localHost.");
this.available=p.major;this.minimumVersion=a.minimumVersion||9;this.domNode=this.movie=this.id=null;b&&(b=c.byId(b));setTimeout(f.hitch(this,function(){if(a.expressInstall||this.available&&this.available>=this.minimumVersion)if(a&&b)this.init(a,b);else this.onError("embed.Flash was not provided with the proper arguments.");else if(this.available)this.onError("Flash version detected: "+this.available+" is out of date. Minimum required: "+this.minimumVersion);else this.onError("Flash is not installed.")}),
100)};f.extend(s,{onReady:function(a){},onLoad:function(a){},onError:function(a){},_onload:function(){clearInterval(this._poller);delete this._poller;delete this._pollCount;delete this._pollMax;this.onLoad(this.movie)},init:function(a,b){this.destroy();b=c.byId(b||this.domNode);if(!b)throw Error("dojox.embed.Flash: no domNode reference has been passed.");var d=0;this._poller=null;this._pollCount=0;this._pollMax=15;this.pollTime=100;s.initialized&&(this.id=s.place(a,b),this.domNode=b,setTimeout(f.hitch(this,
function(){this.movie=this.byId(this.id,a.doc);this.onReady(this.movie);this._poller=setInterval(f.hitch(this,function(){try{d=this.movie.PercentLoaded()}catch(a){console.warn("this.movie.PercentLoaded() failed",a,this.movie)}if(100==d)this._onload();else if(0==d&&this._pollCount++>this._pollMax)throw clearInterval(this._poller),Error("Building SWF failed.");}),this.pollTime)}),1))},_destroy:function(){try{this.domNode.removeChild(this.movie)}catch(a){}this.id=this.movie=this.domNode=null},destroy:function(){if(this.movie){var a=
f.delegate({id:!0,movie:!0,domNode:!0,onReady:!0,onLoad:!0}),b;for(b in this)a[b]||delete this[b];this._poller?g(this,"Load",this,"_destroy"):this._destroy()}},byId:function(a,b){b=b||document;return b.embeds[a]?b.embeds[a]:b[a]?b[a]:window[a]?window[a]:document[a]?document[a]:null}});f.mixin(s,{minSupported:8,available:p.major,supported:p.major>=p.required,minimumRequired:p.required,version:p,initialized:!1,onInitialize:function(){s.initialized=!0},__ie_markup__:function(a){return h(a)},proxy:function(a,
b){l.forEach(b instanceof Array?b:[b],function(a){this[a]=f.hitch(this,function(){return function(){return eval(this.movie.CallFunction('\x3cinvoke name\x3d"'+a+'" returntype\x3d"javascript"\x3e\x3carguments\x3e'+l.map(arguments,function(a){return __flash__toXML(a)}).join("")+"\x3c/arguments\x3e\x3c/invoke\x3e"))}.apply(this,arguments||[])})},a)}});s.place=function(a,b){var e=h(a);b=c.byId(b);b||(b=d.doc.createElement("div"),b.id=e.id+"-container",d.body().appendChild(b));return e?(b.innerHTML=e.markup,
e.id):null};s.onInitialize();f.setObject("dojox.embed.Flash",s);return s})},"dojox/embed/flashVars":function(){define(["dojo"],function(f){f.deprecated("dojox.embed.flashVars","Will be removed in 2.0","2.0");var m={serialize:function(l,k){var e=function(b){"string"==typeof b&&(b=b.replace(/;/g,"_sc_"),b=b.replace(/\./g,"_pr_"),b=b.replace(/\:/g,"_cl_"));return b},c=dojox.embed.flashVars.serialize,g="";if(f.isArray(k)){for(var d=0;d<k.length;d++)g+=c(l+"."+d,e(k[d]))+";";return g.replace(/;{2,}/g,
";")}if(f.isObject(k)){for(d in k)g+=c(l+"."+d,e(k[d]))+";";return g.replace(/;{2,}/g,";")}return l+":"+k}};f.setObject("dojox.embed.flashVars",m);return m})},"dojox/html/styles":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/window","dojo/_base/sniff"],function(f,m,l,k){var e=f.getObject("dojox.html",!0),c={},g={},d=[];e.insertCssRule=function(b,a,c){c=e.getDynamicStyleSheet(c);var d=b+" {"+a+"}";k("ie")?c.cssText+=d:c.sheet?c.sheet.insertRule(d,c._indicies.length):c.appendChild(l.doc.createTextNode(d));
c._indicies.push(b+" "+a);return b};e.removeCssRule=function(b,a,d){var e,g=-1,f,l;for(f in c)if(!(d&&d!==f)){e=c[f];for(l=0;l<e._indicies.length;l++)if(b+" "+a===e._indicies[l]){g=l;break}if(-1<g)break}if(!e)return console.warn("No dynamic style sheet has been created from which to remove a rule."),!1;if(-1===g)return console.warn("The css rule was not found and could not be removed."),!1;e._indicies.splice(g,1);k("ie")?e.removeRule(g):e.sheet&&e.sheet.deleteRule(g);return!0};e.modifyCssRule=function(b,
a,c){};e.getStyleSheet=function(b){if(c[b||"default"])return c[b||"default"];if(!b)return!1;var a=e.getStyleSheets();if(a[b])return e.getStyleSheets()[b];for(var d in a)if(a[d].href&&-1<a[d].href.indexOf(b))return a[d];return!1};e.getDynamicStyleSheet=function(b){b||(b="default");c[b]||(l.doc.createStyleSheet?(c[b]=l.doc.createStyleSheet(),9>k("ie")&&(c[b].title=b)):(c[b]=l.doc.createElement("style"),c[b].setAttribute("type","text/css"),l.doc.getElementsByTagName("head")[0].appendChild(c[b])),c[b]._indicies=
[]);return c[b]};e.enableStyleSheet=function(b){if(b=e.getStyleSheet(b))b.sheet?b.sheet.disabled=!1:b.disabled=!1};e.disableStyleSheet=function(b){if(b=e.getStyleSheet(b))b.sheet?b.sheet.disabled=!0:b.disabled=!0};e.activeStyleSheet=function(b){var a=e.getToggledStyleSheets(),c;if(1===arguments.length)m.forEach(a,function(a){a.disabled=a.title===b?!1:!0});else for(c=0;c<a.length;c++)if(!1===a[c].disabled)return a[c];return!0};e.getPreferredStyleSheet=function(){};e.getToggledStyleSheets=function(){var b;
if(!d.length){var a=e.getStyleSheets();for(b in a)a[b].title&&d.push(a[b])}return d};e.getStyleSheets=function(){if(g.collected)return g;m.forEach(l.doc.styleSheets,function(b){var a=b.sheet?b.sheet:b;b=a.title||a.href;if(k("ie"))-1===a.cssText.indexOf("#default#VML")&&(a.href?g[b]=a:a.imports.length?m.forEach(a.imports,function(a){g[a.title||a.href]=a}):g[b]=a);else{g[b]=a;g[b].id=a.ownerNode.id;b=[];try{b=a[a.cssRules?"cssRules":"rules"]}catch(c){console.warn("Reading css rules from stylesheet "+
a.href+" is forbidden due to same-origin policy. See http://www.w3.org/TR/CSP/#cascading-style-sheet-css-parsing",a)}m.forEach(b,function(b){b.href&&(g[b.href]=b.styleSheet,g[b.href].id=a.ownerNode.id)})}});g.collected=!0;return g};return e})},"dijit/_base":function(){define("./main ./a11y ./WidgetSet ./_base/focus ./_base/manager ./_base/place ./_base/popup ./_base/scroll ./_base/sniff ./_base/typematic ./_base/wai ./_base/window".split(" "),function(f){return f._base})},"dijit/WidgetSet":function(){define(["dojo/_base/array",
"dojo/_base/declare","dojo/_base/kernel","./registry"],function(f,m,l,k){var e=m("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0},add:function(c){if(this._hash[c.id])throw Error("Tried to register widget with id\x3d\x3d"+c.id+" but that id is already registered");this._hash[c.id]=c;this.length++},remove:function(c){this._hash[c]&&(delete this._hash[c],this.length--)},forEach:function(c,e){e=e||l.global;var d=0,b;for(b in this._hash)c.call(e,this._hash[b],d++,this._hash);
return this},filter:function(c,g){g=g||l.global;var d=new e,b=0,a;for(a in this._hash){var f=this._hash[a];c.call(g,f,b++,this._hash)&&d.add(f)}return d},byId:function(c){return this._hash[c]},byClass:function(c){var g=new e,d,b;for(d in this._hash)b=this._hash[d],b.declaredClass==c&&g.add(b);return g},toArray:function(){var c=[],e;for(e in this._hash)c.push(this._hash[e]);return c},map:function(c,e){return f.map(this.toArray(),c,e)},every:function(c,e){e=e||l.global;var d=0,b;for(b in this._hash)if(!c.call(e,
this._hash[b],d++,this._hash))return!1;return!0},some:function(c,e){e=e||l.global;var d=0,b;for(b in this._hash)if(c.call(e,this._hash[b],d++,this._hash))return!0;return!1}});f.forEach("forEach filter byClass map every some".split(" "),function(c){k[c]=e.prototype[c]});return e})},"dijit/_base/place":function(){define(["dojo/_base/array","dojo/_base/lang","dojo/window","../place","../main"],function(f,m,l,k,e){var c={getViewport:function(){return l.getBox()}};c.placeOnScreen=k.at;c.placeOnScreenAroundElement=
function(c,d,b,a){var e;if(m.isArray(b))e=b;else{e=[];for(var f in b)e.push({aroundCorner:f,corner:b[f]})}return k.around(c,d,e,!0,a)};c.placeOnScreenAroundNode=c.placeOnScreenAroundElement;c.placeOnScreenAroundRectangle=c.placeOnScreenAroundElement;c.getPopupAroundAlignment=function(c,d){var b={};f.forEach(c,function(a){var c=d;switch(a){case "after":b[d?"BR":"BL"]=d?"BL":"BR";break;case "before":b[d?"BL":"BR"]=d?"BR":"BL";break;case "below-alt":c=!c;case "below":b[c?"BL":"BR"]=c?"TL":"TR";b[c?"BR":
"BL"]=c?"TR":"TL";break;case "above-alt":c=!c;default:b[c?"TL":"TR"]=c?"BL":"BR",b[c?"TR":"TL"]=c?"BR":"BL"}});return b};m.mixin(e,c);return e})},"dijit/_base/scroll":function(){define(["dojo/window","../main"],function(f,m){m.scrollIntoView=function(l,k){f.scrollIntoView(l,k)}})},"dijit/_base/sniff":function(){define(["dojo/uacss"],function(){})},"dijit/_base/typematic":function(){define(["../typematic"],function(){})},"dijit/_base/wai":function(){define(["dojo/dom-attr","dojo/_base/lang","../main",
"../hccss"],function(f,m,l){m.mixin(l,{hasWaiRole:function(f,e){var c=this.getWaiRole(f);return e?-1<c.indexOf(e):0<c.length},getWaiRole:function(k){return m.trim((f.get(k,"role")||"").replace("wairole:",""))},setWaiRole:function(k,e){f.set(k,"role",e)},removeWaiRole:function(k,e){var c=f.get(k,"role");c&&(e?(c=m.trim((" "+c+" ").replace(" "+e+" "," ")),f.set(k,"role",c)):k.removeAttribute("role"))},hasWaiState:function(f,e){return f.hasAttribute?f.hasAttribute("aria-"+e):!!f.getAttribute("aria-"+
e)},getWaiState:function(f,e){return f.getAttribute("aria-"+e)||""},setWaiState:function(f,e,c){f.setAttribute("aria-"+e,c)},removeWaiState:function(f,e){f.removeAttribute("aria-"+e)}});return l})},"dijit/_base/window":function(){define(["dojo/window","../main"],function(f,m){m.getDocumentWindow=function(l){return f.get(l)}})},"dojo/dnd/Source":function(){define("../_base/array ../_base/declare ../_base/kernel ../_base/lang ../dom-class ../dom-geometry ../mouse ../ready ../topic ./common ./Selector ./Manager".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p){l.isAsync||d(0,function(){require(["dojo/dnd/AutoSource","dojo/dnd/Target"])});var n=m("dojo.dnd.Source",h,{isSource:!0,horizontal:!1,copyOnly:!1,selfCopy:!1,selfAccept:!0,skipForm:!1,withHandles:!1,autoSync:!1,delay:0,accept:["text"],generateText:!0,constructor:function(a,c){k.mixin(this,k.mixin({},c));var d=this.accept;if(d.length){this.accept={};for(var g=0;g<d.length;++g)this.accept[d[g]]=1}this.mouseDown=this.isDragging=!1;this.targetBox=this.targetAnchor=null;
this.before=!0;this._lastY=this._lastX=0;this.sourceState="";this.isSource&&e.add(this.node,"dojoDndSource");this.targetState="";this.accept&&e.add(this.node,"dojoDndTarget");this.horizontal&&e.add(this.node,"dojoDndHorizontal");this.topics=[b.subscribe("/dnd/source/over",k.hitch(this,"onDndSourceOver")),b.subscribe("/dnd/start",k.hitch(this,"onDndStart")),b.subscribe("/dnd/drop",k.hitch(this,"onDndDrop")),b.subscribe("/dnd/cancel",k.hitch(this,"onDndCancel"))]},checkAcceptance:function(a,b){if(this==
a)return!this.copyOnly||this.selfAccept;for(var c=0;c<b.length;++c){for(var d=a.getItem(b[c].id).type,e=!1,g=0;g<d.length;++g)if(d[g]in this.accept){e=!0;break}if(!e)return!1}return!0},copyState:function(a,b){if(a)return!0;2>arguments.length&&(b=this==p.manager().target);if(b){if(this.copyOnly)return this.selfCopy}else return this.copyOnly;return!1},destroy:function(){n.superclass.destroy.call(this);f.forEach(this.topics,function(a){a.remove()});this.targetAnchor=null},onMouseMove:function(b){if(!(this.isDragging&&
"Disabled"==this.targetState)){n.superclass.onMouseMove.call(this,b);var d=p.manager();if(!this.isDragging&&this.mouseDown&&this.isSource&&(Math.abs(b.pageX-this._lastX)>this.delay||Math.abs(b.pageY-this._lastY)>this.delay)){var e=this.getSelectedNodes();e.length&&d.startDrag(this,e,this.copyState(a.getCopyKeyState(b),!0))}if(this.isDragging){e=!1;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current)this.targetBox=c.position(this.current,!0);e=this.horizontal?b.pageX-this.targetBox.x<
this.targetBox.w/2==c.isBodyLtr(this.current.ownerDocument):b.pageY-this.targetBox.y<this.targetBox.h/2}if(this.current!=this.targetAnchor||e!=this.before)this._markTargetAnchor(e),d.canDrop(!this.current||d.source!=this||!(this.current.id in this.selection))}}},onMouseDown:function(b){if(!this.mouseDown&&this._legalMouseDown(b)&&(!this.skipForm||!a.isFormElement(b)))this.mouseDown=!0,this._lastX=b.pageX,this._lastY=b.pageY,n.superclass.onMouseDown.call(this,b)},onMouseUp:function(a){this.mouseDown&&
(this.mouseDown=!1,n.superclass.onMouseUp.call(this,a))},onDndSourceOver:function(a){this!==a?(this.mouseDown=!1,this.targetAnchor&&this._unmarkTargetAnchor()):this.isDragging&&(a=p.manager(),a.canDrop("Disabled"!=this.targetState&&(!this.current||a.source!=this||!(this.current.id in this.selection))))},onDndStart:function(a,b,c){this.autoSync&&this.sync();this.isSource&&this._changeState("Source",this==a?c?"Copied":"Moved":"");b=this.accept&&this.checkAcceptance(a,b);this._changeState("Target",b?
"":"Disabled");this==a&&p.manager().overSource(this);this.isDragging=!0},onDndDrop:function(a,b,c,d){if(this==d)this.onDrop(a,b,c);this.onDndCancel()},onDndCancel:function(){this.targetAnchor&&(this._unmarkTargetAnchor(),this.targetAnchor=null);this.before=!0;this.mouseDown=this.isDragging=!1;this._changeState("Source","");this._changeState("Target","")},onDrop:function(a,b,c){if(this!=a)this.onDropExternal(a,b,c);else this.onDropInternal(b,c)},onDropExternal:function(b,c,d){var e=this._normalizedCreator;
this._normalizedCreator=this.creator?function(a,c){return e.call(this,b.getItem(a.id).data,c)}:d?function(c){var d=b.getItem(c.id);c=c.cloneNode(!0);c.id=a.getUniqueId();return{node:c,data:d.data,type:d.type}}:function(a){var c=b.getItem(a.id);b.delItem(a.id);return{node:a,data:c.data,type:c.type}};this.selectNone();!d&&!this.creator&&b.selectNone();this.insertNodes(!0,c,this.before,this.current);!d&&this.creator&&b.deleteSelectedNodes();this._normalizedCreator=e},onDropInternal:function(b,c){var d=
this._normalizedCreator;if(!(this.current&&this.current.id in this.selection)){if(c)this._normalizedCreator=this.creator?function(a,b){return d.call(this,this.getItem(a.id).data,b)}:function(b){var c=this.getItem(b.id);b=b.cloneNode(!0);b.id=a.getUniqueId();return{node:b,data:c.data,type:c.type}};else{if(!this.current)return;this._normalizedCreator=function(a){var b=this.getItem(a.id);return{node:a,data:b.data,type:b.type}}}this._removeSelection();this.insertNodes(!0,b,this.before,this.current);this._normalizedCreator=
d}},onDraggingOver:function(){},onDraggingOut:function(){},onOverEvent:function(){n.superclass.onOverEvent.call(this);p.manager().overSource(this);if(this.isDragging&&"Disabled"!=this.targetState)this.onDraggingOver()},onOutEvent:function(){n.superclass.onOutEvent.call(this);p.manager().outSource(this);if(this.isDragging&&"Disabled"!=this.targetState)this.onDraggingOut()},_markTargetAnchor:function(a){this.current==this.targetAnchor&&this.before==a||(this.targetAnchor&&this._removeItemClass(this.targetAnchor,
this.before?"Before":"After"),this.targetAnchor=this.current,this.targetBox=null,this.before=a,this.targetAnchor&&this._addItemClass(this.targetAnchor,this.before?"Before":"After"))},_unmarkTargetAnchor:function(){this.targetAnchor&&(this._removeItemClass(this.targetAnchor,this.before?"Before":"After"),this.targetBox=this.targetAnchor=null,this.before=!0)},_markDndStatus:function(a){this._changeState("Source",a?"Copied":"Moved")},_legalMouseDown:function(a){if("touchstart"!=a.type&&!g.isLeft(a))return!1;
if(!this.withHandles)return!0;for(a=a.target;a&&a!==this.node;a=a.parentNode){if(e.contains(a,"dojoDndHandle"))return!0;if(e.contains(a,"dojoDndItem")||e.contains(a,"dojoDndIgnore"))break}return!1}});return n})},"dojo/dnd/Selector":function(){define("../_base/array ../_base/declare ../_base/kernel ../_base/lang ../dom ../dom-construct ../mouse ../_base/NodeList ../on ../touch ./common ./Container".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p){var n=m("dojo.dnd.Selector",p,{constructor:function(c,d){d||
(d={});this.singular=d.singular;this.autoSync=d.autoSync;this.selection={};this.anchor=null;this.simpleSelection=!1;this.events.push(b(this.node,a.press,k.hitch(this,"onMouseDown")),b(this.node,a.release,k.hitch(this,"onMouseUp")))},singular:!1,getSelectedNodes:function(){var a=new d,b=h._empty,c;for(c in this.selection)c in b||a.push(e.byId(c));return a},selectNone:function(){return this._removeSelection()._removeAnchor()},selectAll:function(){this.forInItems(function(a,b){this._addItemClass(e.byId(b),
"Selected");this.selection[b]=1},this);return this._removeAnchor()},deleteSelectedNodes:function(){var a=h._empty,b;for(b in this.selection)if(!(b in a)){var d=e.byId(b);this.delItem(b);c.destroy(d)}this.anchor=null;this.selection={};return this},forInSelectedItems:function(a,b){b=b||l.global;var c=this.selection,d=h._empty,e;for(e in c)e in d||a.call(b,this.getItem(e),e,this)},sync:function(){n.superclass.sync.call(this);this.anchor&&!this.getItem(this.anchor.id)&&(this.anchor=null);var a=[],b=h._empty,
c;for(c in this.selection)c in b||this.getItem(c)||a.push(c);f.forEach(a,function(a){delete this.selection[a]},this);return this},insertNodes:function(a,b,c,d){var e=this._normalizedCreator;this._normalizedCreator=function(b,c){var d=e.call(this,b,c);a?(this.anchor?this.anchor!=d.node&&(this._removeItemClass(d.node,"Anchor"),this._addItemClass(d.node,"Selected")):(this.anchor=d.node,this._removeItemClass(d.node,"Selected"),this._addItemClass(this.anchor,"Anchor")),this.selection[d.node.id]=1):(this._removeItemClass(d.node,
"Selected"),this._removeItemClass(d.node,"Anchor"));return d};n.superclass.insertNodes.call(this,b,c,d);this._normalizedCreator=e;return this},destroy:function(){n.superclass.destroy.call(this);this.selection=this.anchor=null},onMouseDown:function(a){this.autoSync&&this.sync();if(this.current)if(!this.singular&&!h.getCopyKeyState(a)&&!a.shiftKey&&this.current.id in this.selection)this.simpleSelection=!0,g.isLeft(a)&&(a.stopPropagation(),a.preventDefault());else{if(!this.singular&&a.shiftKey){h.getCopyKeyState(a)||
this._removeSelection();var b=this.getAllNodes();if(b.length&&(this.anchor||(this.anchor=b[0],this._addItemClass(this.anchor,"Anchor")),this.selection[this.anchor.id]=1,this.anchor!=this.current)){for(var c=0,d;c<b.length&&!(d=b[c],d==this.anchor||d==this.current);++c);for(++c;c<b.length;++c){d=b[c];if(d==this.anchor||d==this.current)break;this._addItemClass(d,"Selected");this.selection[d.id]=1}this._addItemClass(this.current,"Selected");this.selection[this.current.id]=1}}else this.singular?this.anchor==
this.current?h.getCopyKeyState(a)&&this.selectNone():(this.selectNone(),this.anchor=this.current,this._addItemClass(this.anchor,"Anchor"),this.selection[this.current.id]=1):h.getCopyKeyState(a)?this.anchor==this.current?(delete this.selection[this.anchor.id],this._removeAnchor()):this.current.id in this.selection?(this._removeItemClass(this.current,"Selected"),delete this.selection[this.current.id]):(this.anchor&&(this._removeItemClass(this.anchor,"Anchor"),this._addItemClass(this.anchor,"Selected")),
this.anchor=this.current,this._addItemClass(this.current,"Anchor"),this.selection[this.current.id]=1):this.current.id in this.selection||(this.selectNone(),this.anchor=this.current,this._addItemClass(this.current,"Anchor"),this.selection[this.current.id]=1);a.stopPropagation();a.preventDefault()}},onMouseUp:function(){this.simpleSelection&&(this.simpleSelection=!1,this.selectNone(),this.current&&(this.anchor=this.current,this._addItemClass(this.anchor,"Anchor"),this.selection[this.current.id]=1))},
onMouseMove:function(){this.simpleSelection=!1},onOverEvent:function(){this.onmousemoveEvent=b(this.node,a.move,k.hitch(this,"onMouseMove"))},onOutEvent:function(){this.onmousemoveEvent&&(this.onmousemoveEvent.remove(),delete this.onmousemoveEvent)},_removeSelection:function(){var a=h._empty,b;for(b in this.selection)if(!(b in a)){var c=e.byId(b);c&&this._removeItemClass(c,"Selected")}this.selection={};return this},_removeAnchor:function(){this.anchor&&(this._removeItemClass(this.anchor,"Anchor"),
this.anchor=null);return this}});return n})},"dojo/dnd/Container":function(){define("../_base/array ../_base/declare ../_base/kernel ../_base/lang ../_base/window ../dom ../dom-class ../dom-construct ../Evented ../has ../on ../query ../touch ./common".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p,n,t){m=m("dojo.dnd.Container",b,{skipForm:!1,allowNested:!1,constructor:function(a,b){this.node=c.byId(a);b||(b={});this.creator=b.creator||null;this.skipForm=b.skipForm;this.parent=b.dropParent&&c.byId(b.dropParent);
this.map={};this.current=null;this.containerState="";g.add(this.node,"dojoDndContainer");(!b||!b._skipStartup)&&this.startup();this.events=[h(this.node,n.over,k.hitch(this,"onMouseOver")),h(this.node,n.out,k.hitch(this,"onMouseOut")),h(this.node,"dragstart",k.hitch(this,"onSelectStart")),h(this.node,"selectstart",k.hitch(this,"onSelectStart"))]},creator:function(){},getItem:function(a){return this.map[a]},setItem:function(a,b){this.map[a]=b},delItem:function(a){delete this.map[a]},forInItems:function(a,
b){b=b||l.global;var c=this.map,d=t._empty,e;for(e in c)e in d||a.call(b,c[e],e,this);return b},clearItems:function(){this.map={}},getAllNodes:function(){return p((this.allowNested?"":"\x3e ")+".dojoDndItem",this.parent)},sync:function(){var a={};this.getAllNodes().forEach(function(b){if(b.id){var c=this.getItem(b.id);if(c){a[b.id]=c;return}}else b.id=t.getUniqueId();var c=b.getAttribute("dndType"),d=b.getAttribute("dndData");a[b.id]={data:d||b.innerHTML,type:c?c.split(/\s*,\s*/):["text"]}},this);
this.map=a;return this},insertNodes:function(a,b,c){this.parent.firstChild?b?c||(c=this.parent.firstChild):c&&(c=c.nextSibling):c=null;var d;if(c)for(b=0;b<a.length;++b)d=this._normalizedCreator(a[b]),this.setItem(d.node.id,{data:d.data,type:d.type}),c.parentNode.insertBefore(d.node,c);else for(b=0;b<a.length;++b)d=this._normalizedCreator(a[b]),this.setItem(d.node.id,{data:d.data,type:d.type}),this.parent.appendChild(d.node);return this},destroy:function(){f.forEach(this.events,function(a){a.remove()});
this.clearItems();this.node=this.parent=this.current=null},markupFactory:function(a,b,c){a._skipStartup=!0;return new c(b,a)},startup:function(){if(!this.parent&&(this.parent=this.node,"table"==this.parent.tagName.toLowerCase())){var a=this.parent.getElementsByTagName("tbody");a&&a.length&&(this.parent=a[0])}this.defaultCreator=t._defaultCreator(this.parent);this.sync()},onMouseOver:function(a){for(var b=a.relatedTarget;b&&b!=this.node;)try{b=b.parentNode}catch(c){b=null}b||(this._changeState("Container",
"Over"),this.onOverEvent());b=this._getChildByEvent(a);this.current!=b&&(this.current&&this._removeItemClass(this.current,"Over"),b&&this._addItemClass(b,"Over"),this.current=b)},onMouseOut:function(a){for(a=a.relatedTarget;a;){if(a==this.node)return;try{a=a.parentNode}catch(b){a=null}}this.current&&(this._removeItemClass(this.current,"Over"),this.current=null);this._changeState("Container","");this.onOutEvent()},onSelectStart:function(a){if(!this.skipForm||!t.isFormElement(a))a.stopPropagation(),
a.preventDefault()},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(a,b){var c="dojoDnd"+a,d=a.toLowerCase()+"State";g.replace(this.node,c+b,c+this[d]);this[d]=b},_addItemClass:function(a,b){g.add(a,"dojoDndItem"+b)},_removeItemClass:function(a,b){g.remove(a,"dojoDndItem"+b)},_getChildByEvent:function(a){if(a=a.target)for(var b=a.parentNode;b;a=b,b=a.parentNode)if((b==this.parent||this.allowNested)&&g.contains(a,"dojoDndItem"))return a;return null},_normalizedCreator:function(a,
b){var c=(this.creator||this.defaultCreator).call(this,a,b);k.isArray(c.type)||(c.type=["text"]);c.node.id||(c.node.id=t.getUniqueId());g.add(c.node,"dojoDndItem");return c}});t._createNode=function(a){return!a?t._createSpan:function(b){return d.create(a,{innerHTML:b})}};t._createTrTd=function(a){var b=d.create("tr");d.create("td",{innerHTML:a},b);return b};t._createSpan=function(a){return d.create("span",{innerHTML:a})};t._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};t._defaultCreator=
function(a){a=a.tagName.toLowerCase();var b="tbody"==a||"thead"==a?t._createTrTd:t._createNode(t._defaultCreatorNodes[a]);return function(a,c){var d=a&&k.isObject(a),e,g;d&&a.tagName&&a.nodeType&&a.getAttribute?(e=a.getAttribute("dndData")||a.innerHTML,d=(d=a.getAttribute("dndType"))?d.split(/\s*,\s*/):["text"],g=a):(e=d&&a.data?a.data:a,d=d&&a.type?a.type:["text"],g=("avatar"==c?t._createSpan:b)(String(e)));g.id||(g.id=t.getUniqueId());return{node:g,data:e,type:d}}};return m})},"dojo/dnd/AutoSource":function(){define(["../_base/declare",
"./Source"],function(f,m){return f("dojo.dnd.AutoSource",m,{constructor:function(){this.autoSync=!0}})})},"dojo/dnd/Target":function(){define(["../_base/declare","../dom-class","./Source"],function(f,m,l){return f("dojo.dnd.Target",l,{constructor:function(){this.isSource=!1;m.remove(this.node,"dojoDndSource")}})})},"dojox/grid/DataGrid":function(){define("../main dojo/_base/array dojo/_base/lang dojo/_base/json dojo/_base/sniff dojo/_base/declare ./_Grid ./DataSelection dojo/_base/html dojo/has dojo/has!dojo-bidi?./bidi/_BidiMixin".split(" "),
function(f,m,l,k,e,c,g,d,b){var a=c("dojox.grid.DataGrid",g,{store:null,query:null,queryOptions:null,fetchText:"...",sortFields:null,updateDelay:1,items:null,_store_connects:null,_by_idty:null,_by_idx:null,_cache:null,_pages:null,_pending_requests:null,_bop:-1,_eop:-1,_requests:0,rowCount:0,_isLoaded:!1,_isLoading:!1,keepSelection:!1,postCreate:function(){this._pages=[];this._store_connects=[];this._by_idty={};this._by_idx=[];this._cache=[];this._pending_requests={};this._setStore(this.store);this.inherited(arguments)},
destroy:function(){this.selection.destroy();this.inherited(arguments)},createSelection:function(){this.selection=new d(this)},get:function(a,b){if(b&&"_item"==this.field&&!this.fields)return b;if(b&&this.fields){var c=[],d=this.grid.store;m.forEach(this.fields,function(a){c=c.concat(d.getValues(b,a))});return c}return!b&&"string"===typeof a?this.inherited(arguments):!b?this.defaultValue:!this.field?this.value:"_item"==this.field?b:this.grid.store.getValue(b,this.field)},_checkUpdateStatus:function(){if(0<
this.updateDelay){var a=!1;this._endUpdateDelay&&(clearTimeout(this._endUpdateDelay),delete this._endUpdateDelay,a=!0);this.updating||(this.beginUpdate(),a=!0);if(a){var b=this;this._endUpdateDelay=setTimeout(function(){delete b._endUpdateDelay;b.endUpdate()},this.updateDelay)}}},_onSet:function(a,b,c,d){this._checkUpdateStatus();a=this.getItemIndex(a);-1<a&&this.updateRow(a)},_createItem:function(a,b){var c=this._hasIdentity?this.store.getIdentity(a):k.toJson(this.query)+":idx:"+b+":sort:"+k.toJson(this.getSortProps());
return this._by_idty[c]={idty:c,item:a}},_addItem:function(a,b,c){this._by_idx[b]=this._createItem(a,b);c||this.updateRow(b)},_onNew:function(a,b){this._checkUpdateStatus();var c=this.get("rowCount");this._addingItem=!0;this.updateRowCount(c+1);this._addingItem=!1;this._addItem(a,c);this.showMessage()},_onDelete:function(a){this._checkUpdateStatus();a=this._getItemIndex(a,!0);if(0<=a){this._pages=[];this._eop=this._bop=-1;var b=this._by_idx[a];this._by_idx.splice(a,1);delete this._by_idty[b.idty];
this.updateRowCount(this.get("rowCount")-1);0===this.get("rowCount")&&this.showMessage(this.noDataMessage)}this.selection.isSelected(a)&&(this.selection.deselect(a),this.selection.selected.splice(a,1))},_onRevert:function(){this._refresh()},setStore:function(a,b,c){this._requestsPending(0)||(this._setQuery(b,c),this._setStore(a),this._refresh(!0))},setQuery:function(a,b){this._requestsPending(0)||(this._setQuery(a,b),this._refresh(!0))},setItems:function(a){this.items=a;this._setStore(this.store);
this._refresh(!0)},_setQuery:function(a,b){this.query=a;this.queryOptions=b||this.queryOptions},_setStore:function(a){this.store&&this._store_connects&&m.forEach(this._store_connects,this.disconnect,this);if(this.store=a){a=this.store.getFeatures();var b=[];this._canEdit=!!a["dojo.data.api.Write"]&&!!a["dojo.data.api.Identity"];this._hasIdentity=!!a["dojo.data.api.Identity"];a["dojo.data.api.Notification"]&&!this.items&&(b.push(this.connect(this.store,"onSet","_onSet")),b.push(this.connect(this.store,
"onNew","_onNew")),b.push(this.connect(this.store,"onDelete","_onDelete")));this._canEdit&&b.push(this.connect(this.store,"revert","_onRevert"));this._store_connects=b}},_onFetchBegin:function(a,b){this.scroller&&(this.rowCount!=a&&(b.isRender?(this.scroller.init(a,this.keepRows,this.rowsPerPage),this.rowCount=a,this._setAutoHeightAttr(this.autoHeight,!0),this._skipRowRenormalize=!0,this.prerender(),this._skipRowRenormalize=!1):this.updateRowCount(a)),a?this.showMessage():(this.views.render(),this._resize(),
this.showMessage(this.noDataMessage),this.focus.initFocusView()))},_onFetchComplete:function(a,c){this.scroller&&(a&&0<a.length&&(m.forEach(a,function(a,b){this._addItem(a,c.start+b,!0)},this),this.updateRows(c.start,a.length),c.isRender?(this.setScrollTop(0),this.postrender()):this._lastScrollTop&&this.setScrollTop(this._lastScrollTop),e("ie")&&b.setSelectable(this.domNode,this.selectable)),delete this._lastScrollTop,this._isLoaded||(this._isLoading=!1,this._isLoaded=!0),this._pending_requests[c.start]=
!1)},_onFetchError:function(a,b){delete this._lastScrollTop;this._isLoaded||(this._isLoading=!1,this._isLoaded=!0,this.showMessage(this.errorMessage));this._pending_requests[b.start]=!1;this.onFetchError(a,b)},onFetchError:function(a,b){},_fetch:function(a,b){a=a||0;if(this.store&&!this._pending_requests[a]){!this._isLoaded&&!this._isLoading&&(this._isLoading=!0,this.showMessage(this.loadingMessage));this._pending_requests[a]=!0;try{if(this.items){var c=this.items,d=this.store;this.rowsPerPage=c.length;
var e={start:a,count:this.rowsPerPage,isRender:b};this._onFetchBegin(c.length,e);var g=0;m.forEach(c,function(a){d.isItemLoaded(a)||g++});if(0===g)this._onFetchComplete(c,e);else{var f=function(a){g--;0===g&&this._onFetchComplete(c,e)};m.forEach(c,function(a){d.isItemLoaded(a)||d.loadItem({item:a,onItem:f,scope:this})},this)}}else this.store.fetch({start:a,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:b,onBegin:l.hitch(this,"_onFetchBegin"),
onComplete:l.hitch(this,"_onFetchComplete"),onError:l.hitch(this,"_onFetchError")})}catch(k){this._onFetchError(k,{start:a,count:this.rowsPerPage})}}},_clearData:function(){this.updateRowCount(0);this._by_idty={};this._by_idx=[];this._pages=[];this._bop=this._eop=-1;this._isLoading=this._isLoaded=!1},getItem:function(a){var b=this._by_idx[a];return!b||b&&!b.item?(this._preparePage(a),null):b.item},getItemIndex:function(a){return this._getItemIndex(a,!1)},_getItemIndex:function(a,b){if(!b&&!this.store.isItem(a))return-1;
for(var c=this._hasIdentity?this.store.getIdentity(a):null,d=0,e=this._by_idx.length;d<e;d++){var g=this._by_idx[d];if(g&&(c&&g.idty==c||g.item===a))return d}return-1},filter:function(a,b){this.query=a;b&&this._clearData();this._fetch()},_getItemAttr:function(a,b){var c=this.getItem(a);return!c?this.fetchText:this.store.getValue(c,b)},_render:function(){this.domNode.parentNode&&(this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage),this.prerender(),this._fetch(0,!0))},_requestsPending:function(a){return this._pending_requests[a]},
_rowToPage:function(a){return this.rowsPerPage?Math.floor(a/this.rowsPerPage):a},_pageToRow:function(a){return this.rowsPerPage?this.rowsPerPage*a:a},_preparePage:function(a){if((a<this._bop||a>=this._eop)&&!this._addingItem)a=this._rowToPage(a),this._needPage(a),this._bop=a*this.rowsPerPage,this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"))},_needPage:function(a){this._pages[a]||(this._pages[a]=!0,this._requestPage(a))},_requestPage:function(a){a=this._pageToRow(a);0<Math.min(this.rowsPerPage,
this.get("rowCount")-a)&&(this._requests++,this._requestsPending(a)||setTimeout(l.hitch(this,"_fetch",a,!1),1))},getCellName:function(a){return a.field},_refresh:function(a){this._clearData();this._fetch(0,a)},sort:function(){this.edit.apply();this._lastScrollTop=this.scrollTop;this._refresh()},canSort:function(){return!this._isLoading},getSortProps:function(){var a=this.getCell(this.getSortIndex());if(a){var b=a.sortDesc,c=!(0<this.sortInfo);return[{attribute:a.field,descending:"undefined"==typeof b?
c:c?!b:b}]}return this.sortFields?this.sortFields:null},styleRowState:function(a){if(this.store&&this.store.getState){for(var b=this.store.getState(a.index),c="",d=0,e=["inflight","error","inserting"],g;g=e[d];d++)if(b[g]){c=" dojoxGridRow-"+g;break}a.customClasses+=c}},onStyleRow:function(a){this.styleRowState(a);this.inherited(arguments)},canEdit:function(a,b){return this._canEdit},_copyAttr:function(a,b){var c=this.getItem(a);return this.store.getValue(c,b)},doStartEdit:function(a,b){this._cache[b]||
(this._cache[b]=this._copyAttr(b,a.field));this.onStartEdit(a,b)},doApplyCellEdit:function(a,b,c){this.store.fetchItemByIdentity({identity:this._by_idx[b].idty,onItem:l.hitch(this,function(d){var e=this.store.getValue(d,c);"number"==typeof e?a=isNaN(a)?a:parseFloat(a):"boolean"==typeof e?a="true"==a?!0:"false"==a?!1:a:e instanceof Date&&(e=new Date(a),a=isNaN(e.getTime())?a:e);this.store.setValue(d,c,a);this.onApplyCellEdit(a,b,c)})})},doCancelEdit:function(a){this._cache[a]&&(this.updateRow(a),delete this._cache[a]);
this.onCancelEdit.apply(this,arguments)},doApplyEdit:function(a,b){this.onApplyEdit(a)},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var a=l.hitch(this,function(a){a.length&&(m.forEach(a,this.store.deleteItem,this.store),this.selection.clear())});this.allItemsSelected?this.store.fetch({query:this.query,queryOptions:this.queryOptions,onComplete:a}):a(this.selection.getSelected())}}});a.cell_markupFactory=function(a,c,d){var e=l.trim(b.attr(c,"field")||"");e&&(d.field=e);d.field=
d.field||d.name;if(e=l.trim(b.attr(c,"fields")||""))d.fields=e.split(",");a&&a(c,d)};a.markupFactory=function(b,c,d,e){return g.markupFactory(b,c,d,l.partial(a.cell_markupFactory,e))};return a})},"dojox/grid/_Grid":function(){define("dojo/_base/kernel ../main dojo/_base/declare ./_Events ./_Scroller ./_Layout ./_View ./_ViewManager ./_RowManager ./_FocusManager ./_EditManager ./Selection ./_RowSelector ./util dijit/_Widget dijit/_TemplatedMixin dijit/CheckedMenuItem dojo/text!./resources/_Grid.html dojo/string dojo/_base/array dojo/_base/lang dojo/_base/sniff dojox/html/metrics dojo/_base/html dojo/query dojo/dnd/common dojo/i18n!dijit/nls/loading".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r,w,u,v,x,y,z,A,E){f.isCopyKey||(f.isCopyKey=f.dnd.getCopyKeyState);l=l("dojox.grid._Grid",[q,s,k],{templateString:w,classTag:"dojoxGrid",rowCount:5,keepRows:75,rowsPerPage:25,autoWidth:!1,initialWidth:"",autoHeight:"",rowHeight:0,autoRender:!0,defaultHeight:"15em",height:"",structure:null,elasticView:-1,singleClickEdit:!1,selectionMode:"extended",rowSelector:"",columnReordering:!1,headerMenu:null,placeholderLabel:"GridColumns",selectable:!1,_click:null,loadingMessage:"\x3cspan class\x3d'dojoxGridLoading'\x3e${loadingState}\x3c/span\x3e",
errorMessage:"\x3cspan class\x3d'dojoxGridError'\x3e${errorState}\x3c/span\x3e",noDataMessage:"",escapeHTMLInData:!0,formatterScope:null,editable:!1,summary:"",_setSummaryAttr:"domNode",sortInfo:0,_placeholders:null,_layoutClass:c,buildRendering:function(){this.inherited(arguments);this.domNode.getAttribute("tabIndex")||(this.domNode.tabIndex="0");this.createScroller();this.createLayout();this.createViews();this.createManagers();this.createSelection();this.connect(this.selection,"onSelected","onSelected");
this.connect(this.selection,"onDeselected","onDeselected");this.connect(this.selection,"onChanged","onSelectionChanged");z.initOnFontResize();this.connect(z,"onFontResize","textSizeChanged");t.funnelEvents(this.domNode,this,"doKeyEvent",t.keyEvents);"none"!=this.selectionMode&&this.domNode.setAttribute("aria-multiselectable","single"==this.selectionMode?"false":"true");A.addClass(this.domNode,this.classTag);this.isLeftToRight()||A.addClass(this.domNode,this.classTag+"Rtl");0<this.rowHeight&&A.addClass(this.viewsNode,
this.classTag+"FixedRowHeight")},postMixInProperties:function(){this.inherited(arguments);var a=f.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=u.substitute(this.loadingMessage,a);this.errorMessage=u.substitute(this.errorMessage,a);this.srcNodeRef&&this.srcNodeRef.style.height&&(this.height=this.srcNodeRef.style.height);this._setAutoHeightAttr(this.autoHeight,!0);this.lastScrollTop=this.scrollTop=0},postCreate:function(){this._placeholders=[];this._setHeaderMenuAttr(this.headerMenu);
this._setStructureAttr(this.structure);this._click=[];this.inherited(arguments);this.domNode&&(this.autoWidth&&this.initialWidth)&&(this.domNode.style.width=this.initialWidth);this.domNode&&!this.editable&&A.attr(this.domNode,"aria-readonly","true")},destroy:function(){this.domNode.onReveal=null;this.domNode.onSizeChange=null;delete this._click;this.scroller&&(this.scroller.destroy(),delete this.scroller);this.edit.destroy();delete this.edit;this.views.destroyViews();this.focus&&(this.focus.destroy(),
delete this.focus);this.headerMenu&&this._placeholders.length&&(v.forEach(this._placeholders,function(a){a.unReplace(!0)}),this.headerMenu.unBindDomNode(this.viewsHeaderNode));this.inherited(arguments)},_setAutoHeightAttr:function(a,b){"string"==typeof a&&(a=!a||"false"==a?!1:"true"==a?!0:window.parseInt(a,10));"number"==typeof a&&(isNaN(a)&&(a=!1),0>a?a=!0:0===a&&(a=!1));this.autoHeight=a;this._autoHeight="boolean"==typeof a?a:"number"==typeof a?a>=this.get("rowCount"):!1;this._started&&!b&&this.render()},
_getRowCountAttr:function(){return this.updating&&this.invalidated&&void 0!=this.invalidated.rowCount?this.invalidated.rowCount:this.rowCount},textSizeChanged:function(){this.render()},sizeChange:function(){this.update()},createManagers:function(){this.rows=new b(this);this.focus=new a(this);this.edit=new h(this)},createSelection:function(){this.selection=new p(this)},createScroller:function(){this.scroller=new e;this.scroller.grid=this;this.scroller.renderRow=x.hitch(this,"renderRow");this.scroller.removeRow=
x.hitch(this,"rowRemoved")},createLayout:function(){this.layout=new this._layoutClass(this);this.connect(this.layout,"moveColumn","onMoveColumn")},onMoveColumn:function(){this.update()},onResizeColumn:function(a){},createViews:function(){this.views=new d(this);this.views.createView=x.hitch(this,"createView")},createView:function(a,b){var c=new (x.getObject(a))({grid:this,index:b});this.viewsNode.appendChild(c.domNode);this.viewsHeaderNode.appendChild(c.headerNode);this.views.addView(c);A.attr(this.domNode,
"align",this.isLeftToRight()?"left":"right");return c},buildViews:function(){for(var a=0,b;b=this.layout.structure[a];a++)this.createView(b.type||m._scopeName+".grid._View",a).setStructure(b);this.scroller.setContentNodes(this.views.getContentNodes())},_setStructureAttr:function(a){a&&x.isString(a)&&(f.deprecated("dojox.grid._Grid.set('structure', 'objVar')","use dojox.grid._Grid.set('structure', objVar) instead","2.0"),a=x.getObject(a));this.structure=a;if(!a)if(this.layout.structure)a=this.layout.structure;
else return;this.views.destroyViews();this.focus.focusView=null;a!==this.layout.structure&&this.layout.setStructure(a);this._structureChanged()},setStructure:function(a){f.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(a)},getColumnTogglingItems:function(){var a,b=[];a=v.map(this.layout.cells,function(a){a.menuItems||(a.menuItems=[]);var c=this,d=new r({label:a.name,checked:!a.hidden,_gridCell:a,onChange:function(a){if(c.layout.setColumnVisibility(this._gridCell.index,
a)){var b=this._gridCell.menuItems;1<b.length&&v.forEach(b,function(b){b!==this&&b.setAttribute("checked",a)},this);a=v.filter(c.layout.cells,function(a){1<a.menuItems.length?v.forEach(a.menuItems,"item.set('disabled', false);"):a.menuItems[0].set("disabled",!1);return!a.hidden});1==a.length&&v.forEach(a[0].menuItems,"item.set('disabled', true);")}},destroy:function(){var a=v.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(a,1);delete this._gridCell;r.prototype.destroy.apply(this,
arguments)}});a.menuItems.push(d);a.hidden||b.push(d);return d},this);1==b.length&&b[0].set("disabled",!0);return a},_setHeaderMenuAttr:function(a){this._placeholders&&this._placeholders.length&&(v.forEach(this._placeholders,function(a){a.unReplace(!0)}),this._placeholders=[]);this.headerMenu&&this.headerMenu.unBindDomNode(this.viewsHeaderNode);if(this.headerMenu=a)this.headerMenu.bindDomNode(this.viewsHeaderNode),this.headerMenu.getPlaceholders&&(this._placeholders=this.headerMenu.getPlaceholders(this.placeholderLabel))},
setHeaderMenu:function(a){f.deprecated("dojox.grid._Grid.setHeaderMenu(obj)","use dojox.grid._Grid.set('headerMenu', obj) instead.","2.0");this._setHeaderMenuAttr(a)},setupHeaderMenu:function(){this._placeholders&&this._placeholders.length&&v.forEach(this._placeholders,function(a){a._replaced&&a.unReplace(!0);a.replace(this.getColumnTogglingItems())},this)},_fetch:function(a){this.setScrollTop(0)},getItem:function(a){return null},showMessage:function(a){a?(this.messagesNode.innerHTML=a,this.messagesNode.style.display=
""):(this.messagesNode.innerHTML="",this.messagesNode.style.display="none")},_structureChanged:function(){this.buildViews();this.autoRender&&this._started&&this.render()},hasLayout:function(){return this.layout.cells.length},resize:function(a,b){this._pendingChangeSize=a;this._pendingResultSize=b;this.sizeChange()},_getPadBorder:function(){return this._padBorder=this._padBorder||A._getPadBorderExtents(this.domNode)},_getHeaderHeight:function(){var a=this.viewsHeaderNode.style,b="none"==a.display?
0:this.views.measureHeader();a.height=b+"px";this.views.normalizeHeaderNodeHeight();return b},_resize:function(a,b){a=a||this._pendingChangeSize;b=b||this._pendingResultSize;delete this._pendingChangeSize;delete this._pendingResultSize;if(this.domNode){var c=this.domNode.parentNode;if(c&&!(1!=c.nodeType||!this.hasLayout()||"hidden"==c.style.visibility||"none"==c.style.display)){var d=this._getPadBorder(),e=void 0,g;this._autoHeight?this.domNode.style.height="auto":"number"==typeof this.autoHeight?
(g=e=this._getHeaderHeight(),g+=this.scroller.averageRowHeight*this.autoHeight,this.domNode.style.height=g+"px"):this.domNode.clientHeight<=d.h&&(c==document.body?this.domNode.style.height=this.defaultHeight:this.height?this.domNode.style.height=this.height:this.fitTo="parent");b&&(a=b);!this._autoHeight&&a?(A.marginBox(this.domNode,a),this.height=this.domNode.style.height,delete this.fitTo):"parent"==this.fitTo&&(g=this._parentContentBoxHeight=0<this._parentContentBoxHeight?this._parentContentBoxHeight:
A._getContentBox(c).h,this.domNode.style.height=Math.max(0,g)+"px");c=v.some(this.views.views,function(a){return a.flexCells});!this._autoHeight&&0===(g||A._getContentBox(this.domNode).h)?this.viewsHeaderNode.style.display="none":(this.viewsHeaderNode.style.display="block",!c&&void 0===e&&(e=this._getHeaderHeight()));c&&(e=void 0);this.adaptWidth();this.adaptHeight(e);this.postresize()}}},adaptWidth:function(){var a=!this.initialWidth&&this.autoWidth,b=a?0:this.domNode.clientWidth||this.domNode.offsetWidth-
this._getPadBorder().w,b=this.views.arrange(1,b);this.views.onEach("adaptWidth");a&&(this.domNode.style.width=b+"px")},adaptHeight:function(a){a=void 0===a?this._getHeaderHeight():a;var b=this._autoHeight?-1:Math.max(this.domNode.clientHeight-a,0)||0;this.views.onEach("setSize",[0,b]);this.views.onEach("adaptHeight");if(!this._autoHeight){var c=0,d=0,e=v.filter(this.views.views,function(a){(a=a.hasHScrollbar())?c++:d++;return!a});0<c&&0<d&&v.forEach(e,function(a){a.adaptHeight(!0)})}!0===this.autoHeight||
-1!=b||"number"==typeof this.autoHeight&&this.autoHeight>=this.get("rowCount")?this.scroller.windowHeight=b:this.scroller.windowHeight=Math.max(this.domNode.clientHeight-a,0)},startup:function(){this._started||(this.inherited(arguments),this.autoRender&&this.render())},render:function(){this.domNode&&this._started&&(this.hasLayout()?(this.update=this.defaultUpdate,this._render()):this.scroller.init(0,this.keepRows,this.rowsPerPage))},_render:function(){this.scroller.init(this.get("rowCount"),this.keepRows,
this.rowsPerPage);this.prerender();this.setScrollTop(0);this.postrender()},prerender:function(){this.keepRows=this._autoHeight?0:this.keepRows;this.scroller.setKeepInfo(this.keepRows);this.views.render();this._resize()},postrender:function(){this.postresize();this.focus.initFocusView();A.setSelectable(this.domNode,this.selectable)},postresize:function(){if(this._autoHeight){var a=Math.max(this.views.measureContent())+"px";this.viewsNode.style.height=a}},renderRow:function(a,b){this.views.renderRow(a,
b,this._skipRowRenormalize)},rowRemoved:function(a){this.views.rowRemoved(a)},invalidated:null,updating:!1,beginUpdate:function(){this.invalidated=[];this.updating=!0},endUpdate:function(){this.updating=!1;var a=this.invalidated,b;if(a.all)this.update();else if(void 0!=a.rowCount)this.updateRowCount(a.rowCount);else for(b in a)this.updateRow(Number(b));this.invalidated=[]},defaultUpdate:function(){this.domNode&&(this.updating?this.invalidated.all=!0:(this.lastScrollTop=this.scrollTop,this.prerender(),
this.scroller.invalidateNodes(),this.setScrollTop(this.lastScrollTop),this.postrender()))},update:function(){this.render()},updateRow:function(a){a=Number(a);this.updating?this.invalidated[a]=!0:(this.views.updateRow(a),this.scroller.rowHeightChanged(a))},updateRows:function(a,b){a=Number(a);b=Number(b);var c;if(this.updating)for(c=0;c<b;c++)this.invalidated[c+a]=!0;else{for(c=0;c<b;c++)this.views.updateRow(c+a,this._skipRowRenormalize);this.scroller.rowHeightChanged(a)}},updateRowCount:function(a){this.updating?
this.invalidated.rowCount=a:(this.rowCount=a,this._setAutoHeightAttr(this.autoHeight,!0),this.layout.cells.length&&this.scroller.updateRowCount(a),this._resize(),this.layout.cells.length&&this.setScrollTop(this.scrollTop))},updateRowStyles:function(a){this.views.updateRowStyles(a)},getRowNode:function(a){if(this.focus.focusView&&!(this.focus.focusView instanceof n))return this.focus.focusView.rowNodes[a];for(var b=0,c;c=this.views.views[b];b++)if(!(c instanceof n))return c.rowNodes[a];return null},
rowHeightChanged:function(a){this.views.renormalizeRow(a);this.scroller.rowHeightChanged(a)},fastScroll:!0,delayScroll:!1,scrollRedrawThreshold:y("ie")?100:50,scrollTo:function(a){if(this.fastScroll){var b=Math.abs(this.lastScrollTop-a);this.lastScrollTop=a;if(b>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=!0;this.scrollTop=a;this.views.setScrollTop(a);this._pendingScroll&&window.clearTimeout(this._pendingScroll);var c=this;this._pendingScroll=window.setTimeout(function(){delete c._pendingScroll;
c.finishScrollJob()},200)}else this.setScrollTop(a)}else this.setScrollTop(a)},finishScrollJob:function(){this.delayScroll=!1;this.setScrollTop(this.scrollTop)},setScrollTop:function(a){this.scroller.scroll(this.views.setScrollTop(a))},scrollToRow:function(a){this.setScrollTop(this.scroller.findScrollTop(a)+1)},styleRowNode:function(a,b){b&&this.rows.styleRowNode(a,b)},_mouseOut:function(a){this.rows.setOverRow(-2)},getCell:function(a){return this.layout.cells[a]},setCellWidth:function(a,b){this.getCell(a).unitWidth=
b},getCellName:function(a){return"Cell "+a.index},canSort:function(a){},sort:function(){},getSortAsc:function(a){a=void 0==a?this.sortInfo:a;return Boolean(0<a)},getSortIndex:function(a){a=void 0==a?this.sortInfo:a;return Math.abs(a)-1},setSortIndex:function(a,b){var c=a+1;void 0!=b?c*=b?1:-1:this.getSortIndex()==a&&(c=-this.sortInfo);this.setSortInfo(c)},setSortInfo:function(a){this.canSort(a)&&(this.sortInfo=a,this.sort(),this.update())},doKeyEvent:function(a){a.dispatch="do"+a.type;this.onKeyEvent(a)},
_dispatch:function(a,b){return a in this?this[a](b):!1},dispatchKeyEvent:function(a){this._dispatch(a.dispatch,a)},dispatchContentEvent:function(a){this.edit.dispatchEvent(a)||a.sourceView.dispatchContentEvent(a)||this._dispatch(a.dispatch,a)},dispatchHeaderEvent:function(a){a.sourceView.dispatchHeaderEvent(a)||this._dispatch("doheader"+a.type,a)},dokeydown:function(a){this.onKeyDown(a)},doclick:function(a){if(a.cellNode)this.onCellClick(a);else this.onRowClick(a)},dodblclick:function(a){if(a.cellNode)this.onCellDblClick(a);
else this.onRowDblClick(a)},docontextmenu:function(a){if(a.cellNode)this.onCellContextMenu(a);else this.onRowContextMenu(a)},doheaderclick:function(a){if(a.cellNode)this.onHeaderCellClick(a);else this.onHeaderClick(a)},doheaderdblclick:function(a){if(a.cellNode)this.onHeaderCellDblClick(a);else this.onHeaderDblClick(a)},doheadercontextmenu:function(a){if(a.cellNode)this.onHeaderCellContextMenu(a);else this.onHeaderContextMenu(a)},doStartEdit:function(a,b){this.onStartEdit(a,b)},doApplyCellEdit:function(a,
b,c){this.onApplyCellEdit(a,b,c)},doCancelEdit:function(a){this.onCancelEdit(a)},doApplyEdit:function(a){this.onApplyEdit(a)},addRow:function(){this.updateRowCount(this.get("rowCount")+1)},removeSelectedRows:function(){this.allItemsSelected?this.updateRowCount(0):this.updateRowCount(Math.max(0,this.get("rowCount")-this.selection.getSelected().length));this.selection.clear()}});l.markupFactory=function(a,b,c,d){var e=function(a){a=A.attr(a,"width")||"auto";"auto"!=a&&("em"!=a.slice(-2)&&"%"!=a.slice(-1))&&
(a=parseInt(a,10)+"px");return a};!a.structure&&"table"==b.nodeName.toLowerCase()&&(a.structure=E("\x3e colgroup",b).map(function(a){var b=A.attr(a,"span"),b={noscroll:"true"==A.attr(a,"noscroll")?!0:!1,__span:b?parseInt(b,10):1,cells:[]};A.hasAttr(a,"width")&&(b.width=e(a));return b}),a.structure.length||a.structure.push({__span:Infinity,cells:[]}),E("thead \x3e tr",b).forEach(function(b,c){var g=0,f=0,h,k=null;E("\x3e th",b).map(function(b){k?g>=h+k.__span&&(f++,h+=k.__span,k=a.structure[f]):(h=
0,k=a.structure[0]);var l={name:x.trim(A.attr(b,"name")||b.innerHTML),colSpan:parseInt(A.attr(b,"colspan")||1,10),type:x.trim(A.attr(b,"cellType")||""),id:x.trim(A.attr(b,"id")||"")};g+=l.colSpan;var n=A.attr(b,"rowspan");n&&(l.rowSpan=n);A.hasAttr(b,"width")&&(l.width=e(b));A.hasAttr(b,"relWidth")&&(l.relWidth=window.parseInt(A.attr(b,"relWidth"),10));A.hasAttr(b,"hidden")&&(l.hidden="true"==A.attr(b,"hidden")||!0===A.attr(b,"hidden"));d&&d(b,l);l.type=l.type?x.getObject(l.type):m.grid.cells.Cell;
l.type&&l.type.markupFactory&&l.type.markupFactory(b,l);k.cells[c]||(k.cells[c]=[]);k.cells[c].push(l)})}));return new c(a,b)};return l})},"dojox/grid/_Events":function(){define(["dojo/keys","dojo/dom-class","dojo/_base/declare","dojo/_base/event","dojo/_base/sniff"],function(f,m,l,k,e){return l("dojox.grid._Events",null,{cellOverClass:"dojoxGridCellOver",onKeyEvent:function(c){this.dispatchKeyEvent(c)},onContentEvent:function(c){this.dispatchContentEvent(c)},onHeaderEvent:function(c){this.dispatchHeaderEvent(c)},
onStyleRow:function(c){c.customClasses+=(c.odd?" dojoxGridRowOdd":"")+(c.selected?" dojoxGridRowSelected":"")+(c.over?" dojoxGridRowOver":"");this.focus.styleRow(c);this.edit.styleRow(c)},onKeyDown:function(c){if(!c.altKey&&!c.metaKey){var e;switch(c.keyCode){case f.ESCAPE:this.edit.cancel();break;case f.ENTER:if(!this.edit.isEditing()){e=this.focus.getHeaderIndex();if(0<=e){this.setSortIndex(e);break}else this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(c),c.shiftKey);k.stop(c)}c.shiftKey||
(e=this.edit.isEditing(),this.edit.apply(),e||this.edit.setEditCell(this.focus.cell,this.focus.rowIndex));this.edit.isEditing()||((this.focus.focusView||this.views.views[0]).content.decorateEvent(c),this.onRowClick(c),k.stop(c));break;case f.SPACE:if(!this.edit.isEditing()){e=this.focus.getHeaderIndex();if(0<=e){this.setSortIndex(e);break}else this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(c),c.shiftKey),this.focus._focusifyCellNode(!0),this.focus.setFocusCell(this.focus.cell,this.focus.rowIndex);
k.stop(c)}break;case f.TAB:this.focus[c.shiftKey?"previousKey":"nextKey"](c);break;case f.LEFT_ARROW:case f.RIGHT_ARROW:if(!this.edit.isEditing()){var d=c.keyCode;k.stop(c);e=this.focus.getHeaderIndex();0<=e&&c.shiftKey&&c.ctrlKey?this.focus.colSizeAdjust(c,e,5*(d==f.LEFT_ARROW?-1:1)):(c=d==f.LEFT_ARROW?1:-1,this.isLeftToRight()&&(c*=-1),this.focus.move(0,c))}break;case f.UP_ARROW:!this.edit.isEditing()&&0!==this.focus.rowIndex&&(k.stop(c),this.focus.move(-1,0));break;case f.DOWN_ARROW:!this.edit.isEditing()&&
this.focus.rowIndex+1!=this.rowCount&&(k.stop(c),this.focus.move(1,0));break;case f.PAGE_UP:!this.edit.isEditing()&&0!==this.focus.rowIndex&&(k.stop(c),this.focus.rowIndex!=this.scroller.firstVisibleRow+1?this.focus.move(this.scroller.firstVisibleRow-this.focus.rowIndex,0):(this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex-1)),this.focus.move(this.scroller.firstVisibleRow-this.scroller.lastVisibleRow+1,0)));break;case f.PAGE_DOWN:!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount&&
(k.stop(c),this.focus.rowIndex!=this.scroller.lastVisibleRow-1?this.focus.move(this.scroller.lastVisibleRow-this.focus.rowIndex-1,0):(this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex+1)),this.focus.move(this.scroller.lastVisibleRow-this.scroller.firstVisibleRow-1,0)))}}},onMouseOver:function(c){-1==c.rowIndex?this.onHeaderCellMouseOver(c):this.onCellMouseOver(c)},onMouseOut:function(c){-1==c.rowIndex?this.onHeaderCellMouseOut(c):this.onCellMouseOut(c)},onMouseDown:function(c){-1==
c.rowIndex?this.onHeaderCellMouseDown(c):this.onCellMouseDown(c)},onMouseOverRow:function(c){this.rows.isOver(c.rowIndex)||(this.rows.setOverRow(c.rowIndex),-1==c.rowIndex?this.onHeaderMouseOver(c):this.onRowMouseOver(c))},onMouseOutRow:function(c){if(this.rows.isOver(-1))this.onHeaderMouseOut(c);else this.rows.isOver(-2)||(this.rows.setOverRow(-2),this.onRowMouseOut(c))},onMouseDownRow:function(c){if(-1!=c.rowIndex)this.onRowMouseDown(c)},onCellMouseOver:function(c){c.cellNode&&m.add(c.cellNode,
this.cellOverClass)},onCellMouseOut:function(c){c.cellNode&&m.remove(c.cellNode,this.cellOverClass)},onCellMouseDown:function(c){},onCellClick:function(c){this._click[0]=this._click[1];this._click[1]=c;this.edit.isEditCell(c.rowIndex,c.cellIndex)||this.focus.setFocusCell(c.cell,c.rowIndex);1<this._click.length&&null==this._click[0]&&this._click.shift();this.onRowClick(c)},onCellDblClick:function(c){var g;g=1<this._click.length&&e("ie")?this._click[1]:1<this._click.length&&this._click[0].rowIndex!=
this._click[1].rowIndex?this._click[0]:c;this.focus.setFocusCell(g.cell,g.rowIndex);this.edit.setEditCell(g.cell,g.rowIndex);this.onRowDblClick(c)},onCellContextMenu:function(c){this.onRowContextMenu(c)},onCellFocus:function(c,e){this.edit.cellFocus(c,e)},onRowClick:function(c){this.edit.rowClick(c);this.selection.clickSelectEvent(c)},onRowDblClick:function(c){},onRowMouseOver:function(c){},onRowMouseOut:function(c){},onRowMouseDown:function(c){},onRowContextMenu:function(c){k.stop(c)},onHeaderMouseOver:function(c){},
onHeaderMouseOut:function(c){},onHeaderCellMouseOver:function(c){c.cellNode&&m.add(c.cellNode,this.cellOverClass)},onHeaderCellMouseOut:function(c){c.cellNode&&m.remove(c.cellNode,this.cellOverClass)},onHeaderCellMouseDown:function(c){},onHeaderClick:function(c){},onHeaderCellClick:function(c){this.setSortIndex(c.cell.index);this.onHeaderClick(c)},onHeaderDblClick:function(c){},onHeaderCellDblClick:function(c){this.onHeaderDblClick(c)},onHeaderCellContextMenu:function(c){this.onHeaderContextMenu(c)},
onHeaderContextMenu:function(c){this.headerMenu||k.stop(c)},onStartEdit:function(c,e){},onApplyCellEdit:function(c,e,d){},onCancelEdit:function(c){},onApplyEdit:function(c){},onCanSelect:function(c){return!0},onCanDeselect:function(c){return!0},onSelected:function(c){this.updateRowStyles(c)},onDeselected:function(c){this.updateRowStyles(c)},onSelectionChanged:function(){}})})},"dojox/grid/_Scroller":function(){define(["dijit/registry","dojo/_base/declare","dojo/_base/lang","./util","dojo/_base/html"],
function(f,m,l,k,e){var c=function(c){c&&dojo.forEach(f.toArray(),function(b){b.domNode&&e.isDescendant(b.domNode,c,!0)&&b.destroy()})},g=function(c,b){for(var a=[],g=0,f;f=c.childNodes[g];){g++;var k=e.byId(f);(k&&k.tagName?k.tagName.toLowerCase():"")==b&&a.push(f)}return a};return m("dojox.grid._Scroller",null,{constructor:function(c){this.setContentNodes(c);this.pageHeights=[];this.pageNodes=[];this.stack=[]},rowCount:0,defaultRowHeight:32,keepRows:100,contentNode:null,scrollboxNode:null,defaultPageHeight:0,
keepPages:10,pageCount:0,windowHeight:0,firstVisibleRow:0,lastVisibleRow:0,averageRowHeight:0,page:0,pageTop:0,init:function(c,b,a){switch(arguments.length){case 3:this.rowsPerPage=a;case 2:this.keepRows=b;case 1:this.rowCount=c}this.defaultPageHeight=(0<this.grid.rowHeight?this.grid.rowHeight:this.defaultRowHeight)*this.rowsPerPage;this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);this.setKeepInfo(this.keepRows);this.invalidate();this.scrollboxNode&&(this.scrollboxNode.scrollTop=
0,this.scroll(0),this.scrollboxNode.onscroll=l.hitch(this,"onscroll"))},_getPageCount:function(c,b){return c?Math.ceil(c/b)||1:0},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode},setKeepInfo:function(c){this.keepRows=c;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2)},setContentNodes:function(c){this.colCount=(this.contentNodes=c)?this.contentNodes.length:0;this.pageNodes=[];for(c=
0;c<this.colCount;c++)this.pageNodes[c]=[]},getDefaultNodes:function(){return this.pageNodes[0]||[]},invalidate:function(){this._invalidating=!0;this.invalidateNodes();this.pageHeights=[];this.height=this.pageCount?(this.pageCount-1)*this.defaultPageHeight+this.calcLastPageHeight():0;this.resize();this._invalidating=!1},updateRowCount:function(c){this.invalidateNodes();this.rowCount=c;c=this.pageCount;0===c&&(this.height=1);this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<
c)for(c-=1;c>=this.pageCount;c--)this.height-=this.getPageHeight(c),delete this.pageHeights[c];else this.pageCount>c&&(this.height+=this.defaultPageHeight*(this.pageCount-c-1)+this.calcLastPageHeight());this.resize()},pageExists:function(c){return Boolean(this.getDefaultPageNode(c))},measurePage:function(c){return this.grid.rowHeight?((c+1)*this.rowsPerPage>this.rowCount?this.rowCount-c*this.rowsPerPage:this.rowsPerPage)*this.grid.rowHeight:(c=this.getDefaultPageNode(c))&&c.innerHTML?c.offsetHeight:
void 0},positionPage:function(c,b){for(var a=0;a<this.colCount;a++)this.pageNodes[a][c].style.top=b+"px"},repositionPages:function(c){for(var b=this.getDefaultNodes(),a=0,e=0;e<this.stack.length;e++)a=Math.max(this.stack[e],a);var g=(e=b[c])?this.getPageNodePosition(e)+this.getPageHeight(c):0;for(c+=1;c<=a;c++){if(e=b[c]){if(this.getPageNodePosition(e)==g)break;this.positionPage(c,g)}g+=this.getPageHeight(c)}},installPage:function(c){for(var b=0;b<this.colCount;b++)this.contentNodes[b].appendChild(this.pageNodes[b][c])},
preparePage:function(c,b){for(var a=b?this.popPage():null,e=0;e<this.colCount;e++){var g=this.pageNodes[e],f=null===a?this.createPageNode():this.invalidatePageNode(a,g);f.pageIndex=c;g[c]=f}},renderPage:function(c){var b=[],a;for(a=0;a<this.colCount;a++)b[a]=this.pageNodes[a][c];a=0;for(c*=this.rowsPerPage;a<this.rowsPerPage&&c<this.rowCount;a++,c++)this.renderRow(c,b)},removePage:function(c){var b=0;for(c*=this.rowsPerPage;b<this.rowsPerPage;b++,c++)this.removeRow(c)},destroyPage:function(c){for(var b=
0;b<this.colCount;b++){var a=this.invalidatePageNode(c,this.pageNodes[b]);a&&e.destroy(a)}},pacify:function(c){},pacifying:!1,pacifyTicks:200,setPacifying:function(c){this.pacifying!=c&&(this.pacifying=c,this.pacify(this.pacifying))},startPacify:function(){this.startPacifyTicks=(new Date).getTime()},doPacify:function(){var c=(new Date).getTime()-this.startPacifyTicks>this.pacifyTicks;this.setPacifying(!0);this.startPacify();return c},endPacify:function(){this.setPacifying(!1)},resize:function(){this.scrollboxNode&&
(this.windowHeight=this.scrollboxNode.clientHeight);for(var c=0;c<this.colCount;c++)k.setStyleHeightPx(this.contentNodes[c],Math.max(1,this.height));c=!this._invalidating;if(!c){var b=this.grid.get("autoHeight");"number"==typeof b&&b<=Math.min(this.rowsPerPage,this.rowCount)&&(c=!0)}c&&this.needPage(this.page,this.pageTop);c=this.page<this.pageCount-1?this.rowsPerPage:this.rowCount%this.rowsPerPage||this.rowsPerPage;b=this.getPageHeight(this.page);this.averageRowHeight=0<b&&0<c?b/c:0},calcLastPageHeight:function(){if(!this.pageCount)return 0;
var c=(this.rowCount%this.rowsPerPage||this.rowsPerPage)*this.defaultRowHeight;return this.pageHeights[this.pageCount-1]=c},updateContentHeight:function(c){this.height+=c;this.resize()},updatePageHeight:function(c,b,a){if(this.pageExists(c)){var e=this.getPageHeight(c),g=this.measurePage(c);void 0===g&&(g=e);this.pageHeights[c]=g;if(e!=g){this.updateContentHeight(g-e);var f=this.grid.get("autoHeight");"number"==typeof f&&f>this.rowCount||!0===f&&!b?a?(b=this.grid.viewsNode.style,b.height=parseInt(b.height)+
g-e+"px",this.repositionPages(c)):this.grid.sizeChange():this.repositionPages(c)}return g}return 0},rowHeightChanged:function(c,b){this.updatePageHeight(Math.floor(c/this.rowsPerPage),!1,b)},invalidateNodes:function(){for(;this.stack.length;)this.destroyPage(this.popPage())},createPageNode:function(){var c=document.createElement("div");e.attr(c,"role","presentation");c.style.position="absolute";c.style[this.grid.isLeftToRight()?"left":"right"]="0";return c},getPageHeight:function(c){c=this.pageHeights[c];
return void 0!==c?c:this.defaultPageHeight},pushPage:function(c){return this.stack.push(c)},popPage:function(){return this.stack.shift()},findPage:function(c){for(var b=0,a=0,e=0;b<this.pageCount&&!(e=this.getPageHeight(b),a+e>=c);b++,a+=e);this.page=b;this.pageTop=a},buildPage:function(c,b,a){this.preparePage(c,b);this.positionPage(c,a);this.installPage(c);this.renderPage(c);this.pushPage(c)},needPage:function(c,b){var a=this.getPageHeight(c);this.pageExists(c)?this.positionPage(c,b):(this.buildPage(c,
!this.grid._autoHeight&&this.keepPages&&this.stack.length>=this.keepPages,b),a=this.updatePageHeight(c,!0));return a},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop)},scroll:function(c){this.grid.scrollTop=c;if(this.colCount){this.startPacify();this.findPage(c);for(var b=this.height,a=this.getScrollBottom(c),e=this.page,g=this.pageTop;e<this.pageCount&&(0>a||g<a);e++)g+=this.needPage(e,g);this.firstVisibleRow=this.getFirstVisibleRow(this.page,this.pageTop,c);this.lastVisibleRow=this.getLastVisibleRow(e-
1,g,a);b!=this.height&&this.repositionPages(e-1);this.endPacify()}},getScrollBottom:function(c){return 0<=this.windowHeight?c+this.windowHeight:-1},processNodeEvent:function(c,b){for(var a=c.target;a&&a!=b&&a.parentNode&&a.parentNode.parentNode!=b;)a=a.parentNode;if(!a||!a.parentNode||a.parentNode.parentNode!=b)return!1;c.topRowIndex=a.parentNode.pageIndex*this.rowsPerPage;var e=c.topRowIndex,g;a:{g=0;for(var f,k=a.parentNode;f=k.childNodes[g++];)if(f==a){g-=1;break a}g=-1}c.rowIndex=e+g;c.rowTarget=
a;return!0},processEvent:function(c){return this.processNodeEvent(c,this.contentNode)},renderRow:function(c,b){},removeRow:function(c){},getDefaultPageNode:function(c){return this.getDefaultNodes()[c]},positionPageNode:function(c,b){},getPageNodePosition:function(c){return c.offsetTop},invalidatePageNode:function(d,b){var a=b[d];a&&(delete b[d],this.removePage(d,a),c(a),a.innerHTML="");return a},getPageRow:function(c){return c*this.rowsPerPage},getLastPageRow:function(c){return Math.min(this.rowCount,
this.getPageRow(c+1))-1},getFirstVisibleRow:function(c,b,a){if(!this.pageExists(c))return 0;var e=this.getPageRow(c),f=this.getDefaultNodes();c=g(f[c],"div");for(var f=0,k=c.length;f<k&&b<a;f++,e++)b+=c[f].offsetHeight;return e?e-1:e},getLastVisibleRow:function(c,b,a){if(!this.pageExists(c))return 0;var e=this.getDefaultNodes(),f=this.getLastPageRow(c);c=g(e[c],"div");for(e=c.length-1;0<=e&&b>a;e--,f--)b-=c[e].offsetHeight;return f+1},findTopRow:function(c){for(var b=this.getDefaultNodes(),b=g(b[this.page],
"div"),a=0,e=b.length,f=this.pageTop,k;a<e;a++)if(k=b[a].offsetHeight,f+=k,f>=c)return this.offset=k-(f-c),a+this.page*this.rowsPerPage;return-1},findScrollTop:function(c){var b=Math.floor(c/this.rowsPerPage),a=0,e;for(e=0;e<b;e++)a+=this.getPageHeight(e);this.pageTop=a;this.page=b;this.needPage(b,this.pageTop);e=this.getDefaultNodes();var f=g(e[b],"div"),b=c-this.rowsPerPage*b;e=0;for(c=f.length;e<c&&e<b;e++)a+=f[e].offsetHeight;return a},dummy:0})})},"dojox/grid/util":function(){define(["../main",
"dojo/_base/lang","dojo/dom"],function(f,m,l){var k=m.getObject("grid.util",!0,f);k.na="...";k.rowIndexTag="gridRowIndex";k.gridViewTag="gridView";k.fire=function(e,c,g){var d=e&&c&&e[c];return d&&(g?d.apply(e,g):e[c]())};k.setStyleHeightPx=function(e,c){if(0<=c){var g=e.style,d=c+"px";e&&g.height!=d&&(g.height=d)}};k.mouseEvents="mouseover mouseout mousedown mouseup click dblclick contextmenu".split(" ");k.keyEvents=["keyup","keydown","keypress"];k.funnelEvents=function(e,c,g,d){d=d?d:k.mouseEvents.concat(k.keyEvents);
for(var b=0,a=d.length;b<a;b++)c.connect(e,"on"+d[b],g)};k.removeNode=function(e){(e=l.byId(e))&&e.parentNode&&e.parentNode.removeChild(e);return e};k.arrayCompare=function(e,c){for(var g=0,d=e.length;g<d;g++)if(e[g]!=c[g])return!1;return e.length==c.length};k.arrayInsert=function(e,c,g){e.length<=c?e[c]=g:e.splice(c,0,g)};k.arrayRemove=function(e,c){e.splice(c,1)};k.arraySwap=function(e,c,g){var d=e[c];e[c]=e[g];e[g]=d};return k})},"dojox/grid/_Layout":function(){define("dojo/_base/kernel ../main dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/dom-geometry ./cells ./_RowSelector".split(" "),
function(f,m,l,k,e,c){return l("dojox.grid._Layout",null,{constructor:function(c){this.grid=c},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(c,d,b,a,e){var f=this.structure[c].cells[0],l=this.structure[d].cells[0],m=null,q=m=0;c=0;for(var s;s=f[c];c++)if(s.index==b){m=c;break}m=f.splice(m,1)[0];m.view=this.grid.views.views[d];c=0;for(s=null;s=l[c];c++)if(s.index==a){q=c;break}e||(q+=1);l.splice(q,0,m);if(b=this.grid.getCell(this.grid.getSortIndex()))b._currentlySorted=this.grid.getSortAsc();
this.cells=[];for(c=b=0;d=this.structure[c];c++)for(a=0;e=d.cells[a];a++)for(f=0;s=e[f];f++)s.index=b,this.cells.push(s),"_currentlySorted"in s&&(l=b+1,l*=s._currentlySorted?1:-1,this.grid.sortInfo=l,delete s._currentlySorted),b++;k.forEach(this.cells,function(a){var b=a.markup[2].split(" ");parseInt(b[1].substring(5))!=a.index&&(b[1]='idx\x3d"'+a.index+'"',a.markup[2]=b.join(" "))});this.grid.setupHeaderMenu()},setColumnVisibility:function(e,d){var b=this.cells[e];if(b.hidden==d){b.hidden=!d;var a=
b.view,f=a.viewWidth;f&&"auto"!=f&&(a._togglingColumn=c.getMarginBox(b.getHeaderNode()).w||0);a.update();return!0}return!1},addCellDef:function(c,d,b){var a=this,f=function(b){var c=0;1<b.colSpan?c=0:(c=b.width||a._defaultCellProps.width||a.defaultWidth,isNaN(c)||(c+="em"));return c};c={grid:this.grid,subrow:c,layoutIndex:d,index:this.cells.length};if(b&&b instanceof m.grid.cells._Base)return d=e.clone(b),c.unitWidth=f(d._props),d=e.mixin(d,this._defaultCellProps,b._props,c);d=b.type||b.cellType||
this._defaultCellProps.type||this._defaultCellProps.cellType||m.grid.cells.Cell;e.isString(d)&&(d=e.getObject(d));c.unitWidth=f(b);return new d(e.mixin({},this._defaultCellProps,b,c))},addRowDef:function(c,d){for(var b=[],a=0,e=0,f=!0,l=0,m;m=d[l];l++)m=this.addCellDef(c,l,m),b.push(m),this.cells.push(m),f&&m.relWidth?a+=m.relWidth:m.width&&(m=m.width,"string"==typeof m&&"%"==m.slice(-1)?e+=window.parseInt(m,10):"auto"==m&&(f=!1));a&&f&&k.forEach(b,function(b){b.relWidth&&(b.width=b.unitWidth=b.relWidth/
a*(100-e)+"%")});return b},addRowsDef:function(c){var d=[];if(e.isArray(c))if(e.isArray(c[0]))for(var b=0,a;c&&(a=c[b]);b++)d.push(this.addRowDef(b,a));else d.push(this.addRowDef(0,c));return d},addViewDef:function(c){this._defaultCellProps=c.defaultCell||{};c.width&&"auto"==c.width&&delete c.width;return e.mixin({},c,{cells:this.addRowsDef(c.rows||c.cells)})},setStructure:function(c){this.fieldIndex=0;this.cells=[];var d=this.structure=[];if(this.grid.rowSelector){var b={type:m._scopeName+".grid._RowSelector"};
if(e.isString(this.grid.rowSelector)){var a=this.grid.rowSelector;"false"==a?b=null:"true"!=a&&(b.width=a)}else this.grid.rowSelector||(b=null);b&&d.push(this.addViewDef(b))}b=function(a){return null!==a&&e.isObject(a)&&("cells"in a||"rows"in a||"type"in a&&!("name"in a||"field"in a||"get"in a))};if(e.isArray(c)){for(var a=!1,f=0,k;k=c[f];f++)if(b(k)){a=!0;break}if(a)for(f=0;k=c[f];f++)e.isArray(k)&&(e.isArray(k[0])||"name"in k[0]||"field"in k[0]||"get"in k[0])?d.push(this.addViewDef({cells:k})):
b(k)&&d.push(this.addViewDef(k));else d.push(this.addViewDef({cells:c}))}else b(c)&&d.push(this.addViewDef(c));this.cellCount=this.cells.length;this.grid.setupHeaderMenu()}})})},"dojox/grid/cells":function(){define(["../main","./cells/_base"],function(f){return f.grid.cells})},"dojox/grid/cells/_base":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/event dojo/_base/connect dojo/_base/array dojo/_base/sniff dojo/dom dojo/dom-attr dojo/dom-construct dijit/_Widget ../util".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p){var n=m("dojox.grid._DeferredTextWidget",h,{deferred:null,_destroyOnRemove:!0,postCreate:function(){this.deferred&&this.deferred.addBoth(l.hitch(this,function(a){this.domNode&&(this.domNode.innerHTML=a)}))}}),t=function(){setTimeout(l.hitch.apply(f,arguments),0)},q=m("dojox.grid.cells._Base",null,{styles:"",classes:"",editable:!1,alwaysEditing:!1,formatter:null,defaultValue:"...",value:null,hidden:!1,noresize:!1,draggable:!0,_valueProp:"value",_formatPending:!1,constructor:function(a){this._props=
a||{};l.mixin(this,a);void 0===this.draggable&&(this.draggable=!0)},_defaultFormat:function(b,c){var d=this.grid.formatterScope||this,e=this.formatter;e&&(d&&"string"==typeof e)&&(e=this.formatter=d[e]);d=b!=this.defaultValue&&e?e.apply(d,c):b;if("undefined"==typeof d)return this.defaultValue;d&&d.addBoth&&(d=new n({deferred:d},a.create("span",{innerHTML:this.defaultValue})));return d&&d.declaredClass&&d.startup?"\x3cdiv class\x3d'dojoxGridStubNode' linkWidget\x3d'"+d.id+"' cellIdx\x3d'"+this.index+
"'\x3e"+this.defaultValue+"\x3c/div\x3e":d},format:function(a,b){var c=this.grid.edit.info,d=this.get?this.get(a,b):this.value||this.defaultValue,d=d&&d.replace&&this.grid.escapeHTMLInData?d.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;"):d;return this.editable&&(this.alwaysEditing||c.rowIndex==a&&c.cell==this)?this.formatEditing(c.value?c.value:d,a):this._defaultFormat(d,[d,a,this])},formatEditing:function(a,b){},getNode:function(a){return this.view.getCellNode(a,this.index)},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index)},
getEditNode:function(a){return(this.getNode(a)||0).firstChild||0},canResize:function(){var a=this.unitWidth;return a&&"auto"!==a},isFlex:function(){var a=this.unitWidth;return a&&l.isString(a)&&("auto"==a||"%"==a.slice(-1))},applyEdit:function(a,b){this.getNode(b)&&this.grid.edit.applyCellEdit(a,this,b)},cancelEdit:function(a){this.grid.doCancelEdit(a)},_onEditBlur:function(a){this.grid.edit.isEditCell(a,this.index)&&this.grid.edit.apply()},registerOnBlur:function(a,b){this.commitOnBlur&&e.connect(a,
"onblur",function(a){setTimeout(l.hitch(this,"_onEditBlur",b),250)})},needFormatNode:function(a,b){this._formatPending=!0;t(this,"_formatNode",a,b)},cancelFormatNode:function(){this._formatPending=!1},_formatNode:function(a,b){this._formatPending&&(this._formatPending=!1,g("ie")||d.setSelectable(this.grid.domNode,!0),this.formatNode(this.getEditNode(b),a,b))},formatNode:function(a,b,c){g("ie")?t(this,"focus",c,a):this.focus(c,a)},dispatchEvent:function(a,b){if(a in this)return this[a](b)},getValue:function(a){return this.getEditNode(a)[this._valueProp]},
setValue:function(a,b){var c=this.getEditNode(a);c&&(c[this._valueProp]=b)},focus:function(a,b){var c=b||this.getEditNode(a);try{p.fire(c,"focus"),p.fire(c,"select")}catch(d){}},save:function(a){this.value=this.value||this.getValue(a)},restore:function(a){this.setValue(a,this.value)},_finish:function(a){d.setSelectable(this.grid.domNode,!1);this.cancelFormatNode()},apply:function(a){this.applyEdit(this.getValue(a),a);this._finish(a)},cancel:function(a){this.cancelEdit(a);this._finish(a)}});q.markupFactory=
function(a,c){var d=l.trim(b.get(a,"formatter")||"");d&&(c.formatter=l.getObject(d)||d);if(d=l.trim(b.get(a,"get")||""))c.get=l.getObject(d);d=function(c,d,e){var g=l.trim(b.get(a,c)||"");g&&(d[e||c]="false"!=g.toLowerCase())};d("sortDesc",c);d("editable",c);d("alwaysEditing",c);d("noresize",c);d("draggable",c);if(d=l.trim(b.get(a,"loadingText")||b.get(a,"defaultValue")||""))c.defaultValue=d;d=function(c,d,e){var g=l.trim(b.get(a,c)||"")||void 0;g&&(d[e||c]=g)};d("styles",c);d("headerStyles",c);d("cellStyles",
c);d("classes",c);d("headerClasses",c);d("cellClasses",c)};var s=q.Cell=m("dojox.grid.cells.Cell",q,{constructor:function(){this.keyFilter=this.keyFilter},keyFilter:null,formatEditing:function(a,b){this.needFormatNode(a,b);return'\x3cinput class\x3d"dojoxGridInput" type\x3d"text" value\x3d"'+a+'"\x3e'},formatNode:function(a,b,c){this.inherited(arguments);this.registerOnBlur(a,c)},doKey:function(a){this.keyFilter&&-1==String.fromCharCode(a.charCode).search(this.keyFilter)&&k.stop(a)},_finish:function(a){this.inherited(arguments);
var b=this.getEditNode(a);try{p.fire(b,"blur")}catch(c){}}});s.markupFactory=function(a,c){q.markupFactory(a,c);var d=l.trim(b.get(a,"keyFilter")||"");d&&(c.keyFilter=RegExp(d))};(q.RowIndex=m("dojox.grid.cells.RowIndex",s,{name:"Row",postscript:function(){this.editable=!1},get:function(a){return a+1}})).markupFactory=function(a,b){s.markupFactory(a,b)};(q.Select=m("dojox.grid.cells.Select",s,{options:null,values:null,returnIndex:-1,constructor:function(a){this.values=this.values||this.options},formatEditing:function(a,
b){this.needFormatNode(a,b);for(var c=['\x3cselect class\x3d"dojoxGridSelect"\x3e'],d=0,e,g;void 0!==(e=this.options[d])&&void 0!==(g=this.values[d]);d++)g=g.replace?g.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;"):g,e=e.replace?e.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;"):e,c.push("\x3coption",a==g?" selected":"",' value\x3d"'+g+'"',"\x3e",e,"\x3c/option\x3e");c.push("\x3c/select\x3e");return c.join("")},_defaultFormat:function(a,b){var d=this.inherited(arguments);if(!this.formatter&&this.values&&
this.options){var e=c.indexOf(this.values,d);0<=e&&(d=this.options[e])}return d},getValue:function(a){var b=this.getEditNode(a);if(b)return a=b.selectedIndex,b=b.options[a],-1<this.returnIndex?a:b.value||b.innerHTML}})).markupFactory=function(a,c){s.markupFactory(a,c);var d=l.trim(b.get(a,"options")||"");if(d){var e=d.split(",");e[0]!=d&&(c.options=e)}if(d=l.trim(b.get(a,"values")||""))e=d.split(","),e[0]!=d&&(c.values=e)};var r=q.AlwaysEdit=m("dojox.grid.cells.AlwaysEdit",s,{alwaysEditing:!0,_formatNode:function(a,
b){this.formatNode(this.getEditNode(b),a,b)},applyStaticValue:function(a){var b=this.grid.edit;b.applyCellEdit(this.getValue(a),this,a);b.start(this,a,!0)}});r.markupFactory=function(a,b){s.markupFactory(a,b)};(q.Bool=m("dojox.grid.cells.Bool",r,{_valueProp:"checked",formatEditing:function(a,b){return'\x3cinput class\x3d"dojoxGridInput" type\x3d"checkbox"'+(a?' checked\x3d"checked"':"")+' style\x3d"width: auto" /\x3e'},doclick:function(a){"INPUT"==a.target.tagName&&this.applyStaticValue(a.rowIndex)}})).markupFactory=
function(a,b){r.markupFactory(a,b)};return q})},"dojox/grid/_RowSelector":function(){define(["dojo/_base/declare","./_View"],function(f,m){return f("dojox.grid._RowSelector",m,{defaultWidth:"2em",noscroll:!0,padBorderWidth:2,buildRendering:function(){this.inherited("buildRendering",arguments);this.scrollboxNode.style.overflow="hidden";this.headerNode.style.visibility="hidden"},getWidth:function(){return this.viewWidth||this.defaultWidth},buildRowContent:function(f,k){k.innerHTML='\x3ctable class\x3d"dojoxGridRowbarTable" style\x3d"width:'+
(this.contentWidth||0)+'px;height:1px;" border\x3d"0" cellspacing\x3d"0" cellpadding\x3d"0" role\x3d"presentation"\x3e\x3ctr\x3e\x3ctd class\x3d"dojoxGridRowbarInner"\x3e\x26nbsp;\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e'},renderHeader:function(){},updateRow:function(){},resize:function(){this.adaptHeight()},adaptWidth:function(){!("contentWidth"in this)&&(this.contentNode&&0<this.contentNode.offsetWidth)&&(this.contentWidth=this.contentNode.offsetWidth-this.padBorderWidth)},doStyleRowNode:function(f,
k){var e=["dojoxGridRowbar dojoxGridNonNormalizedCell"];this.grid.rows.isOver(f)&&e.push("dojoxGridRowbarOver");this.grid.selection.isSelected(f)&&e.push("dojoxGridRowbarSelected");k.className=e.join(" ")},domouseover:function(f){this.grid.onMouseOverRow(f)},domouseout:function(f){if(!this.isIntraRowEvent(f))this.grid.onMouseOutRow(f)}})})},"dojox/grid/_View":function(){define("dojo dijit/registry ../main dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/_base/connect dojo/_base/sniff dojo/query dojo/_base/window dojo/text!./resources/View.html dojo/dnd/Source dijit/_Widget dijit/_TemplatedMixin dojox/html/metrics ./util dojo/_base/html ./_Builder dojo/dnd/Avatar dojo/dnd/Manager".split(" "),
function(f,m,l,k,e,c,g,d,b,a,h,p,n,t,q,s,r,w,u,v){h=k("dojox.grid._View",[n,t],{defaultWidth:"18em",viewWidth:"",templateString:h,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,_headerBuilderClass:w._HeaderBuilder,_contentBuilderClass:w._ContentBuilder,postMixInProperties:function(){this.rowNodes={}},postCreate:function(){this.connect(this.scrollboxNode,"onscroll","doscroll");s.funnelEvents(this.contentNode,this,"doContentEvent","mouseover mouseout click dblclick contextmenu mousedown".split(" "));
s.funnelEvents(this.headerNode,this,"doHeaderEvent","dblclick mouseover mouseout mousemove mousedown click contextmenu".split(" "));this.content=new this._contentBuilderClass(this);this.header=new this._headerBuilderClass(this);this.grid.isLeftToRight()||(this.headerNodeContainer.style.width="")},destroy:function(){r.destroy(this.headerNode);delete this.headerNode;for(var a in this.rowNodes)this._cleanupRowWidgets(this.rowNodes[a]),r.destroy(this.rowNodes[a]);this.rowNodes={};this.source&&this.source.destroy();
this.inherited(arguments)},focus:function(){d("ie")||d("webkit")||d("opera")?this.hiddenFocusNode.focus():this.scrollboxNode.focus()},setStructure:function(a){a=this.structure=a;a.width&&!isNaN(a.width)?this.viewWidth=a.width+"em":this.viewWidth=a.width||(a.noscroll?"auto":this.viewWidth);this._onBeforeRow=a.onBeforeRow||function(){};this._onAfterRow=a.onAfterRow||function(){};if(this.noscroll=a.noscroll)this.scrollboxNode.style.overflow="hidden";this.simpleStructure=Boolean(1==a.cells.length);this.testFlexCells();
this.updateStructure()},_cleanupRowWidgets:function(a){a&&e.forEach(b("[widgetId]",a).map(m.byNode),function(a){a._destroyOnRemove?(a.destroy(),delete a):a.domNode&&a.domNode.parentNode&&a.domNode.parentNode.removeChild(a.domNode)})},onBeforeRow:function(a,b){this._onBeforeRow(a,b);0<=a&&this._cleanupRowWidgets(this.getRowNode(a))},onAfterRow:function(a,c,d){this._onAfterRow(a,c,d);var g=this.grid;e.forEach(b(".dojoxGridStubNode",d),function(a){if(a&&a.parentNode){var b=a.getAttribute("linkWidget"),
c=window.parseInt(r.attr(a,"cellIdx"),10);g.getCell(c);(b=m.byId(b))?(a.parentNode.replaceChild(b.domNode,a),b._started||b.startup(),f.destroy(a)):a.innerHTML=""}},this)},testFlexCells:function(){this.flexCells=!1;for(var a=0,b;b=this.structure.cells[a];a++)for(var c=0,d;d=b[c];c++)d.view=this,this.flexCells=this.flexCells||d.isFlex();return this.flexCells},updateStructure:function(){this.header.update();this.content.update()},getScrollbarWidth:function(){var a=this.hasVScrollbar(),b=r.style(this.scrollboxNode,
"overflow");this.noscroll||!b||"hidden"==b?a=!1:"scroll"==b&&(a=!0);return a?q.getScrollbar().w:0},getColumnsWidth:function(){var a=this.headerContentNode;return a&&a.firstChild?a.firstChild.offsetWidth||r.style(a.firstChild,"width"):0},setColumnsWidth:function(a){this.headerContentNode.firstChild.style.width=a+"px";this.viewWidth&&(this.viewWidth=a+"px")},getWidth:function(){return this.viewWidth||this.getColumnsWidth()+this.getScrollbarWidth()+"px"},getContentWidth:function(){return Math.max(0,
r._getContentBox(this.domNode).w-this.getScrollbarWidth())+"px"},render:function(){this.scrollboxNode.style.height="";this.renderHeader();0<=this._togglingColumn&&(this.setColumnsWidth(this.getColumnsWidth()-this._togglingColumn),this._togglingColumn=-1);var b=this.grid.layout.cells,e=c.hitch(this,function(a,c){!this.grid.isLeftToRight()&&(c=!c);for(var d=c?-1:1,e=this.header.getCellNodeIndex(a)+d,g=b[e];g&&g.getHeaderNode()&&"none"==g.getHeaderNode().style.display;)e+=d,g=b[e];return g?g.getHeaderNode():
null});if(this.grid.columnReordering&&this.simpleStructure){this.source&&this.source.destroy();this.bottomMarker&&r.destroy(this.bottomMarker);this.bottomMarker=r.byId("dojoxGrid_bottomMarker");this.topMarker&&r.destroy(this.topMarker);this.topMarker=r.byId("dojoxGrid_topMarker");this.bottomMarker||(this.bottomMarker=r.create("div",{id:"dojoxGrid_bottomMarker","class":"dojoxGridColPlaceBottom"},a.body()),this._hide(this.bottomMarker),this.topMarker=r.create("div",{id:"dojoxGrid_topMarker","class":"dojoxGridColPlaceTop"},
a.body()),this._hide(this.topMarker));this.arrowDim=r.contentBox(this.bottomMarker);var f=r.contentBox(this.headerContentNode.firstChild.rows[0]).h;this.source=new p(this.headerContentNode.firstChild.rows[0],{horizontal:!0,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,generateText:!1,onMouseDown:c.hitch(this,function(a){this.header.decorateEvent(a);if((this.header.overRightResizeArea(a)||this.header.overLeftResizeArea(a))&&this.header.canResize(a)&&!this.header.moveable)this.header.beginColumnResize(a);
else{if(this.grid.headerMenu)this.grid.headerMenu.onCancel(!0);a.button===(9>d("ie")?1:0)&&p.prototype.onMouseDown.call(this.source,a)}}),onMouseOver:c.hitch(this,function(a){var b=this.source;b._getChildByEvent(a)&&p.prototype.onMouseOver.apply(b,arguments)}),_markTargetAnchor:c.hitch(this,function(a){var b=this.source;if(!(b.current==b.targetAnchor&&b.before==a)){b.targetAnchor&&e(b.targetAnchor,b.before)&&b._removeItemClass(e(b.targetAnchor,b.before),b.before?"After":"Before");p.prototype._markTargetAnchor.call(b,
a);var c=a?b.targetAnchor:e(b.targetAnchor,b.before);a=0;c||(c=b.targetAnchor,a=r.contentBox(c).w+this.arrowDim.w/2+2);c=r.position(c,!0);a=Math.floor(c.x-this.arrowDim.w/2+a);r.style(this.bottomMarker,"visibility","visible");r.style(this.topMarker,"visibility","visible");r.style(this.bottomMarker,{left:a+"px",top:f+c.y+"px"});r.style(this.topMarker,{left:a+"px",top:c.y-this.arrowDim.h+"px"});b.targetAnchor&&e(b.targetAnchor,b.before)&&b._addItemClass(e(b.targetAnchor,b.before),b.before?"After":"Before")}}),
_unmarkTargetAnchor:c.hitch(this,function(){var a=this.source;a.targetAnchor&&(a.targetAnchor&&e(a.targetAnchor,a.before)&&a._removeItemClass(e(a.targetAnchor,a.before),a.before?"After":"Before"),this._hide(this.bottomMarker),this._hide(this.topMarker),p.prototype._unmarkTargetAnchor.call(a))}),destroy:c.hitch(this,function(){g.disconnect(this._source_conn);g.unsubscribe(this._source_sub);p.prototype.destroy.call(this.source);this.bottomMarker&&(r.destroy(this.bottomMarker),delete this.bottomMarker);
this.topMarker&&(r.destroy(this.topMarker),delete this.topMarker)}),onDndCancel:c.hitch(this,function(){p.prototype.onDndCancel.call(this.source);this._hide(this.bottomMarker);this._hide(this.topMarker)})});this._source_conn=g.connect(this.source,"onDndDrop",this,"_onDndDrop");this._source_sub=g.subscribe("/dnd/drop/before",this,"_onDndDropBefore");this.source.startup()}},_hide:function(a){r.style(a,{top:"-10000px",visibility:"hidden"})},_onDndDropBefore:function(a,b,c){v.manager().target===this.source&&
(this.source._targetNode=this.source.targetAnchor,this.source._beforeTarget=this.source.before,b=this.grid.views.views,a=b[a.viewIndex],b=b[this.index],b!=a&&(a.convertColPctToFixed(),b.convertColPctToFixed()))},_onDndDrop:function(a,b,c){if(v.manager().target!==this.source)v.manager().source===this.source&&(this._removingColumn=!0);else{this._hide(this.bottomMarker);this._hide(this.topMarker);c=r.marginBox(b[0]).w;if(a.viewIndex!==this.index){var d=this.grid.views.views,e=d[a.viewIndex],d=d[this.index];
e.viewWidth&&"auto"!=e.viewWidth&&e.setColumnsWidth(e.getColumnsWidth()-c);d.viewWidth&&"auto"!=d.viewWidth&&d.setColumnsWidth(d.getColumnsWidth())}c=this.source._targetNode;e=this.source._beforeTarget;!this.grid.isLeftToRight()&&(e=!e);var d=this.grid.layout,g=this.index;delete this.source._targetNode;delete this.source._beforeTarget;d.moveColumn(a.viewIndex,g,b[0]?r.attr(b[0],"idx"):null,c?r.attr(c,"idx"):null,e)}},renderHeader:function(){this.headerContentNode.innerHTML=this.header.generateHtml(this._getHeaderContent);
this.flexCells&&(this.contentWidth=this.getContentWidth(),this.headerContentNode.firstChild.style.width=this.contentWidth);s.fire(this,"onAfterRow",[-1,this.structure.cells,this.headerContentNode])},_getHeaderContent:function(a){var b=a.name||a.grid.getCellName(a);/^\s+$/.test(b)&&(b="\x26nbsp;");var c=['\x3cdiv class\x3d"dojoxGridSortNode'];a.index!=a.grid.getSortIndex()?c.push('"\x3e'):c=c.concat([" ",0<a.grid.sortInfo?"dojoxGridSortUp":"dojoxGridSortDown",'"\x3e\x3cdiv class\x3d"dojoxGridArrowButtonChar"\x3e',
0<a.grid.sortInfo?"\x26#9650;":"\x26#9660;",'\x3c/div\x3e\x3cdiv class\x3d"dojoxGridArrowButtonNode" role\x3d"presentation"\x3e\x3c/div\x3e','\x3cdiv class\x3d"dojoxGridColCaption"\x3e']);c=c.concat([b,"\x3c/div\x3e\x3c/div\x3e"]);return c.join("")},resize:function(){this.adaptHeight();this.adaptWidth()},hasHScrollbar:function(a){var b=this._hasHScroll||!1;if(void 0==this._hasHScroll||a)this.noscroll?this._hasHScroll=!1:(a=r.style(this.scrollboxNode,"overflow"),this._hasHScroll="hidden"==a?!1:"scroll"==
a?!0:this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);b!==this._hasHScroll&&this.grid.update();return this._hasHScroll},hasVScrollbar:function(a){var b=this._hasVScroll||!1;if(void 0==this._hasVScroll||a)this.noscroll?this._hasVScroll=!1:(a=r.style(this.scrollboxNode,"overflow"),this._hasVScroll="hidden"==a?!1:"scroll"==a?!0:this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);b!==this._hasVScroll&&this.grid.update();return this._hasVScroll},convertColPctToFixed:function(){var a=
!1;this.grid.initialWidth="";var c=b("th",this.headerContentNode),d=e.map(c,function(b,c){var d=b.style.width;r.attr(b,"vIdx",c);if(d&&"%"==d.slice(-1))a=!0;else if(d&&"px"==d.slice(-2))return window.parseInt(d,10);return r.contentBox(b).w});return a?(e.forEach(this.grid.layout.cells,function(a,b){if(a.view==this){var c=a.view.getHeaderCellNode(a.index);if(c&&r.hasAttr(c,"vIdx")){var e=window.parseInt(r.attr(c,"vIdx"));this.setColWidth(b,d[e]);r.removeAttr(c,"vIdx")}}},this),!0):!1},adaptHeight:function(a){if(!this.grid._autoHeight){var b=
this.domNode.style.height&&parseInt(this.domNode.style.height.replace(/px/,""),10)||this.domNode.clientHeight;if(!a&&(a=this.noscroll))a:{for(var c=0;c<this.grid.views.views.length;++c)if(a=this.grid.views.views[c],a!==this&&a.hasHScrollbar()){a=!0;break a}a=!1}a&&(b-=q.getScrollbar().h);s.setStyleHeightPx(this.scrollboxNode,b)}this.hasVScrollbar(!0)},adaptWidth:function(){this.flexCells&&(this.contentWidth=this.getContentWidth(),this.headerContentNode.firstChild.style.width=this.contentWidth);var a=
this.scrollboxNode.offsetWidth-this.getScrollbarWidth();this._removingColumn?(a=Math.min(a,this.getColumnsWidth())+"px",this._removingColumn=!1):a=Math.max(a,this.getColumnsWidth())+"px";this.contentNode.style.width=a;this.hasHScrollbar(!0)},setSize:function(a,b){var c=this.domNode.style,d=this.headerNode.style;a&&(c.width=a,d.width=a);c.height=0<=b?b+"px":""},renderRow:function(a){var b=this.createRowNode(a);this.buildRow(a,b);return b},createRowNode:function(a){var b=document.createElement("div");
b.className=this.classTag+"Row";this instanceof l.grid._RowSelector?r.attr(b,"role","presentation"):(r.attr(b,"role","row"),"none"!=this.grid.selectionMode&&b.setAttribute("aria-selected","false"));b[s.gridViewTag]=this.id;b[s.rowIndexTag]=a;return this.rowNodes[a]=b},buildRow:function(a,b){this.buildRowContent(a,b);this.styleRow(a,b)},buildRowContent:function(a,b){b.innerHTML=this.content.generateHtml(a,a);this.flexCells&&this.contentWidth&&(b.firstChild.style.width=this.contentWidth);s.fire(this,
"onAfterRow",[a,this.structure.cells,b])},rowRemoved:function(a){0<=a&&this._cleanupRowWidgets(this.getRowNode(a));this.grid.edit.save(this,a);delete this.rowNodes[a]},getRowNode:function(a){return this.rowNodes[a]},getCellNode:function(a,b){var c=this.getRowNode(a);if(c)return this.content.getCellNode(c,b)},getHeaderCellNode:function(a){if(this.headerContentNode)return this.header.getCellNode(this.headerContentNode,a)},styleRow:function(a,b){b._style=void 0==b.style.cssText?b.getAttribute("style"):
b.style.cssText;this.styleRowNode(a,b)},styleRowNode:function(a,b){b&&this.doStyleRowNode(a,b)},doStyleRowNode:function(a,b){this.grid.styleRowNode(a,b)},updateRow:function(a){var b=this.getRowNode(a);b&&(b.style.height="",this.buildRow(a,b));return b},updateRowStyles:function(a){this.styleRowNode(a,this.getRowNode(a))},lastTop:0,firstScroll:0,_nativeScroll:!1,doscroll:function(a){if(13<=d("ff")||d("chrome"))this._nativeScroll=!0;a=this.grid.isLeftToRight();if(2>this.firstScroll){if(!a&&1==this.firstScroll||
a&&0===this.firstScroll){var b=r.marginBox(this.headerNodeContainer);d("ie")?this.headerNodeContainer.style.width=b.w+this.getScrollbarWidth()+"px":d("mozilla")&&(this.headerNodeContainer.style.width=b.w-this.getScrollbarWidth()+"px",this.scrollboxNode.scrollLeft=a?this.scrollboxNode.clientWidth-this.scrollboxNode.scrollWidth:this.scrollboxNode.scrollWidth-this.scrollboxNode.clientWidth)}this.firstScroll++}this.headerNode.scrollLeft=this.scrollboxNode.scrollLeft;a=this.scrollboxNode.scrollTop;a!==
this.lastTop&&this.grid.scrollTo(a);this._nativeScroll=!1},setScrollTop:function(a){this.lastTop=a;this._nativeScroll||(this.scrollboxNode.scrollTop=a);return this.scrollboxNode.scrollTop},doContentEvent:function(a){if(this.content.decorateEvent(a))this.grid.onContentEvent(a)},doHeaderEvent:function(a){if(this.header.decorateEvent(a))this.grid.onHeaderEvent(a)},dispatchContentEvent:function(a){return this.content.dispatchEvent(a)},dispatchHeaderEvent:function(a){return this.header.dispatchEvent(a)},
setColWidth:function(a,b){this.grid.setCellWidth(a,b+"px")},update:function(){if(this.domNode){this.content.update();this.grid.update();var a=this.scrollboxNode.scrollLeft;this.scrollboxNode.scrollLeft=a;this.headerNode.scrollLeft=a}}});var x=k("dojox.grid._GridAvatar",u,{construct:function(){var b=a.doc,c=b.createElement("table");c.cellPadding=c.cellSpacing="0";c.className="dojoxGridDndAvatar";c.style.position="absolute";c.style.zIndex=1999;c.style.margin="0px";var d=b.createElement("tbody"),e=b.createElement("tr"),
g=b.createElement("td"),f=b.createElement("td");e.className="dojoxGridDndAvatarItem";f.className="dojoxGridDndAvatarItemImage";f.style.width="16px";var h=this.manager.source;if(h.creator)h=h._normalizedCreator(h.getItem(this.manager.nodes[0].id).data,"avatar").node;else{var h=this.manager.nodes[0].cloneNode(!0),k,l;"tr"==h.tagName.toLowerCase()?(k=b.createElement("table"),l=b.createElement("tbody"),l.appendChild(h),k.appendChild(l),h=k):"th"==h.tagName.toLowerCase()&&(k=b.createElement("table"),l=
b.createElement("tbody"),b=b.createElement("tr"),k.cellPadding=k.cellSpacing="0",b.appendChild(h),l.appendChild(b),k.appendChild(l),h=k)}h.id="";g.appendChild(h);e.appendChild(f);e.appendChild(g);r.style(e,"opacity",0.9);d.appendChild(e);c.appendChild(d);this.node=c;c=v.manager();this.oldOffsetY=c.OFFSET_Y;c.OFFSET_Y=1},destroy:function(){v.manager().OFFSET_Y=this.oldOffsetY;this.inherited(arguments)}}),y=v.manager().makeAvatar;v.manager().makeAvatar=function(){return void 0!==this.source.viewIndex&&
!r.hasClass(a.body(),"dijit_a11y")?new x(this):y.call(v.manager())};return h})},"dojox/html/metrics":function(){define("dojo/_base/kernel dojo/_base/lang dojo/_base/sniff dojo/ready dojo/_base/unload dojo/_base/window dojo/dom-geometry".split(" "),function(f,m,l,k,e,c,g){var d=m.getObject("dojox.html.metrics",!0),b=m.getObject("dojox");d.getFontMeasurements=function(){var a={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,small:0,medium:0,large:0,"x-large":0,"xx-large":0},b;l("ie")&&
(b=c.doc.documentElement.style.fontSize||"",b||(c.doc.documentElement.style.fontSize="100%"));var d=c.doc.createElement("div"),e=d.style;e.position="absolute";e.left="-100px";e.top="0";e.width="30px";e.height="1000em";e.borderWidth="0";e.margin="0";e.padding="0";e.outline="0";e.lineHeight="1";e.overflow="hidden";c.body().appendChild(d);for(var g in a)e.fontSize=g,a[g]=16*Math.round(12*d.offsetHeight/16)/12/1E3;l("ie")&&(c.doc.documentElement.style.fontSize=b);c.body().removeChild(d);return a};var a=
null;d.getCachedFontMeasurements=function(b){if(b||!a)a=d.getFontMeasurements();return a};var h=null,p={};d.getTextBox=function(a,b,d){var e,f;if(h)e=h;else{e=h=c.doc.createElement("div");var k=c.doc.createElement("div");k.appendChild(e);f=k.style;f.overflow="scroll";f.position="absolute";f.left="0px";f.top="-10000px";f.width="1px";f.height="1px";f.visibility="hidden";f.borderWidth="0";f.margin="0";f.padding="0";f.outline="0";c.body().appendChild(k)}e.className="";f=e.style;f.borderWidth="0";f.margin=
"0";f.padding="0";f.outline="0";if(1<arguments.length&&b)for(var l in b)l in p||(f[l]=b[l]);2<arguments.length&&d&&(e.className=d);e.innerHTML=a;f=g.position(e);f.w=e.parentNode.scrollWidth;return f};var n=16,t=16;d.getScrollbar=function(){return{w:n,h:t}};d._fontResizeNode=null;d.initOnFontResize=function(a){var e=d._fontResizeNode=c.doc.createElement("iframe");a=e.style;a.position="absolute";a.width="5em";a.height="10em";a.top="-10000px";a.display="none";l("ie")?e.onreadystatechange=function(){"complete"==
e.contentWindow.document.readyState&&(e.onresize=e.contentWindow.parent[b._scopeName].html.metrics._fontresize)}:e.onload=function(){e.contentWindow.onresize=e.contentWindow.parent[b._scopeName].html.metrics._fontresize};e.setAttribute("src","javascript:'\x3chtml\x3e\x3chead\x3e\x3cscript\x3eif(\"loadFirebugConsole\" in window){window.loadFirebugConsole();}\x3c/script\x3e\x3c/head\x3e\x3cbody\x3e\x3c/body\x3e\x3c/html\x3e'");c.body().appendChild(e);d.initOnFontResize=function(){}};d.onFontResize=
function(){};d._fontresize=function(){d.onFontResize()};e.addOnUnload(function(){var a=d._fontResizeNode;a&&(l("ie")&&a.onresize?a.onresize=null:a.contentWindow&&a.contentWindow.onresize&&(a.contentWindow.onresize=null),d._fontResizeNode=null)});k(function(){try{var a=c.doc.createElement("div");a.style.cssText="top:0;left:0;width:100px;height:100px;overflow:scroll;position:absolute;visibility:hidden;";c.body().appendChild(a);n=a.offsetWidth-a.clientWidth;t=a.offsetHeight-a.clientHeight;c.body().removeChild(a);
delete a}catch(b){}"fontSizeWatch"in f.config&&f.config.fontSizeWatch&&d.initOnFontResize()});return d})},"dojox/grid/_Builder":function(){define("../main dojo/_base/array dojo/_base/lang dojo/_base/window dojo/_base/event dojo/_base/sniff dojo/_base/connect dojo/dnd/Moveable dojox/html/metrics ./util dojo/_base/html dojo/dom-geometry".split(" "),function(f,m,l,k,e,c,g,d,b,a,h,p){var n=f.grid,t=function(a){for(;a&&"TABLE"!=a.tagName;a=a.parentNode);return a},q=function(a){var b=a.toUpperCase();return function(a){return a.tagName!=
b}},s=a.rowIndexTag,r=a.gridViewTag,w=n._Builder=l.extend(function(a){a&&(this.view=a,this.grid=a.grid)},{view:null,_table:'\x3ctable class\x3d"dojoxGridRowTable" border\x3d"0" cellspacing\x3d"0" cellpadding\x3d"0" role\x3d"presentation"',getTableArray:function(){var a=[this._table];this.view.viewWidth&&a.push([' style\x3d"width:',this.view.viewWidth,';"'].join(""));a.push("\x3e");return a},generateCellMarkup:function(a,b,c,d){var e=[],g;d?(g=a.index!=a.grid.getSortIndex()?"":0<a.grid.sortInfo?'aria-sort\x3d"ascending"':
'aria-sort\x3d"descending"',a.id||(a.id=this.grid.id+"Hdr"+a.index),g=['\x3cth tabIndex\x3d"-1" aria-readonly\x3d"true" role\x3d"columnheader"',g,' id\x3d"',a.id,'"']):g=['\x3ctd tabIndex\x3d"-1" role\x3d"gridcell"',this.grid.editable&&!a.editable?'aria-readonly\x3d"true"':""];a.colSpan&&g.push(' colspan\x3d"',a.colSpan,'"');a.rowSpan&&g.push(' rowspan\x3d"',a.rowSpan,'"');g.push(' class\x3d"dojoxGridCell ');a.classes&&g.push(a.classes," ");c&&g.push(c," ");e.push(g.join(""));e.push("");g=['" idx\x3d"',
a.index,'" style\x3d"'];b&&";"!=b[b.length-1]&&(b+=";");g.push(a.styles,b||"",a.hidden?"display:none;":"");a.unitWidth&&g.push("width:",a.unitWidth,";");e.push(g.join(""));e.push("");g=['"'];a.attrs&&g.push(" ",a.attrs);g.push("\x3e");e.push(g.join(""));e.push("");e.push(d?"\x3c/th\x3e":"\x3c/td\x3e");return e},isCellNode:function(a){return Boolean(a&&a!=k.doc&&h.attr(a,"idx"))},getCellNodeIndex:function(a){return a?Number(h.attr(a,"idx")):-1},getCellNode:function(a,b){for(var c=0,d;(d=a.firstChild&&
((a.firstChild.rows||0)[c]||a.firstChild.childNodes[c]))&&d.cells;c++)for(var e=0,g;g=d.cells[e];e++)if(this.getCellNodeIndex(g)==b)return g;return null},findCellTarget:function(a,b){for(var c=a;c&&(!this.isCellNode(c)||c.offsetParent&&r in c.offsetParent.parentNode&&c.offsetParent.parentNode[r]!=this.view.id)&&c!=b;)c=c.parentNode;return c!=b?c:null},baseDecorateEvent:function(a){a.dispatch="do"+a.type;a.grid=this.grid;a.sourceView=this.view;a.cellNode=this.findCellTarget(a.target,a.rowNode);a.cellIndex=
this.getCellNodeIndex(a.cellNode);a.cell=0<=a.cellIndex?this.grid.getCell(a.cellIndex):null},findTarget:function(a,b){for(var c=a;c&&c!=this.domNode&&(!(b in c)||r in c&&c[r]!=this.view.id);)c=c.parentNode;return c!=this.domNode?c:null},findRowTarget:function(a){return this.findTarget(a,s)},isIntraNodeEvent:function(a){try{return a.cellNode&&a.relatedTarget&&h.isDescendant(a.relatedTarget,a.cellNode)}catch(b){return!1}},isIntraRowEvent:function(a){try{var b=a.relatedTarget&&this.findRowTarget(a.relatedTarget);
return!b&&-1==a.rowIndex||b&&a.rowIndex==b.gridRowIndex}catch(c){return!1}},dispatchEvent:function(a){return a.dispatch in this?this[a.dispatch](a):!1},domouseover:function(a){a.cellNode&&a.cellNode!=this.lastOverCellNode&&(this.lastOverCellNode=a.cellNode,this.grid.onMouseOver(a));this.grid.onMouseOverRow(a)},domouseout:function(a){if(a.cellNode&&(a.cellNode==this.lastOverCellNode&&!this.isIntraNodeEvent(a,this.lastOverCellNode))&&(this.lastOverCellNode=null,this.grid.onMouseOut(a),!this.isIntraRowEvent(a)))this.grid.onMouseOutRow(a)},
domousedown:function(a){if(a.cellNode)this.grid.onMouseDown(a);this.grid.onMouseDownRow(a)},_getTextDirStyle:function(a,b,c){return""}});f=n._ContentBuilder=l.extend(function(a){w.call(this,a)},w.prototype,{update:function(){this.prepareHtml()},prepareHtml:function(){for(var a=this.grid.get,b=this.view.structure.cells,c=0,d;d=b[c];c++)for(var e=0,g;g=d[e];e++)g.get=g.get||void 0==g.value&&a,g.markup=this.generateCellMarkup(g,g.cellStyles,g.cellClasses,!1),!this.grid.editable&&g.editable&&(this.grid.editable=
!0)},generateHtml:function(b,c){var d=this.getTableArray(),e,g=this.view.structure.cells,f=this.grid.getItem(c);a.fire(this.view,"onBeforeRow",[c,g]);for(var h=0,k;k=g[h];h++)if(!k.hidden&&!k.header){d.push(!k.invisible?"\x3ctr\x3e":'\x3ctr class\x3d"dojoxGridInvisible"\x3e');for(var l=0,m,n,p;m=k[l];l++)n=m.markup,e=m.customClasses=[],p=m.customStyles=[],n[5]=m.format(c,f),n[1]=e.join(" "),n[3]=p.join(";"),(e=m.textDir||this.grid.textDir)&&(n[3]+=this._getTextDirStyle(e,m,c)),d.push.apply(d,n);d.push("\x3c/tr\x3e")}d.push("\x3c/table\x3e");
return d.join("")},decorateEvent:function(a){a.rowNode=this.findRowTarget(a.target);if(!a.rowNode)return!1;a.rowIndex=a.rowNode[s];this.baseDecorateEvent(a);a.cell=this.grid.getCell(a.cellIndex);return!0}});var u=n._HeaderBuilder=l.extend(function(a){this.moveable=null;w.call(this,a)},w.prototype,{_skipBogusClicks:!1,overResizeWidth:4,minColWidth:1,update:function(){this.tableMap?this.tableMap.mapRows(this.view.structure.cells):this.tableMap=new n._TableMap(this.view.structure.cells)},generateHtml:function(b,
c){var d,e=this.getTableArray(),g=this.view.structure.cells;a.fire(this.view,"onBeforeRow",[-1,g]);for(var f=0,h;h=g[f];f++)if(!h.hidden){e.push(!h.invisible?"\x3ctr\x3e":'\x3ctr class\x3d"dojoxGridInvisible"\x3e');for(var k=0,l,m;l=h[k];k++)l.customClasses=[],l.customStyles=[],this.view.simpleStructure&&(l.draggable&&(l.headerClasses?-1==l.headerClasses.indexOf("dojoDndItem")&&(l.headerClasses+=" dojoDndItem"):l.headerClasses="dojoDndItem"),l.attrs?-1==l.attrs.indexOf("dndType\x3d'gridColumn_")&&
(l.attrs+=" dndType\x3d'gridColumn_"+this.grid.id+"'"):l.attrs="dndType\x3d'gridColumn_"+this.grid.id+"'"),m=this.generateCellMarkup(l,l.headerStyles,l.headerClasses,!0),m[5]=void 0!=c?c:b(l),m[3]=l.customStyles.join(";"),(d=l.textDir||this.grid.textDir)&&(m[3]+=this._getTextDirStyle(d,l,c)),m[1]=l.customClasses.join(" "),e.push(m.join(""));e.push("\x3c/tr\x3e")}e.push("\x3c/table\x3e");return e.join("")},getCellX:function(a){var b;b=q("th");for(var c=a.target;c&&b(c);c=c.parentNode);(b=c)?(b=p.position(b),
a=a.clientX-b.x):a=a.layerX;return a},decorateEvent:function(a){this.baseDecorateEvent(a);a.rowIndex=-1;a.cellX=this.getCellX(a);return!0},prepareResize:function(a,b){do{var c=a.cellIndex;a.cellNode=c?a.cellNode.parentNode.cells[c+b]:null;a.cellIndex=a.cellNode?this.getCellNodeIndex(a.cellNode):-1}while(a.cellNode&&"none"==a.cellNode.style.display);return Boolean(a.cellNode)},canResize:function(a){if(!a.cellNode||1<a.cellNode.colSpan)return!1;a=this.grid.getCell(a.cellIndex);return!a.noresize&&a.canResize()},
overLeftResizeArea:function(a){if(h.hasClass(k.body(),"dojoDndMove"))return!1;if(c("ie")){var b=a.target;if(h.hasClass(b,"dojoxGridArrowButtonNode")||h.hasClass(b,"dojoxGridArrowButtonChar")||h.hasClass(b,"dojoxGridColCaption"))return!1}return this.grid.isLeftToRight()?0<a.cellIndex&&0<a.cellX&&a.cellX<this.overResizeWidth&&this.prepareResize(a,-1):a.cellNode&&0<a.cellX&&a.cellX<this.overResizeWidth},overRightResizeArea:function(a){if(h.hasClass(k.body(),"dojoDndMove"))return!1;if(c("ie")){var b=
a.target;if(h.hasClass(b,"dojoxGridArrowButtonNode")||h.hasClass(b,"dojoxGridArrowButtonChar")||h.hasClass(b,"dojoxGridColCaption"))return!1}return this.grid.isLeftToRight()?a.cellNode&&a.cellX>=a.cellNode.offsetWidth-this.overResizeWidth:0<a.cellIndex&&a.cellX>=a.cellNode.offsetWidth-this.overResizeWidth&&this.prepareResize(a,-1)},domousemove:function(a){if(!this.moveable){var b=this.overRightResizeArea(a)?"dojoxGridColResize":this.overLeftResizeArea(a)?"dojoxGridColResize":"";b&&!this.canResize(a)&&
(b="dojoxGridColNoResize");h.toggleClass(a.sourceView.headerNode,"dojoxGridColNoResize","dojoxGridColNoResize"==b);h.toggleClass(a.sourceView.headerNode,"dojoxGridColResize","dojoxGridColResize"==b);b&&e.stop(a)}},domousedown:function(a){this.moveable||((this.overRightResizeArea(a)||this.overLeftResizeArea(a))&&this.canResize(a)?this.beginColumnResize(a):(this.grid.onMouseDown(a),this.grid.onMouseOverRow(a)))},doclick:function(a){return this._skipBogusClicks?(e.stop(a),!0):!1},colResizeSetup:function(a,
d){var e=h.contentBox(a.sourceView.headerNode);if(d){this.lineDiv=document.createElement("div");var g=h.position(a.sourceView.headerNode,!0),f=h.contentBox(a.sourceView.domNode),l=a.pageX;!this.grid.isLeftToRight()&&8>c("ie")&&(l-=b.getScrollbar().w);h.style(this.lineDiv,{top:g.y+"px",left:l+"px",height:f.h+e.h+"px"});h.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;k.body().appendChild(this.lineDiv)}for(var g=[],f=this.tableMap.findOverlappingNodes(a.cellNode),l=0,m;m=f[l];l++)g.push({node:m,
index:this.getCellNodeIndex(m),width:m.offsetWidth});f=a.sourceView;m=this.grid.isLeftToRight()?1:-1;for(var n=a.grid.views.views,l=[],p=f.idx+m,q;q=n[p];p+=m)l.push({node:q.headerNode,left:window.parseInt(q.headerNode.style.left)});m=f.headerContentNode.firstChild;return{scrollLeft:a.sourceView.headerNode.scrollLeft,view:f,node:a.cellNode,index:a.cellIndex,w:h.contentBox(a.cellNode).w,vw:e.w,table:m,tw:h.contentBox(m).w,spanners:g,followers:l}},beginColumnResize:function(a){this.moverDiv=document.createElement("div");
h.style(this.moverDiv,{position:"absolute",left:0});k.body().appendChild(this.moverDiv);h.addClass(this.grid.domNode,"dojoxGridColumnResizing");var b=this.moveable=new d(this.moverDiv),c=this.colResizeSetup(a,!0);b.onMove=l.hitch(this,"doResizeColumn",c);g.connect(b,"onMoveStop",l.hitch(this,function(){this.endResizeColumn(c);c.node.releaseCapture&&c.node.releaseCapture();this.moveable.destroy();delete this.moveable;this.moveable=null;h.removeClass(this.grid.domNode,"dojoxGridColumnResizing")}));
a.cellNode.setCapture&&a.cellNode.setCapture();b.onMouseDown(a)},doResizeColumn:function(a,b,c){var d=c.l,d={deltaX:d,w:a.w+(this.grid.isLeftToRight()?d:-d),vw:a.vw+d,tw:a.tw+d};this.dragRecord={inDrag:a,mover:b,leftTop:c};d.w>=this.minColWidth&&(b?h.style(this.lineDiv,"left",this.lineDiv._origLeft+d.deltaX+"px"):this.doResizeNow(a,d))},endResizeColumn:function(a){if(this.dragRecord){var b=this.dragRecord.leftTop,b=this.grid.isLeftToRight()?b.l:-b.l,b=b+(Math.max(a.w+b,this.minColWidth)-(a.w+b));
c("webkit")&&a.spanners.length&&(b+=h._getPadBorderExtents(a.spanners[0].node).w);this.doResizeNow(a,{deltaX:b,w:a.w+b,vw:a.vw+b,tw:a.tw+b});delete this.dragRecord}h.destroy(this.lineDiv);h.destroy(this.moverDiv);h.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=!0;a.view.update();this._skipBogusClicks=!1;this.grid.onResizeColumn(a.index)},doResizeNow:function(a,b){a.view.convertColPctToFixed();if(a.view.flexCells&&!a.view.testFlexCells()){var d=t(a.node);d&&(d.style.width="")}for(var e,
g,d=0;e=a.spanners[d];d++)g=e.width+b.deltaX,0<g&&(e.node.style.width=g+"px",a.view.setColWidth(e.index,g));if(this.grid.isLeftToRight()||!c("ie"))for(d=0;e=a.followers[d];d++)g=e.left+b.deltaX,e.node.style.left=g+"px";a.node.style.width=b.w+"px";a.view.setColWidth(a.index,b.w);a.view.headerNode.style.width=b.vw+"px";a.view.setColumnsWidth(b.tw);this.grid.isLeftToRight()||(a.view.headerNode.scrollLeft=a.scrollLeft+b.deltaX)}});n._TableMap=l.extend(function(a){this.mapRows(a)},{map:null,mapRows:function(a){if(a.length){this.map=
[];var b;for(b=0;a[b];b++)this.map[b]=[];for(var c=0;b=a[c];c++)for(var d=0,e=0,g,f;g=b[d];d++){for(;this.map[c][e];)e++;this.map[c][e]={c:d,r:c};f=g.rowSpan||1;g=g.colSpan||1;for(var h=0;h<f;h++)for(var k=0;k<g;k++)this.map[c+h][e+k]=this.map[c][e];e+=g}}},dumpMap:function(){for(var a=0,b;b=this.map[a];a++)for(var c=0;b[c];c++);},getMapCoords:function(a,b){for(var c=0,d;d=this.map[c];c++)for(var e=0,g;g=d[e];e++)if(g.c==b&&g.r==a)return{j:c,i:e};return{j:-1,i:-1}},getNode:function(a,b,c){return(a=
a&&a.rows[b])&&a.cells[c]},_findOverlappingNodes:function(a,b,c){var d=[];b=this.getMapCoords(b,c);c=0;for(var e;e=this.map[c];c++)c!=b.j&&(e=(e=e[b.i])?this.getNode(a,e.r,e.c):null)&&d.push(e);return d},findOverlappingNodes:function(a){return this._findOverlappingNodes(t(a),0<=a.parentNode.rowIndex?a.parentNode.rowIndex:m.indexOf(a.parentNode.parentNode.childNodes,a.parentNode),0<=a.cellIndex?a.cellIndex:m.indexOf(a.parentNode.cells,a))}});return{_Builder:w,_HeaderBuilder:u,_ContentBuilder:f}})},
"dojox/grid/_ViewManager":function(){define(["dojo/_base/declare","dojo/_base/sniff","dojo/dom-class"],function(f,m,l){return f("dojox.grid._ViewManager",null,{constructor:function(f){this.grid=f},defaultWidth:200,views:[],resize:function(){this.onEach("resize")},render:function(){this.onEach("render")},addView:function(f){f.idx=this.views.length;this.views.push(f)},destroyViews:function(){for(var f=0,e;e=this.views[f];f++)e.destroy();this.views=[]},getContentNodes:function(){for(var f=[],e=0,c;c=
this.views[e];e++)f.push(c.contentNode);return f},forEach:function(f){for(var e=0,c;c=this.views[e];e++)f(c,e)},onEach:function(f,e){e=e||[];for(var c=0,g;g=this.views[c];c++)f in g&&g[f].apply(g,e)},normalizeHeaderNodeHeight:function(){for(var f=[],e=0,c;c=this.views[e];e++)c.headerContentNode.firstChild&&f.push(c.headerContentNode);this.normalizeRowNodeHeights(f)},normalizeRowNodeHeights:function(f){var e=0,c=[];if(this.grid.rowHeight)e=this.grid.rowHeight;else{if(1>=f.length)return;for(var g=0,
d;d=f[g];g++)l.contains(d,"dojoxGridNonNormalizedCell")||(c[g]=d.firstChild.offsetHeight,e=Math.max(e,c[g]));e=0<=e?e:0;(m("mozilla")||8<m("ie"))&&e&&e++}for(g=0;d=f[g];g++)c[g]!=e&&(d.firstChild.style.height=e+"px")},resetHeaderNodeHeight:function(){for(var f=0,e;e=this.views[f];f++)if(e=e.headerContentNode.firstChild)e.style.height=""},renormalizeRow:function(f){for(var e=[],c=0,g,d;(g=this.views[c])&&(d=g.getRowNode(f));c++)d.firstChild.style.height="",e.push(d);this.normalizeRowNodeHeights(e)},
getViewWidth:function(f){return this.views[f].getWidth()||this.defaultWidth},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(e){e.headerContentNode.style.height=""});var f=0;this.forEach(function(e){f=Math.max(e.headerNode.offsetHeight,f)});return f},measureContent:function(){var f=0;this.forEach(function(e){f=Math.max(e.domNode.offsetHeight,f)});return f},findClient:function(f){f=this.grid.elasticView||-1;if(0>f)for(var e=1,c;c=this.views[e];e++)if(c.viewWidth){for(e=
1;c=this.views[e];e++)if(!c.viewWidth){f=e;break}break}0>f&&(f=Math.floor(this.views.length/2));return f},arrange:function(f,e){var c,g,d,b=this.views.length,a=this,h=0>=e?b:this.findClient(),l=function(b,c){var d=b.domNode.style,e=b.headerNode.style;a.grid.isLeftToRight()?(d.left=c+"px",e.left=c+"px"):(d.right=c+"px",4>m("ff")?e.right=c+b.getScrollbarWidth()+"px":e.right=c+"px",!m("webkit")&&"auto"!=e.width&&(e.width=parseInt(e.width,10)-b.getScrollbarWidth()+"px"));d.top="0px";e.top=0};for(c=0;(g=
this.views[c])&&c<h;c++)d=this.getViewWidth(c),g.setSize(d,0),l(g,f),d=g.headerContentNode&&g.headerContentNode.firstChild?g.getColumnsWidth()+g.getScrollbarWidth():g.domNode.offsetWidth,f+=d;c++;for(var n=e,t=b-1;(g=this.views[t])&&c<=t;t--)d=this.getViewWidth(t),g.setSize(d,0),d=g.domNode.offsetWidth,n-=d,l(g,n);h<b&&(g=this.views[h],d=Math.max(1,n-f),g.setSize(d+"px",0),l(g,f));return f},renderRow:function(f,e,c){for(var g=[],d=0,b,a;(b=this.views[d])&&(a=e[d]);d++)b=b.renderRow(f),a.appendChild(b),
g.push(b);c||this.normalizeRowNodeHeights(g)},rowRemoved:function(f){this.onEach("rowRemoved",[f])},updateRow:function(f,e){for(var c=0,g;g=this.views[c];c++)g.updateRow(f);e||this.renormalizeRow(f)},updateRowStyles:function(f){this.onEach("updateRowStyles",[f])},setScrollTop:function(f){for(var e=f,c=0,g;g=this.views[c];c++)e=g.setScrollTop(f),m("ie")&&(g.headerNode&&g.scrollboxNode)&&(g.headerNode.scrollLeft=g.scrollboxNode.scrollLeft);return e},getFirstScrollingView:function(){for(var f=0,e;e=
this.views[f];f++)if(e.hasHScrollbar()||e.hasVScrollbar())return e;return null}})})},"dojox/grid/_RowManager":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/dom-class"],function(f,m,l){return f("dojox.grid._RowManager",null,{constructor:function(f){this.grid=f},linesToEms:2,overRow:-2,prepareStylingRow:function(f,e){return{index:f,node:e,odd:Boolean(f&1),selected:!!this.grid.selection.isSelected(f),over:this.isOver(f),customStyles:"",customClasses:"dojoxGridRow"}},styleRowNode:function(f,
e){var c=this.prepareStylingRow(f,e);this.grid.onStyleRow(c);this.applyStyles(c)},applyStyles:function(f){f.node.className=f.customClasses;var e=f.node.style.height,c=f.node,g=f.customStyles+";"+(f.node._style||"");void 0==c.style.cssText?c.setAttribute("style",g):c.style.cssText=g;f.node.style.height=e},updateStyles:function(f){this.grid.updateRowStyles(f)},setOverRow:function(f){var e=this.overRow;this.overRow=f;e!=this.overRow&&(m.isString(e)||0<=e)&&this.updateStyles(e);this.updateStyles(this.overRow)},
isOver:function(f){return this.overRow==f&&!l.contains(this.grid.domNode,"dojoxGridColumnResizing")}})})},"dojox/grid/_FocusManager":function(){define("dojo/_base/array dojo/_base/lang dojo/_base/declare dojo/_base/connect dojo/_base/event dojo/_base/sniff dojo/query ./util dojo/_base/html".split(" "),function(f,m,l,k,e,c,g,d,b){return l("dojox.grid._FocusManager",null,{constructor:function(a){this.grid=a;this.cell=null;this.rowIndex=-1;this._connects=[];this._headerConnects=[];this.headerMenu=this.grid.headerMenu;
this._connects.push(k.connect(this.grid.domNode,"onfocus",this,"doFocus"));this._connects.push(k.connect(this.grid.domNode,"onblur",this,"doBlur"));this._connects.push(k.connect(this.grid.domNode,"mousedown",this,"_mouseDown"));this._connects.push(k.connect(this.grid.domNode,"mouseup",this,"_mouseUp"));this._connects.push(k.connect(this.grid.domNode,"oncontextmenu",this,"doContextMenu"));this._connects.push(k.connect(this.grid.lastFocusNode,"onfocus",this,"doLastNodeFocus"));this._connects.push(k.connect(this.grid.lastFocusNode,
"onblur",this,"doLastNodeBlur"));this._connects.push(k.connect(this.grid,"_onFetchComplete",this,"_delayedCellFocus"));this._connects.push(k.connect(this.grid,"postrender",this,"_delayedHeaderFocus"))},destroy:function(){f.forEach(this._connects,k.disconnect);f.forEach(this._headerConnects,k.disconnect);delete this.grid;delete this.cell},_colHeadNode:null,_colHeadFocusIdx:null,_contextMenuBindNode:null,tabbingOut:!1,focusClass:"dojoxGridCellFocus",focusView:null,initFocusView:function(){this.focusView=
this.grid.views.getFirstScrollingView()||this.focusView||this.grid.views.views[0];this._initColumnHeaders()},isFocusCell:function(a,b){return this.cell==a&&this.rowIndex==b},isLastFocusCell:function(){return this.cell?this.rowIndex==this.grid.rowCount-1&&this.cell.index==this.grid.layout.cellCount-1:!1},isFirstFocusCell:function(){return this.cell?0===this.rowIndex&&0===this.cell.index:!1},isNoFocusCell:function(){return 0>this.rowIndex||!this.cell},isNavHeader:function(){return!!this._colHeadNode},
getHeaderIndex:function(){return this._colHeadNode?f.indexOf(this._findHeaderCells(),this._colHeadNode):-1},_focusifyCellNode:function(a){var e=this.cell&&this.cell.getNode(this.rowIndex);if(e&&(b.toggleClass(e,this.focusClass,a),a)){a=this.scrollIntoView();try{if(c("webkit")||!this.grid.edit.isEditing())d.fire(e,"focus"),a&&(this.cell.view.scrollboxNode.scrollLeft=a)}catch(g){}}},_delayedCellFocus:function(){if(!this.isNavHeader()&&this.grid.focused){var a=this.cell&&this.cell.getNode(this.rowIndex);
if(a)try{this.grid.edit.isEditing()||(b.toggleClass(a,this.focusClass,!0),this._colHeadNode&&this.blurHeader(),d.fire(a,"focus"))}catch(c){}}},_delayedHeaderFocus:function(){this.isNavHeader()&&this.focusHeader()},_initColumnHeaders:function(){f.forEach(this._headerConnects,k.disconnect);this._headerConnects=[];for(var a=this._findHeaderCells(),b=0;b<a.length;b++)this._headerConnects.push(k.connect(a[b],"onfocus",this,"doColHeaderFocus")),this._headerConnects.push(k.connect(a[b],"onblur",this,"doColHeaderBlur"))},
_findHeaderCells:function(){for(var a=g("th",this.grid.viewsHeaderNode),c=[],d=0;d<a.length;d++){var e=a[d],f=b.hasAttr(e,"tabIndex"),k=b.attr(e,"tabIndex");f&&0>k&&c.push(e)}return c},_setActiveColHeader:function(a,c,d){this.grid.domNode.setAttribute("aria-activedescendant",a.id);null!=d&&(0<=d&&d!=c)&&b.toggleClass(this._findHeaderCells()[d],this.focusClass,!1);b.toggleClass(a,this.focusClass,!0);this._colHeadNode=a;this._colHeadFocusIdx=c;this._scrollHeader(this._colHeadFocusIdx)},scrollIntoView:function(){var a=
this.cell?this._scrollInfo(this.cell):null;if(!a||!a.s)return null;var b=this.grid.scroller.findScrollTop(this.rowIndex);a.n&&a.sr&&(a.n.offsetLeft+a.n.offsetWidth>a.sr.l+a.sr.w?a.s.scrollLeft=a.n.offsetLeft+a.n.offsetWidth-a.sr.w:a.n.offsetLeft<a.sr.l&&(a.s.scrollLeft=a.n.offsetLeft));a.r&&a.sr&&(b+a.r.offsetHeight>a.sr.t+a.sr.h?this.grid.setScrollTop(b+a.r.offsetHeight-a.sr.h):b<a.sr.t&&this.grid.setScrollTop(b));return a.s.scrollLeft},_scrollInfo:function(a,b){if(a){var c=a.view.scrollboxNode,
d={w:c.clientWidth,l:c.scrollLeft,t:c.scrollTop,h:c.clientHeight},e=a.view.getRowNode(this.rowIndex);return{c:a,s:c,sr:d,n:b?b:a.getNode(this.rowIndex),r:e}}return null},_scrollHeader:function(a){var b=null;if(this._colHeadNode){var d=this.grid.getCell(a);if(!d)return;b=this._scrollInfo(d,d.getNode(0))}b&&(b.s&&b.sr&&b.n)&&(b.n.offsetLeft+b.n.offsetWidth>b.sr.l+b.sr.w?b.s.scrollLeft=b.n.offsetLeft+b.n.offsetWidth-b.sr.w:b.n.offsetLeft<b.sr.l?b.s.scrollLeft=b.n.offsetLeft:7>=c("ie")&&(d&&d.view.headerNode)&&
(d.view.headerNode.scrollLeft=b.s.scrollLeft))},_isHeaderHidden:function(){var a=this.focusView;if(!a)for(var c=0,d;d=this.grid.views.views[c];c++)if(d.headerNode){a=d;break}return a&&"none"==b.getComputedStyle(a.headerNode).display},colSizeAdjust:function(a,b,c){var d=this._findHeaderCells(),e=this.focusView;if(!e||!e.header.tableMap.map)for(var g=0,f;f=this.grid.views.views[g];g++)if(f.header.tableMap.map){e=f;break}g=d[b];e&&!(b==d.length-1&&0===b)&&(e.content.baseDecorateEvent(a),a.cellNode=g,
a.cellIndex=e.content.getCellNodeIndex(a.cellNode),a.cell=0<=a.cellIndex?this.grid.getCell(a.cellIndex):null,e.header.canResize(a)&&(b={l:c},a=e.header.colResizeSetup(a,!1),e.header.doResizeColumn(a,null,b),e.update()))},styleRow:function(a){},setFocusIndex:function(a,b){this.setFocusCell(this.grid.getCell(b),a)},setFocusCell:function(a,b){a&&!this.isFocusCell(a,b)&&(this.tabbingOut=!1,this._colHeadNode&&this.blurHeader(),this._colHeadNode=this._colHeadFocusIdx=null,this.focusGridView(),this._focusifyCellNode(!1),
this.cell=a,this.rowIndex=b,this._focusifyCellNode(!0));if(c("opera"))setTimeout(m.hitch(this.grid,"onCellFocus",this.cell,this.rowIndex),1);else this.grid.onCellFocus(this.cell,this.rowIndex)},next:function(){if(this.cell){var a=this.rowIndex,b=this.cell.index+1,c=this.grid.layout.cellCount-1,d=this.grid.rowCount-1;b>c&&(b=0,a++);a>d&&(b=c,a=d);if(this.grid.edit.isEditing()&&(c=this.grid.getCell(b),!this.isLastFocusCell()&&(!c.editable||this.grid.canEdit&&!this.grid.canEdit(c,a)))){this.cell=c;this.rowIndex=
a;this.next();return}this.setFocusIndex(a,b)}},previous:function(){if(this.cell){var a=this.rowIndex||0,b=(this.cell.index||0)-1;0>b&&(b=this.grid.layout.cellCount-1,a--);0>a&&(b=a=0);if(this.grid.edit.isEditing()){var c=this.grid.getCell(b);if(!this.isFirstFocusCell()&&!c.editable){this.cell=c;this.rowIndex=a;this.previous();return}}this.setFocusIndex(a,b)}},move:function(a,c){var d=0>c?-1:1;if(this.isNavHeader()){var e=this._findHeaderCells(),g=currentIdx=f.indexOf(e,this._colHeadNode);for(currentIdx+=
c;0<=currentIdx&&currentIdx<e.length&&"none"==e[currentIdx].style.display;)currentIdx+=d;0<=currentIdx&&currentIdx<e.length&&this._setActiveColHeader(e[currentIdx],currentIdx,g)}else if(this.cell){var k=this.grid.scroller,e=this.rowIndex,g=this.grid.rowCount-1,l=Math.min(g,Math.max(0,e+a));a&&(0<a?l>k.getLastPageRow(k.page)&&this.grid.setScrollTop(this.grid.scrollTop+k.findScrollTop(l)-k.findScrollTop(e)):0>a&&l<=k.getPageRow(k.page)&&this.grid.setScrollTop(this.grid.scrollTop-k.findScrollTop(e)-
k.findScrollTop(l)));for(var k=this.grid.layout.cellCount-1,m=this.cell.index,w=Math.min(k,Math.max(0,m+c)),u=this.grid.getCell(w);0<=w&&w<k&&u&&!0===u.hidden;)w+=d,u=this.grid.getCell(w);if(!u||!0===u.hidden)w=m;d=u.getNode(l);!d&&a?0<=l+a&&l+a<=g&&this.move(0<a?++a:--a,c):(!d||"none"===b.style(d,"display"))&&c?0<=w+c&&w+c<=k&&this.move(a,0<c?++c:--c):(this.setFocusIndex(l,w),a&&this.grid.updateRow(e))}},previousKey:function(a){this.grid.edit.isEditing()?(e.stop(a),this.previous()):!this.isNavHeader()&&
!this._isHeaderHidden()?(this.grid.domNode.focus(),e.stop(a)):(this.tabOut(this.grid.domNode),null!=this._colHeadFocusIdx&&(b.toggleClass(this._findHeaderCells()[this._colHeadFocusIdx],this.focusClass,!1),this._colHeadFocusIdx=null),this._focusifyCellNode(!1))},nextKey:function(a){a.target===this.grid.domNode&&null==this._colHeadFocusIdx?(this.focusHeader(),e.stop(a)):this.isNavHeader()?(this.blurHeader(),this.findAndFocusGridCell()||this.tabOut(this.grid.lastFocusNode),this._colHeadNode=this._colHeadFocusIdx=
null):this.grid.edit.isEditing()?(e.stop(a),this.next()):this.tabOut(this.grid.lastFocusNode)},tabOut:function(a){this.tabbingOut=!0;a.focus()},focusGridView:function(){d.fire(this.focusView,"focus")},focusGrid:function(a){this.focusGridView();this._focusifyCellNode(!0)},findAndFocusGridCell:function(){var a=!0,b=0===this.grid.rowCount;this.isNoFocusCell()&&!b?(b=0,this.grid.getCell(b).hidden&&(b=this.isNavHeader()?this._colHeadFocusIdx:0),this.setFocusIndex(0,b)):this.cell&&!b?(this.focusView&&!this.focusView.rowNodes[this.rowIndex]&&
this.grid.scrollToRow(this.rowIndex),this.focusGrid()):a=!1;this._colHeadNode=this._colHeadFocusIdx=null;return a},focusHeader:function(){var a=this._findHeaderCells(),b=this._colHeadFocusIdx;this._isHeaderHidden()?this.findAndFocusGridCell():this._colHeadFocusIdx||(this.isNoFocusCell()?this._colHeadFocusIdx=0:this._colHeadFocusIdx=this.cell.index);for(this._colHeadNode=a[this._colHeadFocusIdx];this._colHeadNode&&0<=this._colHeadFocusIdx&&this._colHeadFocusIdx<a.length&&"none"==this._colHeadNode.style.display;)this._colHeadFocusIdx++,
this._colHeadNode=a[this._colHeadFocusIdx];this._colHeadNode&&"none"!=this._colHeadNode.style.display?(this.headerMenu&&this._contextMenuBindNode!=this.grid.domNode&&(this.headerMenu.unBindDomNode(this.grid.viewsHeaderNode),this.headerMenu.bindDomNode(this.grid.domNode),this._contextMenuBindNode=this.grid.domNode),this._setActiveColHeader(this._colHeadNode,this._colHeadFocusIdx,b),this._scrollHeader(this._colHeadFocusIdx),this._focusifyCellNode(!1)):this.findAndFocusGridCell()},blurHeader:function(){b.removeClass(this._colHeadNode,
this.focusClass);b.removeAttr(this.grid.domNode,"aria-activedescendant");if(this.headerMenu&&this._contextMenuBindNode==this.grid.domNode){var a=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(a);this._contextMenuBindNode=a}},doFocus:function(a){a&&a.target!=a.currentTarget?e.stop(a):this._clickFocus||(this.tabbingOut||this.focusHeader(),this.tabbingOut=!1,e.stop(a))},doBlur:function(a){e.stop(a)},doContextMenu:function(a){this.headerMenu||e.stop(a)},
doLastNodeFocus:function(a){this.tabbingOut?this._focusifyCellNode(!1):0<this.grid.rowCount?(this.isNoFocusCell()&&this.setFocusIndex(0,0),this._focusifyCellNode(!0)):this.focusHeader();this.tabbingOut=!1;e.stop(a)},doLastNodeBlur:function(a){e.stop(a)},doColHeaderFocus:function(a){this._setActiveColHeader(a.target,b.attr(a.target,"idx"),this._colHeadFocusIdx);this._scrollHeader(this.getHeaderIndex());e.stop(a)},doColHeaderBlur:function(a){b.toggleClass(a.target,this.focusClass,!1)},_mouseDown:function(a){this._clickFocus=
dojo.some(this.grid.views.views,function(b){return b.scrollboxNode===a.target})},_mouseUp:function(a){this._clickFocus=!1}})})},"dojox/grid/_EditManager":function(){define("dojo/_base/lang dojo/_base/array dojo/_base/declare dojo/_base/connect dojo/_base/sniff ./util".split(" "),function(f,m,l,k,e,c){return l("dojox.grid._EditManager",null,{constructor:function(c){this.grid=c;this.connections=!e("ie")?[]:[k.connect(document.body,"onfocus",f.hitch(this,"_boomerangFocus"))];this.connections.push(k.connect(this.grid,
"onBlur",this,"apply"));this.connections.push(k.connect(this.grid,"prerender",this,"_onPreRender"))},info:{},destroy:function(){m.forEach(this.connections,k.disconnect)},cellFocus:function(c,d){this.grid.singleClickEdit||this.isEditRow(d)?this.setEditCell(c,d):this.apply();(this.isEditing()||c&&c.editable&&c.alwaysEditing)&&this._focusEditor(c,d)},rowClick:function(c){this.isEditing()&&!this.isEditRow(c.rowIndex)&&this.apply()},styleRow:function(c){c.index==this.info.rowIndex&&(c.customClasses+=" dojoxGridRowEditing")},
dispatchEvent:function(c){var d=c.cell;return(d=d&&d.editable?d:0)&&d.dispatchEvent(c.dispatch,c)},isEditing:function(){return void 0!==this.info.rowIndex},isEditCell:function(c,d){return this.info.rowIndex===c&&this.info.cell.index==d},isEditRow:function(c){return this.info.rowIndex===c},setEditCell:function(c,d){!this.isEditCell(d,c.index)&&(this.grid.canEdit&&this.grid.canEdit(c,d))&&this.start(c,d,this.isEditRow(d)||c.editable)},_focusEditor:function(e,d){c.fire(e,"focus",[d])},focusEditor:function(){this.isEditing()&&
this._focusEditor(this.info.cell,this.info.rowIndex)},_boomerangWindow:500,_shouldCatchBoomerang:function(){return this._catchBoomerang>(new Date).getTime()},_boomerangFocus:function(){this._shouldCatchBoomerang()&&(this.grid.focus.focusGrid(),this.focusEditor(),this._catchBoomerang=0)},_doCatchBoomerang:function(){e("ie")&&(this._catchBoomerang=(new Date).getTime()+this._boomerangWindow)},start:function(c,d,b){this._isValidInput()&&(this.grid.beginUpdate(),this.editorApply(),this.isEditing()&&!this.isEditRow(d)&&
(this.applyRowEdit(),this.grid.updateRow(d)),b?(this.info={cell:c,rowIndex:d},this.grid.doStartEdit(c,d),this.grid.updateRow(d)):this.info={},this.grid.endUpdate(),this.grid.focus.focusGrid(),this._focusEditor(c,d),this._doCatchBoomerang())},_editorDo:function(c){var d=this.info.cell;if(d&&d.editable)d[c](this.info.rowIndex)},editorApply:function(){this._editorDo("apply")},editorCancel:function(){this._editorDo("cancel")},applyCellEdit:function(c,d,b){this.grid.canEdit(d,b)&&this.grid.doApplyCellEdit(c,
b,d.field)},applyRowEdit:function(){this.grid.doApplyEdit(this.info.rowIndex,this.info.cell.field)},apply:function(){this.isEditing()&&this._isValidInput()&&(this.grid.beginUpdate(),this.editorApply(),this.applyRowEdit(),this.info={},this.grid.endUpdate(),this.grid.focus.focusGrid(),this._doCatchBoomerang())},cancel:function(){this.isEditing()&&(this.grid.beginUpdate(),this.editorCancel(),this.info={},this.grid.endUpdate(),this.grid.focus.focusGrid(),this._doCatchBoomerang())},save:function(c,d){var b=
this.info.cell;this.isEditRow(c)&&((!d||b.view==d)&&b.editable)&&b.save(b,this.info.rowIndex)},restore:function(c,d){var b=this.info.cell;this.isEditRow(d)&&(b.view==c&&b.editable)&&b.restore(this.info.rowIndex)},_isValidInput:function(){var c=(this.info.cell||{}).widget;if(!c||!c.isValid)return!0;c.focused=!0;return c.isValid(!0)},_onPreRender:function(){this.isEditing()&&(this.info.value=this.info.cell.getValue())}})})},"dojox/grid/Selection":function(){define(["dojo/_base/declare","dojo/_base/array",
"dojo/_base/lang","dojo/dom-attr"],function(f,m,l,k){return f("dojox.grid.Selection",null,{constructor:function(e){this.grid=e;this.selected=[];this.setMode(e.selectionMode)},mode:"extended",selected:null,updating:0,selectedIndex:-1,rangeStartIndex:-1,setMode:function(e){this.selected.length&&this.deselectAll();this.mode="extended"!=e&&"multiple"!=e&&"single"!=e&&"none"!=e?"extended":e},onCanSelect:function(e){return this.grid.onCanSelect(e)},onCanDeselect:function(e){return this.grid.onCanDeselect(e)},
onSelected:function(e){},onDeselected:function(e){},onChanging:function(){},onChanged:function(){},isSelected:function(e){return"none"==this.mode?!1:this.selected[e]},getFirstSelected:function(){if(!this.selected.length||"none"==this.mode)return-1;for(var e=0,c=this.selected.length;e<c;e++)if(this.selected[e])return e;return-1},getNextSelected:function(e){if("none"==this.mode)return-1;e+=1;for(var c=this.selected.length;e<c;e++)if(this.selected[e])return e;return-1},getSelected:function(){for(var e=
[],c=0,g=this.selected.length;c<g;c++)this.selected[c]&&e.push(c);return e},getSelectedCount:function(){for(var e=0,c=0;c<this.selected.length;c++)this.selected[c]&&e++;return e},_beginUpdate:function(){if(0===this.updating)this.onChanging();this.updating++},_endUpdate:function(){this.updating--;if(0===this.updating)this.onChanged()},select:function(e){"none"!=this.mode&&("multiple"!=this.mode?(this.deselectAll(e),this.addToSelection(e)):this.toggleSelect(e))},addToSelection:function(e){if("none"!=
this.mode)if(l.isArray(e))m.forEach(e,this.addToSelection,this);else if(e=Number(e),this.selected[e])this.selectedIndex=e;else if(!1!==this.onCanSelect(e)){this.selectedIndex=e;var c=this.grid.getRowNode(e);c&&k.set(c,"aria-selected","true");this._beginUpdate();this.selected[e]=!0;this.onSelected(e);this._endUpdate()}},deselect:function(e){if("none"!=this.mode)if(l.isArray(e))m.forEach(e,this.deselect,this);else if(e=Number(e),this.selectedIndex==e&&(this.selectedIndex=-1),this.selected[e]&&!1!==
this.onCanDeselect(e)){var c=this.grid.getRowNode(e);c&&k.set(c,"aria-selected","false");this._beginUpdate();delete this.selected[e];this.onDeselected(e);this._endUpdate()}},setSelected:function(e,c){this[c?"addToSelection":"deselect"](e)},toggleSelect:function(e){l.isArray(e)?m.forEach(e,this.toggleSelect,this):this.setSelected(e,!this.selected[e])},_range:function(e,c,g){var d=0<=e?e:c;e=c;d>e&&(e=d,d=c);for(c=d;c<=e;c++)g(c)},selectRange:function(e,c){this._range(e,c,l.hitch(this,"addToSelection"))},
deselectRange:function(e,c){this._range(e,c,l.hitch(this,"deselect"))},insert:function(e){this.selected.splice(e,0,!1);this.selectedIndex>=e&&this.selectedIndex++},remove:function(e){this.selected.splice(e,1);this.selectedIndex>=e&&this.selectedIndex--},deselectAll:function(e){for(var c in this.selected)c!=e&&!0===this.selected[c]&&this.deselect(c)},clickSelect:function(e,c,g){if("none"!=this.mode){this._beginUpdate();if("extended"!=this.mode)this.select(e);else{if(!g||0>this.rangeStartIndex)this.rangeStartIndex=
e;c||this.deselectAll(e);g?this.selectRange(this.rangeStartIndex,e):c?this.toggleSelect(e):this.addToSelection(e)}this._endUpdate()}},clickSelectEvent:function(e){this.clickSelect(e.rowIndex,dojo.isCopyKey(e),e.shiftKey)},clear:function(){this._beginUpdate();this.deselectAll();this._endUpdate()}})})},"dojox/grid/DataSelection":function(){define(["dojo/_base/declare","./_SelectionPreserver","./Selection"],function(f,m,l){return f("dojox.grid.DataSelection",l,{constructor:function(f){f.keepSelection&&
(this.preserver=new m(this))},destroy:function(){this.preserver&&this.preserver.destroy()},getFirstSelected:function(){var f=l.prototype.getFirstSelected.call(this);return-1==f?null:this.grid.getItem(f)},getNextSelected:function(f){f=this.grid.getItemIndex(f);f=l.prototype.getNextSelected.call(this,f);return-1==f?null:this.grid.getItem(f)},getSelected:function(){for(var f=[],e=0,c=this.selected.length;e<c;e++)this.selected[e]&&f.push(this.grid.getItem(e));return f},addToSelection:function(f){if("none"!=
this.mode){var e=null,e="number"==typeof f||"string"==typeof f?f:this.grid.getItemIndex(f);l.prototype.addToSelection.call(this,e)}},deselect:function(f){if("none"!=this.mode){var e=null,e="number"==typeof f||"string"==typeof f?f:this.grid.getItemIndex(f);l.prototype.deselect.call(this,e)}},deselectAll:function(f){var e=null;f||"number"==typeof f?(e="number"==typeof f||"string"==typeof f?f:this.grid.getItemIndex(f),l.prototype.deselectAll.call(this,e)):this.inherited(arguments)}})})},"dojox/grid/_SelectionPreserver":function(){define(["dojo/_base/declare",
"dojo/_base/connect","dojo/_base/lang","dojo/_base/array"],function(f,m,l,k){return f("dojox.grid._SelectionPreserver",null,{constructor:function(e){this.selection=e;var c=this.grid=e.grid;this.reset();this._connects=[m.connect(c,"_setStore",this,"reset"),m.connect(c,"_addItem",this,"_reSelectById"),m.connect(e,"onSelected",l.hitch(this,"_selectById",!0)),m.connect(e,"onDeselected",l.hitch(this,"_selectById",!1)),m.connect(e,"deselectAll",this,"reset")]},destroy:function(){this.reset();k.forEach(this._connects,
m.disconnect);delete this._connects},reset:function(){this._selectedById={}},_reSelectById:function(e,c){e&&this.grid._hasIdentity&&(this.selection.selected[c]=this._selectedById[this.grid.store.getIdentity(e)])},_selectById:function(e,c){if("none"!=this.selection.mode&&this.grid._hasIdentity){var g=c,d=this.grid;if("number"==typeof c||"string"==typeof c)g=(g=d._by_idx[c])&&g.item;g&&(this._selectedById[d.store.getIdentity(g)]=!!e);return g}}})})},"dojo/fx/Toggler":function(){define(["../_base/lang",
"../_base/declare","../_base/fx","../aspect"],function(f,m,l,k){return m("dojo.fx.Toggler",null,{node:null,showFunc:l.fadeIn,hideFunc:l.fadeOut,showDuration:200,hideDuration:200,constructor:function(e){f.mixin(this,e);this.node=e.node;this._showArgs=f.mixin({},e);this._showArgs.node=this.node;this._showArgs.duration=this.showDuration;this.showAnim=this.showFunc(this._showArgs);this._hideArgs=f.mixin({},e);this._hideArgs.node=this.node;this._hideArgs.duration=this.hideDuration;this.hideAnim=this.hideFunc(this._hideArgs);
k.after(this.showAnim,"beforeBegin",f.hitch(this.hideAnim,"stop",!0),!0);k.after(this.hideAnim,"beforeBegin",f.hitch(this.showAnim,"stop",!0),!0)},show:function(e){return this.showAnim.play(e||0)},hide:function(e){return this.hideAnim.play(e||0)}})})},"dojox/dtl/_Templated":function(){define("dojo/aspect dojo/_base/declare ./_base dijit/_TemplatedMixin dojo/dom-construct dojo/cache dojo/_base/array dojo/string dojo/parser".split(" "),function(f,m,l,k,e,c,g,d,b){return m("dojox.dtl._Templated",k,{_dijitTemplateCompat:!1,
buildRendering:function(){var a;if(!this.domNode||this._template){if(!this._template){var c=this.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);c instanceof l.Template?this._template=c:a=c.cloneNode(!0)}if(!a){c=new l._Context(this);this._created||delete c._getter;var d=e.toDom(this._template.render(c));if(1!==d.nodeType&&3!==d.nodeType)for(var c=0,g=d.childNodes.length;c<g&&!(a=d.childNodes[c],1==a.nodeType);++c);else a=d}this._attachTemplateNodes(a);if(this.widgetsInTemplate){var k,
m;"[dojoType]"!=b._query&&(k=b._query,m=b._attrName,b._query="[dojoType]",b._attrName="dojoType");d=this._startupWidgets=b.parse(a,{noStart:!this._earlyTemplatedStartup,inherited:{dir:this.dir,lang:this.lang}});k&&(b._query=k,b._attrName=m);for(c=0;c<d.length;c++)this._processTemplateNode(d[c],function(a,b){return a[b]},function(a,b,c){return b in a?f.after(a,b,c,!0):a.on(b,c,!0)})}this.domNode&&(e.place(a,this.domNode,"before"),this.destroyDescendants(),e.destroy(this.domNode));this.domNode=a;this._fillContent(this.srcNodeRef)}},
_processTemplateNode:function(a,b,c){if(this.widgetsInTemplate&&(b(a,"dojoType")||b(a,"data-dojo-type")))return!0;this.inherited(arguments)},_templateCache:{},getCachedTemplate:function(a,b,g){var f=this._templateCache,k=b||a;if(f[k])return f[k];b=d.trim(b||c(a,{sanitize:!0}));if(this._dijitTemplateCompat&&(g||b.match(/\$\{([^\}]+)\}/g)))b=this._stringRepl(b);return g||!b.match(/\{[{%]([^\}]+)[%}]\}/g)?f[k]=e.toDom(b):f[k]=new l.Template(b)},render:function(){this.buildRendering()},startup:function(){g.forEach(this._startupWidgets,
function(a){a&&(!a._started&&a.startup)&&a.startup()});this.inherited(arguments)}})})},"dojox/dtl/_base":function(){define("dojo/_base/kernel dojo/_base/lang dojox/string/tokenize dojo/_base/json dojo/dom dojo/_base/xhr dojox/string/Builder dojo/_base/Deferred".split(" "),function(f,m,l,k,e,c,g,d){f.experimental("dojox.dtl");var b=m.getObject("dojox.dtl",!0);b._base={};b.TOKEN_BLOCK=-1;b.TOKEN_VAR=-2;b.TOKEN_COMMENT=-3;b.TOKEN_TEXT=3;b._Context=m.extend(function(a){a&&(m._mixin(this,a),a.get&&(this._getter=
a.get,delete this.get))},{push:function(){var a=this,b=m.delegate(this);b.pop=function(){return a};return b},pop:function(){throw Error("pop() called on empty Context");},get:function(a,b){var c=this._normalize;if(this._getter){var d=this._getter(a);if(void 0!==d)return c(d)}return void 0!==this[a]?c(this[a]):b},_normalize:function(a){a instanceof Date&&(a.year=a.getFullYear(),a.month=a.getMonth()+1,a.day=a.getDate(),a.date=a.year+"-"+("0"+a.month).slice(-2)+"-"+("0"+a.day).slice(-2),a.hour=a.getHours(),
a.minute=a.getMinutes(),a.second=a.getSeconds(),a.microsecond=a.getMilliseconds());return a},update:function(a){var b=this.push();a&&m._mixin(this,a);return b}});var a=/("(?:[^"\\]*(?:\\.[^"\\]*)*)"|'(?:[^'\\]*(?:\\.[^'\\]*)*)'|[^\s]+)/g,h=/\s+/g,p=function(a,b){a=a||h;a instanceof RegExp||(a=RegExp(a,"g"));if(!a.global)throw Error("You must use a globally flagged RegExp with split "+a);a.exec("");for(var c,d=[],e=0,g=0;(c=a.exec(this))&&!(d.push(this.slice(e,a.lastIndex-c[0].length)),e=a.lastIndex,
b&&++g>b-1););d.push(this.slice(e));return d};b.Token=function(a,b){this.token_type=a;this.contents=new String(m.trim(b));this.contents.split=p;this.split=function(){return String.prototype.split.apply(this.contents,arguments)}};b.Token.prototype.split_contents=function(b){var c,d=[],e=0;for(b=b||999;e++<b&&(c=a.exec(this.contents));)c=c[0],'"'==c.charAt(0)&&'"'==c.slice(-1)?d.push('"'+c.slice(1,-1).replace('\\"','"').replace("\\\\","\\")+'"'):"'"==c.charAt(0)&&"'"==c.slice(-1)?d.push("'"+c.slice(1,
-1).replace("\\'","'").replace("\\\\","\\")+"'"):d.push(c);return d};var n=b.text={_get:function(a,c,d){a=b.register.get(a,c.toLowerCase(),d);if(!a){if(!d)throw Error("No tag found for "+c);return null}d=a[1];a=a[2];-1!=d.indexOf(":")&&(d=d.split(":"),d=d.pop());var e=a;/\./.test(a)&&(a=a.replace(/\./g,"/"));require([a],function(){});a=m.getObject(e);return a[d||c]||a[c+"_"]||a[d+"_"]},getTag:function(a,b){return n._get("tag",a,b)},getFilter:function(a,b){return n._get("filter",a,b)},getTemplate:function(a){return new b.Template(n.getTemplateString(a))},
getTemplateString:function(a){return c._getText(a.toString())||""},_resolveLazy:function(a,d,e){return d?e?e.fromJson(c._getText(a))||{}:b.text.getTemplateString(a):c.get({handleAs:e?"json":"text",url:a})},_resolveTemplateArg:function(a,b){if(n._isTemplate(a)){if(!b){var c=new d;c.callback(a);return c}return a}return n._resolveLazy(a,b)},_isTemplate:function(a){return void 0===a||"string"==typeof a&&(a.match(/^\s*[<{]/)||-1!=a.indexOf(" "))},_resolveContextArg:function(a,b){if(a.constructor==Object){if(!b){var c=
new d;c.callback(a);return c}return a}return n._resolveLazy(a,b,!0)},_re:/(?:\{\{\s*(.+?)\s*\}\}|\{%\s*(load\s*)?(.+?)\s*%\})/g,tokenize:function(a){return l(a,n._re,n._parseDelims)},_parseDelims:function(a,c,d){if(a)return[b.TOKEN_VAR,a];if(c){a=m.trim(d).split(/\s+/g);for(c=0;d=a[c];c++)/\./.test(d)&&(d=d.replace(/\./g,"/")),require([d])}else return[b.TOKEN_BLOCK,d]}};b.Template=m.extend(function(a,c){var d=c?a:n._resolveTemplateArg(a,!0)||"",d=n.tokenize(d);this.nodelist=(new b._Parser(d)).parse()},
{update:function(a,c){return n._resolveContextArg(c).addCallback(this,function(c){var d=this.render(new b._Context(c));a.forEach?a.forEach(function(a){a.innerHTML=d}):e.byId(a).innerHTML=d;return this})},render:function(a,c){c=c||this.getBuffer();a=a||new b._Context({});return this.nodelist.render(a,c)+""},getBuffer:function(){return new g}});var t=/\{\{\s*(.+?)\s*\}\}/g;b.quickFilter=function(a){if(!a)return new b._NodeList;if(-1==a.indexOf("{%"))return new b._QuickNodeList(l(a,t,function(a){return new b._Filter(a)}))};
b._QuickNodeList=m.extend(function(a){this.contents=a},{render:function(a,b){for(var c=0,d=this.contents.length;c<d;c++)b=this.contents[c].resolve?b.concat(this.contents[c].resolve(a)):b.concat(this.contents[c]);return b},dummyRender:function(a){return this.render(a,b.Template.prototype.getBuffer()).toString()},clone:function(a){return this}});b._Filter=m.extend(function(a){if(!a)throw Error("Filter must be called with variable name");this.contents=a;var b=this._cache[a];b?(this.key=b[0],this.filters=
b[1]):(this.filters=[],l(a,this._re,this._tokenize,this),this._cache[a]=[this.key,this.filters])},{_cache:{},_re:/(?:^_\("([^\\"]*(?:\\.[^\\"])*)"\)|^"([^\\"]*(?:\\.[^\\"]*)*)"|^([a-zA-Z0-9_.]+)|\|(\w+)(?::(?:_\("([^\\"]*(?:\\.[^\\"])*)"\)|"([^\\"]*(?:\\.[^\\"]*)*)"|([a-zA-Z0-9_.]+)|'([^\\']*(?:\\.[^\\']*)*)'))?|^'([^\\']*(?:\\.[^\\']*)*)')/g,_values:{"0":'"',1:'"',2:"",8:'"'},_args:{4:'"',5:'"',6:"",7:"'"},_tokenize:function(){for(var a,b,c=0,d=[];c<arguments.length;c++)d[c]=void 0!==arguments[c]&&
"string"==typeof arguments[c]&&arguments[c];if(this.key){for(a in this._args)if(d[a]){b=arguments[a];"'"==this._args[a]?b=b.replace(/\\'/g,"'"):'"'==this._args[a]&&(b=b.replace(/\\"/g,'"'));b=[!this._args[a],b];break}a=n.getFilter(arguments[3]);if(!m.isFunction(a))throw Error(arguments[3]+" is not registered as a filter");this.filters.push([a,b])}else for(a in this._values)if(d[a]){this.key=this._values[a]+arguments[a]+this._values[a];break}},getExpression:function(){return this.contents},resolve:function(a){if(void 0===
this.key)return"";for(var b=this.resolvePath(this.key,a),c=0,d;d=this.filters[c];c++)b=d[1]?d[1][0]?d[0](b,this.resolvePath(d[1][1],a)):d[0](b,d[1][1]):d[0](b);return b},resolvePath:function(a,c){var d,e;d=a.charAt(0);e=a.slice(-1);if(isNaN(parseInt(d)))if('"'==d&&d==e)d=a.slice(1,-1);else{if("true"==a)return!0;if("false"==a)return!1;if("null"==a||"None"==a)return null;e=a.split(".");d=c.get(e[0]);if(m.isFunction(d)){var g=c.getThis&&c.getThis();d=d.alters_data?"":g?d.call(g):""}for(g=1;g<e.length;g++){var f=
e[g];if(d){var h=d;if(m.isObject(d)&&"items"==f&&void 0===d[f]){var f=[],k;for(k in d)f.push([k,d[k]]);d=f}else{if(d.get&&m.isFunction(d.get)&&d.get.safe)d=d.get(f);else if(void 0===d[f]){d=d[f];break}else d=d[f];m.isFunction(d)?d=d.alters_data?"":d.call(h):d instanceof Date&&(d=b._Context.prototype._normalize(d))}}else return""}}else d=-1==a.indexOf(".")?parseInt(a):parseFloat(a);return d}});b._TextNode=b._Node=m.extend(function(a){this.contents=a},{set:function(a){this.contents=a;return this},render:function(a,
b){return b.concat(this.contents)},isEmpty:function(){return!m.trim(this.contents)},clone:function(){return this}});b._NodeList=m.extend(function(a){this.contents=a||[];this.last=""},{push:function(a){this.contents.push(a);return this},concat:function(a){this.contents=this.contents.concat(a);return this},render:function(a,b){for(var c=0;c<this.contents.length;c++)if(b=this.contents[c].render(a,b),!b)throw Error("Template must return buffer");return b},dummyRender:function(a){return this.render(a,
b.Template.prototype.getBuffer()).toString()},unrender:function(a,b){return b},clone:function(){return this},rtrim:function(){for(;;)if(i=this.contents.length-1,this.contents[i]instanceof b._TextNode&&this.contents[i].isEmpty())this.contents.pop();else break;return this}});b._VarNode=m.extend(function(a){this.contents=new b._Filter(a)},{render:function(a,c){var d=this.contents.resolve(a)||"";d.safe||(d=b._base.escape(""+d));return c.concat(d)}});b._noOpNode=new function(){this.render=this.unrender=
function(a,b){return b};this.clone=function(){return this}};b._Parser=m.extend(function(a){this.contents=a},{i:0,parse:function(a){var c={},d;a=a||[];for(var e=0;e<a.length;e++)c[a[e]]=!0;for(e=new b._NodeList;this.i<this.contents.length;)if(d=this.contents[this.i++],"string"==typeof d)e.push(new b._TextNode(d));else{var g=d[0];d=d[1];if(g==b.TOKEN_VAR)e.push(new b._VarNode(d));else if(g==b.TOKEN_BLOCK){if(c[d])return--this.i,e;var f=d.split(/\s+/g);f.length&&(f=f[0],(f=n.getTag(f))&&e.push(f(this,
new b.Token(g,d))))}}if(a.length)throw Error("Could not find closing tag(s): "+a.toString());this.contents.length=0;return e},next_token:function(){var a=this.contents[this.i++];return new b.Token(a[0],a[1])},delete_first_token:function(){this.i++},skip_past:function(a){for(;this.i<this.contents.length;){var c=this.contents[this.i++];if(c[0]==b.TOKEN_BLOCK&&c[1]==a)return}throw Error("Unclosed tag found when looking for "+a);},create_variable_node:function(a){return new b._VarNode(a)},create_text_node:function(a){return new b._TextNode(a||
"")},getTemplate:function(a){return new b.Template(a)}});b.register={_registry:{attributes:[],tags:[],filters:[]},get:function(a,c){for(var d=b.register._registry[a+"s"],e=0,g;g=d[e];e++)if("string"==typeof g[0]){if(g[0]==c)return g}else if(c.match(g[0]))return g},getAttributeTags:function(){for(var a=[],c=b.register._registry.attributes,d=0,e;e=c[d];d++)if(3==e.length)a.push(e);else{var g=m.getObject(e[1]);g&&m.isFunction(g)&&(e.push(g),a.push(e))}return a},_any:function(a,c,d){for(var e in d)for(var g=
0,f;f=d[e][g];g++){var h=f;m.isArray(f)&&(h=f[0],f=f[1]);if("string"==typeof h){if("attr:"==h.substr(0,5)){var k=f;"attr:"==k.substr(0,5)&&(k=k.slice(5));b.register._registry.attributes.push([k.toLowerCase(),c+"."+e+"."+k])}h=h.toLowerCase()}b.register._registry[a].push([h,f,c+"."+e])}},tags:function(a,c){b.register._any("tags",a,c)},filters:function(a,c){b.register._any("filters",a,c)}};var q=/&/g,s=/</g,r=/>/g,w=/'/g,u=/"/g;b._base.escape=function(a){return b.mark_safe(a.replace(q,"\x26amp;").replace(s,
"\x26lt;").replace(r,"\x26gt;").replace(u,"\x26quot;").replace(w,"\x26#39;"))};b._base.safe=function(a){"string"==typeof a&&(a=new String(a));"object"==typeof a&&(a.safe=!0);return a};b.mark_safe=b._base.safe;b.register.tags("dojox.dtl.tag",{date:["now"],logic:["if","for","ifequal","ifnotequal"],loader:["extends","block","include","load","ssi"],misc:"comment debug filter firstof spaceless templatetag widthratio with".split(" "),loop:["cycle","ifchanged","regroup"]});b.register.filters("dojox.dtl.filter",
{dates:["date","time","timesince","timeuntil"],htmlstrings:["linebreaks","linebreaksbr","removetags","striptags"],integers:["add","get_digit"],lists:"dictsort dictsortreversed first join length length_is random slice unordered_list".split(" "),logic:["default","default_if_none","divisibleby","yesno"],misc:["filesizeformat","pluralize","phone2numeric","pprint"],strings:"addslashes capfirst center cut fix_ampersands floatformat iriencode linenumbers ljust lower make_list rjust slugify stringformat title truncatewords truncatewords_html upper urlencode urlize urlizetrunc wordcount wordwrap".split(" ")});
b.register.filters("dojox.dtl",{_base:["escape","safe"]});return b})},"dojox/string/tokenize":function(){define(["dojo/_base/lang","dojo/_base/sniff"],function(f,m){var l=f.getObject("dojox.string",!0).tokenize;return l=function(f,e,c,g){var d=[],b,a;for(a=0;b=e.exec(f);){a=f.slice(a,e.lastIndex-b[0].length);a.length&&d.push(a);if(c){if(m("opera")){for(a=b.slice(0);a.length<b.length;)a.push(null);b=a}b=c.apply(g,b.slice(1).concat(d.length));"undefined"!=typeof b&&d.push(b)}a=e.lastIndex}a=f.slice(a);
a.length&&d.push(a);return d}})},"dojox/string/Builder":function(){define(["dojo/_base/lang"],function(f){return f.getObject("string",!0,dojox).Builder=function(f){var l="";this.length=0;this.append=function(f){if(1<arguments.length){var e="";switch(arguments.length){case 9:e=""+arguments[8]+e;case 8:e=""+arguments[7]+e;case 7:e=""+arguments[6]+e;case 6:e=""+arguments[5]+e;case 5:e=""+arguments[4]+e;case 4:e=""+arguments[3]+e;case 3:e=""+arguments[2]+e;case 2:l+=""+arguments[0]+arguments[1]+e;break;
default:for(var c=0;c<arguments.length;)e+=arguments[c++];l+=e}}else l+=f;this.length=l.length;return this};this.concat=function(f){return this.append.apply(this,arguments)};this.appendArray=function(f){return this.append.apply(this,f)};this.clear=function(){l="";this.length=0;return this};this.replace=function(f,e){l=l.replace(f,e);this.length=l.length;return this};this.remove=function(f,e){void 0===e&&(e=l.length);if(0==e)return this;l=l.substr(0,f)+l.substr(f+e);this.length=l.length;return this};
this.insert=function(f,e){l=0==f?e+l:l.slice(0,f)+e+l.slice(f);this.length=l.length;return this};this.toString=function(){return l};f&&this.append(f)}})},"dojox/dtl/tag/logic":function(){define(["dojo/_base/lang","../_base"],function(f,m){var l=f.getObject("tag.logic",!0,m);l.IfNode=f.extend(function(f,e,c,g){this.bools=f;this.trues=e;this.falses=c;this.type=g},{render:function(f,e){var c,g,d;if("or"==this.type){for(c=0;g=this.bools[c];c++)if(d=g[0],g=g[1],(g=g.resolve(f))&&!d||d&&!g)return this.falses&&
(e=this.falses.unrender(f,e)),this.trues?this.trues.render(f,e,this):e;this.trues&&(e=this.trues.unrender(f,e));return this.falses?this.falses.render(f,e,this):e}for(c=0;g=this.bools[c];c++)if(d=g[0],g=g[1],g=g.resolve(f),g==d)return this.trues&&(e=this.trues.unrender(f,e)),this.falses?this.falses.render(f,e,this):e;this.falses&&(e=this.falses.unrender(f,e));return this.trues?this.trues.render(f,e,this):e},unrender:function(f,e){e=this.trues?this.trues.unrender(f,e):e;return e=this.falses?this.falses.unrender(f,
e):e},clone:function(f){var e=this.trues?this.trues.clone(f):null;f=this.falses?this.falses.clone(f):null;return new this.constructor(this.bools,e,f,this.type)}});l.IfEqualNode=f.extend(function(f,e,c,g,d){this.var1=new m._Filter(f);this.var2=new m._Filter(e);this.trues=c;this.falses=g;this.negate=d},{render:function(f,e){var c=this.var1.resolve(f),g=this.var2.resolve(f),c="undefined"!=typeof c?c:"",g="undefined"!=typeof c?g:"";if(this.negate&&c!=g||!this.negate&&c==g)return this.falses&&(e=this.falses.unrender(f,
e,this)),this.trues?this.trues.render(f,e,this):e;this.trues&&(e=this.trues.unrender(f,e,this));return this.falses?this.falses.render(f,e,this):e},unrender:function(f,e){return l.IfNode.prototype.unrender.call(this,f,e)},clone:function(f){var e=this.trues?this.trues.clone(f):null;f=this.falses?this.falses.clone(f):null;return new this.constructor(this.var1.getExpression(),this.var2.getExpression(),e,f,this.negate)}});l.ForNode=f.extend(function(f,e,c,g){this.assign=f;this.loop=new m._Filter(e);this.reversed=
c;this.nodelist=g;this.pool=[]},{render:function(k,e){var c,g,d,b=!1,a=this.assign;for(d=0;d<a.length;d++)if("undefined"!=typeof k[a[d]]){b=!0;k=k.push();break}!b&&k.forloop&&(b=!0,k=k.push());d=this.loop.resolve(k)||[];var h=[];if(f.isObject(d)&&!f.isArrayLike(d))for(c in d)h.push([c,d[c]]);else h=d;for(c=h.length;c<this.pool.length;c++)this.pool[c].unrender(k,e,this);this.reversed&&(h=h.slice(0).reverse());var l=k.forloop={parentloop:k.get("forloop",{})};for(c=g=0;c<h.length;c++){var m=h[c];l.counter0=
g;l.counter=g+1;l.revcounter0=h.length-g-1;l.revcounter=h.length-g;l.first=!g;l.last=g==h.length-1;if(1<a.length&&f.isArrayLike(m)){b||(b=!0,k=k.push());var t={};for(d=0;d<m.length&&d<a.length;d++)t[a[d]]=m[d];f.mixin(k,t)}else k[a[0]]=m;g+1>this.pool.length&&this.pool.push(this.nodelist.clone(e));e=this.pool[g++].render(k,e,this)}delete k.forloop;if(b)k.pop();else for(d=0;d<a.length;d++)delete k[a[d]];return e},unrender:function(f,e){for(var c=0,g;g=this.pool[c];c++)e=g.unrender(f,e);return e},clone:function(f){return new this.constructor(this.assign,
this.loop.getExpression(),this.reversed,this.nodelist.clone(f))}});f.mixin(l,{if_:function(f,e){var c,g,d,b=[],a=e.contents.split();a.shift();e=a.join(" ");a=e.split(" and ");if(1==a.length)d="or",a=e.split(" or ");else{d="and";for(c=0;c<a.length;c++)if(-1!=a[c].indexOf(" or "))throw Error("'if' tags can't mix 'and' and 'or'");}for(c=0;g=a[c];c++){var h=!1;0==g.indexOf("not ")&&(g=g.slice(4),h=!0);b.push([h,new m._Filter(g)])}c=f.parse(["else","endif"]);g=!1;e=f.next_token();"else"==e.contents&&(g=
f.parse(["endif"]),f.next_token());return new l.IfNode(b,c,g,d)},_ifequal:function(f,e,c){var g=e.split_contents();if(3!=g.length)throw Error(g[0]+" takes two arguments");var d="end"+g[0],b=f.parse(["else",d]),a=!1;e=f.next_token();"else"==e.contents&&(a=f.parse([d]),f.next_token());return new l.IfEqualNode(g[1],g[2],b,a,c)},ifequal:function(f,e){return l._ifequal(f,e)},ifnotequal:function(f,e){return l._ifequal(f,e,!0)},for_:function(f,e){var c=e.contents.split();if(4>c.length)throw Error("'for' statements should have at least four words: "+
e.contents);var g="reversed"==c[c.length-1],d=g?-3:-2;if("in"!=c[c.length+d])throw Error("'for' tag received an invalid argument: "+e.contents);for(var b=c.slice(1,d).join(" ").split(/ *, */),a=0;a<b.length;a++)if(!b[a]||-1!=b[a].indexOf(" "))throw Error("'for' tag received an invalid argument: "+e.contents);a=f.parse(["endfor"]);f.next_token();return new l.ForNode(b,c[c.length+d+1],g,a)}});return l})},"dojox/dtl/tag/loop":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/json",
"../_base","dojox/string/tokenize"],function(f,m,l,k,e){var c=f.getObject("tag.loop",!0,k);c.CycleNode=f.extend(function(c,d,b,a){this.cyclevars=c;this.name=d;this.contents=b;this.shared=a||{counter:-1,map:{}}},{render:function(c,d){c.forloop&&!c.forloop.counter0&&(this.shared.counter=-1);++this.shared.counter;var b=this.cyclevars[this.shared.counter%this.cyclevars.length],a=this.shared.map;a[b]||(a[b]=new k._Filter(b));b=a[b].resolve(c,d);this.name&&(c[this.name]=b);this.contents.set(b);return this.contents.render(c,
d)},unrender:function(c,d){return this.contents.unrender(c,d)},clone:function(c){return new this.constructor(this.cyclevars,this.name,this.contents.clone(c),this.shared)}});c.IfChangedNode=f.extend(function(c,d,b){this.nodes=c;this._vars=d;this.shared=b||{last:null,counter:0};this.vars=m.map(d,function(a){return new dojox.dtl._Filter(a)})},{render:function(c,d){c.forloop&&(c.forloop.counter<=this.shared.counter&&(this.shared.last=null),this.shared.counter=c.forloop.counter);var b;b=this.vars.length?
l.toJson(m.map(this.vars,function(a){return a.resolve(c)})):this.nodes.dummyRender(c,d);if(b!=this.shared.last){var a=null===this.shared.last;this.shared.last=b;c=c.push();c.ifchanged={firstloop:a};d=this.nodes.render(c,d);c=c.pop()}else d=this.nodes.unrender(c,d);return d},unrender:function(c,d){return this.nodes.unrender(c,d)},clone:function(c){return new this.constructor(this.nodes.clone(c),this._vars,this.shared)}});c.RegroupNode=f.extend(function(c,d,b){this._expression=c;this.expression=new k._Filter(c);
this.key=d;this.alias=b},{_push:function(c,d,b){b.length&&c.push({grouper:d,list:b})},render:function(c,d){c[this.alias]=[];var b=this.expression.resolve(c);if(b){for(var a=null,e=[],f=0;f<b.length;f++){var k=b[f][this.key];a!==k?(this._push(c[this.alias],a,e),a=k,e=[b[f]]):e.push(b[f])}this._push(c[this.alias],a,e)}return d},unrender:function(c,d){return d},clone:function(c,d){return this}});f.mixin(c,{cycle:function(e,d){var b=d.split_contents();if(2>b.length)throw Error("'cycle' tag requires at least two arguments");
if(-1!=b[1].indexOf(","))for(var a=b[1].split(","),b=[b[0]],f=0;f<a.length;f++)b.push('"'+a[f]+'"');if(2==b.length){a=b[b.length-1];if(!e._namedCycleNodes)throw Error("No named cycles in template: '"+a+"' is not defined");if(!e._namedCycleNodes[a])throw Error("Named cycle '"+a+"' does not exist");return e._namedCycleNodes[a]}4<b.length&&"as"==b[b.length-2]?(a=b[b.length-1],b=new c.CycleNode(b.slice(1,b.length-2),a,e.create_text_node()),e._namedCycleNodes||(e._namedCycleNodes={}),e._namedCycleNodes[a]=
b):b=new c.CycleNode(b.slice(1),null,e.create_text_node());return b},ifchanged:function(e,d){var b=d.contents.split(),a=e.parse(["endifchanged"]);e.delete_first_token();return new c.IfChangedNode(a,b.slice(1))},regroup:function(g,d){var b=e(d.contents,/(\s+)/g,function(a){return a});if(11>b.length||"as"!=b[b.length-3]||"by"!=b[b.length-7])throw Error("Expected the format: regroup list by key as newList");var a=b.slice(2,-8).join("");return new c.RegroupNode(a,b[b.length-5],b[b.length-1])}});return c})},
"dojox/dtl/filter/strings":function(){define("dojo/_base/lang dojo/_base/array dojox/string/tokenize dojox/string/sprintf ../filter/htmlstrings ../_base".split(" "),function(f,m,l,k,e,c){var g=f.getObject("filter.strings",!0,c);f.mixin(g,{_urlquote:function(c,b){b||(b="/");return l(c,/([^\w-_.])/g,function(a){if(-1==b.indexOf(a)){if(" "==a)return"+";for(a=a.charCodeAt(0).toString(16).toUpperCase();2>a.length;)a="0"+a;return"%"+a}return a}).join("")},addslashes:function(c){return c.replace(/\\/g,"\\\\").replace(/"/g,
'\\"').replace(/'/g,"\\'")},capfirst:function(c){c=""+c;return c.charAt(0).toUpperCase()+c.substring(1)},center:function(c,b){b=b||c.length;c+="";var a=b-c.length;a%2&&(c+=" ",a-=1);for(var e=0;e<a;e+=2)c=" "+c+" ";return c},cut:function(c,b){return(c+"").replace(RegExp(b+""||"","g"),"")},_fix_ampersands:/&(?!(\w+|#\d+);)/g,fix_ampersands:function(c){return c.replace(g._fix_ampersands,"\x26amp;")},floatformat:function(c,b){b=parseInt(b||-1,10);c=parseFloat(c);if(!(c-c.toFixed(0))&&0>b)return c.toFixed();
c=c.toFixed(Math.abs(b));return 0>b?parseFloat(c)+"":c},iriencode:function(c){return g._urlquote(c,"/#%[]\x3d:;$\x26()+,!")},linenumbers:function(c){var b=dojox.dtl.filter;c=c.split("\n");for(var a=[],e=(c.length+"").length,g=0,f;g<c.length;g++)f=c[g],a.push(b.strings.ljust(g+1,e)+". "+dojox.dtl._base.escape(f));return a.join("\n")},ljust:function(c,b){c+="";for(b=parseInt(b,10);c.length<b;)c+=" ";return c},lower:function(c){return(c+"").toLowerCase()},make_list:function(c){var b=[];"number"==typeof c&&
(c+="");if(c.charAt){for(var a=0;a<c.length;a++)b.push(c.charAt(a));return b}if("object"==typeof c){for(a in c)b.push(c[a]);return b}return[]},rjust:function(c,b){c+="";for(b=parseInt(b,10);c.length<b;)c=" "+c;return c},slugify:function(c){c=c.replace(/[^\w\s-]/g,"").toLowerCase();return c.replace(/[\-\s]+/g,"-")},_strings:{},stringformat:function(c,b){b=""+b;var a=g._strings;a[b]||(a[b]=new k.Formatter("%"+b));return a[b].format(c)},title:function(c){for(var b,a="",e=0,g;e<c.length;e++)g=c.charAt(e),
a=" "==b||"\n"==b||"\t"==b||!b?a+g.toUpperCase():a+g.toLowerCase(),b=g;return a},_truncatewords:/[ \n\r\t]/,truncatewords:function(c,b){b=parseInt(b,10);if(!b)return c;for(var a=0,e=c.length,f=0,k,l;a<c.length;a++){k=c.charAt(a);if(g._truncatewords.test(l)){if(!g._truncatewords.test(k)&&(++f,f==b))return c.substring(0,e+1)+" ..."}else g._truncatewords.test(k)||(e=a);l=k}return c},_truncate_words:/(&.*?;|<.*?>|(\w[\w\-]*))/g,_truncate_tag:/<(\/)?([^ ]+?)(?: (\/)| .*?)?>/,_truncate_singlets:{br:!0,
col:!0,link:!0,base:!0,img:!0,param:!0,area:!0,hr:!0,input:!0},truncatewords_html:function(c,b){b=parseInt(b,10);if(0>=b)return"";for(var a=0,e=[],f=l(c,g._truncate_words,function(c,d){if(d){++a;if(a<b)return d;if(a==b)return d+" ..."}var f=c.match(g._truncate_tag);if(f&&!(a>=b)){var k=f[1],f=f[2].toLowerCase();!k&&!g._truncate_singlets[f]&&(k?(k=m.indexOf(e,f),-1!=k&&(e=e.slice(k+1))):e.unshift(f));return c}}).join(""),f=f.replace(/\s+$/g,""),k=0,t;t=e[k];k++)f+="\x3c/"+t+"\x3e";return f},upper:function(c){return c.toUpperCase()},
urlencode:function(c){return g._urlquote(c)},_urlize:/^((?:[(>]|&lt;)*)(.*?)((?:[.,)>\n]|&gt;)*)$/,_urlize2:/^\S+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+$/,urlize:function(c){return g.urlizetrunc(c)},urlizetrunc:function(c,b){b=parseInt(b);return l(c,/(\S+)/g,function(a){var c=g._urlize.exec(a);if(!c)return a;var c=c[2],d=0==c.indexOf("www."),e=-1!=c.indexOf("@"),f=-1!=c.indexOf(":"),k=0==c.indexOf("http://"),l=0==c.indexOf("https://"),m=/[a-zA-Z0-9]/.test(c.charAt(0)),w=c.substring(c.length-4),u=c;3<b&&
(u=u.substring(0,b-3)+"...");return d||!e&&!k&&c.length&&m&&(".org"==w||".net"==w||".com"==w)?'\x3ca href\x3d"http://'+c+'" rel\x3d"nofollow"\x3e'+u+"\x3c/a\x3e":k||l?'\x3ca href\x3d"'+c+'" rel\x3d"nofollow"\x3e'+u+"\x3c/a\x3e":e&&!d&&!f&&g._urlize2.test(c)?'\x3ca href\x3d"mailto:'+c+'"\x3e'+c+"\x3c/a\x3e":a}).join("")},wordcount:function(c){c=f.trim(c);return!c?0:c.split(/\s+/g).length},wordwrap:function(c,b){b=parseInt(b);var a=[],e=c.split(/\s+/g);if(e.length){var g=e.shift();a.push(g);for(var f=
g.length-g.lastIndexOf("\n")-1,k=0;k<e.length;k++){var g=e[k],l=-1!=g.indexOf("\n")?g.split(/\n/g):[g],f=f+(l[0].length+1);b&&f>b?(a.push("\n"),f=l[l.length-1].length):(a.push(" "),1<l.length&&(f=l[l.length-1].length));a.push(g)}}return a.join("")}});return g})},"dojox/string/sprintf":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/sniff","./tokenize"],function(f,m,l,k){var e=m.getObject("string",!0,dojox);e.sprintf=function(c,g){for(var d=[],b=1;b<arguments.length;b++)d.push(arguments[b]);
b=new e.sprintf.Formatter(c);return b.format.apply(b,d)};e.sprintf.Formatter=function(c){this._mapped=!1;this._format=c;this._tokens=k(c,this._re,this._parseDelim,this)};m.extend(e.sprintf.Formatter,{_re:/\%(?:\(([\w_]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%scdeEfFgGiouxX])/g,_parseDelim:function(c,e,d,b,a,f,k){c&&(this._mapped=!0);return{mapping:c,intmapping:e,flags:d,_minWidth:b,period:a,_precision:f,specifier:k}},_specifiers:{b:{base:2,isInt:!0},o:{base:8,isInt:!0},x:{base:16,
isInt:!0},X:{extend:["x"],toUpper:!0},d:{base:10,isInt:!0},i:{extend:["d"]},u:{extend:["d"],isUnsigned:!0},c:{setArg:function(c){if(!isNaN(c.arg)){var e=parseInt(c.arg);if(0>e||127<e)throw Error("invalid character code passed to %c in sprintf");c.arg=isNaN(e)?""+e:String.fromCharCode(e)}}},s:{setMaxWidth:function(c){c.maxWidth="."==c.period?c.precision:-1}},e:{isDouble:!0,doubleNotation:"e"},E:{extend:["e"],toUpper:!0},f:{isDouble:!0,doubleNotation:"f"},F:{extend:["f"]},g:{isDouble:!0,doubleNotation:"g"},
G:{extend:["g"],toUpper:!0}},format:function(c){if(this._mapped&&"object"!=typeof c)throw Error("format requires a mapping");for(var e="",d=0,b=0,a;b<this._tokens.length;b++)if(a=this._tokens[b],"string"==typeof a)e+=a;else{if(this._mapped){if("undefined"==typeof c[a.mapping])throw Error("missing key "+a.mapping);a.arg=c[a.mapping]}else{a.intmapping&&(d=parseInt(a.intmapping)-1);if(d>=arguments.length)throw Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");a.arg=
arguments[d++]}if(!a.compiled){a.compiled=!0;a.sign="";a.zeroPad=!1;a.rightJustify=!1;a.alternative=!1;for(var f={},k=a.flags.length;k--;){var l=a.flags.charAt(k);f[l]=!0;switch(l){case " ":a.sign=" ";break;case "+":a.sign="+";break;case "0":a.zeroPad=f["-"]?!1:!0;break;case "-":a.rightJustify=!0;a.zeroPad=!1;break;case "#":a.alternative=!0;break;default:throw Error("bad formatting flag '"+a.flags.charAt(k)+"'");}}a.minWidth=a._minWidth?parseInt(a._minWidth):0;a.maxWidth=-1;a.toUpper=!1;a.isUnsigned=
!1;a.isInt=!1;a.isDouble=!1;a.precision=1;"."==a.period&&(a.precision=a._precision?parseInt(a._precision):0);f=this._specifiers[a.specifier];if("undefined"==typeof f)throw Error("unexpected specifier '"+a.specifier+"'");f.extend&&(m.mixin(f,this._specifiers[f.extend]),delete f.extend);m.mixin(a,f)}"function"==typeof a.setArg&&a.setArg(a);"function"==typeof a.setMaxWidth&&a.setMaxWidth(a);if("*"==a._minWidth){if(this._mapped)throw Error("* width not supported in mapped formats");a.minWidth=parseInt(arguments[d++]);
if(isNaN(a.minWidth))throw Error("the argument for * width at position "+d+" is not a number in "+this._format);0>a.minWidth&&(a.rightJustify=!0,a.minWidth=-a.minWidth)}if("*"==a._precision&&"."==a.period){if(this._mapped)throw Error("* precision not supported in mapped formats");a.precision=parseInt(arguments[d++]);if(isNaN(a.precision))throw Error("the argument for * precision at position "+d+" is not a number in "+this._format);0>a.precision&&(a.precision=1,a.period="")}a.isInt?("."==a.period&&
(a.zeroPad=!1),this.formatInt(a)):a.isDouble&&("."!=a.period&&(a.precision=6),this.formatDouble(a));this.fitField(a);e+=""+a.arg}return e},_zeros10:"0000000000",_spaces10:"          ",formatInt:function(c){var e=parseInt(c.arg);if(!isFinite(e)){if("number"!=typeof c.arg)throw Error("format argument '"+c.arg+"' not an integer; parseInt returned "+e);e=0}if(0>e&&(c.isUnsigned||10!=c.base))e=4294967295+e+1;0>e?(c.arg=(-e).toString(c.base),this.zeroPad(c),c.arg="-"+c.arg):(c.arg=e.toString(c.base),!e&&
!c.precision?c.arg="":this.zeroPad(c),c.sign&&(c.arg=c.sign+c.arg));16==c.base&&(c.alternative&&(c.arg="0x"+c.arg),c.arg=c.toUpper?c.arg.toUpperCase():c.arg.toLowerCase());8==c.base&&(c.alternative&&"0"!=c.arg.charAt(0))&&(c.arg="0"+c.arg)},formatDouble:function(c){var e=parseFloat(c.arg);if(!isFinite(e)){if("number"!=typeof c.arg)throw Error("format argument '"+c.arg+"' not a float; parseFloat returned "+e);e=0}switch(c.doubleNotation){case "e":c.arg=e.toExponential(c.precision);break;case "f":c.arg=
e.toFixed(c.precision);break;case "g":1E-4>Math.abs(e)?c.arg=e.toExponential(0<c.precision?c.precision-1:c.precision):c.arg=e.toPrecision(c.precision);c.alternative||(c.arg=c.arg.replace(/(\..*[^0])0*/,"$1"),c.arg=c.arg.replace(/\.0*e/,"e").replace(/\.0$/,""));break;default:throw Error("unexpected double notation '"+c.doubleNotation+"'");}c.arg=c.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1");l("opera")&&(c.arg=c.arg.replace(/^\./,"0."));c.alternative&&(c.arg=c.arg.replace(/^(\d+)$/,
"$1."),c.arg=c.arg.replace(/^(\d+)e/,"$1.e"));0<=e&&c.sign&&(c.arg=c.sign+c.arg);c.arg=c.toUpper?c.arg.toUpperCase():c.arg.toLowerCase()},zeroPad:function(c,e){e=2==arguments.length?e:c.precision;"string"!=typeof c.arg&&(c.arg=""+c.arg);for(var d=e-10;c.arg.length<d;)c.arg=c.rightJustify?c.arg+this._zeros10:this._zeros10+c.arg;d=e-c.arg.length;c.arg=c.rightJustify?c.arg+this._zeros10.substring(0,d):this._zeros10.substring(0,d)+c.arg},fitField:function(c){if(0<=c.maxWidth&&c.arg.length>c.maxWidth)return c.arg.substring(0,
c.maxWidth);c.zeroPad?this.zeroPad(c,c.minWidth):this.spacePad(c)},spacePad:function(c,e){e=2==arguments.length?e:c.minWidth;"string"!=typeof c.arg&&(c.arg=""+c.arg);for(var d=e-10;c.arg.length<d;)c.arg=c.rightJustify?c.arg+this._spaces10:this._spaces10+c.arg;d=e-c.arg.length;c.arg=c.rightJustify?c.arg+this._spaces10.substring(0,d):this._spaces10.substring(0,d)+c.arg}});return e.sprintf})},"dojox/dtl/filter/htmlstrings":function(){define(["dojo/_base/lang","../_base"],function(f,m){var l=f.getObject("filter.htmlstrings",
!0,m);f.mixin(l,{_linebreaksrn:/(\r\n|\n\r)/g,_linebreaksn:/\n{2,}/g,_linebreakss:/(^\s+|\s+$)/g,_linebreaksbr:/\n/g,_removetagsfind:/[a-z0-9]+/g,_striptags:/<[^>]*?>/g,linebreaks:function(f){var e=[];f=f.replace(l._linebreaksrn,"\n");f=f.split(l._linebreaksn);for(var c=0;c<f.length;c++){var g=f[c].replace(l._linebreakss,"").replace(l._linebreaksbr,"\x3cbr /\x3e");e.push("\x3cp\x3e"+g+"\x3c/p\x3e")}return e.join("\n\n")},linebreaksbr:function(f){return f.replace(l._linebreaksrn,"\n").replace(l._linebreaksbr,
"\x3cbr /\x3e")},removetags:function(f,e){for(var c=[],g;g=l._removetagsfind.exec(e);)c.push(g[0]);c="("+c.join("|")+")";return f.replace(RegExp("\x3c/?s*"+c+"s*[^\x3e]*\x3e","gi"),"")},striptags:function(f){return f.replace(dojox.dtl.filter.htmlstrings._striptags,"")}});return l})},"dijit/dijit":function(){define("./main ./_base dojo/parser ./_Widget ./_TemplatedMixin ./_Container ./layout/_LayoutWidget ./form/_FormWidget ./form/_FormValueWidget".split(" "),function(f){return f})},"url:dijit/form/templates/TextBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft" id\x3d"widget_${id}" role\x3d"presentation"\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputInner" data-dojo-attach-point\x3d\'textbox,focusNode\' autocomplete\x3d"off"\n\t\t\t${!nameAttrSetting} type\x3d\'${type}\'\n\t/\x3e\x3c/div\n\x3e\x3c/div\x3e\n',
"url:dijit/templates/Tooltip.html":'\x3cdiv class\x3d"dijitTooltip dijitTooltipLeft" id\x3d"dojoTooltip" data-dojo-attach-event\x3d"mouseenter:onMouseEnter,mouseleave:onMouseLeave"\n\t\x3e\x3cdiv class\x3d"dijitTooltipConnector" data-dojo-attach-point\x3d"connectorNode"\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d"dijitTooltipContainer dijitTooltipContents" data-dojo-attach-point\x3d"containerNode" role\x3d\'alert\'\x3e\x3c/div\n\x3e\x3c/div\x3e\n',"url:dijit/form/templates/ValidationTextBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft"\n\tid\x3d"widget_${id}" role\x3d"presentation"\n\t\x3e\x3cdiv class\x3d\'dijitReset dijitValidationContainer\'\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value\x3d"\x26#935; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t/\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputInner" data-dojo-attach-point\x3d\'textbox,focusNode\' autocomplete\x3d"off"\n\t\t\t${!nameAttrSetting} type\x3d\'${type}\'\n\t/\x3e\x3c/div\n\x3e\x3c/div\x3e\n',
"url:dijit/form/templates/Spinner.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft"\n\tid\x3d"widget_${id}" role\x3d"presentation"\n\t\x3e\x3cdiv class\x3d"dijitReset dijitButtonNode dijitSpinnerButtonContainer"\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitSpinnerButtonInner" type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t\t/\x3e\x3cdiv class\x3d"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitUpArrowButton"\n\t\t\tdata-dojo-attach-point\x3d"upArrowNode"\n\t\t\t\x3e\x3cdiv class\x3d"dijitArrowButtonInner"\n\t\t\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField" value\x3d"\x26#9650; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/\x3e\x3c/div\n\t\t\x3e\x3c/div\n\t\t\x3e\x3cdiv class\x3d"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitDownArrowButton"\n\t\t\tdata-dojo-attach-point\x3d"downArrowNode"\n\t\t\t\x3e\x3cdiv class\x3d"dijitArrowButtonInner"\n\t\t\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField" value\x3d"\x26#9660; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/\x3e\x3c/div\n\t\t\x3e\x3c/div\n\t\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d\'dijitReset dijitValidationContainer\'\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value\x3d"\x26#935; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t/\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\n\t\t\x3e\x3cinput class\x3d\'dijitReset dijitInputInner\' data-dojo-attach-point\x3d"textbox,focusNode" type\x3d"${type}" data-dojo-attach-event\x3d"onkeydown:_onKeyDown"\n\t\t\trole\x3d"spinbutton" autocomplete\x3d"off" ${!nameAttrSetting}\n\t/\x3e\x3c/div\n\x3e\x3c/div\x3e\n',
"url:dijit/form/templates/Button.html":'\x3cspan class\x3d"dijit dijitReset dijitInline" role\x3d"presentation"\n\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonNode"\n\t\tdata-dojo-attach-event\x3d"ondijitclick:__onClick" role\x3d"presentation"\n\t\t\x3e\x3cspan class\x3d"dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point\x3d"titleNode,focusNode"\n\t\t\trole\x3d"button" aria-labelledby\x3d"${id}_label"\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitToggleButtonIconChar"\x3e\x26#x25CF;\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonText"\n\t\t\t\tid\x3d"${id}_label"\n\t\t\t\tdata-dojo-attach-point\x3d"containerNode"\n\t\t\t\x3e\x3c/span\n\t\t\x3e\x3c/span\n\t\x3e\x3c/span\n\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" class\x3d"dijitOffScreen"\n\t\tdata-dojo-attach-event\x3d"onclick:_onClick"\n\t\ttabIndex\x3d"-1" aria-hidden\x3d"true" data-dojo-attach-point\x3d"valueNode"\n/\x3e\x3c/span\x3e\n',
"url:dijit/form/templates/DropDownButton.html":'\x3cspan class\x3d"dijit dijitReset dijitInline"\n\t\x3e\x3cspan class\x3d\'dijitReset dijitInline dijitButtonNode\'\n\t\tdata-dojo-attach-event\x3d"ondijitclick:__onClick" data-dojo-attach-point\x3d"_buttonNode"\n\t\t\x3e\x3cspan class\x3d"dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point\x3d"focusNode,titleNode,_arrowWrapperNode,_popupStateNode"\n\t\t\trole\x3d"button" aria-haspopup\x3d"true" aria-labelledby\x3d"${id}_label"\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitIcon"\n\t\t\t\tdata-dojo-attach-point\x3d"iconNode"\n\t\t\t\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitButtonText"\n\t\t\t\tdata-dojo-attach-point\x3d"containerNode"\n\t\t\t\tid\x3d"${id}_label"\n\t\t\t\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitArrowButtonInner"\x3e\x3c/span\n\t\t\t\x3e\x3cspan class\x3d"dijitReset dijitInline dijitArrowButtonChar"\x3e\x26#9660;\x3c/span\n\t\t\x3e\x3c/span\n\t\x3e\x3c/span\n\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" class\x3d"dijitOffScreen" tabIndex\x3d"-1"\n\t\tdata-dojo-attach-event\x3d"onclick:_onClick" data-dojo-attach-point\x3d"valueNode" aria-hidden\x3d"true"\n/\x3e\x3c/span\x3e\n',
"url:dijit/form/templates/ComboButton.html":'\x3ctable class\x3d"dijit dijitReset dijitInline dijitLeft"\n\tcellspacing\x3d\'0\' cellpadding\x3d\'0\' role\x3d"presentation"\n\t\x3e\x3ctbody role\x3d"presentation"\x3e\x3ctr role\x3d"presentation"\n\t\t\x3e\x3ctd class\x3d"dijitReset dijitStretch dijitButtonNode" data-dojo-attach-point\x3d"buttonNode" data-dojo-attach-event\x3d"ondijitclick:__onClick,onkeydown:_onButtonKeyDown"\n\t\t\x3e\x3cdiv id\x3d"${id}_button" class\x3d"dijitReset dijitButtonContents"\n\t\t\tdata-dojo-attach-point\x3d"titleNode"\n\t\t\trole\x3d"button" aria-labelledby\x3d"${id}_label"\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitInline dijitIcon" data-dojo-attach-point\x3d"iconNode" role\x3d"presentation"\x3e\x3c/div\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitInline dijitButtonText" id\x3d"${id}_label" data-dojo-attach-point\x3d"containerNode" role\x3d"presentation"\x3e\x3c/div\n\t\t\x3e\x3c/div\n\t\t\x3e\x3c/td\n\t\t\x3e\x3ctd id\x3d"${id}_arrow" class\x3d\'dijitReset dijitRight dijitButtonNode dijitArrowButton\'\n\t\t\tdata-dojo-attach-point\x3d"_popupStateNode,focusNode,_buttonNode"\n\t\t\tdata-dojo-attach-event\x3d"onkeydown:_onArrowKeyDown"\n\t\t\ttitle\x3d"${optionsTitle}"\n\t\t\trole\x3d"button" aria-haspopup\x3d"true"\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitArrowButtonInner" role\x3d"presentation"\x3e\x3c/div\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitArrowButtonChar" role\x3d"presentation"\x3e\x26#9660;\x3c/div\n\t\t\x3e\x3c/td\n\t\t\x3e\x3ctd style\x3d"display:none !important;"\n\t\t\t\x3e\x3cinput ${!nameAttrSetting} type\x3d"${type}" value\x3d"${value}" data-dojo-attach-point\x3d"valueNode"\n\t\t\t\tclass\x3d"dijitOffScreen" aria-hidden\x3d"true" data-dojo-attach-event\x3d"onclick:_onClick"\n\t\t/\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/tbody\n\x3e\x3c/table\x3e\n',
"url:dijit/form/templates/DropDownBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline dijitLeft"\n\tid\x3d"widget_${id}"\n\trole\x3d"combobox"\n\taria-haspopup\x3d"true"\n\tdata-dojo-attach-point\x3d"_popupStateNode"\n\t\x3e\x3cdiv class\x3d\'dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer\'\n\t\tdata-dojo-attach-point\x3d"_buttonNode" role\x3d"presentation"\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitArrowButtonInner" value\x3d"\x26#9660; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"button presentation" aria-hidden\x3d"true"\n\t\t\t${_buttonInputDisabled}\n\t/\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d\'dijitReset dijitValidationContainer\'\n\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value\x3d"\x26#935; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t/\x3e\x3c/div\n\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitInputContainer"\n\t\t\x3e\x3cinput class\x3d\'dijitReset dijitInputInner\' ${!nameAttrSetting} type\x3d"${type}" autocomplete\x3d"off"\n\t\t\tdata-dojo-attach-point\x3d"textbox,focusNode" role\x3d"textbox"\n\t/\x3e\x3c/div\n\x3e\x3c/div\x3e\n',
"url:dijit/form/templates/CheckBox.html":'\x3cdiv class\x3d"dijit dijitReset dijitInline" role\x3d"presentation"\n\t\x3e\x3cinput\n\t \t${!nameAttrSetting} type\x3d"${type}" role\x3d"${type}" aria-checked\x3d"false" ${checkedAttrSetting}\n\t\tclass\x3d"dijitReset dijitCheckBoxInput"\n\t\tdata-dojo-attach-point\x3d"focusNode"\n\t \tdata-dojo-attach-event\x3d"ondijitclick:_onClick"\n/\x3e\x3c/div\x3e\n',"url:dijit/templates/Calendar.html":'\x3cdiv class\x3d"dijitCalendarContainer dijitInline" role\x3d"presentation" aria-labelledby\x3d"${id}_mddb ${id}_year"\x3e\n\t\x3cdiv class\x3d"dijitReset dijitCalendarMonthContainer" role\x3d"presentation"\x3e\n\t\t\x3cdiv class\x3d\'dijitReset dijitCalendarArrow dijitCalendarDecrementArrow\' data-dojo-attach-point\x3d"decrementMonth"\x3e\n\t\t\t\x3cimg src\x3d"${_blankGif}" alt\x3d"" class\x3d"dijitCalendarIncrementControl dijitCalendarDecrease" role\x3d"presentation"/\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"decreaseArrowNode" class\x3d"dijitA11ySideArrow"\x3e-\x3c/span\x3e\n\t\t\x3c/div\x3e\n\t\t\x3cdiv class\x3d\'dijitReset dijitCalendarArrow dijitCalendarIncrementArrow\' data-dojo-attach-point\x3d"incrementMonth"\x3e\n\t\t\t\x3cimg src\x3d"${_blankGif}" alt\x3d"" class\x3d"dijitCalendarIncrementControl dijitCalendarIncrease" role\x3d"presentation"/\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"increaseArrowNode" class\x3d"dijitA11ySideArrow"\x3e+\x3c/span\x3e\n\t\t\x3c/div\x3e\n\t\t\x3cdiv data-dojo-attach-point\x3d"monthNode" class\x3d"dijitInline"\x3e\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3ctable cellspacing\x3d"0" cellpadding\x3d"0" role\x3d"grid" data-dojo-attach-point\x3d"gridNode"\x3e\n\t\t\x3cthead\x3e\n\t\t\t\x3ctr role\x3d"row"\x3e\n\t\t\t\t${!dayCellsHtml}\n\t\t\t\x3c/tr\x3e\n\t\t\x3c/thead\x3e\n\t\t\x3ctbody data-dojo-attach-point\x3d"dateRowsNode" data-dojo-attach-event\x3d"ondijitclick: _onDayClick" class\x3d"dijitReset dijitCalendarBodyContainer"\x3e\n\t\t\t\t${!dateRowsHtml}\n\t\t\x3c/tbody\x3e\n\t\x3c/table\x3e\n\t\x3cdiv class\x3d"dijitReset dijitCalendarYearContainer" role\x3d"presentation"\x3e\n\t\t\x3cdiv class\x3d"dijitCalendarYearLabel"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"previousYearLabelNode" class\x3d"dijitInline dijitCalendarPreviousYear" role\x3d"button"\x3e\x3c/span\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"currentYearLabelNode" class\x3d"dijitInline dijitCalendarSelectedYear" role\x3d"button" id\x3d"${id}_year"\x3e\x3c/span\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"nextYearLabelNode" class\x3d"dijitInline dijitCalendarNextYear" role\x3d"button"\x3e\x3c/span\x3e\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/templates/TreeNode.html":'\x3cdiv class\x3d"dijitTreeNode" role\x3d"presentation"\n\t\x3e\x3cdiv data-dojo-attach-point\x3d"rowNode" class\x3d"dijitTreeRow" role\x3d"presentation"\n\t\t\x3e\x3cspan data-dojo-attach-point\x3d"expandoNode" class\x3d"dijitInline dijitTreeExpando" role\x3d"presentation"\x3e\x3c/span\n\t\t\x3e\x3cspan data-dojo-attach-point\x3d"expandoNodeText" class\x3d"dijitExpandoText" role\x3d"presentation"\x3e\x3c/span\n\t\t\x3e\x3cspan data-dojo-attach-point\x3d"contentNode"\n\t\t\tclass\x3d"dijitTreeContent" role\x3d"presentation"\x3e\n\t\t\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitIcon dijitTreeIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\n\t\t\t\x3e\x3cspan data-dojo-attach-point\x3d"labelNode,focusNode" class\x3d"dijitTreeLabel" role\x3d"treeitem"\n\t\t\t\t   tabindex\x3d"-1" aria-selected\x3d"false" id\x3d"${id}_label"\x3e\x3c/span\x3e\n\t\t\x3c/span\n\t\x3e\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitTreeNodeContainer" role\x3d"presentation"\n\t\t style\x3d"display: none;" aria-labelledby\x3d"${id}_label"\x3e\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/templates/Tree.html":'\x3cdiv role\x3d"tree"\x3e\n\t\x3cdiv class\x3d"dijitInline dijitTreeIndent" style\x3d"position: absolute; top: -9999px" data-dojo-attach-point\x3d"indentDetector"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitTreeExpando dijitTreeExpandoLoading" data-dojo-attach-point\x3d"rootLoadingIndicator"\x3e\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitTreeContainer" role\x3d"presentation"\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',"url:dijit/layout/templates/TabContainer.html":'\x3cdiv class\x3d"dijitTabContainer"\x3e\n\t\x3cdiv class\x3d"dijitTabListWrapper" data-dojo-attach-point\x3d"tablistNode"\x3e\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"tablistSpacer" class\x3d"dijitTabSpacer ${baseClass}-spacer"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitTabPaneWrapper ${baseClass}-container" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/templates/Menu.html":'\x3ctable class\x3d"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable" role\x3d"menu" tabIndex\x3d"${tabIndex}"\n\t   cellspacing\x3d"0"\x3e\n\t\x3ctbody class\x3d"dijitReset" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/tbody\x3e\n\x3c/table\x3e\n',"url:dijit/templates/MenuItem.html":'\x3ctr class\x3d"dijitReset" data-dojo-attach-point\x3d"focusNode" role\x3d"menuitem" tabIndex\x3d"-1"\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemIconCell" role\x3d"presentation"\x3e\n\t\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitIcon dijitMenuItemIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\x3e\n\t\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemLabel" colspan\x3d"2" data-dojo-attach-point\x3d"containerNode,textDirNode"\n\t\trole\x3d"presentation"\x3e\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemAccelKey" style\x3d"display: none" data-dojo-attach-point\x3d"accelKeyNode"\x3e\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuArrowCell" role\x3d"presentation"\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"arrowWrapper" style\x3d"visibility: hidden"\x3e\n\t\t\t\x3cspan class\x3d"dijitInline dijitIcon dijitMenuExpand"\x3e\x3c/span\x3e\n\t\t\t\x3cspan class\x3d"dijitMenuExpandA11y"\x3e+\x3c/span\x3e\n\t\t\x3c/span\x3e\n\t\x3c/td\x3e\n\x3c/tr\x3e\n',
"url:dijit/layout/templates/_TabButton.html":'\x3cdiv role\x3d"presentation" data-dojo-attach-point\x3d"titleNode,innerDiv,tabContent" class\x3d"dijitTabInner dijitTabContent"\x3e\n\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitIcon dijitTabButtonIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\x3e\n\t\x3cspan data-dojo-attach-point\x3d\'containerNode,focusNode\' class\x3d\'tabLabel\'\x3e\x3c/span\x3e\n\t\x3cspan class\x3d"dijitInline dijitTabCloseButton dijitTabCloseIcon" data-dojo-attach-point\x3d\'closeNode\'\n\t\t  role\x3d"presentation"\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d\'closeText\' class\x3d\'dijitTabCloseText\'\x3e[x]\x3c/span\n\t\t\t\t\x3e\x3c/span\x3e\n\x3c/div\x3e\n',
"url:dijit/layout/templates/ScrollingTabController.html":'\x3cdiv class\x3d"dijitTabListContainer-${tabPosition}" style\x3d"visibility:hidden"\x3e\n\t\x3cdiv data-dojo-type\x3d"dijit.layout._ScrollingTabControllerMenuButton"\n\t\t class\x3d"tabStripButton-${tabPosition}"\n\t\t id\x3d"${id}_menuBtn"\n\t\t data-dojo-props\x3d"containerId: \'${containerId}\', iconClass: \'dijitTabStripMenuIcon\',\n\t\t\t\t\tdropDownPosition: [\'below-alt\', \'above-alt\']"\n\t\t data-dojo-attach-point\x3d"_menuBtn" showLabel\x3d"false" title\x3d""\x3e\x26#9660;\x3c/div\x3e\n\t\x3cdiv data-dojo-type\x3d"dijit.layout._ScrollingTabControllerButton"\n\t\t class\x3d"tabStripButton-${tabPosition}"\n\t\t id\x3d"${id}_leftBtn"\n\t\t data-dojo-props\x3d"iconClass:\'dijitTabStripSlideLeftIcon\', showLabel:false, title:\'\'"\n\t\t data-dojo-attach-point\x3d"_leftBtn" data-dojo-attach-event\x3d"onClick: doSlideLeft"\x3e\x26#9664;\x3c/div\x3e\n\t\x3cdiv data-dojo-type\x3d"dijit.layout._ScrollingTabControllerButton"\n\t\t class\x3d"tabStripButton-${tabPosition}"\n\t\t id\x3d"${id}_rightBtn"\n\t\t data-dojo-props\x3d"iconClass:\'dijitTabStripSlideRightIcon\', showLabel:false, title:\'\'"\n\t\t data-dojo-attach-point\x3d"_rightBtn" data-dojo-attach-event\x3d"onClick: doSlideRight"\x3e\x26#9654;\x3c/div\x3e\n\t\x3cdiv class\x3d\'dijitTabListWrapper\' data-dojo-attach-point\x3d\'tablistWrapper\'\x3e\n\t\t\x3cdiv role\x3d\'tablist\' data-dojo-attach-event\x3d\'onkeydown:onkeydown\'\n\t\t\t data-dojo-attach-point\x3d\'containerNode\' class\x3d\'nowrapTabStrip\'\x3e\x3c/div\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e',
"url:dijit/layout/templates/_ScrollingTabControllerButton.html":'\x3cdiv data-dojo-attach-event\x3d"ondijitclick:_onClick" class\x3d"dijitTabInnerDiv dijitTabContent dijitButtonContents"  data-dojo-attach-point\x3d"focusNode" role\x3d"button"\x3e\n\t\x3cspan role\x3d"presentation" class\x3d"dijitInline dijitTabStripIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\x3e\n\t\x3cspan data-dojo-attach-point\x3d"containerNode,titleNode" class\x3d"dijitButtonText"\x3e\x3c/span\x3e\n\x3c/div\x3e',"url:dijit/layout/templates/AccordionButton.html":"\x3cdiv data-dojo-attach-event\x3d'ondijitclick:_onTitleClick' class\x3d'dijitAccordionTitle' role\x3d\"presentation\"\x3e\n\t\x3cdiv data-dojo-attach-point\x3d'titleNode,focusNode' data-dojo-attach-event\x3d'onkeydown:_onTitleKeyDown'\n\t\t\tclass\x3d'dijitAccordionTitleFocus' role\x3d\"tab\" aria-expanded\x3d\"false\"\n\t\t\x3e\x3cspan class\x3d'dijitInline dijitAccordionArrow' role\x3d\"presentation\"\x3e\x3c/span\n\t\t\x3e\x3cspan class\x3d'arrowTextUp' role\x3d\"presentation\"\x3e+\x3c/span\n\t\t\x3e\x3cspan class\x3d'arrowTextDown' role\x3d\"presentation\"\x3e-\x3c/span\n\t\t\x3e\x3cspan role\x3d\"presentation\" class\x3d\"dijitInline dijitIcon\" data-dojo-attach-point\x3d\"iconNode\"\x3e\x3c/span\x3e\n\t\t\x3cspan role\x3d\"presentation\" data-dojo-attach-point\x3d'titleTextNode, textDirNode' class\x3d'dijitAccordionText'\x3e\x3c/span\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n",
"url:dojox/widget/Dialog/Dialog.html":'\x3cdiv class\x3d"dojoxDialog" tabindex\x3d"-1" role\x3d"dialog" aria-labelledby\x3d"${id}_title"\x3e\n\t\x3cdiv dojoAttachPoint\x3d"titleBar" class\x3d"dojoxDialogTitleBar"\x3e\n\t\t\x3cspan dojoAttachPoint\x3d"titleNode" class\x3d"dojoxDialogTitle" id\x3d"${id}_title"\x3e${title}\x3c/span\x3e\n\t\x3c/div\x3e\n\t\x3cdiv dojoAttachPoint\x3d"dojoxDialogWrapper"\x3e\n\t\t\x3cdiv dojoAttachPoint\x3d"containerNode" class\x3d"dojoxDialogPaneContent"\x3e\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3cdiv dojoAttachPoint\x3d"closeButtonNode" class\x3d"dojoxDialogCloseIcon" dojoAttachEvent\x3d"onclick: onCancel"\x3e\n\t\t\t\x3cspan dojoAttachPoint\x3d"closeText" class\x3d"closeText"\x3ex\x3c/span\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/templates/Dialog.html":'\x3cdiv class\x3d"dijitDialog" role\x3d"dialog" aria-labelledby\x3d"${id}_title"\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"titleNode" class\x3d"dijitDialogTitle" id\x3d"${id}_title"\n\t\t\t\trole\x3d"heading" level\x3d"1"\x3e\x3c/span\x3e\n\t\t\x3cspan data-dojo-attach-point\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon" data-dojo-attach-event\x3d"ondijitclick: onCancel" title\x3d"${buttonCancel}" role\x3d"button" tabindex\x3d"-1"\x3e\n\t\t\t\x3cspan data-dojo-attach-point\x3d"closeText" class\x3d"closeText" title\x3d"${buttonCancel}"\x3ex\x3c/span\x3e\n\t\t\x3c/span\x3e\n\t\x3c/div\x3e\n\t\x3cdiv data-dojo-attach-point\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\x3c/div\x3e\n\t${!actionBarTemplate}\n\x3c/div\x3e\n\n',
"url:dijit/templates/CheckedMenuItem.html":'\x3ctr class\x3d"dijitReset" data-dojo-attach-point\x3d"focusNode" role\x3d"${role}" tabIndex\x3d"-1" aria-checked\x3d"${checked}"\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemIconCell" role\x3d"presentation"\x3e\n\t\t\x3cspan class\x3d"dijitInline dijitIcon dijitMenuItemIcon dijitCheckedMenuItemIcon" data-dojo-attach-point\x3d"iconNode"\x3e\x3c/span\x3e\n\t\t\x3cspan class\x3d"dijitMenuItemIconChar dijitCheckedMenuItemIconChar"\x3e${!checkedChar}\x3c/span\x3e\n\t\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemLabel" colspan\x3d"2" data-dojo-attach-point\x3d"containerNode,labelNode,textDirNode"\x3e\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuItemAccelKey" style\x3d"display: none" data-dojo-attach-point\x3d"accelKeyNode"\x3e\x3c/td\x3e\n\t\x3ctd class\x3d"dijitReset dijitMenuArrowCell" role\x3d"presentation"\x3e\x26#160;\x3c/td\x3e\n\x3c/tr\x3e\n',
"url:dijit/templates/MenuSeparator.html":'\x3ctr class\x3d"dijitMenuSeparator" role\x3d"separator"\x3e\n\t\x3ctd class\x3d"dijitMenuSeparatorIconCell"\x3e\n\t\t\x3cdiv class\x3d"dijitMenuSeparatorTop"\x3e\x3c/div\x3e\n\t\t\x3cdiv class\x3d"dijitMenuSeparatorBottom"\x3e\x3c/div\x3e\n\t\x3c/td\x3e\n\t\x3ctd colspan\x3d"3" class\x3d"dijitMenuSeparatorLabelCell"\x3e\n\t\t\x3cdiv class\x3d"dijitMenuSeparatorTop dijitMenuSeparatorLabel"\x3e\x3c/div\x3e\n\t\t\x3cdiv class\x3d"dijitMenuSeparatorBottom"\x3e\x3c/div\x3e\n\t\x3c/td\x3e\n\x3c/tr\x3e\n',
"url:dijit/templates/TooltipDialog.html":'\x3cdiv role\x3d"alertdialog" tabIndex\x3d"-1"\x3e\n\t\x3cdiv class\x3d"dijitTooltipContainer" role\x3d"presentation"\x3e\n\t\t\x3cdiv data-dojo-attach-point\x3d"contentsNode" class\x3d"dijitTooltipContents dijitTooltipFocusNode"\x3e\n\t\t\t\x3cdiv data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\n\t\t\t${!actionBarTemplate}\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3cdiv class\x3d"dijitTooltipConnector" role\x3d"presentation" data-dojo-attach-point\x3d"connectorNode"\x3e\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/templates/ProgressBar.html":'\x3cdiv class\x3d"dijitProgressBar dijitProgressBarEmpty" role\x3d"progressbar"\n\t\x3e\x3cdiv  data-dojo-attach-point\x3d"internalProgress" class\x3d"dijitProgressBarFull"\n\t\t\x3e\x3cdiv class\x3d"dijitProgressBarTile" role\x3d"presentation"\x3e\x3c/div\n\t\t\x3e\x3cspan style\x3d"visibility:hidden"\x3e\x26#160;\x3c/span\n\t\x3e\x3c/div\n\t\x3e\x3cdiv data-dojo-attach-point\x3d"labelNode" class\x3d"dijitProgressBarLabel" id\x3d"${id}_label"\x3e\x3c/div\n\t\x3e\x3cspan data-dojo-attach-point\x3d"indeterminateHighContrastImage"\n\t\t   class\x3d"dijitInline dijitProgressBarIndeterminateHighContrastImage"\x3e\x3c/span\n\x3e\x3c/div\x3e\n',
"url:dijit/templates/actionBar.html":"\x3cdiv class\x3d'dijitDialogPaneActionBar' data-dojo-attach-point\x3d\"actionBarNode\"\x3e\n\t\x3cbutton data-dojo-type\x3d'dijit/form/Button' type\x3d'submit' data-dojo-attach-point\x3d\"okButton\"\x3e\x3c/button\x3e\n\t\x3cbutton data-dojo-type\x3d'dijit/form/Button' type\x3d'button'\n\t\t\tdata-dojo-attach-point\x3d\"cancelButton\" data-dojo-attach-event\x3d'click:onCancel'\x3e\x3c/button\x3e\n\x3c/div\x3e\n","url:dijit/templates/ColorPalette.html":'\x3cdiv class\x3d"dijitInline dijitColorPalette" role\x3d"grid"\x3e\n\t\x3ctable data-dojo-attach-point\x3d"paletteTableNode" class\x3d"dijitPaletteTable" cellSpacing\x3d"0" cellPadding\x3d"0" role\x3d"presentation"\x3e\n\t\t\x3ctbody data-dojo-attach-point\x3d"gridNode"\x3e\x3c/tbody\x3e\n\t\x3c/table\x3e\n\x3c/div\x3e\n',
"url:dojox/widget/ColorPicker/ColorPicker.html":'\x3ctable class\x3d"dojoxColorPicker" dojoAttachEvent\x3d"onkeypress: _handleKey" cellpadding\x3d"0" cellspacing\x3d"0" role\x3d"presentation"\x3e\n\t\x3ctr\x3e\n\t\t\x3ctd valign\x3d"top" class\x3d"dojoxColorPickerRightPad"\x3e\n\t\t\t\x3cdiv class\x3d"dojoxColorPickerBox"\x3e\n\t\t\t\t\x3c!-- Forcing ABS in style attr due to dojo DND issue with not picking it up form the class. --\x3e\n\t\t\t\t\x3cimg title\x3d"${saturationPickerTitle}" alt\x3d"${saturationPickerTitle}" class\x3d"dojoxColorPickerPoint" src\x3d"${_pickerPointer}" tabIndex\x3d"0" dojoAttachPoint\x3d"cursorNode" style\x3d"position: absolute; top: 0px; left: 0px;"\x3e\n\t\t\t\t\x3cimg role\x3d"presentation" alt\x3d"" dojoAttachPoint\x3d"colorUnderlay" dojoAttachEvent\x3d"onclick: _setPoint, onmousedown: _stopDrag" class\x3d"dojoxColorPickerUnderlay" src\x3d"${_underlay}" ondragstart\x3d"return false"\x3e\n\t\t\t\x3c/div\x3e\n\t\t\x3c/td\x3e\n\t\t\x3ctd valign\x3d"top" class\x3d"dojoxColorPickerRightPad"\x3e\n\t\t\t\x3cdiv class\x3d"dojoxHuePicker"\x3e\n\t\t\t\t\x3c!-- Forcing ABS in style attr due to dojo DND issue with not picking it up form the class. --\x3e\n\t\t\t\t\x3cimg dojoAttachPoint\x3d"hueCursorNode" tabIndex\x3d"0" class\x3d"dojoxHuePickerPoint" title\x3d"${huePickerTitle}" alt\x3d"${huePickerTitle}" src\x3d"${_huePickerPointer}" style\x3d"position: absolute; top: 0px; left: 0px;"\x3e\n\t\t\t\t\x3cdiv class\x3d"dojoxHuePickerUnderlay" dojoAttachPoint\x3d"hueNode"\x3e\n\t\t\t\t    \x3cimg role\x3d"presentation" alt\x3d"" dojoAttachEvent\x3d"onclick: _setHuePoint, onmousedown: _stopDrag" src\x3d"${_hueUnderlay}"\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e\n\t\t\x3c/td\x3e\n\t\t\x3ctd valign\x3d"top"\x3e\n\t\t\t\x3ctable cellpadding\x3d"0" cellspacing\x3d"0" role\x3d"presentation"\x3e\n\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\x3ctd valign\x3d"top" class\x3d"dojoxColorPickerPreviewContainer"\x3e\n\t\t\t\t\t\t\x3ctable cellpadding\x3d"0" cellspacing\x3d"0" role\x3d"presentation"\x3e\n\t\t\t\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\t\t\t\x3ctd valign\x3d"top" class\x3d"dojoxColorPickerRightPad"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv dojoAttachPoint\x3d"previewNode" class\x3d"dojoxColorPickerPreview"\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\t\t\t\x3ctd valign\x3d"top"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv dojoAttachPoint\x3d"safePreviewNode" class\x3d"dojoxColorPickerWebSafePreview"\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\t\t\x3c/table\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\x3ctd valign\x3d"bottom"\x3e\n\t\t\t\t\t\t\x3ctable class\x3d"dojoxColorPickerOptional" cellpadding\x3d"0" cellspacing\x3d"0" role\x3d"presentation"\x3e\n\t\t\t\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"dijitInline dojoxColorPickerRgb" dojoAttachPoint\x3d"rgbNode"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctable cellpadding\x3d"1" cellspacing\x3d"1" role\x3d"presentation"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d"${_uId}_r"\x3e${redLabel}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput id\x3d"${_uId}_r" dojoAttachPoint\x3d"Rval" size\x3d"1" dojoAttachEvent\x3d"onchange: _colorInputChange"\x3e\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d"${_uId}_g"\x3e${greenLabel}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput id\x3d"${_uId}_g" dojoAttachPoint\x3d"Gval" size\x3d"1" dojoAttachEvent\x3d"onchange: _colorInputChange"\x3e\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d"${_uId}_b"\x3e${blueLabel}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput id\x3d"${_uId}_b" dojoAttachPoint\x3d"Bval" size\x3d"1" dojoAttachEvent\x3d"onchange: _colorInputChange"\x3e\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c/table\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"dijitInline dojoxColorPickerHsv" dojoAttachPoint\x3d"hsvNode"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctable cellpadding\x3d"1" cellspacing\x3d"1" role\x3d"presentation"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d"${_uId}_h"\x3e${hueLabel}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput id\x3d"${_uId}_h" dojoAttachPoint\x3d"Hval"size\x3d"1" dojoAttachEvent\x3d"onchange: _colorInputChange"\x3e ${degLabel}\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d"${_uId}_s"\x3e${saturationLabel}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput id\x3d"${_uId}_s" dojoAttachPoint\x3d"Sval" size\x3d"1" dojoAttachEvent\x3d"onchange: _colorInputChange"\x3e ${percentSign}\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d"${_uId}_v"\x3e${valueLabel}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput id\x3d"${_uId}_v" dojoAttachPoint\x3d"Vval" size\x3d"1" dojoAttachEvent\x3d"onchange: _colorInputChange"\x3e ${percentSign}\x3c/td\x3e\x3c/tr\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c/table\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t\t\t\t\x3ctd colspan\x3d"2"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"dojoxColorPickerHex" dojoAttachPoint\x3d"hexNode" aria-live\x3d"polite"\x3e\t\n\t\t\t\t\t\t\t\t\t\t\x3clabel for\x3d"${_uId}_hex"\x3e\x26nbsp;${hexLabel}\x26nbsp;\x3c/label\x3e\x3cinput id\x3d"${_uId}_hex" dojoAttachPoint\x3d"hexCode, focusNode, valueNode" size\x3d"6" class\x3d"dojoxColorPickerHexCode" dojoAttachEvent\x3d"onchange: _colorInputChange"\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\t\t\x3c/tr\x3e\n\t\t\t\t\t\t\x3c/table\x3e\n\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\x3c/table\x3e\n\t\t\x3c/td\x3e\n\t\x3c/tr\x3e\n\x3c/table\x3e\n\n',
"url:dojox/editor/plugins/resources/insertTable.html":'\x3cdiv class\x3d"dijitDialog" tabindex\x3d"-1" role\x3d"dialog" aria-labelledby\x3d"${id}_title"\x3e\n\t\x3cdiv dojoAttachPoint\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n\t\x3cspan dojoAttachPoint\x3d"titleNode" class\x3d"dijitDialogTitle" id\x3d"${id}_title"\x3e${insertTableTitle}\x3c/span\x3e\n\t\x3cspan dojoAttachPoint\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon" dojoAttachEvent\x3d"onclick: onCancel" title\x3d"${buttonCancel}"\x3e\n\t\t\x3cspan dojoAttachPoint\x3d"closeText" class\x3d"closeText" title\x3d"${buttonCancel}"\x3ex\x3c/span\x3e\n\t\x3c/span\x3e\n\t\x3c/div\x3e\n    \x3cdiv dojoAttachPoint\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\n        \x3ctable class\x3d"etdTable"\x3e\x3ctr\x3e\n            \x3ctd\x3e\n                \x3clabel\x3e${rows}\x3c/label\x3e\n\t\t\t\x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectRow" dojoType\x3d"dijit.form.TextBox" value\x3d"2"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd\x3e\x3ctable\x3e\x3ctr\x3e\x3ctd class\x3d"inner"\x3e\n                \x3clabel\x3e${columns}\x3c/label\x3e\n\t\t\t\x3c/td\x3e\x3ctd class\x3d"inner"\x3e\n                \x3cspan dojoAttachPoint\x3d"selectCol" dojoType\x3d"dijit.form.TextBox" value\x3d"2"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/td\x3e\x3c/tr\x3e\t\t\n\t\t\t\x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${tableWidth}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectWidth" dojoType\x3d"dijit.form.TextBox" value\x3d"100"\x3e\x3c/span\x3e\n\t\t\t\x3c/td\x3e\x3ctd\x3e\n                \x3cselect dojoAttachPoint\x3d"selectWidthType" hasDownArrow\x3d"true" dojoType\x3d"dijit.form.FilteringSelect"\x3e\n                  \x3coption value\x3d"percent"\x3e${percent}\x3c/option\x3e\n                  \x3coption value\x3d"pixels"\x3e${pixels}\x3c/option\x3e\n                \x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\t\n            \x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${borderThickness}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectBorder" dojoType\x3d"dijit.form.TextBox" value\x3d"1"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                ${pixels}\n            \x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${cellPadding}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectPad" dojoType\x3d"dijit.form.TextBox" value\x3d"0"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd class\x3d"cellpad"\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${cellSpacing}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectSpace" dojoType\x3d"dijit.form.TextBox" value\x3d"0"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd class\x3d"cellspace"\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\n        \x3cdiv class\x3d"dialogButtonContainer"\x3e\n            \x3cdiv dojoType\x3d"dijit.form.Button" dojoAttachEvent\x3d"onClick: onInsert"\x3e${buttonInsert}\x3c/div\x3e\n            \x3cdiv dojoType\x3d"dijit.form.Button" dojoAttachEvent\x3d"onClick: onCancel"\x3e${buttonCancel}\x3c/div\x3e\n        \x3c/div\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dojox/editor/plugins/resources/modifyTable.html":'\x3cdiv class\x3d"dijitDialog" tabindex\x3d"-1" role\x3d"dialog" aria-labelledby\x3d"${id}_title"\x3e\n\t\x3cdiv dojoAttachPoint\x3d"titleBar" class\x3d"dijitDialogTitleBar"\x3e\n\t\x3cspan dojoAttachPoint\x3d"titleNode" class\x3d"dijitDialogTitle" id\x3d"${id}_title"\x3e${modifyTableTitle}\x3c/span\x3e\n\t\x3cspan dojoAttachPoint\x3d"closeButtonNode" class\x3d"dijitDialogCloseIcon" dojoAttachEvent\x3d"onclick: onCancel" title\x3d"${buttonCancel}"\x3e\n\t\t\x3cspan dojoAttachPoint\x3d"closeText" class\x3d"closeText" title\x3d"${buttonCancel}"\x3ex\x3c/span\x3e\n\t\x3c/span\x3e\n\t\x3c/div\x3e\n    \x3cdiv dojoAttachPoint\x3d"containerNode" class\x3d"dijitDialogPaneContent"\x3e\n        \x3ctable class\x3d"etdTable"\x3e\n          \x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${backgroundColor}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd colspan\x3d"2"\x3e\n                \x3cspan class\x3d"colorSwatchBtn" dojoAttachPoint\x3d"backgroundCol"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${borderColor}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd colspan\x3d"2"\x3e\n                \x3cspan class\x3d"colorSwatchBtn" dojoAttachPoint\x3d"borderCol"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${align}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd colspan\x3d"2"\x3e\t\n                \x3cselect dojoAttachPoint\x3d"selectAlign" dojoType\x3d"dijit.form.FilteringSelect"\x3e\n                  \x3coption value\x3d"default"\x3e${default}\x3c/option\x3e\n                  \x3coption value\x3d"left"\x3e${left}\x3c/option\x3e\n                  \x3coption value\x3d"center"\x3e${center}\x3c/option\x3e\n                  \x3coption value\x3d"right"\x3e${right}\x3c/option\x3e\n                \x3c/select\x3e\n            \x3c/td\x3e\x3c/tr\x3e\n            \x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${tableWidth}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectWidth" dojoType\x3d"dijit.form.TextBox" value\x3d"100"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cselect dojoAttachPoint\x3d"selectWidthType" hasDownArrow\x3d"true" dojoType\x3d"dijit.form.FilteringSelect"\x3e\n                  \x3coption value\x3d"percent"\x3e${percent}\x3c/option\x3e\n                  \x3coption value\x3d"pixels"\x3e${pixels}\x3c/option\x3e\n                \x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\t\n            \x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${borderThickness}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectBorder" dojoType\x3d"dijit.form.TextBox" value\x3d"1"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                ${pixels}\n            \x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${cellPadding}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectPad" dojoType\x3d"dijit.form.TextBox" value\x3d"0"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd class\x3d"cellpad"\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\n                \x3clabel\x3e${cellSpacing}\x3c/label\x3e\n            \x3c/td\x3e\x3ctd\x3e\n                \x3cspan dojoAttachPoint\x3d"selectSpace" dojoType\x3d"dijit.form.TextBox" value\x3d"0"\x3e\x3c/span\x3e\n            \x3c/td\x3e\x3ctd class\x3d"cellspace"\x3e\x3c/td\x3e\x3c/tr\x3e\n        \x3c/table\x3e\n        \x3cdiv class\x3d"dialogButtonContainer"\x3e\n            \x3cdiv dojoType\x3d"dijit.form.Button" dojoAttachEvent\x3d"onClick: onSet"\x3e${buttonSet}\x3c/div\x3e\n            \x3cdiv dojoType\x3d"dijit.form.Button" dojoAttachEvent\x3d"onClick: onCancel"\x3e${buttonCancel}\x3c/div\x3e\n        \x3c/div\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dijit/form/templates/Select.html":'\x3ctable class\x3d"dijit dijitReset dijitInline dijitLeft"\n\tdata-dojo-attach-point\x3d"_buttonNode,tableNode,focusNode,_popupStateNode" cellspacing\x3d\'0\' cellpadding\x3d\'0\'\n\trole\x3d"listbox" aria-haspopup\x3d"true"\n\t\x3e\x3ctbody role\x3d"presentation"\x3e\x3ctr role\x3d"presentation"\n\t\t\x3e\x3ctd class\x3d"dijitReset dijitStretch dijitButtonContents" role\x3d"presentation"\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitInputField dijitButtonText"  data-dojo-attach-point\x3d"containerNode,textDirNode" role\x3d"presentation"\x3e\x3c/div\n\t\t\t\x3e\x3cdiv class\x3d"dijitReset dijitValidationContainer"\n\t\t\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value\x3d"\x26#935; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t\t\t/\x3e\x3c/div\n\t\t\t\x3e\x3cinput type\x3d"hidden" ${!nameAttrSetting} data-dojo-attach-point\x3d"valueNode" value\x3d"${value}" aria-hidden\x3d"true"\n\t\t/\x3e\x3c/td\n\t\t\x3e\x3ctd class\x3d"dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer"\n\t\t\tdata-dojo-attach-point\x3d"titleNode" role\x3d"presentation"\n\t\t\t\x3e\x3cinput class\x3d"dijitReset dijitInputField dijitArrowButtonInner" value\x3d"\x26#9660; " type\x3d"text" tabIndex\x3d"-1" readonly\x3d"readonly" role\x3d"presentation"\n\t\t\t\t${_buttonInputDisabled}\n\t\t/\x3e\x3c/td\n\t\x3e\x3c/tr\x3e\x3c/tbody\n\x3e\x3c/table\x3e\n',
"url:dojox/grid/resources/View.html":'\x3cdiv class\x3d"dojoxGridView" role\x3d"presentation"\x3e\n\t\x3cdiv class\x3d"dojoxGridHeader" dojoAttachPoint\x3d"headerNode" role\x3d"presentation"\x3e\n\t\t\x3cdiv dojoAttachPoint\x3d"headerNodeContainer" style\x3d"width:9000em" role\x3d"presentation"\x3e\n\t\t\t\x3cdiv dojoAttachPoint\x3d"headerContentNode" role\x3d"row"\x3e\x3c/div\x3e\n\t\t\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3cinput type\x3d"checkbox" class\x3d"dojoxGridHiddenFocus" dojoAttachPoint\x3d"hiddenFocusNode" aria-hidden\x3d"true" /\x3e\n\t\x3cinput type\x3d"checkbox" class\x3d"dojoxGridHiddenFocus" aria-hidden\x3d"true" /\x3e\n\t\x3cdiv class\x3d"dojoxGridScrollbox" dojoAttachPoint\x3d"scrollboxNode" role\x3d"presentation"\x3e\n\t\t\x3cdiv class\x3d"dojoxGridContent" dojoAttachPoint\x3d"contentNode" hidefocus\x3d"hidefocus" role\x3d"presentation"\x3e\x3c/div\x3e\n\t\x3c/div\x3e\n\x3c/div\x3e\n',
"url:dojox/grid/resources/_Grid.html":'\x3cdiv hidefocus\x3d"hidefocus" role\x3d"grid" dojoAttachEvent\x3d"onmouseout:_mouseOut"\x3e\n\t\x3cdiv class\x3d"dojoxGridMasterHeader" dojoAttachPoint\x3d"viewsHeaderNode" role\x3d"presentation"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"dojoxGridMasterView" dojoAttachPoint\x3d"viewsNode" role\x3d"presentation"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"dojoxGridMasterMessages" style\x3d"display: none;" dojoAttachPoint\x3d"messagesNode"\x3e\x3c/div\x3e\n\t\x3cspan dojoAttachPoint\x3d"lastFocusNode" tabindex\x3d"0"\x3e\x3c/span\x3e\n\x3c/div\x3e\n',
"*now":function(f){f(['dojo/i18n!*preload*dojo/nls/dojo*["ar","ca","cs","da","de","el","en-gb","en-us","es-es","fi-fi","fr-fr","he-il","hu","it-it","ja-jp","ko-kr","nl-nl","nb","pl","pt-br","pt-pt","ru","sk","sl","sv","th","tr","zh-tw","zh-cn","ROOT"]'])}}});(function(){var f=this.require;f({cache:{}});!f.async&&f(["dojo"]);f.boot&&f.apply(null,f.boot)})();
//# sourceMappingURL=dojo.js.map