webpackJsonp([0xb9e474dc28da],[,,,,,,,,,,,function(e,t,n){"use strict";varr=n(1),i=n(153);if("undefined"==typeofr)throwError("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");varo=(newr.Component).updater;e.exports=i(r.Component,r.isValidElement,o)},,function(e,t,n){"use strict";t.__esModule=!0;varr=n(41),i=(0,r.Record)({top:0,right:0,bottom:0,left:0});t.default=i,e.exports=t.default},function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});vari=n(108),o=r(i),u=n(107),a=r(u);o.default.Group=a.default,t.default=o.default,e.exports=t.default},,function(e,t,n){"use strict";varr=n(261),i=n(259),o=!1,u=null;if(i({},function(e,t){if(!o){if(o=!0,e)throwe;u=t}}),!o)thrownewError("Failed to load the yoga module - it needed to be loaded synchronously, but didn't");e.exports=r(u.bind,u.lib)},,function(e,t,n){"use strict";n(12),n(191)},,function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{default:e}}t.__esModule=!0;vari=n(41),o=n(13),u=r(o),a=n(16),s=r(a),l=(0,i.Record)({width:"auto",height:"auto",justifyContent:s.default.JUSTIFY_FLEX_START,alignItems:s.default.ALIGN_STRETCH,alignSelf:s.default.ALIGN_AUTO,alignContent:s.default.ALIGN_STRETCH,flexDirection:s.default.FLEX_DIRECTION_ROW,padding:(0,u.default)(),margin:(0,u.default)(),border:(0,u.default)(),position:(0,u.default)({left:NaN,top:NaN,right:NaN,bottom:NaN}),positionType:s.default.POSITION_TYPE_RELATIVE,flexWrap:s.default.WRAP_NO_WRAP,flexBasis:"auto",flexGrow:0,flexShrink:1,children:(0,i.List)(),aspectRatio:"auto",minWidth:NaN,maxWidth:NaN,minHeight:NaN,maxHeight:NaN});t.default=l,e.exports=t.default},function(e,t,n){"use strict";functionr(e){vart=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}functioni(e,t,n){varr=n;{if("object"!==("undefined"==typeoft?"undefined":k(t)))return"undefined"!=typeofr?("number"==typeofr&&(r+="px"),void(e.style[t]=r)):O(e,t);for(varoint)t.hasOwnProperty(o)&&i(e,o,t[o])}}functiono(e){vart=void0,n=void0,r=void0,i=e.ownerDocument,o=i.body,u=i&&i.documentElement;returnt=e.getBoundingClientRect(),n=t.left,r=t.top,n-=u.clientLeft||o.clientLeft||0,r-=u.clientTop||o.clientTop||0,{left:n,top:r}}functionu(e,t){varn=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeofn){vari=e.document;n=i.documentElement[r],"number"!=typeofn&&(n=i.body[r])}returnn}functiona(e){returnu(e)}functions(e){returnu(e,!0)}functionl(e){vart=o(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;returnt.left+=a(r),t.top+=s(r),t}functionf(e){returnnull!==e&&void0!==e&&e==e.window}functionc(e){returnf(e)?e.document:9===e.nodeType?e:e.ownerDocument}functiond(e,t,n){varr=n,i="",o=c(e);returnr=r||o.defaultView.getComputedStyle(e,null),r&&(i=r.getPropertyValue(t)||r[t]),i}functionp(e,t){varn=e[N]&&e[N][t];if(x.test(n)&&!P.test(t)){varr=e.style,i=r[I],o=e[L][I];e[L][I]=e[N][I],r[I]="fontSize"===t?"1em":n||0,n=r.pixelLeft+R,r[I]=i,e[L][I]=o}return""===n?"auto":n}functionh(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}functionv(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void0}functionm(e,t,n){"static"===i(e,"position")&&(e.style.position="relative");varo=-999,u=-999,a=h("left",n),s=h("top",n),f=v(a),c=v(s);"left"!==a&&(o=999),"top"!==s&&(u=999);vard="",p=l(e);("left"int||"top"int)&&(d=(0,S.getTransitionProperty)(e)||"",(0,S.setTransitionProperty)(e,"none")),"left"int&&(e.style[f]="",e.style[a]=o+"px"),"top"int&&(e.style[c]="",e.style[s]=u+"px"),r(e);varm=l(e),y={};for(var_int)if(t.hasOwnProperty(_)){varg=h(_,n),b="left"===_?o:u,w=p[_]-m[_];g===_?y[g]=b+w:y[g]=b-w}i(e,y),r(e),("left"int||"top"int)&&(0,S.setTransitionProperty)(e,d);varE={};for(varCint)if(t.hasOwnProperty(C)){varT=h(C,n),M=t[C]-p[C];C===T?E[T]=y[T]+M:E[T]=y[T]-M}i(e,E)}functiony(e,t){varn=l(e),r=(0,S.getTransformXY)(e),i={x:r.x,y:r.y};"left"int&&(i.x=
returnr}functionfe(e,t){if(!e)thrownewError(t)}functionce(e){fe(e!==1/0,"Cannot perform this action with an infinite size.")}functionde(e){if(k(e)&&"string"!=typeofe)returne;if(y(e))returne.toArray();thrownewTypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}functionpe(e){returne&&(e.constructor===Object||void0===e.constructor)}functionhe(e){returnd(e)||Array.isArray(e)||pe(e)}functionve(e){try{return"string"==typeofe?JSON.stringify(e):String(e)}catch(t){returnJSON.stringify(e)}}functionme(e,t){returnd(e)?e.has(t):he(e)&&On.call(e,t)}functionye(e,t,n){returnd(e)?e.get(t,n):me(e,t)?"function"==typeofe.get?e.get(t):e[t]:n}function_e(e){if(Array.isArray(e))returnle(e);vart={};for(varnine)On.call(e,n)&&(t[n]=e[n]);returnt}functionge(e,t){if(!he(e))thrownewTypeError("Cannot update non-data-structure value: "+e);if(d(e)){if(!e.remove)thrownewTypeError("Cannot update immutable value without .remove() method: "+e);returne.remove(t)}if(!On.call(e,t))returne;varn=_e(e);returnArray.isArray(n)?n.splice(t,1):deleten[t],n}functionbe(e,t,n){if(!he(e))thrownewTypeError("Cannot update non-data-structure value: "+e);if(d(e)){if(!e.set)thrownewTypeError("Cannot update immutable value without .set() method: "+e);returne.set(t,n)}if(On.call(e,t)&&n===e[t])returne;varr=_e(e);returnr[t]=n,r}functionwe(e,t,n,r){r||(r=n,n=void0);vari=Ee(d(e),e,de(t),0,n,r);returni===fn?n:i}functionEe(e,t,n,r,i,o){varu=t===fn;if(r===n.length){vara=u?i:t,s=o(a);returns===a?t:s}if(!u&&!he(t))thrownewTypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(ve)+"]: "+t);varl=n[r],f=u?fn:ye(t,l,fn),c=Ee(f===fn?e:d(f),f,n,r+1,i,o);returnc===f?t:c===fn?ge(t,l):be(u?e?Ze():{}:t,l,c)}functionCe(e,t,n){returnwe(e,t,fn,function(){returnn})}functionTe(e,t){returnCe(this,e,t)}functionMe(e,t){returnwe(e,t,function(){returnfn})}functionke(e){returnMe(this,e)}functionSe(e,t,n,r){returnwe(e,[t],n,r)}functionAe(e,t,n){return1===arguments.length?e(this):Se(this,e,t,n)}functionOe(e,t,n){returnwe(this,e,t,n)}functionxe(){for(vare=[],t=arguments.length;t--;)e[t]=arguments[t];returnNe(this,e)}functionPe(e){for(vart=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];returnNe(this,t,e)}functionNe(e,t,n){for(varr=[],i=0;i<t.length;i++){varo=gn(t[i]);0!==o.size&&r.push(o)}return0===r.length?e:0!==e.size||e.__ownerID||1!==r.length?e.withMutations(function(e){for(vart=n?function(t,r){Se(e,r,fn,function(e){returne===fn?t:n(e,t,r)})}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)}):e.constructor(r[0])}functionLe(e){for(vart=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];returnFe(e,t)}functionIe(e,t){for(varn=[],r=arguments.length-2;r-->0;)n[r]=arguments[r+2];returnFe(t,n,e)}functionRe(e){for(vart=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];returnBe(e,t)}functionDe(e,t){for(varn=[],r=arguments.length-2;r-->0;)n[r]=arguments[r+2];returnBe(t,n,e)}functionBe(e,t,n){returnFe(e,t,je(n))}functionFe(e,t,n){if(!he(e))thrownewTypeError("Cannot merge into non-data-structure value: "+e);if(d(e))returne.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.concat.apply(e,t);for(varr=Array.isArray(e),i=e,o=r?bn:gn,u=r?function(t){i===e&&(i=_e(i)),i.push(t)}:function(t,r){varo=On.call(i,r),u=o&&n?n(i[r],t,r):t;o&&u===i[r]||(i===e&&(i=_e(i)),i[r]=u)},a=0;a<t.length;a++)o(t[a]).forEach(u);returni}functionje(e){functiont(n,r,i){returnhe(n)&&he(r)?Fe(n,[r],t):e?e(n,r,i):r}returnt}functionUe(){for(vare=[],t=arguments.length;t--;)e[t]=arguments[t];returnBe(this,e)}functionze(e){for(vart=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];returnBe(this,t,e)}functionWe(e){for(vart=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];returnwe(this,e,Ze(),function(e){returnFe(e,t)})}functionKe(e){for(vart=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];returnwe(this,e,Ze(),function(e){returnBe(e,t)})}functionHe(e){vart=this.asMutable();returne(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}functionVe(){ret
t.default=function(e){returnf.default.availableProperties.indexOf(e.property)>-1?s.default.createElement(f.default,e):d.default.availableProperties.indexOf(e.property)>-1?s.default.createElement(d.default,e):s.default.createElement(o.default,u({type:"text"},e,{onChange:function(t){returne.onChange(e.property,t.target.value)},placeholder:"undefined",onFocus:function(e){returne.target.select()},value:Number.isNaN(e.value)?"":e.value}))},e.exports=t.default},,,,,,,,function(e,t,n){(function(e){"use strict";functionr(){try{vare=newUint8Array(1);returne.__proto__={__proto__:Uint8Array.prototype,foo:function(){return42}},42===e.foo()&&"function"==typeofe.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}functioni(){returnu.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functiono(e,t){if(i()<t)thrownewRangeError("Invalid typed array length");returnu.TYPED_ARRAY_SUPPORT?(e=newUint8Array(t),e.__proto__=u.prototype):(null===e&&(e=newu(t)),e.length=t),e}functionu(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||thisinstanceofu))returnnewu(e,t,n);if("number"==typeofe){if("string"==typeoft)thrownewError("If encoding is specified then the first argument must be a string");returnf(this,e)}returna(this,e,t,n)}functiona(e,t,n,r){if("number"==typeoft)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&tinstanceofArrayBuffer?p(e,t,n,r):"string"==typeoft?c(e,t,n):h(e,t)}functions(e){if("number"!=typeofe)thrownewTypeError('"size" argument must be a number');if(e<0)thrownewRangeError('"size" argument must not be negative')}functionl(e,t,n,r){returns(t),t<=0?o(e,t):void0!==n?"string"==typeofr?o(e,t).fill(n,r):o(e,t).fill(n):o(e,t)}functionf(e,t){if(s(t),e=o(e,t<0?0:0|v(t)),!u.TYPED_ARRAY_SUPPORT)for(varn=0;n<t;++n)e[n]=0;returne}functionc(e,t,n){if("string"==typeofn&&""!==n||(n="utf8"),!u.isEncoding(n))thrownewTypeError('"encoding" must be a valid string encoding');varr=0|y(t,n);e=o(e,r);vari=e.write(t,n);returni!==r&&(e=e.slice(0,i)),e}functiond(e,t){varn=t.length<0?0:0|v(t.length);e=o(e,n);for(varr=0;r<n;r+=1)e[r]=255&t[r];returne}functionp(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)thrownewRangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))thrownewRangeError("'length' is out of bounds");returnt=void0===n&&void0===r?newUint8Array(t):void0===r?newUint8Array(t,n):newUint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=u.prototype):e=d(e,t),e}functionh(e,t){if(u.isBuffer(t)){varn=0|v(t.length);returne=o(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeofArrayBuffer&&t.bufferinstanceofArrayBuffer||"length"int)return"number"!=typeoft.length||J(t.length)?o(e,0):d(e,t);if("Buffer"===t.type&&Q(t.data))returnd(e,t.data)}thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}functionv(e){if(e>=i())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return0|e}functionm(e){return+e!=e&&(e=0),u.alloc(+e)}functiony(e,t){if(u.isBuffer(e))returne.length;if("undefined"!=typeofArrayBuffer&&"function"==typeofArrayBuffer.isView&&(ArrayBuffer.isView(e)||einstanceofArrayBuffer))returne.byteLength;"string"!=typeofe&&(e=""+e);varn=e.length;if(0===n)return0;for(varr=!1;;)switch(t){case"ascii":case"latin1":case"binary":returnn;case"utf8":case"utf-8":casevoid0:returnV(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*n;case"hex":returnn>>>1;case"base64":returnq(e).length;default:if(r)returnV(e).length;t=(""+t).toLowerCase(),r=!0}}function_(e,t,n){varr=!1;if((void0===t||t<0)&&(t=0),t>this.length)return"";if((void0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":returnL(this,t,n);case"utf8":case"utf-8":returnO(this,t,n);case"ascii":returnP(this,t,n);case"latin1":case"binary":returnN(this,t,n);case"base64":returnA(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":returnI(this,t,n)
return[b.default.createElement(h.default,{key:"modal",title:t?b.default.createElement("div",{className:"CodeGeneratorsTitle"},F[t].title,b.default.createElement(m.default,{title:this.state.copied?"Copied!":"Click to copy",onVisibleChange:function(){returne.setState({copied:!1})}},b.default.createElement("a",{onClick:this.onCopy},"copy to clipboard"))):"",visible:Boolean(t),footer:null,bodyStyle:{padding:0},onCancel:function(){returne.setState({showModal:null})}},t&&b.default.createElement("div",null,b.default.createElement("textarea",{className:"CodeGeneratorsCopyText",value:r,ref:function(t){e._ref=t}}),b.default.createElement(E.default,{language:F[t].syntax,style:T.default,customStyle:{fontSize:"13px",backgroundColor:"white"},lineNumberStyle:{userSelect:"none",opacity:.5},codeTagProps:{style:{tabSize:4}},showLineNumbers:!0},r))),b.default.createElement(s.default,{overlay:n,key:"dropdown",trigger:["click"]},b.default.createElement(f.default,null,"Get Code ",b.default.createElement(d.default,{type:"down"})))]},t}(g.Component);t.default=j,e.exports=t.default},function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{default:e}}functioni(e,t){varn={justifyContent:"Justify",alignItems:"Align",alignContent:"Align",alignSelf:"Align",position:"Position",flexWrap:"Wrap",positionType:"PositionType",direction:"Driection"};if(n[e]){varr=Object.keys(f.default).filter(function(t){returnt.toLowerCase().startsWith(v.JSEnumLookup[e].toLowerCase())}).find(function(e){returnf.default[e]===t});return"Yoga"+n[e]+"."+(r?r.replace(/^([A-Z]+)_/,""):t)}returnString(t)}functiono(e){returnconsole.log(e),"auto"===e?"Auto":"string"==typeofe&&/%$/.test(e)?"Percent":"Dip"}functionu(e){return"auto"===e?"":", "+parseFloat(e)}functiona(e){vart,n=arguments.length>1&&void0!==arguments[1]?arguments[1]:"",r=arguments[2],s=[],l=(t={},t[f.default.FLEX_DIRECTION_ROW]="Row",t[f.default.FLEX_DIRECTION_ROW_REVERSE]="RowReverse",t[f.default.FLEX_DIRECTION_COLUMN]="Column",t[f.default.FLEX_DIRECTION_COLUMN_REVERSE]="ColumnReverse",t);s.push(n+(""+(r?"return ":"")+l[e.flexDirection]+".create(c)")),e.children.size>0&&s.push.apply(s,e.children.toJSON().map(function(e){returnn+"\t.child(\n"+a(e,n+"\t\t")+")"}));varc=(0,d.default)(),p=(0,h.default)({});returnObject.keys(e.toJSON()).forEach(function(t){if(e[t]instanceofh.default&&!e[t].equals(p)){"border"===t&&s.push(n+"\t.border(",n+"\t\tBorder.create(c)");varr=e[t].toJS(),a=r.top,l=r.left,f=r.right,d=r.bottom;if(a!==p.top&&a===l&&a===f&&a===d)returnvoids.push(n+("border"===t?"\t\t\t.width"+o(e[t].top)+"(YogaEdge.ALL"+u(e[t].top)+")":"\t."+t+o(e[t].top)+"(YogaEdge.ALL"+u(e[t].top)+")"));varv=[];a!==p.top&&a===d&&(s.push(n+("border"===t?"\t\t\t.width"+o(e[t].top)+"(YogaEdge.VERTICAL"+u(e[t].top)+")":"\t."+t+o(e[t].top)+"(YogaEdge.VERTICAL"+u(e[t].top)+")")),v.push("top","bottom")),l!==p.left&&l===f&&(s.push(n+("border"===t?"\t\t\t.width"+o(e[t].left)+"(YogaEdge.HORIZONTAL"+u(e[t].left)+")":"\t."+t+o(e[t].left)+"(YogaEdge.HORIZONTAL"+u(e[t].left)+")")),v.push("left","right")),["left","top","right","bottom"].forEach(function(r,i){e[t][r]!==p[r]&&v.indexOf(r)===-1&&e[t][r]&&s.push(n+("border"===t?"\t\t\t.width"+o(e.border[r])+"(YogaEdge."+r.toUpperCase()+u(e.border[r])+")":"\t."+t+o(e[t][r])+"(YogaEdge."+r.toUpperCase()+u(e[t][r])+")"))}),"border"===t&&s.push(n+"\t\t\t.color(YogaEdge.ALL, 0xfff36b7f)",n+"\t\t\t.build())")}else"children"!==t&&"flexDirection"!==t&&e[t]!==c[t]&&e[t]&&("auto"===e[t]?s.push(n+("\t."+t+"Auto("+i(t,e[t])+")")):"string"==typeofe[t]&&/%$/.test(e[t])?s.push(n+("\t."+t+"Percent("+parseFloat(e[t])+")")):["width","height","minHeight","maxHeight","minWidth","maxWidth","flexBasis"].indexOf(t)>-1?s.push(n+("\t."+t+"Dip("+i(t,e[t])+")")):s.push(n+("\t."+t+"("+i(t,e[t])+")")))}),s.join("\n")}functions(e,t){return["@LayoutSpec","public class PlaygroundComponentSpec {","\t@OnCreateLayout","\tstatic Component onCreateLayout(ComponentContext c) {",a(e,"\t\t",!0),"\t\t\t.build();","\t}","}"].join("\n")}t.__esModule=!0,t.default=s;varl=n(16),f=r(l),c=n(20),d=r(c),p=n(13),h=r(
},r.onMouseDown=function(e){e.target===r._containerRef&&r.hideSidePanes()},r.onChangeLayout=function(e,t){varn=r.state.selectedNodePath;n&&r.modifyAtPath([].concat(a(n),[e]),t)},r.onRemove=function(){vare=r.state,t=e.selectedNodePath,n=e.layoutDefinition;if(t){vari=t.pop(),o=a(t).concat("children"),u=n.getIn(o).delete(i);r.modifyAtPath(o,u),r.setState({selectedNodePath:null})}},r.onAdd=function(){vare=r.state,t=e.selectedNodePath,n=e.layoutDefinition;if(t){vari=a(t).concat("children"),o=n.getIn(i).push((0,A.default)({width:100,height:100}));r.modifyAtPath(i,o)}},r.removeUnchangedProperties=function(e){vart=(0,A.default)({}),n=(0,k.default)({}),i={};returne.equals(t)||Object.keys(e.toJS()).forEach(function(o){"children"===o&&e.children.size>0?i.children=e.children.toJSON().map(r.removeUnchangedProperties):e[o]instanceofk.default&&!e[o].equals(n)?(i[o]={},Object.keys(n.toJS()).forEach(function(t){e[o][t]!==n[t]&&(i[o][t]=e[o][t])})):e[o]!==t[o]&&(i[o]=e[o])}),i},r.getChildrenCountForSelectedPath=function(){vare=(r.state.selectedNodePath||[]).reduce(function(e,t){returne.children.get(t)},r.state.layoutDefinition);returne?e.children.size:0},u=n,o(r,u)}returnu(t,e),t.prototype.componentDidMount=function(){if(document.addEventListener("keydown",this.onKeyDown),window.location.hash&&window.location.hash.length>1)try{vare=JSON.parse(atob(window.location.hash.substr(1)));this.setState({layoutDefinition:this.rehydrate(e)})}catch(e){window.location.hash=""}},t.prototype.componentWillUnmount=function(){document.removeEventListener("keydown",this.onKeyDown)},t.prototype.hideSidePanes=function(){Boolean(this.props.renderSidebar)||this.setState({selectedNodePath:null})},t.prototype.modifyAtPath=function(e,t){varn=arguments.length>2&&void0!==arguments[2]?arguments[2]:this.state.selectedNodePath,r=(0,T.setIn)(this.state.layoutDefinition,e,t);this.setState({layoutDefinition:r,selectedNodePath:n}),this.props.persist&&(window.location.hash=btoa(JSON.stringify(this.removeUnchangedProperties(r))))},t.prototype.render=function(){vare=this,t=this.state,n=t.layoutDefinition,r=t.selectedNodePath,i=t.direction,o=this.props.height,u=r?n.getIn(a(r)):null,s=p.default.createElement("div",{className:"Playground "+(this.props.renderSidebar?"":"standalone"),onMouseDown:this.onMouseDown,style:{height:o,maxHeight:o},ref:function(t){e._containerRef=t}},p.default.createElement(y.default,{layoutDefinition:n,selectedNodePath:r,onClick:function(t){returne.setState({selectedNodePath:t})},onDoubleClick:this.onAdd,direction:i,showGuides:this.props.showGuides}),!this.props.renderSidebar&&p.default.createElement(x.default,null,p.default.createElement("div",{className:"Actions"},p.default.createElement(l.default,{gutter:15},p.default.createElement(c.default,{span:12},p.default.createElement(g.default,{layoutDefinition:n,direction:i})),p.default.createElement(c.default,{span:12},p.default.createElement(w.default,null)))),this.state.selectedNodePath?p.default.createElement(C.default,{node:u,selectedNodeIsRoot:!!r&&0===r.length,onChangeLayout:this.onChangeLayout,onChangeSetting:function(t,n){varr;returne.setState((r={},r[t]=n,r))},direction:i,onRemove:r&&r.length>0?this.onRemove:void0,onAdd:r&&r.length<this.props.maxDepth?this.onAdd:void0}):p.default.createElement("div",{className:"NoContent"},"Select a node to edit its properties")));returnthis.props.renderSidebar?p.default.createElement("div",{className:"PlaygroundContainer "+(this.props.className||"")},p.default.createElement("div",null,this.props.renderSidebar(n.getIn(a(r)),this.onChangeLayout)),s):s},t}(d.Component);P.defaultProps={layoutDefinition:{width:500,height:500,children:[{width:100,height:100},{width:100,height:100},{width:100,height:100}]},direction:v.default.DIRECTION_LTR,maxDepth:3,showGuides:!0,persist:!1},t.default=P,e.exports=t.default},function(e,t){"use strict";functionn(e){vart=e.length;if(t%4>0)thrownewError("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}functionr(e){return3*e.length/4-n(e)}functioni(e){vart,r,i,o,u,a=e.lengt
vartempDoublePtr=STATICTOP;STATICTOP+=16;var_nbind={},Browser={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:function(){Browser.mainLoop.scheduler=null,Browser.mainLoop.currentlyRunningMainloop++},resume:function(){Browser.mainLoop.currentlyRunningMainloop++;vare=Browser.mainLoop.timingMode,t=Browser.mainLoop.timingValue,n=Browser.mainLoop.func;Browser.mainLoop.func=null,_emscripten_set_main_loop(n,0,!1,Browser.mainLoop.arg,!0),_emscripten_set_main_loop_timing(e,t),Browser.mainLoop.scheduler()},updateStatus:function(){if(Module.setStatus){vare=Module.statusMessage||"Please wait...",t=Browser.mainLoop.remainingBlockers,n=Browser.mainLoop.expectedBlockers;t?t<n?Module.setStatus(e+" ("+(n-t)+"/"+n+")"):Module.setStatus(e):Module.setStatus("")}},runIter:function(e){if(!ABORT){if(Module.preMainLoop){vart=Module.preMainLoop();if(t===!1)return}try{e()}catch(e){if(einstanceofExitStatus)return;throwe&&"object"==typeofe&&e.stack&&Module.printErr("exception thrown: "+[e,e.stack]),e}Module.postMainLoop&&Module.postMainLoop()}}},isFullscreen:!1,pointerLock:!1,moduleContextCreatedCallbacks:[],workers:[],init:function(){functione(){Browser.pointerLock=document.pointerLockElement===Module.canvas||document.mozPointerLockElement===Module.canvas||document.webkitPointerLockElement===Module.canvas||document.msPointerLockElement===Module.canvas}if(Module.preloadPlugins||(Module.preloadPlugins=[]),!Browser.initted){Browser.initted=!0;try{newBlob,Browser.hasBlobConstructor=!0}catch(e){Browser.hasBlobConstructor=!1,console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Browser.BlobBuilder="undefined"!=typeofMozBlobBuilder?MozBlobBuilder:"undefined"!=typeofWebKitBlobBuilder?WebKitBlobBuilder:Browser.hasBlobConstructor?null:console.log("warning: no BlobBuilder"),Browser.URLObject="undefined"!=typeofwindow?window.URL?window.URL:window.webkitURL:void0,Module.noImageDecoding||"undefined"!=typeofBrowser.URLObject||(console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."),Module.noImageDecoding=!0);vart={};t.canHandle=function(e){return!Module.noImageDecoding&&/\.(jpg|jpeg|png|bmp)$/i.test(e)},t.handle=function(e,t,n,r){vari=null;if(Browser.hasBlobConstructor)try{i=newBlob([e],{type:Browser.getMimetype(t)}),i.size!==e.length&&(i=newBlob([newUint8Array(e).buffer],{type:Browser.getMimetype(t)}))}catch(e){Runtime.warnOnce("Blob constructor present but fails: "+e+"; falling back to blob builder")}if(!i){varo=newBrowser.BlobBuilder;o.append(newUint8Array(e).buffer),i=o.getBlob()}varu=Browser.URLObject.createObjectURL(i),a=newImage;a.onload=function(){assert(a.complete,"Image "+t+" could not be decoded");varr=document.createElement("canvas");r.width=a.width,r.height=a.height;vari=r.getContext("2d");i.drawImage(a,0,0),Module.preloadedImages[t]=r,Browser.URLObject.revokeObjectURL(u),n&&n(e)},a.onerror=function(e){console.log("Image "+u+" could not be decoded"),r&&r()},a.src=u},Module.preloadPlugins.push(t);varn={};n.canHandle=function(e){return!Module.noAudioDecoding&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},n.handle=function(e,t,n,r){functioni(r){u||(u=!0,Module.preloadedAudios[t]=r,n&&n(e))}functiono(){u||(u=!0,Module.preloadedAudios[t]=newAudio,r&&r())}varu=!1;if(!Browser.hasBlobConstructor)returno();try{vara=newBlob([e],{type:Browser.getMimetype(t)})}catch(e){returno()}vars=Browser.URLObject.createObjectURL(a),l=newAudio;l.addEventListener("canplaythrough",function(){i(l)},!1),l.onerror=function(n){functionr(e){for(vart="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="=",r="",i=0,o=0,u=0;u<e.length;u++)for(i=i<<8|e[u],o+=8;o>=6;){vara=i>>o-6&63;o-=6,r+=t[a]}return2==o?(r+=t[(3&i)<<4],r+=n+n):4==o&&(r+=t[(15&i)<<2],r+=n),r}u||(console.log("warning: browser could not fully decode audio "+t+", trying slower base64 approach"),l.src="data:audio/x-"+t.substr(-3)+";base64,"+r(e),i(l))},l.src=s,Browser.safeSetTi
functiont(){vart=null!==e&&e.apply(this,arguments)||this;returnt.wireRead=popExternal,t.wireWrite=pushExternal,t}return__extends(t,e),t}(_nbind.BindType);_nbind.ExternalType=ExternalType,_nbind.callbackSignatureList=[];varCallbackType=function(e){functiont(){vart=null!==e&&e.apply(this,arguments)||this;returnt.wireWrite=function(e){return"function"!=typeofe&&_nbind.throwError("Type mismatch"),new_nbind.External(e).register()},t}return__extends(t,e),t}(_nbind.BindType);_nbind.CallbackType=CallbackType,_nbind.valueList=[0];varfirstFreeValue=0;_nbind.pushValue=pushValue,_nbind.popValue=popValue;varvalueBase=0x10000000000000000,CreateValueType=function(e){functiont(){returnnull!==e&&e.apply(this,arguments)||this}return__extends(t,e),t.prototype.makeWireWrite=function(e){return"(_nbind.pushValue(new "+e+"))"},t}(_nbind.BindType);_nbind.CreateValueType=CreateValueType;varInt64Type=function(e){functiont(){vart=null!==e&&e.apply(this,arguments)||this;returnt.wireWrite=push64,t.wireRead=pop64,t}return__extends(t,e),t}(_nbind.BindType);_nbind.Int64Type=Int64Type,_nbind.pushArray=pushArray,_nbind.popArray=popArray;varArrayType=function(e){functiont(t){varn=e.call(this,t)||this;returnn.wireRead=function(e){returnpopArray(e,n)},n.wireWrite=function(e){returnpushArray(e,n)},n.readResources=[_nbind.resources.pool],n.writeResources=[_nbind.resources.pool],n.memberType=t.paramList[0],t.paramList[1]&&(n.size=t.paramList[1]),n}return__extends(t,e),t}(_nbind.BindType);_nbind.ArrayType=ArrayType,_nbind.pushString=pushString,_nbind.popString=popString;varStringType=function(e){functiont(){vart=null!==e&&e.apply(this,arguments)||this;returnt.wireRead=popString,t.wireWrite=pushString,t.readResources=[_nbind.resources.pool],t.writeResources=[_nbind.resources.pool],t}return__extends(t,e),t.prototype.makeWireWrite=function(e,t){returnfunction(e){returnpushString(e,t)}},t}(_nbind.BindType);_nbind.StringType=StringType,_nbind.buildJSCallerFunction=buildJSCallerFunction,_nbind.makeJSCaller=makeJSCaller,_nbind.makeMethodCaller=makeMethodCaller,_nbind.makeCaller=makeCaller,_nbind.makeOverloader=makeOverloader;varResource=function(){functione(e,t){varn=this;this.makeOpen=function(){returnObject.keys(n.openTbl).join("")},this.makeClose=function(){returnObject.keys(n.closeTbl).join("")},this.openTbl={},this.closeTbl={},e&&(this.openTbl[e]=!0),t&&(this.closeTbl[t]=!0)}returne.prototype.add=function(e){for(vart=0,n=Object.keys(e.openTbl);t<n.length;t++){varr=n[t];this.openTbl[r]=!0}for(vari=0,o=Object.keys(e.closeTbl);i<o.length;i++){varr=o[i];this.closeTbl[r]=!0}},e.prototype.remove=function(e){for(vart=0,n=Object.keys(e.openTbl);t<n.length;t++){varr=n[t];deletethis.openTbl[r]}for(vari=0,o=Object.keys(e.closeTbl);i<o.length;i++){varr=o[i];deletethis.closeTbl[r]}},e}();_nbind.Resource=Resource,_nbind.listResources=listResources,_nbind.resources={pool:newResource("var used=HEAPU32[_nbind.Pool.usedPtr],page=HEAPU32[_nbind.Pool.pagePtr];","_nbind.Pool.lreset(used,page);")};varExternalBuffer=function(e){functiont(t,n){varr=e.call(this,t)||this;returnr.ptr=n,r}return__extends(t,e),t.prototype.free=function(){_free(this.ptr)},t}(_nbind.External),BufferType=function(e){functiont(){vart=null!==e&&e.apply(this,arguments)||this;returnt.wireWrite=pushBuffer,t.readResources=[_nbind.resources.pool],t.writeResources=[_nbind.resources.pool],t}return__extends(t,e),t.prototype.makeWireWrite=function(e,t){returnfunction(e){returnpushBuffer(e,t)}},t}(_nbind.BindType);_nbind.BufferType=BufferType,_nbind.commitBuffer=commitBuffer;vardirtyList=[],gcTimer=0;_nbind.mark=function(e){},_nbind.toggleLightGC=toggleLightGC}(_nbind),Module.requestFullScreen=function(e,t,n){Module.printErr("Module.requestFullScreen is deprecated. Please call Module.requestFullscreen instead."),Module.requestFullScreen=Module.requestFullscreen,Browser.requestFullScreen(e,t,n)},Module.requestFullscreen=function(e,t,n){Browser.requestFullscreen(e,t,n)},Module.requestAnimationFrame=function(e){Browser.requestAnimationFrame(e)},Module.setCanvasS