//>>built
define("dijit/layout/LayoutContainer","dojo/_base/array dojo/_base/declare dojo/dom-class dojo/dom-style dojo/_base/lang ../_WidgetBase ./_LayoutWidget ./utils".split(" "),function(e,d,h,k,m,n,p,q){d=d("dijit.layout.LayoutContainer",p,{design:"headline",baseClass:"dijitLayoutContainer",startup:function(){this._started||(e.forEach(this.getChildren(),this._setupChild,this),this.inherited(arguments))},_setupChild:function(a){this.inherited(arguments);a.region&&h.add(a.domNode,this.baseClass+"Pane")},
_getOrderedChildren:function(){var a=e.map(this.getChildren(),function(b,f){return{pane:b,weight:["center"==b.region?Infinity:0,b.layoutPriority,("sidebar"==this.design?1:-1)*(/top|bottom/.test(b.region)?1:-1),f]}},this);a.sort(function(b,f){for(var g=b.weight,l=f.weight,c=0;c<g.length;c++)if(g[c]!=l[c])return g[c]-l[c];return 0});return e.map(a,function(b){return b.pane})},layout:function(){q.layoutChildren(this.domNode,this._contentBox,this._getOrderedChildren())},addChild:function(a,b){this.inherited(arguments);
this._started&&this.layout()},removeChild:function(a){this.inherited(arguments);this._started&&this.layout();h.remove(a.domNode,this.baseClass+"Pane");k.set(a.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});k.set(a.domNode,/top|bottom/.test(a.region)?"width":"height","auto")}});d.ChildWidgetProperties={region:"",layoutAlign:"",layoutPriority:0};m.extend(n,d.ChildWidgetProperties);return d});