//>>built
define("dijit/_TemplatedMixin","dojo/_base/lang,dojo/touch,./_WidgetBase,dojo/string,dojo/cache,dojo/_base/array,dojo/_base/declare,dojo/dom-construct,dojo/sniff,dojo/_base/unload".split(","),function(h,m,n,k,o,l,p,i,q,r){var f=p("dijit._TemplatedMixin",null,{templateString:null,templatePath:null,_skipNodeCache:!1,_earlyTemplatedStartup:!1,constructor:function(){this._attachPoints=[];this._attachEvents=[]},_stringRepl:function(a){var b=this.declaredClass,e=this;return k.substitute(a,this,function(a,
d){"!"==d.charAt(0)&&(a=h.getObject(d.substr(1),!1,e));if("undefined"==typeof a)throw Error(b+" template:"+d);return null==a?"":"!"==d.charAt(0)?a:a.toString().replace(/"/g,"&quot;")},this)},buildRendering:function(){if(!this.templateString)this.templateString=o(this.templatePath,{sanitize:!0});var a=f.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument),b;if(h.isString(a)){if(b=i.toDom(this._stringRepl(a),this.ownerDocument),1!=b.nodeType)throw Error("Invalid template: "+
a);}else b=a.cloneNode(!0);this.domNode=b;this.inherited(arguments);this._attachTemplateNodes(b,function(a,b){return a.getAttribute(b)});this._beforeFillContent();this._fillContent(this.srcNodeRef)},_beforeFillContent:function(){},_fillContent:function(a){var b=this.containerNode;if(a&&b)for(;a.hasChildNodes();)b.appendChild(a.firstChild)},_attachTemplateNodes:function(a,b){for(var e=h.isArray(a)?a:a.all||a.getElementsByTagName("*"),g=h.isArray(a)?0:-1;0>g||e[g];g++){var d=-1==g?a:e[g];if(!this.widgetsInTemplate||
!b(d,"dojoType")&&!b(d,"data-dojo-type")){var c=b(d,"dojoAttachPoint")||b(d,"data-dojo-attach-point");if(c)for(var f=c.split(/\s*,\s*/);c=f.shift();)h.isArray(this[c])?this[c].push(d):this[c]=d,this._attachPoints.push(c);if(c=b(d,"dojoAttachEvent")||b(d,"data-dojo-attach-event"))for(var f=c.split(/\s*,\s*/),i=h.trim;c=f.shift();)if(c){var j=null;-1!=c.indexOf(":")?(j=c.split(":"),c=i(j[0]),j=i(j[1])):c=i(c);j||(j=c);this._attachEvents.push(this.connect(d,m[c]||c,j))}}}},destroyRendering:function(){l.forEach(this._attachPoints,
function(a){delete this[a]},this);this._attachPoints=[];l.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments)}});f._templateCache={};f.getCachedTemplate=function(a,b,e){var g=f._templateCache,d=a,c=g[d];if(c){try{if(!c.ownerDocument||c.ownerDocument==(e||document))return c}catch(h){}i.destroy(c)}a=k.trim(a);if(b||a.match(/\$\{([^\}]+)\}/g))return g[d]=a;b=i.toDom(a,e);if(1!=b.nodeType)throw Error("Invalid template: "+a);return g[d]=b};q("ie")&&r.addOnWindowUnload(function(){var a=
f._templateCache,b;for(b in a){var e=a[b];"object"==typeof e&&i.destroy(e);delete a[b]}});h.extend(n,{dojoAttachEvent:"",dojoAttachPoint:""});return f});