/*! PlaneUI v0.1.0 | planeui.patch.ie9.min.js | The Modern HTML5 Cross-Device Responsive Front-end UI Framework. | MIT License | By: Pandao | https://github.com/pandao/planeui | 2015-06-27 */ var Flexie=function(win,doc){function trim(e){return e&&(e=e.replace(LEADINGTRIM,EMPTY_STRING).replace(TRAILINGTRIM,EMPTY_STRING)),e}function forEach(e,t){var n,r,i=0,o=e?e.length:UNDEFINED,a=o===UNDEFINED;if(a){for(n in e)if(e.hasOwnProperty(n)&&t.call(e[n],n,e[n])===FALSE)break}else for(r=e[0];o>i&&t.call(r,i,r)!==FALSE;r=e[++i]);}function determineSelectorMethod(){var engines=ENGINES,method;return forEach(engines,function(engine,obj){return win[engine]&&!method&&(method=eval(obj.s.replace("*",engine)))?(ENGINE=engine,!1):void 0}),method}function addEvent(e,t){e="on"+e;var n=win[e];"function"!=typeof win[e]?win[e]=t:win[e]=function(){n&&n(),t()}}function attachLoadMethod(handler){ENGINE||(LIBRARY=determineSelectorMethod());var engines=ENGINES,method,caller,args;forEach(engines,function(engine,obj){return win[engine]&&!method&&obj.m&&(method=eval(obj.m.replace("*",engine)),caller=obj.c?eval(obj.c.replace("*",engine)):win,args=[],method&&caller)?(obj.p&&args.push(obj.p),args.push(handler),method.apply(caller,args),!1):void 0}),method||addEvent("load",handler)}function buildSelector(e){var t=e.nodeName.toLowerCase();return e.id?t+="#"+e.id:e.FLX_DOM_ID&&(t+="["+FLX_DOM_ATTR+"='"+e.FLX_DOM_ID+"']"),t}function setFlexieId(e){e.FLX_DOM_ID||(FLX_DOM_ID+=1,e.FLX_DOM_ID=FLX_DOM_ID,e.setAttribute(FLX_DOM_ATTR,e.FLX_DOM_ID))}function buildSelectorTree(e){var t,n,r,i,o,a,c,l=[];return e=e.replace(WHITESPACE_CHARACTERS,EMPTY_STRING),e=e.replace(/\s?(\{|\:|\})\s?/g,PLACEHOLDER_STRING),t=e.split(END_MUSTACHE),forEach(t,function(e,t){t&&(n=[t,END_MUSTACHE].join(EMPTY_STRING),r=/(\@media[^\{]+\{)?(.*)\{(.*)\}/.exec(n),r&&r[3]&&(i=r[2],o=r[3].split(";"),c=[],forEach(o,function(e,t){a=t.split(":"),a.length&&a[1]&&c.push({property:a[0],value:a[1]})}),i&&c.length&&l.push({selector:i,properties:c})))}),l}function findFlexboxElements(e){var t,n,r,i,o,a,c,l=/\s?,\s?/,s={},u={};return a=function(e,t,n,r){var i={selector:trim(e),properties:[]};return forEach(t.properties,function(e,t){i.properties.push({property:trim(t.property),value:trim(t.value)})}),n&&r&&(i[n]=r),i},c=function(e,t,n,r){var i,o=n&&r?s[e]:u[e];o?(forEach(t.properties,function(e,t){forEach(o.properties,function(e,n){return t.property===n.property?(i=e,!1):void 0}),i?o.properties[i]=t:o.properties.push(t)}),n&&r&&(o[n]=r)):n&&r?s[e]=a(e,t,n,r):u[e]=a(e,t,NULL,NULL)},forEach(e,function(e,a){t=trim(a.selector).replace(l,",").split(l),forEach(t,function(e,t){t=trim(t),n=a.properties,forEach(n,function(e,n){if(r=trim(n.property),i=trim(n.value),r)switch(o=r.replace("box-",EMPTY_STRING)){case"display":"box"===i&&c(t,a,NULL,NULL);break;case"orient":case"align":case"direction":case"pack":c(t,a,NULL,NULL);break;case"flex":case"flex-group":case"ordinal-group":c(t,a,o,i)}})})}),forEach(u,function(e,t){FLEX_BOXES.push(t)}),forEach(s,function(e,t){POSSIBLE_FLEX_CHILDREN.push(t)}),{boxes:FLEX_BOXES,children:POSSIBLE_FLEX_CHILDREN}}function matchFlexChildren(e,t,n){var r,i,o=[];return forEach(n,function(n,a){a.selector?(r=t(a.selector),r=r[0]?r:[r],r[0]&&forEach(r,function(t,n){if(n.nodeName!==UNDEFINED)switch(n.nodeName.toLowerCase()){case"script":case"style":case"link":break;default:n.parentNode===e&&(setFlexieId(n),i={},forEach(a,function(e){i[e]=a[e]}),i.match=n,o.push(i))}})):(setFlexieId(a),o.push({match:a,selector:buildSelector(a)}))}),o}function getParams(e){return forEach(e,function(t,n){e[t]=n||DEFAULTS[t]}),e}function buildFlexieCall(e){var t,n,r,i,o,a,c,l,s,u,p,d,f,E,h,R,L,T,S={},_="["+FLX_PARENT_ATTR+"]";e&&(forEach(e.boxes,function(E,I){I.selector=trim(I.selector),t=I.selector,n=I.properties,a=c=l=s=u=NULL,forEach(n,function(e,t){if(r=trim(t.property),i=trim(t.value),r)switch(o=r.replace("box-",EMPTY_STRING)){case"display":"box"===i&&(a=i);break;case"orient":c=i;break;case"align":l=i;break;case"direction":s=i;break;case"pack":u=i}}),p=LIBRARY,d=p(I.selector),d=d[0]?d:[d],forEach(d,function(r,i){i.nodeType&&(setFlexieId(i),f=matchFlexChildren(i,p,e.children),T=t+" "+_,h={target:i,selector:t,properties:n,children:f,display:a,orient:c,align:l,direction:s,pack:u,nested:T},R=S[i.FLX_DOM_ID],R?forEach(h,function(e,t){switch(e){case"selector":t&&!new RegExp(t).test(R[e])&&(R[e]+=", "+t);break;case"children":forEach(h[e],function(t,n){L=FALSE,forEach(R[e],function(e,t){n.match.FLX_DOM_ID===t.match.FLX_DOM_ID&&(L=TRUE)}),L||R[e].push(n)});break;default:t&&(R[e]=t)}}):(S[i.FLX_DOM_ID]=getParams(h),S[i.FLX_DOM_ID].target.setAttribute(FLX_PARENT_ATTR,TRUE)))})}),DOM_ORDERED=LIBRARY(_),FLEX_BOXES={},forEach(DOM_ORDERED,function(e,t){FLEX_BOXES[t.FLX_DOM_ID]=S[t.FLX_DOM_ID]}),forEach(FLEX_BOXES,function(e,t){"box"===t.display&&(E=new FLX.box(t))}))}function calcPx(e,t,n){var r=n.replace(n.charAt(0),n.charAt(0).toUpperCase()),i=e["offset"+r]||0;return i&&forEach(t,function(t,n){n=parseFloat(e.currentStyle[n]),isNaN(n)||(i-=n)}),i}function getTrueValue(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],o=e.style;return!PIXEL.test(i)&&NUMBER.test(i)&&(n=o.left,r=e.runtimeStyle.left,e.runtimeStyle.left=e.currentStyle.left,o.left=i||0,i=o.pixelLeft+"px",o.left=n||0,e.runtimeStyle.left=r),i}function unAuto(e,t,n){var r;switch(n){case"width":r=[PADDING_LEFT,PADDING_RIGHT,BORDER_LEFT,BORDER_RIGHT],t=calcPx(e,r,n);break;case"height":r=[PADDING_TOP,PADDING_BOTTOM,BORDER_TOP,BORDER_BOTTOM],t=calcPx(e,r,n);break;default:t=getTrueValue(e,n)}return t}function getPixelValue(e,t,n){return PIXEL.test(t)?t:t="auto"===t||"medium"===t?unAuto(e,t,n):getTrueValue(e,n)}function getComputedStyle(e,t,n){var r;if(e!==UNDEFINED)return r=win.getComputedStyle?win.getComputedStyle(e,NULL)[t]:SIZES.test(t)?getPixelValue(e,e&&e.currentStyle?e.currentStyle[t]:0,t):e.currentStyle[t],n&&(r=parseInt(r,10),isNaN(r)&&(r=0)),r}function clientWidth(e){return e.innerWidth||e.clientWidth}function clientHeight(e){return e.innerHeight||e.clientHeight}function appendProperty(e,t,n,r){var i=[];return forEach(PREFIXES,function(e,o){i.push((r?o:EMPTY_STRING)+t+":"+(r?EMPTY_STRING:o)+n)}),e.style.cssText+=i.join(";"),e}function appendPixelValue(e,t,n){var r=e&&e[0]?e:[e];forEach(r,function(e,r){r&&r.style&&(r.style[t]=n?n+"px":EMPTY_STRING)})}function calculateSpecificity(e){var t,n,r;return t=e.replace(CSS_SELECTOR,function(e,t){return"%"+t}).replace(/\s|\>|\+|\~/g,"%").split(/%/g),n={_id:100,_class:10,_tag:1},r=0,forEach(t,function(e,t){/#/.test(t)?r+=n._id:/\.|\[|\:/.test(t)?r+=n._class:/[a-zA-Z]+/.test(t)&&(r+=n._tag)}),r}function filterDuplicates(e,t,n){var r,i=[],o=(n?"ordinal":"flex")+"Specificity";return forEach(e,function(e,t){(!n&&t.flex||n&&t["ordinal-group"])&&(t[o]=t[o]||calculateSpecificity(t.selector),r=FALSE,forEach(i,function(e,n){return n.match===t.match?(n[o]r;r++)if(n=t[r])switch(n.nodeName.toLowerCase()){case"script":case"style":case"link":break;default:1===n.nodeType?o.push(n):3===n.nodeType&&(n.isElementContentWhitespace||ONLY_WHITESPACE.test(n.data))&&(e.removeChild(n),r--)}return o}function parentFlex(e){for(var t,n,r,i=0,o=e.parentNode;o.FLX_DOM_ID;)t=FLEX_BOXES[o.FLX_DOM_ID],n=createMatchMatrix(t.children,sanitizeChildren(o,o.childNodes),NULL),i+=n.total,r=TRUE,o=o.parentNode;return{nested:r,flex:i}}function dimensionValues(e,t){var n,r,i=e.parentNode;return i.FLX_DOM_ID&&(n=FLEX_BOXES[i.FLX_DOM_ID],forEach(n.properties,function(e,n){return new RegExp(t).test(n.property)?(r=TRUE,FALSE):void 0})),r}function updateChildValues(e){return e.flexMatrix&&forEach(e.children,function(t,n){n.flex=e.flexMatrix[t]}),e.ordinalMatrix&&forEach(e.children,function(t,n){n["ordinal-group"]=e.ordinalMatrix[t]}),e}function ensureStructuralIntegrity(e,t){var n=e.target;return n.FLX_DOM_ID||(n.FLX_DOM_ID=n.FLX_DOM_ID||++FLX_DOM_ID),e.nodes||(e.nodes=sanitizeChildren(n,n.childNodes)),e.selector||(e.selector=buildSelector(n),n.setAttribute(FLX_PARENT_ATTR,TRUE)),e.properties||(e.properties=[]),e.children||(e.children=matchFlexChildren(n,LIBRARY,sanitizeChildren(n,n.childNodes))),e.nested||(e.nested=e.selector+" ["+FLX_PARENT_ATTR+"]"),e.target=n,e._instance=t,e}var FLX={},FLX_DOM_ID=0,FLX_DOM_ATTR="data-flexie-id",FLX_PARENT_ATTR="data-flexie-parent",SUPPORT,ENGINE,ENGINES={NW:{s:"*.Dom.select"},DOMAssistant:{s:"*.$",m:"*.DOMReady"},Prototype:{s:"$$",m:"document.observe",p:"dom:loaded",c:"document"},YAHOO:{s:"*.util.Selector.query",m:"*.util.Event.onDOMReady",c:"*.util.Event"},MooTools:{s:"$$",m:"window.addEvent",p:"domready"},Sizzle:{s:"*"},jQuery:{s:"*",m:"*(document).ready"},dojo:{s:"*.query",m:"*.addOnLoad"}},LIBRARY,PIXEL=/^-?\d+(?:px)?$/i,NUMBER=/^-?\d/,SIZES=/width|height|margin|padding|border/,MSIE=/(msie) ([\w.]+)/,WHITESPACE_CHARACTERS=/\t|\n|\r/g,RESTRICTIVE_PROPERTIES=/^max\-([a-z]+)/,PROTOCOL=/^https?:\/\//i,LEADINGTRIM=/^\s\s*/,TRAILINGTRIM=/\s\s*$/,ONLY_WHITESPACE=/^\s*$/,CSS_SELECTOR=/\s?(\#|\.|\[|\:(\:)?[^first\-(line|letter)|before|after]+)/g,EMPTY_STRING="",SPACE_STRING=" ",PLACEHOLDER_STRING="$1",PADDING_RIGHT="paddingRight",PADDING_BOTTOM="paddingBottom",PADDING_LEFT="paddingLeft",PADDING_TOP="paddingTop",BORDER_RIGHT="borderRightWidth",BORDER_BOTTOM="borderBottomWidth",BORDER_LEFT="borderLeftWidth",BORDER_TOP="borderTopWidth",HORIZONTAL="horizontal",VERTICAL="vertical",INLINE_AXIS="inline-axis",BLOCK_AXIS="block-axis",INHERIT="inherit",LEFT="left",END_MUSTACHE="}",PREFIXES=" -o- -moz- -ms- -webkit- -khtml- ".split(SPACE_STRING),DEFAULTS={orient:HORIZONTAL,align:"stretch",direction:INHERIT,pack:"start"},FLEX_BOXES=[],POSSIBLE_FLEX_CHILDREN=[],DOM_ORDERED,RESIZE_LISTENER,TRUE=!0,FALSE=!1,NULL=null,UNDEFINED,BROWSER={IE:function(){var e,t=win.navigator.userAgent,n=MSIE.exec(t.toLowerCase());return n&&(e=parseInt(n[2],10)),e}()},selectivizrEngine;return selectivizrEngine=function(){function e(e){return e.replace(h,PLACEHOLDER_STRING)}function t(t){return e(t).replace(E,SPACE_STRING)}function n(e){return t(e.replace(d,PLACEHOLDER_STRING).replace(f,PLACEHOLDER_STRING))}function r(e){return e.replace(p,function(e,t,r){var i,o;return i=r.split(","),forEach(i,function(e,t){o=n(t)+SPACE_STRING}),t+i.join(",")})}function i(){if(win.XMLHttpRequest)return new win.XMLHttpRequest;try{return new win.ActiveXObject("Microsoft.XMLHTTP")}catch(e){return NULL}}function o(e){var t=i();return t.open("GET",e,FALSE),t.send(),200===t.status?t.responseText:EMPTY_STRING}function a(e,t){function n(e){return e.substring(0,e.indexOf("/",8))}if(e){if(PROTOCOL.test(e))return n(t)===n(e)?e:NULL;if("/"===e.charAt(0))return n(t)+e;var r=t.split("?")[0];return"?"!==e.charAt(0)&&"/"!==r.charAt(r.length-1)&&(r=r.substring(0,r.lastIndexOf("/")+1)),r+e}}function c(e){return e?o(e).replace(l,EMPTY_STRING).replace(s,function(t,n,r,i,o,l){var s=c(a(r||o,e));return l?"@media "+l+" {"+s+"}":s}).replace(u,function(t,n,r,i){return r=r||EMPTY_STRING,n?t:" url("+r+a(i,e,!0)+r+") "}):EMPTY_STRING}var l=/(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*?/g,s=/@import\s*(?:(?:(?:url\(\s*(['"]?)(.*)\1)\s*\))|(?:(['"])(.*)\3))\s*([^;]*);/g,u=/(behavior\s*?:\s*)?\burl\(\s*(["']?)(?!data:)([^"')]+)\2\s*\)/g,p=/((?:^|(?:\s*})+)(?:\s*@media[^{]+{)?)\s*([^\{]*?[\[:][^{]+)/g,d=/([(\[+~])\s+/g,f=/\s+([)\]+~])/g,E=/\s+/g,h=/^\s*((?:[\S\s]*\S)?)\s*$/;return function(){var e,t,n,i,o,l,s,u=doc.getElementsByTagName("BASE"),p=u.length>0?u[0].href:doc.location.href;for(n=0,i=doc.styleSheets.length;i>n;n++)t=doc.styleSheets[n],t&&t.href!==NULL&&(e=a(t.href,p),e&&(o=r(c(e)),l=buildSelectorTree(o),s=findFlexboxElements(l)));buildFlexieCall(s)}}(),FLX.box=function(e){return this.renderModel(e)},FLX.box.prototype={properties:{boxModel:function(e,t,n){var r,i,o;e.style.display="block",8===BROWSER.IE&&(e.style.overflow="hidden"),n.cleared||(selectors=n.selector.split(/\s?,\s?/),r=doc.styleSheets,r=r[r.length-1],i="padding-top:"+(getComputedStyle(e,PADDING_TOP,NULL)||"0.1px;"),o=["content: '.'","display: block","height: 0","overflow: hidden"].join(";"),forEach(selectors,function(t,n){r.addRule?BROWSER.IE<8?(e.style.zoom="1",6===BROWSER.IE?r.addRule(n.replace(/\>|\+|\~/g,""),i+"zoom:1;",0):7===BROWSER.IE&&r.addRule(n,i+"display:inline-block;",0)):(r.addRule(n,i,0),r.addRule(n+":before",o,0),r.addRule(n+":after",o+";clear:both;",0)):r.insertRule&&(r.insertRule(n+"{"+i+"}",0),r.insertRule(n+":after{"+o+";clear:both;}",0))}),n.cleared=TRUE)},boxDirection:function(e,t,n){var r,i;("reverse"===n.direction&&!n.reversed||"normal"===n.direction&&n.reversed)&&(t=t.reverse(),forEach(t,function(t,n){e.appendChild(n)}),r=LIBRARY(n.nested),forEach(r,function(e,t){i=FLEX_BOXES[t.FLX_DOM_ID],i&&i.direction===INHERIT&&(i.direction=n.direction)}),n.reversed=!n.reversed)},boxOrient:function(e,t,n){var r,i,o=this;switch(r={pos:"marginLeft",opp:"marginRight",dim:"width",out:"offsetWidth",func:clientWidth,pad:[PADDING_LEFT,PADDING_RIGHT,BORDER_LEFT,BORDER_RIGHT]},i={pos:"marginTop",opp:"marginBottom",dim:"height",out:"offsetHeight",func:clientHeight,pad:[PADDING_TOP,PADDING_BOTTOM,BORDER_TOP,BORDER_BOTTOM]},SUPPORT||forEach(t,function(e,t){t.style[BROWSER.IE>=9?"cssFloat":"styleFloat"]=LEFT,(n.orient===VERTICAL||n.orient===BLOCK_AXIS)&&(t.style.clear=LEFT),6===BROWSER.IE&&(t.style.display="inline")}),n.orient){case VERTICAL:case BLOCK_AXIS:o.props=i,o.anti=r;break;default:o.props=r,o.anti=i}},boxOrdinalGroup:function(e,t,n){var r,i;t.length&&(r=function(r){var i=r.keys;forEach(n.reversed?i:i.reverse(),function(n,r){forEach(t,function(t,n){r===n.getAttribute("data-ordinal-group")&&e.appendChild(n)})})},i=createMatchMatrix(n.children,t,TRUE),i.keys.length>1&&r(i))},boxFlex:function(e,t,n){var r,i,o,a,c,l,s,u=this;t.length&&(r=function(e){var t,n=e.groups,r=e.keys;forEach(r,function(e,r){forEach(n[r],function(e,n){t=NULL,forEach(n.properties,function(e,n){RESTRICTIVE_PROPERTIES.test(n.property)&&(t=parseFloat(n.value))}),(!t||n.match[u.props.out]>t)&&appendPixelValue(n.match,u.props.pos,NULL)})})},i=function(n){var r,i,o=0;return forEach(t,function(e,t){o+=getComputedStyle(t,u.props.dim,TRUE),forEach(u.props.pad,function(e,n){o+=getComputedStyle(t,n,TRUE)}),o+=getComputedStyle(t,u.props.pos,TRUE),o+=getComputedStyle(t,u.props.opp,TRUE)}),r=e[u.props.out]-o,forEach(u.props.pad,function(t,n){r-=getComputedStyle(e,n,TRUE)}),i=r/n.total,{whitespace:r,ration:i}},o=function(e,t){var n,r,i,o,a,c=e.groups,l=e.keys,s=t.ration;forEach(l,function(e,t){i=s*t,forEach(c[t],function(e,c){c.match&&(n=c.match.getAttribute("data-flex"),r=c.match.getAttribute("data-specificity"),(!n||r<=c.flexSpecificity)&&(c.match.setAttribute("data-flex",t),c.match.setAttribute("data-specificity",c.flexSpecificity),o=getComputedStyle(c.match,u.props.dim,TRUE),a=Math.max(0,o+i),appendPixelValue(c.match,u.props.dim,a)))})})},a=createMatchMatrix(n.children,t,NULL),a.total&&(n.hasFlex=TRUE,c=r(a),l=i(a),s=o(a,l)))},boxAlign:function(e,t,n){var r,i,o=this,a=parentFlex(e);switch(SUPPORT||a.flex||n.orient!==VERTICAL&&n.orient!==BLOCK_AXIS||(dimensionValues(e,o.anti.dim)||appendPixelValue(e,o.anti.dim,NULL),appendPixelValue(t,o.anti.dim,NULL)),r=e[o.anti.out],forEach(o.anti.pad,function(t,n){r-=getComputedStyle(e,n,TRUE)}),n.align){case"start":break;case"end":forEach(t,function(e,t){i=r-t[o.anti.out],i-=getComputedStyle(t,o.anti.opp,TRUE),appendPixelValue(t,o.anti.pos,i)});break;case"center":forEach(t,function(e,t){i=(r-t[o.anti.out])/2,appendPixelValue(t,o.anti.pos,i)});break;default:forEach(t,function(t,n){switch(n.nodeName.toLowerCase()){case"button":case"input":case"select":break;default:var a=0;forEach(o.anti.pad,function(t,r){a+=getComputedStyle(n,r,TRUE),a+=getComputedStyle(e,r,TRUE)}),n.style[o.anti.dim]="100%",i=n[o.anti.out]-a,appendPixelValue(n,o.anti.dim,NULL),i=r,i-=getComputedStyle(n,o.anti.pos,TRUE),forEach(o.anti.pad,function(e,t){i-=getComputedStyle(n,t,TRUE)}),i-=getComputedStyle(n,o.anti.opp,TRUE),i=Math.max(0,i),appendPixelValue(n,o.anti.dim,i)}})}},boxPack:function(e,t,n){var r,i,o,a,c,l=this,s=0,u=0,p=0,d=t.length-1;switch(forEach(t,function(e,t){s+=t[l.props.out],s+=getComputedStyle(t,l.props.pos,TRUE),s+=getComputedStyle(t,l.props.opp,TRUE)}),u=getComputedStyle(t[0],l.props.pos,TRUE),r=e[l.props.out]-s,forEach(l.props.pad,function(t,n){r-=getComputedStyle(e,n,TRUE)}),0>r&&(r=Math.max(0,r)),n.pack){case"end":appendPixelValue(t[0],l.props.pos,p+u+r);break;case"center":p&&(p/=2),appendPixelValue(t[0],l.props.pos,p+u+Math.floor(r/2));break;case"justify":i=Math.floor((p+r)/d),a=i*d-r;for(var f,E=t.length-1;E;)c=t[E],o=i,a&&(o++,a++),f=getComputedStyle(c,l.props.pos,TRUE)+o,appendPixelValue(c,l.props.pos,f),E--}e.style.overflow=""}},setup:function(e,t,n){var r,i,o=this;e&&t&&n&&(SUPPORT&&SUPPORT.partialSupport?(r=createMatchMatrix(n.children,t,NULL),i=parentFlex(e),t=sanitizeChildren(e,e.childNodes),o.properties.boxOrient.call(o,e,t,n),r.total&&LIBRARY(n.nested).length||("stretch"!==n.align||SUPPORT.boxAlignStretch||i.nested&&i.flex||o.properties.boxAlign.call(o,e,t,n),"justify"!==n.pack||SUPPORT.boxPackJustify||r.total||o.properties.boxPack.call(o,e,t,n))):SUPPORT||forEach(o.properties,function(t,r){r.call(o,e,sanitizeChildren(e,e.childNodes),n)}))},trackDOM:function(e){attachResizeListener(this,e)},updateModel:function(e){var t=this,n=e.target,r=e.nodes;cleanPositioningProperties(r),(e.flexMatrix||e.ordinalMatrix)&&(e=updateChildValues(e)),t.setup(n,r,e),t.bubbleUp(n,e)},renderModel:function(e){var t=this,n=e.target,r=n.childNodes;return n.length||r?(e=ensureStructuralIntegrity(e,this),t.updateModel(e),win.setTimeout(function(){t.trackDOM(e)},0),t):!1},bubbleUp:function(e,t){for(var n,r=this,i=t.target.parentNode;i;)n=FLEX_BOXES[i.FLX_DOM_ID],n&&(cleanPositioningProperties(n.nodes),r.setup(n.target,n.nodes,n)),i=i.parentNode}},FLX.updateInstance=function(e,t){var n;e?(n=FLEX_BOXES[e.FLX_DOM_ID],n?n._instance.updateModel(n):n=new FLX.box(t)):forEach(FLEX_BOXES,function(e,t){t._instance.updateModel(t)})},FLX.getInstance=function(e){return FLEX_BOXES[e.FLX_DOM_ID]},FLX.destroyInstance=function(e){var t,n;n=function(e){e.target.FLX_DOM_ID=NULL,e.target.style.cssText=EMPTY_STRING,forEach(e.children,function(e,t){t.match.style.cssText=EMPTY_STRING})},e?(t=FLEX_BOXES[e.FLX_DOM_ID],t&&n(t)):(forEach(FLEX_BOXES,function(e,t){n(t)}),FLEX_BOXES=[])},FLX.flexboxSupport=function(){var e,t,n,r={},i=100,o=doc.createElement("flxbox"),a='';return o.style.width=o.style.height=i+"px",o.innerHTML=a+a+a,appendProperty(o,"display","box",NULL),appendProperty(o,"box-align","stretch",TRUE),appendProperty(o,"box-pack","justify",TRUE),doc.body.appendChild(o),e=o.firstChild.offsetHeight,t={boxAlignStretch:function(){return 100===e},boxPackJustify:function(){var e=0;return forEach(o.childNodes,function(t,n){e+=n.offsetLeft}),135===e}},forEach(t,function(e,t){n=t(),n||(r.partialSupport=TRUE),r[e]=n}),doc.body.removeChild(o),~o.style.display.indexOf("box")?r:FALSE},FLX.init=function(){FLX.flexboxSupported=SUPPORT=FLX.flexboxSupport(),SUPPORT&&!SUPPORT.partialSupport||!LIBRARY||selectivizrEngine()},FLX.version="1.0.3",attachLoadMethod(FLX.init),FLX}(this,document);!function(e){var t=function(){e(".pui-btn-group-justify").each(function(){var t=e(this),n=t.find(".pui-btn"),r=n.length;n.css({display:"inline-block","float":"left"}).outerWidth(t.outerWidth()/r)}).after('
')};e(function(){e(".pui-btn-group-justify").length>0&&(t(),e(window).resize(t))})}(jQuery);