/* Copyright (c) 2004-2016, The JS Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built require({cache:{"dojo/_base/url":function(){define(["./kernel"],function(_1){var _2=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),_3=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),_4=function(){var n=null,_5=arguments,_6=[_5[0]];for(var i=1;i<_5.length;i++){if(!_5[i]){continue;}var _7=new _4(_5[i]+""),_8=new _4(_6[0]+"");if(_7.path==""&&!_7.scheme&&!_7.authority&&!_7.query){if(_7.fragment!=n){_8.fragment=_7.fragment;}_7=_8;}else{if(!_7.scheme){_7.scheme=_8.scheme;if(!_7.authority){_7.authority=_8.authority;if(_7.path.charAt(0)!="/"){var _9=_8.path.substring(0,_8.path.lastIndexOf("/")+1)+_7.path;var _a=_9.split("/");for(var j=0;j<_a.length;j++){if(_a[j]=="."){if(j==_a.length-1){_a[j]="";}else{_a.splice(j,1);j--;}}else{if(j>0&&!(j==1&&_a[0]=="")&&_a[j]==".."&&_a[j-1]!=".."){if(j==(_a.length-1)){_a.splice(j,1);_a[j-1]="";}else{_a.splice(j-1,2);j-=2;}}}}_7.path=_a.join("/");}}}}_6=[];if(_7.scheme){_6.push(_7.scheme,":");}if(_7.authority){_6.push("//",_7.authority);}_6.push(_7.path);if(_7.query){_6.push("?",_7.query);}if(_7.fragment){_6.push("#",_7.fragment);}}this.uri=_6.join("");var r=this.uri.match(_2);this.scheme=r[2]||(r[1]?"":n);this.authority=r[4]||(r[3]?"":n);this.path=r[5];this.query=r[7]||(r[6]?"":n);this.fragment=r[9]||(r[8]?"":n);if(this.authority!=n){r=this.authority.match(_3);this.user=r[3]||n;this.password=r[4]||n;this.host=r[6]||r[7];this.port=r[9]||n;}};_4.prototype.toString=function(){return this.uri;};return _1._Url=_4;});},"dojo/cache":function(){define(["./_base/kernel","./text"],function(_b){return _b.cache;});},"dojo/text":function(){define(["./_base/kernel","require","./has","./request"],function(_c,_d,_e,_f){var _10;if(1){_10=function(url,_11,_12){_f(url,{sync:!!_11,headers:{"X-Requested-With":null}}).then(_12);};}else{if(_d.getText){_10=_d.getText;}else{console.error("dojo/text plugin failed to load because loader does not support getText");}}var _13={},_14=function(_15){if(_15){_15=_15.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _16=_15.match(/]*>\s*([\s\S]+)\s*<\/body>/im);if(_16){_15=_16[1];}}else{_15="";}return _15;},_17={},_18={};_c.cache=function(_19,url,_1a){var key;if(typeof _19=="string"){if(/\//.test(_19)){key=_19;_1a=url;}else{key=_d.toUrl(_19.replace(/\./g,"/")+(url?("/"+url):""));}}else{key=_19+"";_1a=url;}var val=(_1a!=undefined&&typeof _1a!="string")?_1a.value:_1a,_1b=_1a&&_1a.sanitize;if(typeof val=="string"){_13[key]=val;return _1b?_14(val):val;}else{if(val===null){delete _13[key];return null;}else{if(!(key in _13)){_10(key,true,function(_1c){_13[key]=_1c;});}return _1b?_14(_13[key]):_13[key];}}};return {dynamic:true,normalize:function(id,_1d){var _1e=id.split("!"),url=_1e[0];return (/^\./.test(url)?_1d(url):url)+(_1e[1]?"!"+_1e[1]:"");},load:function(id,_1f,_20){var _21=id.split("!"),_22=_21.length>1,_23=_21[0],url=_1f.toUrl(_21[0]),_24="url:"+url,_25=_17,_26=function(_27){_20(_22?_14(_27):_27);};if(_23 in _13){_25=_13[_23];}else{if(_1f.cache&&_24 in _1f.cache){_25=_1f.cache[_24];}else{if(url in _13){_25=_13[url];}}}if(_25===_17){if(_18[url]){_18[url].push(_26);}else{var _28=_18[url]=[_26];_10(url,!_1f.async,function(_29){_13[_23]=_13[url]=_29;for(var i=0;i<_28.length;){_28[i++](_29);}delete _18[url];});}}else{_26(_25);}}};});},"dojo/request":function(){define(["./request/default!"],function(_2a){return _2a;});},"dojo/request/default":function(){define(["exports","require","../has"],function(_2b,_2c,has){var _2d=has("config-requestProvider"),_2e;if(1||has("host-webworker")){_2e="./xhr";}else{if(0){_2e="./node";}}if(!_2d){_2d=_2e;}_2b.getPlatformDefaultId=function(){return _2e;};_2b.load=function(id,_2f,_30,_31){_2c([id=="platform"?_2e:_2d],function(_32){_30(_32);});};});},"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"],function(_33,_34,_35,_36,_37,dom,_38,_39,_3a,all,_3b,_3c,has,_3d,don,_3e){new Date("X");function _3f(_40){return eval("("+_40+")");};var _41=0;_3a.after(_35,"extend",function(){_41++;},true);function _42(_43){var map=_43._nameCaseMap,_44=_43.prototype;if(!map||map._extendCnt<_41){map=_43._nameCaseMap={};for(var _45 in _44){if(_45.charAt(0)==="_"){continue;}map[_45.toLowerCase()]=_45;}map._extendCnt=_41;}return map;};function _46(_47,_48){if(!_48){_48=_33;}var _49=_48._dojoParserCtorMap||(_48._dojoParserCtorMap={});var ts=_47.join();if(!_49[ts]){var _4a=[];for(var i=0,l=_47.length;i.*$/,"");_72=_36.map(_74.split(/\s+/),function(_75){var _76=_75.toLowerCase();return {name:_75,value:(_6b.nodeName=="LI"&&_75=="value")||_76=="enctype"?_6b.getAttribute(_76):_6b.getAttributeNode(_76).value};});}}var _77=_6d.scope||_34._scopeName,_78="data-"+_77+"-",_79={};if(_77!=="dojo"){_79[_78+"props"]="data-dojo-props";_79[_78+"type"]="data-dojo-type";_79[_78+"mixins"]="data-dojo-mixins";_79[_77+"type"]="dojotype";_79[_78+"id"]="data-dojo-id";}var i=0,_7a,_7b=[],_7c,_7d;while(_7a=_72[i++]){var _7e=_7a.name,_7f=_7e.toLowerCase(),_80=_7a.value;switch(_79[_7f]||_7f){case "data-dojo-type":case "dojotype":case "data-dojo-mixins":break;case "data-dojo-props":_7d=_80;break;case "data-dojo-id":case "jsid":_7c=_80;break;case "data-dojo-attach-point":case "dojoattachpoint":_71.dojoAttachPoint=_80;break;case "data-dojo-attach-event":case "dojoattachevent":_71.dojoAttachEvent=_80;break;case "class":_71["class"]=_6b.className;break;case "style":_71["style"]=_6b.style&&_6b.style.cssText;break;default:if(!(_7e in _70)){var map=_42(_6a);_7e=map[_7f]||_7e;}if(_7e in _70){switch(typeof _70[_7e]){case "string":_71[_7e]=_80;break;case "number":_71[_7e]=_80.length?Number(_80):NaN;break;case "boolean":_71[_7e]=_80.toLowerCase()!="false";break;case "function":if(_80===""||_80.search(/[^\w\.]+/i)!=-1){_71[_7e]=new Function(_80);}else{_71[_7e]=_35.getObject(_80,false)||new Function(_80);}_7b.push(_7e);break;default:var _81=_70[_7e];_71[_7e]=(_81&&"length" in _81)?(_80?_80.split(/\s*,\s*/):[]):(_81 instanceof Date)?(_80==""?new Date(""):_80=="now"?new Date():_3b.fromISOString(_80)):(_81 instanceof _39)?(_34.baseUrl+_80):_3f(_80);}}else{_71[_7e]=_80;}}}for(var j=0;j<_7b.length;j++){var _82=_7b[j].toLowerCase();_6b.removeAttribute(_82);_6b[_82]=null;}if(_7d){try{_7d=_3f.call(_6d.propsThis,"{"+_7d+"}");_35.mixin(_71,_7d);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_7d+"'");}}_35.mixin(_71,_6c);if(!_6e){_6e=(_6a&&(_6a._noScript||_70._noScript)?[]:_3d("> script[type^='dojo/']",_6b));}var _83=[],_84=[],_85=[],ons=[];if(_6e){for(i=0;i<_6e.length;i++){var _86=_6e[i];_6b.removeChild(_86);var _87=(_86.getAttribute(_78+"event")||_86.getAttribute("event")),_88=_86.getAttribute(_78+"prop"),_89=_86.getAttribute(_78+"method"),_8a=_86.getAttribute(_78+"advice"),_8b=_86.getAttribute("type"),nf=this._functionFromScript(_86,_78);if(_87){if(_8b=="dojo/connect"){_83.push({method:_87,func:nf});}else{if(_8b=="dojo/on"){ons.push({event:_87,func:nf});}else{_71[_87]=nf;}}}else{if(_8b=="dojo/aspect"){_83.push({method:_89,advice:_8a,func:nf});}else{if(_8b=="dojo/watch"){_85.push({prop:_88,func:nf});}else{_84.push(nf);}}}}}var _8c=_6a.markupFactory||_70.markupFactory;var _8d=_8c?_8c(_71,_6b,_6a):new _6a(_71,_6b);function _8e(_8f){if(_7c){_35.setObject(_7c,_8f);}for(i=0;i<_83.length;i++){_3a[_83[i].advice||"after"](_8f,_83[i].method,_35.hitch(_8f,_83[i].func),true);}for(i=0;i<_84.length;i++){_84[i].call(_8f);}for(i=0;i<_85.length;i++){_8f.watch(_85[i].prop,_85[i].func);}for(i=0;i0?"-":"+")+_e1(Math.floor(_e9/60))+":"+_e1(_e9%60);}}_e2.push(_e6);}return _e2.join("T");};return _d5;});},"dojo/data/ItemFileWriteStore":function(){define(["../_base/lang","../_base/declare","../_base/array","../_base/json","../_base/kernel","./ItemFileReadStore","../date/stamp"],function(_ea,_eb,_ec,_ed,_ee,_ef,_f0){return _eb("dojo.data.ItemFileWriteStore",_ef,{constructor:function(_f1){this._features["dojo.data.api.Write"]=true;this._features["dojo.data.api.Notification"]=true;this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};if(!this._datatypeMap["Date"].serialize){this._datatypeMap["Date"].serialize=function(obj){return _f0.toISOString(obj,{zulu:true});};}if(_f1&&(_f1.referenceIntegrity===false)){this.referenceIntegrity=false;}this._saveInProgress=false;},referenceIntegrity:true,_assert:function(_f2){if(!_f2){throw new Error("assertion failed in ItemFileWriteStore");}},_getIdentifierAttribute:function(){return this.getFeatures()["dojo.data.api.Identity"];},newItem:function(_f3,_f4){this._assert(!this._saveInProgress);if(!this._loadFinished){this._forceLoad();}if(typeof _f3!="object"&&typeof _f3!="undefined"){throw new Error("newItem() was passed something other than an object");}var _f5=null;var _f6=this._getIdentifierAttribute();if(_f6===Number){_f5=this._arrayOfAllItems.length;}else{_f5=_f3[_f6];if(typeof _f5==="undefined"){throw new Error("newItem() was not passed an identity for the new item");}if(_ea.isArray(_f5)){throw new Error("newItem() was not passed an single-valued identity");}}if(this._itemsByIdentity){this._assert(typeof this._itemsByIdentity[_f5]==="undefined");}this._assert(typeof this._pending._newItems[_f5]==="undefined");this._assert(typeof this._pending._deletedItems[_f5]==="undefined");var _f7={};_f7[this._storeRefPropName]=this;_f7[this._itemNumPropName]=this._arrayOfAllItems.length;if(this._itemsByIdentity){this._itemsByIdentity[_f5]=_f7;_f7[_f6]=[_f5];}this._arrayOfAllItems.push(_f7);var _f8=null;if(_f4&&_f4.parent&&_f4.attribute){_f8={item:_f4.parent,attribute:_f4.attribute,oldValue:undefined};var _f9=this.getValues(_f4.parent,_f4.attribute);if(_f9&&_f9.length>0){var _fa=_f9.slice(0,_f9.length);if(_f9.length===1){_f8.oldValue=_f9[0];}else{_f8.oldValue=_f9.slice(0,_f9.length);}_fa.push(_f7);this._setValueOrValues(_f4.parent,_f4.attribute,_fa,false);_f8.newValue=this.getValues(_f4.parent,_f4.attribute);}else{this._setValueOrValues(_f4.parent,_f4.attribute,_f7,false);_f8.newValue=_f7;}}else{_f7[this._rootItemPropName]=true;this._arrayOfTopLevelItems.push(_f7);}this._pending._newItems[_f5]=_f7;for(var key in _f3){if(key===this._storeRefPropName||key===this._itemNumPropName){throw new Error("encountered bug in ItemFileWriteStore.newItem");}var _fb=_f3[key];if(!_ea.isArray(_fb)){_fb=[_fb];}_f7[key]=_fb;if(this.referenceIntegrity){for(var i=0;i<_fb.length;i++){var val=_fb[i];if(this.isItem(val)){this._addReferenceToMap(val,_f7,key);}}}}this.onNew(_f7,_f8);return _f7;},_removeArrayElement:function(_fc,_fd){var _fe=_ec.indexOf(_fc,_fd);if(_fe!=-1){_fc.splice(_fe,1);return true;}return false;},deleteItem:function(_ff){this._assert(!this._saveInProgress);this._assertIsItem(_ff);var _100=_ff[this._itemNumPropName];var _101=this.getIdentity(_ff);if(this.referenceIntegrity){var _102=this.getAttributes(_ff);if(_ff[this._reverseRefMap]){_ff["backup_"+this._reverseRefMap]=_ea.clone(_ff[this._reverseRefMap]);}_ec.forEach(_102,function(_103){_ec.forEach(this.getValues(_ff,_103),function(_104){if(this.isItem(_104)){if(!_ff["backupRefs_"+this._reverseRefMap]){_ff["backupRefs_"+this._reverseRefMap]=[];}_ff["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(_104),attr:_103});this._removeReferenceFromMap(_104,_ff,_103);}},this);},this);var _105=_ff[this._reverseRefMap];if(_105){for(var _106 in _105){var _107=null;if(this._itemsByIdentity){_107=this._itemsByIdentity[_106];}else{_107=this._arrayOfAllItems[_106];}if(_107){for(var _108 in _105[_106]){var _109=this.getValues(_107,_108)||[];var _10a=_ec.filter(_109,function(_10b){return !(this.isItem(_10b)&&this.getIdentity(_10b)==_101);},this);this._removeReferenceFromMap(_ff,_107,_108);if(_10a.length<_109.length){this._setValueOrValues(_107,_108,_10a,true);}}}}}}this._arrayOfAllItems[_100]=null;_ff[this._storeRefPropName]=null;if(this._itemsByIdentity){delete this._itemsByIdentity[_101];}this._pending._deletedItems[_101]=_ff;if(_ff[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_ff);}this.onDelete(_ff);return true;},setValue:function(item,_10c,_10d){return this._setValueOrValues(item,_10c,_10d,true);},setValues:function(item,_10e,_10f){return this._setValueOrValues(item,_10e,_10f,true);},unsetAttribute:function(item,_110){return this._setValueOrValues(item,_110,[],true);},_setValueOrValues:function(item,_111,_112,_113){this._assert(!this._saveInProgress);this._assertIsItem(item);this._assert(_ea.isString(_111));this._assert(typeof _112!=="undefined");var _114=this._getIdentifierAttribute();if(_111==_114){throw new Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");}var _115=this._getValueOrValues(item,_111);var _116=this.getIdentity(item);if(!this._pending._modifiedItems[_116]){var _117={};for(var key in item){if((key===this._storeRefPropName)||(key===this._itemNumPropName)||(key===this._rootItemPropName)){_117[key]=item[key];}else{if(key===this._reverseRefMap){_117[key]=_ea.clone(item[key]);}else{_117[key]=item[key].slice(0,item[key].length);}}}this._pending._modifiedItems[_116]=_117;}var _118=false;if(_ea.isArray(_112)&&_112.length===0){_118=delete item[_111];_112=undefined;if(this.referenceIntegrity&&_115){var _119=_115;if(!_ea.isArray(_119)){_119=[_119];}for(var i=0;i<_119.length;i++){var _11a=_119[i];if(this.isItem(_11a)){this._removeReferenceFromMap(_11a,item,_111);}}}}else{var _11b;if(_ea.isArray(_112)){_11b=_112.slice(0,_112.length);}else{_11b=[_112];}if(this.referenceIntegrity){if(_115){var _119=_115;if(!_ea.isArray(_119)){_119=[_119];}var map={};_ec.forEach(_119,function(_11c){if(this.isItem(_11c)){var id=this.getIdentity(_11c);map[id.toString()]=true;}},this);_ec.forEach(_11b,function(_11d){if(this.isItem(_11d)){var id=this.getIdentity(_11d);if(map[id.toString()]){delete map[id.toString()];}else{this._addReferenceToMap(_11d,item,_111);}}},this);for(var rId in map){var _11e;if(this._itemsByIdentity){_11e=this._itemsByIdentity[rId];}else{_11e=this._arrayOfAllItems[rId];}this._removeReferenceFromMap(_11e,item,_111);}}else{for(var i=0;i<_11b.length;i++){var _11a=_11b[i];if(this.isItem(_11a)){this._addReferenceToMap(_11a,item,_111);}}}}item[_111]=_11b;_118=true;}if(_113){this.onSet(item,_111,_115,_112);}return _118;},_addReferenceToMap:function(_11f,_120,_121){var _122=this.getIdentity(_120);var _123=_11f[this._reverseRefMap];if(!_123){_123=_11f[this._reverseRefMap]={};}var _124=_123[_122];if(!_124){_124=_123[_122]={};}_124[_121]=true;},_removeReferenceFromMap:function(_125,_126,_127){var _128=this.getIdentity(_126);var _129=_125[this._reverseRefMap];var _12a;if(_129){for(_12a in _129){if(_12a==_128){delete _129[_12a][_127];if(this._isEmpty(_129[_12a])){delete _129[_12a];}}}if(this._isEmpty(_129)){delete _125[this._reverseRefMap];}}},_dumpReferenceMap:function(){var i;for(i=0;i0){_137=false;}}}return _137;},save:function(_138){this._assert(!this._saveInProgress);this._saveInProgress=true;var self=this;var _139=function(){self._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};self._saveInProgress=false;if(_138&&_138.onComplete){var _13a=_138.scope||_ee.global;_138.onComplete.call(_13a);}};var _13b=function(err){self._saveInProgress=false;if(_138&&_138.onError){var _13c=_138.scope||_ee.global;_138.onError.call(_13c,err);}};if(this._saveEverything){var _13d=this._getNewFileContentString();this._saveEverything(_139,_13b,_13d);}if(this._saveCustom){this._saveCustom(_139,_13b);}if(!this._saveEverything&&!this._saveCustom){_139();}},revert:function(){this._assert(!this._saveInProgress);var _13e;for(_13e in this._pending._modifiedItems){var _13f=this._pending._modifiedItems[_13e];var _140=null;if(this._itemsByIdentity){_140=this._itemsByIdentity[_13e];}else{_140=this._arrayOfAllItems[_13e];}_13f[this._storeRefPropName]=this;for(var key in _140){delete _140[key];}_ea.mixin(_140,_13f);}var _141;for(_13e in this._pending._deletedItems){_141=this._pending._deletedItems[_13e];_141[this._storeRefPropName]=this;var _142=_141[this._itemNumPropName];if(_141["backup_"+this._reverseRefMap]){_141[this._reverseRefMap]=_141["backup_"+this._reverseRefMap];delete _141["backup_"+this._reverseRefMap];}this._arrayOfAllItems[_142]=_141;if(this._itemsByIdentity){this._itemsByIdentity[_13e]=_141;}if(_141[this._rootItemPropName]){this._arrayOfTopLevelItems.push(_141);}}for(_13e in this._pending._deletedItems){_141=this._pending._deletedItems[_13e];if(_141["backupRefs_"+this._reverseRefMap]){_ec.forEach(_141["backupRefs_"+this._reverseRefMap],function(_143){var _144;if(this._itemsByIdentity){_144=this._itemsByIdentity[_143.id];}else{_144=this._arrayOfAllItems[_143.id];}this._addReferenceToMap(_144,_141,_143.attr);},this);delete _141["backupRefs_"+this._reverseRefMap];}}for(_13e in this._pending._newItems){var _145=this._pending._newItems[_13e];_145[this._storeRefPropName]=null;this._arrayOfAllItems[_145[this._itemNumPropName]]=null;if(_145[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_145);}if(this._itemsByIdentity){delete this._itemsByIdentity[_13e];}}this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};return true;},isDirty:function(item){if(item){var _146=this.getIdentity(item);return new Boolean(this._pending._newItems[_146]||this._pending._modifiedItems[_146]||this._pending._deletedItems[_146]).valueOf();}else{return !this._isEmpty(this._pending._newItems)||!this._isEmpty(this._pending._modifiedItems)||!this._isEmpty(this._pending._deletedItems);}},onSet:function(item,_147,_148,_149){},onNew:function(_14a,_14b){},onDelete:function(_14c){},close:function(_14d){if(this.clearOnClose){if(!this.isDirty()){this.inherited(arguments);}else{throw new Error("dojo.data.ItemFileWriteStore: There are unsaved changes present in the store. Please save or revert the changes before invoking close.");}}}});});},"dojo/data/ItemFileReadStore":function(){define(["../_base/kernel","../_base/lang","../_base/declare","../_base/array","../_base/xhr","../Evented","./util/filter","./util/simpleFetch","../date/stamp"],function(_14e,lang,_14f,_150,xhr,_151,_152,_153,_154){var _155=_14f("dojo.data.ItemFileReadStore",[_151],{constructor:function(_156){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_156.url;this._ccUrl=_156.url;this.url=_156.url;this._jsonData=_156.data;this.data=null;this._datatypeMap=_156.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_157){return _154.fromISOString(_157);}};}this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=false;this._queuedFetches=[];if(_156.urlPreventCache!==undefined){this.urlPreventCache=_156.urlPreventCache?true:false;}if(_156.hierarchical!==undefined){this.hierarchical=_156.hierarchical?true:false;}if(_156.clearOnClose){this.clearOnClose=true;}if("failOk" in _156){this.failOk=_156.failOk?true:false;}},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(item){if(!this.isItem(item)){throw new Error(this.declaredClass+": Invalid item argument.");}},_assertIsAttribute:function(_158){if(typeof _158!=="string"){throw new Error(this.declaredClass+": Invalid attribute argument.");}},getValue:function(item,_159,_15a){var _15b=this.getValues(item,_159);return (_15b.length>0)?_15b[0]:_15a;},getValues:function(item,_15c){this._assertIsItem(item);this._assertIsAttribute(_15c);return (item[_15c]||[]).slice(0);},getAttributes:function(item){this._assertIsItem(item);var _15d=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_15d.push(key);}}return _15d;},hasAttribute:function(item,_15e){this._assertIsItem(item);this._assertIsAttribute(_15e);return (_15e in item);},containsValue:function(item,_15f,_160){var _161=undefined;if(typeof _160==="string"){_161=_152.patternToRegExp(_160,false);}return this._containsValue(item,_15f,_160,_161);},_containsValue:function(item,_162,_163,_164){return _150.some(this.getValues(item,_162),function(_165){if(_165!==null&&!lang.isObject(_165)&&_164){if(_165.toString().match(_164)){return true;}}else{if(_163===_165){return true;}}});},isItem:function(_166){if(_166&&_166[this._storeRefPropName]===this){if(this._arrayOfAllItems[_166[this._itemNumPropName]]===_166){return true;}}return false;},isItemLoaded:function(_167){return this.isItem(_167);},loadItem:function(_168){this._assertIsItem(_168.item);},getFeatures:function(){return this._features;},getLabel:function(item){if(this._labelAttr&&this.isItem(item)){return this.getValue(item,this._labelAttr);}return undefined;},getLabelAttributes:function(item){if(this._labelAttr){return [this._labelAttr];}return null;},filter:function(_169,_16a,_16b){var _16c=[],i,key;if(_169.query){var _16d,_16e=_169.queryOptions?_169.queryOptions.ignoreCase:false;var _16f={};for(key in _169.query){_16d=_169.query[key];if(typeof _16d==="string"){_16f[key]=_152.patternToRegExp(_16d,_16e);}else{if(_16d instanceof RegExp){_16f[key]=_16d;}}}for(i=0;i<_16a.length;++i){var _170=true;var _171=_16a[i];if(_171===null){_170=false;}else{for(key in _169.query){_16d=_169.query[key];if(!this._containsValue(_171,key,_16d,_16f[key])){_170=false;}}}if(_170){_16c.push(_171);}}_16b(_16c,_169);}else{for(i=0;i<_16a.length;++i){var item=_16a[i];if(item!==null){_16c.push(item);}}_16b(_16c,_169);}},_fetchItems:function(_172,_173,_174){var self=this;if(this._loadFinished){this.filter(_172,this._getItemsArray(_172.queryOptions),_173);}else{if(this._jsonFileUrl!==this._ccUrl){_14e.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._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_172,filter:lang.hitch(self,"filter"),findCallback:lang.hitch(self,_173)});}else{this._loadInProgress=true;var _175={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _176=xhr.get(_175);_176.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;self.filter(_172,self._getItemsArray(_172.queryOptions),_173);self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_174(e,_172);}});_176.addErrback(function(_177){self._loadInProgress=false;_174(_177,_172);});var _178=null;if(_172.abort){_178=_172.abort;}_172.abort=function(){var df=_176;if(df&&df.fired===-1){df.cancel();df=null;}if(_178){_178.call(_172);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;self.filter(_172,this._getItemsArray(_172.queryOptions),_173);}catch(e){_174(e,_172);}}else{_174(new Error(this.declaredClass+": No JSON source data was provided as either URL or a nested Javascript object."),_172);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;ib||a==null){r=1;}}return r;};_1b7.createSortFunction=function(_1b8,_1b9){var _1ba=[];function _1bb(attr,dir,comp,s){return function(_1bc,_1bd){var a=s.getValue(_1bc,attr);var b=s.getValue(_1bd,attr);return dir*comp(a,b);};};var _1be;var map=_1b9.comparatorMap;var bc=_1b7.basicComparator;for(var i=0;i<_1b8.length;i++){_1be=_1b8[i];var attr=_1be.attribute;if(attr){var dir=(_1be.descending)?-1:1;var comp=bc;if(map){if(typeof attr!=="string"&&("toString" in attr)){attr=attr.toString();}comp=map[attr]||bc;}_1ba.push(_1bb(attr,dir,comp,_1b9));}}return function(rowA,rowB){var i=0;while(i<_1ba.length){var ret=_1ba[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};return _1b7;});},"dojo/selector/acme":function(){define(["../dom","../sniff","../_base/array","../_base/lang","../_base/window"],function(dom,has,_1bf,lang,win){var trim=lang.trim;var each=_1bf.forEach;var _1c0=function(){return win.doc;};var _1c1=(_1c0().compatMode)=="BackCompat";var _1c2=">~+";var _1c3=false;var _1c4=function(){return true;};var _1c5=function(_1c6){if(_1c2.indexOf(_1c6.slice(-1))>=0){_1c6+=" * ";}else{_1c6+=" ";}var ts=function(s,e){return trim(_1c6.slice(s,e));};var _1c7=[];var _1c8=-1,_1c9=-1,_1ca=-1,_1cb=-1,_1cc=-1,inId=-1,_1cd=-1,_1ce,lc="",cc="",_1cf;var x=0,ql=_1c6.length,_1d0=null,_1d1=null;var _1d2=function(){if(_1cd>=0){var tv=(_1cd==x)?null:ts(_1cd,x);_1d0[(_1c2.indexOf(tv)<0)?"tag":"oper"]=tv;_1cd=-1;}};var _1d3=function(){if(inId>=0){_1d0.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _1d4=function(){if(_1cc>=0){_1d0.classes.push(ts(_1cc+1,x).replace(/\\/g,""));_1cc=-1;}};var _1d5=function(){_1d3();_1d2();_1d4();};var _1d6=function(){_1d5();if(_1cb>=0){_1d0.pseudos.push({name:ts(_1cb+1,x)});}_1d0.loops=(_1d0.pseudos.length||_1d0.attrs.length||_1d0.classes.length);_1d0.oquery=_1d0.query=ts(_1cf,x);_1d0.otag=_1d0.tag=(_1d0["oper"])?null:(_1d0.tag||"*");if(_1d0.tag){_1d0.tag=_1d0.tag.toUpperCase();}if(_1c7.length&&(_1c7[_1c7.length-1].oper)){_1d0.infixOper=_1c7.pop();_1d0.query=_1d0.infixOper.query+" "+_1d0.query;}_1c7.push(_1d0);_1d0=null;};for(;lc=cc,cc=_1c6.charAt(x),x=0){if(cc=="]"){if(!_1d1.attr){_1d1.attr=ts(_1c8+1,x);}else{_1d1.matchFor=ts((_1ca||_1c8+1),x);}var cmf=_1d1.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_1d1.matchFor=cmf.slice(1,-1);}}if(_1d1.matchFor){_1d1.matchFor=_1d1.matchFor.replace(/\\/g,"");}_1d0.attrs.push(_1d1);_1d1=null;_1c8=_1ca=-1;}else{if(cc=="="){var _1d7=("|~^$*".indexOf(lc)>=0)?lc:"";_1d1.type=_1d7+cc;_1d1.attr=ts(_1c8+1,x-_1d7.length);_1ca=x+1;}}}else{if(_1c9>=0){if(cc==")"){if(_1cb>=0){_1d1.value=ts(_1c9+1,x);}_1cb=_1c9=-1;}}else{if(cc=="#"){_1d5();inId=x+1;}else{if(cc=="."){_1d5();_1cc=x;}else{if(cc==":"){_1d5();_1cb=x;}else{if(cc=="["){_1d5();_1c8=x;_1d1={};}else{if(cc=="("){if(_1cb>=0){_1d1={name:ts(_1cb+1,x),value:null};_1d0.pseudos.push(_1d1);}_1c9=x;}else{if((cc==" ")&&(lc!=cc)){_1d6();}}}}}}}}}return _1c7;};var _1d8=function(_1d9,_1da){if(!_1d9){return _1da;}if(!_1da){return _1d9;}return function(){return _1d9.apply(window,arguments)&&_1da.apply(window,arguments);};};var _1db=function(i,arr){var r=arr||[];if(i){r.push(i);}return r;};var _1dc=function(n){return (1==n.nodeType);};var _1dd="";var _1de=function(elem,attr){if(!elem){return _1dd;}if(attr=="class"){return elem.className||_1dd;}if(attr=="for"){return elem.htmlFor||_1dd;}if(attr=="style"){return elem.style.cssText||_1dd;}return (_1c3?elem.getAttribute(attr):elem.getAttribute(attr,2))||_1dd;};var _1df={"*=":function(attr,_1e0){return function(elem){return (_1de(elem,attr).indexOf(_1e0)>=0);};},"^=":function(attr,_1e1){return function(elem){return (_1de(elem,attr).indexOf(_1e1)==0);};},"$=":function(attr,_1e2){return function(elem){var ea=" "+_1de(elem,attr);var _1e3=ea.lastIndexOf(_1e2);return _1e3>-1&&(_1e3==(ea.length-_1e2.length));};},"~=":function(attr,_1e4){var tval=" "+_1e4+" ";return function(elem){var ea=" "+_1de(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_1e5){var _1e6=_1e5+"-";return function(elem){var ea=_1de(elem,attr);return ((ea==_1e5)||(ea.indexOf(_1e6)==0));};},"=":function(attr,_1e7){return function(elem){return (_1de(elem,attr)==_1e7);};}};var _1e8=_1c0().documentElement;var _1e9=!(_1e8.nextElementSibling||"nextElementSibling" in _1e8);var _1ea=!_1e9?"nextElementSibling":"nextSibling";var _1eb=!_1e9?"previousElementSibling":"previousSibling";var _1ec=(_1e9?_1dc:_1c4);var _1ed=function(node){while(node=node[_1eb]){if(_1ec(node)){return false;}}return true;};var _1ee=function(node){while(node=node[_1ea]){if(_1ec(node)){return false;}}return true;};var _1ef=function(node){var root=node.parentNode;root=root.nodeType!=7?root:root.nextSibling;var i=0,tret=root.children||root.childNodes,ci=(node["_i"]||node.getAttribute("_i")||-1),cl=(root["_l"]||(typeof root.getAttribute!=="undefined"?root.getAttribute("_l"):-1));if(!tret){return -1;}var l=tret.length;if(cl==l&&ci>=0&&cl>=0){return ci;}if(has("ie")&&typeof root.setAttribute!=="undefined"){root.setAttribute("_l",l);}else{root["_l"]=l;}ci=-1;for(var te=root["firstElementChild"]||root["firstChild"];te;te=te[_1ea]){if(_1ec(te)){if(has("ie")){te.setAttribute("_i",++i);}else{te["_i"]=++i;}if(node===te){ci=i;}}}return ci;};var _1f0=function(elem){return !((_1ef(elem))%2);};var _1f1=function(elem){return ((_1ef(elem))%2);};var _1f2={"checked":function(name,_1f3){return function(elem){return !!("checked" in elem?elem.checked:elem.selected);};},"disabled":function(name,_1f4){return function(elem){return elem.disabled;};},"enabled":function(name,_1f5){return function(elem){return !elem.disabled;};},"first-child":function(){return _1ed;},"last-child":function(){return _1ee;},"only-child":function(name,_1f6){return function(node){return _1ed(node)&&_1ee(node);};},"empty":function(name,_1f7){return function(elem){var cn=elem.childNodes;var cnl=elem.childNodes.length;for(var x=cnl-1;x>=0;x--){var nt=cn[x].nodeType;if((nt===1)||(nt==3)){return false;}}return true;};},"contains":function(name,_1f8){var cz=_1f8.charAt(0);if(cz=="\""||cz=="'"){_1f8=_1f8.slice(1,-1);}return function(elem){return (elem.innerHTML.indexOf(_1f8)>=0);};},"not":function(name,_1f9){var p=_1c5(_1f9)[0];var _1fa={el:1};if(p.tag!="*"){_1fa.tag=1;}if(!p.classes.length){_1fa.classes=1;}var ntf=_1fb(p,_1fa);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_1fc){var pi=parseInt;if(_1fc=="odd"){return _1f1;}else{if(_1fc=="even"){return _1f0;}}if(_1fc.indexOf("n")!=-1){var _1fd=_1fc.split("n",2);var pred=_1fd[0]?((_1fd[0]=="-")?-1:pi(_1fd[0])):1;var idx=_1fd[1]?pi(_1fd[1]):0;var lb=0,ub=-1;if(pred>0){if(idx<0){idx=(idx%pred)&&(pred+(idx%pred));}else{if(idx>0){if(idx>=pred){lb=idx-idx%pred;}idx=idx%pred;}}}else{if(pred<0){pred*=-1;if(idx>0){ub=idx;idx=idx%pred;}}}if(pred>0){return function(elem){var i=_1ef(elem);return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);};}else{_1fc=idx;}}var _1fe=pi(_1fc);return function(elem){return (_1ef(elem)==_1fe);};}};var _1ff=(has("ie")<9||has("ie")==9&&has("quirks"))?function(cond){var clc=cond.toLowerCase();if(clc=="class"){cond="className";}return function(elem){return (_1c3?elem.getAttribute(cond):elem[cond]||elem[clc]);};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _1fb=function(_200,_201){if(!_200){return _1c4;}_201=_201||{};var ff=null;if(!("el" in _201)){ff=_1d8(ff,_1dc);}if(!("tag" in _201)){if(_200.tag!="*"){ff=_1d8(ff,function(elem){return (elem&&((_1c3?elem.tagName:elem.tagName.toUpperCase())==_200.getTag()));});}}if(!("classes" in _201)){each(_200.classes,function(_202,idx,arr){var re=new RegExp("(?:^|\\s)"+_202+"(?:\\s|$)");ff=_1d8(ff,function(elem){return re.test(elem.className);});ff.count=idx;});}if(!("pseudos" in _201)){each(_200.pseudos,function(_203){var pn=_203.name;if(_1f2[pn]){ff=_1d8(ff,_1f2[pn](pn,_203.value));}});}if(!("attrs" in _201)){each(_200.attrs,function(attr){var _204;var a=attr.attr;if(attr.type&&_1df[attr.type]){_204=_1df[attr.type](a,attr.matchFor);}else{if(a.length){_204=_1ff(a);}}if(_204){ff=_1d8(ff,_204);}});}if(!("id" in _201)){if(_200.id){ff=_1d8(ff,function(elem){return (!!elem&&(elem.id==_200.id));});}}if(!ff){if(!("default" in _201)){ff=_1c4;}}return ff;};var _205=function(_206){return function(node,ret,bag){while(node=node[_1ea]){if(_1e9&&(!_1dc(node))){continue;}if((!bag||_207(node,bag))&&_206(node)){ret.push(node);}break;}return ret;};};var _208=function(_209){return function(root,ret,bag){var te=root[_1ea];while(te){if(_1ec(te)){if(bag&&!_207(te,bag)){break;}if(_209(te)){ret.push(te);}}te=te[_1ea];}return ret;};};var _20a=function(_20b,_20c){var _20d=function(_20e){var _20f=[];try{_20f=Array.prototype.slice.call(_20e);}catch(e){for(var i=0,len=_20e.length;i"==oper){_214=_20a(_215);}}}}return _211[_213.query]=_214;};var _21c=function(root,_21d){var _21e=_1db(root),qp,x,te,qpl=_21d.length,bag,ret;for(var i=0;i0){bag={};ret.nozip=true;}var gef=_212(qp);for(var j=0;(te=_21e[j]);j++){gef(te,ret,bag);}if(!ret.length){break;}_21e=ret;}return ret;};var _21f={},_220={};var _221=function(_222){var _223=_1c5(trim(_222));if(_223.length==1){var tef=_212(_223[0]);return function(root){var r=tef(root,[]);if(r){r.nozip=true;}return r;};}return function(root){return _21c(root,_223);};};var _224=has("ie")?"commentStrip":"nozip";var qsa="querySelectorAll";var _225=!!_1c0()[qsa];var _226=/\\[>~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g;var _227=function(_228,pre,ch,post){return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):_228;};var _229=/([^[]*)([^\]]*])?/g;var _22a=function(_22b,_22c,att){return _22c.replace(_226,_227)+(att||"");};var _22d=function(_22e,_22f){_22e=_22e.replace(_229,_22a);if(_225){var _230=_220[_22e];if(_230&&!_22f){return _230;}}var _231=_21f[_22e];if(_231){return _231;}var qcz=_22e.charAt(0);var _232=(-1==_22e.indexOf(" "));if((_22e.indexOf("#")>=0)&&(_232)){_22f=true;}var _233=(_225&&(!_22f)&&(_1c2.indexOf(qcz)==-1)&&(!has("ie")||(_22e.indexOf(":")==-1))&&(!(_1c1&&(_22e.indexOf(".")>=0)))&&(_22e.indexOf(":contains")==-1)&&(_22e.indexOf(":checked")==-1)&&(_22e.indexOf("|=")==-1));if(_233){var tq=(_1c2.indexOf(_22e.charAt(_22e.length-1))>=0)?(_22e+" *"):_22e;return _220[_22e]=function(root){if(9==root.nodeType||_232){try{var r=root[qsa](tq);r[_224]=true;return r;}catch(e){}}return _22d(_22e,true)(root);};}else{var _234=_22e.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return _21f[_22e]=((_234.length<2)?_221(_22e):function(root){var _235=0,ret=[],tp;while((tp=_234[_235++])){ret=ret.concat(_221(tp)(root));}return ret;});}};var _236=0;var _237=has("ie")?function(node){if(_1c3){return (node.getAttribute("_uid")||node.setAttribute("_uid",++_236)||_236);}else{return node.uniqueID;}}:function(node){return (node._uid||(node._uid=++_236));};var _207=function(node,bag){if(!bag){return 1;}var id=_237(node);if(!bag[id]){return bag[id]=1;}return 0;};var _238="_zipIdx";var _239=function(arr){if(arr&&arr.nozip){return arr;}if(!arr||!arr.length){return [];}if(arr.length<2){return [arr[0]];}var ret=[];_236++;var x,te;if(has("ie")&&_1c3){var _23a=_236+"";for(x=0;x-1){_254.splice(_256,1);}};return _255;}});});},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(_257,lang){var _258=/[&<>'"\/]/g;var _259={"&":"&","<":"<",">":">","\"":""","'":"'","/":"/"};var _25a={};lang.setObject("dojo.string",_25a);_25a.escape=function(str){if(!str){return "";}return str.replace(_258,function(c){return _259[c];});};_25a.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};_25a.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=_25a.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};_25a.substitute=function(_25b,map,_25c,_25d){_25d=_25d||_257.global;_25c=_25c?lang.hitch(_25d,_25c):function(v){return v;};return _25b.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,function(_25e,key,_25f){if(key==""){return "$";}var _260=lang.getObject(key,false,map);if(_25f){_260=lang.getObject(_25f,false,_25d).call(_25d,_260,key);}var _261=_25c(_260,key);if(typeof _261==="undefined"){throw new Error("string.substitute could not find key \""+key+"\" in template");}return _261.toString();});};_25a.trim=String.prototype.trim?lang.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};return _25a;});},"dojo/touch":function(){define(["./_base/kernel","./aspect","./dom","./dom-class","./_base/lang","./on","./has","./mouse","./domReady","./_base/window"],function(dojo,_262,dom,_263,lang,on,has,_264,_265,win){var ios4=has("ios")<5;var _266=has("pointer-events")||has("MSPointer"),_267=(function(){var _268={};for(var type in {down:1,move:1,up:1,cancel:1,over:1,out:1}){_268[type]=has("MSPointer")?"MSPointer"+type.charAt(0).toUpperCase()+type.slice(1):"pointer"+type;}return _268;})();var _269=has("touch-events");var _26a,_26b,_26c=false,_26d,_26e,_26f,_270,_271,_272;var _273;function _274(_275,_276,_277){if(_266&&_277){return function(node,_278){return on(node,_277,_278);};}else{if(_269){return function(node,_279){var _27a=on(node,_276,function(evt){_279.call(this,evt);_273=(new Date()).getTime();}),_27b=on(node,_275,function(evt){if(!_273||(new Date()).getTime()>_273+1000){_279.call(this,evt);}});return {remove:function(){_27a.remove();_27b.remove();}};};}else{return function(node,_27c){return on(node,_275,_27c);};}}};function _27d(node){do{if(node.dojoClick!==undefined){return node;}}while(node=node.parentNode);};function _27e(e,_27f,_280){if(_264.isRight(e)){return;}var _281=_27d(e.target);_26b=!e.target.disabled&&_281&&_281.dojoClick;if(_26b){_26c=(_26b=="useTarget");_26d=(_26c?_281:e.target);if(_26c){e.preventDefault();}_26e=e.changedTouches?e.changedTouches[0].pageX-win.global.pageXOffset:e.clientX;_26f=e.changedTouches?e.changedTouches[0].pageY-win.global.pageYOffset:e.clientY;_270=(typeof _26b=="object"?_26b.x:(typeof _26b=="number"?_26b:0))||4;_271=(typeof _26b=="object"?_26b.y:(typeof _26b=="number"?_26b:0))||4;if(!_26a){_26a=true;function _282(e){if(_26c){_26b=dom.isDescendant(win.doc.elementFromPoint((e.changedTouches?e.changedTouches[0].pageX-win.global.pageXOffset:e.clientX),(e.changedTouches?e.changedTouches[0].pageY-win.global.pageYOffset:e.clientY)),_26d);}else{_26b=_26b&&(e.changedTouches?e.changedTouches[0].target:e.target)==_26d&&Math.abs((e.changedTouches?e.changedTouches[0].pageX-win.global.pageXOffset:e.clientX)-_26e)<=_270&&Math.abs((e.changedTouches?e.changedTouches[0].pageY-win.global.pageYOffset:e.clientY)-_26f)<=_271;}};win.doc.addEventListener(_27f,function(e){if(_264.isRight(e)){return;}_282(e);if(_26c){e.preventDefault();}},true);win.doc.addEventListener(_280,function(e){if(_264.isRight(e)){return;}_282(e);if(_26b){_272=(new Date()).getTime();var _283=(_26c?_26d:e.target);if(_283.tagName==="LABEL"){_283=dom.byId(_283.getAttribute("for"))||_283;}var src=(e.changedTouches)?e.changedTouches[0]:e;function _284(type){var evt=document.createEvent("MouseEvents");evt._dojo_click=true;evt.initMouseEvent(type,true,true,e.view,e.detail,src.screenX,src.screenY,src.clientX,src.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null);return evt;};var _285=_284("mousedown");var _286=_284("mouseup");var _287=_284("click");setTimeout(function(){on.emit(_283,"mousedown",_285);on.emit(_283,"mouseup",_286);on.emit(_283,"click",_287);_272=(new Date()).getTime();},0);}},true);function _288(type){win.doc.addEventListener(type,function(e){var _289=e.target;if(_26b&&!e._dojo_click&&(new Date()).getTime()<=_272+1000&&!(_289.tagName=="INPUT"&&_263.contains(_289,"dijitOffScreen"))){e.stopPropagation();e.stopImmediatePropagation&&e.stopImmediatePropagation();if(type=="click"&&(_289.tagName!="INPUT"||(_289.type=="radio"&&(_263.contains(_289,"dijitCheckBoxInput")||_263.contains(_289,"mblRadioButton")))||(_289.type=="checkbox"&&(_263.contains(_289,"dijitCheckBoxInput")||_263.contains(_289,"mblCheckBox"))))&&_289.tagName!="TEXTAREA"&&_289.tagName!="AUDIO"&&_289.tagName!="VIDEO"){e.preventDefault();}}},true);};_288("click");_288("mousedown");_288("mouseup");}}};var _28a;if(has("touch")){if(_266){_265(function(){win.doc.addEventListener(_267.down,function(evt){_27e(evt,_267.move,_267.up);},true);});}else{_265(function(){_28a=win.body();win.doc.addEventListener("touchstart",function(evt){_273=(new Date()).getTime();var _28b=_28a;_28a=evt.target;on.emit(_28b,"dojotouchout",{relatedTarget:_28a,bubbles:true});on.emit(_28a,"dojotouchover",{relatedTarget:_28b,bubbles:true});_27e(evt,"touchmove","touchend");},true);function _28c(evt){var _28d=lang.delegate(evt,{bubbles:true});if(has("ios")>=6){_28d.touches=evt.touches;_28d.altKey=evt.altKey;_28d.changedTouches=evt.changedTouches;_28d.ctrlKey=evt.ctrlKey;_28d.metaKey=evt.metaKey;_28d.shiftKey=evt.shiftKey;_28d.targetTouches=evt.targetTouches;}return _28d;};on(win.doc,"touchmove",function(evt){_273=(new Date()).getTime();var _28e=win.doc.elementFromPoint(evt.pageX-(ios4?0:win.global.pageXOffset),evt.pageY-(ios4?0:win.global.pageYOffset));if(_28e){if(_28a!==_28e){on.emit(_28a,"dojotouchout",{relatedTarget:_28e,bubbles:true});on.emit(_28e,"dojotouchover",{relatedTarget:_28a,bubbles:true});_28a=_28e;}if(!on.emit(_28e,"dojotouchmove",_28c(evt))){evt.preventDefault();}}});on(win.doc,"touchend",function(evt){_273=(new Date()).getTime();var node=win.doc.elementFromPoint(evt.pageX-(ios4?0:win.global.pageXOffset),evt.pageY-(ios4?0:win.global.pageYOffset))||win.body();on.emit(node,"dojotouchend",_28c(evt));});});}}var _28f={press:_274("mousedown","touchstart",_267.down),move:_274("mousemove","dojotouchmove",_267.move),release:_274("mouseup","dojotouchend",_267.up),cancel:_274(_264.leave,"touchcancel",_266?_267.cancel:null),over:_274("mouseover","dojotouchover",_267.over),out:_274("mouseout","dojotouchout",_267.out),enter:_264._eventHandler(_274("mouseover","dojotouchover",_267.over)),leave:_264._eventHandler(_274("mouseout","dojotouchout",_267.out))};1&&(dojo.touch=_28f);return _28f;});},"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./domReady","./sniff","./_base/window"],function(_290,lang,_291,has,_292){var html=_292.doc.documentElement,ie=has("ie"),_293=has("trident"),_294=has("opera"),maj=Math.floor,ff=has("ff"),_295=_290.boxModel.replace(/-/,""),_296={"dj_quirks":has("quirks"),"dj_opera":_294,"dj_khtml":has("khtml"),"dj_webkit":has("webkit"),"dj_safari":has("safari"),"dj_chrome":has("chrome"),"dj_edge":has("edge"),"dj_gecko":has("mozilla"),"dj_ios":has("ios"),"dj_android":has("android")};if(ie){_296["dj_ie"]=true;_296["dj_ie"+maj(ie)]=true;_296["dj_iequirks"]=has("quirks");}if(_293){_296["dj_trident"]=true;_296["dj_trident"+maj(_293)]=true;}if(ff){_296["dj_ff"+maj(ff)]=true;}_296["dj_"+_295]=true;var _297="";for(var clz in _296){if(_296[clz]){_297+=clz+" ";}}html.className=lang.trim(html.className+" "+_297);_291(function(){if(!_290.isBodyLtr()){var _298="dj_rtl dijitRtl "+_297.replace(/ /g,"-rtl ");html.className=lang.trim(html.className+" "+_298+"dj_rtl dijitRtl "+_297.replace(/ /g,"-rtl "));}});return has;});},"dojo/window":function(){define(["./_base/lang","./sniff","./_base/window","./dom","./dom-geometry","./dom-style","./dom-construct"],function(lang,has,_299,dom,geom,_29a,_29b){has.add("rtl-adjust-position-for-verticalScrollBar",function(win,doc){var body=_299.body(doc),_29c=_29b.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},body,"last"),div=_29b.create("div",{style:{overflow:"hidden",direction:"ltr"}},_29c,"last"),ret=geom.position(div).x!=0;_29c.removeChild(div);body.removeChild(_29c);return ret;});has.add("position-fixed-support",function(win,doc){var body=_299.body(doc),_29d=_29b.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},body,"last"),_29e=_29b.create("span",{style:{position:"fixed",left:"0",top:"0"}},_29d,"last"),ret=geom.position(_29e).x!=geom.position(_29d).x;_29d.removeChild(_29e);body.removeChild(_29d);return ret;});var _29f={getBox:function(doc){doc=doc||_299.doc;var _2a0=(doc.compatMode=="BackCompat")?_299.body(doc):doc.documentElement,_2a1=geom.docScroll(doc),w,h;if(has("touch")){var _2a2=_29f.get(doc);w=_2a2.innerWidth||_2a0.clientWidth;h=_2a2.innerHeight||_2a0.clientHeight;}else{w=_2a0.clientWidth;h=_2a0.clientHeight;}return {l:_2a1.x,t:_2a1.y,w:w,h:h};},get:function(doc){if(has("ie")&&_29f!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;},scrollIntoView:function(node,pos){try{node=dom.byId(node);var doc=node.ownerDocument||_299.doc,body=_299.body(doc),html=doc.documentElement||body.parentNode,isIE=has("ie")||has("trident"),isWK=has("webkit");if(node==body||node==html){return;}if(!(has("mozilla")||isIE||isWK||has("opera")||has("trident")||has("edge"))&&("scrollIntoView" in node)){node.scrollIntoView(false);return;}var _2a3=doc.compatMode=="BackCompat",_2a4=Math.min(body.clientWidth||html.clientWidth,html.clientWidth||body.clientWidth),_2a5=Math.min(body.clientHeight||html.clientHeight,html.clientHeight||body.clientHeight),_2a6=(isWK||_2a3)?body:html,_2a7=pos||geom.position(node),el=node.parentNode,_2a8=function(el){return (isIE<=6||(isIE==7&&_2a3))?false:(has("position-fixed-support")&&(_29a.get(el,"position").toLowerCase()=="fixed"));},self=this,_2a9=function(el,x,y){if(el.tagName=="BODY"||el.tagName=="HTML"){self.get(el.ownerDocument).scrollBy(x,y);}else{x&&(el.scrollLeft+=x);y&&(el.scrollTop+=y);}};if(_2a8(node)){return;}while(el){if(el==body){el=_2a6;}var _2aa=geom.position(el),_2ab=_2a8(el),rtl=_29a.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_2a6){_2aa.w=_2a4;_2aa.h=_2a5;if(_2a6==html&&(isIE||has("trident"))&&rtl){_2aa.x+=_2a6.offsetWidth-_2aa.w;}_2aa.x=0;_2aa.y=0;}else{var pb=geom.getPadBorderExtents(el);_2aa.w-=pb.w;_2aa.h-=pb.h;_2aa.x+=pb.l;_2aa.y+=pb.t;var _2ac=el.clientWidth,_2ad=_2aa.w-_2ac;if(_2ac>0&&_2ad>0){if(rtl&&has("rtl-adjust-position-for-verticalScrollBar")){_2aa.x+=_2ad;}_2aa.w=_2ac;}_2ac=el.clientHeight;_2ad=_2aa.h-_2ac;if(_2ac>0&&_2ad>0){_2aa.h=_2ac;}}if(_2ab){if(_2aa.y<0){_2aa.h+=_2aa.y;_2aa.y=0;}if(_2aa.x<0){_2aa.w+=_2aa.x;_2aa.x=0;}if(_2aa.y+_2aa.h>_2a5){_2aa.h=_2a5-_2aa.y;}if(_2aa.x+_2aa.w>_2a4){_2aa.w=_2a4-_2aa.x;}}var l=_2a7.x-_2aa.x,t=_2a7.y-_2aa.y,r=l+_2a7.w-_2aa.w,bot=t+_2a7.h-_2aa.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_2a6||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_2a3)||has("trident")>=5)){s=-s;}old=el.scrollLeft;_2a9(el,s,0);s=el.scrollLeft-old;_2a7.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_2a6||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;_2a9(el,0,s);s=el.scrollTop-old;_2a7.y-=s;}el=(el!=_2a6)&&!_2ab&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}}};1&&lang.setObject("dojo.window",_29f);return _29f;});},"dojo/NodeList-fx":function(){define(["./query","./_base/lang","./aspect","./_base/fx","./fx"],function(_2ae,lang,_2af,_2b0,_2b1){var _2b2=_2ae.NodeList;lang.extend(_2b2,{_anim:function(obj,_2b3,args){args=args||{};var a=_2b1.combine(this.map(function(item){var _2b4={node:item};lang.mixin(_2b4,args);return obj[_2b3](_2b4);}));return args.auto?a.play()&&this:a;},wipeIn:function(args){return this._anim(_2b1,"wipeIn",args);},wipeOut:function(args){return this._anim(_2b1,"wipeOut",args);},slideTo:function(args){return this._anim(_2b1,"slideTo",args);},fadeIn:function(args){return this._anim(_2b0,"fadeIn",args);},fadeOut:function(args){return this._anim(_2b0,"fadeOut",args);},animateProperty:function(args){return this._anim(_2b0,"animateProperty",args);},anim:function(_2b5,_2b6,_2b7,_2b8,_2b9){var _2ba=_2b1.combine(this.map(function(item){return _2b0.animateProperty({node:item,properties:_2b5,duration:_2b6||350,easing:_2b7});}));if(_2b8){_2af.after(_2ba,"onEnd",_2b8,true);}return _2ba.play(_2b9||0);}});return _2b2;});},"dojo/fx":function(){define(["./_base/lang","./Evented","./_base/kernel","./_base/array","./aspect","./_base/fx","./dom","./dom-style","./dom-geometry","./ready","require"],function(lang,_2bb,dojo,_2bc,_2bd,_2be,dom,_2bf,geom,_2c0,_2c1){if(!dojo.isAsync){_2c0(0,function(){var _2c2=["./fx/Toggler"];_2c1(_2c2);});}var _2c3=dojo.fx={};var _2c4={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _2c5=function(_2c6){this._index=-1;this._animations=_2c6||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;_2bc.forEach(this._animations,function(a){if(a){if(typeof a.duration!="undefined"){this.duration+=a.duration;}if(a.delay){this.duration+=a.delay;}}},this);};_2c5.prototype=new _2bb();lang.extend(_2c5,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){this._onAnimateCtx.remove();this._onEndCtx.remove();this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=_2bd.after(this._current,"onAnimate",lang.hitch(this,"_onAnimate"),true);this._onEndCtx=_2bd.after(this._current,"onEnd",lang.hitch(this,"_onEnd"),true);this._current.play(0,true);}},play:function(_2c7,_2c8){if(!this._current){this._current=this._animations[this._index=0];}if(!_2c8&&this._current.status()=="playing"){return this;}var _2c9=_2bd.after(this._current,"beforeBegin",lang.hitch(this,function(){this._fire("beforeBegin");}),true),_2ca=_2bd.after(this._current,"onBegin",lang.hitch(this,function(arg){this._fire("onBegin",arguments);}),true),_2cb=_2bd.after(this._current,"onPlay",lang.hitch(this,function(arg){this._fire("onPlay",arguments);_2c9.remove();_2ca.remove();_2cb.remove();}));if(this._onAnimateCtx){this._onAnimateCtx.remove();}this._onAnimateCtx=_2bd.after(this._current,"onAnimate",lang.hitch(this,"_onAnimate"),true);if(this._onEndCtx){this._onEndCtx.remove();}this._onEndCtx=_2bd.after(this._current,"onEnd",lang.hitch(this,"_onEnd"),true);this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=_2bd.after(this._current,"onPause",lang.hitch(this,function(arg){this._fire("onPause",arguments);e.remove();}),true);this._current.pause();}return this;},gotoPercent:function(_2cc,_2cd){this.pause();var _2ce=this.duration*_2cc;this._current=null;_2bc.some(this._animations,function(a,_2cf){if(_2ce<=a.duration){this._current=a;this._index=_2cf;return true;}_2ce-=a.duration;return false;},this);if(this._current){this._current.gotoPercent(_2ce/this._current.duration);}if(_2cd){this.play();}return this;},stop:function(_2d0){if(this._current){if(_2d0){for(;this._index+1this._animations.length){this._fire("onEnd");}},_call:function(_2d6,args){var t=this._pseudoAnimation;t[_2d6].apply(t,args);},play:function(_2d7,_2d8){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(_2d9,_2da){var ms=this.duration*_2d9;_2bc.forEach(this._animations,function(a){a.gotoPercent(a.duration0?_2e7.delay:0;this.skip=_2e7.skip;this.mover=_2e7.mover?_2e7.mover:_2e5;this.events=[on(this.handle,_2e4.press,lang.hitch(this,"onMouseDown")),on(this.handle,"dragstart",lang.hitch(this,"onSelectStart")),on(this.handle,"selectstart",lang.hitch(this,"onSelectStart"))];},markupFactory:function(_2e8,node,Ctor){return new Ctor(node,_2e8);},destroy:function(){_2df.forEach(this.events,function(_2e9){_2e9.remove();});this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dnd.isFormElement(e)){return;}if(this.delay){this.events.push(on(this.handle,_2e4.move,lang.hitch(this,"onMouseMove")),on(this.handle.ownerDocument,_2e4.release,lang.hitch(this,"onMouseUp")));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}e.stopPropagation();e.preventDefault();},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}e.stopPropagation();e.preventDefault();},onMouseUp:function(e){for(var i=0;i<2;++i){this.events.pop().remove();}e.stopPropagation();e.preventDefault();},onSelectStart:function(e){if(!this.skip||!dnd.isFormElement(e)){e.stopPropagation();e.preventDefault();}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_2ea){_2e3.publish("/dnd/move/start",_2ea);_2e1.add(win.body(),"dojoMove");_2e1.add(this.node,"dojoMoveItem");},onMoveStop:function(_2eb){_2e3.publish("/dnd/move/stop",_2eb);_2e1.remove(win.body(),"dojoMove");_2e1.remove(this.node,"dojoMoveItem");},onFirstMove:function(){},onMove:function(_2ec,_2ed){this.onMoving(_2ec,_2ed);var s=_2ec.node.style;s.left=_2ed.l+"px";s.top=_2ed.t+"px";this.onMoved(_2ec,_2ed);},onMoving:function(){},onMoved:function(){}});return _2e6;});},"dojo/dnd/common":function(){define(["../sniff","../_base/kernel","../_base/lang","../dom"],function(has,_2ee,lang,dom){var _2ef=lang.getObject("dojo.dnd",true);_2ef.getCopyKeyState=function(evt){return evt[has("mac")?"metaKey":"ctrlKey"];};_2ef._uniqueId=0;_2ef.getUniqueId=function(){var id;do{id=_2ee._scopeName+"Unique"+(++_2ef._uniqueId);}while(dom.byId(id));return id;};_2ef._empty={};_2ef.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " a button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};return _2ef;});},"dojo/dnd/Mover":function(){define(["../_base/array","../_base/declare","../_base/lang","../sniff","../_base/window","../dom","../dom-geometry","../dom-style","../Evented","../on","../touch","./common","./autoscroll"],function(_2f0,_2f1,lang,has,win,dom,_2f2,_2f3,_2f4,on,_2f5,dnd,_2f6){return _2f1("dojo.dnd.Mover",[_2f4],{constructor:function(node,e,host){this.node=dom.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=(this.host=host),d=node.ownerDocument;function _2f7(e){e.preventDefault();e.stopPropagation();};this.events=[on(d,_2f5.move,lang.hitch(this,"onFirstMove")),on(d,_2f5.move,lang.hitch(this,"onMouseMove")),on(d,_2f5.release,lang.hitch(this,"onMouseUp")),on(d,"dragstart",_2f7),on(d.body,"selectstart",_2f7)];_2f6.autoScrollStart(d);if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){_2f6.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY},e);e.preventDefault();e.stopPropagation();},onMouseUp:function(e){if(has("webkit")&&has("mac")&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}e.preventDefault();e.stopPropagation();},onFirstMove:function(e){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left))||0;t=Math.round(parseFloat(s.top))||0;break;default:s.position="absolute";var m=_2f2.getMarginBox(this.node);var b=win.doc.body;var bs=_2f3.getComputedStyle(b);var bm=_2f2.getMarginBox(b,bs);var bc=_2f2.getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this,e);}this.events.shift().remove();},destroy:function(){_2f0.forEach(this.events,function(_2f8){_2f8.remove();});var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});});},"dojo/dnd/autoscroll":function(){define(["../_base/lang","../sniff","../_base/window","../dom-geometry","../dom-style","../window"],function(lang,has,win,_2f9,_2fa,_2fb){var _2fc={};lang.setObject("dojo.dnd.autoscroll",_2fc);_2fc.getViewport=_2fb.getBox;_2fc.V_TRIGGER_AUTOSCROLL=32;_2fc.H_TRIGGER_AUTOSCROLL=32;_2fc.V_AUTOSCROLL_VALUE=16;_2fc.H_AUTOSCROLL_VALUE=16;var _2fd,doc=win.doc,_2fe=Infinity,_2ff=Infinity;_2fc.autoScrollStart=function(d){doc=d;_2fd=_2fb.getBox(doc);var html=win.body(doc).parentNode;_2fe=Math.max(html.scrollHeight-_2fd.h,0);_2ff=Math.max(html.scrollWidth-_2fd.w,0);};_2fc.autoScroll=function(e){var v=_2fd||_2fb.getBox(doc),html=win.body(doc).parentNode,dx=0,dy=0;if(e.clientX<_2fc.H_TRIGGER_AUTOSCROLL){dx=-_2fc.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-_2fc.H_TRIGGER_AUTOSCROLL){dx=Math.min(_2fc.H_AUTOSCROLL_VALUE,_2ff-html.scrollLeft);}}if(e.clientY<_2fc.V_TRIGGER_AUTOSCROLL){dy=-_2fc.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-_2fc.V_TRIGGER_AUTOSCROLL){dy=Math.min(_2fc.V_AUTOSCROLL_VALUE,_2fe-html.scrollTop);}}window.scrollBy(dx,dy);};_2fc._validNodes={"div":1,"p":1,"td":1};_2fc._validOverflow={"auto":1,"scroll":1};_2fc.autoScrollNodes=function(e){var b,t,w,h,rx,ry,dx=0,dy=0,_300,_301;for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in _2fc._validNodes)){var s=_2fa.getComputedStyle(n),_302=(s.overflowX.toLowerCase() in _2fc._validOverflow),_303=(s.overflowY.toLowerCase() in _2fc._validOverflow);if(_302||_303){b=_2f9.getContentBox(n,s);t=_2f9.position(n,true);}if(_302){w=Math.min(_2fc.H_TRIGGER_AUTOSCROLL,b.w/2);rx=e.pageX-t.x;if(has("webkit")||has("opera")){rx+=win.body().scrollLeft;}dx=0;if(rx>0&&rxb.w-w){dx=w;}}_300=n.scrollLeft;n.scrollLeft=n.scrollLeft+dx;}}if(_303){h=Math.min(_2fc.V_TRIGGER_AUTOSCROLL,b.h/2);ry=e.pageY-t.y;if(has("webkit")||has("opera")){ry+=win.body().scrollTop;}dy=0;if(ry>0&&ryb.h-h){dy=h;}}_301=n.scrollTop;n.scrollTop=n.scrollTop+dy;}}if(dx||dy){return;}}try{n=n.parentNode;}catch(x){n=null;}}_2fc.autoScroll(e);};return _2fc;});},"dojo/dnd/move":function(){define(["../_base/declare","../dom-geometry","../dom-style","./common","./Mover","./Moveable"],function(_304,_305,_306,dnd,_307,_308){var _309=_304("dojo.dnd.move.constrainedMoveable",_308,{constraints:function(){},within:false,constructor:function(node,_30a){if(!_30a){_30a={};}this.constraints=_30a.constraints;this.within=_30a.within;},onFirstMove:function(_30b){var c=this.constraintBox=this.constraints.call(this,_30b);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=_305.getMarginSize(_30b.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_30c,_30d){var c=this.constraintBox,s=_30c.node.style;this.onMoving(_30c,_30d);_30d.l=_30d.l=0){this.timeout=_315.timeout;}},onMoveStop:function(_316){if(_316._timer){clearTimeout(_316._timer);_314.call(this,_316,_316._leftTop);}_313.prototype.onMoveStop.apply(this,arguments);},onMove:function(_317,_318){_317._leftTop=_318;if(!_317._timer){var _319=this;_317._timer=setTimeout(function(){_317._timer=null;_314.call(_319,_317,_317._leftTop);},this.timeout);}}});});},"dojo/fx/Toggler":function(){define(["../_base/lang","../_base/declare","../_base/fx","../aspect"],function(lang,_31a,_31b,_31c){return _31a("dojo.fx.Toggler",null,{node:null,showFunc:_31b.fadeIn,hideFunc:_31b.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){var _31d=this;lang.mixin(_31d,args);_31d.node=args.node;_31d._showArgs=lang.mixin({},args);_31d._showArgs.node=_31d.node;_31d._showArgs.duration=_31d.showDuration;_31d.showAnim=_31d.showFunc(_31d._showArgs);_31d._hideArgs=lang.mixin({},args);_31d._hideArgs.node=_31d.node;_31d._hideArgs.duration=_31d.hideDuration;_31d.hideAnim=_31d.hideFunc(_31d._hideArgs);_31c.after(_31d.showAnim,"beforeBegin",lang.hitch(_31d.hideAnim,"stop",true),true);_31c.after(_31d.hideAnim,"beforeBegin",lang.hitch(_31d.showAnim,"stop",true),true);},show:function(_31e){return this.showAnim.play(_31e||0);},hide:function(_31f){return this.hideAnim.play(_31f||0);}});});},"dojo/html":function(){define(["./_base/kernel","./_base/lang","./_base/array","./_base/declare","./dom","./dom-construct","./parser"],function(_320,lang,_321,_322,dom,_323,_324){var _325=0;var html={_secureForInnerHtml:function(cont){return cont.replace(/(?:\s*]+>|]*>[\s\S]*?<\/title>)/ig,"");},_emptyNode:_323.empty,_setNodeContent:function(node,cont){_323.empty(node);if(cont){if(typeof cont=="number"){cont=cont.toString();}if(typeof cont=="string"){cont=_323.toDom(cont,node.ownerDocument);}if(!cont.nodeType&&lang.isArrayLike(cont)){for(var _326=cont.length,i=0;i]*>\s*([\s\S]+)\s*<\/body>/im);if(_32a){cont=_32a[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.parseDeferred;delete this.node;delete this.content;},onContentError:function(err){return "Error occurred setting content: "+err;},onExecError:function(err){return "Error occurred executing scripts: "+err;},_mixin:function(_32b){var _32c={},key;for(key in _32b){if(key in _32c){continue;}this[key]=_32b[key];}},_parse:function(){var _32d=this.node;try{var _32e={};_321.forEach(["dir","lang","textDir"],function(name){if(this[name]){_32e[name]=this[name];}},this);var self=this;this.parseDeferred=_324.parse({rootNode:_32d,noStart:!this.startup,inherited:_32e,scope:this.parserScope}).then(function(_32f){return self.parseResults=_32f;},function(e){self._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_330){var _331=this["on"+type+"Error"].call(this,err);if(_330){console.error(_330,err);}else{if(_331){html._setNodeContent(this.node,_331,true);}}}}),set:function(node,cont,_332){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(typeof cont=="number"){cont=cont.toString();}if(!_332){return html._setNodeContent(node,cont,true);}else{var op=new html._ContentSetter(lang.mixin(_332,{content:cont,node:node}));return op.set();}}};lang.setObject("dojo.html",html);return html;});},"dojo/i18n":function(){define(["./_base/kernel","require","./has","./_base/array","./_base/config","./_base/lang","./_base/xhr","./json","module"],function(dojo,_333,has,_334,_335,lang,xhr,json,_336){has.add("dojo-preload-i18n-Api",1);1||has.add("dojo-v1x-i18n-Api",1);var _337=dojo.i18n={},_338=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,_339=function(root,_33a,_33b,_33c){for(var _33d=[_33b+_33c],_33e=_33a.split("-"),_33f="",i=0;i<_33e.length;i++){_33f+=(_33f?"-":"")+_33e[i];if(!root||root[_33f]){_33d.push(_33b+_33f+"/"+_33c);_33d.specificity=_33f;}}return _33d;},_340={},_341=function(_342,_343,_344){_344=_344?_344.toLowerCase():dojo.locale;_342=_342.replace(/\./g,"/");_343=_343.replace(/\./g,"/");return (/root/i.test(_344))?(_342+"/nls/"+_343):(_342+"/nls/"+_344+"/"+_343);},_345=dojo.getL10nName=function(_346,_347,_348){return _346=_336.id+"!"+_341(_346,_347,_348);},_349=function(_34a,_34b,_34c,_34d,_34e,load){_34a([_34b],function(root){var _34f=lang.clone(root.root||root.ROOT),_350=_339(!root._v1x&&root,_34e,_34c,_34d);_34a(_350,function(){for(var i=1;i<_350.length;i++){_34f=lang.mixin(lang.clone(_34f),arguments[i]);}var _351=_34b+"/"+_34e;_340[_351]=_34f;_34f.$locale=_350.specificity;load();});});},_352=function(id,_353){return /^\./.test(id)?_353(id):id;},_354=function(_355){var list=_335.extraLocale||[];list=lang.isArray(list)?list:[list];list.push(_355);return list;},load=function(id,_356,load){var _357=_338.exec(id),_358=_357[1]+"/",_359=_357[5]||_357[4],_35a=_358+_359,_35b=(_357[5]&&_357[4]),_35c=_35b||dojo.locale||"",_35d=_35a+"/"+_35c,_35e=_35b?[_35c]:_354(_35c),_35f=_35e.length,_360=function(){if(!--_35f){load(lang.delegate(_340[_35d]));}},_361=id.split("*"),_362=_361[1]=="preload";if(has("dojo-preload-i18n-Api")){if(_362){if(!_340[id]){_340[id]=1;_36c(_361[2],json.parse(_361[3]),1,_356);}load(1);}if(_362||(_389(id,_356,load)&&!_340[_35d])){return;}}else{if(_362){load(1);return;}}_334.forEach(_35e,function(_363){var _364=_35a+"/"+_363;if(has("dojo-preload-i18n-Api")){_365(_364);}if(!_340[_364]){_349(_356,_35a,_358,_359,_363,_360);}else{_360();}});};if(has("dojo-preload-i18n-Api")||1){var _366=_337.normalizeLocale=function(_367){var _368=_367?_367.toLowerCase():dojo.locale;return _368=="root"?"ROOT":_368;},isXd=function(mid,_369){return (1&&1)?_369.isXdUrl(_333.toUrl(mid+".js")):true;},_36a=0,_36b=[],_36c=_337._preloadLocalizations=function(_36d,_36e,_36f,_370){_370=_370||_333;function _371(mid,_372){if(isXd(mid,_370)||_36f){_370([mid],_372);}else{_38d([mid],_372,_370);}};function _373(_374,func){var _375=_374.split("-");while(_375.length){if(func(_375.join("-"))){return;}_375.pop();}func("ROOT");};function _376(){_36a++;};function _377(){--_36a;while(!_36a&&_36b.length){load.apply(null,_36b.shift());}};function _378(path,name,loc,_379){return _379.toAbsMid(path+name+"/"+loc);};function _37a(_37b){_37b=_366(_37b);_373(_37b,function(loc){if(_334.indexOf(_36e,loc)>=0){var mid=_36d.replace(/\./g,"/")+"_"+loc;_376();_371(mid,function(_37c){for(var p in _37c){var _37d=_37c[p],_37e=p.match(/(.+)\/([^\/]+)$/),_37f,_380;if(!_37e){continue;}_37f=_37e[2];_380=_37e[1]+"/";if(!_37d._localized){continue;}var _381;if(loc==="ROOT"){var root=_381=_37d._localized;delete _37d._localized;root.root=_37d;_340[_333.toAbsMid(p)]=root;}else{_381=_37d._localized;_340[_378(_380,_37f,loc,_333)]=_37d;}if(loc!==_37b){function _382(_383,_384,_385,_386){var _387=[],_388=[];_373(_37b,function(loc){if(_386[loc]){_387.push(_333.toAbsMid(_383+loc+"/"+_384));_388.push(_378(_383,_384,loc,_333));}});if(_387.length){_376();_370(_387,function(){for(var i=_387.length-1;i>=0;i--){_385=lang.mixin(lang.clone(_385),arguments[i]);_340[_388[i]]=_385;}_340[_378(_383,_384,_37b,_333)]=lang.clone(_385);_377();});}else{_340[_378(_383,_384,_37b,_333)]=_385;}};_382(_380,_37f,_37d,_381);}}_377();});return true;}return false;});};_37a();_334.forEach(dojo.config.extraLocale,_37a);},_389=function(id,_38a,load){if(_36a){_36b.push([id,_38a,load]);}return _36a;},_365=function(){};}if(1){var _38b={},_38c,_38d=function(deps,_38e,_38f){var _390=[];_334.forEach(deps,function(mid){var url=_38f.toUrl(mid+".js");function load(text){if(!_38c){_38c=new Function("__bundle","__checkForLegacyModules","__mid","__amdValue","var define = function(mid, factory){define.called = 1; __amdValue.result = factory || mid;},"+"\t require = function(){define.called = 1;};"+"try{"+"define.called = 0;"+"eval(__bundle);"+"if(define.called==1)"+"return __amdValue;"+"if((__checkForLegacyModules = __checkForLegacyModules(__mid)))"+"return __checkForLegacyModules;"+"}catch(e){}"+"try{"+"return eval('('+__bundle+')');"+"}catch(e){"+"return e;"+"}");}var _391=_38c(text,_365,mid,_38b);if(_391===_38b){_390.push(_340[url]=_38b.result);}else{if(_391 instanceof Error){console.error("failed to evaluate i18n bundle; url="+url,_391);_391={};}_390.push(_340[url]=(/nls\/[^\/]+\/[^\/]+$/.test(url)?_391:{root:_391,_v1x:1}));}};if(_340[url]){_390.push(_340[url]);}else{var _392=_38f.syncLoadNls(mid);if(!_392){_392=_365(mid.replace(/nls\/([^\/]*)\/([^\/]*)$/,"nls/$2/$1"));}if(_392){_390.push(_392);}else{if(!xhr){try{_38f.getText(url,true,load);}catch(e){_390.push(_340[url]={});}}else{xhr.get({url:url,sync:true,load:load,error:function(){_390.push(_340[url]={});}});}}}});_38e&&_38e.apply(null,_390);};_365=function(_393){for(var _394,_395=_393.split("/"),_396=dojo.global[_395[0]],i=1;_396&&i<_395.length-1;_396=_396[_395[i++]]){}if(_396){_394=_396[_395[i]];if(!_394){_394=_396[_395[i].replace(/-/g,"_")];}if(_394){_340[_393]=_394;}}return _394;};_337.getLocalization=function(_397,_398,_399){var _39a,_39b=_341(_397,_398,_399);load(_39b,(!isXd(_39b,_333)?function(deps,_39c){_38d(deps,_39c,_333);}:_333),function(_39d){_39a=_39d;});return _39a;};}return lang.mixin(_337,{dynamic:true,normalize:_352,load:load,cache:_340,getL10nName:_345});});},"dijit/dijit":function(){define(["./main","./_base","dojo/parser","./_Widget","./_TemplatedMixin","./_Container","./layout/_LayoutWidget","./form/_FormWidget","./form/_FormValueWidget"],function(_39e){return _39e;});},"dijit/main":function(){define(["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"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"],function(_39f){return _39f._base;});},"dijit/a11y":function(){define(["dojo/_base/array","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/_base/lang","dojo/sniff","./main"],function(_3a0,dom,_3a1,_3a2,lang,has,_3a3){var _3a4;var a11y={_isElementShown:function(elem){var s=_3a2.get(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_3a1.get(elem,"type")!="hidden");},hasDefaultTabStop:function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _3a1.has(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _3a5=elem.contentDocument;if("designMode" in _3a5&&_3a5.designMode=="on"){return true;}body=_3a5.body;}catch(e1){try{body=elem.contentWindow.document.body;}catch(e2){return false;}}return body&&(body.contentEditable=="true"||(body.firstChild&&body.firstChild.contentEditable=="true"));default:return elem.contentEditable=="true";}},effectiveTabIndex:function(elem){if(_3a1.get(elem,"disabled")){return _3a4;}else{if(_3a1.has(elem,"tabIndex")){return +_3a1.get(elem,"tabIndex");}else{return a11y.hasDefaultTabStop(elem)?0:_3a4;}}},isTabNavigable:function(elem){return a11y.effectiveTabIndex(elem)>=0;},isFocusable:function(elem){return a11y.effectiveTabIndex(elem)>=-1;},_getTabNavigable:function(root){var _3a6,last,_3a7,_3a8,_3a9,_3aa,_3ab={};function _3ac(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _3ad=a11y._isElementShown,_3ae=a11y.effectiveTabIndex;var _3af=function(_3b0){for(var _3b1=_3b0.firstChild;_3b1;_3b1=_3b1.nextSibling){if(_3b1.nodeType!=1||(has("ie")<=9&&_3b1.scopeName!=="HTML")||!_3ad(_3b1)){continue;}var _3b2=_3ae(_3b1);if(_3b2>=0){if(_3b2==0){if(!_3a6){_3a6=_3b1;}last=_3b1;}else{if(_3b2>0){if(!_3a7||_3b2<_3a8){_3a8=_3b2;_3a7=_3b1;}if(!_3a9||_3b2>=_3aa){_3aa=_3b2;_3a9=_3b1;}}}var rn=_3ac(_3b1);if(_3a1.get(_3b1,"checked")&&rn){_3ab[rn]=_3b1;}}if(_3b1.nodeName.toUpperCase()!="SELECT"){_3af(_3b1);}}};if(_3ad(root)){_3af(root);}function rs(node){return _3ab[_3ac(node)]||node;};return {first:rs(_3a6),last:rs(last),lowest:rs(_3a7),highest:rs(_3a9)};},getFirstInTabbingOrder:function(root,doc){var _3b3=a11y._getTabNavigable(dom.byId(root,doc));return _3b3.lowest?_3b3.lowest:_3b3.first;},getLastInTabbingOrder:function(root,doc){var _3b4=a11y._getTabNavigable(dom.byId(root,doc));return _3b4.last?_3b4.last:_3b4.highest;}};1&&lang.mixin(_3a3,a11y);return a11y;});},"dijit/WidgetSet":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","./registry"],function(_3b5,_3b6,_3b7,_3b8){var _3b9=_3b6("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_3ba){if(this._hash[_3ba.id]){throw new Error("Tried to register widget with id=="+_3ba.id+" but that id is already registered");}this._hash[_3ba.id]=_3ba;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_3bb){_3bb=_3bb||_3b7.global;var i=0,id;for(id in this._hash){func.call(_3bb,this._hash[id],i++,this._hash);}return this;},filter:function(_3bc,_3bd){_3bd=_3bd||_3b7.global;var res=new _3b9(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_3bc.call(_3bd,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new _3b9(),id,_3be;for(id in this._hash){_3be=this._hash[id];if(_3be.declaredClass==cls){res.add(_3be);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_3bf){return _3b5.map(this.toArray(),func,_3bf);},every:function(func,_3c0){_3c0=_3c0||_3b7.global;var x=0,i;for(i in this._hash){if(!func.call(_3c0,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_3c1){_3c1=_3c1||_3b7.global;var x=0,i;for(i in this._hash){if(func.call(_3c1,this._hash[i],x++,this._hash)){return true;}}return false;}});_3b5.forEach(["forEach","filter","byClass","map","every","some"],function(func){_3b8[func]=_3b9.prototype[func];});return _3b9;});},"dijit/registry":function(){define(["dojo/_base/array","dojo/_base/window","./main"],function(_3c2,win,_3c3){var _3c4={},hash={};var _3c5={length:0,add:function(_3c6){if(hash[_3c6.id]){throw new Error("Tried to register widget with id=="+_3c6.id+" but that id is already registered");}hash[_3c6.id]=_3c6;this.length++;},remove:function(id){if(hash[id]){delete hash[id];this.length--;}},byId:function(id){return typeof id=="string"?hash[id]:id;},byNode:function(node){return hash[node.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in hash){ar.push(hash[id]);}return ar;},getUniqueId:function(_3c7){var id;do{id=_3c7+"_"+(_3c7 in _3c4?++_3c4[_3c7]:_3c4[_3c7]=0);}while(hash[id]);return _3c3._scopeName=="dijit"?id:_3c3._scopeName+"_"+id;},findWidgets:function(root,_3c8){var _3c9=[];function _3ca(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _3cb=node.getAttribute("widgetId");if(_3cb){var _3cc=hash[_3cb];if(_3cc){_3c9.push(_3cc);}}else{if(node!==_3c8){_3ca(node);}}}}};_3ca(root);return _3c9;},_destroyAll:function(){_3c3._curFocus=null;_3c3._prevFocus=null;_3c3._activeStack=[];_3c2.forEach(_3c5.findWidgets(win.body()),function(_3cd){if(!_3cd._destroyed){if(_3cd.destroyRecursive){_3cd.destroyRecursive();}else{if(_3cd.destroy){_3cd.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.nodeType==1&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};_3c3.registry=_3c5;return _3c5;});},"dijit/_base/focus":function(){define(["dojo/_base/array","dojo/dom","dojo/_base/lang","dojo/topic","dojo/_base/window","../focus","../selection","../main"],function(_3ce,dom,lang,_3cf,win,_3d0,_3d1,_3d2){var _3d3={_curFocus:null,_prevFocus:null,isCollapsed:function(){return _3d2.getBookmark().isCollapsed;},getBookmark:function(){var sel=win.global==window?_3d1:new _3d1.SelectionManager(win.global);return sel.getBookmark();},moveToBookmark:function(_3d4){var sel=win.global==window?_3d1:new _3d1.SelectionManager(win.global);return sel.moveToBookmark(_3d4);},getFocus:function(menu,_3d5){var node=!_3d0.curNode||(menu&&dom.isDescendant(_3d0.curNode,menu.domNode))?_3d2._prevFocus:_3d0.curNode;return {node:node,bookmark:node&&(node==_3d0.curNode)&&win.withGlobal(_3d5||win.global,_3d2.getBookmark),openedForWindow:_3d5};},_activeStack:[],registerIframe:function(_3d6){return _3d0.registerIframe(_3d6);},unregisterIframe:function(_3d7){_3d7&&_3d7.remove();},registerWin:function(_3d8,_3d9){return _3d0.registerWin(_3d8,_3d9);},unregisterWin:function(_3da){_3da&&_3da.remove();}};_3d0.focus=function(_3db){if(!_3db){return;}var node="node" in _3db?_3db.node:_3db,_3dc=_3db.bookmark,_3dd=_3db.openedForWindow,_3de=_3dc?_3dc.isCollapsed:false;if(node){var _3df=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_3df&&_3df.focus){try{_3df.focus();}catch(e){}}_3d0._onFocusNode(node);}if(_3dc&&win.withGlobal(_3dd||win.global,_3d2.isCollapsed)&&!_3de){if(_3dd){_3dd.focus();}try{win.withGlobal(_3dd||win.global,_3d2.moveToBookmark,null,[_3dc]);}catch(e2){}}};_3d0.watch("curNode",function(name,_3e0,_3e1){_3d2._curFocus=_3e1;_3d2._prevFocus=_3e0;if(_3e1){_3cf.publish("focusNode",_3e1);}});_3d0.watch("activeStack",function(name,_3e2,_3e3){_3d2._activeStack=_3e3;});_3d0.on("widget-blur",function(_3e4,by){_3cf.publish("widgetBlur",_3e4,by);});_3d0.on("widget-focus",function(_3e5,by){_3cf.publish("widgetFocus",_3e5,by);});lang.mixin(_3d2,_3d3);return _3d2;});},"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"],function(_3e6,_3e7,dom,_3e8,_3e9,_3ea,_3eb,lang,on,_3ec,has,_3ed,win,_3ee,a11y,_3ef,_3f0){var _3f1;var _3f2;var _3f3=_3e7([_3ed,_3eb],{curNode:null,activeStack:[],constructor:function(){var _3f4=lang.hitch(this,function(node){if(dom.isDescendant(this.curNode,node)){this.set("curNode",null);}if(dom.isDescendant(this.prevNode,node)){this.set("prevNode",null);}});_3e6.before(_3ea,"empty",_3f4);_3e6.before(_3ea,"destroy",_3f4);},registerIframe:function(_3f5){return this.registerWin(_3f5.contentWindow,_3f5);},registerWin:function(_3f6,_3f7){var _3f8=this,body=_3f6.document&&_3f6.document.body;if(body){var _3f9=has("pointer-events")?"pointerdown":has("MSPointer")?"MSPointerDown":has("touch-events")?"mousedown, touchstart":"mousedown";var mdh=on(_3f6.document,_3f9,function(evt){if(evt&&evt.target&&evt.target.parentNode==null){return;}_3f8._onTouchNode(_3f7||evt.target,"mouse");});var fih=on(body,"focusin",function(evt){if(!evt.target.tagName){return;}var tag=evt.target.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isFocusable(evt.target)){_3f8._onFocusNode(_3f7||evt.target);}else{_3f8._onTouchNode(_3f7||evt.target);}});var foh=on(body,"focusout",function(evt){_3f8._onBlurNode(_3f7||evt.target);});return {remove:function(){mdh.remove();fih.remove();foh.remove();mdh=fih=foh=null;body=null;}};}},_onBlurNode:function(node){var now=(new Date()).getTime();if(now<_3f1+100){return;}if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);}this._clearFocusTimer=setTimeout(lang.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null);}),0);if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}if(now<_3f2+100){return;}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);}),0);},_onTouchNode:function(node,by){_3f2=(new Date()).getTime();if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}if(_3e9.contains(node,"dijitPopup")){node=node.firstChild;}var _3fa=[];try{while(node){var _3fb=_3e8.get(node,"dijitPopupParent");if(_3fb){node=_3ef.byId(_3fb).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_3ee.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_3fc=id&&_3ef.byId(id);if(_3fc&&!(by=="mouse"&&_3fc.get("disabled"))){_3fa.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_3fa,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}_3f1=(new Date()).getTime();if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);delete this._clearFocusTimer;}this._onTouchNode(node);if(node==this.curNode){return;}this.set("prevNode",this.curNode);this.set("curNode",node);},_setStack:function(_3fd,by){var _3fe=this.activeStack,_3ff=_3fe.length-1,_400=_3fd.length-1;if(_3fd[_400]==_3fe[_3ff]){return;}this.set("activeStack",_3fd);var _401,i;for(i=_3ff;i>=0&&_3fe[i]!=_3fd[i];i--){_401=_3ef.byId(_3fe[i]);if(_401){_401._hasBeenBlurred=true;_401.set("focused",false);if(_401._focusManager==this){_401._onBlur(by);}this.emit("widget-blur",_401,by);}}for(i++;i<=_400;i++){_401=_3ef.byId(_3fd[i]);if(_401){_401.set("focused",true);if(_401._focusManager==this){_401._onFocus(by);}this.emit("widget-focus",_401,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _402=new _3f3();_3ec(function(){var _403=_402.registerWin(_3ee.get(document));if(has("ie")){on(window,"unload",function(){if(_403){_403.remove();_403=null;}});}});_3f0.focus=function(node){_402.focus(node);};for(var attr in _402){if(!/^_/.test(attr)){_3f0.focus[attr]=typeof _402[attr]=="function"?lang.hitch(_402,attr):_402[attr];}}_402.watch(function(attr,_404,_405){_3f0.focus[attr]=_405;});return _402;});},"dijit/selection":function(){define(["dojo/_base/array","dojo/dom","dojo/_base/lang","dojo/sniff","dojo/_base/window","dijit/focus"],function(_406,dom,lang,has,_407,_408){var _409=function(win){var doc=win.document;this.getType=function(){if(doc.getSelection){var _40a="text";var oSel;try{oSel=win.getSelection();}catch(e){}if(oSel&&oSel.rangeCount==1){var _40b=oSel.getRangeAt(0);if((_40b.startContainer==_40b.endContainer)&&((_40b.endOffset-_40b.startOffset)==1)&&(_40b.startContainer.nodeType!=3)){_40a="control";}}return _40a;}else{return doc.selection.type.toLowerCase();}};this.getSelectedText=function(){if(doc.getSelection){var _40c=win.getSelection();return _40c?_40c.toString():"";}else{if(this.getType()=="control"){return null;}return doc.selection.createRange().text;}};this.getSelectedHtml=function(){if(doc.getSelection){var _40d=win.getSelection();if(_40d&&_40d.rangeCount){var i;var html="";for(i=0;i<_40d.rangeCount;i++){var frag=_40d.getRangeAt(i).cloneContents();var div=doc.createElement("div");div.appendChild(frag);html+=div.innerHTML;}return html;}return null;}else{if(this.getType()=="control"){return null;}return doc.selection.createRange().htmlText;}};this.getSelectedElement=function(){if(this.getType()=="control"){if(doc.getSelection){var _40e=win.getSelection();return _40e.anchorNode.childNodes[_40e.anchorOffset];}else{var _40f=doc.selection.createRange();if(_40f&&_40f.item){return doc.selection.createRange().item(0);}}}return null;};this.getParentElement=function(){if(this.getType()=="control"){var p=this.getSelectedElement();if(p){return p.parentNode;}}else{if(doc.getSelection){var _410=doc.getSelection();if(_410){var node=_410.anchorNode;while(node&&(node.nodeType!=1)){node=node.parentNode;}return node;}}else{var r=doc.selection.createRange();r.collapse(true);return r.parentElement();}}return null;};this.hasAncestorElement=function(_411){return this.getAncestorElement.apply(this,arguments)!=null;};this.getAncestorElement=function(_412){var node=this.getSelectedElement()||this.getParentElement();return this.getParentOfType(node,arguments);};this.isTag=function(node,tags){if(node&&node.tagName){var _413=node.tagName.toLowerCase();for(var i=0;i0){_421=sel.getRangeAt(0);}if(_421&&_421.compareBoundaryPoints&&doc.createRange){try{_420=doc.createRange();_420.setStart(node,0);if(_421.compareBoundaryPoints(_421.START_TO_END,_420)===1){return true;}}catch(e){}}}else{_421=doc.selection.createRange();try{_420=node.ownerDocument.body.createTextRange();_420.moveToElementText(node);}catch(e2){}if(_421&&_420){if(_421.compareEndPoints("EndToStart",_420)===1){return true;}}}}return false;};this.getBookmark=function(){var bm,rg,tg,sel=doc.selection,cf=_408.curNode;if(doc.getSelection){sel=win.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i>1))-bb.w)}[_440.charAt(1)],_447={"T":pos.y,"B":pos.y-bb.h,"M":Math.max(view.t,Math.min(view.t+view.h,pos.y+(bb.h>>1))-bb.h)}[_440.charAt(0)],_448=Math.max(view.l,_446),_449=Math.max(view.t,_447),endX=Math.min(view.l+view.w,_446+bb.w),endY=Math.min(view.t+view.h,_447+bb.h),_44a=endX-_448,_44b=endY-_449;_441+=(bb.w-_44a)+(bb.h-_44b);if(best==null||_441>1)}[_464.charAt(1)],y:{"T":y,"B":y+_462,"M":y+(_462>>1)}[_464.charAt(0)]}});};_435.forEach(_454,function(pos){var ltr=_455;switch(pos){case "above-centered":push("TM","BM");break;case "below-centered":push("BM","TM");break;case "after-centered":ltr=!ltr;case "before-centered":push(ltr?"ML":"MR",ltr?"MR":"ML");break;case "after":ltr=!ltr;case "before":push(ltr?"TL":"TR",ltr?"TR":"TL");push(ltr?"BL":"BR",ltr?"BR":"BL");break;case "below-alt":ltr=!ltr;case "below":push(ltr?"BL":"BR",ltr?"TL":"TR");push(ltr?"BR":"BL",ltr?"TR":"TL");break;case "above-alt":ltr=!ltr;case "above":push(ltr?"TL":"TR",ltr?"BL":"BR");push(ltr?"TR":"TL",ltr?"BR":"BL");break;default:push(pos.aroundCorner,pos.corner);}});var _466=_43b(node,_463,_456,{w:_461,h:_462});_466.aroundNodePos=_457;return _466;}};return _43a.place=_44d;});},"dijit/Viewport":function(){define(["dojo/Evented","dojo/on","dojo/domReady","dojo/sniff","dojo/window"],function(_467,on,_468,has,_469){var _46a=new _467();var _46b;_468(function(){var _46c=_469.getBox();_46a._rlh=on(window,"resize",function(){var _46d=_469.getBox();if(_46c.h==_46d.h&&_46c.w==_46d.w){return;}_46c=_46d;_46a.emit("resize");});if(has("ie")==8){var _46e=screen.deviceXDPI;setInterval(function(){if(screen.deviceXDPI!=_46e){_46e=screen.deviceXDPI;_46a.emit("resize");}},500);}if(has("ios")){on(document,"focusin",function(evt){_46b=evt.target;});on(document,"focusout",function(evt){_46b=null;});}});_46a.getEffectiveBox=function(doc){var box=_469.getBox(doc);var tag=_46b&&_46b.tagName&&_46b.tagName.toLowerCase();if(has("ios")&&_46b&&!_46b.readOnly&&(tag=="textarea"||(tag=="input"&&/^(color|email|number|password|search|tel|text|url)$/.test(_46b.type)))){box.h*=(orientation==0||orientation==180?0.66:0.4);var rect=_46b.getBoundingClientRect();box.h=Math.max(box.h,rect.top+rect.height);}return box;};return _46a;});},"dijit/_base/popup":function(){define(["dojo/dom-class","dojo/_base/window","../popup","../BackgroundIframe"],function(_46f,win,_470){var _471=_470._createWrapper;_470._createWrapper=function(_472){if(!_472.declaredClass){_472={_popupWrapper:(_472.parentNode&&_46f.contains(_472.parentNode,"dijitPopup"))?_472.parentNode:null,domNode:_472,destroy:function(){},ownerDocument:_472.ownerDocument,ownerDocumentBody:win.body(_472.ownerDocument)};}return _471.call(this,_472);};var _473=_470.open;_470.open=function(args){if(args.orient&&typeof args.orient!="string"&&!("length" in args.orient)){var ary=[];for(var key in args.orient){ary.push({aroundCorner:key,corner:args.orient[key]});}args.orient=ary;}return _473.call(this,args);};return _470;});},"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"],function(_474,_475,_476,dom,_477,_478,_479,_47a,has,keys,lang,on,_47b,_47c,_47d,_47e){function _47f(){if(this._popupWrapper){_478.destroy(this._popupWrapper);delete this._popupWrapper;}};var _480=_476(null,{_stack:[],_beginZIndex:1000,_idGen:1,_repositionAll:function(){if(this._firstAroundNode){var _481=this._firstAroundPosition,_482=_479.position(this._firstAroundNode,true),dx=_482.x-_481.x,dy=_482.y-_481.y;if(dx||dy){this._firstAroundPosition=_482;for(var i=0;i0&&_48b[pi].parent===_48b[pi-1].widget;pi--){}return _48b[pi];},open:function(args){var _48c=this._stack,_48d=args.popup,node=_48d.domNode,_48e=args.orient||["below","below-alt","above","above-alt"],ltr=args.parent?args.parent.isLeftToRight():_479.isBodyLtr(_48d.ownerDocument),_48f=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_48c.length&&(!args.parent||!dom.isDescendant(args.parent.domNode,_48c[_48c.length-1].widget.domNode))){this.close(_48c[_48c.length-1].widget);}var _490=this.moveOffScreen(_48d);if(_48d.startup&&!_48d._started){_48d.startup();}var _491,_492=_479.position(node);if("maxHeight" in args&&args.maxHeight!=-1){_491=args.maxHeight||Infinity;}else{var _493=_47d.getEffectiveBox(this.ownerDocument),_494=_48f?_479.position(_48f,false):{y:args.y-(args.padding||0),h:(args.padding||0)*2};_491=Math.floor(Math.max(_494.y,_493.h-(_494.y+_494.h)));}if(_492.h>_491){var cs=_47a.getComputedStyle(node),_495=cs.borderLeftWidth+" "+cs.borderLeftStyle+" "+cs.borderLeftColor;_47a.set(_490,{overflowY:"scroll",height:_491+"px",border:_495});node._originalStyle=node.style.cssText;node.style.border="none";}_477.set(_490,{id:id,style:{zIndex:this._beginZIndex+_48c.length},"class":"dijitPopup "+(_48d.baseClass||_48d["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(_48c.length==0&&_48f){this._firstAroundNode=_48f;this._firstAroundPosition=_479.position(_48f,true);this._aroundMoveListener=setTimeout(lang.hitch(this,"_repositionAll"),50);}if(has("config-bgIframe")&&!_48d.bgIframe){_48d.bgIframe=new _47c(_490);}var _496=_48d.orient?lang.hitch(_48d,"orient"):null,best=_48f?_47b.around(_490,_48f,_48e,ltr,_496):_47b.at(_490,args,_48e=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding,_496);_490.style.visibility="visible";node.style.visibility="visible";var _497=[];_497.push(on(_490,"keydown",lang.hitch(this,function(evt){if(evt.keyCode==keys.ESCAPE&&args.onCancel){evt.stopPropagation();evt.preventDefault();args.onCancel();}else{if(evt.keyCode==keys.TAB){evt.stopPropagation();evt.preventDefault();var _498=this.getTopPopup();if(_498&&_498.onCancel){_498.onCancel();}}}})));if(_48d.onCancel&&args.onCancel){_497.push(_48d.on("cancel",args.onCancel));}_497.push(_48d.on(_48d.onExecute?"execute":"change",lang.hitch(this,function(){var _499=this.getTopPopup();if(_499&&_499.onExecute){_499.onExecute();}})));_48c.push({widget:_48d,wrapper:_490,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_497});if(_48d.onOpen){_48d.onOpen(best);}return best;},close:function(_49a){var _49b=this._stack;while((_49a&&_474.some(_49b,function(elem){return elem.widget==_49a;}))||(!_49a&&_49b.length)){var top=_49b.pop(),_49c=top.widget,_49d=top.onClose;if(_49c.bgIframe){_49c.bgIframe.destroy();delete _49c.bgIframe;}if(_49c.onClose){_49c.onClose();}var h;while(h=top.handlers.pop()){h.remove();}if(_49c&&_49c.domNode){this.hide(_49c);}if(_49d){_49d();}}if(_49b.length==0&&this._aroundMoveListener){clearTimeout(this._aroundMoveListener);this._firstAroundNode=this._firstAroundPosition=this._aroundMoveListener=null;}}});return (_47e.popup=new _480());});},"dijit/BackgroundIframe":function(){define(["require","./main","dojo/_base/config","dojo/dom-construct","dojo/dom-style","dojo/_base/lang","dojo/on","dojo/sniff"],function(_49e,_49f,_4a0,_4a1,_4a2,lang,on,has){has.add("config-bgIframe",(has("ie")||has("trident"))&&!/IEMobile\/10\.0/.test(navigator.userAgent));var _4a3=new function(){var _4a4=[];this.pop=function(){var _4a5;if(_4a4.length){_4a5=_4a4.pop();_4a5.style.display="";}else{if(has("ie")<9){var burl=_4a0["dojoBlankHtmlUrl"]||_49e.toUrl("dojo/resources/blank.html")||"javascript:\"\"";var html="