From 6887a0f57307820b097b51aee952c555bcf69024 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 20 Jan 2017 12:29:59 -0500 Subject: lib: Upgrade Dojo and Dijit from 1.8.3 to 1.12.1 The itemNode and expandoNode elements have changed from img to span (https://bugs.dojotoolkit.org/ticket/16699), so we now put our tree icons inside them rather than replacing them. Signed-off-by: Anders Kaseorg --- lib/dojo/tt-rss-layer.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'lib/dojo/tt-rss-layer.js') diff --git a/lib/dojo/tt-rss-layer.js b/lib/dojo/tt-rss-layer.js index 12d80915e..ee4dee1f5 100644 --- a/lib/dojo/tt-rss-layer.js +++ b/lib/dojo/tt-rss-layer.js @@ -1,15 +1,8 @@ /* - Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. + 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 */ -/* - This is an optimized version of Dojo, built for deployment and not for - development. To get sources and documentation, please visit: - - http://dojotoolkit.org -*/ - //>>built -require({cache:{"dojo/_base/url":function(){define("dojo/_base/url",["./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("dojo/cache",["./_base/kernel","./text"],function(_b){return _b.cache;});},"dojo/text":function(){define("dojo/text",["./_base/kernel","require","./has","./_base/xhr"],function(_c,_d,_e,_f){var _10;if(1){_10=function(url,_11,_12){_f("GET",{url:url,sync:!!_11,load:_12,headers:_c.config.textPluginHeaders||{}});};}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(_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/parser":function(){define("dojo/parser",["require","./_base/kernel","./_base/lang","./_base/array","./_base/config","./_base/html","./_base/window","./_base/url","./_base/json","./aspect","./date/stamp","./Deferred","./has","./query","./on","./ready"],function(_2a,_2b,_2c,_2d,_2e,_2f,_30,_31,_32,_33,_34,_35,has,_36,don,_37){new Date("X");var _38=0;_33.after(_2c,"extend",function(){_38++;},true);function _39(_3a){var map=_3a._nameCaseMap,_3b=_3a.prototype;if(!map||map._extendCnt<_38){map=_3a._nameCaseMap={};for(var _3c in _3b){if(_3c.charAt(0)==="_"){continue;}map[_3c.toLowerCase()]=_3c;}map._extendCnt=_38;}return map;};var _3d={};function _3e(_3f){var ts=_3f.join();if(!_3d[ts]){var _40=[];for(var i=0,l=_3f.length;i.*$/,"");_65=_2d.map(_67.split(/\s+/),function(_68){var _69=_68.toLowerCase();return {name:_68,value:(_5e.nodeName=="LI"&&_68=="value")||_69=="enctype"?_5e.getAttribute(_69):_5e.getAttributeNode(_69).value};});}}var _6a=_60.scope||_2b._scopeName,_6b="data-"+_6a+"-",_6c={};if(_6a!=="dojo"){_6c[_6b+"props"]="data-dojo-props";_6c[_6b+"type"]="data-dojo-type";_6c[_6b+"mixins"]="data-dojo-mixins";_6c[_6a+"type"]="dojoType";_6c[_6b+"id"]="data-dojo-id";}var i=0,_6d,_6e=[],_6f,_70;while(_6d=_65[i++]){var _71=_6d.name,_72=_71.toLowerCase(),_73=_6d.value;switch(_6c[_72]||_72){case "data-dojo-type":case "dojotype":case "data-dojo-mixins":break;case "data-dojo-props":_70=_73;break;case "data-dojo-id":case "jsid":_6f=_73;break;case "data-dojo-attach-point":case "dojoattachpoint":_64.dojoAttachPoint=_73;break;case "data-dojo-attach-event":case "dojoattachevent":_64.dojoAttachEvent=_73;break;case "class":_64["class"]=_5e.className;break;case "style":_64["style"]=_5e.style&&_5e.style.cssText;break;default:if(!(_71 in _63)){var map=_39(_5d);_71=map[_72]||_71;}if(_71 in _63){switch(typeof _63[_71]){case "string":_64[_71]=_73;break;case "number":_64[_71]=_73.length?Number(_73):NaN;break;case "boolean":_64[_71]=_73.toLowerCase()!="false";break;case "function":if(_73===""||_73.search(/[^\w\.]+/i)!=-1){_64[_71]=new Function(_73);}else{_64[_71]=_2c.getObject(_73,false)||new Function(_73);}_6e.push(_71);break;default:var _74=_63[_71];_64[_71]=(_74&&"length" in _74)?(_73?_73.split(/\s*,\s*/):[]):(_74 instanceof Date)?(_73==""?new Date(""):_73=="now"?new Date():_34.fromISOString(_73)):(_74 instanceof _31)?(_2b.baseUrl+_73):_32.fromJson(_73);}}else{_64[_71]=_73;}}}for(var j=0;j<_6e.length;j++){var _75=_6e[j].toLowerCase();_5e.removeAttribute(_75);_5e[_75]=null;}if(_70){try{_70=_32.fromJson.call(_60.propsThis,"{"+_70+"}");_2c.mixin(_64,_70);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_70+"'");}}_2c.mixin(_64,_5f);if(!_61){_61=(_5d&&(_5d._noScript||_63._noScript)?[]:_36("> script[type^='dojo/']",_5e));}var _76=[],_77=[],_78=[],ons=[];if(_61){for(i=0;i<_61.length;i++){var _79=_61[i];_5e.removeChild(_79);var _7a=(_79.getAttribute(_6b+"event")||_79.getAttribute("event")),_7b=_79.getAttribute(_6b+"prop"),_7c=_79.getAttribute(_6b+"method"),_7d=_79.getAttribute(_6b+"advice"),_7e=_79.getAttribute("type"),nf=this._functionFromScript(_79,_6b);if(_7a){if(_7e=="dojo/connect"){_76.push({method:_7a,func:nf});}else{if(_7e=="dojo/on"){ons.push({event:_7a,func:nf});}else{_64[_7a]=nf;}}}else{if(_7e=="dojo/aspect"){_76.push({method:_7c,advice:_7d,func:nf});}else{if(_7e=="dojo/watch"){_78.push({prop:_7b,func:nf});}else{_77.push(nf);}}}}}var _7f=_5d.markupFactory||_63.markupFactory;var _80=_7f?_7f(_64,_5e,_5d):new _5d(_64,_5e);if(_6f){_2c.setObject(_6f,_80);}for(i=0;i<_76.length;i++){_33[_76[i].advice||"after"](_80,_76[i].method,_2c.hitch(_80,_76[i].func),true);}for(i=0;i<_77.length;i++){_77[i].call(_80);}for(i=0;i<_78.length;i++){_80.watch(_78[i].prop,_78[i].func);}for(i=0;i0?"-":"+")+_c1(Math.floor(_c9/60))+":"+_c1(_c9%60);}}_c2.push(_c6);}return _c2.join("T");};return _b5;});},"dojo/data/ItemFileWriteStore":function(){define("dojo/data/ItemFileWriteStore",["../_base/lang","../_base/declare","../_base/array","../_base/json","../_base/kernel","./ItemFileReadStore","../date/stamp"],function(_ca,_cb,_cc,_cd,_ce,_cf,_d0){return _cb("dojo.data.ItemFileWriteStore",_cf,{constructor:function(_d1){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 _d0.toISOString(obj,{zulu:true});};}if(_d1&&(_d1.referenceIntegrity===false)){this.referenceIntegrity=false;}this._saveInProgress=false;},referenceIntegrity:true,_assert:function(_d2){if(!_d2){throw new Error("assertion failed in ItemFileWriteStore");}},_getIdentifierAttribute:function(){return this.getFeatures()["dojo.data.api.Identity"];},newItem:function(_d3,_d4){this._assert(!this._saveInProgress);if(!this._loadFinished){this._forceLoad();}if(typeof _d3!="object"&&typeof _d3!="undefined"){throw new Error("newItem() was passed something other than an object");}var _d5=null;var _d6=this._getIdentifierAttribute();if(_d6===Number){_d5=this._arrayOfAllItems.length;}else{_d5=_d3[_d6];if(typeof _d5==="undefined"){throw new Error("newItem() was not passed an identity for the new item");}if(_ca.isArray(_d5)){throw new Error("newItem() was not passed an single-valued identity");}}if(this._itemsByIdentity){this._assert(typeof this._itemsByIdentity[_d5]==="undefined");}this._assert(typeof this._pending._newItems[_d5]==="undefined");this._assert(typeof this._pending._deletedItems[_d5]==="undefined");var _d7={};_d7[this._storeRefPropName]=this;_d7[this._itemNumPropName]=this._arrayOfAllItems.length;if(this._itemsByIdentity){this._itemsByIdentity[_d5]=_d7;_d7[_d6]=[_d5];}this._arrayOfAllItems.push(_d7);var _d8=null;if(_d4&&_d4.parent&&_d4.attribute){_d8={item:_d4.parent,attribute:_d4.attribute,oldValue:undefined};var _d9=this.getValues(_d4.parent,_d4.attribute);if(_d9&&_d9.length>0){var _da=_d9.slice(0,_d9.length);if(_d9.length===1){_d8.oldValue=_d9[0];}else{_d8.oldValue=_d9.slice(0,_d9.length);}_da.push(_d7);this._setValueOrValues(_d4.parent,_d4.attribute,_da,false);_d8.newValue=this.getValues(_d4.parent,_d4.attribute);}else{this._setValueOrValues(_d4.parent,_d4.attribute,_d7,false);_d8.newValue=_d7;}}else{_d7[this._rootItemPropName]=true;this._arrayOfTopLevelItems.push(_d7);}this._pending._newItems[_d5]=_d7;for(var key in _d3){if(key===this._storeRefPropName||key===this._itemNumPropName){throw new Error("encountered bug in ItemFileWriteStore.newItem");}var _db=_d3[key];if(!_ca.isArray(_db)){_db=[_db];}_d7[key]=_db;if(this.referenceIntegrity){for(var i=0;i<_db.length;i++){var val=_db[i];if(this.isItem(val)){this._addReferenceToMap(val,_d7,key);}}}}this.onNew(_d7,_d8);return _d7;},_removeArrayElement:function(_dc,_dd){var _de=_cc.indexOf(_dc,_dd);if(_de!=-1){_dc.splice(_de,1);return true;}return false;},deleteItem:function(_df){this._assert(!this._saveInProgress);this._assertIsItem(_df);var _e0=_df[this._itemNumPropName];var _e1=this.getIdentity(_df);if(this.referenceIntegrity){var _e2=this.getAttributes(_df);if(_df[this._reverseRefMap]){_df["backup_"+this._reverseRefMap]=_ca.clone(_df[this._reverseRefMap]);}_cc.forEach(_e2,function(_e3){_cc.forEach(this.getValues(_df,_e3),function(_e4){if(this.isItem(_e4)){if(!_df["backupRefs_"+this._reverseRefMap]){_df["backupRefs_"+this._reverseRefMap]=[];}_df["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(_e4),attr:_e3});this._removeReferenceFromMap(_e4,_df,_e3);}},this);},this);var _e5=_df[this._reverseRefMap];if(_e5){for(var _e6 in _e5){var _e7=null;if(this._itemsByIdentity){_e7=this._itemsByIdentity[_e6];}else{_e7=this._arrayOfAllItems[_e6];}if(_e7){for(var _e8 in _e5[_e6]){var _e9=this.getValues(_e7,_e8)||[];var _ea=_cc.filter(_e9,function(_eb){return !(this.isItem(_eb)&&this.getIdentity(_eb)==_e1);},this);this._removeReferenceFromMap(_df,_e7,_e8);if(_ea.length<_e9.length){this._setValueOrValues(_e7,_e8,_ea,true);}}}}}}this._arrayOfAllItems[_e0]=null;_df[this._storeRefPropName]=null;if(this._itemsByIdentity){delete this._itemsByIdentity[_e1];}this._pending._deletedItems[_e1]=_df;if(_df[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_df);}this.onDelete(_df);return true;},setValue:function(_ec,_ed,_ee){return this._setValueOrValues(_ec,_ed,_ee,true);},setValues:function(_ef,_f0,_f1){return this._setValueOrValues(_ef,_f0,_f1,true);},unsetAttribute:function(_f2,_f3){return this._setValueOrValues(_f2,_f3,[],true);},_setValueOrValues:function(_f4,_f5,_f6,_f7){this._assert(!this._saveInProgress);this._assertIsItem(_f4);this._assert(_ca.isString(_f5));this._assert(typeof _f6!=="undefined");var _f8=this._getIdentifierAttribute();if(_f5==_f8){throw new Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");}var _f9=this._getValueOrValues(_f4,_f5);var _fa=this.getIdentity(_f4);if(!this._pending._modifiedItems[_fa]){var _fb={};for(var key in _f4){if((key===this._storeRefPropName)||(key===this._itemNumPropName)||(key===this._rootItemPropName)){_fb[key]=_f4[key];}else{if(key===this._reverseRefMap){_fb[key]=_ca.clone(_f4[key]);}else{_fb[key]=_f4[key].slice(0,_f4[key].length);}}}this._pending._modifiedItems[_fa]=_fb;}var _fc=false;if(_ca.isArray(_f6)&&_f6.length===0){_fc=delete _f4[_f5];_f6=undefined;if(this.referenceIntegrity&&_f9){var _fd=_f9;if(!_ca.isArray(_fd)){_fd=[_fd];}for(var i=0;i<_fd.length;i++){var _fe=_fd[i];if(this.isItem(_fe)){this._removeReferenceFromMap(_fe,_f4,_f5);}}}}else{var _ff;if(_ca.isArray(_f6)){_ff=_f6.slice(0,_f6.length);}else{_ff=[_f6];}if(this.referenceIntegrity){if(_f9){var _fd=_f9;if(!_ca.isArray(_fd)){_fd=[_fd];}var map={};_cc.forEach(_fd,function(_100){if(this.isItem(_100)){var id=this.getIdentity(_100);map[id.toString()]=true;}},this);_cc.forEach(_ff,function(_101){if(this.isItem(_101)){var id=this.getIdentity(_101);if(map[id.toString()]){delete map[id.toString()];}else{this._addReferenceToMap(_101,_f4,_f5);}}},this);for(var rId in map){var _102;if(this._itemsByIdentity){_102=this._itemsByIdentity[rId];}else{_102=this._arrayOfAllItems[rId];}this._removeReferenceFromMap(_102,_f4,_f5);}}else{for(var i=0;i<_ff.length;i++){var _fe=_ff[i];if(this.isItem(_fe)){this._addReferenceToMap(_fe,_f4,_f5);}}}}_f4[_f5]=_ff;_fc=true;}if(_f7){this.onSet(_f4,_f5,_f9,_f6);}return _fc;},_addReferenceToMap:function(_103,_104,_105){var _106=this.getIdentity(_104);var _107=_103[this._reverseRefMap];if(!_107){_107=_103[this._reverseRefMap]={};}var _108=_107[_106];if(!_108){_108=_107[_106]={};}_108[_105]=true;},_removeReferenceFromMap:function(_109,_10a,_10b){var _10c=this.getIdentity(_10a);var _10d=_109[this._reverseRefMap];var _10e;if(_10d){for(_10e in _10d){if(_10e==_10c){delete _10d[_10e][_10b];if(this._isEmpty(_10d[_10e])){delete _10d[_10e];}}}if(this._isEmpty(_10d)){delete _109[this._reverseRefMap];}}},_dumpReferenceMap:function(){var i;for(i=0;i0){_11b=false;}}}return _11b;},save:function(_11c){this._assert(!this._saveInProgress);this._saveInProgress=true;var self=this;var _11d=function(){self._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};self._saveInProgress=false;if(_11c&&_11c.onComplete){var _11e=_11c.scope||_ce.global;_11c.onComplete.call(_11e);}};var _11f=function(err){self._saveInProgress=false;if(_11c&&_11c.onError){var _120=_11c.scope||_ce.global;_11c.onError.call(_120,err);}};if(this._saveEverything){var _121=this._getNewFileContentString();this._saveEverything(_11d,_11f,_121);}if(this._saveCustom){this._saveCustom(_11d,_11f);}if(!this._saveEverything&&!this._saveCustom){_11d();}},revert:function(){this._assert(!this._saveInProgress);var _122;for(_122 in this._pending._modifiedItems){var _123=this._pending._modifiedItems[_122];var _124=null;if(this._itemsByIdentity){_124=this._itemsByIdentity[_122];}else{_124=this._arrayOfAllItems[_122];}_123[this._storeRefPropName]=this;for(var key in _124){delete _124[key];}_ca.mixin(_124,_123);}var _125;for(_122 in this._pending._deletedItems){_125=this._pending._deletedItems[_122];_125[this._storeRefPropName]=this;var _126=_125[this._itemNumPropName];if(_125["backup_"+this._reverseRefMap]){_125[this._reverseRefMap]=_125["backup_"+this._reverseRefMap];delete _125["backup_"+this._reverseRefMap];}this._arrayOfAllItems[_126]=_125;if(this._itemsByIdentity){this._itemsByIdentity[_122]=_125;}if(_125[this._rootItemPropName]){this._arrayOfTopLevelItems.push(_125);}}for(_122 in this._pending._deletedItems){_125=this._pending._deletedItems[_122];if(_125["backupRefs_"+this._reverseRefMap]){_cc.forEach(_125["backupRefs_"+this._reverseRefMap],function(_127){var _128;if(this._itemsByIdentity){_128=this._itemsByIdentity[_127.id];}else{_128=this._arrayOfAllItems[_127.id];}this._addReferenceToMap(_128,_125,_127.attr);},this);delete _125["backupRefs_"+this._reverseRefMap];}}for(_122 in this._pending._newItems){var _129=this._pending._newItems[_122];_129[this._storeRefPropName]=null;this._arrayOfAllItems[_129[this._itemNumPropName]]=null;if(_129[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_129);}if(this._itemsByIdentity){delete this._itemsByIdentity[_122];}}this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};return true;},isDirty:function(item){if(item){var _12a=this.getIdentity(item);return new Boolean(this._pending._newItems[_12a]||this._pending._modifiedItems[_12a]||this._pending._deletedItems[_12a]).valueOf();}else{return !this._isEmpty(this._pending._newItems)||!this._isEmpty(this._pending._modifiedItems)||!this._isEmpty(this._pending._deletedItems);}},onSet:function(item,_12b,_12c,_12d){},onNew:function(_12e,_12f){},onDelete:function(_130){},close:function(_131){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("dojo/data/ItemFileReadStore",["../_base/kernel","../_base/lang","../_base/declare","../_base/array","../_base/xhr","../Evented","./util/filter","./util/simpleFetch","../date/stamp"],function(_132,lang,_133,_134,xhr,_135,_136,_137,_138){var _139=_133("dojo.data.ItemFileReadStore",[_135],{constructor:function(_13a){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_13a.url;this._ccUrl=_13a.url;this.url=_13a.url;this._jsonData=_13a.data;this.data=null;this._datatypeMap=_13a.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_13b){return _138.fromISOString(_13b);}};}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(_13a.urlPreventCache!==undefined){this.urlPreventCache=_13a.urlPreventCache?true:false;}if(_13a.hierarchical!==undefined){this.hierarchical=_13a.hierarchical?true:false;}if(_13a.clearOnClose){this.clearOnClose=true;}if("failOk" in _13a){this.failOk=_13a.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(_13c){if(typeof _13c!=="string"){throw new Error(this.declaredClass+": Invalid attribute argument.");}},getValue:function(item,_13d,_13e){var _13f=this.getValues(item,_13d);return (_13f.length>0)?_13f[0]:_13e;},getValues:function(item,_140){this._assertIsItem(item);this._assertIsAttribute(_140);return (item[_140]||[]).slice(0);},getAttributes:function(item){this._assertIsItem(item);var _141=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_141.push(key);}}return _141;},hasAttribute:function(item,_142){this._assertIsItem(item);this._assertIsAttribute(_142);return (_142 in item);},containsValue:function(item,_143,_144){var _145=undefined;if(typeof _144==="string"){_145=_136.patternToRegExp(_144,false);}return this._containsValue(item,_143,_144,_145);},_containsValue:function(item,_146,_147,_148){return _134.some(this.getValues(item,_146),function(_149){if(_149!==null&&!lang.isObject(_149)&&_148){if(_149.toString().match(_148)){return true;}}else{if(_147===_149){return true;}}});},isItem:function(_14a){if(_14a&&_14a[this._storeRefPropName]===this){if(this._arrayOfAllItems[_14a[this._itemNumPropName]]===_14a){return true;}}return false;},isItemLoaded:function(_14b){return this.isItem(_14b);},loadItem:function(_14c){this._assertIsItem(_14c.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(_14d,_14e,_14f){var _150=[],i,key;if(_14d.query){var _151,_152=_14d.queryOptions?_14d.queryOptions.ignoreCase:false;var _153={};for(key in _14d.query){_151=_14d.query[key];if(typeof _151==="string"){_153[key]=_136.patternToRegExp(_151,_152);}else{if(_151 instanceof RegExp){_153[key]=_151;}}}for(i=0;i<_14e.length;++i){var _154=true;var _155=_14e[i];if(_155===null){_154=false;}else{for(key in _14d.query){_151=_14d.query[key];if(!this._containsValue(_155,key,_151,_153[key])){_154=false;}}}if(_154){_150.push(_155);}}_14f(_150,_14d);}else{for(i=0;i<_14e.length;++i){var item=_14e[i];if(item!==null){_150.push(item);}}_14f(_150,_14d);}},_fetchItems:function(_156,_157,_158){var self=this;if(this._loadFinished){this.filter(_156,this._getItemsArray(_156.queryOptions),_157);}else{if(this._jsonFileUrl!==this._ccUrl){_132.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:_156,filter:lang.hitch(self,"filter"),findCallback:lang.hitch(self,_157)});}else{this._loadInProgress=true;var _159={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _15a=xhr.get(_159);_15a.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;self.filter(_156,self._getItemsArray(_156.queryOptions),_157);self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_158(e,_156);}});_15a.addErrback(function(_15b){self._loadInProgress=false;_158(_15b,_156);});var _15c=null;if(_156.abort){_15c=_156.abort;}_156.abort=function(){var df=_15a;if(df&&df.fired===-1){df.cancel();df=null;}if(_15c){_15c.call(_156);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;self.filter(_156,this._getItemsArray(_156.queryOptions),_157);}catch(e){_158(e,_156);}}else{_158(new Error(this.declaredClass+": No JSON source data was provided as either URL or a nested Javascript object."),_156);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;ib||a==null){r=1;}}return r;};_19b.createSortFunction=function(_19c,_19d){var _19e=[];function _19f(attr,dir,comp,s){return function(_1a0,_1a1){var a=s.getValue(_1a0,attr);var b=s.getValue(_1a1,attr);return dir*comp(a,b);};};var _1a2;var map=_19d.comparatorMap;var bc=_19b.basicComparator;for(var i=0;i<_19c.length;i++){_1a2=_19c[i];var attr=_1a2.attribute;if(attr){var dir=(_1a2.descending)?-1:1;var comp=bc;if(map){if(typeof attr!=="string"&&("toString" in attr)){attr=attr.toString();}comp=map[attr]||bc;}_19e.push(_19f(attr,dir,comp,_19d));}}return function(rowA,rowB){var i=0;while(i<_19e.length){var ret=_19e[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};return _19b;});},"dojo/selector/acme":function(){define("dojo/selector/acme",["../dom","../sniff","../_base/array","../_base/lang","../_base/window"],function(dom,has,_1a3,lang,win){var trim=lang.trim;var each=_1a3.forEach;var _1a4=function(){return win.doc;};var _1a5=(_1a4().compatMode)=="BackCompat";var _1a6=">~+";var _1a7=false;var _1a8=function(){return true;};var _1a9=function(_1aa){if(_1a6.indexOf(_1aa.slice(-1))>=0){_1aa+=" * ";}else{_1aa+=" ";}var ts=function(s,e){return trim(_1aa.slice(s,e));};var _1ab=[];var _1ac=-1,_1ad=-1,_1ae=-1,_1af=-1,_1b0=-1,inId=-1,_1b1=-1,_1b2,lc="",cc="",_1b3;var x=0,ql=_1aa.length,_1b4=null,_1b5=null;var _1b6=function(){if(_1b1>=0){var tv=(_1b1==x)?null:ts(_1b1,x);_1b4[(_1a6.indexOf(tv)<0)?"tag":"oper"]=tv;_1b1=-1;}};var _1b7=function(){if(inId>=0){_1b4.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _1b8=function(){if(_1b0>=0){_1b4.classes.push(ts(_1b0+1,x).replace(/\\/g,""));_1b0=-1;}};var _1b9=function(){_1b7();_1b6();_1b8();};var _1ba=function(){_1b9();if(_1af>=0){_1b4.pseudos.push({name:ts(_1af+1,x)});}_1b4.loops=(_1b4.pseudos.length||_1b4.attrs.length||_1b4.classes.length);_1b4.oquery=_1b4.query=ts(_1b3,x);_1b4.otag=_1b4.tag=(_1b4["oper"])?null:(_1b4.tag||"*");if(_1b4.tag){_1b4.tag=_1b4.tag.toUpperCase();}if(_1ab.length&&(_1ab[_1ab.length-1].oper)){_1b4.infixOper=_1ab.pop();_1b4.query=_1b4.infixOper.query+" "+_1b4.query;}_1ab.push(_1b4);_1b4=null;};for(;lc=cc,cc=_1aa.charAt(x),x=0){if(cc=="]"){if(!_1b5.attr){_1b5.attr=ts(_1ac+1,x);}else{_1b5.matchFor=ts((_1ae||_1ac+1),x);}var cmf=_1b5.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_1b5.matchFor=cmf.slice(1,-1);}}if(_1b5.matchFor){_1b5.matchFor=_1b5.matchFor.replace(/\\/g,"");}_1b4.attrs.push(_1b5);_1b5=null;_1ac=_1ae=-1;}else{if(cc=="="){var _1bb=("|~^$*".indexOf(lc)>=0)?lc:"";_1b5.type=_1bb+cc;_1b5.attr=ts(_1ac+1,x-_1bb.length);_1ae=x+1;}}}else{if(_1ad>=0){if(cc==")"){if(_1af>=0){_1b5.value=ts(_1ad+1,x);}_1af=_1ad=-1;}}else{if(cc=="#"){_1b9();inId=x+1;}else{if(cc=="."){_1b9();_1b0=x;}else{if(cc==":"){_1b9();_1af=x;}else{if(cc=="["){_1b9();_1ac=x;_1b5={};}else{if(cc=="("){if(_1af>=0){_1b5={name:ts(_1af+1,x),value:null};_1b4.pseudos.push(_1b5);}_1ad=x;}else{if((cc==" ")&&(lc!=cc)){_1ba();}}}}}}}}}return _1ab;};var _1bc=function(_1bd,_1be){if(!_1bd){return _1be;}if(!_1be){return _1bd;}return function(){return _1bd.apply(window,arguments)&&_1be.apply(window,arguments);};};var _1bf=function(i,arr){var r=arr||[];if(i){r.push(i);}return r;};var _1c0=function(n){return (1==n.nodeType);};var _1c1="";var _1c2=function(elem,attr){if(!elem){return _1c1;}if(attr=="class"){return elem.className||_1c1;}if(attr=="for"){return elem.htmlFor||_1c1;}if(attr=="style"){return elem.style.cssText||_1c1;}return (_1a7?elem.getAttribute(attr):elem.getAttribute(attr,2))||_1c1;};var _1c3={"*=":function(attr,_1c4){return function(elem){return (_1c2(elem,attr).indexOf(_1c4)>=0);};},"^=":function(attr,_1c5){return function(elem){return (_1c2(elem,attr).indexOf(_1c5)==0);};},"$=":function(attr,_1c6){return function(elem){var ea=" "+_1c2(elem,attr);var _1c7=ea.lastIndexOf(_1c6);return _1c7>-1&&(_1c7==(ea.length-_1c6.length));};},"~=":function(attr,_1c8){var tval=" "+_1c8+" ";return function(elem){var ea=" "+_1c2(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_1c9){var _1ca=_1c9+"-";return function(elem){var ea=_1c2(elem,attr);return ((ea==_1c9)||(ea.indexOf(_1ca)==0));};},"=":function(attr,_1cb){return function(elem){return (_1c2(elem,attr)==_1cb);};}};var _1cc=(typeof _1a4().firstChild.nextElementSibling=="undefined");var _1cd=!_1cc?"nextElementSibling":"nextSibling";var _1ce=!_1cc?"previousElementSibling":"previousSibling";var _1cf=(_1cc?_1c0:_1a8);var _1d0=function(node){while(node=node[_1ce]){if(_1cf(node)){return false;}}return true;};var _1d1=function(node){while(node=node[_1cd]){if(_1cf(node)){return false;}}return true;};var _1d2=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[_1cd]){if(_1cf(te)){if(has("ie")){te.setAttribute("_i",++i);}else{te["_i"]=++i;}if(node===te){ci=i;}}}return ci;};var _1d3=function(elem){return !((_1d2(elem))%2);};var _1d4=function(elem){return ((_1d2(elem))%2);};var _1d5={"checked":function(name,_1d6){return function(elem){return !!("checked" in elem?elem.checked:elem.selected);};},"disabled":function(name,_1d7){return function(elem){return elem.disabled;};},"enabled":function(name,_1d8){return function(elem){return !elem.disabled;};},"first-child":function(){return _1d0;},"last-child":function(){return _1d1;},"only-child":function(name,_1d9){return function(node){return _1d0(node)&&_1d1(node);};},"empty":function(name,_1da){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,_1db){var cz=_1db.charAt(0);if(cz=="\""||cz=="'"){_1db=_1db.slice(1,-1);}return function(elem){return (elem.innerHTML.indexOf(_1db)>=0);};},"not":function(name,_1dc){var p=_1a9(_1dc)[0];var _1dd={el:1};if(p.tag!="*"){_1dd.tag=1;}if(!p.classes.length){_1dd.classes=1;}var ntf=_1de(p,_1dd);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_1df){var pi=parseInt;if(_1df=="odd"){return _1d4;}else{if(_1df=="even"){return _1d3;}}if(_1df.indexOf("n")!=-1){var _1e0=_1df.split("n",2);var pred=_1e0[0]?((_1e0[0]=="-")?-1:pi(_1e0[0])):1;var idx=_1e0[1]?pi(_1e0[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=_1d2(elem);return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);};}else{_1df=idx;}}var _1e1=pi(_1df);return function(elem){return (_1d2(elem)==_1e1);};}};var _1e2=(has("ie")<9||has("ie")==9&&has("quirks"))?function(cond){var clc=cond.toLowerCase();if(clc=="class"){cond="className";}return function(elem){return (_1a7?elem.getAttribute(cond):elem[cond]||elem[clc]);};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _1de=function(_1e3,_1e4){if(!_1e3){return _1a8;}_1e4=_1e4||{};var ff=null;if(!("el" in _1e4)){ff=_1bc(ff,_1c0);}if(!("tag" in _1e4)){if(_1e3.tag!="*"){ff=_1bc(ff,function(elem){return (elem&&((_1a7?elem.tagName:elem.tagName.toUpperCase())==_1e3.getTag()));});}}if(!("classes" in _1e4)){each(_1e3.classes,function(_1e5,idx,arr){var re=new RegExp("(?:^|\\s)"+_1e5+"(?:\\s|$)");ff=_1bc(ff,function(elem){return re.test(elem.className);});ff.count=idx;});}if(!("pseudos" in _1e4)){each(_1e3.pseudos,function(_1e6){var pn=_1e6.name;if(_1d5[pn]){ff=_1bc(ff,_1d5[pn](pn,_1e6.value));}});}if(!("attrs" in _1e4)){each(_1e3.attrs,function(attr){var _1e7;var a=attr.attr;if(attr.type&&_1c3[attr.type]){_1e7=_1c3[attr.type](a,attr.matchFor);}else{if(a.length){_1e7=_1e2(a);}}if(_1e7){ff=_1bc(ff,_1e7);}});}if(!("id" in _1e4)){if(_1e3.id){ff=_1bc(ff,function(elem){return (!!elem&&(elem.id==_1e3.id));});}}if(!ff){if(!("default" in _1e4)){ff=_1a8;}}return ff;};var _1e8=function(_1e9){return function(node,ret,bag){while(node=node[_1cd]){if(_1cc&&(!_1c0(node))){continue;}if((!bag||_1ea(node,bag))&&_1e9(node)){ret.push(node);}break;}return ret;};};var _1eb=function(_1ec){return function(root,ret,bag){var te=root[_1cd];while(te){if(_1cf(te)){if(bag&&!_1ea(te,bag)){break;}if(_1ec(te)){ret.push(te);}}te=te[_1cd];}return ret;};};var _1ed=function(_1ee){_1ee=_1ee||_1a8;return function(root,ret,bag){var te,x=0,tret=root.children||root.childNodes;while(te=tret[x++]){if(_1cf(te)&&(!bag||_1ea(te,bag))&&(_1ee(te,x))){ret.push(te);}}return ret;};};var _1ef=function(node,root){var pn=node.parentNode;while(pn){if(pn==root){break;}pn=pn.parentNode;}return !!pn;};var _1f0={};var _1f1=function(_1f2){var _1f3=_1f0[_1f2.query];if(_1f3){return _1f3;}var io=_1f2.infixOper;var oper=(io?io.oper:"");var _1f4=_1de(_1f2,{el:1});var qt=_1f2.tag;var _1f5=("*"==qt);var ecs=_1a4()["getElementsByClassName"];if(!oper){if(_1f2.id){_1f4=(!_1f2.loops&&_1f5)?_1a8:_1de(_1f2,{el:1,id:1});_1f3=function(root,arr){var te=dom.byId(_1f2.id,(root.ownerDocument||root));if(!te||!_1f4(te)){return;}if(9==root.nodeType){return _1bf(te,arr);}else{if(_1ef(te,root)){return _1bf(te,arr);}}};}else{if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_1f2.classes.length&&!_1a5){_1f4=_1de(_1f2,{el:1,classes:1,id:1});var _1f6=_1f2.classes.join(" ");_1f3=function(root,arr,bag){var ret=_1bf(0,arr),te,x=0;var tret=root.getElementsByClassName(_1f6);while((te=tret[x++])){if(_1f4(te,root)&&_1ea(te,bag)){ret.push(te);}}return ret;};}else{if(!_1f5&&!_1f2.loops){_1f3=function(root,arr,bag){var ret=_1bf(0,arr),te,x=0;var tag=_1f2.getTag(),tret=tag?root.getElementsByTagName(tag):[];while((te=tret[x++])){if(_1ea(te,bag)){ret.push(te);}}return ret;};}else{_1f4=_1de(_1f2,{el:1,tag:1,id:1});_1f3=function(root,arr,bag){var ret=_1bf(0,arr),te,x=0;var tag=_1f2.getTag(),tret=tag?root.getElementsByTagName(tag):[];while((te=tret[x++])){if(_1f4(te,root)&&_1ea(te,bag)){ret.push(te);}}return ret;};}}}}else{var _1f7={el:1};if(_1f5){_1f7.tag=1;}_1f4=_1de(_1f2,_1f7);if("+"==oper){_1f3=_1e8(_1f4);}else{if("~"==oper){_1f3=_1eb(_1f4);}else{if(">"==oper){_1f3=_1ed(_1f4);}}}}return _1f0[_1f2.query]=_1f3;};var _1f8=function(root,_1f9){var _1fa=_1bf(root),qp,x,te,qpl=_1f9.length,bag,ret;for(var i=0;i0){bag={};ret.nozip=true;}var gef=_1f1(qp);for(var j=0;(te=_1fa[j]);j++){gef(te,ret,bag);}if(!ret.length){break;}_1fa=ret;}return ret;};var _1fb={},_1fc={};var _1fd=function(_1fe){var _1ff=_1a9(trim(_1fe));if(_1ff.length==1){var tef=_1f1(_1ff[0]);return function(root){var r=tef(root,[]);if(r){r.nozip=true;}return r;};}return function(root){return _1f8(root,_1ff);};};var _200=has("ie")?"commentStrip":"nozip";var qsa="querySelectorAll";var _201=!!_1a4()[qsa];var _202=/\\[>~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g;var _203=function(_204,pre,ch,post){return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):_204;};var _205=/([^[]*)([^\]]*])?/g;var _206=function(_207,_208,att){return _208.replace(_202,_203)+(att||"");};var _209=function(_20a,_20b){_20a=_20a.replace(_205,_206);if(_201){var _20c=_1fc[_20a];if(_20c&&!_20b){return _20c;}}var _20d=_1fb[_20a];if(_20d){return _20d;}var qcz=_20a.charAt(0);var _20e=(-1==_20a.indexOf(" "));if((_20a.indexOf("#")>=0)&&(_20e)){_20b=true;}var _20f=(_201&&(!_20b)&&(_1a6.indexOf(qcz)==-1)&&(!has("ie")||(_20a.indexOf(":")==-1))&&(!(_1a5&&(_20a.indexOf(".")>=0)))&&(_20a.indexOf(":contains")==-1)&&(_20a.indexOf(":checked")==-1)&&(_20a.indexOf("|=")==-1));if(_20f){var tq=(_1a6.indexOf(_20a.charAt(_20a.length-1))>=0)?(_20a+" *"):_20a;return _1fc[_20a]=function(root){try{if(!((9==root.nodeType)||_20e)){throw "";}var r=root[qsa](tq);r[_200]=true;return r;}catch(e){return _209(_20a,true)(root);}};}else{var _210=_20a.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return _1fb[_20a]=((_210.length<2)?_1fd(_20a):function(root){var _211=0,ret=[],tp;while((tp=_210[_211++])){ret=ret.concat(_1fd(tp)(root));}return ret;});}};var _212=0;var _213=has("ie")?function(node){if(_1a7){return (node.getAttribute("_uid")||node.setAttribute("_uid",++_212)||_212);}else{return node.uniqueID;}}:function(node){return (node._uid||(node._uid=++_212));};var _1ea=function(node,bag){if(!bag){return 1;}var id=_213(node);if(!bag[id]){return bag[id]=1;}return 0;};var _214="_zipIdx";var _215=function(arr){if(arr&&arr.nozip){return arr;}var ret=[];if(!arr||!arr.length){return ret;}if(arr[0]){ret.push(arr[0]);}if(arr.length<2){return ret;}_212++;var x,te;if(has("ie")&&_1a7){var _216=_212+"";arr[0].setAttribute(_214,_216);for(x=1;te=arr[x];x++){if(arr[x].getAttribute(_214)!=_216){ret.push(te);}te.setAttribute(_214,_216);}}else{if(has("ie")&&arr.commentStrip){try{for(x=1;te=arr[x];x++){if(_1c0(te)){ret.push(te);}}}catch(e){}}else{if(arr[0]){arr[0][_214]=_212;}for(x=1;te=arr[x];x++){if(arr[x][_214]!=_212){ret.push(te);}te[_214]=_212;}}}return ret;};var _217=function(_218,root){root=root||_1a4();var od=root.ownerDocument||root;_1a7=(od.createElement("div").tagName==="div");var r=_209(_218)(root);if(r&&r.nozip){return r;}return _215(r);};_217.filter=function(_219,_21a,root){var _21b=[],_21c=_1a9(_21a),_21d=(_21c.length==1&&!/[^\w#\.]/.test(_21a))?_1de(_21c[0]):function(node){return _1a3.indexOf(_217(_21a,dom.byId(root)),node)!=-1;};for(var x=0,te;te=_219[x];x++){if(_21d(te)){_21b.push(te);}}return _21b;};return _217;});},"dojo/Stateful":function(){define("dojo/Stateful",["./_base/declare","./_base/lang","./_base/array","dojo/when"],function(_21e,lang,_21f,when){return _21e("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}return (apn[name]={s:"_"+name+"Setter",g:"_"+name+"Getter"});},postscript:function(_220){if(_220){this.set(_220);}},_get:function(name,_221){return typeof this[_221.g]==="function"?this[_221.g]():this[name];},get:function(name){return this._get(name,this._getAttrNames(name));},set:function(name,_222){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _223=this._getAttrNames(name),_224=this._get(name,_223),_225=this[_223.s],_226;if(typeof _225==="function"){_226=_225.apply(this,Array.prototype.slice.call(arguments,1));}else{this[name]=_222;}if(this._watchCallbacks){var self=this;when(_226,function(){self._watchCallbacks(name,_224,_222);});}return this;},_changeAttrValue:function(name,_227){var _228=this.get(name);this[name]=_227;if(this._watchCallbacks){this._watchCallbacks(name,_228,_227);}return this;},watch:function(name,_229){var _22a=this._watchCallbacks;if(!_22a){var self=this;_22a=this._watchCallbacks=function(name,_22b,_22c,_22d){var _22e=function(_22f){if(_22f){_22f=_22f.slice();for(var i=0,l=_22f.length;i-1){_230.splice(_232,1);}};return _231;}});});},"dojo/string":function(){define("dojo/string",["./_base/kernel","./_base/lang"],function(_233,lang){var _234={};lang.setObject("dojo.string",_234);_234.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("");};_234.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=_234.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};_234.substitute=function(_235,map,_236,_237){_237=_237||_233.global;_236=_236?lang.hitch(_237,_236):function(v){return v;};return _235.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_238,key,_239){var _23a=lang.getObject(key,false,map);if(_239){_23a=lang.getObject(_239,false,_237).call(_237,_23a,key);}return _236(_23a,key).toString();});};_234.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 _234;});},"dojo/touch":function(){define("dojo/touch",["./_base/kernel","./aspect","./dom","./on","./has","./mouse","./ready","./_base/window"],function(dojo,_23b,dom,on,has,_23c,_23d,win){var _23e=has("touch");var ios4=false;if(has("ios")){var ua=navigator.userAgent;var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));ios4=os<5;}var _23f,_240;if(_23e){_23d(function(){_240=win.body();win.doc.addEventListener("touchstart",function(evt){var _241=_240;_240=evt.target;on.emit(_241,"dojotouchout",{target:_241,relatedTarget:_240,bubbles:true});on.emit(_240,"dojotouchover",{target:_240,relatedTarget:_241,bubbles:true});},true);on(win.doc,"touchmove",function(evt){var _242=win.doc.elementFromPoint(evt.pageX-(ios4?0:win.global.pageXOffset),evt.pageY-(ios4?0:win.global.pageYOffset));if(_242&&_240!==_242){on.emit(_240,"dojotouchout",{target:_240,relatedTarget:_242,bubbles:true});on.emit(_242,"dojotouchover",{target:_242,relatedTarget:_240,bubbles:true});_240=_242;}});});_23f=function(node,_243){return on(win.doc,"touchmove",function(evt){if(node===win.doc||dom.isDescendant(_240,node)){evt.target=_240;_243.call(this,evt);}});};}function _244(type){return function(node,_245){return on(node,type,_245);};};var _246={press:_244(_23e?"touchstart":"mousedown"),move:_23e?_23f:_244("mousemove"),release:_244(_23e?"touchend":"mouseup"),cancel:_23e?_244("touchcancel"):_23c.leave,over:_244(_23e?"dojotouchover":"mouseover"),out:_244(_23e?"dojotouchout":"mouseout"),enter:_23c._eventHandler(_23e?"dojotouchover":"mouseover"),leave:_23c._eventHandler(_23e?"dojotouchout":"mouseout")};1&&(dojo.touch=_246);return _246;});},"dojo/uacss":function(){define("dojo/uacss",["./dom-geometry","./_base/lang","./ready","./sniff","./_base/window"],function(_247,lang,_248,has,_249){var html=_249.doc.documentElement,ie=has("ie"),_24a=has("opera"),maj=Math.floor,ff=has("ff"),_24b=_247.boxModel.replace(/-/,""),_24c={"dj_quirks":has("quirks"),"dj_opera":_24a,"dj_khtml":has("khtml"),"dj_webkit":has("webkit"),"dj_safari":has("safari"),"dj_chrome":has("chrome"),"dj_gecko":has("mozilla")};if(ie){_24c["dj_ie"]=true;_24c["dj_ie"+maj(ie)]=true;_24c["dj_iequirks"]=has("quirks");}if(ff){_24c["dj_ff"+maj(ff)]=true;}_24c["dj_"+_24b]=true;var _24d="";for(var clz in _24c){if(_24c[clz]){_24d+=clz+" ";}}html.className=lang.trim(html.className+" "+_24d);_248(90,function(){if(!_247.isBodyLtr()){var _24e="dj_rtl dijitRtl "+_24d.replace(/ /g,"-rtl ");html.className=lang.trim(html.className+" "+_24e+"dj_rtl dijitRtl "+_24d.replace(/ /g,"-rtl "));}});return has;});},"dojo/window":function(){define("dojo/window",["./_base/lang","./sniff","./_base/window","./dom","./dom-geometry","./dom-style"],function(lang,has,_24f,dom,geom,_250){var _251={getBox:function(doc){doc=doc||_24f.doc;var _252=(doc.compatMode=="BackCompat")?_24f.body(doc):doc.documentElement,_253=geom.docScroll(doc),w,h;if(has("touch")){var _254=_251.get(doc);w=_254.innerWidth||_252.clientWidth;h=_254.innerHeight||_252.clientHeight;}else{w=_252.clientWidth;h=_252.clientHeight;}return {l:_253.x,t:_253.y,w:w,h:h};},get:function(doc){if(has("ie")&&_251!==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||_24f.doc,body=_24f.body(doc),html=doc.documentElement||body.parentNode,isIE=has("ie"),isWK=has("webkit");if((!(has("mozilla")||isIE||isWK||has("opera"))||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return;}var _255=doc.compatMode=="BackCompat",_256=(isIE>=9&&"frameElement" in node.ownerDocument.parentWindow)?((html.clientHeight>0&&html.clientWidth>0&&(body.clientHeight==0||body.clientWidth==0||body.clientHeight>html.clientHeight||body.clientWidth>html.clientWidth))?html:body):(_255?body:html),_257=isWK?body:_256,_258=_256.clientWidth,_259=_256.clientHeight,rtl=!geom.isBodyLtr(doc),_25a=pos||geom.position(node),el=node.parentNode,_25b=function(el){return ((isIE<=6||(isIE&&_255))?false:(_250.get(el,"position").toLowerCase()=="fixed"));};if(_25b(node)){return;}while(el){if(el==body){el=_257;}var _25c=geom.position(el),_25d=_25b(el);if(el==_257){_25c.w=_258;_25c.h=_259;if(_257==html&&isIE&&rtl){_25c.x+=_257.offsetWidth-_25c.w;}if(_25c.x<0||!isIE){_25c.x=0;}if(_25c.y<0||!isIE){_25c.y=0;}}else{var pb=geom.getPadBorderExtents(el);_25c.w-=pb.w;_25c.h-=pb.h;_25c.x+=pb.l;_25c.y+=pb.t;var _25e=el.clientWidth,_25f=_25c.w-_25e;if(_25e>0&&_25f>0){_25c.w=_25e;_25c.x+=(rtl&&(isIE||el.clientLeft>pb.l))?_25f:0;}_25e=el.clientHeight;_25f=_25c.h-_25e;if(_25e>0&&_25f>0){_25c.h=_25e;}}if(_25d){if(_25c.y<0){_25c.h+=_25c.y;_25c.y=0;}if(_25c.x<0){_25c.w+=_25c.x;_25c.x=0;}if(_25c.y+_25c.h>_259){_25c.h=_259-_25c.y;}if(_25c.x+_25c.w>_258){_25c.w=_258-_25c.x;}}var l=_25a.x-_25c.x,t=_25a.y-Math.max(_25c.y,0),r=l+_25a.w-_25c.w,bot=t+_25a.h-_25c.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_255)||isIE>=9)){s=-s;}_25a.x+=el.scrollLeft;el.scrollLeft+=s;_25a.x-=el.scrollLeft;}if(bot*t>0){_25a.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_25a.y-=el.scrollTop;}el=(el!=_257)&&!_25d&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}}};1&&lang.setObject("dojo.window",_251);return _251;});},"dojo/NodeList-fx":function(){define("dojo/NodeList-fx",["./query","./_base/lang","./_base/connect","./_base/fx","./fx"],function(_260,lang,_261,_262,_263){var _264=_260.NodeList;lang.extend(_264,{_anim:function(obj,_265,args){args=args||{};var a=_263.combine(this.map(function(item){var _266={node:item};lang.mixin(_266,args);return obj[_265](_266);}));return args.auto?a.play()&&this:a;},wipeIn:function(args){return this._anim(_263,"wipeIn",args);},wipeOut:function(args){return this._anim(_263,"wipeOut",args);},slideTo:function(args){return this._anim(_263,"slideTo",args);},fadeIn:function(args){return this._anim(_262,"fadeIn",args);},fadeOut:function(args){return this._anim(_262,"fadeOut",args);},animateProperty:function(args){return this._anim(_262,"animateProperty",args);},anim:function(_267,_268,_269,_26a,_26b){var _26c=_263.combine(this.map(function(item){return _262.animateProperty({node:item,properties:_267,duration:_268||350,easing:_269});}));if(_26a){_261.connect(_26c,"onEnd",_26a);}return _26c.play(_26b||0);}});return _264;});},"dojo/fx":function(){define("dojo/fx",["./_base/lang","./Evented","./_base/kernel","./_base/array","./_base/connect","./_base/fx","./dom","./dom-style","./dom-geometry","./ready","require"],function(lang,_26d,dojo,_26e,_26f,_270,dom,_271,geom,_272,_273){if(!dojo.isAsync){_272(0,function(){var _274=["./fx/Toggler"];_273(_274);});}var _275=dojo.fx={};var _276={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _277=function(_278){this._index=-1;this._animations=_278||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;_26e.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};_277.prototype=new _26d();lang.extend(_277,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){_26f.disconnect(this._onAnimateCtx);_26f.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=_26f.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=_26f.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_279,_27a){if(!this._current){this._current=this._animations[this._index=0];}if(!_27a&&this._current.status()=="playing"){return this;}var _27b=_26f.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_27c=_26f.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_27d=_26f.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);_26f.disconnect(_27b);_26f.disconnect(_27c);_26f.disconnect(_27d);});if(this._onAnimateCtx){_26f.disconnect(this._onAnimateCtx);}this._onAnimateCtx=_26f.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){_26f.disconnect(this._onEndCtx);}this._onEndCtx=_26f.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=_26f.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);_26f.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_27e,_27f){this.pause();var _280=this.duration*_27e;this._current=null;_26e.some(this._animations,function(a){if(a.duration<=_280){this._current=a;return true;}_280-=a.duration;return false;});if(this._current){this._current.gotoPercent(_280/this._current.duration,_27f);}return this;},stop:function(_281){if(this._current){if(_281){for(;this._index+1this._animations.length){this._fire("onEnd");}},_call:function(_287,args){var t=this._pseudoAnimation;t[_287].apply(t,args);},play:function(_288,_289){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(_28a,_28b){var ms=this.duration*_28a;_26e.forEach(this._animations,function(a){a.gotoPercent(a.duration0?_298.delay:0;this.skip=_298.skip;this.mover=_298.mover?_298.mover:_296;this.events=[on(this.handle,_295.press,lang.hitch(this,"onMouseDown")),on(this.handle,"dragstart",lang.hitch(this,"onSelectStart")),on(this.handle,"selectstart",lang.hitch(this,"onSelectStart"))];},markupFactory:function(_299,node,Ctor){return new Ctor(node,_299);},destroy:function(){_28f.forEach(this.events,function(_29a){_29a.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,_295.move,lang.hitch(this,"onMouseMove")),on(this.handle,_295.release,lang.hitch(this,"onMouseUp")));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}_291.stop(e);},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);}_291.stop(e);},onMouseUp:function(e){for(var i=0;i<2;++i){this.events.pop().remove();}_291.stop(e);},onSelectStart:function(e){if(!this.skip||!dnd.isFormElement(e)){_291.stop(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_29b){_294.publish("/dnd/move/start",_29b);_292.add(win.body(),"dojoMove");_292.add(this.node,"dojoMoveItem");},onMoveStop:function(_29c){_294.publish("/dnd/move/stop",_29c);_292.remove(win.body(),"dojoMove");_292.remove(this.node,"dojoMoveItem");},onFirstMove:function(){},onMove:function(_29d,_29e){this.onMoving(_29d,_29e);var s=_29d.node.style;s.left=_29e.l+"px";s.top=_29e.t+"px";this.onMoved(_29d,_29e);},onMoving:function(){},onMoved:function(){}});return _297;});},"dojo/dnd/common":function(){define("dojo/dnd/common",["../_base/connect","../_base/kernel","../_base/lang","../dom"],function(_29f,_2a0,lang,dom){var _2a1=lang.getObject("dojo.dnd",true);_2a1.getCopyKeyState=_29f.isCopyKey;_2a1._uniqueId=0;_2a1.getUniqueId=function(){var id;do{id=_2a0._scopeName+"Unique"+(++_2a1._uniqueId);}while(dom.byId(id));return id;};_2a1._empty={};_2a1.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};return _2a1;});},"dojo/dnd/Mover":function(){define("dojo/dnd/Mover",["../_base/array","../_base/declare","../_base/event","../_base/lang","../sniff","../_base/window","../dom","../dom-geometry","../dom-style","../Evented","../on","../touch","./common","./autoscroll"],function(_2a2,_2a3,_2a4,lang,has,win,dom,_2a5,_2a6,_2a7,on,_2a8,dnd,_2a9){return _2a3("dojo.dnd.Mover",[_2a7],{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;this.events=[on(d,_2a8.move,lang.hitch(this,"onFirstMove")),on(d,_2a8.move,lang.hitch(this,"onMouseMove")),on(d,_2a8.release,lang.hitch(this,"onMouseUp")),on(d,"dragstart",_2a4.stop),on(d.body,"selectstart",_2a4.stop)];_2a9.autoScrollStart(d);if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){_2a9.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY},e);_2a4.stop(e);},onMouseUp:function(e){if(has("webkit")&&has("mac")&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}_2a4.stop(e);},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=_2a5.getMarginBox(this.node);var b=win.doc.body;var bs=_2a6.getComputedStyle(b);var bm=_2a5.getMarginBox(b,bs);var bc=_2a5.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(){_2a2.forEach(this.events,function(_2aa){_2aa.remove();});var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});});},"dojo/dnd/autoscroll":function(){define("dojo/dnd/autoscroll",["../_base/lang","../sniff","../_base/window","../dom-geometry","../dom-style","../window"],function(lang,has,win,_2ab,_2ac,_2ad){var _2ae={};lang.setObject("dojo.dnd.autoscroll",_2ae);_2ae.getViewport=_2ad.getBox;_2ae.V_TRIGGER_AUTOSCROLL=32;_2ae.H_TRIGGER_AUTOSCROLL=32;_2ae.V_AUTOSCROLL_VALUE=16;_2ae.H_AUTOSCROLL_VALUE=16;var _2af,doc=win.doc,_2b0=Infinity,_2b1=Infinity;_2ae.autoScrollStart=function(d){doc=d;_2af=_2ad.getBox(doc);var html=win.body(doc).parentNode;_2b0=Math.max(html.scrollHeight-_2af.h,0);_2b1=Math.max(html.scrollWidth-_2af.w,0);};_2ae.autoScroll=function(e){var v=_2af||_2ad.getBox(doc),html=win.body(doc).parentNode,dx=0,dy=0;if(e.clientX<_2ae.H_TRIGGER_AUTOSCROLL){dx=-_2ae.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-_2ae.H_TRIGGER_AUTOSCROLL){dx=Math.min(_2ae.H_AUTOSCROLL_VALUE,_2b1-html.scrollLeft);}}if(e.clientY<_2ae.V_TRIGGER_AUTOSCROLL){dy=-_2ae.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-_2ae.V_TRIGGER_AUTOSCROLL){dy=Math.min(_2ae.V_AUTOSCROLL_VALUE,_2b0-html.scrollTop);}}window.scrollBy(dx,dy);};_2ae._validNodes={"div":1,"p":1,"td":1};_2ae._validOverflow={"auto":1,"scroll":1};_2ae.autoScrollNodes=function(e){var b,t,w,h,rx,ry,dx=0,dy=0,_2b2,_2b3;for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in _2ae._validNodes)){var s=_2ac.getComputedStyle(n),_2b4=(s.overflow.toLowerCase() in _2ae._validOverflow),_2b5=(s.overflowX.toLowerCase() in _2ae._validOverflow),_2b6=(s.overflowY.toLowerCase() in _2ae._validOverflow);if(_2b4||_2b5||_2b6){b=_2ab.getContentBox(n,s);t=_2ab.position(n,true);}if(_2b4||_2b5){w=Math.min(_2ae.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;}}_2b2=n.scrollLeft;n.scrollLeft=n.scrollLeft+dx;}}if(_2b4||_2b6){h=Math.min(_2ae.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;}}_2b3=n.scrollTop;n.scrollTop=n.scrollTop+dy;}}if(dx||dy){return;}}try{n=n.parentNode;}catch(x){n=null;}}_2ae.autoScroll(e);};return _2ae;});},"dojo/dnd/move":function(){define("dojo/dnd/move",["../_base/declare","../dom-geometry","../dom-style","./common","./Mover","./Moveable"],function(_2b7,_2b8,_2b9,dnd,_2ba,_2bb){var _2bc=_2b7("dojo.dnd.move.constrainedMoveable",_2bb,{constraints:function(){},within:false,constructor:function(node,_2bd){if(!_2bd){_2bd={};}this.constraints=_2bd.constraints;this.within=_2bd.within;},onFirstMove:function(_2be){var c=this.constraintBox=this.constraints.call(this,_2be);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=_2b8.getMarginSize(_2be.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_2bf,_2c0){var c=this.constraintBox,s=_2bf.node.style;this.onMoving(_2bf,_2c0);_2c0.l=_2c0.l=0){this.timeout=_2c8.timeout;}},onMoveStop:function(_2c9){if(_2c9._timer){clearTimeout(_2c9._timer);_2c7.call(this,_2c9,_2c9._leftTop);}_2c6.prototype.onMoveStop.apply(this,arguments);},onMove:function(_2ca,_2cb){_2ca._leftTop=_2cb;if(!_2ca._timer){var _2cc=this;_2ca._timer=setTimeout(function(){_2ca._timer=null;_2c7.call(_2cc,_2ca,_2ca._leftTop);},this.timeout);}}});});},"dojo/fx/Toggler":function(){define("dojo/fx/Toggler",["../_base/lang","../_base/declare","../_base/fx","../_base/connect"],function(lang,_2cd,_2ce,_2cf){return _2cd("dojo.fx.Toggler",null,{node:null,showFunc:_2ce.fadeIn,hideFunc:_2ce.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){var _2d0=this;lang.mixin(_2d0,args);_2d0.node=args.node;_2d0._showArgs=lang.mixin({},args);_2d0._showArgs.node=_2d0.node;_2d0._showArgs.duration=_2d0.showDuration;_2d0.showAnim=_2d0.showFunc(_2d0._showArgs);_2d0._hideArgs=lang.mixin({},args);_2d0._hideArgs.node=_2d0.node;_2d0._hideArgs.duration=_2d0.hideDuration;_2d0.hideAnim=_2d0.hideFunc(_2d0._hideArgs);_2cf.connect(_2d0.showAnim,"beforeBegin",lang.hitch(_2d0.hideAnim,"stop",true));_2cf.connect(_2d0.hideAnim,"beforeBegin",lang.hitch(_2d0.showAnim,"stop",true));},show:function(_2d1){return this.showAnim.play(_2d1||0);},hide:function(_2d2){return this.hideAnim.play(_2d2||0);}});});},"dojo/html":function(){define("dojo/html",["./_base/kernel","./_base/lang","./_base/array","./_base/declare","./dom","./dom-construct","./parser"],function(_2d3,lang,_2d4,_2d5,dom,_2d6,_2d7){var html={};lang.setObject("dojo.html",html);var _2d8=0;html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*]+>|]*>[\s\S]*?<\/title>)/ig,"");};html._emptyNode=_2d6.empty;html._setNodeContent=function(node,cont){_2d6.empty(node);if(cont){if(typeof cont=="string"){cont=_2d6.toDom(cont,node.ownerDocument);}if(!cont.nodeType&&lang.isArrayLike(cont)){for(var _2d9=cont.length,i=0;i]*>\s*([\s\S]+)\s*<\/body>/im);if(_2dd){cont=_2dd[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(_2de){var _2df={},key;for(key in _2de){if(key in _2df){continue;}this[key]=_2de[key];}},_parse:function(){var _2e0=this.node;try{var _2e1={};_2d4.forEach(["dir","lang","textDir"],function(name){if(this[name]){_2e1[name]=this[name];}},this);var self=this;this.parseDeferred=_2d7.parse({rootNode:_2e0,noStart:!this.startup,inherited:_2e1,scope:this.parserScope}).then(function(_2e2){return self.parseResults=_2e2;});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_2e3){var _2e4=this["on"+type+"Error"].call(this,err);if(_2e3){console.error(_2e3,err);}else{if(_2e4){html._setNodeContent(this.node,_2e4,true);}}}});html.set=function(node,cont,_2e5){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_2e5){return html._setNodeContent(node,cont,true);}else{var op=new html._ContentSetter(lang.mixin(_2e5,{content:cont,node:node}));return op.set();}};return html;});},"dojo/i18n":function(){define("dojo/i18n",["./_base/kernel","require","./has","./_base/array","./_base/config","./_base/lang","./_base/xhr","./json","module"],function(dojo,_2e6,has,_2e7,_2e8,lang,xhr,json,_2e9){has.add("dojo-preload-i18n-Api",1);1||has.add("dojo-v1x-i18n-Api",1);var _2ea=dojo.i18n={},_2eb=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,_2ec=function(root,_2ed,_2ee,_2ef){for(var _2f0=[_2ee+_2ef],_2f1=_2ed.split("-"),_2f2="",i=0;i<_2f1.length;i++){_2f2+=(_2f2?"-":"")+_2f1[i];if(!root||root[_2f2]){_2f0.push(_2ee+_2f2+"/"+_2ef);}}return _2f0;},_2f3={},_2f4=function(_2f5,_2f6,_2f7){_2f7=_2f7?_2f7.toLowerCase():dojo.locale;_2f5=_2f5.replace(/\./g,"/");_2f6=_2f6.replace(/\./g,"/");return (/root/i.test(_2f7))?(_2f5+"/nls/"+_2f6):(_2f5+"/nls/"+_2f7+"/"+_2f6);},_2f8=dojo.getL10nName=function(_2f9,_2fa,_2fb){return _2f9=_2e9.id+"!"+_2f4(_2f9,_2fa,_2fb);},_2fc=function(_2fd,_2fe,_2ff,_300,_301,load){_2fd([_2fe],function(root){var _302=lang.clone(root.root),_303=_2ec(!root._v1x&&root,_301,_2ff,_300);_2fd(_303,function(){for(var i=1;i<_303.length;i++){_302=lang.mixin(lang.clone(_302),arguments[i]);}var _304=_2fe+"/"+_301;_2f3[_304]=_302;load();});});},_305=function(id,_306){return /^\./.test(id)?_306(id):id;},_307=function(_308){var list=_2e8.extraLocale||[];list=lang.isArray(list)?list:[list];list.push(_308);return list;},load=function(id,_309,load){if(has("dojo-preload-i18n-Api")){var _30a=id.split("*"),_30b=_30a[1]=="preload";if(_30b){if(!_2f3[id]){_2f3[id]=1;_30c(_30a[2],json.parse(_30a[3]),1,_309);}load(1);}if(_30b||_30d(id,_309,load)){return;}}var _30e=_2eb.exec(id),_30f=_30e[1]+"/",_310=_30e[5]||_30e[4],_311=_30f+_310,_312=(_30e[5]&&_30e[4]),_313=_312||dojo.locale,_314=_311+"/"+_313,_315=_312?[_313]:_307(_313),_316=_315.length,_317=function(){if(!--_316){load(lang.delegate(_2f3[_314]));}};_2e7.forEach(_315,function(_318){var _319=_311+"/"+_318;if(has("dojo-preload-i18n-Api")){_31a(_319);}if(!_2f3[_319]){_2fc(_309,_311,_30f,_310,_318,_317);}else{_317();}});};if(has("dojo-unit-tests")){var _31b=_2ea.unitTests=[];}if(has("dojo-preload-i18n-Api")||1){var _31c=_2ea.normalizeLocale=function(_31d){var _31e=_31d?_31d.toLowerCase():dojo.locale;return _31e=="root"?"ROOT":_31e;},isXd=function(mid,_31f){return (1&&1)?_31f.isXdUrl(_2e6.toUrl(mid+".js")):true;},_320=0,_321=[],_30c=_2ea._preloadLocalizations=function(_322,_323,_324,_325){_325=_325||_2e6;function _326(mid,_327){if(isXd(mid,_325)||_324){_325([mid],_327);}else{_331([mid],_327,_325);}};function _328(_329,func){var _32a=_329.split("-");while(_32a.length){if(func(_32a.join("-"))){return;}_32a.pop();}func("ROOT");};function _32b(_32c){_32c=_31c(_32c);_328(_32c,function(loc){if(_2e7.indexOf(_323,loc)>=0){var mid=_322.replace(/\./g,"/")+"_"+loc;_320++;_326(mid,function(_32d){for(var p in _32d){_2f3[_2e6.toAbsMid(p)+"/"+loc]=_32d[p];}--_320;while(!_320&&_321.length){load.apply(null,_321.shift());}});return true;}return false;});};_32b();_2e7.forEach(dojo.config.extraLocale,_32b);},_30d=function(id,_32e,load){if(_320){_321.push([id,_32e,load]);}return _320;},_31a=function(){};}if(1){var _32f={},_330=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;"+"}"),_331=function(deps,_332,_333){var _334=[];_2e7.forEach(deps,function(mid){var url=_333.toUrl(mid+".js");function load(text){var _335=_330(text,_31a,mid,_32f);if(_335===_32f){_334.push(_2f3[url]=_32f.result);}else{if(_335 instanceof Error){console.error("failed to evaluate i18n bundle; url="+url,_335);_335={};}_334.push(_2f3[url]=(/nls\/[^\/]+\/[^\/]+$/.test(url)?_335:{root:_335,_v1x:1}));}};if(_2f3[url]){_334.push(_2f3[url]);}else{var _336=_333.syncLoadNls(mid);if(_336){_334.push(_336);}else{if(!xhr){try{_333.getText(url,true,load);}catch(e){_334.push(_2f3[url]={});}}else{xhr.get({url:url,sync:true,load:load,error:function(){_334.push(_2f3[url]={});}});}}}});_332&&_332.apply(null,_334);};_31a=function(_337){for(var _338,_339=_337.split("/"),_33a=dojo.global[_339[0]],i=1;_33a&&i<_339.length-1;_33a=_33a[_339[i++]]){}if(_33a){_338=_33a[_339[i]];if(!_338){_338=_33a[_339[i].replace(/-/g,"_")];}if(_338){_2f3[_337]=_338;}}return _338;};_2ea.getLocalization=function(_33b,_33c,_33d){var _33e,_33f=_2f4(_33b,_33c,_33d);load(_33f,(!isXd(_33f,_2e6)?function(deps,_340){_331(deps,_340,_2e6);}:_2e6),function(_341){_33e=_341;});return _33e;};if(has("dojo-unit-tests")){_31b.push(function(doh){doh.register("tests.i18n.unit",function(t){var _342;_342=_330("{prop:1}",_31a,"nonsense",_32f);t.is({prop:1},_342);t.is(undefined,_342[1]);_342=_330("({prop:1})",_31a,"nonsense",_32f);t.is({prop:1},_342);t.is(undefined,_342[1]);_342=_330("{'prop-x':1}",_31a,"nonsense",_32f);t.is({"prop-x":1},_342);t.is(undefined,_342[1]);_342=_330("({'prop-x':1})",_31a,"nonsense",_32f);t.is({"prop-x":1},_342);t.is(undefined,_342[1]);_342=_330("define({'prop-x':1})",_31a,"nonsense",_32f);t.is(_32f,_342);t.is({"prop-x":1},_32f.result);_342=_330("define('some/module', {'prop-x':1})",_31a,"nonsense",_32f);t.is(_32f,_342);t.is({"prop-x":1},_32f.result);_342=_330("this is total nonsense and should throw an error",_31a,"nonsense",_32f);t.is(_342 instanceof Error,true);});});}}return lang.mixin(_2ea,{dynamic:true,normalize:_305,load:load,cache:_2f3});});},"dijit/dijit":function(){define("dijit/dijit",["./main","./_base","dojo/parser","./_Widget","./_TemplatedMixin","./_Container","./layout/_LayoutWidget","./form/_FormWidget","./form/_FormValueWidget"],function(_343){return _343;});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dijit/_base":function(){define("dijit/_base",["./main","./a11y","./WidgetSet","./_base/focus","./_base/manager","./_base/place","./_base/popup","./_base/scroll","./_base/sniff","./_base/typematic","./_base/wai","./_base/window"],function(_344){return _344._base;});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/_base/config","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/sniff","./main"],function(_345,_346,_347,dom,_348,_349,has,_34a){var _34b=(_34a._isElementShown=function(elem){var s=_349.get(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_348.get(elem,"type")!="hidden");});_34a.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _348.has(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _34c=elem.contentDocument;if("designMode" in _34c&&_34c.designMode=="on"){return true;}body=_34c.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";}};var _34d=(_34a.isTabNavigable=function(elem){if(_348.get(elem,"disabled")){return false;}else{if(_348.has(elem,"tabIndex")){return _348.get(elem,"tabIndex")>=0;}else{return _34a.hasDefaultTabStop(elem);}}});_34a._getTabNavigable=function(root){var _34e,last,_34f,_350,_351,_352,_353={};function _354(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _355=function(_356){for(var _357=_356.firstChild;_357;_357=_357.nextSibling){if(_357.nodeType!=1||(has("ie")<=9&&_357.scopeName!=="HTML")||!_34b(_357)){continue;}if(_34d(_357)){var _358=+_348.get(_357,"tabIndex");if(!_348.has(_357,"tabIndex")||_358==0){if(!_34e){_34e=_357;}last=_357;}else{if(_358>0){if(!_34f||_358<_350){_350=_358;_34f=_357;}if(!_351||_358>=_352){_352=_358;_351=_357;}}}var rn=_354(_357);if(_348.get(_357,"checked")&&rn){_353[rn]=_357;}}if(_357.nodeName.toUpperCase()!="SELECT"){_355(_357);}}};if(_34b(root)){_355(root);}function rs(node){return _353[_354(node)]||node;};return {first:rs(_34e),last:rs(last),lowest:rs(_34f),highest:rs(_351)};};_34a.getFirstInTabbingOrder=function(root,doc){var _359=_34a._getTabNavigable(dom.byId(root,doc));return _359.lowest?_359.lowest:_359.first;};_34a.getLastInTabbingOrder=function(root,doc){var _35a=_34a._getTabNavigable(dom.byId(root,doc));return _35a.last?_35a.last:_35a.highest;};return {hasDefaultTabStop:_34a.hasDefaultTabStop,isTabNavigable:_34a.isTabNavigable,_getTabNavigable:_34a._getTabNavigable,getFirstInTabbingOrder:_34a.getFirstInTabbingOrder,getLastInTabbingOrder:_34a.getLastInTabbingOrder};});},"dijit/WidgetSet":function(){define("dijit/WidgetSet",["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","./registry"],function(_35b,_35c,_35d,_35e){var _35f=_35c("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_360){if(this._hash[_360.id]){throw new Error("Tried to register widget with id=="+_360.id+" but that id is already registered");}this._hash[_360.id]=_360;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_361){_361=_361||_35d.global;var i=0,id;for(id in this._hash){func.call(_361,this._hash[id],i++,this._hash);}return this;},filter:function(_362,_363){_363=_363||_35d.global;var res=new _35f(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_362.call(_363,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new _35f(),id,_364;for(id in this._hash){_364=this._hash[id];if(_364.declaredClass==cls){res.add(_364);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_365){return _35b.map(this.toArray(),func,_365);},every:function(func,_366){_366=_366||_35d.global;var x=0,i;for(i in this._hash){if(!func.call(_366,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_367){_367=_367||_35d.global;var x=0,i;for(i in this._hash){if(func.call(_367,this._hash[i],x++,this._hash)){return true;}}return false;}});_35b.forEach(["forEach","filter","byClass","map","every","some"],function(func){_35e[func]=_35f.prototype[func];});return _35f;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/sniff","dojo/_base/unload","dojo/_base/window","./main"],function(_368,has,_369,win,_36a){var _36b={},hash={};var _36c={length:0,add:function(_36d){if(hash[_36d.id]){throw new Error("Tried to register widget with id=="+_36d.id+" but that id is already registered");}hash[_36d.id]=_36d;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(_36e){var id;do{id=_36e+"_"+(_36e in _36b?++_36b[_36e]:_36b[_36e]=0);}while(hash[id]);return _36a._scopeName=="dijit"?id:_36a._scopeName+"_"+id;},findWidgets:function(root,_36f){var _370=[];function _371(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _372=node.getAttribute("widgetId");if(_372){var _373=hash[_372];if(_373){_370.push(_373);}}else{if(node!==_36f){_371(node);}}}}};_371(root);return _370;},_destroyAll:function(){_36a._curFocus=null;_36a._prevFocus=null;_36a._activeStack=[];_368.forEach(_36c.findWidgets(win.body()),function(_374){if(!_374._destroyed){if(_374.destroyRecursive){_374.destroyRecursive();}else{if(_374.destroy){_374.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};_36a.registry=_36c;return _36c;});},"dijit/_base/focus":function(){define("dijit/_base/focus",["dojo/_base/array","dojo/dom","dojo/_base/lang","dojo/topic","dojo/_base/window","../focus","../main"],function(_375,dom,lang,_376,win,_377,_378){var _379={_curFocus:null,_prevFocus:null,isCollapsed:function(){return _378.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=win.doc.selection,cf=_377.curNode;if(win.global.getSelection){sel=win.global.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=_3a8;i--){_3a9=_396.byId(_3a7[i]);if(_3a9){_3a9._hasBeenBlurred=true;_3a9.set("focused",false);if(_3a9._focusManager==this){_3a9._onBlur(by);}this.emit("widget-blur",_3a9,by);}}for(i=_3a8;i<_3a6.length;i++){_3a9=_396.byId(_3a6[i]);if(_3a9){_3a9.set("focused",true);if(_3a9._focusManager==this){_3a9._onFocus(by);}this.emit("widget-focus",_3a9,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _3aa=new _398();_392(function(){var _3ab=_3aa.registerWin(_395.get(win.doc));if(has("ie")){_394.addOnWindowUnload(function(){if(_3ab){_3ab.remove();_3ab=null;}});}});_397.focus=function(node){_3aa.focus(node);};for(var attr in _3aa){if(!/^_/.test(attr)){_397.focus[attr]=typeof _3aa[attr]=="function"?lang.hitch(_3aa,attr):_3aa[attr];}}_3aa.watch(function(attr,_3ac,_3ad){_397.focus[attr]=_3ad;});return _3aa;});},"dijit/_base/manager":function(){define("dijit/_base/manager",["dojo/_base/array","dojo/_base/config","dojo/_base/lang","../registry","../main"],function(_3ae,_3af,lang,_3b0,_3b1){var _3b2={};_3ae.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],function(name){_3b2[name]=_3b0[name];});lang.mixin(_3b2,{defaultDuration:_3af["defaultDuration"]||200});lang.mixin(_3b1,_3b2);return _3b1;});},"dijit/_base/place":function(){define("dijit/_base/place",["dojo/_base/array","dojo/_base/lang","dojo/window","../place","../main"],function(_3b3,lang,_3b4,_3b5,_3b6){var _3b7={};_3b7.getViewport=function(){return _3b4.getBox();};_3b7.placeOnScreen=_3b5.at;_3b7.placeOnScreenAroundElement=function(node,_3b8,_3b9,_3ba){var _3bb;if(lang.isArray(_3b9)){_3bb=_3b9;}else{_3bb=[];for(var key in _3b9){_3bb.push({aroundCorner:key,corner:_3b9[key]});}}return _3b5.around(node,_3b8,_3bb,true,_3ba);};_3b7.placeOnScreenAroundNode=_3b7.placeOnScreenAroundElement;_3b7.placeOnScreenAroundRectangle=_3b7.placeOnScreenAroundElement;_3b7.getPopupAroundAlignment=function(_3bc,_3bd){var _3be={};_3b3.forEach(_3bc,function(pos){var ltr=_3bd;switch(pos){case "after":_3be[_3bd?"BR":"BL"]=_3bd?"BL":"BR";break;case "before":_3be[_3bd?"BL":"BR"]=_3bd?"BR":"BL";break;case "below-alt":ltr=!ltr;case "below":_3be[ltr?"BL":"BR"]=ltr?"TL":"TR";_3be[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above-alt":ltr=!ltr;case "above":default:_3be[ltr?"TL":"TR"]=ltr?"BL":"BR";_3be[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});return _3be;};lang.mixin(_3b6,_3b7);return _3b6;});},"dijit/place":function(){define("dijit/place",["dojo/_base/array","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/window","dojo/window","./main"],function(_3bf,_3c0,_3c1,_3c2,win,_3c3,_3c4){function _3c5(node,_3c6,_3c7,_3c8){var view=_3c3.getBox(node.ownerDocument);if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){win.body(node.ownerDocument).appendChild(node);}var best=null;_3bf.some(_3c6,function(_3c9){var _3ca=_3c9.corner;var pos=_3c9.pos;var _3cb=0;var _3cc={w:{"L":view.l+view.w-pos.x,"R":pos.x-view.l,"M":view.w}[_3ca.charAt(1)],h:{"T":view.t+view.h-pos.y,"B":pos.y-view.t,"M":view.h}[_3ca.charAt(0)]};var s=node.style;s.left=s.right="auto";if(_3c7){var res=_3c7(node,_3c9.aroundCorner,_3ca,_3cc,_3c8);_3cb=typeof res=="undefined"?0:res;}var _3cd=node.style;var _3ce=_3cd.display;var _3cf=_3cd.visibility;if(_3cd.display=="none"){_3cd.visibility="hidden";_3cd.display="";}var bb=_3c0.position(node);_3cd.display=_3ce;_3cd.visibility=_3cf;var _3d0={"L":pos.x,"R":pos.x-bb.w,"M":Math.max(view.l,Math.min(view.l+view.w,pos.x+(bb.w>>1))-bb.w)}[_3ca.charAt(1)],_3d1={"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)}[_3ca.charAt(0)],_3d2=Math.max(view.l,_3d0),_3d3=Math.max(view.t,_3d1),endX=Math.min(view.l+view.w,_3d0+bb.w),endY=Math.min(view.t+view.h,_3d1+bb.h),_3d4=endX-_3d2,_3d5=endY-_3d3;_3cb+=(bb.w-_3d4)+(bb.h-_3d5);if(best==null||_3cb>1)}[_3e8.charAt(1)],y:{"T":y,"B":y+_3e6,"M":y+(_3e6>>1)}[_3e8.charAt(0)]}});};_3bf.forEach(_3dc,function(pos){var ltr=_3dd;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 _3ea=_3c5(node,_3e7,_3de,{w:_3e5,h:_3e6});_3ea.aroundNodePos=_3df;return _3ea;}};return _3c4.place=_3d6;});},"dijit/_base/popup":function(){define("dijit/_base/popup",["dojo/dom-class","dojo/_base/window","../popup","../BackgroundIframe"],function(_3eb,win,_3ec){var _3ed=_3ec._createWrapper;_3ec._createWrapper=function(_3ee){if(!_3ee.declaredClass){_3ee={_popupWrapper:(_3ee.parentNode&&_3eb.contains(_3ee.parentNode,"dijitPopup"))?_3ee.parentNode:null,domNode:_3ee,destroy:function(){},ownerDocument:_3ee.ownerDocument,ownerDocumentBody:win.body(_3ee.ownerDocument)};}return _3ed.call(this,_3ee);};var _3ef=_3ec.open;_3ec.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 _3ef.call(this,args);};return _3ec;});},"dijit/popup":function(){define("dijit/popup",["dojo/_base/array","dojo/aspect","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/_base/event","dojo/keys","dojo/_base/lang","dojo/on","dojo/sniff","./place","./BackgroundIframe","./main"],function(_3f0,_3f1,_3f2,_3f3,dom,_3f4,_3f5,_3f6,_3f7,_3f8,keys,lang,on,has,_3f9,_3fa,_3fb){function _3fc(){if(this._popupWrapper){_3f5.destroy(this._popupWrapper);delete this._popupWrapper;}};var _3fd=_3f3(null,{_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_3fe){var _3ff=_3fe._popupWrapper,node=_3fe.domNode;if(!_3ff){_3ff=_3f5.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},_3fe.ownerDocumentBody);_3ff.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";_3fe._popupWrapper=_3ff;_3f1.after(_3fe,"destroy",_3fc,true);}return _3ff;},moveOffScreen:function(_400){var _401=this._createWrapper(_400);_3f7.set(_401,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_402){var _403=this._createWrapper(_402);_3f7.set(_403,"display","none");},getTopPopup:function(){var _404=this._stack;for(var pi=_404.length-1;pi>0&&_404[pi].parent===_404[pi-1].widget;pi--){}return _404[pi];},open:function(args){var _405=this._stack,_406=args.popup,_407=args.orient||["below","below-alt","above","above-alt"],ltr=args.parent?args.parent.isLeftToRight():_3f6.isBodyLtr(_406.ownerDocument),_408=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_405.length&&(!args.parent||!dom.isDescendant(args.parent.domNode,_405[_405.length-1].widget.domNode))){this.close(_405[_405.length-1].widget);}var _409=this._createWrapper(_406);_3f4.set(_409,{id:id,style:{zIndex:this._beginZIndex+_405.length},"class":"dijitPopup "+(_406.baseClass||_406["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(has("ie")||has("mozilla")){if(!_406.bgIframe){_406.bgIframe=new _3fa(_409);}}var best=_408?_3f9.around(_409,_408,_407,ltr,_406.orient?lang.hitch(_406,"orient"):null):_3f9.at(_409,args,_407=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_409.style.display="";_409.style.visibility="visible";_406.domNode.style.visibility="visible";var _40a=[];_40a.push(on(_409,_3f2._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==keys.ESCAPE&&args.onCancel){_3f8.stop(evt);args.onCancel();}else{if(evt.charOrCode===keys.TAB){_3f8.stop(evt);var _40b=this.getTopPopup();if(_40b&&_40b.onCancel){_40b.onCancel();}}}})));if(_406.onCancel&&args.onCancel){_40a.push(_406.on("cancel",args.onCancel));}_40a.push(_406.on(_406.onExecute?"execute":"change",lang.hitch(this,function(){var _40c=this.getTopPopup();if(_40c&&_40c.onExecute){_40c.onExecute();}})));_405.push({widget:_406,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_40a});if(_406.onOpen){_406.onOpen(best);}return best;},close:function(_40d){var _40e=this._stack;while((_40d&&_3f0.some(_40e,function(elem){return elem.widget==_40d;}))||(!_40d&&_40e.length)){var top=_40e.pop(),_40f=top.widget,_410=top.onClose;if(_40f.onClose){_40f.onClose();}var h;while(h=top.handlers.pop()){h.remove();}if(_40f&&_40f.domNode){this.hide(_40f);}if(_410){_410();}}}});return (_3fb.popup=new _3fd());});},"dijit/BackgroundIframe":function(){define("dijit/BackgroundIframe",["require","./main","dojo/_base/config","dojo/dom-construct","dojo/dom-style","dojo/_base/lang","dojo/on","dojo/sniff","dojo/_base/window"],function(_411,_412,_413,_414,_415,lang,on,has,win){var _416=new function(){var _417=[];this.pop=function(){var _418;if(_417.length){_418=_417.pop();_418.style.display="";}else{if(has("ie")<9){var burl=_413["dojoBlankHtmlUrl"]||_411.toUrl("dojo/resources/blank.html")||"javascript:\"\"";var html="