?
!function(){var t,e;window.flexibility={},Array.prototype.forEach||(Array.prototype.forEach=function(t){if(void 0===this||null===this)throw new TypeError(this+"is not an object");if(!(t instanceof Function))throw new TypeError(t+" is not a function");for(var e=Object(this),i=arguments[1],l=e instanceof String?e.split(""):e,o=Math.max(Math.min(l.length,9007199254740991),0)||0,r=-1;++r<o;)r in l&&t.call(i,l[r],r,e)}),t=flexibility,e=function(){var t=function(){function t(t){return void 0===t}function e(t){return t===H||t===z}function i(t,i){if(void 0!==t.style.marginStart&&e(i))return t.style.marginStart;var l=null;switch(i){case"row":l=t.style.marginLeft;break;case"row-reverse":l=t.style.marginRight;break;case"column":l=t.style.marginTop;break;case"column-reverse":l=t.style.marginBottom}return void 0!==l?l:void 0!==t.style.margin?t.style.margin:0}function l(t,i){if(void 0!==t.style.marginEnd&&e(i))return t.style.marginEnd;var l=null;switch(i){case"row":l=t.style.marginRight;break;case"row-reverse":l=t.style.marginLeft;break;case"column":l=t.style.marginBottom;break;case"column-reverse":l=t.style.marginTop}return null!=l?l:void 0!==t.style.margin?t.style.margin:0}function o(t,i){if(void 0!==t.style.borderStartWidth&&t.style.borderStartWidth>=0&&e(i))return t.style.borderStartWidth;var l=null;switch(i){case"row":l=t.style.borderLeftWidth;break;case"row-reverse":l=t.style.borderRightWidth;break;case"column":l=t.style.borderTopWidth;break;case"column-reverse":l=t.style.borderBottomWidth}return null!=l&&l>=0?l:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function r(t,i){if(void 0!==t.style.borderEndWidth&&t.style.borderEndWidth>=0&&e(i))return t.style.borderEndWidth;var l=null;switch(i){case"row":l=t.style.borderRightWidth;break;case"row-reverse":l=t.style.borderLeftWidth;break;case"column":l=t.style.borderBottomWidth;break;case"column-reverse":l=t.style.borderTopWidth}return null!=l&&l>=0?l:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function n(t,i){return function(t,i){if(void 0!==t.style.paddingStart&&t.style.paddingStart>=0&&e(i))return t.style.paddingStart;var l=null;switch(i){case"row":l=t.style.paddingLeft;break;case"row-reverse":l=t.style.paddingRight;break;case"column":l=t.style.paddingTop;break;case"column-reverse":l=t.style.paddingBottom}return null!=l&&l>=0?l:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,i)+o(t,i)}function a(t,i){return function(t,i){if(void 0!==t.style.paddingEnd&&t.style.paddingEnd>=0&&e(i))return t.style.paddingEnd;var l=null;switch(i){case"row":l=t.style.paddingRight;break;case"row-reverse":l=t.style.paddingLeft;break;case"column":l=t.style.paddingBottom;break;case"column-reverse":l=t.style.paddingTop}return null!=l&&l>=0?l:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,i)+r(t,i)}function d(t,e){return i(t,e)+l(t,e)}function s(t,e){return n(t,e)+a(t,e)}function u(t,e){return e.style.alignSelf?e.style.alignSelf:t.style.alignItems?t.style.alignItems:"stretch"}function y(t,e){if(e===$){if(t===H)return z;if(t===z)return H}return t}function c(t,e){return(i=t)===B||i===D?y(H,e):B;var i}function f(t){return t.style.position?t.style.position:"relative"}function h(t){return f(t)===U&&t.style.flex>0}function m(t,e){return t.layout[K[e]]+d(t,e)}function v(t,e){return void 0!==t.style[K[e]]&&t.style[K[e]]>=0}function p(t,e){return void 0!==t.style[e]}function x(t,e){return void 0!==t.style[e]?t.style[e]:0}function g(t,e,i){var l={row:t.style.minWidth,"row-reverse":t.style.minWidth,column:t.style.minHeight,"column-reverse":t.style.minHeight}[e],o={row:t.style.maxWidth,"row-reverse":t.style.maxWidth,column:t.style.maxHeight,"column-reverse":t.style.maxHeight}[e],r=i;return void 0!==o&&o>=0&&r>o&&(r=o),void 0!==l&&l>=0&&l>r&&(r=l),r}function b(t,e){return t>e?t:e}function w(t,e){void 0===t.layout[K[e]]&&v(t,e)&&(t.layout[K[e]]=b(g(t,e,t.style[K[e]]),s(t,e)))}function W(t,e,i){e.layout[_[i]]=t.layout[K[i]]-e.layout[K[i]]-e.layout[J[i]]}function L(t,e){return void 0!==t.style[O[e]]?x(t,O[e]):-x(t,_[e])}function E(E,$,P,Q){var V,X,Y,tt,et=(Y=Q,(tt=(X=E).style.direction?X.style.direction:C)===C&&(tt=void 0===Y?T:Y),tt),it=y((V=E).style.flexDirection?V.style.flexDirection:B,et),lt=c(it,et),ot=y(H,et);w(E,it),w(E,lt),E.layout.direction=et,E.layout[O[it]]+=i(E,it)+L(E,it),E.layout[_[it]]+=l(E,it)+L(E,it),E.layout[O[lt]]+=i(E,lt)+L(E,lt),E.layout[_[lt]]+=l(E,lt)+L(E,lt);var rt=E.children.length,nt=s(E,ot),at=s(E,B);if(void 0!==E.style.measure){var dt=!t(E.layout[K[ot]]),st=k;st=v(E,ot)?E.style.width:dt?E.layout[K[ot]]:$-d(E,ot),st-=nt;var ut=k;ut=v(E,B)?E.style.height:t(E.layout[K[B]])?P-d(E,ot):E.layout[K[B]],ut-=s(E,B);var yt=!v(E,ot)&&!dt,ct=!v(E,B)&&t(E.layout[K[B]]);if(yt||ct){var ft=E.style.measure(st,ut);yt&&(E.layout.width=ft.width+nt),ct&&(E.layout.height=ft.height+at)}if(0===rt)return}var ht,mt,vt,pt,xt,gt,bt="wrap"===E.style.flexWrap,wt=(xt=E).style.justifyContent?xt.style.justifyContent:"flex-start",Wt=n(E,it),Lt=n(E,lt),Et=s(E,it),St=s(E,lt),kt=!t(E.layout[K[it]]),Ct=!t(E.layout[K[lt]]),Tt=e(it),$t=null,Ht=null,zt=k;kt&&(zt=E.layout[K[it]]-Et);for(var Bt=0,Dt=0,It=0,Rt=0,jt=0,Ft=0;rt>Dt;){var Mt,At,Nt=0,qt=0,Gt=0,Ut=0,Zt=kt&&wt===I||!kt&&wt!==R,Ot=Zt?rt:Bt,_t=!0,Jt=rt,Kt=null,Pt=null,Qt=Wt,Vt=0;for(ht=Bt;rt>ht;++ht){if((vt=E.children[ht]).lineIndex=Ft,vt.nextAbsoluteChild=null,vt.nextFlexChild=null,(ne=u(E,vt))===G&&f(vt)===U&&Ct&&!v(vt,lt))vt.layout[K[lt]]=b(g(vt,lt,E.layout[K[lt]]-St-d(vt,lt)),s(vt,lt));else if(f(vt)===Z)for(null===$t&&($t=vt),null!==Ht&&(Ht.nextAbsoluteChild=vt),Ht=vt,mt=0;2>mt;mt++)pt=0!==mt?H:B,!t(E.layout[K[pt]])&&!v(vt,pt)&&p(vt,O[pt])&&p(vt,_[pt])&&(vt.layout[K[pt]]=b(g(vt,pt,E.layout[K[pt]]-s(E,pt)-d(vt,pt)-x(vt,O[pt])-x(vt,_[pt])),s(vt,pt)));var Xt=0;if(kt&&h(vt)?(qt++,Gt+=vt.style.flex,null===Kt&&(Kt=vt),null!==Pt&&(Pt.nextFlexChild=vt),Pt=vt,Xt=s(vt,it)+d(vt,it)):(Mt=k,At=k,Tt?At=v(E,B)?E.layout[K[B]]-at:P-d(E,B)-at:Mt=v(E,ot)?E.layout[K[ot]]-nt:$-d(E,ot)-nt,0===It&&S(vt,Mt,At,et),f(vt)===U&&(Ut++,Xt=m(vt,it))),bt&&kt&&Nt+Xt>zt&&ht!==Bt){Ut--,It=1;break}Zt&&(f(vt)!==U||h(vt))&&(Zt=!1,Ot=ht),_t&&(f(vt)!==U||ne!==G&&ne!==A||t(vt.layout[K[lt]]))&&(_t=!1,Jt=ht),Zt&&(vt.layout[J[it]]+=Qt,kt&&W(E,vt,it),Qt+=m(vt,it),Vt=b(Vt,g(vt,lt,m(vt,lt)))),_t&&(vt.layout[J[lt]]+=Rt+Lt,Ct&&W(E,vt,lt)),It=0,Nt+=Xt,Dt=ht+1}var Yt=0,te=0,ee=0;if(ee=kt?zt-Nt:b(Nt,0)-Nt,0!==qt){var ie,le,oe=ee/Gt;for(Pt=Kt;null!==Pt;)(ie=oe*Pt.style.flex+s(Pt,it))!==(le=g(Pt,it,ie))&&(ee-=le,Gt-=Pt.style.flex),Pt=Pt.nextFlexChild;for(0>(oe=ee/Gt)&&(oe=0),Pt=Kt;null!==Pt;)Pt.layout[K[it]]=g(Pt,it,oe*Pt.style.flex+s(Pt,it)),Mt=k,v(E,ot)?Mt=E.layout[K[ot]]-nt:Tt||(Mt=$-d(E,ot)-nt),At=k,v(E,B)?At=E.layout[K[B]]-at:Tt&&(At=P-d(E,B)-at),S(Pt,Mt,At,et),vt=Pt,Pt=Pt.nextFlexChild,vt.nextFlexChild=null}else wt!==I&&(wt===R?Yt=ee/2:wt===j?Yt=ee:wt===F?(ee=b(ee,0),te=qt+Ut-1!=0?ee/(qt+Ut-1):0):wt===M&&(Yt=(te=ee/(qt+Ut))/2));for(Qt+=Yt,ht=Ot;Dt>ht;++ht)f(vt=E.children[ht])===Z&&p(vt,O[it])?vt.layout[J[it]]=x(vt,O[it])+o(E,it)+i(vt,it):(vt.layout[J[it]]+=Qt,kt&&W(E,vt,it),f(vt)===U&&(Qt+=te+m(vt,it),Vt=b(Vt,g(vt,lt,m(vt,lt)))));var re=E.layout[K[lt]];for(Ct||(re=b(g(E,lt,Vt+St),St)),ht=Jt;Dt>ht;++ht)if(f(vt=E.children[ht])===Z&&p(vt,O[lt]))vt.layout[J[lt]]=x(vt,O[lt])+o(E,lt)+i(vt,lt);else{var ne,ae=Lt;if(f(vt)===U)if((ne=u(E,vt))===G)t(vt.layout[K[lt]])&&(vt.layout[K[lt]]=b(g(vt,lt,re-St-d(vt,lt)),s(vt,lt)));else if(ne!==A){var de=re-St-m(vt,lt);ae+=ne===N?de/2:de}vt.layout[J[lt]]+=Rt+ae,Ct&&W(E,vt,lt)}Rt+=Vt,jt=b(jt,Qt),Ft+=1,Bt=Dt}if(Ft>1&&Ct){var se=E.layout[K[lt]]-St,ue=se-Rt,ye=0,ce=Lt,fe=(gt=E).style.alignContent?gt.style.alignContent:"flex-start";fe===q?ce+=ue:fe===N?ce+=ue/2:fe===G&&se>Rt&&(ye=ue/Ft);var he=0;for(ht=0;Ft>ht;++ht){var me=he,ve=0;for(mt=me;rt>mt;++mt)if(f(vt=E.children[mt])===U){if(vt.lineIndex!==ht)break;t(vt.layout[K[lt]])||(ve=b(ve,vt.layout[K[lt]]+d(vt,lt)))}for(he=mt,ve+=ye,mt=me;he>mt;++mt)if(f(vt=E.children[mt])===U){var pe=u(E,vt);if(pe===A)vt.layout[J[lt]]=ce+i(vt,lt);else if(pe===q)vt.layout[J[lt]]=ce+ve-l(vt,lt)-vt.layout[K[lt]];else if(pe===N){var xe=vt.layout[K[lt]];vt.layout[J[lt]]=ce+(ve-xe)/2}else pe===G&&(vt.layout[J[lt]]=ce+i(vt,lt))}ce+=ve}}var ge,be,we=!1,We=!1;if(kt||(E.layout[K[it]]=b(g(E,it,jt+a(E,it)),Et),(it===z||it===D)&&(we=!0)),Ct||(E.layout[K[lt]]=b(g(E,lt,Rt+St),St),(lt===z||lt===D)&&(We=!0)),we||We)for(ht=0;rt>ht;++ht)vt=E.children[ht],we&&W(E,vt,it),We&&W(E,vt,lt);for(Ht=$t;null!==Ht;){for(mt=0;2>mt;mt++)pt=0!==mt?H:B,!t(E.layout[K[pt]])&&!v(Ht,pt)&&p(Ht,O[pt])&&p(Ht,_[pt])&&(Ht.layout[K[pt]]=b(g(Ht,pt,E.layout[K[pt]]-(o(ge=E,be=pt)+r(ge,be))-d(Ht,pt)-x(Ht,O[pt])-x(Ht,_[pt])),s(Ht,pt))),p(Ht,_[pt])&&!p(Ht,O[pt])&&(Ht.layout[O[pt]]=E.layout[K[pt]]-Ht.layout[K[pt]]-x(Ht,_[pt]));vt=Ht,Ht=Ht.nextAbsoluteChild,vt.nextAbsoluteChild=null}}function S(t,e,i,l){t.shouldUpdate=!0;var o=t.style.direction||T;!t.isDirty&&t.lastLayout&&t.lastLayout.requestedHeight===t.layout.height&&t.lastLayout.requestedWidth===t.layout.width&&t.lastLayout.parentMaxWidth===e&&t.lastLayout.parentMaxHeight===i&&t.lastLayout.direction===o?(t.layout.width=t.lastLayout.width,t.layout.height=t.lastLayout.height,t.layout.top=t.lastLayout.top,t.layout.left=t.lastLayout.left):(t.lastLayout||(t.lastLayout={}),t.lastLayout.requestedWidth=t.layout.width,t.lastLayout.requestedHeight=t.layout.height,t.lastLayout.parentMaxWidth=e,t.lastLayout.parentMaxHeight=i,t.lastLayout.direction=o,t.children.forEach(function(t){t.layout.width=void 0,t.layout.height=void 0,t.layout.top=0,t.layout.left=0}),E(t,e,i,l),t.lastLayout.width=t.layout.width,t.lastLayout.height=t.layout.height,t.lastLayout.top=t.layout.top,t.lastLayout.left=t.layout.left)}var k,C="inherit",T="ltr",$="rtl",H="row",z="row-reverse",B="column",D="column-reverse",I="flex-start",R="center",j="flex-end",F="space-between",M="space-around",A="flex-start",N="center",q="flex-end",G="stretch",U="relative",Z="absolute",O={row:"left","row-reverse":"right",column:"top","column-reverse":"bottom"},_={row:"right","row-reverse":"left",column:"bottom","column-reverse":"top"},J={row:"left","row-reverse":"right",column:"top","column-reverse":"bottom"},K={row:"width","row-reverse":"width",column:"height","column-reverse":"height"};return{layoutNodeImpl:E,computeLayout:S,fillNodes:function t(e){if((!e.layout||e.isDirty)&&(e.layout={width:void 0,height:void 0,top:0,left:0,right:0,bottom:0}),e.style||(e.style={}),e.children||(e.children=[]),e.style.measure&&e.children&&e.children.length)throw new Error("Using custom measure function is supported only for leaf nodes.");return e.children.forEach(t),e}}}();return"object"==typeof exports&&(module.exports=t),function(e){t.fillNodes(e),t.computeLayout(e)}},"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.computeLayout=e(),!window.addEventListener&&window.attachEvent&&(Window.prototype.addEventListener=HTMLDocument.prototype.addEventListener=Element.prototype.addEventListener=function(t,e){this.attachEvent("on"+t,e)},Window.prototype.removeEventListener=HTMLDocument.prototype.removeEventListener=Element.prototype.removeEventListener=function(t,e){this.detachEvent("on"+t,e)}),flexibility.detect=function(){var t=document.createElement("p");try{return t.style.display="flex","flex"===t.style.display}catch(t){return!1}},!flexibility.detect()&&document.attachEvent&&document.documentElement.currentStyle&&document.attachEvent("onreadystatechange",function(){flexibility.onresize({target:document.documentElement})}),flexibility.init=function(t){var e=t.onlayoutcomplete;return e||(e=t.onlayoutcomplete={node:t,style:{},children:[]}),e.style.display=t.currentStyle["-js-display"]||t.currentStyle.display,e};var i,l=document.documentElement,o=0,r=0;flexibility.onresize=function(t){if(l.clientWidth!==o||l.clientHeight!==r){o=l.clientWidth,r=l.clientHeight,clearTimeout(i),window.removeEventListener("resize",flexibility.onresize);var e=t.target&&1===t.target.nodeType?t.target:document.documentElement;flexibility.walk(e),i=setTimeout(function(){window.addEventListener("resize",flexibility.onresize)},1e3/15)}};var n={alignContent:{initial:"stretch",valid:/^(flex-start|flex-end|center|space-between|space-around|stretch)/},alignItems:{initial:"stretch",valid:/^(flex-start|flex-end|center|baseline|stretch)$/},boxSizing:{initial:"content-box",valid:/^(border-box|content-box)$/},flexDirection:{initial:"row",valid:/^(row|row-reverse|column|column-reverse)$/},flexWrap:{initial:"nowrap",valid:/^(nowrap|wrap|wrap-reverse)$/},justifyContent:{initial:"flex-start",valid:/^(flex-start|flex-end|center|space-between|space-around)$/}};flexibility.updateFlexContainerCache=function(t){var e=t.style,i=t.node.currentStyle,l=t.node.style,o={};for(var r in(i["flex-flow"]||l["flex-flow"]||"").replace(/^(row|row-reverse|column|column-reverse)\s+(nowrap|wrap|wrap-reverse)$/i,function(t,e,i){o.flexDirection=e,o.flexWrap=i}),n){var a=r.replace(/[A-Z]/g,"-$&").toLowerCase(),d=n[r],s=i[a]||l[a];e[r]=d.valid.test(s)?s:o[r]||d.initial}};var a={alignSelf:{initial:"auto",valid:/^(auto|flex-start|flex-end|center|baseline|stretch)$/},boxSizing:{initial:"content-box",valid:/^(border-box|content-box)$/},flexBasis:{initial:"auto",valid:/^((?:[-+]?0|[-+]?[0-9]*\.?[0-9]+(?:%|ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmax|vmin|vw))|auto|fill|max-content|min-content|fit-content|content)$/},flexGrow:{initial:0,valid:/^\+?(0|[1-9][0-9]*)$/},flexShrink:{initial:0,valid:/^\+?(0|[1-9][0-9]*)$/},order:{initial:0,valid:/^([-+]?[0-9]+)$/}};flexibility.updateFlexItemCache=function(t){var e=t.style,i=t.node.currentStyle,l=t.node.style,o={};for(var r in(i.flex||l.flex||"").replace(/^\+?(0|[1-9][0-9]*)/,function(t){o.flexGrow=t}),a){var n=r.replace(/[A-Z]/g,"-$&").toLowerCase(),d=a[r],s=i[n]||l[n];e[r]=d.valid.test(s)?s:o[r]||d.initial,"number"==typeof d.initial&&(e[r]=parseFloat(e[r]))}};var d={medium:4,none:0,thick:6,thin:2},s={borderBottomWidth:0,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,height:0,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,maxHeight:0,maxWidth:0,minHeight:0,minWidth:0,width:0},u=/^([-+]?0|[-+]?[0-9]*\.?[0-9]+)/;flexibility.updateLengthCache=function(t){var e,i,l,o=t.node,r=t.style,n=o.parentNode,a=document.createElement("_"),y=a.runtimeStyle,c=o.currentStyle;for(var f in y.cssText="border:0 solid;clip:rect(0 0 0 0);display:inline-block;font:0/0 serif;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;overflow:hidden;padding:0;position:absolute;width:1em;font-size:"+c.fontSize,n.insertBefore(a,o.nextSibling),r.fontSize=a.offsetWidth,y.fontSize=r.fontSize+"px",s){var h=c[f];u.test(h)||"auto"===h&&!/(width|height)/i.test(f)?/%$/.test(h)?(/^(bottom|height|top)$/.test(f)?(i||(i=n.offsetHeight),l=i):(e||(e=n.offsetWidth),l=e),r[f]=parseFloat(h)*l/100):(y.width=h,r[f]=a.offsetWidth):/^border/.test(f)&&h in d?r[f]=d[h]:delete r[f]}n.removeChild(a),"none"===c.borderTopStyle&&(r.borderTopWidth=0),"none"===c.borderRightStyle&&(r.borderRightWidth=0),"none"===c.borderBottomStyle&&(r.borderBottomWidth=0),"none"===c.borderLeftStyle&&(r.borderLeftWidth=0),r.width||r.minWidth||(/flex/.test(r.display)?r.width=o.offsetWidth:r.minWidth=o.offsetWidth),r.height||r.minHeight||/flex/.test(r.display)||(r.minHeight=o.offsetHeight)},flexibility.walk=function(t){var e=flexibility.init(t),i=e.style,l=i.display;if("none"===l)return{};var o=l.match(/^(inline)?flex$/);if(o&&(flexibility.updateFlexContainerCache(e),t.runtimeStyle.cssText="display:"+(o[1]?"inline-block":"block"),e.children=[]),Array.prototype.forEach.call(t.childNodes,function(t,l){if(1===t.nodeType){var r=flexibility.walk(t),n=r.style;r.index=l,o&&(flexibility.updateFlexItemCache(r),"auto"===n.alignSelf&&(n.alignSelf=i.alignItems),n.flex=n.flexGrow,t.runtimeStyle.cssText="display:inline-block",e.children.push(r))}}),o){e.children.forEach(function(t){flexibility.updateLengthCache(t)}),e.children.sort(function(t,e){return t.style.order-e.style.order||t.index-e.index}),/-reverse$/.test(i.flexDirection)&&(e.children.reverse(),i.flexDirection=i.flexDirection.replace(/-reverse$/,""),"flex-start"===i.justifyContent?i.justifyContent="flex-end":"flex-end"===i.justifyContent&&(i.justifyContent="flex-start")),flexibility.updateLengthCache(e),delete e.lastLayout,delete e.layout;var r=i.borderTopWidth,n=i.borderBottomWidth;i.borderTopWidth=0,i.borderBottomWidth=0,i.borderLeftWidth=0,"column"===i.flexDirection&&(i.width-=i.borderRightWidth),flexibility.computeLayout(e),t.runtimeStyle.cssText="box-sizing:border-box;display:block;position:relative;width:"+(e.layout.width+i.borderRightWidth)+"px;height:"+(e.layout.height+r+n)+"px";var a=[],d=1,s="column"===i.flexDirection?"width":"height";e.children.forEach(function(t){a[t.lineIndex]=Math.max(a[t.lineIndex]||0,t.layout[s]),d=Math.max(d,t.lineIndex+1)}),e.children.forEach(function(t){var e=t.layout;"stretch"===t.style.alignSelf&&(e[s]=a[t.lineIndex]),t.node.runtimeStyle.cssText="box-sizing:border-box;display:block;position:absolute;margin:0;width:"+e.width+"px;height:"+e.height+"px;top:"+e.top+"px;left:"+e.left+"px"})}return e}}();