UNPKG

react-draft-wysiwyg

Version:
11 lines (9 loc) 197 kB
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Webpack Bundle Analyzer</title> <!-- viewer.js --> <script> (function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=7)})([function(e,t,n){"use strict";function r(){}function o(e,t){var n,o,i,a,u=A;for(a=arguments.length;a-- >2;)O.push(arguments[a]);for(t&&null!=t.children&&(O.length||O.push(t.children),delete t.children);O.length;)if((o=O.pop())&&void 0!==o.pop)for(a=o.length;a--;)O.push(o[a]);else"boolean"==typeof o&&(o=null),(i="function"!=typeof e)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(i=!1)),i&&n?u[u.length-1]+=o:u===A?u=[o]:u.push(o),n=i;var l=new r;return l.nodeName=e,l.children=u,l.attributes=null==t?void 0:t,l.key=null==t?void 0:t.key,void 0!==F.vnode&&F.vnode(l),l}function i(e,t){for(var n in t)e[n]=t[n];return e}function a(e,t){return o(e.nodeName,i(i({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function u(e){!e._dirty&&(e._dirty=!0)&&1==I.push(e)&&(F.debounceRendering||G)(l)}function l(){var e,t=I;for(I=[];e=t.pop();)e._dirty&&L(e)}function c(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&s(e,t.nodeName):n||e._componentConstructor===t.nodeName}function s(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function f(e){var t=i({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function h(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function d(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),r&&r(e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===E.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,v,a):e.removeEventListener(t,v,a),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e)b(e,t,null==r?"":r),null!=r&&!1!==r||e.removeAttribute(t);else{var u=o&&t!==(t=t.replace(/^xlink\:?/,""));null==r||!1===r?u?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(u?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function b(e,t,n){try{e[t]=n}catch(e){}}function v(e){return this._listeners[e.type](F.event&&F.event(e)||e)}function g(){for(var e;e=B.pop();)F.afterMount&&F.afterMount(e),e.componentDidMount&&e.componentDidMount()}function y(e,t,n,r,o,i){R++||(H=null!=o&&void 0!==o.ownerSVGElement,N=null!=e&&!("__preactattr_"in e));var a=m(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--R||(N=!1,i||g()),a}function m(e,t,n,r,o){var i=e,a=H;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),w(e,!0))),i.__preactattr_=!0,i;var u=t.nodeName;if("function"==typeof u)return _(e,t,n,r);if(H="svg"===u||"foreignObject"!==u&&H,u=String(u),(!e||!s(e,u))&&(i=h(u,H),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),w(e,!0)}var l=i.firstChild,c=i.__preactattr_,f=t.children;if(null==c){c=i.__preactattr_={};for(var p=i.attributes,d=p.length;d--;)c[p[d].name]=p[d].value}return!N&&f&&1===f.length&&"string"==typeof f[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=f[0]&&(l.nodeValue=f[0]):(f&&f.length||null!=l)&&x(i,f,n,r,N||null!=c.dangerouslySetInnerHTML),T(i,t.attributes,c),H=a,i}function x(e,t,n,r,o){var i,a,u,l,s,f=e.childNodes,h=[],d={},b=0,v=0,g=f.length,y=0,x=t?t.length:0;if(0!==g)for(var C=0;C<g;C++){var T=f[C],S=T.__preactattr_,z=x&&S?T._component?T._component.__key:S.key:null;null!=z?(b++,d[z]=T):(S||(void 0!==T.splitText?!o||T.nodeValue.trim():o))&&(h[y++]=T)}if(0!==x)for(var C=0;C<x;C++){l=t[C],s=null;var z=l.key;if(null!=z)b&&void 0!==d[z]&&(s=d[z],d[z]=void 0,b--);else if(!s&&v<y)for(i=v;i<y;i++)if(void 0!==h[i]&&c(a=h[i],l,o)){s=a,h[i]=void 0,i===y-1&&y--,i===v&&v++;break}s=m(s,l,n,r),u=f[C],s&&s!==e&&s!==u&&(null==u?e.appendChild(s):s===u.nextSibling?p(u):e.insertBefore(s,u))}if(b)for(var C in d)void 0!==d[C]&&w(d[C],!1);for(;v<=y;)void 0!==(s=h[y--])&&w(s,!1)}function w(e,t){var n=e._component;n?P(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||p(e),C(e))}function C(e){for(e=e.lastChild;e;){var t=e.previousSibling;w(e,!0),e=t}}function T(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||d(e,r,n[r],n[r]=void 0,H);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||d(e,r,n[r],n[r]=t[r],H)}function S(e){var t=e.constructor.name;(W[t]||(W[t]=[])).push(e)}function z(e,t,n){var r,o=W[e.name];if(e.prototype&&e.prototype.render?(r=new e(t,n),j.call(r,t,n)):(r=new j(t,n),r.constructor=e,r.render=k),o)for(var i=o.length;i--;)if(o[i].constructor===e){r.nextBase=o[i].nextBase,o.splice(i,1);break}return r}function k(e,t,n){return this.constructor(e,n)}function M(e,t,n,r,o){e._disable||(e._disable=!0,(e.__ref=t.ref)&&delete t.ref,(e.__key=t.key)&&delete t.key,!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===F.syncComponentUpdates&&e.base?u(e):L(e,1,o)),e.__ref&&e.__ref(e))}function L(e,t,n,r){if(!e._disable){var o,a,u,l=e.props,c=e.state,s=e.context,h=e.prevProps||l,p=e.prevState||c,d=e.prevContext||s,b=e.base,v=e.nextBase,m=b||v,x=e._component,C=!1;if(b&&(e.props=h,e.state=p,e.context=d,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,c,s)?C=!0:e.componentWillUpdate&&e.componentWillUpdate(l,c,s),e.props=l,e.state=c,e.context=s),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!C){o=e.render(l,c,s),e.getChildContext&&(s=i(i({},s),e.getChildContext()));var T,S,k=o&&o.nodeName;if("function"==typeof k){var _=f(o);a=x,a&&a.constructor===k&&_.key==a.__key?M(a,_,1,s,!1):(T=a,e._component=a=z(k,_,s),a.nextBase=a.nextBase||v,a._parentComponent=e,M(a,_,0,s,!1),L(a,1,n,!0)),S=a.base}else u=m,T=x,T&&(u=e._component=null),(m||1===t)&&(u&&(u._component=null),S=y(u,o,s,n||!b,m&&m.parentNode,!0));if(m&&S!==m&&a!==x){var j=m.parentNode;j&&S!==j&&(j.replaceChild(S,m),T||(m._component=null,w(m,!1)))}if(T&&P(T),e.base=S,S&&!r){for(var D=e,O=e;O=O._parentComponent;)(D=O).base=S;S._component=D,S._componentConstructor=D.constructor}}if(!b||n?B.unshift(e):C||(e.componentDidUpdate&&e.componentDidUpdate(h,p,d),F.afterUpdate&&F.afterUpdate(e)),null!=e._renderCallbacks)for(;e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);R||r||g()}}function _(e,t,n,r){for(var o=e&&e._component,i=o,a=e,u=o&&e._componentConstructor===t.nodeName,l=u,c=f(t);o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;return o&&l&&(!r||o._component)?(M(o,c,3,n,r),e=o.base):(i&&!u&&(P(i),e=a=null),o=z(t.nodeName,c,n),e&&!o.nextBase&&(o.nextBase=e,a=null),M(o,c,1,n,r),e=o.base,a&&e!==a&&(a._component=null,w(a,!1))),e}function P(e){F.beforeUnmount&&F.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?P(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.nextBase=t,p(t),S(e),C(t)),e.__ref&&e.__ref(null)}function j(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{}}function D(e,t,n){return y(n,e,{},!1,t,!1)}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"h",function(){return o}),n.d(t,"createElement",function(){return o}),n.d(t,"cloneElement",function(){return a}),n.d(t,"Component",function(){return j}),n.d(t,"render",function(){return D}),n.d(t,"rerender",function(){return l}),n.d(t,"options",function(){return F});var F={},O=[],A=[],G="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,E=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,I=[],B=[],R=0,H=!1,N=!1,W={};i(j.prototype,{setState:function(e,t){var n=this.state;this.prevState||(this.prevState=i({},n)),i(n,"function"==typeof e?e(n,this.props):e),t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),u(this)},forceUpdate:function(e){e&&(this._renderCallbacks=this._renderCallbacks||[]).push(e),L(this,2)},render:function(){}});var U={h:o,createElement:o,cloneElement:a,Component:j,render:D,rerender:l,options:F};t.default=U},function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var i=r(o);return[n].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([i]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=d[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(s(r.parts[i],t))}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(s(r.parts[i],t));d[r.id]={id:r.id,refs:1,parts:a}}}}function o(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],u=i[1],l=i[2],c=i[3],s={css:u,media:l,sourceMap:c};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function i(e,t){var n=g(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=x[x.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),x.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=g(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function a(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=x.indexOf(e);t>=0&&x.splice(t,1)}function u(e){var t=document.createElement("style");return e.attrs.type="text/css",c(t,e.attrs),i(e,t),t}function l(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",c(t,e.attrs),i(e,t),t}function c(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function s(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var c=m++;n=y||(y=u(t)),r=f.bind(null,n,c,!1),o=f.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=p.bind(null,n,t),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=u(t),r=h.bind(null,n),o=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function f(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=C(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function h(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=w(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),u=e.href;e.href=URL.createObjectURL(a),u&&URL.revokeObjectURL(u)}var d={},b=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),v=function(e){return document.querySelector(e)},g=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=v.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),y=null,m=0,x=[],w=n(16);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=b()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=o(e,t);return r(n,t),function(e){for(var i=[],a=0;a<n.length;a++){var u=n[a],l=d[u.id];l.refs--,i.push(l)}if(e){r(o(e,t),t)}for(var a=0;a<i.length;a++){var l=i[a];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete d[l.id]}}}};var C=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var r,o;(function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}var i={}.hasOwnProperty;void 0!==e&&e.exports?e.exports=n:(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))})()},function(e,t,n){var r=n(19);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0};o.transform=void 0,o.insertInto=void 0;n(2)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),s=n(23),f=r(s),h=n(6),p=r(h),d=Symbol("ALL_ITEM"),b=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleToggleAllCheck=function(){var e=n.isAllChecked()?[]:n.props.items;n.setState({checkedItems:e}),n.informAboutChange(e)},n.handleItemCheck=function(e){var t=void 0;t=n.isItemChecked(e)?n.state.checkedItems.filter(function(t){return t!==e}):[].concat(o(n.state.checkedItems),[e]),n.setState({checkedItems:t}),n.informAboutChange(t)},n.state={checkedItems:e.checkedItems||e.items},n}return u(t,e),l(t,[{key:"componentWillReceiveProps",value:function(e){var t=this;if(e.items!==this.props.items)if(this.isAllChecked())this.setState({checkedItems:e.items}),this.informAboutChange(e.items);else if(this.state.checkedItems.length){var n=e.items.filter(function(e){return t.state.checkedItems.find(function(t){return t.label===e.label})});this.setState({checkedItems:n}),this.informAboutChange(n)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.items,o=t.renderLabel;return(0,c.h)("div",{className:p.default.container},(0,c.h)("div",{className:p.default.label},n,":"),(0,c.h)("div",null,(0,c.h)(f.default,{item:d,checked:this.isAllChecked(),onChange:this.handleToggleAllCheck},o),r.map(function(t){return(0,c.h)(f.default,{key:t.label,item:t,checked:e.isItemChecked(t),onChange:e.handleItemCheck},o)})))}},{key:"isItemChecked",value:function(e){return this.state.checkedItems.includes(e)}},{key:"isAllChecked",value:function(){return this.props.items.length===this.state.checkedItems.length}},{key:"informAboutChange",value:function(e){var t=this;setTimeout(function(){return t.props.onChange(e)})}}]),t}(c.Component);b.ALL_ITEM=d,t.default=b},function(e,t,n){var r=n(24);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0};o.transform=void 0,o.insertInto=void 0;n(2)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){s=(0,i.render)((0,i.h)(u.default,{data:e,defaultSizes:window.defaultSizes}),document.getElementById("app"),s)}var i=n(0),a=n(8),u=r(a),l=n(27),c=(r(l),void 0);try{c=new WebSocket("ws://"+location.host)}catch(e){console.warn("Couldn't connect to analyzer websocket server so you'll have to reload page manually to see updates in the treemap")}window.addEventListener("load",function(){o(window.chartData),c&&c.addEventListener("message",function(e){var t=JSON.parse(e.data);"chartDataUpdated"===t.event&&o(t.data)})},!1);var s=void 0},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),s=n(9),f=r(s),h=n(11),p=r(h),d=n(13),b=r(d),v=n(17),g=r(v),y=n(20),m=r(y),x=n(5),w=r(x),C=n(25),T=r(C),S=[{label:"Stat",prop:"statSize"},{label:"Parsed",prop:"parsedSize"},{label:"Gzipped",prop:"gzipSize"}],z=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.renderChunkItemLabel=function(e,t){var r=e===w.default.ALL_ITEM,o=r?"All":e.label,i=r?n.totalChunksSize:e[n.state.activeSizeItem.prop];return(0,c.h)("span",{className:t},o," (",(0,c.h)("strong",null,(0,f.default)(i)),")")},n.handleSizeSwitch=function(e){n.setState({activeSizeItem:e})},n.handleVisibleChunksChange=function(e){n.visibleChunkItems=e,n.setState({data:n.getVisibleChunksData()})},n.handleMouseLeaveTreemap=function(){n.setState({showTooltip:!1})},n.handleTreemapGroupHover=function(e){var t=e.group;t?n.setState({showTooltip:!0,tooltipContent:n.getTooltipContent(t)}):n.setState({showTooltip:!1})},n.setData(e.data,!0),n}return u(t,e),l(t,[{key:"componentWillReceiveProps",value:function(e){e.data!==this.props.data&&this.setData(e.data)}},{key:"render",value:function(){var e=this.state,t=e.data,n=e.showTooltip,r=e.tooltipContent,o=e.activeSizeItem;return(0,c.h)("div",{className:T.default.container},(0,c.h)(m.default,null,(0,c.h)("div",{className:T.default.sidebarGroup},(0,c.h)(g.default,{label:"Treemap sizes",items:this.sizeSwitchItems,activeItem:o,onSwitch:this.handleSizeSwitch})),this.state.chunkItems.length>1&&(0,c.h)("div",{className:T.default.sidebarGroup},(0,c.h)(w.default,{label:"Show chunks",items:this.state.chunkItems,checkedItems:this.visibleChunkItems,renderLabel:this.renderChunkItemLabel,onChange:this.handleVisibleChunksChange}))),(0,c.h)(p.default,{className:T.default.map,data:t,weightProp:o.prop,onMouseLeave:this.handleMouseLeaveTreemap,onGroupHover:this.handleTreemapGroupHover}),(0,c.h)(b.default,{visible:n},r))}},{key:"renderModuleSize",value:function(e,t){var n=t+"Size",r=e[n],o=S.find(function(e){return e.prop===n}).label,i=this.state.activeSizeItem.prop===n;return"number"==typeof r?(0,c.h)("div",{className:i?T.default.activeSize:""},o," size: ",(0,c.h)("strong",null,(0,f.default)(r))):null}},{key:"setData",value:function(e,t){var n="number"==typeof e[0].parsedSize;this.sizeSwitchItems=n?S:S.slice(0,1);var r=t?this.props.defaultSizes+"Size":this.state.activeSizeItem.prop,i=this.sizeSwitchItems.find(function(e){return e.prop===r});i||(i=this.sizeSwitchItems[0]);var a=[].concat(o(e)).sort(function(e,t){return t[i.prop]-e[i.prop]});t&&(this.visibleChunkItems=a),this.setState({data:this.getVisibleChunksData(),showTooltip:!1,tooltipContent:null,activeSizeItem:i,chunkItems:a})}},{key:"getVisibleChunksData",value:function(){var e=this;return this.props.data.filter(function(t){return e.visibleChunkItems.find(function(e){return e.label===t.label})})}},{key:"getTooltipContent",value:function(e){return e?(0,c.h)("div",null,(0,c.h)("div",null,(0,c.h)("strong",null,e.label)),(0,c.h)("br",null),this.renderModuleSize(e,"stat"),!e.inaccurateSizes&&this.renderModuleSize(e,"parsed"),!e.inaccurateSizes&&this.renderModuleSize(e,"gzip"),e.path&&(0,c.h)("div",null,"Path: ",(0,c.h)("strong",null,e.path))):null}},{key:"totalChunksSize",get:function(){var e=this.state.activeSizeItem.prop;return this.props.data.reduce(function(t,n){return t+n[e]},0)}}]),t}(c.Component);t.default=z},function(e,t,n){"use strict";(function(t){(function(t){function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],a=0,u=void 0,l=void 0,c=void 0,s=void 0,f=void 0,h=void 0,p=void 0,d=void 0,b=void 0,v=void 0,g=void 0,y=void 0,m=void 0,x=void 0;if(isNaN(e))throw new Error("Invalid arguments");return c=!0===t.bits,g=!0===t.unix,l=t.base||2,v=void 0!==t.round?t.round:g?1:2,y=void 0!==t.spacer?t.spacer:g?"":" ",x=t.symbols||t.suffixes||{},m=2===l?t.standard||"jedec":"jedec",b=t.output||"string",f=!0===t.fullform,h=t.fullforms instanceof Array?t.fullforms:[],u=void 0!==t.exponent?t.exponent:-1,d=Number(e),p=d<0,s=l>2?1e3:1024,p&&(d=-d),(-1===u||isNaN(u))&&(u=Math.floor(Math.log(d)/Math.log(s)))<0&&(u=0),u>8&&(u=8),0===d?(n[0]=0,n[1]=g?"":o[m][c?"bits":"bytes"][u]):(a=d/(2===l?Math.pow(2,10*u):Math.pow(1e3,u)),c&&(a*=8)>=s&&u<8&&(a/=s,u++),n[0]=Number(a.toFixed(u>0?v:0)),n[1]=10===l&&1===u?c?"kb":"kB":o[m][c?"bits":"bytes"][u],g&&(n[1]="jedec"===m?n[1].charAt(0):u>0?n[1].replace(/B$/,""):n[1],r.test(n[1])&&(n[0]=Math.floor(n[0]),n[1]=""))),p&&(n[0]=-n[0]),n[1]=x[n[1]]||n[1],"array"===b?n:"exponent"===b?u:"object"===b?{value:n[0],suffix:n[1],symbol:n[1]}:(f&&(n[1]=h[u]?h[u]:i[m][u]+(c?"bit":"byte")+(1===n[0]?"":"s")),n.join(y))}var r=/^(b|B)$/,o={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},i={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};n.partial=function(e){return function(t){return n(t,e)}},e.exports=n})("undefined"!=typeof window&&window)}).call(t,n(10))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){e.preventDefault()}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),s=n(12),f=function(e){return e&&e.__esModule?e:{default:e}}(s),h=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.saveNode=function(e){return n.node=e},n.treemap=null,n.zoomOutDisabled=!1,n}return i(t,e),l(t,[{key:"componentDidMount",value:function(){this.setWeightProp(this.props.weightProp),this.treemap=this.createTreemap(),window.addEventListener("resize",this.treemap.resize,!1)}},{key:"componentWillReceiveProps",value:function(e){e.data!==this.props.data?(this.setWeightProp(e.weightProp,e.data),this.treemap.set({dataObject:{groups:e.data}})):e.weightProp!==this.props.weightProp&&(this.setWeightProp(e.weightProp),this.update())}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.treemap.resize),this.treemap.dispose()}},{key:"render",value:function(){return(0,c.h)("div",u({},this.props,{ref:this.saveNode}))}},{key:"createTreemap",value:function(){var e=this,t=this.props,n=!1;return new f.default({element:this.node,layout:"squarified",stacking:"flattened",pixelRatio:window.devicePixelRatio||1,maxGroupLevelsDrawn:Number.MAX_VALUE,maxGroupLabelLevelsDrawn:Number.MAX_VALUE,groupLabelVerticalPadding:.2,rolloutDuration:0,pullbackDuration:0,fadeDuration:0,zoomMouseWheelDuration:300,openCloseDuration:200,dataObject:{groups:this.props.data},titleBarDecorator:function(e,t,n){n.titleBarShown=!1},onGroupClick:function(e){a(e),n=!1,this.zoom(e.group)},onGroupDoubleClick:a,onGroupHover:function(n){if(n.group&&n.group.attribution)return void n.preventDefault();t.onGroupHover&&t.onGroupHover.call(e,n)},onGroupMouseWheel:function(e){if(e.delta<0){if(n)return a(e);this.get("viewport").scale<1&&(n=!0,a(e))}else n=!1}})}},{key:"update",value:function(){this.treemap.update()}},{key:"setWeightProp",value:function(e,t){function n(t){t.weight=t[e],t.groups&&t.groups.forEach(n)}t=t||this.props.data,t.forEach(n)}}]),t}(c.Component);t.default=h},function(e,t){(function(){function e(){function e(){if(!i)throw"AF0";var e=F.now();0!==a&&(n.Jd=e-a),a=e,o=o.filter(function(e){return null!==e}),n.frames++;for(var r=0;r<o.length;r++){var u=o[r];null!==u&&(!0===u.ze.call(u.Yg)?o[r]=null:H.Rc(u.repeat)&&(u.repeat=u.repeat-1,0>=u.repeat&&(o[r]=null)))}o=o.filter(function(e){return null!==e}),i=!1,t(),e=F.now()-e,0!==e&&(n.Id=e),n.totalTime+=e,n.Pe=1e3*n.frames/n.totalTime,a=0===o.length?0:F.now()}function t(){0<o.length&&!i&&(i=!0,r(e))}var n=this.rg={frames:0,totalTime:0,Id:0,Jd:0,Pe:0};j=n;var r=function(){return D.mf()?function(e){window.setTimeout(e,0)}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(){var e=F.create();return function(t){var n=0;window.setTimeout(function(){var r=e.now();t(),n=e.now()-r},16>n?16-n:0)}}()}(),o=[],i=!1,a=0;this.repeat=function(e,n,r){this.cancel(e),o.push({ze:e,Yg:r,repeat:n}),t()},this.d=function(e,t){this.repeat(e,1,t)},this.cancel=function(e){for(var t=0;t<o.length;t++){var n=o[t];null!==n&&n.ze===e&&(o[t]=null)}},this.k=function(){o=[]}}function t(e){function t(e){s[e].style.opacity=h*f[e]}function n(e){e.width=Math.round(i*e.n),e.height=Math.round(a*e.n)}function r(){return/relative|absolute|fixed/.test(window.getComputedStyle(o,null).getPropertyValue("position"))}var o,i,a,u,l,c=[],s={},f={},h=0;this.H=function(t){o=t,r()||(o.style.position="relative"),0!=o.clientWidth&&0!=o.clientHeight||$.Pa("element has zero dimensions: "+o.clientWidth+" x "+o.clientHeight+"."),o.innerHTML="",i=o.clientWidth,a=o.clientHeight,u=0!==i?i:void 0,l=0!==a?a:void 0,"embedded"===o.getAttribute("data-foamtree")&&$.Pa("visualization already embedded in the element."),o.setAttribute("data-foamtree","embedded"),e.c.p("stage:initialized",this,o,i,a)},this.kb=function(){o.removeAttribute("data-foamtree"),c=[],s={},e.c.p("stage:disposed",this,o)},this.k=function(){if(r()||(o.style.position="relative"),i=o.clientWidth,a=o.clientHeight,0!==i&&0!==a&&(i!==u||a!==l)){for(var t=c.length-1;0<=t;t--)n(c[t]);e.c.p("stage:resized",u,l,i,a),u=i,l=a}},this.ej=function(e,t){e.n=t,n(e)},this.oc=function(r,i,a){var u=document.createElement("canvas");return u.setAttribute("style","position: absolute; top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100%; -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;"),u.n=i,n(u),c.push(u),s[r]=u,f[r]=1,t(r),a||o.appendChild(u),e.c.p("stage:newLayer",r,u),u},this.kc=function(e,n){return H.V(n)||(f[e]=n,t(e)),f[e]},this.d=function(e){return H.V(e)||(h=e,H.Ga(s,function(e,n){t(n)})),h}}function n(e){function t(e,t,n){return y=!0,d.x=0,d.y=0,b.x=0,b.y=0,a=h,u.x=p.x,u.y=p.y,t(),l*=e,c=n?l/a:e,c=Math.max(.25/a,c),!0}function n(e,t){return t.x=e.x/h+p.x,t.y=e.y/h+p.y,t}function r(e,t,n,r,o,i,a,u,l){var c=(e-n)*(i-u)-(t-r)*(o-a);return!(1e-5>Math.abs(c))&&(l.x=((e*r-t*n)*(o-a)-(e-n)*(o*u-i*a))/c,l.y=((e*r-t*n)*(i-u)-(t-r)*(o*u-i*a))/c,!0)}var o,i,a=1,u={x:0,y:0},l=1,c=1,s=1,f={x:0,y:0},h=1,p={x:0,y:0},d={x:0,y:0},b={x:0,y:0},v={x:0,y:0,f:0,i:0},g={x:0,y:0,f:0,i:0,scale:1},y=!0;e.c.j("stage:initialized",function(e,t,n,r){o=n,i=r,v.x=0,v.y=0,v.f=n,v.i=r,g.x=0,g.y=0,g.f=n,g.i=r,g.scale=1}),e.c.j("stage:resized",function(e,t,n,r){function a(e){e.x*=c,e.y*=s}function l(e){a(e),e.f*=c,e.i*=s}o=n,i=r;var c=n/e,s=r/t;a(u),a(p),a(f),a(d),a(b),l(v),l(g)}),this.Yb=function(e,r){return t(r,function(){n(e,f)},!0)},this.Y=function(e,n){if(1==Math.round(1e4*n)/1e4){var o=v.x-p.x,i=v.y-p.y;return t(1,function(){},!0),this.d(-o,-i)}return t(n,function(){for(var t=!1;!t;)var t=Math.random(),n=Math.random(),o=Math.random(),i=Math.random(),t=r(e.x+t*e.f,e.y+n*e.i,v.x+t*v.f,v.y+n*v.i,e.x+o*e.f,e.y+i*e.i,v.x+o*v.f,v.y+i*v.i,f)},!0)},this.sc=function(e,n){var a,u,l,c;return a=e.f/e.i,u=o/i,a<u?(l=e.i*u,c=e.i,a=e.x-.5*(l-e.f),u=e.y):a>u?(l=e.f,c=e.f*i/o,a=e.x,u=e.y-.5*(c-e.i)):(a=e.x,u=e.y,l=e.f,c=e.i),a-=l*n,u-=c*n,l*=1+2*n,r(a,u,p.x,p.y,a+l,u,p.x+o/h,p.y,f)?t(o/h/l,H.ta,!1):(y=!1,this.d(h*(p.x-a),h*(p.y-u)))},this.d=function(e,t){var n=Math.round(1e4*e)/1e4,r=Math.round(1e4*t)/1e4;return b.x+=n/h,b.y+=r/h,0!==n||0!==r},this.reset=function(e){return e&&this.content(0,0,o,i),this.Y({x:v.x+p.x,y:v.y+p.y,f:v.f/h,i:v.i/h},s/l)},this.Pb=function(e){s=Math.min(1,Math.round(1e4*(e||l))/1e4)},this.k=function(){return p.x<v.x?(v.x-p.x)*h:p.x+o/h>v.x+v.f?-(p.x+o/h-v.x-v.f)*h:0},this.A=function(){return p.y<v.y?(v.y-p.y)*h:p.y+i/h>v.y+v.i?-(p.y+i/h-v.y-v.i)*h:0},this.update=function(e){var t=Math.abs(Math.log(c));6>t?t=2:(t/=4,t+=3*t*(1<c?e:1-e)),t=1<c?Math.pow(e,t):1-Math.pow(1-e,t),t=(y?t:1)*(c-1)+1,h=a*t,p.x=f.x-(f.x-u.x)/t,p.y=f.y-(f.y-u.y)/t,p.x-=d.x*(1-e)+b.x*e,p.y-=d.y*(1-e)+b.y*e,1===e&&(d.x=b.x,d.y=b.y),g.x=p.x,g.y=p.y,g.f=o/h,g.i=i/h,g.scale=h},this.S=function(e){return e.x=g.x,e.y=g.y,e.scale=g.scale,e},this.absolute=function(e,t){return n(e,t||{})},this.md=function(e,t){var n=t||{};return n.x=(e.x-p.x)*h,n.y=(e.y-p.y)*h,n},this.Gc=function(e){return this.scale()<s/e},this.Rd=function(){return H.Ed(h,1)},this.scale=function(){return Math.round(1e4*h)/1e4},this.content=function(e,t,n,r){v.x=e,v.y=t,v.f=n,v.i=r},this.Ic=function(e,t){var n;for(n=e.length-1;0<=n;n--){var r=e[n];r.save(),r.scale(h,h),r.translate(-p.x,-p.y)}for(t(g),n=e.length-1;0<=n;n--)r=e[n],r.restore()}}function r(){var e,t=!1,n=[],r=this,o=new function(){this.N=function(o){return o&&(t?o.apply(r,e):n.push(o)),this},this.ih=function(e){return r=e,{then:this.N}}};this.J=function(){e=arguments;for(var o=0;o<n.length;o++)n[o].apply(r,e);return t=!0,this},this.L=function(){return o}}function o(e){var t=new r,n=e.length;if(0<e.length)for(var o=e.length-1;0<=o;o--)e[o].N(function(){0==--n&&t.J()});else t.J();return t.L()}function i(e){var t=0;this.d=function(){t++},this.k=function(){0===--t&&e()},this.clear=function(){t=0},this.A=function(){return 0===t}}function a(){var e=document,t={};this.addEventListener=function(n,r){var o=t[n];o||(o=[],t[n]=o),o.push(r),e.addEventListener(n,r)},this.d=function(){H.Ga(t,function(t,n){for(var r=t.length-1;0<=r;r--)e.removeEventListener(n,t[r])})}}function u(e){function t(e){return function(t){n(t)&&e.apply(this,arguments)}}function n(t){for(t=t.target;t;){if(t===e)return!0;t=t.parentElement}return!1}function r(e,t,n){n=n||{},o(e,n);for(var r=0;r<t.length;r++)t[r].call(e.target,n);return(void 0===n.Lb&&n.yi||"prevent"===n.Lb)&&e.preventDefault(),n}function o(t,n){return B.Je(e,t.clientX,t.clientY,n),n.altKey=t.altKey,n.metaKey=t.metaKey,n.ctrlKey=t.ctrlKey,n.shiftKey=t.shiftKey,n.wb=3===t.which,n}var i=new a,u=[],l=[],c=[],s=[],f=[],h=[],p=[],d=[],b=[],v=[],g=[];this.d=function(e){u.push(e)},this.k=function(e){f.push(e)},this.ya=function(e){l.push(e)},this.Ba=function(e){c.push(e)},this.Pa=function(e){s.push(e)},this.Aa=function(e){g.push(e)},this.za=function(e){h.push(e)},this.Ja=function(e){p.push(e)},this.Y=function(e){d.push(e)},this.A=function(e){b.push(e)},this.S=function(e){v.push(e)},this.kb=function(){i.d()};var y,m,x,w,C={x:0,y:0},T={x:0,y:0},S=!1,z=!1;i.addEventListener("mousedown",t(function(t){if(t.target!==e){var n=r(t,c);T.x=n.x,T.y=n.y,C.x=n.x,C.y=n.y,S=!0,r(t,d),m=!1,y=window.setTimeout(function(){100>V.d(C,n)&&(window.clearTimeout(w),r(t,l),m=!0)},400)}})),i.addEventListener("mouseup",function(e){if(r(e,s),S){if(z&&r(e,v),window.clearTimeout(y),!m&&!z&&n(e)){var t=function(e){var t={};return t.x=e.pageX,t.y=e.pageY,t}(e);x&&100>V.d(t,x)?r(e,f):r(e,u),x=t,w=window.setTimeout(function(){x=null},350)}z=S=!1}}),i.addEventListener("mousemove",function(e){var t=o(e,{});n(e)&&r(e,h,{type:"move"}),C.x=t.x,C.y=t.y,S&&!z&&100<V.d(T,C)&&(z=!0),z&&r(e,b,t)}),i.addEventListener("mouseout",t(function(e){r(e,p,{type:"out"})})),i.addEventListener(void 0!==document.onmousewheel?"mousewheel":"MozMousePixelScroll",t(function(e){var t=e.wheelDelta,n=e.detail;r(e,g,{vd:(n?t?0<t/n/40*n?1:-1:-n/(D.nf()?40:19):t/40)/3,yi:!0})})),i.addEventListener("contextmenu",t(function(e){e.preventDefault()}))}function l(){var e={};this.j=function(t,n){var r=e[t];r||(r=[],e[t]=r),r.push(n)},this.p=function(t,n){var r=e[t];if(r)for(var o=Array.prototype.slice.call(arguments,1),i=0;i<r.length;i++)r[i].apply(this,o)}}function c(e){function t(t,n,r){var i,s=this,f=0;this.id=u++,this.name=r||"{unnamed on "+t+"}",this.target=function(){return t},this.Fb=function(){return-1!=c.indexOf(s)},this.start=function(){if(!s.Fb()){if(-1==c.indexOf(s)){var t=l.now();!0===s.xf(t)&&(c=c.slice(),c.push(s))}0<c.length&&e.repeat(o)}return this},this.stop=function(){for(a(s);i<n.length;i++){var e=n[i];e.ib&&e.Xa.call()}return this},this.eg=function(){i=void 0},this.xf=function(e){if(f++,0!==n.length){var t;for(H.V(i)?(i=0,t=n[i],t.W&&t.W.call(t,e,f,s)):t=n[i];i<n.length;){if(t.Xa&&t.Xa.call(t,e,f,s))return!0;t.Da&&t.Da.call(t,e,f,s),H.V(i)&&(i=-1),++i<n.length&&(t=n[i],t.W&&t.W.call(t,e,f,s))}}return!1}}function n(e){return H.V(e)?c.slice():c.filter(function(t){return t.target()===e})}function o(){i(),0==c.length&&e.cancel(o)}function i(){var e=l.now();c.forEach(function(t){!0!==t.xf(e)&&a(t)})}function a(e){c=c.filter(function(t){return t!==e})}var u=0,l=F.create(),c=[];this.d=function(){for(var e=c.length-1;0<=e;e--)c[e].stop();c=[]},this.D=function(){function e(){}function o(e){var t,n,r=e.target,o=e.duration,i=e.ca;this.W=function(){t={};for(var o in e.G)r.hasOwnProperty(o)&&(t[o]={start:H.V(e.G[o].start)?r[o]:H.Fd(e.G[o].start)?e.G[o].start.call(void 0):e.G[o].start,end:H.V(e.G[o].end)?r[o]:H.Fd(e.G[o].end)?e.G[o].end.call(void 0):e.G[o].end,P:H.V(e.G[o].P)?R.Ib:e.G[o].P});n=l.now()},this.Xa=function(){var e,a=l.now()-n,a=0===o?1:Math.min(o,a)/o;for(e in t){var u=t[e];r[e]=u.start+(u.end-u.start)*u.P(a)}return i&&i.call(r,a),1>a}}function i(e,t,n){this.ib=n,this.Xa=function(){return e.call(t),!1}}function a(e){var t;this.W=function(n,r){t=r+e},this.Xa=function(e,n){return n<t}}function u(e){var t;this.W=function(n){t=n+e},this.Xa=function(e){return e<t}}function c(e){this.W=function(){e.forEach(function(e){e.start()})},this.Xa=function(){for(var t=0;t<e.length;t++)if(e[t].Fb())return!0;return!1}}return e.m=function(e,n){return new function(){function l(t,n,r,o){return n?(H.V(r)&&(r=e),t.Ab(new i(n,r,o))):t}var s=[];this.Ab=function(e){return s.push(e),this},this.fb=function(e){return this.Ab(new u(e))},this.oe=function(e){return this.Ab(new a(e||1))},this.call=function(e,t){return l(this,e,t,!1)},this.ib=function(e,t){return l(this,e,t,!0)},this.ia=function(t){return H.V(t.target)&&(t.target=e),this.Ab(new o(t))},this.Ya=function(e){return this.Ab(new c(e))},this.eg=function(){return this.Ab({Xa:function(e,t){return t.eg(),!0}})},this.xa=function(){return new t(e,s,n)},this.start=function(){return this.xa().start()},this.Fg=function(){var e=new r;return this.oe().call(e.J).xa(),e.L()},this.bb=function(){var e=this.Fg();return this.start(),e}}},e.tc=function(t){return n(t).forEach(function(e){e.stop()}),e.m(t,void 0)},e}()}function s(e){var t,n={},r=e.Ud;e.c.j("model:loaded",function(e){t=e}),this.H=function(){e.c.p("api:initialized",this)},this.Cc=function(e,t,o,i){this.od(n,t),this.pd(n,t),this.nd(n,t,!1),i&&i(n),e(r,n,o)},this.td=function(e,n,r,o,i,a,u){if(e){for(e=n.length-1;0<=e;e--){var l=n[e],c=H.extend({group:l.group},i);c[r]=o(l),a(c)}0<n.length&&u(H.extend({groups:q.Lc(t,o).map(function(e){return e.group})},i))}},this.pd=function(e,t){return e.selected=t.selected,e.hovered=t.Db,e.open=t.open,e.openness=t.Kb,e.exposed=t.U,e.exposure=t.ka,e.transitionProgress=t.ua,e.revealed=!t.ba.Na(),e.browseable=t.Qa?t.M:void 0,e.visible=t.ea,e.labelDrawn=t.ra&&t.ra.la,e},this.od=function(e,t){var n=t.parent;return e.group=t.group,e.parent=n&&n.group,e.weightNormalized=t.xg,e.level=t.R-1,e.siblingCount=n&&n.e.length,e.hasChildren=!t.empty(),e.index=t.index,e.indexByWeight=t.Dd,e.description=t.description,e.attribution=t.na,e},this.nd=function(e,t,n){if(e.polygonCenterX=t.K.x,e.polygonCenterY=t.K.y,e.polygonArea=t.K.ja,e.boxLeft=t.q.x,e.boxTop=t.q.y,e.boxWidth=t.q.f,e.boxHeight=t.q.i,t.ra&&t.ra.la){var r=t.ra.da;e.labelBoxLeft=r.x,e.labelBoxTop=r.y,e.labelBoxWidth=r.f,e.labelBoxHeight=r.i,e.labelFontSize=t.ra.fontSize}return n&&t.aa&&(e.polygon=t.aa.map(function(e){return{x:e.x,y:e.y}}),e.neighbors=t.C&&t.C.map(function(e){return e&&e.group})),e}}function f(e){function t(t,r){t.e=[],t.La=!0;var i=o(r),a=0;if("flattened"==e.ab&&0<r.length&&0<t.R){var u=r.reduce(function(e,t){return e+H.B(t.weight,1)},0),l=n(t.group,!1);l.description=!0,l.T=u*e.cc,l.index=a++,l.parent=t,l.R=t.R+1,l.id=l.id+"_d",t.e.push(l)}for(u=0;u<r.length;u++){var c=r[u],l=H.B(c.weight,1);if(0>=l){if(!e.tj)continue;l=.9*i}c=n(c,!0),c.T=l,c.index=a,c.parent=t,c.R=t.R+1,t.e.push(c),a++}}function n(e,t){var n=new z;return r(e),n.id=e.__id,n.group=e,t&&(c[e.__id]=n),n}function r(e){H.Q(e,"__id")||(Object.defineProperty(e,"__id",{enumerable:!1,configurable:!1,writable:!1,value:l}),l++)}function o(e){for(var t=Number.MAX_VALUE,n=0;n<e.length;n++){var r=e[n].weight;0<r&&t>r&&(t=r)}return t===Number.MAX_VALUE&&(t=1),t}function i(e){if(!e.empty()){e=e.e;var t,n=0;for(t=e.length-1;0<=t;t--){var r=e[t].T;n<r&&(n=r)}for(t=e.length-1;0<=t;t--)r=e[t],r.xg=r.T/n}}function a(e){if(!e.empty()){e=e.e.slice(0).sort(function(e,t){return e.T<t.T?1:e.T>t.T?-1:e.index-t.index});for(var t=0;t<e.length;t++)e[t].Dd=t}}function u(){for(var t=d.e.reduce(function(e,t){return e+t.T},0),n=0;n<d.e.length;n++){var r=d.e[n];r.na&&(r.T=Math.max(.025,e.Ug)*t)}}var l,c,s,f,h,p=this,d=new z;this.H=function(){return d},this.S=function(n){var r=n.group.groups,o=e.pi;return!!(!n.e&&!n.description&&r&&0<r.length&&h+r.length<=o)&&(h+=r.length,t(n,r),i(n),a(n),!0)},this.Y=function(e){function o(e){var t=e.groups;if(t)for(var n=0;n<t.length;n++){var i=t[n];r(i);var a=i.__id;c[a]=null,f[a]=e,a=i.id,H.V(a)||(s[a]=i),o(i)}}function p(e,t){if(!e)return t;var n=Math.max(t,e.__id||0),r=e.groups;if(r&&0<r.length)for(var o=r.length-1;0<=o;o--)n=p(r[o],n);return n}d.group=e,d.Ca=!1,d.M=!1,d.Qa=!1,d.open=!0,d.Kb=1,l=p(e,0)+1,c={},s={},f={},h=0,e&&(r(e),c[e.__id]=d,H.V(e.id)||(s[e.id]=e),o(e)),t(d,e&&e.groups||[]),function(e){if(!e.empty()){var t=n({attribution:!0});t.index=e.e.length,t.parent=e,t.R=e.R+1,t.na=!0,e.e.push(t)}}(d),i(d),u(),a(d)},this.update=function(){q.Fa(d,function(e){if(!e.empty()){e=e.e;for(var t=o(e.map(function(e){return e.group})),n=0;n<e.length;n++){var r=e[n];r.T=0<r.group.weight?r.group.weight:.9*t}}}),i(d),u(),a(d)},this.A=function(e){return function(){if(H.V(e)||H.of(e))return[];if(Array.isArray(e))return e.map(p.d,p);if(H.jc(e)){if(H.Q(e,"__id"))return[p.d(e)];if(H.Q(e,"all")){var t=[];return q.F(d,function(e){t.push(e)}),t}if(H.Q(e,"groups"))return p.A(e.groups)}return[p.d(e)]}().filter(function(e){return void 0!==e})},this.d=function(e){if(H.jc(e)&&H.Q(e,"__id")){if(e=e.__id,H.Q(c,e)){if(null===c[e]){for(var t=f[e],n=[];t&&(t=t.__id,n.push(t),!c[t]);)t=f[t];for(t=n.length-1;0<=t;t--)this.S(c[n[t]])}return c[e]}}else if(H.Q(s,e))return this.d(s[e])},this.k=function(e,t,n){return{e:p.A(e),Ia:H.B(e&&e[t],!0),Ha:H.B(e&&e.keepPrevious,n)}}}function h(e,t,n){var r={};t.Ha&&q.F(e,function(e){n(e)&&(r[e.id]=e)}),e=t.e,t=t.Ia;for(var o=e.length-1;0<=o;o--){var i=e[o];r[i.id]=t?i:void 0}var a=[];return H.Ga(r,function(e){void 0!==e&&a.push(e)}),a}function p(e){function t(e,t){var n=e.ka;t.opacity=1,t.Ka=1,t.va=0>n?1-k.ei/100*n:1,t.wa=0>n?1-k.fi/100*n:1,t.fa=0>n?1+.5*n:1}function n(e){return e=e.ka,Math.max(.001,0===e?1:1+e*(k.Va-1))}function i(e,t){for(var n=e.reduce(function(e,t){return e[t.id]=t,e},{}),r=e.length-1;0<=r;r--)q.F(e[r],function(e){n[e.id]=void 0});var i=[];H.Ga(n,function(e){e&&q.He(e,function(e){e.open||i.push(e)})});var a=[];return H.Ga(n,function(e){e&&e.open&&a.push(e)}),r=[],0!==i.length&&r.push(w.Jb({e:i,Ia:!0,Ha:!0},t,!0)),o(r)}function a(t,n,i,a){var h=c();if(0===t.length&&!h)return(new r).J().L();var d=t.reduce(function(e,t){return e[t.id]=!0,e},{}),b=[];if(t=[],C.reduce(function(e,t){return e||d[t.id]&&(!t.U||1!==t.ka)||!d[t.id]&&!t.parent.U&&(t.U||-1!==t.ka)},!1)){var g=[],w={};C.forEach(function(e){d[e.id]&&(e.U||b.push(e),e.U=!0,q.Fa(e,function(e){g.push(f(e,1)),w[e.id]=!0}))}),0<g.length?(q.F(v,function(e){d[e.id]||(e.U&&b.push(e),e.U=!1),w[e.id]||g.push(f(e,-1))}),t.push(x.D.m({}).Ya(g).call(p).bb()),u(d),t.push(l(h)),i&&(m.sc(T,k.Pc,k.Ua,R.pa(k.gc)),m.Pb())):(t.push(s(i)),n&&q.F(v,function(e){e.U&&b.push(e)}))}return o(t).N(function(){y.td(n,b,"exposed",function(e){return e.U},{indirect:a},e.options.Ef,e.options.Df)})}function u(e){C.reduce(d(!0,void 0,function(t){return t.U||e[t.id]}),b(T)),T.x-=T.f*(k.Va-1)/2,T.y-=T.i*(k.Va-1)/2,T.f*=k.Va,T.i*=k.Va}function l(t){return t||!m.Rd()?x.D.m(g).ia({duration:.7*k.Ua,G:{x:{end:T.x+T.f/2,P:R.pa(k.gc)},y:{end:T.y+T.i/2,P:R.pa(k.gc)}},ca:function(){e.c.p("foamtree:dirty",!0)}}).bb():(g.x=T.x+T.f/2,g.y=T.y+T.i/2,(new r).J().L())}function c(){return!!C&&C.reduce(function(e,t){return e||0!==t.ka},!1)}function s(e){var t=[],n=[];return q.F(v,function(e){0!==e.ka&&n.push(f(e,0,function(){this.U=!1}))}),t.push(x.D.m({}).Ya(n).bb()),m.content(0,0,S,z),e&&(t.push(m.reset(k.Ua,R.pa(k.gc))),m.Pb()),o(t)}function f(n,r,o){var i=x.D.m(n);return 0===n.ka&&0!==r&&i.call(function(){this.Bc(M),this.zb(t)}),i.ia({duration:k.Ua,G:{ka:{end:r,P:R.pa(k.gc)}},ca:function(){v.I=!0,v.Ma=!0,e.c.p("foamtree:dirty",!0)}}),0===r&&i.call(function(){this.Md(),this.nc(),this.ed(M),this.dd(t)}),i.call(o).xa()}function p(){var e=v.e.reduce(d(!1,M.Tb,void 0),b({})).da,t=k.Pc,n=Math.min(e.x,T.x-T.f*t),r=Math.max(e.x+e.f,T.x+T.f*(1+t)),o=Math.min(e.y,T.y-T.i*t),e=Math.max(e.y+e.i,T.y+T.i*(1+t));m.content(n,o,r-n,e-o)}function d(e,t,n){var r={};return function(o,i){if(!n||n(i)){for(var a,u=e?i.aa||i.o:i.o,l=u.length-1;0<=l;l--)a=void 0!==t?t(i,u[l],r):u[l],o.Zc=Math.min(o.Zc,a.x),o.Od=Math.max(o.Od,a.x),o.$c=Math.min(o.$c,a.y),o.Pd=Math.max(o.Pd,a.y);o.da.x=o.Zc,o.da.y=o.$c,o.da.f=o.Od-o.Zc,o.da.i=o.Pd-o.$c}return o}}function b(e){return{Zc:Number.MAX_VALUE,Od:Number.MIN_VALUE,$c:Number.MAX_VALUE,Pd:Number.MIN_VALUE,da:e}}var v,g,y,m,x,w,C,T,S,z,k=e.options,M={sf:function(e,t){return t.scale=n(e),!1},Sb:function(e,t){var r=n(e),o=g.x,i=g.y;t.translate(o,i),t.scale(r,r),t.translate(-o,-i)},Ub:function(e,t,r){e=n(e);var o=g.x,i=g.y;r.x=(t.x-o)/e+o,r.y=(t.y-i)/e+i},Tb:function(e,t,r){e=n(e);var o=g.x,i=g.y;return r.x=(t.x-o)*e+o,r.y=(t.y-i)*e+i,r}};e.c.j("stage:initialized",function(e,t,n,r){g={x:n/2,y:r/2},S=n,z=r,T={x:0,y:0,f:S,i:z}}),e.c.j("stage:resized",function(e,t,n,r){g.x*=n/e,g.y*=r/t,S=n,z=r}),e.c.j("api:initialized",function(e){y=e}),e.c.j("zoom:initialized",function(e){m=e}),e.c.j("model:loaded",function(e,t){v=e,C=t}),e.c.j("model:childrenAttached",function(e){C=e}),e.c.j("timeline:initialized",function(e){x=e}),e.c.j("openclose:initialized",function(e){w=e});var L=["groupExposureScale","groupUnexposureScale","groupExposureZoomMargin"];e.c.j("options:changed",function(e){H.nb(e,L)&&c()&&(u({}),m.Aj(T,k.Pc),m.Pb())}),this.H=function(){e.c.p("expose:initialized",this)},this.fc=function(e,t,n,o){var u=e.e.reduce(function(e,t){for(var n=t;n=n.parent;)e[n.id]=!0;return e},{}),l=h(v,e,function(e){return e.U&&!e.open&&!u[e.id]}),c=new r;return i(l,t).N(function(){a(l.filter(function(e){return e.o&&e.aa}),t,n,o).N(c.J)}),c.L()}}function d(e){function t(t){function n(e,t){var n=Math.min(1,Math.max(0,e.ua));t.opacity=n,t.va=1,t.wa=n,t.Ka=n,t.fa=e.Gb}var i=e.options,a=i.oj,s=i.pj,f=i.lj,h=i.mj,p=i.nj,d=i.fe,b=a+s+f+h+p,v=0<b?d/b:0,g=[];if(c.gb(i.hg,i.gg,i.ig,i.jg,i.fg),0===v&&t.e&&t.M){for(d=t.e,b=0;b<d.length;b++){var y=d[b];y.ua=1,y.Gb=1,y.zb(n),y.nc(),y.dd(n)}return t.I=!0,e.c.p("foamtree:dirty",0<v),(new r).J().L()}if(t.e&&t.M){Y.Ja(t,Y.ya(t,e.options.he),function(t,r,u){t.Bc(c),t.zb(n),u="groups"===e.options.ge?u:r,r=o.D.m(t).fb(u*v*a).ia({duration:v*s,G:{ua:{end:1,P:R.pa(i.kj)}},ca:function(){this.I=!0,e.c.p("foamtree:dirty",0<v)}}).xa(),u=o.D.m(t).fb(l?v*(f+u*h):0).ia({duration:l?v*p:0,G:{Gb:{end:1,P:R.Ib}},ca:function(){this.I=!0,e.c.p("foamtree:dirty",0<v)}}).xa(),t=o.D.m(t).Ya([r,u]).oe().ib(function(){this.Md(),this.nc(),this.ed(c),this.dd(n)}).xa(),g.push(t)}),u.d();var m=new r;return o.D.m({}).Ya(g).call(function(){u.k(),m.J()}).start(),m.L()}return(new r).J().L()}var n,o,a=[],u=new i(H.ta);e.c.j("stage:initialized",function(){}),e.c.j("stage:resized",function(){}),e.c.j("stage:newLayer",function(e,t){a.push(t)}),e.c.j("model:loaded",function(e){n=e,u.clear()}),e.c.j("zoom:initialized",function(){}),e.c.j("timeline:initialized",function(e){o=e});var l=!1;e.c.j("render:renderers:resolved",function(e){l=e.labelPlainFill||!1});var c=new function(){var e=0,t=0,n=0,r=0,o=0,i=0;this.gb=function(a,u,l,c,s){e=1+u,t=1-e,n=l,r=c,o=s,i=a},this.sf=function(i,a){return a.scale=e+t*i.ua,0!==o||0!==n||0!==r},this.Sb=function(a,u){var l=e+t*a.ua,c=a.parent,s=i*a.x+(1-i)*c.x,f=i*a.y+(1-i)*c.y;u.translate(s,f),u.scale(l,l),l=1-a.ua,u.rotate(o*Math.PI*l),u.translate(-s,-f),u.translate(c.q.f*n*l,c.q.i*r*l)},this.Ub=function(o,a,u){var l=e+t*o.ua,c=i*o.x+(1-i)*o.parent.x,s=i*o.y+(1-i)*o.parent.y,f=1-o.ua;o=o.parent,u.x=(a.x-c)/l+c-o.q.f*n*f,u.y=(a.y-s)/l+s-o.q.i*r*f},this.Tb=function(o,a,u){var l=e+t*o.ua,c=i*o.x+(1-i)*o.parent.x,s=i*o.y+(1-i)*o.parent.y,f=1-o.ua;o=o.parent,u.x=(a.x-c)*l+c-o.q.f*n*f,u.y=(a.y-s)*l+s-o.q.i*r*f}};this.H=function(){},this.k=function(){function t(e,t){var n=Math.min(1,Math.max(0,e.ua));t.opacity=n,t.va=1,t.wa=n,t.Ka=n,t.fa=e.Gb}function r(e,t){var n=Math.min(1,Math.max(0,e.Zd));t.opacity=n,t.Ka=n,t.va=1,t.wa=1,t.fa=e.Gb}var i=e.options,a=i.Yd,s=i.Hi,f=i.Ii,h=i.Ji,p=i.Di,d=i.Ei,b=i.Fi,v=i.zi,g=i.Ai,y=i.Bi,m=p+d+b+v+g+y+s+f+h,x=0<m?a/m:0,w