UNPKG

webpack-bundle-analyzer

Version:

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap

1 lines 177 kB
(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.i=function(e){return e},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=15)})([function(e,t,n){!function(){"use strict";function t(){}function n(e,n){var r,o,i,a,u=F;for(a=arguments.length;a-- >2;)D.push(arguments[a]);for(n&&null!=n.children&&(D.length||D.push(n.children),delete n.children);D.length;)if((o=D.pop())&&void 0!==o.pop)for(a=o.length;a--;)D.push(o[a]);else!0!==o&&!1!==o||(o=null),(i="function"!=typeof e)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(i=!1)),i&&r?u[u.length-1]+=o:u===F?u=[o]:u.push(o),r=i;var l=new t;return l.nodeName=e,l.children=u,l.attributes=null==n?void 0:n,l.key=null==n?void 0:n.key,void 0!==P.vnode&&P.vnode(l),l}function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e,t){return n(e.nodeName,r(r({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function i(e){!e.__d&&(e.__d=!0)&&1==A.push(e)&&(P.debounceRendering||setTimeout)(a)}function a(){var e,t=A;for(A=[];e=t.pop();)e.__d&&k(e)}function u(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&l(e,t.nodeName):n||e._componentConstructor===t.nodeName}function l(e,t){return e.__n===t||e.nodeName.toLowerCase()===t.toLowerCase()}function c(e){var t=r({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var o in n)void 0===t[o]&&(t[o]=n[o]);return t}function s(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.__n=e,n}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function h(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===O.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,d,a):e.removeEventListener(t,d,a),(e.__l||(e.__l={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e)p(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 p(e,t,n){try{e[t]=n}catch(e){}}function d(e){return this.__l[e.type](P.event&&P.event(e)||e)}function b(){for(var e;e=G.pop();)P.afterMount&&P.afterMount(e),e.componentDidMount&&e.componentDidMount()}function v(e,t,n,r,o,i){E++||(I=null!=o&&void 0!==o.ownerSVGElement,B=null!=e&&!("__preactattr_"in e));var a=g(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--E||(B=!1,i||b()),a}function g(e,t,n,r,o){var i=e,a=I;if(null==t&&(t=""),"string"==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),m(e,!0))),i.__preactattr_=!0,i;if("function"==typeof t.nodeName)return M(e,t,n,r);if(I="svg"===t.nodeName||"foreignObject"!==t.nodeName&&I,(!e||!l(e,String(t.nodeName)))&&(i=s(String(t.nodeName),I),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),m(e,!0)}var u=i.firstChild,c=i.__preactattr_||(i.__preactattr_={}),f=t.children;return!B&&f&&1===f.length&&"string"==typeof f[0]&&null!=u&&void 0!==u.splitText&&null==u.nextSibling?u.nodeValue!=f[0]&&(u.nodeValue=f[0]):(f&&f.length||null!=u)&&y(i,f,n,r,B||null!=c.dangerouslySetInnerHTML),w(i,t.attributes,c),I=a,i}function y(e,t,n,r,o){var i,a,l,c,s=e.childNodes,h=[],p={},d=0,b=0,v=s.length,y=0,x=t?t.length:0;if(0!==v)for(var w=0;w<v;w++){var C=s[w],T=C.__preactattr_,S=x&&T?C._component?C._component.__k:T.key:null;null!=S?(d++,p[S]=C):(T||(void 0!==C.splitText?!o||C.nodeValue.trim():o))&&(h[y++]=C)}if(0!==x)for(var w=0;w<x;w++){l=t[w],c=null;var S=l.key;if(null!=S)d&&void 0!==p[S]&&(c=p[S],p[S]=void 0,d--);else if(!c&&b<y)for(i=b;i<y;i++)if(void 0!==h[i]&&u(a=h[i],l,o)){c=a,h[i]=void 0,i===y-1&&y--,i===b&&b++;break}c=g(c,l,n,r),c&&c!==e&&(w>=v?e.appendChild(c):c!==s[w]&&(c===s[w+1]?f(s[w]):e.insertBefore(c,s[w]||null)))}if(d)for(var w in p)void 0!==p[w]&&m(p[w],!1);for(;b<=y;)void 0!==(c=h[y--])&&m(c,!1)}function m(e,t){var n=e._component;n?_(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||f(e),x(e))}function x(e){for(e=e.lastChild;e;){var t=e.previousSibling;m(e,!0),e=t}}function w(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||h(e,r,n[r],n[r]=void 0,I);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||h(e,r,n[r],n[r]=t[r],I)}function C(e){var t=e.constructor.name;(R[t]||(R[t]=[])).push(e)}function T(e,t,n){var r,o=R[e.name];if(e.prototype&&e.prototype.render?(r=new e(t,n),L.call(r,t,n)):(r=new L(t,n),r.constructor=e,r.render=S),o)for(var i=o.length;i--;)if(o[i].constructor===e){r.__b=o[i].__b,o.splice(i,1);break}return r}function S(e,t,n){return this.constructor(e,n)}function z(e,t,n,r,o){e.__x||(e.__x=!0,(e.__r=t.ref)&&delete t.ref,(e.__k=t.key)&&delete t.key,!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r),r&&r!==e.context&&(e.__c||(e.__c=e.context),e.context=r),e.__p||(e.__p=e.props),e.props=t,e.__x=!1,0!==n&&(1!==n&&!1===P.syncComponentUpdates&&e.base?i(e):k(e,1,o)),e.__r&&e.__r(e))}function k(e,t,n,o){if(!e.__x){var i,a,u,l=e.props,s=e.state,f=e.context,h=e.__p||l,p=e.__s||s,d=e.__c||f,g=e.base,y=e.__b,x=g||y,w=e._component,C=!1;if(g&&(e.props=h,e.state=p,e.context=d,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,s,f)?C=!0:e.componentWillUpdate&&e.componentWillUpdate(l,s,f),e.props=l,e.state=s,e.context=f),e.__p=e.__s=e.__c=e.__b=null,e.__d=!1,!C){i=e.render(l,s,f),e.getChildContext&&(f=r(r({},f),e.getChildContext()));var S,M,L=i&&i.nodeName;if("function"==typeof L){var j=c(i);a=w,a&&a.constructor===L&&j.key==a.__k?z(a,j,1,f,!1):(S=a,e._component=a=T(L,j,f),a.__b=a.__b||y,a.__u=e,z(a,j,0,f,!1),k(a,1,n,!0)),M=a.base}else u=x,S=w,S&&(u=e._component=null),(x||1===t)&&(u&&(u._component=null),M=v(u,i,f,n||!g,x&&x.parentNode,!0));if(x&&M!==x&&a!==w){var D=x.parentNode;D&&M!==D&&(D.replaceChild(M,x),S||(x._component=null,m(x,!1)))}if(S&&_(S),e.base=M,M&&!o){for(var F=e,O=e;O=O.__u;)(F=O).base=M;M._component=F,M._componentConstructor=F.constructor}}if(!g||n?G.unshift(e):C||(b(),e.componentDidUpdate&&e.componentDidUpdate(h,p,d),P.afterUpdate&&P.afterUpdate(e)),null!=e.__h)for(;e.__h.length;)e.__h.pop().call(e);E||o||b()}}function M(e,t,n,r){for(var o=e&&e._component,i=o,a=e,u=o&&e._componentConstructor===t.nodeName,l=u,s=c(t);o&&!l&&(o=o.__u);)l=o.constructor===t.nodeName;return o&&l&&(!r||o._component)?(z(o,s,3,n,r),e=o.base):(i&&!u&&(_(i),e=a=null),o=T(t.nodeName,s,n),e&&!o.__b&&(o.__b=e,a=null),z(o,s,1,n,r),e=o.base,a&&e!==a&&(a._component=null,m(a,!1))),e}function _(e){P.beforeUnmount&&P.beforeUnmount(e);var t=e.base;e.__x=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?_(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.__b=t,f(t),C(e),x(t)),e.__r&&e.__r(null)}function L(e,t){this.__d=!0,this.context=t,this.props=e,this.state=this.state||{}}function j(e,t,n){return v(n,e,{},!1,t,!1)}var P={},D=[],F=[],O=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,A=[],G=[],E=0,I=!1,B=!1,R={};r(L.prototype,{setState:function(e,t){var n=this.state;this.__s||(this.__s=r({},n)),r(n,"function"==typeof e?e(n,this.props):e),t&&(this.__h=this.__h||[]).push(t),i(this)},forceUpdate:function(e){e&&(this.__h=this.__h||[]).push(e),k(this,2)},render:function(){}});var H={h:n,createElement:n,cloneElement:o,Component:L,render:j,rerender:a,options:P};e.exports=H}()},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=v(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=m[m.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),m.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=m.indexOf(e);t>=0&&m.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=y++;n=g||(g=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=w(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=x(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){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}(function(e){return document.querySelector(e)}),g=null,y=0,m=[],x=n(24);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:{},void 0===t.singleton&&(t.singleton=b()),void 0===t.insertInto&&(t.insertInto="head"),void 0===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 w=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){"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(5),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(16);"string"==typeof r&&(r=[[e.i,r,""]]);var o={};o.transform=void 0;n(2)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(19);"string"==typeof r&&(r=[[e.i,r,""]]);var o={};o.transform=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(14),p=r(h),d=n(13),b=r(d),v=n(11),g=r(v),y=n(10),m=r(y),x=n(4),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"),this.renderModuleSize(e,"parsed"),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){var r=n(21);"string"==typeof r&&(r=[[e.i,r,""]]);var o={};o.transform=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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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 u=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}}(),l=n(0),c=n(4),s=r(c),f=n(5),h=r(f),p=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.handleChange=function(){r.props.onChange(r.props.item)},a=n,i(r,a)}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props.checked;return(0,l.h)("label",{className:h.default.item},(0,l.h)("input",{className:h.default.checkbox,type:"checkbox",checked:e,onChange:this.handleChange}),this.renderLabel())}},{key:"renderLabel",value:function(){var e=this.props,t=e.children,n=e.item;return t&&t.length?t[0](n,h.default.itemText):(0,l.h)("span",{className:h.default.itemText},n===s.default.ALL_ITEM?"All":n.label)}}]),t}(l.Component);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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(3),f=r(s),h=n(26),p=r(h),d=function(e){function t(){var e,n,r,o;i(this,t);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.state={visible:!0,renderContent:!0},r.handleMouseEnter=function(){clearTimeout(r.hideTimeoutId),r.toggleVisibility(!0)},r.handleMouseLeave=function(){return r.toggleVisibility(!1)},o=n,a(r,o)}return u(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this;this.hideTimeoutId=setTimeout(function(){return e.toggleVisibility(!1)},1500),this.hideContentTimeout=null}},{key:"componentWillUnmount",value:function(){clearTimeout(this.hideTimeoutId),clearTimeout(this.hideContentTimeout)}},{key:"render",value:function(){var e,t=this.props,n=t.position,r=t.children,i=this.state,a=i.visible,u=i.renderContent,l=(0,f.default)((e={},o(e,p.default.container,!0),o(e,p.default.left,"left"===n),o(e,p.default.hidden,!a),e));return(0,c.h)("div",{className:l,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},u?r:null)}},{key:"toggleVisibility",value:function(e){var t=this;clearTimeout(this.hideContentTimeout),this.setState({visible:e}),e?this.setState({renderContent:!0}):this.hideContentTimeout=setTimeout(function(){return t.setState({renderContent:!1})},500)}}]),t}(c.Component);d.defaultProps={position:"left"},t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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 u=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}}(),l=n(0),c=n(12),s=r(c),f=n(6),h=r(f),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.label,n=e.items,r=e.activeItem,o=e.onSwitch;return(0,l.h)("div",{className:h.default.container},(0,l.h)("div",{className:h.default.label},t,":"),(0,l.h)("div",null,n.map(function(e){return(0,l.h)(s.default,{key:e.label,item:e,active:e===r,onClick:o})})))}}]),t}(l.Component);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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(3),f=r(s),h=n(6),p=r(h),d=function(e){function t(){var e,n,r,o;i(this,t);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.handleClick=function(){r.props.onClick&&r.props.onClick(r.props.item)},o=n,a(r,o)}return u(t,e),l(t,[{key:"render",value:function(){var e,t=this.props,n=t.item,r=t.active,i=(0,f.default)((e={},o(e,p.default.item,!0),o(e,p.default.active,r),e));return(0,c.h)("span",{className:i,onClick:this.handleClick},n.label)}}]),t}(c.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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(3),f=r(s),h=n(27),p=r(h),d=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.saveNode=function(e){return n.node=e},n.onMouseMove=function(e){Object.assign(n.mouseCoords,{x:e.pageX,y:e.pageY}),n.props.visible&&n.updatePosition()},n.mouseCoords={x:0,y:0},n.state={left:0,top:0},n}return u(t,e),l(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousemove",this.onMouseMove,!1)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousemove",this.onMouseMove)}},{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.visible,i=(0,f.default)((e={},o(e,p.default.container,!0),o(e,p.default.hidden,!r),e));return(0,c.h)("div",{ref:this.saveNode,className:i,style:this.getStyle()},n)}},{key:"getStyle",value:function(){return{left:this.state.left,top:this.state.top}}},{key:"updatePosition",value:function(){if(this.props.visible){var e={left:this.mouseCoords.x+t.marginX,top:this.mouseCoords.y+t.marginY},n=this.node.getBoundingClientRect();e.left+n.width>window.innerWidth&&(e.left=window.innerWidth-n.width),e.top+n.height>window.innerHeight&&(e.top=this.mouseCoords.y-t.marginY-n.height),this.setState(e)}}}]),t}(c.Component);d.marginX=10,d.marginY=30,t.default=d},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(22),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,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(7),u=r(a),l=n(8),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){t=e.exports=n(1)(void 0),t.push([e.i,".CheckboxList__container{font:normal 10px Verdana;white-space:nowrap}.CheckboxList__label{font-size:11px;font-weight:700;margin-bottom:7px}.CheckboxList__checkbox{cursor:pointer}.CheckboxList__item{cursor:pointer;display:block;margin-bottom:3px}.CheckboxList__itemText{margin-left:3px;position:relative;top:-2px;vertical-align:middle}",""]),t.locals={container:"CheckboxList__container",label:"CheckboxList__label",checkbox:"CheckboxList__checkbox",item:"CheckboxList__item",itemText:"CheckboxList__itemText"}},function(e,t,n){t=e.exports=n(1)(void 0),t.push([e.i,".ModulesTreemap__container,.ModulesTreemap__map{position:relative;width:100%;height:100%}.ModulesTreemap__sidebarGroup{margin-bottom:20px}.ModulesTreemap__activeSize{font-weight:700}",""]),t.locals={container:"ModulesTreemap__container",map:"ModulesTreemap__map",sidebarGroup:"ModulesTreemap__sidebarGroup",activeSize:"ModulesTreemap__activeSize"}},function(e,t,n){t=e.exports=n(1)(void 0),t.push([e.i,".Sidebar__container{background:#fff;border:none;border-right:1px solid #aaa;bottom:0;opacity:.95;overflow-y:auto;padding:20px;position:absolute;top:0;transition:transform .2s ease;z-index:1}.Sidebar__container.Sidebar__left{left:0}.Sidebar__container.Sidebar__left.Sidebar__hidden{transform:translateX(calc(-100% + 7px))}",""]),t.locals={container:"Sidebar__container",left:"Sidebar__left",hidden:"Sidebar__hidden"}},function(e,t,n){t=e.exports=n(1)(void 0),t.push([e.i,".Switcher__container{font:normal 10px Verdana;white-space:nowrap}.Switcher__label{font-weight:700;font-size:11px;margin-bottom:7px}.Switcher__item{display:inline-block;border:1px solid #aaa;border-radius:4px;padding:5px 7px;cursor:pointer;transition:background .3s ease}.Switcher__item:hover{background:rgba(255,165,0,.15)}.Switcher__item.Switcher__active{cursor:default;background:orange}.Switcher__item+.Switcher__item{margin-left:5px}",""]),t.locals={container:"Switcher__container",label:"Switcher__label",item:"Switcher__item",active:"Switcher__active"}},function(e,t,n){t=e.exports=n(1)(void 0),t.push([e.i,".Tooltip__container{font:normal 10px Verdana;position:absolute;padding:5px 10px;border-radius:4px;background:#fff;border:1px solid #aaa;opacity:.7;white-space:nowrap;visibility:visible;transition:opacity .2s ease,visibility .2s ease}.Tooltip__hidden{opacity:0;visibility:hidden}",""]),t.locals={container:"Tooltip__container",hidden:"Tooltip__hidden"}},function(e,t,n){t=e.exports=n(1)(void 0),t.push([e.i,"#app,body,html{width:100%;height:100%;padding:0;margin:0;overflow:hidden}",""])},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};P=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)continu