!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=69)}([function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t=0&&c.splice(t,1)}function b(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return v(t,e.attrs),p(e,t),t}function v(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function y(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=o}if(t.singleton){var a=l++;n=u||(u=b(t)),r=w.bind(null,n,a,!1),i=w.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",v(t,e.attrs),p(e,t),t}(t),r=function(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=h(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),i=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=b(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){g(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 i()}}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||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=d(e,t);return f(n,t),function(e){for(var r=[],i=0;i * @license BSD-3-Clause * @version 3.6.1 */ /** * filesize * * @copyright 2018 Jason Mulligan * @license BSD-3-Clause * @version 3.6.1 */ !function(t){var n=/^(b|B)$/,r={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"]};function o(e){var t,o,a,s,u,l,c,h,f,d,p,g,b,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},y=[],m=0,x=void 0,w=void 0;if(isNaN(e))throw new Error("Invalid arguments");return o=!0===v.bits,f=!0===v.unix,t=v.base||2,h=void 0!==v.round?v.round:f?1:2,d=void 0!==v.separator&&v.separator||"",p=void 0!==v.spacer?v.spacer:f?"":" ",b=v.symbols||v.suffixes||{},g=2===t&&v.standard||"jedec",c=v.output||"string",s=!0===v.fullform,u=v.fullforms instanceof Array?v.fullforms:[],x=void 0!==v.exponent?v.exponent:-1,a=t>2?1e3:1024,(l=(w=Number(e))<0)&&(w=-w),(-1===x||isNaN(x))&&(x=Math.floor(Math.log(w)/Math.log(a)))<0&&(x=0),x>8&&(x=8),0===w?(y[0]=0,y[1]=f?"":r[g][o?"bits":"bytes"][x]):(m=w/(2===t?Math.pow(2,10*x):Math.pow(1e3,x)),o&&(m*=8)>=a&&x<8&&(m/=a,x++),y[0]=Number(m.toFixed(x>0?h:0)),y[1]=10===t&&1===x?o?"kb":"kB":r[g][o?"bits":"bytes"][x],f&&(y[1]="jedec"===g?y[1].charAt(0):x>0?y[1].replace(/B$/,""):y[1],n.test(y[1])&&(y[0]=Math.floor(y[0]),y[1]=""))),l&&(y[0]=-y[0]),y[1]=b[y[1]]||y[1],"array"===c?y:"exponent"===c?x:"object"===c?{value:y[0],suffix:y[1],symbol:y[1]}:(s&&(y[1]=u[x]?u[x]:i[g][x]+(o?"bit":"byte")+(1===y[0]?"":"s")),d.length>0&&(y[0]=y[0].toString().replace(".",d)),y.join(p))}o.partial=function(e){return function(t){return o(t,e)}},e.exports=o}("undefined"!=typeof window&&window)},function(e,t,n){var r=n(48);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(37);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(59),i=n(14),o=/[&<>"']/g,a=RegExp(o.source);e.exports=function(e){return(e=i(e))&&a.test(e)?e.replace(o,r):e}},function(e,t,n){var r=n(30);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(31);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(36);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(61);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(19).Symbol;e.exports=r},function(e,t,n){var r=n(56);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(28);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(38);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(39);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,i);r.locals&&(e.exports=r.locals)},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(42),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){var r=n(44),i=n(47),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&r(e)==o}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t){ /** * Carrot Search FoamTree HTML5 (demo variant) * v3.4.5, 4fa198d722d767b68d0409e88290ea6de98d1eaa/4fa198d7, build FOAMTREE-SOFTWARE4-DIST-39, Jul 26, 2017 * * Carrot Search confidential. * Copyright 2002-2017, Carrot Search s.c, All Rights Reserved. */ !function(){var e,t=function(){var e,n=window.navigator.userAgent;try{window.localStorage.setItem("ftap5caavc","ftap5caavc"),window.localStorage.removeItem("ftap5caavc"),e=!0}catch(r){e=!1}return{of:function(){return/webkit/i.test(n)},mf:function(){return/Mac/.test(n)},lf:function(){return/iPad|iPod|iPhone/.test(n)},hf:function(){return/Android/.test(n)},ii:function(){return"ontouchstart"in window||!!window.DocumentTouch&&document instanceof window.DocumentTouch},hi:function(){return e},gi:function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},Dd:function(e,n){return[].forEach&&t.gi()?e&&e():n&&n()}}}(),n=function(){function e(){return window.performance&&(window.performance.now||window.performance.mozNow||window.performance.msNow||window.performance.oNow||window.performance.webkitNow)||Date.now}var t=e();return{create:function(){return{now:(t=e(),function(){return t.call(window.performance)})};var t},now:function(){return t.call(window.performance)}}}();function r(){function r(){if(!u)throw"AF0";var e=n.now();0!==l&&(o.Kd=e-l),l=e,s=s.filter(function(e){return null!==e}),o.frames++;for(var t=0;t=r.repeat&&(s[t]=null)))}s=s.filter(function(e){return null!==e}),u=!1,i(),0!==(e=n.now()-e)&&(o.Jd=e),o.totalTime+=e,o.Oe=1e3*o.frames/o.totalTime,l=0===s.length?0:n.now()}function i(){0n?16-n:0)});var e}(),s=[],u=!1,l=0;this.repeat=function(e,t,n){this.cancel(e),s.push({ye:e,Yg:n,repeat:t}),i()},this.d=function(e,t){this.repeat(e,1,t)},this.cancel=function(e){for(var t=0;t=t;t++)s=2*t*Math.PI/6,l.push({x:0+100*Math.sin(s),y:0+100*Math.cos(s)});t={polygonPlainFill:[e,function(e){e.fillStyle="rgb(255, 0, 0)",e.fill()}],polygonPlainStroke:[e,function(e){e.strokeStyle="rgb(128, 0, 0)",e.lineWidth=2,e.closePath(),e.stroke()}],polygonGradientFill:[e,function(e){var t=e.createRadialGradient(0,0,10,0,0,60);t.addColorStop(0,"rgb(255, 0, 0)"),t.addColorStop(1,"rgb(255, 255, 0)"),e.fillStyle=t,e.fill()}],polygonGradientStroke:[e,function(e){var t=e.createLinearGradient(-100,-100,100,100);t.addColorStop(0,"rgb(224, 0, 0)"),t.addColorStop(1,"rgb(32, 0, 0)"),e.strokeStyle=t,e.lineWidth=2,e.closePath(),e.stroke()}],polygonExposureShadow:[e,function(e){e.shadowBlur=50,e.shadowColor="rgba(0, 0, 0, 1)",e.fillStyle="rgba(0, 0, 0, 1)",e.globalCompositeOperation="source-over",e.fill(),e.shadowBlur=0,e.shadowColor="transparent",e.globalCompositeOperation="destination-out",e.fill()}],labelPlainFill:[function(e){e.fillStyle="#000",e.font="24px sans-serif",e.textAlign="center"},function(e){e.fillText("Some text",0,-16),e.fillText("for testing purposes",0,16)}]},s=100/Object.keys(t).length;var c,h=n.now(),f={};for(c in t){var d,p=t[c],g=n.now(),b=0;do{for(r.save(),r.translate(Math.random()*o,Math.random()*a),d=3*Math.random()+.5,r.scale(d,d),d=0;dMath.abs(l))&&(u.x=((e*r-t*n)*(i-a)-(e-n)*(i*s-o*a))/l,u.y=((e*r-t*n)*(o-s)-(t-r)*(i*s-o*a))/l,!0)}var i,o,a=1,s={x:0,y:0},u=1,l=1,c=1,h={x:0,y:0},f=1,d={x:0,y:0},p={x:0,y:0},g={x:0,y:0},b={x:0,y:0,f:0,i:0},v={x:0,y:0,f:0,i:0,scale:1},y=!0;e.c.j("stage:initialized",function(e,t,n,r){i=n,o=r,b.x=0,b.y=0,b.f=n,b.i=r,v.x=0,v.y=0,v.f=n,v.i=r,v.scale=1}),e.c.j("stage:resized",function(e,t,n,r){function a(e){e.x*=l,e.y*=c}function u(e){a(e),e.f*=l,e.i*=c}i=n,o=r;var l=n/e,c=r/t;a(s),a(d),a(h),a(p),a(g),u(b),u(v)}),this.Yb=function(e,r){return t(r,function(){n(e,h)},!0)},this.Y=function(e,n){if(1==Math.round(1e4*n)/1e4){var i=b.x-d.x,o=b.y-d.y;return t(1,function(){},!0),this.d(-i,-o)}return t(n,function(){for(var t=!1;!t;){t=Math.random();var n=Math.random(),i=Math.random(),o=Math.random();t=r(e.x+t*e.f,e.y+n*e.i,b.x+t*b.f,b.y+n*b.i,e.x+i*e.f,e.y+o*e.i,b.x+i*b.f,b.y+o*b.i,h)}},!0)},this.sc=function(e,n){var a,s,u,l;return(a=e.f/e.i)<(s=i/o)?(u=e.i*s,l=e.i,a=e.x-.5*(u-e.f),s=e.y):a>s?(u=e.f,l=e.f*o/i,a=e.x,s=e.y-.5*(l-e.i)):(a=e.x,s=e.y,u=e.f,l=e.i),a-=u*n,u*=1+2*n,r(a,s-=l*n,d.x,d.y,a+u,s,d.x+i/f,d.y,h)?t(i/f/u,m.ta,!1):(y=!1,this.d(f*(d.x-a),f*(d.y-s)))},this.d=function(e,t){var n=Math.round(1e4*e)/1e4,r=Math.round(1e4*t)/1e4;return g.x+=n/f,g.y+=r/f,0!==n||0!==r},this.reset=function(e){return e&&this.content(0,0,i,o),this.Y({x:b.x+d.x,y:b.y+d.y,f:b.f/f,i:b.i/f},c/u)},this.Qb=function(e){c=Math.min(1,Math.round(1e4*(e||u))/1e4)},this.k=function(){return d.xb.x+b.f?-(d.x+i/f-b.x-b.f)*f:0},this.A=function(){return d.yb.y+b.i?-(d.y+o/f-b.y-b.i)*f:0},this.update=function(e){var t=Math.abs(Math.log(l));6>t?t=2:(t/=4,t+=3*t*(1n&&(n+=1),1n?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if("rgb"==e.model||"rgba"==e.model)return Math.sqrt(e.r*e.r*.241+e.g*e.g*.691+e.b*e.b*.068)/255;var n,r;n=e.l/100;var i=e.s/100;if(r=e.h/360,0==e.Wj)n=e=r=n;else{var o=2*n-(i=.5>n?n*(1+i):n+i-n*i);n=t(o,i,r+1/3),e=t(o,i,r),r=t(o,i,r-1/3)}return Math.sqrt(65025*n*n*.241+65025*e*e*.691+65025*r*r*.068)/255},this.Ng=function(e){if(m.Tc(e))return e;if(!m.jc(e))return"#000";switch(e.model){case"hsla":return h.Ig(e);case"hsl":return h.Ac(e);case"rgba":return h.Lg(e);case"rgb":return h.Kg(e);default:return"#000"}},this.Lg=function(e){return"rgba("+(.5+e.r|0)+","+(.5+e.g|0)+","+(.5+e.b|0)+","+e.a+")"},this.Kg=function(e){return"rgba("+(.5+e.r|0)+","+(.5+e.g|0)+","+(.5+e.b|0)+")"},this.Ig=function(e){return"hsla("+(.5+e.h|0)+","+(.5+e.s|0)+"%,"+(.5+e.l|0)+"%,"+e.a+")"},this.Ac=function(e){return"hsl("+(.5+e.h|0)+","+(.5+e.s|0)+"%,"+(.5+e.l|0)+"%)"},this.Y=function(e,t,n){return"hsl("+(.5+e|0)+","+(.5+t|0)+"%,"+(.5+n|0)+"%)"}};function f(){var e,t=!1,n=[],r=this,i=new function(){this.N=function(i){return i&&(t?i.apply(r,e):n.push(i)),this},this.ih=function(e){return r=e,{then:this.N}}};this.J=function(){e=arguments;for(var i=0;iz.d(T,n)&&(window.clearTimeout(S),i(t,u),w=!0)},400)}})),a.addEventListener("mouseup",function(e){if(i(e,c),k){if(j&&i(e,y),window.clearTimeout(x),!w&&!j&&r(e)){var t=function(e){var t={};return t.x=e.pageX,t.y=e.pageY,t}(e);C&&100>z.d(t,C)?i(e,h):i(e,s),C=t,S=window.setTimeout(function(){C=null},350)}j=k=!1}}),a.addEventListener("mousemove",function(e){var t=o(e,{});r(e)&&i(e,f,{type:"move"}),T.x=t.x,T.y=t.y,k&&!j&&100(t*=2)?.5*Math.pow(t,e):1-.5*Math.abs(Math.pow(2-t,e))}}function r(e){return function(t){for(var n=0;ne-t&&-1e-6a}}function i(e,t,n){this.jb=n,this.Ya=function(){return e.call(t),!1}}function o(e){var t;this.W=function(n,r){t=r+e},this.Ya=function(e,n){return n=(r=a*l-n*t)&&-1e-12<=r)&&(n=((s-=o)*l-n*(u-=e))/r,0<=(r=(s*t-a*u)/r)&&(i||1>=r)&&0<=n&&1>=n))return{x:o+a*n,y:e+t*n}},this.Jg=function(e,t,n,r){var i=e.x;e=e.y;var o=t.x-i;t=t.y-e;var a=n.x;n=n.y;var s=r.x-a,u=o*(r=r.y-n)-s*t;if(!(1e-12>=u&&-1e-12<=u)&&(0<=(r=((a-i)*r-s*(n-e))/u)&&1>=r))return{x:i+o*r,y:e+t*r}},this.Bc=function(e,n,r){for(var i,o=z.k(n,{}),a=(l=z.k(r,{})).x-o.x,s=l.y-o.y,u=[],l=0;l(t.y-r.y)*(i.x-r.x)-(t.x-r.x)*(i.y-r.y))return!1}return!0},this.Mg=function(e,t,n){var r=e.x,i=t.x;if(e.x>t.x&&(r=t.x,i=e.x),i>n.x+n.f&&(i=n.x+n.f),ri)return!1;var o=e.y,a=t.y,s=t.x-e.x;return 1e-7a&&(r=a,a=o,o=r),a>n.y+n.i&&(a=n.y+n.i),oa?-1:0r?-1:0u*(o.x-a.x)+l*(o.y-a.y)+h*(o.z-a.z)&&e.d(t,o);for(i=(n=r.kb).length,s=0;su*(o.x-a.x)+l*(o.y-a.y)+h*(o.z-a.z)&&e.d(t,o)}var a,s,u,l,c=r.length;for(a=0;ao*e.x+a*e.y+s*e.z?new t(e,n,r):new t(r,n,e)}function i(e,t,n,r){function i(e,t,n){return(e=e.ma)[((t=e[0]==t?0:e[1]==t?1:2)+1)%3]!=n?(t+2)%3:t}t.C[i(t,n,r)]=e,e.C[i(e,r,n)]=t}if(4>c)return 0;var o=r[0],a=r[1],s=r[2],u=r[3],l=n(o,a,s,u),h=n(o,s,u,a),d=n(o,a,u,s),p=n(a,s,u,o);for(i(l,h,s,o),i(l,d,o,a),i(l,p,a,s),i(h,d,u,o),i(h,p,s,u),i(d,p,u,a),f.push(l,h,d,p),o=4;os;s++)l=(u=f[s]).ma[0],0>(h=u.Oa).x*(a.x-l.x)+h.y*(a.y-l.y)+h.z*(a.z-l.z)&&e.d(u,a);return 4}())){for(;hs;s++)if(!0===g[s].visible){d=l,p=s;break e}}l=[];g=[];var b=d,v=p;do{if(l.push(b),g.push(v),v=(v+1)%3,!1===b.C[v].visible)do{for(a=b.ma[v],b=b.C[v],s=0;3>s;s++)b.ma[s]==a&&(v=s)}while(!1===b.C[v].visible&&(b!==d||v!==p))}while(b!==d||v!==p);var y=null,m=null;for(a=0;a(l.x-u.x)*(d.y-u.y)-(d.x-u.x)*(l.y-u.y)))){i=void 0;break e}}o.shift(),i=3>o.length?void 0:o}if(!i)e:{for(o=n.slice(0),i=0;i=-t&&(b=0),d.push(b),0b&&(c=!1)}if(f)o=[];else if(!c){for(g=[],p=0;pc||0>f&&0o.length){i=void 0;break e}}i=o}}return i},this},L=new function(){function e(e){for(var t=o=e[0].x,n=a=e[0].y,r=1;rt)if(v.ub&&y.ub){var m=[],x=[];for(o=0;oi.Oa.z))for(var o=i.C,a=0;as.Oa.z)){var u=(l=i.ma)[(a+1)%3].index,l=l[a].index;2t&&(d.push(u[s][0].ha),p.push(u[s][2]));h.o=d,h.C=p}h.o&&3>h.o.length&&(h.o=null,h.C=null)}}},this.zc=function(t,n){var r,i,o=!1,a=t.length;for(i=0;i(c=z.d(s,u))&&(d=c,l=u);s.Uj=l,s.vf=Math.sqrt(d)}for(i=0;is&&(s=i,n=r);return n;default:for(n=a[0],i=r=z.d(e,n),o=a.length-1;1<=o;o--)s=a[o],(r=z.d(e,s))e.lineHeight&&(e.lineHeight=1),e=w.fontFamily;var C=w.fontStyle+" "+w.fontVariant+" "+w.fontWeight,S=w.sb,T=w.Zc,M=C+" "+e;w.Ne=M;var z={la:!1,mc:0,fontSize:0};if(o.save(),o.font=C+" "+x+"px "+e,o.textBaseline="middle",o.textAlign="center",t(o,w),u=u.trim(),v.text=u,function(e,t,n,r){for(var i,o,a=0;at&&(L=t),_>>1;for(r=0;r=(c=Math.min(f,c*n.q.i)))s.la=!1;else{f=r,i=Math.min(i,c),d=Math.min(1,c/Math.max(20,t.md.length));do{var b=(f+i)/2,v=Math.min(h.length,Math.floor((c+b*(u-1-2*l))/(b*u))),y=void 0;if(0x)break}void 0!==y?f=g=b:i=b}while(i-f>d);void 0===g?(s.la=!1,s.fontSize=0):(s.la=!0,s.fontSize=g,s.mc=p,s.ec=o&&b===f)}}function a(e,t,n,r,i,o,a,s){var h=e.pb,f=r*(e.lineHeight-1),d=e.verticalAlign,v=Math.max(e.eb,.001);e=u[e.Ne];var y=t.md;t=t.lg;var m,w=i.o,C=i.vd,S=i.tf,T=i.uf;switch(d){case"top":i=C.y+r/2+r*v,m=1;break;case"bottom":i=C.y-(r*n+f*(n-1))+r/2-r*v,m=-1;break;default:i=C.y-(r*(n-1)/2+f*(n-1)/2),m=1}for(d=i,v=0;v=n-h&&"\n"!=w)C+=M," "===k&&(C+=z),a&&a(i,w);else{if(M>S&&(h!==n-1||!o))return!1;if(h+1>=n)return!!o&&(((n=S-C-m)>m||M>m)&&(0<(n=Math.floor(i.length*n/M))&&a&&a(i.substring(0,n),w)),a&&a(c,void 0),s&&s(h,d,i,w,C),!0);if(h++,s&&s(h,d,i,w,C),d+=r,d+=f,C=M," "===k&&(C+=z),M>(S=b[h])&&(h!==n||!o))return!1}w=k}return s&&s(h,d,void 0,void 0,C),!0}var s={sb:72,Zc:0,lineHeight:1.05,pb:1,eb:.5,tb:.9,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",verticalAlign:"center"},u={},l=" ",c="…",h="‐",f="­",d="​",p=[],g=[],b=[],v={text:"",md:void 0,lg:void 0},y={o:void 0,q:void 0,vd:void 0,tf:0,uf:0},x=100;return{Le:e,xe:function(t,n,r,i,o,a,s,u,l,c,h,f){var d,p=0,g=0;return r=r.toString().trim(),!f&&l.result&&r===l.sg&&Math.abs(c-l.ue)/c<=h&&((d=l.result).la&&(p=a.x-l.zg,g=a.y-l.Ag,h=l.jd,n.save(),n.translate(p,g),h.Ta(n),n.restore())),d||((h=l.jd).clear(),(d=e(t,h,r,i,o,a,s,u)).la&&h.Ta(n),l.ue=c,l.zg=a.x,l.Ag=a.y,l.result=d,l.sg=r),d.la?{la:!0,mc:d.mc,fontSize:d.fontSize,da:{x:d.da.x+p,y:d.da.y+g,f:d.da.f,i:d.da.i},ec:d.ec}:{la:!1}},yi:function(){return{ue:0,zg:0,Ag:0,result:void 0,jd:new o,sg:void 0}},Ea:s}}(),O=new function(){function e(e,t){return function(r,i,o,a){function s(e,t,n,r,i){e.o=[{x:t,y:n},{x:t+r,y:n},{x:t+r,y:n+i},{x:t,y:n+i}]}var u=i.x,l=i.y,c=i.f;if(i=i.i,0!=r.length)if(1==r.length)r[0].x=u+c/2,r[0].y=l+i/2,r[0].Ed=0,o&&s(r[0],u,l,c,i);else{r=r.slice(0);for(var h=0,f=0;f=(u=m.B(l.weight,1))){if(!e.uj)continue;u=.9*o}(l=n(l,!0)).T=u,l.index=a,l.parent=t,l.R=t.R+1,t.e.push(l),a++}}function n(e,t){var n=new ee;return r(e),n.id=e.__id,n.group=e,t&&(l[e.__id]=n),n}function r(e){m.Q(e,"__id")||(Object.defineProperty(e,"__id",{enumerable:!1,configurable:!1,writable:!1,value:u}),u++)}function i(e){for(var t=Number.MAX_VALUE,n=0;nr&&(t=r)}return t===Number.MAX_VALUE&&(t=1),t}function o(e){if(!e.empty()){var t,n=0;for(t=(e=e.e).length-1;0<=t;t--){var r=e[t].T;nt.T?-1:e.index-t.index});for(var t=0;tn?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.Xa-1))}function r(t,n,r,c){var h=a();if(0===t.length&&!h)return(new f).J().L();var g=t.reduce(function(e,t){return e[t.id]=!0,e},{}),m=[];if(t=[],C.reduce(function(e,t){return e||g[t.id]&&(!t.U||1!==t.ka)||!g[t.id]&&!t.parent.U&&(t.U||-1!==t.ka)},!1)){var w=[],T={};C.forEach(function(e){g[e.id]&&(e.U||m.push(e),e.U=!0,M.Fa(e,function(e){w.push(u(e,1)),T[e.id]=!0}))}),0n&&H(r,e)&&(t=r,n=r.scale)}),t}(h);c&&(c=f?f.group:null,h=f?f.Vb(h,i):h,o.Mb=void 0,a=a({type:e,group:c,topmostClosedGroup:c,bottommostOpenGroup:d?d.group:null,x:o.x,y:o.y,xAbsolute:h.x,yAbsolute:h.y,scale:m.B(o.scale,1),secondary:o.xb,touches:m.B(o.touches,1),delta:m.B(o.wd,0),ctrlKey:o.ctrlKey,metaKey:o.metaKey,altKey:o.altKey,shiftKey:o.shiftKey,preventDefault:function(){u=!0},preventOriginalEventDefault:function(){o.Mb="prevent"},allowOriginalEventDefault:function(){o.Mb="allow"}}),u=u||0<=a.indexOf(!1),f&&f.na&&"click"===e&&(u=!1)),u||n&&n({Ec:f,Wg:d},o)}}function s(e,t){var n;if("flattened"==G.Ua)n=function(e){return function e(t,n){var r=n.e;if(r){for(var i,o=-Number.MAX_VALUE,a=0;ao&&(i=s,o=s.scale)}var u;return i&&(u=e(t,i)),u||i}}(e,x)}(e);else{n=t||0;for(var r=N.length,i=void 0,o=0;on&&!1===a.open&&a.ea&&H(a,e)&&(i=a,n=a.scale)}n=i}return n}var u,l,c,h,f,d,p,x,w,C,T,k,j,L,_,D,O,A,I,N,P=t.mf(),E=this,G=e.options,B=!1;e.c.j("stage:initialized",function(e,t,n,i){u=t,A=n,I=i,r()}),e.c.j("stage:resized",function(e,t,n,r){A=n,I=r}),e.c.j("stage:disposed",function(){D.lb(),U.lb(),O.d()}),e.c.j("expose:initialized",function(e){h=e}),e.c.j("zoom:initialized",function(e){l=e}),e.c.j("openclose:initialized",function(e){f=e}),e.c.j("select:initialized",function(e){d=e}),e.c.j("titlebar:initialized",function(e){p=e}),e.c.j("timeline:initialized",function(e){c=e}),e.c.j("model:loaded",function(e,t){x=e,N=t}),e.c.j("model:childrenAttached",function(e){N=e}),this.H=function(){},this.Aa=o(a("mousedown",!1,function(){l.vi()})),this.Ba=o(a("mouseup",!1,void 0)),this.d=o(a("click",!0,function(e,t){if(!t.xb&&!t.shiftKey){var n=e.Ec;n&&(n.na?document.location.href=S.kg("iuuq;..b`ssnurd`sbi/bnl.gn`lusdd"):d.select({e:[n],Ia:!n.selected,Ha:t.metaKey||t.ctrlKey},!0))}})),this.k=o(a("doubleclick",!0,function(t,n){var r,i;n.xb||n.shiftKey?(r=t.Ec)&&(r.parent.U&&(r=r.parent),i={e:r.parent!==x?[r.parent]:[],Ia:!0,Ha:!1},d.select(i,!0),h.fc(i,!0,!0,!1)):(r=t.Ec)&&(i={e:[r],Ia:!0,Ha:!1},r.gb=!0,e.c.p("foamtree:attachChildren",[r]),h.fc(i,!0,!0,!1)),r&&c.D.m({}).fb(G.Wa/2).call(function(){f.Kb({e:M.Mc(x,function(e){return e.Td&&!M.ki(r,e)}),Ia:!1,Ha:!0},!0,!0),r.Td=!0,f.Kb({e:[r],Ia:!(n.xb||n.shiftKey),Ha:!0},!0,!0)}).start()})),this.ya=o(a("hold",!0,function(e,t){var n,r=!(t.metaKey||t.ctrlKey||t.shiftKey||t.xb);(n=r?e.Ec:e.Wg)&&n!==x&&f.Kb({e:[n],Ia:r,Ha:!0},!0,!1)})),this.Y=o(a("dragstart",!1,function(e,t){w=t.x,C=t.y,T=Date.now(),B=!0})),this.A=o(a("drag",!1,function(e,t){if(B){var n=Date.now();L=Math.min(1,n-T),T=n;n=t.x-w;var r=t.y-C;l.ti(n,r),k=n,j=r,w=t.x,C=t.y}})),this.S=o(a("dragend",!1,function(){if(B){B=!1;var e=Math.sqrt(k*k+j*j)/L;4<=e?l.ui(e,k,j):l.wf()}})),this.Va=o(a("transformstart",!1,function(e,t){_=1,w=t.x,C=t.y}));var R=1,F=!1;this.Ja=o(a("transform",!1,function(e,t){var n=t.scale-.01;l.Qg(t,n/_,t.x-w,t.y-C),_=n,w=t.x,C=t.y,R=_,F=F||2R?e.c.p("interaction:reset"):i(),F=!1})),this.Pa=o(a("mousewheel",!1,function(){var e=m.ah(function(){i()},300);return function(t,n){var r=G.Hj;1!==r&&(r=Math.pow(r,n.wd),P?(l.Rg(n,r),e()):l.Yb(n,r,G.wc,y.pa(G.xc)).N(i))}}())),this.za=o(function(){var t,n=void 0,r={},i=!1,o=a("hover",!1,function(){n&&(n.Eb=!1,n.I=!0),t&&(t.Eb=!0,t.I=!0),p.update(t),e.c.p("foamtree:dirty",!1)}),u=a("mousemove",!1,void 0);return function(e){if("out"===e.type)i=(t=void 0)!==n;else if(l.absolute(e,r),n&&!n.open&&H(n,r)){var a=s(r,n.scale);a&&a!=n?(i=!0,t=a):i=!1}else t=s(r),i=t!==n;i&&(o(e),n=t,i=!1),n&&u(e)}}()),this.hb={click:n(this.d),doubleclick:n(this.k),hold:n(this.ya),mouseup:n(this.Ba),mousedown:n(this.Aa),dragstart:n(this.Y),drag:n(this.A),dragend:n(this.S),transformstart:n(this.Va),transform:n(this.Ja),transformend:n(this.cb),hover:n(this.za),mousewheel:n(this.Pa)};var U=function(){var e,t={};return{H:function(t){e=window.Hammer(t,{doubletap_interval:350,hold_timeout:400,doubletap_distance:10})},m:function(n,r,i){t[n]=r,e.on(n,function(e,t){return function(n){var r=(n=n.gesture).center;(r=g.Ie(u,r.pageX,r.pageY,{})).scale=n.scale,r.xb=1=Math.max(n.Ve,5e-5)},this.yd=function(e,t){for(var r=Math.pow(n.Ra,e.R),i=n.mb*r,o=(r=n.Ad*r,e.e),s=o.length-1;0<=s;s--){var u=o[s];a.we(u,r);var l=u;l.aa=0e}function s(e){var t=h.cc/(1+h.cc),n=z.q(e.u,{}),r={x:n.x,y:0},i=n.y,o=n.i,a=h.Ce*Math.pow(h.Ra,e.R-1),s=o*h.Be,u=h.Ic;"bottom"==u||0<=u&&180>u?(u=Math.PI,i+=o,o=-1):(u=0,o=1);for(var l,c=e.u,f=u,d=0,p=1,g=z.k(c,{}),b=g.ja,v=(t=b*t,0);dv++;){var y=(d+p)/2;r.y=n.y+n.i*y,l=z.Wb(c,r,f),z.k(l[0],g);var m=g.ja-t;if(.01>=Math.abs(m)/b)break;0<(0==f?1:-1)*m?p=y:d=y}z.q(l[0],n),(n.is)&&(r.y=n.ii.K.ja,u=0;!(a(o(i))||s&&32s?(i.i=o-n,e.u=z.A(i),i.y+=o-n,i.i=n,t()):(i.i=n,t(),i.y+=n,i.i=o-n,e.u=z.A(i))}(e)):t=e.e,a.lc&&t.sort(te),"floating"==a.dc&&i(t,a.Ic,function(e){return e.description}),i(t,a.ve,function(e){return e.na});var n=z.q(e.u,{});(s[a.Wc]||O.Xb)(t,n,!0,a.ce),e.La=!1,e.Z=!0,e.I=!0,e.Ma=!0}function i(e,t,n){for(var r=0;rt?e.unshift(i):e.push(i);break}}}var o,a=e.options,s={squarified:O.te,ordered:O.Xb};e.c.j("model:loaded",function(e){o=e}),this.step=function(e,t,n){return this.complete(e),t&&a.Sd(1,!0,n),!0},this.complete=function(e){for(var i=[o];0=U&&(v=C,T=j,f())}function l(){var e=null,t=null,n=null;return I.Jc([],function(r){o(r.scale);var i=!1;M.F(E,function(e){e.$&&(i=e.Nd()||i,e.nc(),e.Sa=H.d(e)||e.Sa)}),i&&(E.I=!0);var a="onSurfaceDirty"===W.oh;M.xd(E,function(e){e.parent&&e.parent.Z&&(e.ba.clear(),e.Sa=!0,a||(e.Fc=!0,e.ac.clear())),a&&(e.Fc=!0,e.ac.clear())});var s=r.scale*r.scale;if(M.xd(E,function(e){if(e.M){for(var t=e.e,n=0;nMath.abs(t.scale-e.scale)&&(e.scale=Math.min(e.scale,t.scale))}}),function e(t,n,r){t.Cb=Math.floor(1e3*t.scale)-r*n,0e?0:e}var n=[{type:"fill",qa:d("polygonPlainFill"),hd:function(t,n){n.fillStyle=h.Ac(e(t))}},{type:"fill",qa:d("polygonGradientFill"),hd:function(n,r){var i=n.K.Ob,o=e(n);(i=r.createRadialGradient(n.x,n.y,0,n.x,n.y,i*W.th)).addColorStop(0,h.Y((o.h+W.qh)%360,t(o.s+W.sh),t(o.l+W.rh))),i.addColorStop(1,h.Y((o.h+W.uh)%360,t(o.s+W.wh),t(o.l+W.vh))),n.ba.Ta(r),r.fillStyle=i}},{type:"stroke",qa:p(d("polygonPlainStroke"),function(){return 0=W.Ph,!W.De&&e.description?e.rb=e.parent.rb:"auto"===e.Hd?(n=(t=e.Qe).h+(t.s<<9)+(t.l<<16),e.zd!==n&&(e.rb=h.Cg(t)>(0>e.ka?W.di:W.Eh)?W.Fh:W.Oh,e.zd=n)):e.rb=e.Hd)}},{$a:["custom"],qa:p(d("contentDecoration"),function(){return W.Pc}),W:function(){},Da:function(){},d:function(){},ib:function(){},wb:function(e,t){!(0c&&(s=c),o.Db=c,o.Oc=1}for(i=0;ie+n*r?0:100e-n*(1-r)?0:100a.ka?b*(a.ka+1):b)*(1-a.Oc))*r(T,f,d,"l"),S=r(T,f,d,"a")):(x=(C=n.sa).h,w=C.s,C=e(C.l,T,s.$i,s.aj),S=n.Pe.a),M.h=x,M.s=w,M.l=C,M.a=S,x=a.sa,a.na?(x.h=0,x.s=0,x.l="light"==s.Tg?90:10,x.a=1):(x.h=M.h,x.s=M.s,x.l=M.l,x.a=M.a),g&&!a.na&&(u.groupColor=x,u.labelColor="auto",i.Dc(p,a,u,function(e){e.ratio=T}),a.sa=h.Ba(u.groupColor),a.sa.a=m.Q(u.groupColor,"a")?u.groupColor.a:1,"auto"!==u.labelColor&&(a.Hd=h.Ng(u.labelColor)))}n.Ma=!1}for(o=y.length-1;0<=o;o--)t(y[o])}}(o)},this}function ee(){this.uc=this.pe=this.rc=this.qg=this.f=this.xg=this.T=this.y=this.x=this.id=0,this.o=this.parent=this.e=null,this.q={x:0,y:0,f:0,i:0},this.C=null,this.Id=this.qf=void 0,this.ld=!1,this.Oc=this.Db=0,this.Pe={h:0,s:0,l:0,a:0,model:"hsla"},this.sa={h:0,s:0,l:0,a:0,model:"hsla"},this.Qe={h:0,s:0,l:0,model:"hsl"},this.zd=-1,this.Hd="auto",this.rb="#000",this.ng=this.R=this.Ed=this.index=0,this.na=!1,this.ja=this.vf=0,this.ea=!1,this.aa=null,this.K={x:0,y:0,ja:0,Ob:0},this.Xd=this.u=null,this.Yc=this.$=this.ab=this.Fc=this.me=this.Vd=this.Sa=this.Ma=this.I=this.Z=this.La=this.Ca=this.M=this.Qa=!1,this.wa=this.va=this.Ka=this.fa=this.opacity=this.scale=1,this.ua=0,this.Zd=1,this.Lb=this.ka=this.Hb=0,this.description=this.selected=this.Eb=this.Td=this.open=this.U=!1,this.Cb=0,this.pf=this.Wd=this.X=!0,this.ra=void 0,this.Vc=!1,this.Uc=new o,this.ba=new o,this.ac=new o,this.li=D.yi(),this.Xc=0,this.sd=1,this.bd=-1,this.empty=function(){return!this.e||0===this.e.length};var e=[];this.Cc=function(t){e.push(t)},this.fd=function(t){m.cg(e,t)};var t={scale:1};this.Nd=function(){var n=!1;this.scale=1;for(var r=0;re.T?1:t.T=c||0>=h)){var f,d=e.Vc?e.ra.fontSize*e.scale*a.scale():0,p={titleBarText:e.Id,titleBarTextColor:u.ug,titleBarBackgroundColor:u.tg,titleBarMaxFontSize:u.ne,titleBarShown:di/2)?t:i-l+t,f:h,i:c},s=z.A(t),n.fillStyle=u.tg,n.fillRect(0,e?0:i-l,r,l),n.fillStyle=u.ug,D.Le({fontFamily:u.xj||u.Ih,fontStyle:u.Yj||u.Jh,fontWeight:u.$j||u.Lh,fontVariant:u.Zj||u.Kh,sb:u.ne,Zc:u.yj,pb:0,eb:0,tb:1},n,f,s,t,{x:t.x+t.f/2,y:t.y+t.i/2},!0,!0).la||n.clearRect(0,0,r,i))}}}}function re(e){function t(e,t,n){return x=!0,u&&u.stop(),l&&l.stop(),a(p.reset(e),t,n).N(function(){x=!1})}function n(t){p.update(t),h.I=!0,e.c.p("foamtree:dirty",!0)}function r(e,t){return p.d((0!==p.k()?.35:1)*e,(0!==p.A()?.35:1)*t)}function i(){if(1===g.Pb){var e=Math.round(1e4*p.k())/1e4;0!==e&&(b.$d=e,u=d.D.tc(b).ia({duration:500,G:{x:{start:e,end:0,P:y.Rb}},ca:function(){p.d(b.x-b.$d,0),n(1),b.$d=b.x}}).start())}}function o(){if(1===g.Pb){var e=Math.round(1e4*p.A())/1e4;0!==e&&(v.ae=e,l=d.D.tc(v).ia({duration:500,G:{y:{start:e,end:0,P:y.Rb}},ca:function(){p.d(0,v.y-v.ae),n(1),v.ae=v.y}}).start())}}function a(e,t,r){return e?d.D.tc(g).ia({duration:void 0===t?700:t,G:{Pb:{start:0,end:1,P:r||y.pg}},ca:function(){n(g.Pb)}}).bb():(new f).J().L()}function s(e){return function(){return x?(new f).J().L():e.apply(this,arguments)}}var u,l,h,d,p=new c(e),g={Pb:1},b={Ee:0,x:0,$d:0},v={Fe:0,y:0,ae:0},m=this,x=!1;e.c.j("model:loaded",function(e){h=e,p.reset(!1),p.update(1)}),e.c.j("timeline:initialized",function(e){d=e}),this.H=function(){e.c.p("zoom:initialized",this)},this.reset=function(e,n){return p.Qb(1),t(!0,e,n)},this.normalize=s(function(e,n){p.Hc(1)?t(!1,e,n):m.wf()}),this.wf=function(){i(),o()},this.k=s(function(e,t,n,r){return m.sc(e.q,t,n,r)}),this.Yb=s(function(e,t,n,r){return a(p.Yb(e,t),n,r)}),this.sc=s(function(e,t,n,r){return a(p.sc(e,t),n,r)}),this.Bj=s(function(e,t){p.sc(e,t)&&n(1)}),this.ti=s(function(e,t){1===g.Pb&&r(e,t)&&n(1)}),this.Rg=s(function(e,t){p.Yb(e,t)&&n(1)}),this.Qg=s(function(e,t,i,o){e=0|p.Yb(e,t),(e|=r(i,o))&&n(1)}),this.ui=s(function(e,t,a){1===g.Pb&&(u=d.D.tc(b).ia({duration:e/.03,G:{Ee:{start:t,end:0,P:y.Rb}},ca:function(){p.d(b.Ee,0)&&n(1),i()}}).start(),l=d.D.tc(v).ia({duration:e/.03,G:{Fe:{start:a,end:0,P:y.Rb}},ca:function(){r(0,v.Fe)&&n(1),o()}}).start())}),this.vi=function(){u&&0===p.k()&&u.stop(),l&&0===p.A()&&l.stop()},this.Jc=function(e,t){p.Jc(e,t)},this.Qb=function(e){return p.Qb(e)},this.Hc=function(e){return p.Hc(e)},this.Rd=function(){return p.Rd()},this.absolute=function(e,t){return p.absolute(e,t)},this.nd=function(e,t){return p.nd(e,t)},this.scale=function(){return p.scale()},this.d=function(e){return p.S(e)},this.content=function(e,t,n,r){p.content(e,t,n,r)}}function ie(t,i,o){function a(e){var t=[];return M.F(v,function(n){e(n)&&t.push(n.group)}),{groups:t}}function s(e,t){var n=(i=w.options).kj,r=i.jj,i=i.fe,o=0i.hj;t=P.step(function(t){t.Ca=!0,ue.df(t),ae.d(),q.d(t).N(ae.k),ae.d(),s(t,function(){this.Qa=!0,e()}).N(ae.k)},!0,t)||t;return u(!0),t&&(o=!1,ae.k()),t}var r,o=!1;return{xi:function(){P.complete(ue.qb)},gd:e,dg:t,Gb:function(){return!ae.A()},stop:function(){S.cancel(n),o=!1,ae.clear()}}}(),ue=function(){function e(e){var t=!e.empty();if(e.Ca=!0,t){for(var n=e.e,r=n.length-1;0<=r;r--){var i=n[r];i.f=i.rc}e.La=!0}return t}var t=[];return{df:function(n){var r=w.options,i=r.zh;0r&&(r=a.x),a.y>i&&(i=a.y)}return{x:t,y:n,w:r-t,h:i-n}}})},function(){window.CarrotSearchFoamTree=function(){window.console.error("FoamTree is not supported on this browser.")},window.CarrotSearchFoamTree.Xj=!1})}(),e.exports=CarrotSearchFoamTree},function(e,t,n){var r=n(33);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(18),i=n(41),o=n(43),a="Expected a function",s=Math.max,u=Math.min;e.exports=function(e,t,n){var l,c,h,f,d,p,g=0,b=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError(a);function m(t){var n=l,r=c;return l=c=void 0,g=t,f=e.apply(r,n)}function x(e){var n=e-p;return void 0===p||n>=t||n<0||v&&e-g>=h}function w(){var e=i();if(x(e))return C(e);d=setTimeout(w,function(e){var n=t-(e-p);return v?u(n,h-(e-g)):n}(e))}function C(e){return d=void 0,y&&l?m(e):(l=c=void 0,f)}function S(){var e=i(),n=x(e);if(l=arguments,c=this,p=e,n){if(void 0===d)return function(e){return g=e,d=setTimeout(w,t),b?m(e):f}(p);if(v)return d=setTimeout(w,t),m(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=o(t)||0,r(n)&&(b=!!n.leading,h=(v="maxWait"in n)?s(o(n.maxWait)||0,t):h,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==d&&clearTimeout(d),g=0,l=p=c=d=void 0},S.flush=function(){return void 0===d?f:C(i())},S}},function(e,t,n){var r=n(49);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(50)("toUpperCase");e.exports=r},function(e,t,n){var r=n(14),i=/[\\^$.*+?()[\]{}|]/g,o=RegExp(i.source);e.exports=function(e){return(e=r(e))&&o.test(e)?e.replace(i,"\\$&"):e}},function(e,t,n){(t=e.exports=n(2)(!1)).push([e.i,".Tooltip__container{font:var(--main-font);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){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(e,t,n){(t=e.exports=n(2)(!1)).push([e.i,".Button__button{background:#fff;border:1px solid #aaa;border-radius:4px;cursor:pointer;display:inline-block;font:var(--main-font);outline:none;padding:5px 7px;transition:background .3s ease;white-space:nowrap}.Button__button:focus,.Button__button:hover{background:#ffefd7}.Button__button.Button__active{background:orange;color:#000}.Button__button[disabled]{cursor:default}",""]),t.locals={button:"Button__button",active:"Button__active"}},function(e,t,n){(t=e.exports=n(2)(!1)).push([e.i,".Switcher__container{font:var(--main-font);white-space:nowrap}.Switcher__label{font-weight:700;font-size:11px;margin-bottom:7px}.Switcher__item+.Switcher__item{margin-left:5px}",""]),t.locals={container:"Switcher__container",label:"Switcher__label",item:"Switcher__item"}},function(e,t,n){(t=e.exports=n(2)(!1)).push([e.i,".Sidebar__container{background:#fff;border:none;border-right:1px solid #aaa;box-sizing:border-box;max-width:calc(50% - 10px);opacity:.95;z-index:1}.Sidebar__container:not(.Sidebar__hidden){min-width:200px}.Sidebar__container:not(.Sidebar__pinned){bottom:0;position:absolute;top:0;transition:transform .2s ease}.Sidebar__container.Sidebar__pinned{position:relative}.Sidebar__container.Sidebar__left{left:0}.Sidebar__container.Sidebar__left.Sidebar__hidden{transform:translateX(calc(-100% + 7px))}.Sidebar__content{box-sizing:border-box;height:100%;overflow-y:auto;padding:25px 20px 20px;width:100%}.Sidebar__empty.Sidebar__pinned .Sidebar__content{padding:0}.Sidebar__pinButton,.Sidebar__toggleButton{cursor:pointer;height:26px;line-height:0;position:absolute;top:10px;width:27px}.Sidebar__pinButton{right:47px}.Sidebar__toggleButton{padding-left:6px;right:15px}.Sidebar__hidden .Sidebar__toggleButton{right:-35px;transition:transform .2s ease}.Sidebar__hidden .Sidebar__toggleButton:hover{transform:translateX(4px)}.Sidebar__resizer{bottom:0;cursor:col-resize;position:absolute;right:0;top:0;width:7px}",""]),t.locals={toggleTime:".2s",container:"Sidebar__container",hidden:"Sidebar__hidden",pinned:"Sidebar__pinned",left:"Sidebar__left",content:"Sidebar__content",empty:"Sidebar__empty",pinButton:"Sidebar__pinButton",toggleButton:"Sidebar__toggleButton",resizer:"Sidebar__resizer"}},function(e,t,n){(t=e.exports=n(2)(!1)).push([e.i,".Icon__icon{background:no-repeat 50%/contain;display:inline-block}",""]),t.locals={icon:"Icon__icon"}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNyIgaGVpZ2h0PSIxMyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNLjgyMiAxMi44MTFhLjQ0NS40NDUgMCAwIDEtLjMyMi4xMzMuNDU2LjQ1NiAwIDAgMS0uMzIyLS43NzhMNS44NDQgNi41LjE3OC44MzNBLjQ1Ni40NTYgMCAwIDEgLjgyMi4xOWw1Ljk5IDUuOTg5YS40NTYuNDU2IDAgMCAxIDAgLjY0NGwtNS45OSA1Ljk5eiIvPjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuMDEyIDE3Ljk0OWwtMS40OTMtNi4zNzZhMTAuOTM1IDEwLjkzNSAwIDAgMCAyLjk4NS4wMDJMNi4wMTIgMTcuOTV6TTkuMjQ2IDEuODU3YzAgLjUyLS40MTUuOTg1LTEuMDcgMS4zMDhsLS4wMDEgMi42MTZjMS43MjUuNDEgMi45MjIgMS4yOTQgMi45MjIgMi4zMiAwIC40MTYtLjE5NS44MDktLjU0MiAxLjE1Ni0uNjQuNjM5LTEuNzk0IDEuMTI0LTMuMTg3IDEuMzE4LS4wMy4wMDUtLjA2Mi4wMDgtLjA5My4wMTJhOC45MTcgOC45MTcgMCAwIDEtLjcyNS4wNjVsLS4xMi4wMDdhMTAuMTU0IDEwLjE1NCAwIDAgMS0uODk1LS4wMDNjLS4wOTgtLjAwNS0uMTkzLS4wMTMtLjI4OC0uMDItLjA1My0uMDA0LS4xMDYtLjAwNy0uMTU4LS4wMTJhOS4yNDcgOS4yNDcgMCAwIDEtLjM3Mi0uMDQzbC0uMDQ1LS4wMDZDMi41MTQgMTAuMjc4LjkyNiA5LjI4NS45MjYgOC4xMDFjMC0uNDE1LjE5Ni0uODA3LjU0My0xLjE1NC41MTEtLjUxMiAxLjM1Mi0uOTI0IDIuMzgtMS4xNjhWMy4xNjVjLS42NTYtLjMyMy0xLjA3LS43ODktMS4wNy0xLjMwOUMyLjc3OC44ODIgNC4yMjUuMDkyIDYuMDExLjA5MnMzLjIzNC43OSAzLjIzNCAxLjc2NXoiLz48L3N2Zz4="},function(e,t,n){(t=e.exports=n(2)(!1)).push([e.i,".Checkbox__label{display:inline-block}.Checkbox__checkbox,.Checkbox__label{cursor:pointer}.Checkbox__itemText{margin-left:3px;position:relative;top:-2px;vertical-align:middle}",""]),t.locals={label:"Checkbox__label",checkbox:"Checkbox__checkbox",itemText:"Checkbox__itemText"}},function(e,t,n){(t=e.exports=n(2)(!1)).push([e.i,".CheckboxList__container{font:var(--main-font);white-space:nowrap}.CheckboxList__label{font-size:11px;font-weight:700;margin-bottom:7px}.CheckboxList__item+.CheckboxList__item{margin-top:1px}",""]),t.locals={container:"CheckboxList__container",label:"CheckboxList__label",item:"CheckboxList__item"}},function(e,t,n){(t=e.exports=n(2)(!1)).push([e.i,".ContextMenuItem__item{cursor:pointer;margin:0;padding:8px 14px;user-select:none}.ContextMenuItem__item:hover{background:#ffefd7}.ContextMenuItem__disabled{cursor:default;color:grey}.ContextMenuItem__item.ContextMenuItem__disabled:hover{background:transparent}",""]),t.locals={item:"ContextMenuItem__item",disabled:"ContextMenuItem__disabled"}},function(e,t,n){(t=e.exports=n(2)(!1)).push([e.i,".ContextMenu__container{font:var(--main-font);position:absolute;padding:0;border-radius:4px;background:#fff;border:1px solid #aaa;list-style:none;opacity:1;white-space:nowrap;visibility:visible;transition:opacity .2s ease,visibility .2s ease}.ContextMenu__hidden{opacity:0;visibility:hidden}",""]),t.locals={container:"ContextMenu__container",hidden:"ContextMenu__hidden"}},function(e,t,n){(t=e.exports=n(2)(!1)).push([e.i,".ModulesTreemap__container{align-items:stretch;display:flex;height:100%;position:relative;width:100%}.ModulesTreemap__map{flex:1}.ModulesTreemap__sidebarGroup{font:var(--main-font);margin-bottom:20px}.ModulesTreemap__showOption{margin-top:5px}.ModulesTreemap__activeSize{font-weight:700}.ModulesTreemap__foundModulesInfo{display:flex;font:var(--main-font);margin:8px 0 0}.ModulesTreemap__foundModulesInfoItem+.ModulesTreemap__foundModulesInfoItem{margin-left:15px}.ModulesTreemap__foundModulesContainer{margin-top:15px;max-height:600px;overflow:auto}.ModulesTreemap__foundModulesChunk+.ModulesTreemap__foundModulesChunk{margin-top:15px}.ModulesTreemap__foundModulesChunkName{cursor:pointer;font:var(--main-font);font-weight:700;margin-bottom:7px}.ModulesTreemap__foundModulesList{margin-left:7px}",""]),t.locals={container:"ModulesTreemap__container",map:"ModulesTreemap__map",sidebarGroup:"ModulesTreemap__sidebarGroup",showOption:"ModulesTreemap__showOption",activeSize:"ModulesTreemap__activeSize",foundModulesInfo:"ModulesTreemap__foundModulesInfo",foundModulesInfoItem:"ModulesTreemap__foundModulesInfoItem",foundModulesContainer:"ModulesTreemap__foundModulesContainer",foundModulesChunk:"ModulesTreemap__foundModulesChunk",foundModulesChunkName:"ModulesTreemap__foundModulesChunkName",foundModulesList:"ModulesTreemap__foundModulesList"}},function(e,t,n){var r=n(19);e.exports=function(){return r.Date.now()}},function(e,t,n){e.exports=!1},function(e,t,n){var r=n(18),i=n(20),o=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?o:+e}},function(e,t,n){var r=n(13),i=n(45),o=n(46),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(13),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(u){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){(t=e.exports=n(2)(!1)).push([e.i,".Search__container{font:var(--main-font);white-space:nowrap}.Search__label{font-weight:700;margin-bottom:7px}.Search__row{display:flex}.Search__input{border:1px solid #aaa;border-radius:4px;display:block;flex:1;padding:5px}.Search__clear{flex:0 0 auto;line-height:1;margin-left:3px;padding:5px 8px 7px}",""]),t.locals={container:"Search__container",label:"Search__label",row:"Search__row",input:"Search__input",clear:"Search__clear"}},function(e,t,n){(t=e.exports=n(2)(!1)).push([e.i,".ModulesList__container{font:var(--main-font)}",""]),t.locals={container:"ModulesList__container"}},function(e,t,n){var r=n(51),i=n(21),o=n(53),a=n(14);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),u=n?r(n,1).join(""):t.slice(1);return s[e]()+u}}},function(e,t,n){var r=n(52);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},function(e,t){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r":">",'"':""","'":"'"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){t=e.exports=n(2)(!1);var r=n(62),i=r(n(63)),o=r(n(64)),a=r(n(65)),s=r(n(66));t.push([e.i,".ModuleItem__container{background:no-repeat 0;cursor:pointer;margin-bottom:4px;padding-left:18px;position:relative;white-space:nowrap}.ModuleItem__container.ModuleItem__module{background-image:url("+i+");background-position-x:1px}.ModuleItem__container.ModuleItem__folder{background-image:url("+o+")}.ModuleItem__container.ModuleItem__chunk{background-image:url("+a+")}.ModuleItem__container.ModuleItem__invisible:hover:before{background:url("+s+') no-repeat 0;content:"";height:100%;left:0;top:1px;position:absolute;width:13px}',""]),t.locals={container:"ModuleItem__container",module:"ModuleItem__module",folder:"ModuleItem__folder",chunk:"ModuleItem__chunk",invisible:"ModuleItem__invisible"}},function(e,t,n){"use strict";e.exports=function(e,t){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)||t?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNjI1IDBBMS42MyAxLjYzIDAgMCAwIDAgMS42MjV2OS43NUExLjYzIDEuNjMgMCAwIDAgMS42MjUgMTNoNy41ODNhMS42MyAxLjYzIDAgMCAwIDEuNjI1LTEuNjI1VjMuNTY3TDcuMjY2IDBIMS42MjV6bTAgMS4wODNINi41djMuMjVoMy4yNXY3LjA0MmEuNTM1LjUzNSAwIDAgMS0uNTQyLjU0MkgxLjYyNWEuNTM1LjUzNSAwIDAgMS0uNTQyLS41NDJ2LTkuNzVjMC0uMzA1LjIzNy0uNTQyLjU0Mi0uNTQyem01Ljk1OC43NjZMOC45ODQgMy4yNWgtMS40di0xLjR6TTMuMjUgNi41djEuMDgzaDQuMzMzVjYuNUgzLjI1em0wIDIuMTY3VjkuNzVINi41VjguNjY3SDMuMjV6IiBmaWxsLW9wYWNpdHk9Ii40MDMiLz48L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSI+PHBhdGggZD0iTTExLjcgMS4zMzNINS44NUw0LjU1IDBIMS4zQy41ODUgMCAwIC42IDAgMS4zMzNWNGgxM1YyLjY2N2MwLS43MzMtLjU4NS0xLjMzNC0xLjMtMS4zMzR6IiBmaWxsPSIjRkZBMDAwIi8+PHBhdGggZD0iTTExLjcgMUgxLjNDLjU4NSAxIDAgMS41NzkgMCAyLjI4NnY2LjQyOEMwIDkuNDIxLjU4NSAxMCAxLjMgMTBoMTAuNGMuNzE1IDAgMS4zLS41NzkgMS4zLTEuMjg2VjIuMjg2QzEzIDEuNTc5IDEyLjQxNSAxIDExLjcgMXoiIGZpbGw9IiNGRkNBMjgiLz48L2c+PC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwdjExLjI1YzAgLjQxNC4zMzYuNzUuNzUuNzVoMTAuNWEuNzUuNzUgMCAwIDAgLjc1LS43NVYwSDB6IiBmaWxsPSIjRkM2IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNMCAwcy4xNTYgMyAxLjEyNSAzaDkuNzVDMTEuODQ1IDMgMTIgMCAxMiAwSDB6IiBmaWxsPSIjQ0NBMzUyIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNi43NSAxLjVoLS4zNzVMNiAyLjVsLS4zNzUtMUg1LjI1TDUuODEzIDMgNS4yNSA0LjVoLjM3NUw2IDMuNWwuMzc1IDFoLjM3NUw2LjE4NyAzeiIgZmlsbD0iIzk5N0EzRCIvPjxjaXJjbGUgY3g9Ii43NSIgY3k9Ii43NSIgcj0iMSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNS4yNSAzLjc1KSIgZmlsbD0iI0ZGRiIgZmlsbC1ydWxlPSJub256ZXJvIi8+PGNpcmNsZSBjeD0iLjc1IiBjeT0iLjc1IiByPSIxIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1LjI1IC43NSkiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjMyNy4wNjRMOC40MzMgMS45NTdhNi4wMjUgNi4wMjUgMCAwIDAtMS45NTItLjM0MkMyLjkxMiAxLjYxNS4wMTkgNS4xOTYuMDE5IDUuMTk2czEuMDk4IDEuMzU4IDIuNzc0IDIuNDAxTC45NiA5LjQzMWwuOTM2LjkzNkwxMS4yNjMgMWwtLjkzNi0uOTM2ek00LjA1IDYuMzRhMi42ODYgMi42ODYgMCAwIDEgMy41NzQtMy41NzRMNC4wNSA2LjM0em02LjQ0OC0zLjMzYTEyLjM0NCAxMi4zNDQgMCAwIDEgMi40NDQgMi4xODZzLTIuODkzIDMuNTgtNi40NjEgMy41OGMtLjUzIDAtMS4wNDQtLjA3OC0xLjUzNy0uMjEzbC43ODgtLjc4OEEyLjY4NCAyLjY4NCAwIDAgMCA5LjA2IDQuNDQ4bDEuNDM4LTEuNDM5eiIgZmlsbD0iIzIzMUYyMCIgZmlsbC1vcGFjaXR5PSIuNTk3Ii8+PC9zdmc+"},function(e,t,n){var r=n(68);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(3)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,":root{--main-font:normal 11px Verdana}#app,body,html{height:100%;margin:0;overflow:hidden;padding:0;width:100%}body.resizing{user-select:none!important}body.resizing *{pointer-events:none}body.resizing.col{cursor:col-resize!important}",""])},function(e,t,n){"use strict";n.r(t);var r=function(){},i={},o=[],a=[];function s(e,t){var n,s,u,l,c=a;for(l=arguments.length;l-- >2;)o.push(arguments[l]);for(t&&null!=t.children&&(o.length||o.push(t.children),delete t.children);o.length;)if((s=o.pop())&&void 0!==s.pop)for(l=s.length;l--;)o.push(s[l]);else"boolean"==typeof s&&(s=null),(u="function"!=typeof e)&&(null==s?s="":"number"==typeof s?s=String(s):"string"!=typeof s&&(u=!1)),u&&n?c[c.length-1]+=s:c===a?c=[s]:c.push(s),n=u;var h=new r;return h.nodeName=e,h.children=c,h.attributes=null==t?void 0:t,h.key=null==t?void 0:t.key,void 0!==i.vnode&&i.vnode(h),h}function u(e,t){for(var n in t)e[n]=t[n];return e}function l(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;var h=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,f=[];function d(e){!e._dirty&&(e._dirty=!0)&&1==f.push(e)&&(i.debounceRendering||c)(p)}function p(){for(var e;e=f.pop();)e._dirty&&A(e)}function g(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function b(e){var t=u({},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 v(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n,r,i){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)l(n,null),l(r,e);else if("class"!==t||i)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 o in n)o in r||(e.style[o]="");for(var o in r)e.style[o]="number"==typeof r[o]&&!1===h.test(o)?r[o]+"px":r[o]}}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,m,a):e.removeEventListener(t,m,a),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!i&&t in e){try{e[t]=null==r?"":r}catch(u){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var s=i&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?s?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(s?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function m(e){return this._listeners[e.type](i.event&&i.event(e)||e)}var x=[],w=0,C=!1,S=!1;function T(){for(var e;e=x.shift();)i.afterMount&&i.afterMount(e),e.componentDidMount&&e.componentDidMount()}function M(e,t,n,r,i,o){w++||(C=null!=i&&void 0!==i.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var a=z(e,t,n,r,o);return i&&a.parentNode!==i&&i.appendChild(a),--w||(S=!1,o||T()),a}function z(e,t,n,r,i){var o=e,a=C;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||i)?e.nodeValue!=t&&(e.nodeValue=t):(o=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(o,e),k(e,!0))),o.__preactattr_=!0,o;var s,u,l=t.nodeName;if("function"==typeof l)return function(e,t,n,r){var i=e&&e._component,o=i,a=e,s=i&&e._componentConstructor===t.nodeName,u=s,l=b(t);for(;i&&!u&&(i=i._parentComponent);)u=i.constructor===t.nodeName;i&&u&&(!r||i._component)?(O(i,l,3,n,r),e=i.base):(o&&!s&&(I(o),e=a=null),i=_(t.nodeName,l,n),e&&!i.nextBase&&(i.nextBase=e,a=null),O(i,l,1,n,r),e=i.base,a&&e!==a&&(a._component=null,k(a,!1)));return e}(e,t,n,r);if(C="svg"===l||"foreignObject"!==l&&C,l=String(l),(!e||!g(e,l))&&(s=l,(u=C?document.createElementNS("http://www.w3.org/2000/svg",s):document.createElement(s)).normalizedNodeName=s,o=u,e)){for(;e.firstChild;)o.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(o,e),k(e,!0)}var c=o.firstChild,h=o.__preactattr_,f=t.children;if(null==h){h=o.__preactattr_={};for(var d=o.attributes,p=d.length;p--;)h[d[p].name]=d[p].value}return!S&&f&&1===f.length&&"string"==typeof f[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=f[0]&&(c.nodeValue=f[0]):(f&&f.length||null!=c)&&function(e,t,n,r,i){var o,a,s,u,l,c=e.childNodes,h=[],f={},d=0,p=0,b=c.length,y=0,m=t?t.length:0;if(0!==b)for(var x=0;x{};function K(e){return null!==e&&"object"==typeof e}function Y(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function Z(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function $(e,t){const n="isMobX"+e;return t.prototype[n]=!0,function(e){return K(e)&&!0===e[n]}}function J(e){return e instanceof Map}function Q(e){return e instanceof Set}function X(e){return null===e?null:"object"==typeof e?""+e:e}const ee=Symbol("mobx administration");class te{constructor(e="Atom@"+U()){this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Ne.NOT_TRACKING}onBecomeObserved(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(e=>e())}onBecomeUnobserved(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(e=>e())}reportObserved(){return ot(this)}reportChanged(){rt(),function(e){if(e.lowestObserverState===Ne.STALE)return;e.lowestObserverState=Ne.STALE,e.observers.forEach(t=>{t.dependenciesState===Ne.UP_TO_DATE&&(t.isTracing!==Ee.NONE&&at(t,e),t.onBecomeStale()),t.dependenciesState=Ne.STALE})}(this),it()}toString(){return this.name}}const ne=$("Atom",te);function re(e,t=q,n=q){const r=new te(e);var i;return t!==q&&xt("onBecomeObserved",r,t,i),n!==q&&function(e,t,n){xt("onBecomeUnobserved",e,t,n)}(r,n),r}const ie={identity:function(e,t){return e===t},structural:function(e,t){return un(e,t)},default:function(e,t){return Object.is(e,t)}},oe=Symbol("mobx did run lazy initializers"),ae=Symbol("mobx pending decorators"),se={},ue={};function le(e){if(!0===e[oe])return;const t=e[ae];if(t){Z(e,oe,!0);for(let n in t){const r=t[n];r.propertyCreator(e,r.prop,r.descriptor,r.decoratorTarget,r.decoratorArguments)}}}function ce(e,t){return function(){let n;const r=function(r,i,o,a){if(!0===a)return t(r,i,o,r,n),null;if(!Object.prototype.hasOwnProperty.call(r,ae)){const e=r[ae];Z(r,ae,Object.assign({},e))}return r[ae][i]={prop:i,propertyCreator:t,descriptor:o,decoratorTarget:r,decoratorArguments:n},function(e,t){const n=t?se:ue;return n[e]||(n[e]={configurable:!0,enumerable:t,get(){return le(this),this[e]},set(t){le(this),this[e]=t}})}(i,e)};return(2===(i=arguments).length||3===i.length)&&"string"==typeof i[1]||4===i.length&&!0===i[3]?(n=R,r.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),r);var i}}function he(e,t,n){return zt(e)?e:Array.isArray(e)?Ce.array(e,{name:n}):Y(e)?Ce.object(e,void 0,{name:n}):J(e)?Ce.map(e,{name:n}):Q(e)?Ce.set(e,{name:n}):e}function fe(e){return e}function de(e){V(e);const t=ce(!0,(t,n,r,i,o)=>{const a=r?r.initializer?r.initializer.call(t):r.value:void 0;Qt(t).addObservableProp(n,a,e)}),n=t;return n.enhancer=e,n}const pe={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ge(e){return null==e?pe:"string"==typeof e?{name:e,deep:!0,proxy:!0}:e}Object.freeze(pe);const be=de(he),ve=de(function(e,t,n){return null==e?e:rn(e)||Ft(e)||qt(e)||$t(e)?e:Array.isArray(e)?Ce.array(e,{name:n,deep:!1}):Y(e)?Ce.object(e,void 0,{name:n,deep:!1}):J(e)?Ce.map(e,{name:n,deep:!1}):Q(e)?Ce.set(e,{name:n,deep:!1}):H(!1)}),ye=de(fe),me=de(function(e,t,n){return un(e,t)?t:e});function xe(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?fe:he}const we={box(e,t){arguments.length>2&&Se("box");const n=ge(t);return new Oe(e,xe(n),n.name,!0,n.equals)},array(e,t){arguments.length>2&&Se("array");const n=ge(t);return function(e,t,n="ObservableArray@"+U(),r=!1){const i=new Gt(n,t,r);o=i.values,a=ee,s=i,Object.defineProperty(o,a,{enumerable:!1,writable:!1,configurable:!0,value:s});var o,a,s;const u=new Proxy(i.values,Et);if(i.proxy=u,e&&e.length){const t=_e(!0);i.spliceWithArray(0,0,e),De(t)}return u}(e,xe(n),n.name)},map(e,t){arguments.length>2&&Se("map");const n=ge(t);return new Vt(e,xe(n),n.name)},set(e,t){arguments.length>2&&Se("set");const n=ge(t);return new Zt(e,xe(n),n.name)},object(e,t,n){"string"==typeof arguments[1]&&Se("object");const r=ge(n);if(!1===r.proxy)return wt({},e,t,r);{const n=Ct(r),i=function(e){const t=new Proxy(e,Lt);return e[ee].proxy=t,t}(wt({},void 0,void 0,r));return St(i,e,t,n),i}},ref:ye,shallow:ve,deep:be,struct:me},Ce=function(e,t,n){if("string"==typeof arguments[1])return be.apply(null,arguments);if(zt(e))return e;const r=Y(e)?Ce.object(e,t,n):Array.isArray(e)?Ce.array(e,t):J(e)?Ce.map(e,t):Q(e)?Ce.set(e,t):e;if(r!==e)return r;H(!1)};function Se(e){H(`Expected one or two arguments to observable.${e}. Did you accidentally try to use observable.${e} as decorator?`)}Object.keys(we).forEach(e=>Ce[e]=we[e]);const Te=ce(!1,(e,t,n,r,i)=>{const{get:o,set:a}=n,s=i[0]||{};Qt(e).addComputedProp(e,t,Object.assign({get:o,set:a,context:e},s))}),Me=Te({equals:ie.structural}),ze=function(e,t,n){if("string"==typeof t)return Te.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return Te.apply(null,arguments);const r="object"==typeof t?t:{};return r.get=e,r.set="function"==typeof t?t:r.set,r.name=r.name||e.name||"",new Ae(r)};function ke(e,t,n){const r=function(){return je(e,t,n||this,arguments)};return r.isMobxAction=!0,r}function je(e,t,n,r){const i=function(e,t,n,r){const i=!1;let o=0;0;const a=We();rt();const s=_e(!0);return{prevDerivation:a,prevAllowStateChanges:s,notifySpy:i,startTime:o}}();let o=!0;try{const e=t.apply(n,r);return o=!1,e}finally{o?(Je.suppressReactionErrors=o,Le(i),Je.suppressReactionErrors=!1):Le(i)}}function Le(e){De(e.prevAllowStateChanges),it(),qe(e.prevDerivation),e.notifySpy}function _e(e){const t=Je.allowStateChanges;return Je.allowStateChanges=e,t}function De(e){Je.allowStateChanges=e}ze.struct=Me;class Oe extends te{constructor(e,t,n="ObservableValue@"+U(),r=!0,i=ie.default){super(n),this.enhancer=t,this.name=n,this.equals=i,this.hasUnreportedChange=!1,this.value=t(e,void 0,n)}dehanceValue(e){return void 0!==this.dehancer?this.dehancer(e):e}set(e){this.value;if((e=this.prepareNewValue(e))!==Je.UNCHANGED){0,this.setNewValue(e)}}prepareNewValue(e){if(Fe(this),_t(this)){const t=Ot(this,{object:this,type:"update",newValue:e});if(!t)return Je.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Je.UNCHANGED:e}setNewValue(e){const t=this.value;this.value=e,this.reportChanged(),At(this)&&Nt(this,{type:"update",object:this,newValue:e,oldValue:t})}get(){return this.reportObserved(),this.dehanceValue(this.value)}intercept(e){return Dt(this,e)}observe(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),It(this,e)}toJSON(){return this.get()}toString(){return`${this.name}[${this.value}]`}valueOf(){return X(this.get())}[Symbol.toPrimitive](){return this.valueOf()}}$("ObservableValue",Oe);class Ae{constructor(e){this.dependenciesState=Ne.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Ne.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+U(),this.value=new Ge(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Ee.NONE,this.derivation=e.get,this.name=e.name||"ComputedValue@"+U(),e.set&&(this.setter=ke(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?ie.structural:ie.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}onBecomeStale(){!function(e){if(e.lowestObserverState!==Ne.UP_TO_DATE)return;e.lowestObserverState=Ne.POSSIBLY_STALE,e.observers.forEach(t=>{t.dependenciesState===Ne.UP_TO_DATE&&(t.dependenciesState=Ne.POSSIBLY_STALE,t.isTracing!==Ee.NONE&&at(t,e),t.onBecomeStale())})}(this)}onBecomeObserved(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(e=>e())}onBecomeUnobserved(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(e=>e())}get(){this.isComputing&&H(`Cycle detected in computation ${this.name}: ${this.derivation}`),0!==Je.inBatch||0!==this.observers.size||this.keepAlive?(ot(this),Re(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===Ne.STALE)return;e.lowestObserverState=Ne.STALE,e.observers.forEach(t=>{t.dependenciesState===Ne.POSSIBLY_STALE?t.dependenciesState=Ne.STALE:t.dependenciesState===Ne.UP_TO_DATE&&(e.lowestObserverState=Ne.UP_TO_DATE)})}(this)):Re(this)&&(this.warnAboutUntrackedRead(),rt(),this.value=this.computeValue(!1),it());const e=this.value;if(Be(e))throw e.cause;return e}peek(){const e=this.computeValue(!1);if(Be(e))throw e.cause;return e}set(e){if(this.setter){V(!this.isRunningSetter,`The setter of computed value '${this.name}' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?`),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else V(!1,!1)}trackAndCompute(){const e=this.value,t=this.dependenciesState===Ne.NOT_TRACKING,n=this.computeValue(!0),r=t||Be(e)||Be(n)||!this.equals(e,n);return r&&(this.value=n),r}computeValue(e){let t;if(this.isComputing=!0,Je.computationDepth++,e)t=Ue(this,this.derivation,this.scope);else if(!0===Je.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(n){t=new Ge(n)}return Je.computationDepth--,this.isComputing=!1,t}suspend(){this.keepAlive||(He(this),this.value=void 0)}observe(e,t){let n=!0,r=void 0;return vt(()=>{let i=this.get();if(!n||t){const t=We();e({type:"update",object:this,newValue:i,oldValue:r}),qe(t)}n=!1,r=i})}warnAboutUntrackedRead(){}toJSON(){return this.get()}toString(){return`${this.name}[${this.derivation.toString()}]`}valueOf(){return X(this.get())}[Symbol.toPrimitive](){return this.valueOf()}}const Ie=$("ComputedValue",Ae);var Ne,Pe,Ee;(Pe=Ne||(Ne={}))[Pe.NOT_TRACKING=-1]="NOT_TRACKING",Pe[Pe.UP_TO_DATE=0]="UP_TO_DATE",Pe[Pe.POSSIBLY_STALE=1]="POSSIBLY_STALE",Pe[Pe.STALE=2]="STALE",function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Ee||(Ee={}));class Ge{constructor(e){this.cause=e}}function Be(e){return e instanceof Ge}function Re(e){switch(e.dependenciesState){case Ne.UP_TO_DATE:return!1;case Ne.NOT_TRACKING:case Ne.STALE:return!0;case Ne.POSSIBLY_STALE:{const n=We(),r=e.observing,i=r.length;for(let o=0;o0;Je.computationDepth>0&&t&&H(!1),Je.allowStateChanges||!t&&"strict"!==Je.enforceActions||H(!1)}function Ue(e,t,n){Ke(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Je.runId;const r=Je.trackingDerivation;let i;if(Je.trackingDerivation=e,!0===Je.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(o){i=new Ge(o)}return Je.trackingDerivation=r,function(e){const t=e.observing,n=e.observing=e.newObserving;let r=Ne.UP_TO_DATE,i=0,o=e.unboundDepsCount;for(let a=0;ar&&(r=e.dependenciesState)}n.length=i,e.newObserving=null,o=t.length;for(;o--;){const n=t[o];0===n.diffValue&&tt(n,e),n.diffValue=0}for(;i--;){const t=n[i];1===t.diffValue&&(t.diffValue=0,et(t,e))}r!==Ne.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),i}function He(e){const t=e.observing;e.observing=[];let n=t.length;for(;n--;)tt(t[n],e);e.dependenciesState=Ne.NOT_TRACKING}function Ve(e){const t=We();try{return e()}finally{qe(t)}}function We(){const e=Je.trackingDerivation;return Je.trackingDerivation=null,e}function qe(e){Je.trackingDerivation=e}function Ke(e){if(e.dependenciesState===Ne.UP_TO_DATE)return;e.dependenciesState=Ne.UP_TO_DATE;const t=e.observing;let n=t.length;for(;n--;)t[n].lowestObserverState=Ne.UP_TO_DATE}class Ye{constructor(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}}let Ze=!0,$e=!1,Je=function(){const e=Xe();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Ze=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Ye).version&&(Ze=!1),Ze?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Ye):(setTimeout(()=>{$e||H("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Ye)}();function Qe(){return Je}function Xe(){return"undefined"!=typeof window?window:void 0}function et(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function tt(e,t){e.observers.delete(t),0===e.observers.size&&nt(e)}function nt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Je.pendingUnobservations.push(e))}function rt(){Je.inBatch++}function it(){if(0==--Je.inBatch){ct();const e=Je.pendingUnobservations;for(let t=0;t0&&nt(e),!1)}function at(e,t){if(console.log(`[mobx.trace] '${e.name}' is invalidated due to a change in: '${t.name}'`),e.isTracing===Ee.BREAK){const i=[];!function e(t,n,r){if(n.length>=1e3)return void n.push("(and many more)");n.push(`${new Array(r).join("\t")}${t.name}`);t.dependencies&&t.dependencies.forEach(t=>e(t,n,r+1))}((n=e,Tt(on(n,r))),i,1),new Function(`debugger;\n/*\nTracing '${e.name}'\n\nYou are entering this break point because derivation '${e.name}' is being traced and '${t.name}' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n${e instanceof Ae?e.derivation.toString().replace(/[*]\//g,"/"):""}\n\nThe dependencies for this derivation are:\n\n${i.join("\n")}\n*/\n `)()}var n,r}class st{constructor(e="Reaction@"+U(),t,n){this.name=e,this.onInvalidate=t,this.errorHandler=n,this.observing=[],this.newObserving=[],this.dependenciesState=Ne.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+U(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Ee.NONE}onBecomeStale(){this.schedule()}schedule(){this._isScheduled||(this._isScheduled=!0,Je.pendingReactions.push(this),ct())}isScheduled(){return this._isScheduled}runReaction(){if(!this.isDisposed){if(rt(),this._isScheduled=!1,Re(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(e){this.reportExceptionInDerivation(e)}}it()}}track(e){this.isDisposed&&H("Reaction already disposed"),rt();this._isRunning=!0;const t=Ue(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&He(this),Be(t)&&this.reportExceptionInDerivation(t.cause),it()}reportExceptionInDerivation(e){if(this.errorHandler)return void this.errorHandler(e,this);if(Je.disableErrorBoundaries)throw e;const t=`[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '${this}'`;Je.suppressReactionErrors?console.warn(`[mobx] (error in reaction '${this.name}' suppressed, fix error of causing action below)`):console.error(t,e),Je.globalReactionErrorHandlers.forEach(t=>t(e,this))}dispose(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(rt(),He(this),it()))}getDisposer(){const e=this.dispose.bind(this);return e[ee]=this,e}toString(){return`Reaction[${this.name}]`}trace(e=!1){!function(...e){let t=!1;"boolean"==typeof e[e.length-1]&&(t=e.pop());const n=function(e){switch(e.length){case 0:return Je.trackingDerivation;case 1:return on(e[0]);case 2:return on(e[0],e[1])}}(e);if(!n)return H(!1);n.isTracing===Ee.NONE&&console.log(`[mobx.trace] '${n.name}' tracing enabled`);n.isTracing=t?Ee.BREAK:Ee.LOG}(this,e)}}const ut=100;let lt=e=>e();function ct(){Je.inBatch>0||Je.isRunningReactions||lt(ht)}function ht(){Je.isRunningReactions=!0;const e=Je.pendingReactions;let t=0;for(;e.length>0;){++t===ut&&(console.error(`Reaction doesn't converge to a stable state after ${ut} iterations.`+` Probably there is a cycle in the reactive function: ${e[0]}`),e.splice(0));let n=e.splice(0);for(let e=0,t=n.length;e",e):2===arguments.length&&"function"==typeof t?ke(e,t):1===arguments.length&&"string"==typeof e?pt(e):!0!==r?pt(t).apply(null,arguments):void Z(e,t,ke(e.name||t,n.value,this))};function bt(e,t,n){Z(e,t,ke(t,n.bind(e)))}function vt(e,t=F){const n=t&&t.name||e.name||"Autorun@"+U();let r;if(!t.scheduler&&!t.delay)r=new st(n,function(){this.track(i)},t.onError);else{const e=mt(t);let o=!1;r=new st(n,()=>{o||(o=!0,e(()=>{o=!1,r.isDisposed||r.track(i)}))},t.onError)}function i(){e(r)}return r.schedule(),r.getDisposer()}gt.bound=function(e,t,n,r){return!0===r?(bt(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get(){return bt(this,t,n.value||n.initializer.call(this)),this[t]},set:dt}:{enumerable:!1,configurable:!0,set(e){bt(this,t,e)},get(){}}};const yt=e=>e();function mt(e){return e.scheduler?e.scheduler:e.delay?t=>setTimeout(t,e.delay):yt}function xt(e,t,n,r){const i="string"==typeof n?on(t,n):on(t),o="string"==typeof n?r:n,a=`${e}Listeners`;return i[a]?i[a].add(o):i[a]=new Set([o]),"function"!=typeof i[e]?H(!1):function(){const e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}function wt(e,t,n,r){const i=Ct(r=ge(r));return le(e),Qt(e,r.name,i.enhancer),t&&St(e,t,n,i),e}function Ct(e){return e.defaultDecorator||(!1===e.deep?ye:be)}function St(e,t,n,r){rt();try{for(let i in t){const o=Object.getOwnPropertyDescriptor(t,i);0;const a=(n&&i in n?n[i]:o.get?Te:r)(e,i,o,!0);a&&Object.defineProperty(e,i,a)}}finally{it()}}function Tt(e){const t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=function(e){const t=[];return e.forEach(e=>{-1===t.indexOf(e)&&t.push(e)}),t}(e.observing).map(Tt)),t}function Mt(e,t){return null!=e&&(void 0!==t?!!rn(e)&&e[ee].values.has(t):rn(e)||!!e[ee]||ne(e)||ft(e)||Ie(e))}function zt(e){return 1!==arguments.length&&H(!1),Mt(e)}function kt(e,t){rt();try{return e.apply(t)}finally{it()}}function jt(e){return e[ee]}const Lt={has(e,t){if(t===ee||"constructor"===t||t===oe)return!0;const n=jt(e);return"string"==typeof t?n.has(t):t in e},get(e,t){if(t===ee||"constructor"===t||t===oe)return e[t];const n=jt(e),r=n.values.get(t);if(r instanceof te){const e=r.get();return void 0===e&&n.has(t),e}return"string"==typeof t&&n.has(t),e[t]},set:(e,t,n)=>"string"==typeof t&&(function e(t,n,r){if(2!==arguments.length)if(rn(t)){const e=t[ee];e.values.get(n)?e.write(n,r):e.addObservableProp(n,r,e.defaultEnhancer)}else if(qt(t))t.set(n,r);else{if(!Ft(t))return H(!1);"number"!=typeof n&&(n=parseInt(n,10)),V(n>=0,`Not a valid index: '${n}'`),rt(),n>=t.length&&(t.length=n+1),t[n]=r,it()}else{rt();const r=n;try{for(let n in r)e(t,n,r[n])}finally{it()}}}(e,t,n),!0),deleteProperty(e,t){if("string"!=typeof t)return!1;return jt(e).remove(t),!0},ownKeys:e=>(jt(e).keysAtom.reportObserved(),Reflect.ownKeys(e)),preventExtensions:e=>(H("Dynamic observable objects cannot be frozen"),!1)};function _t(e){return void 0!==e.interceptors&&e.interceptors.length>0}function Dt(e,t){const n=e.interceptors||(e.interceptors=[]);return n.push(t),W(()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Ot(e,t){const n=We();try{const r=e.interceptors;if(r)for(let e=0,n=r.length;e0}function It(e,t){const n=e.changeListeners||(e.changeListeners=[]);return n.push(t),W(()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Nt(e,t){const n=We();let r=e.changeListeners;if(r){for(let e=0,n=(r=r.slice()).length;et===ee?e[ee]:"length"===t?e[ee].getArrayLength():"number"==typeof t?Bt.get.call(e,t):"string"!=typeof t||isNaN(t)?Bt.hasOwnProperty(t)?Bt[t]:e[t]:Bt.get.call(e,parseInt(t)),set:(e,t,n)=>"length"===t?(e[ee].setArrayLength(n),!0):"number"==typeof t?(Bt.set.call(e,t,n),!0):!isNaN(t)&&(Bt.set.call(e,parseInt(t),n),!0),preventExtensions:e=>(H("Observable arrays cannot be frozen"),!1)};class Gt{constructor(e,t,n){this.owned=n,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new te(e||"ObservableArray@"+U()),this.enhancer=((n,r)=>t(n,r,e+"[..]"))}dehanceValue(e){return void 0!==this.dehancer?this.dehancer(e):e}dehanceValues(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e}intercept(e){return Dt(this,e)}observe(e,t=!1){return t&&e({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),It(this,e)}getArrayLength(){return this.atom.reportObserved(),this.values.length}setArrayLength(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);let t=this.values.length;if(e!==t)if(e>t){const n=new Array(e-t);for(let r=0;rr?e=r:e<0&&(e=Math.max(0,r+e)),t=1===arguments.length?r-e:null==t?0:Math.max(0,Math.min(t,r-e)),void 0===n&&(n=R),_t(this)){const r=Ot(this,{object:this.proxy,type:"splice",index:e,removedCount:t,added:n});if(!r)return R;t=r.removedCount,n=r.added}n=0===n.length?n:n.map(e=>this.enhancer(e,void 0));const i=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,i),this.dehanceValues(i)}spliceItemsIntoValues(e,t,n){if(n.length-1&&(this.splice(n,1),!0)},get(e){const t=this[ee];if(t){if(e{Bt[e]=function(){const t=this[ee];t.atom.reportObserved();const n=t.dehanceValues(t.values);return n[e].apply(n,arguments)}});const Rt=$("ObservableArrayAdministration",Gt);function Ft(e){return K(e)&&Rt(e[ee])}var Ut;const Ht={};class Vt{constructor(e,t=he,n="ObservableMap@"+U()){if(this.enhancer=t,this.name=n,this[Ut]=Ht,this._keysAtom=re(`${this.name}.keys()`),this[Symbol.toStringTag]="Map","function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}_has(e){return this._data.has(e)}has(e){return this._hasMap.has(e)?this._hasMap.get(e).get():this._updateHasMapEntry(e,!1).get()}set(e,t){const n=this._has(e);if(_t(this)){const r=Ot(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this}delete(e){if(_t(this)){if(!Ot(this,{type:"delete",object:this,name:e}))return!1}if(this._has(e)){const t=!1,n=At(this),r=n||t?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return kt(()=>{this._keysAtom.reportChanged(),this._updateHasMapEntry(e,!1),this._data.get(e).setNewValue(void 0),this._data.delete(e)}),n&&Nt(this,r),!0}return!1}_updateHasMapEntry(e,t){let n=this._hasMap.get(e);return n?n.setNewValue(t):(n=new Oe(t,fe,`${this.name}.${Wt(e)}?`,!1),this._hasMap.set(e,n)),n}_updateValue(e,t){const n=this._data.get(e);if((t=n.prepareNewValue(t))!==Je.UNCHANGED){const r=!1,i=At(this),o=i||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;0,n.setNewValue(t),i&&Nt(this,o)}}_addValue(e,t){Fe(this._keysAtom),kt(()=>{const n=new Oe(t,this.enhancer,`${this.name}.${Wt(e)}`,!1);this._data.set(e,n),t=n.value,this._updateHasMapEntry(e,!0),this._keysAtom.reportChanged()});const n=At(this),r=n?{type:"add",object:this,name:e,newValue:t}:null;n&&Nt(this,r)}get(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)}dehanceValue(e){return void 0!==this.dehancer?this.dehancer(e):e}keys(){return this._keysAtom.reportObserved(),this._data.keys()}values(){const e=this;let t=0;const n=Array.from(this.keys());return fn({next:()=>t{Y(e)?Object.keys(e).forEach(t=>this.set(t,e[t])):Array.isArray(e)?e.forEach(([e,t])=>this.set(e,t)):J(e)?(e.constructor!==Map&&H("Cannot initialize from classes that inherit from Map: "+e.constructor.name),e.forEach((e,t)=>this.set(t,e))):null!=e&&H("Cannot initialize map from "+e)}),this}clear(){kt(()=>{Ve(()=>{for(const e of this.keys())this.delete(e)})})}replace(e){return kt(()=>{const t=function(e){return Y(e)?Object.keys(e):Array.isArray(e)?e.map(([e])=>e):J(e)||qt(e)?Array.from(e.keys()):H(`Cannot get keys from '${e}'`)}(e);Array.from(this.keys()).filter(e=>-1===t.indexOf(e)).forEach(e=>this.delete(e)),this.merge(e)}),this}get size(){return this._keysAtom.reportObserved(),this._data.size}toPOJO(){const e={};for(const[t,n]of this)e["symbol"==typeof t?t:Wt(t)]=n;return e}toJS(){return new Map(this)}toJSON(){return this.toPOJO()}toString(){return this.name+"[{ "+Array.from(this.keys()).map(e=>`${Wt(e)}: ${""+this.get(e)}`).join(", ")+" }]"}observe(e,t){return It(this,e)}intercept(e){return Dt(this,e)}}function Wt(e){return e&&e.toString?e.toString():new String(e).toString()}const qt=$("ObservableMap",Vt);var Kt;const Yt={};class Zt{constructor(e,t=he,n="ObservableSet@"+U()){if(this.name=n,this[Kt]=Yt,this._data=new Set,this._atom=re(this.name),this[Symbol.toStringTag]="Set","function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=((e,r)=>t(e,r,n)),e&&this.replace(e)}dehanceValue(e){return void 0!==this.dehancer?this.dehancer(e):e}clear(){kt(()=>{Ve(()=>{for(const e of this._data.values())this.delete(e)})})}forEach(e,t){for(const n of this)e.call(t,n,n,this)}get size(){return this._atom.reportObserved(),this._data.size}add(e){if(Fe(this._atom),_t(this)){if(!Ot(this,{type:"add",object:this,newValue:e}))return this}if(!this.has(e)){kt(()=>{this._data.add(this.enhancer(e,void 0)),this._atom.reportChanged()});const t=!1,n=At(this),r=n||t?{type:"add",object:this,newValue:e}:null;0,n&&Nt(this,r)}return this}delete(e){if(_t(this)){if(!Ot(this,{type:"delete",object:this,oldValue:e}))return!1}if(this.has(e)){const t=!1,n=At(this),r=n||t?{type:"delete",object:this,oldValue:e}:null;return kt(()=>{this._atom.reportChanged(),this._data.delete(e)}),n&&Nt(this,r),!0}return!1}has(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))}entries(){let e=0;const t=Array.from(this.keys()),n=Array.from(this.values());return fn({next(){const r=e;return e+=1,rt{Array.isArray(e)?(this.clear(),e.forEach(e=>this.add(e))):Q(e)?(this.clear(),e.forEach(e=>this.add(e))):null!=e&&H("Cannot initialize set from "+e)}),this}observe(e,t){return It(this,e)}intercept(e){return Dt(this,e)}toJS(){return new Set(this)}toString(){return this.name+"[ "+Array.from(this).join(", ")+" ]"}[(Kt=ee,Symbol.iterator)](){return this.values()}}const $t=$("ObservableSet",Zt);class Jt{constructor(e,t=new Map,n,r){this.target=e,this.values=t,this.name=n,this.defaultEnhancer=r,this.keysAtom=new te(n+".keys")}read(e){return this.values.get(e).get()}write(e,t){const n=this.target,r=this.values.get(e);if(r instanceof Ae)r.set(t);else{if(_t(this)){const r=Ot(this,{type:"update",object:this.proxy||n,name:e,newValue:t});if(!r)return;t=r.newValue}if((t=r.prepareNewValue(t))!==Je.UNCHANGED){const i=At(this),o=!1,a=i||o?{type:"update",object:this.proxy||n,oldValue:r.value,name:e,newValue:t}:null;0,r.setNewValue(t),i&&Nt(this,a)}}}has(e){const t=this.pendingKeys||(this.pendingKeys=new Map);let n=t.get(e);if(n)return n.get();{const r=!!this.values.get(e);return n=new Oe(r,fe,`${this.name}.${e.toString()}?`,!1),t.set(e,n),n.get()}}addObservableProp(e,t,n=this.defaultEnhancer){const{target:r}=this;if(_t(this)){const n=Ot(this,{object:this.proxy||r,name:e,type:"add",newValue:t});if(!n)return;t=n.newValue}const i=new Oe(t,n,`${this.name}.${e}`,!1);this.values.set(e,i),t=i.value,Object.defineProperty(r,e,function(e){return Xt[e]||(Xt[e]={configurable:!0,enumerable:!0,get(){return this[ee].read(e)},set(t){this[ee].write(e,t)}})}(e)),this.notifyPropertyAddition(e,t)}addComputedProp(e,t,n){const{target:r}=this;n.name=n.name||`${this.name}.${t}`,this.values.set(t,new Ae(n)),(e===r||function(e,t){const n=Object.getOwnPropertyDescriptor(e,t);return!n||!1!==n.configurable&&!1!==n.writable}(e,t))&&Object.defineProperty(e,t,function(e){return en[e]||(en[e]={configurable:!1,enumerable:!1,get(){return tn(this).read(e)},set(t){tn(this).write(e,t)}})}(t))}remove(e){if(!this.values.has(e))return;const{target:t}=this;if(_t(this)){if(!Ot(this,{object:this.proxy||t,name:e,type:"remove"}))return}try{rt();const n=At(this),r=!1,i=this.values.get(e),o=i&&i.get();if(i&&i.set(void 0),this.keysAtom.reportChanged(),this.values.delete(e),this.pendingKeys){const t=this.pendingKeys.get(e);t&&t.set(!1)}delete this.target[e];const a=n||r?{type:"remove",object:this.proxy||t,oldValue:o,name:e}:null;0,n&&Nt(this,a)}finally{it()}}illegalAccess(e,t){console.warn(`Property '${t}' of '${e}' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner`)}observe(e,t){return It(this,e)}intercept(e){return Dt(this,e)}notifyPropertyAddition(e,t){const n=At(this),r=n?{type:"add",object:this.proxy||this.target,name:e,newValue:t}:null;if(n&&Nt(this,r),this.pendingKeys){const t=this.pendingKeys.get(e);t&&t.set(!0)}this.keysAtom.reportChanged()}getKeys(){this.keysAtom.reportObserved();const e=[];for(const[t,n]of this.values)n instanceof Oe&&e.push(t);return e}}function Qt(e,t="",n=he){if(Object.prototype.hasOwnProperty.call(e,ee))return e[ee];Y(e)||(t=(e.constructor.name||"ObservableObject")+"@"+U()),t||(t="ObservableObject@"+U());const r=new Jt(e,new Map,t,n);return Z(e,ee,r),r}const Xt=Object.create(null),en=Object.create(null);function tn(e){const t=e[ee];return t||(le(e),e[ee])}const nn=$("ObservableObjectAdministration",Jt);function rn(e){return!!K(e)&&(le(e),nn(e[ee]))}function on(e,t){if("object"==typeof e&&null!==e){if(Ft(e))return void 0!==t&&H(!1),e[ee].atom;if($t(e))return e[ee];if(qt(e)){const n=e;if(void 0===t)return n._keysAtom;const r=n._data.get(t)||n._hasMap.get(t);return r||H(!1),r}if(le(e),t&&!e[ee]&&e[t],rn(e)){if(!t)return H(!1);const n=e[ee].values.get(t);return n||H(!1),n}if(ne(e)||Ie(e)||ft(e))return e}else if("function"==typeof e&&ft(e[ee]))return e[ee];return H(!1)}function an(e,t){return e||H("Expecting some object"),void 0!==t?an(on(e,t)):ne(e)||Ie(e)||ft(e)?e:qt(e)||$t(e)?e:(le(e),e[ee]?e[ee]:void H(!1))}const sn=Object.prototype.toString;function un(e,t){return ln(e,t)}function ln(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;const i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&function(e,t,n,r){e=cn(e),t=cn(t);const i=sn.call(e);if(i!==sn.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}const o="[object Array]"===i;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;const n=e.constructor,r=t.constructor;if(n!==r&&!("function"==typeof n&&n instanceof n&&"function"==typeof r&&r instanceof r)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];let a=(n=n||[]).length;for(;a--;)if(n[a]===e)return r[a]===t;if(n.push(e),r.push(t),o){if((a=e.length)!==t.length)return!1;for(;a--;)if(!ln(e[a],t[a],n,r))return!1}else{const i=Object.keys(e);let o;if(a=i.length,Object.keys(t).length!==a)return!1;for(;a--;)if(o=i[a],!hn(t,o)||!ln(e[o],t[o],n,r))return!1}return n.pop(),r.pop(),!0}(e,t,n,r)}function cn(e){return Ft(e)?e.slice():J(e)||qt(e)?Array.from(e.entries()):Q(e)||$t(e)?Array.from(e.entries()):e}function hn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function fn(e){return e[Symbol.iterator]=dn,e}function dn(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");function pn(e){return"number"==typeof e.parsedSize}function gn(e,t){for(const n of e){if(!1===t(n))return!1;if(n.groups&&!1===gn(n.groups,t))return!1}}var bn,vn,yn,mn,xn,wn,Cn,Sn,Tn;"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:function(e,t){let n;return(n=void 0!==t?on(e,t):rn(e)||qt(e)||$t(e)?an(e):on(e)).name}},$mobx:ee});const Mn=new(bn=Ce.ref,vn=Ce.shallow,mn=G((yn=class{constructor(){this.cid=0,this.sizes=new Set(["statSize","parsedSize","gzipSize"]),E(this,"allChunks",mn,this),E(this,"selectedChunks",xn,this),E(this,"searchQuery",wn,this),E(this,"defaultSize",Cn,this),E(this,"selectedSize",Sn,this),E(this,"showConcatenatedModulesContent",Tn,this)}setModules(e){gn(e,e=>{e.cid=this.cid++}),this.allChunks=e,this.selectedChunks=this.allChunks}get hasParsedSizes(){return this.allChunks.some(pn)}get activeSize(){const e=this.selectedSize||this.defaultSize;return this.hasParsedSizes&&this.sizes.has(e)?e:"statSize"}get visibleChunks(){const e=this.allChunks.filter(e=>this.selectedChunks.includes(e));return this.filterModulesForSize(e,this.activeSize)}get allChunksSelected(){return this.visibleChunks.length===this.allChunks.length}get totalChunksSize(){return this.allChunks.reduce((e,t)=>e+(t[this.activeSize]||0),0)}get searchQueryRegexp(){const e=this.searchQuery.trim();if(!e)return null;try{return new RegExp(e,"iu")}catch(t){return null}}get isSearching(){return!!this.searchQueryRegexp}get foundModulesByChunk(){if(!this.isSearching)return[];const e=this.searchQueryRegexp;return this.visibleChunks.map(t=>{let n=[];gn(t.groups,t=>{let r=0;if(e.test(t.label)?r+=3:t.path&&e.test(t.path)&&r++,!r)return;t.groups||(r+=1),(n[r-1]=n[r-1]||[]).push(t)});const{activeSize:r}=this;return(n=n.filter(Boolean).reverse()).forEach(e=>e.sort((e,t)=>t[r]-e[r])),{chunk:t,modules:[].concat(...n)}}).filter(e=>e.modules.length>0).sort((e,t)=>e.modules.length-t.modules.length)}get foundModules(){return this.foundModulesByChunk.reduce((e,t)=>e.concat(t.modules),[])}get hasFoundModules(){return this.foundModules.length>0}get hasConcatenatedModules(){let e=!1;return gn(this.visibleChunks,t=>{if(t.concatenated)return e=!0,!1}),e}get foundModulesSize(){return this.foundModules.reduce((e,t)=>e+t[this.activeSize],0)}filterModulesForSize(e,t){return e.reduce((e,n)=>{if(n[t]){if(n.groups){const e=!n.concatenated||this.showConcatenatedModulesContent;n={...n,groups:e?this.filterModulesForSize(n.groups,t):null}}n.weight=n[t],e.push(n)}return e},[])}}).prototype,"allChunks",[bn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xn=G(yn.prototype,"selectedChunks",[vn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wn=G(yn.prototype,"searchQuery",[Ce],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Cn=G(yn.prototype,"defaultSize",[Ce],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Sn=G(yn.prototype,"selectedSize",[Ce],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tn=G(yn.prototype,"showConcatenatedModulesContent",[Ce],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),G(yn.prototype,"hasParsedSizes",[ze],Object.getOwnPropertyDescriptor(yn.prototype,"hasParsedSizes"),yn.prototype),G(yn.prototype,"activeSize",[ze],Object.getOwnPropertyDescriptor(yn.prototype,"activeSize"),yn.prototype),G(yn.prototype,"visibleChunks",[ze],Object.getOwnPropertyDescriptor(yn.prototype,"visibleChunks"),yn.prototype),G(yn.prototype,"allChunksSelected",[ze],Object.getOwnPropertyDescriptor(yn.prototype,"allChunksSelected"),yn.prototype),G(yn.prototype,"totalChunksSize",[ze],Object.getOwnPropertyDescriptor(yn.prototype,"totalChunksSize"),yn.prototype),G(yn.prototype,"searchQueryRegexp",[ze],Object.getOwnPropertyDescriptor(yn.prototype,"searchQueryRegexp"),yn.prototype),G(yn.prototype,"isSearching",[ze],Object.getOwnPropertyDescriptor(yn.prototype,"isSearching"),yn.prototype),G(yn.prototype,"foundModulesByChunk",[ze],Object.getOwnPropertyDescriptor(yn.prototype,"foundModulesByChunk"),yn.prototype),G(yn.prototype,"foundModules",[ze],Object.getOwnPropertyDescriptor(yn.prototype,"foundModules"),yn.prototype),G(yn.prototype,"hasFoundModules",[ze],Object.getOwnPropertyDescriptor(yn.prototype,"hasFoundModules"),yn.prototype),G(yn.prototype,"hasConcatenatedModules",[ze],Object.getOwnPropertyDescriptor(yn.prototype,"hasConcatenatedModules"),yn.prototype),G(yn.prototype,"foundModulesSize",[ze],Object.getOwnPropertyDescriptor(yn.prototype,"foundModulesSize"),yn.prototype),yn);var zn=n(5),kn=n.n(zn);function jn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.prefix,r=void 0===n?"":n,i=t.suffix,o=void 0===i?"":i;return r+(e.displayName||e.name||e.constructor&&e.constructor.name||"")+o}var Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_n=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Dn=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=e[t],i=Bn[t],o=r?!0===n?function(){i.apply(this,arguments),r.apply(this,arguments)}:function(){r.apply(this,arguments),i.apply(this,arguments)}:i;e[t]=o}function Gn(e,t){if(null==e||null==t||"object"!==(void 0===e?"undefined":Ln(e))||"object"!==(void 0===t?"undefined":Ln(t)))return e!==t;var n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(var r=void 0,i=n.length-1;r=n[i];i--)if(t[r]!==e[r])return!0;return!1}var Bn={componentWillMount:function(){var e=this;if(!0!==In){var t=jn(this),n=!1,r=!1;u.call(this,"props"),u.call(this,"state");var i=this.render.bind(this),o=null,a=!1,s=function(e,t,n){a=!1;var r=void 0,s=void 0;if(o.track(function(){try{s=Pn(!1,i,e,t,n)}catch(o){r=o}}),r)throw r;return s};this.render=function(){return(o=new st(t+".render()",function(){if(!a&&(a=!0,"function"==typeof e.componentWillReact&&e.componentWillReact(),!0!==e.__$mobxIsUnmounted)){var t=!0;try{r=!0,n||N.prototype.forceUpdate.call(e),t=!1}finally{r=!1,t&&o.dispose()}}})).reactComponent=e,s.$mobx=o,e.render=s,s(e.props,e.state,e.context)}}function u(e){var t=this[e],i=re("reactive "+e);Object.defineProperty(this,e,{configurable:!0,enumerable:!0,get:function(){return i.reportObserved(),t},set:function(e){!r&&Gn(t,e)?(t=e,n=!0,i.reportChanged(),n=!1):t=e}})}},componentWillUnmount:function(){!0!==In&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0)},componentDidMount:function(){},componentDidUpdate:function(){},shouldComponentUpdate:function(e,t){return In&&Nn.warn("[mobx-preact] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||Gn(this.props,e)}};function Rn(e){var t,n,r;if(arguments.length>1&&Nn.warn('Mobx observer: Using observer to inject stores is not supported. Use `@connect(["store1", "store2"]) ComponentClass instead or preferably, use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))``'),!0===e.isMobxInjector&&Nn.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),!((r=e).prototype&&r.prototype.render||N.isPrototypeOf(r)))return Rn((n=t=function(t){function n(){return _n(this,n),An(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return On(n,N),Dn(n,[{key:"render",value:function(){return e.call(this,this.props,this.context)}}]),n}(),t.displayName=jn(e),n));if(!e)throw new Error("Please pass a valid component to 'observer'");return function(e){En(e,"componentWillMount",!0),En(e,"componentDidMount"),e.shouldComponentUpdate||(e.shouldComponentUpdate=Bn.shouldComponentUpdate)}(e.prototype||e),e.isMobXReactObserver=!0,e}Rn(function(e){return e.children[0]()}).displayName="Observer";"undefined"!=typeof window?window:"undefined"!=typeof self&&self;!function(e,t){e(t={exports:{}},t.exports)}(function(e,t){ /** * Copyright 2015, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */var n,r,i,o,a,s,u,l;e.exports=(n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,o=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,s=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,l=u&&u(Object),function e(t,c,h){if("string"!=typeof c){if(l){var f=u(c);f&&f!==l&&e(t,f,h)}var d=o(c);a&&(d=d.concat(a(c)));for(var p=0;p1?s("div",null," ",t," "):t[0]}},{key:"getChildContext",value:function(){var e={},t=this.context.mobxStores;if(t)for(var n in t)e[n]=t[n];for(var r in this.props)Fn[r]||"suppressChangedStoreWarning"===r||(e[r]=this.props[r]);return{mobxStores:e}}},{key:"componentWillReceiveProps",value:function(e){if(Object.keys(e).length!==Object.keys(this.props).length&&Un.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!e.suppressChangedStoreWarning)for(var t in e)Fn[t]||this.props[t]===e[t]||Un.warn("MobX Provider: Provided store '"+t+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}])}();if(!N)throw new Error("mobx-preact requires Preact to be available");function Hn(){return(Hn=Object.assign||function(e){for(var t=1;tthis.node=e),this.resize=(()=>{const{props:e}=this;this.treemap.resize(),e.onResize&&e.onResize()}),this.treemap=null,this.zoomOutDisabled=!1}componentDidMount(){this.treemap=this.createTreemap(),window.addEventListener("resize",this.resize)}componentWillReceiveProps(e){if(e.data!==this.props.data)this.treemap.set({dataObject:this.getTreemapDataObject(e.data)});else if(e.highlightGroups!==this.props.highlightGroups){const t=[...e.highlightGroups,...this.props.highlightGroups];setTimeout(()=>this.treemap.redraw(!1,t))}}shouldComponentUpdate(){return!1}componentWillUnmount(){window.removeEventListener("resize",this.resize),this.treemap.dispose()}render(){return s("div",Hn({},this.props,{ref:this.saveNodeRef}))}getTreemapDataObject(e=this.props.data){return{groups:e}}createTreemap(){const e=this,{props:t}=this;return new Wn.a({element:this.node,layout:"squarified",stacking:"flattened",pixelRatio:window.devicePixelRatio||1,maxGroups:1/0,maxGroupLevelsDrawn:1/0,maxGroupLabelLevelsDrawn:1/0,maxGroupLevelsAttached:1/0,groupMinDiameter:0,groupLabelVerticalPadding:.2,rolloutDuration:0,pullbackDuration:0,fadeDuration:0,groupExposureZoomMargin:.2,zoomMouseWheelDuration:300,openCloseDuration:200,dataObject:this.getTreemapDataObject(),titleBarDecorator(e,t,n){n.titleBarShown=!1},groupColorDecorator(t,n,r){const{highlightGroups:i}=e.props,o=n.group;i&&i.has(o)&&(r.groupColor={model:"rgba",r:255,g:0,b:0,a:.8})},onGroupClick(n){Kn(n),(n.ctrlKey||n.secondary)&&t.onGroupSecondaryClick?t.onGroupSecondaryClick.call(e,n):(e.zoomOutDisabled=!1,this.zoom(n.group))},onGroupDoubleClick:Kn,onGroupHover(n){n.group&&n.group.attribution?n.preventDefault():t.onGroupHover&&t.onGroupHover.call(e,n)},onGroupMouseWheel(t){const{scale:n}=this.get("viewport");if(t.delta<0){if(e.zoomOutDisabled)return Kn(t);n<1&&(e.zoomOutDisabled=!0,Kn(t))}else e.zoomOutDisabled=!1}})}zoomToGroup(e){for(this.zoomOutDisabled=!1;e&&!this.treemap.get("state",e).revealed;)e=this.treemap.get("hierarchy",e).parent;e&&this.treemap.zoom(e)}isGroupRendered(e){const t=this.treemap.get("state",e);return!!t&&t.revealed}update(){this.treemap.update()}}function Kn(e){e.preventDefault()}var Yn=n(0),Zn=n.n(Yn),$n=n(15),Jn=n.n($n);class Qn extends N{constructor(...e){super(...e),this.mouseCoords={x:0,y:0},this.state={left:0,top:0},this.handleMouseMove=(e=>{Object.assign(this.mouseCoords,{x:e.pageX,y:e.pageY}),this.props.visible&&this.updatePosition()}),this.saveNode=(e=>this.node=e)}componentDidMount(){document.addEventListener("mousemove",this.handleMouseMove,!0)}shouldComponentUpdate(e){return this.props.visible||e.visible}componentWillUnmount(){document.removeEventListener("mousemove",this.handleMouseMove,!0)}render(){const{children:e,visible:t}=this.props,n=Zn()({[Jn.a.container]:!0,[Jn.a.hidden]:!t});return s("div",{ref:this.saveNode,className:n,style:this.getStyle()},e)}getStyle(){return{left:this.state.left,top:this.state.top}}updatePosition(){if(!this.props.visible)return;const e={left:this.mouseCoords.x+Qn.marginX,top:this.mouseCoords.y+Qn.marginY},t=this.node.getBoundingClientRect();e.left+t.width>window.innerWidth&&(e.left=window.innerWidth-t.width),e.top+t.height>window.innerHeight&&(e.top=this.mouseCoords.y-Qn.marginY-t.height),this.setState(e)}}Qn.marginX=10,Qn.marginY=30;var Xn=n(9),er=n.n(Xn);class tr extends N{shouldComponentUpdate(e,t){return!nr(e,this.props)||!nr(this.state,t)}}function nr(e,t){if(e===t)return!0;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r{this.elem.blur(),this.props.onClick(e)}),this.saveRef=(e=>this.elem=e)}render({active:e,toggle:t,className:n,children:r,...i}){const o=Zn()(n,{[er.a.button]:!0,[er.a.active]:e,[er.a.toggle]:t});return s("button",Hn({},i,{ref:this.saveRef,type:"button",className:o,disabled:this.disabled,onClick:this.handleClick}),r)}get disabled(){const{props:e}=this;return e.disabled||e.active&&!e.toggle}}class ir extends tr{constructor(...e){super(...e),this.handleClick=(()=>{this.props.onClick(this.props.item)})}render({item:e,...t}){return s(rr,Hn({},t,{onClick:this.handleClick}),e.label)}}var or=n(10),ar=n.n(or);class sr extends tr{render(){const{label:e,items:t,activeItem:n,onSwitch:r}=this.props;return s("div",{className:ar.a.container},s("div",{className:ar.a.label},e,":"),s("div",null,t.map(e=>s(ir,{key:e.label,className:ar.a.item,item:e,active:e===n,onClick:r}))))}}var ur=n(4),lr=n.n(ur),cr=n(23),hr=n.n(cr);const fr={"arrow-right":{src:n(34),size:[7,13]},pin:{src:n(35),size:[12,18]}};class dr extends tr{render({className:e}){return s("i",{className:Zn()(hr.a.icon,e),style:this.style})}get style(){const{name:e,size:t,rotate:n}=this.props,r=fr[e];if(!r)throw new TypeError("Can't find \"".concat(e,'" icon.'));let[i,o]=r.size;if(t){const e=t/Math.max(i,o);i=Math.min(Math.ceil(i*e),t),o=Math.min(Math.ceil(o*e),t)}return{backgroundImage:"url(".concat(r.src,")"),width:"".concat(i,"px"),height:"".concat(o,"px"),transform:n?"rotate(".concat(n,"deg)"):""}}}const pr=parseInt(lr.a.toggleTime);class gr extends N{constructor(...e){super(...e),this.allowHide=!0,this.toggling=!1,this.hideContentTimeout=null,this.width=null,this.state={visible:!0,renderContent:!0},this.handleClick=(()=>{this.allowHide=!1}),this.handleMouseEnter=(()=>{this.toggling||this.props.pinned||(clearTimeout(this.hideTimeoutId),this.toggleVisibility(!0))}),this.handleMouseMove=(()=>{this.allowHide=!0}),this.handleMouseLeave=(()=>{!this.allowHide||this.toggling||this.props.pinned||this.toggleVisibility(!1)}),this.handleToggleButtonClick=(()=>{this.toggleVisibility()}),this.handlePinButtonClick=(()=>{const e=!this.props.pinned;this.width=e?this.node.getBoundingClientRect().width:null,this.updateNodeWidth(),this.props.onPinStateChange(e)}),this.handleResizeStart=(e=>{this.resizeInfo={startPageX:e.pageX,initialWidth:this.width},document.body.classList.add("resizing","col"),document.addEventListener("mousemove",this.handleResize,!0),document.addEventListener("mouseup",this.handleResizeEnd,!0)}),this.handleResize=(e=>{this.width=this.resizeInfo.initialWidth+(e.pageX-this.resizeInfo.startPageX),this.updateNodeWidth()}),this.handleResizeEnd=(()=>{document.body.classList.remove("resizing","col"),document.removeEventListener("mousemove",this.handleResize,!0),document.removeEventListener("mouseup",this.handleResizeEnd,!0),this.props.onResize()}),this.saveNode=(e=>this.node=e)}componentDidMount(){this.hideTimeoutId=setTimeout(()=>this.toggleVisibility(!1),3e3)}componentWillUnmount(){clearTimeout(this.hideTimeoutId),clearTimeout(this.hideContentTimeout)}render(){const{position:e,pinned:t,children:n}=this.props,{visible:r,renderContent:i}=this.state,o=Zn()({[lr.a.container]:!0,[lr.a.pinned]:t,[lr.a.left]:"left"===e,[lr.a.hidden]:!r,[lr.a.empty]:!i});return s("div",{ref:this.saveNode,className:o,onClick:this.handleClick,onMouseLeave:this.handleMouseLeave},r&&s(rr,{type:"button",title:"Pin",className:lr.a.pinButton,active:t,toggle:!0,onClick:this.handlePinButtonClick},s(dr,{name:"pin",size:13})),s(rr,{type:"button",title:r?"Hide":"Show sidebar",className:lr.a.toggleButton,onClick:this.handleToggleButtonClick},s(dr,{name:"arrow-right",size:10,rotate:r?180:0})),t&&r&&s("div",{className:lr.a.resizer,onMouseDown:this.handleResizeStart}),s("div",{className:lr.a.content,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove},i?n:null))}toggleVisibility(e){clearTimeout(this.hideContentTimeout);const{visible:t}=this.state,{onToggle:n,pinned:r}=this.props;if(void 0===e)e=!t;else if(e===t)return;this.setState({visible:e}),this.toggling=!0,setTimeout(()=>{this.toggling=!1},pr),r&&this.updateNodeWidth(e?this.width:null),e||r?(this.setState({renderContent:e}),n(e)):e||(this.hideContentTimeout=setTimeout(()=>{this.hideContentTimeout=null,this.setState({renderContent:!1}),n(!1)},pr))}updateNodeWidth(e=this.width){this.node.style.width=e?"".concat(e,"px"):""}}gr.defaultProps={pinned:!1,position:"left"};var br=n(11),vr=n.n(br);class yr extends N{constructor(...e){super(...e),this.handleChange=(()=>{this.props.onChange(!this.props.checked)})}render(){const{checked:e,className:t,children:n}=this.props;return s("label",{className:Zn()(vr.a.label,t)},s("input",{className:vr.a.checkbox,type:"checkbox",checked:e,onChange:this.handleChange}),s("span",{className:vr.a.itemText},n))}}var mr=n(7),xr=n.n(mr);class wr extends N{constructor(...e){super(...e),this.handleChange=(()=>{this.props.onChange(this.props.item)})}render(){return s("div",{className:xr.a.item},s(yr,Hn({},this.props,{onChange:this.handleChange}),this.renderLabel()))}renderLabel(){const{children:e,item:t}=this.props;return e&&e.length?e[0](t):t===Sr.ALL_ITEM?"All":t.label}}const Cr=Symbol("ALL_ITEM");class Sr extends tr{constructor(e){super(e),this.handleToggleAllCheck=(()=>{const e=this.isAllChecked()?[]:this.props.items;this.setState({checkedItems:e}),this.informAboutChange(e)}),this.handleItemCheck=(e=>{let t;t=this.isItemChecked(e)?this.state.checkedItems.filter(t=>t!==e):[...this.state.checkedItems,e],this.setState({checkedItems:t}),this.informAboutChange(t)}),this.state={checkedItems:e.checkedItems||e.items}}componentWillReceiveProps(e){if(e.items!==this.props.items)if(this.isAllChecked())this.setState({checkedItems:e.items}),this.informAboutChange(e.items);else if(this.state.checkedItems.length){const t=e.items.filter(e=>this.state.checkedItems.find(t=>t.label===e.label));this.setState({checkedItems:t}),this.informAboutChange(t)}}render(){const{label:e,items:t,renderLabel:n}=this.props;return s("div",{className:xr.a.container},s("div",{className:xr.a.label},e,":"),s("div",null,s(wr,{item:Cr,checked:this.isAllChecked(),onChange:this.handleToggleAllCheck},n),t.map(e=>s(wr,{key:e.label,item:e,checked:this.isItemChecked(e),onChange:this.handleItemCheck},n))))}isItemChecked(e){return this.state.checkedItems.includes(e)}isAllChecked(){return this.props.items.length===this.state.checkedItems.length}informAboutChange(e){setTimeout(()=>this.props.onChange(e))}}Sr.ALL_ITEM=Cr;var Tr=n(16),Mr=n.n(Tr);function zr(){return!1}function kr({children:e,disabled:t,onClick:n}){return s("li",{className:Zn()({[Mr.a.item]:!0,[Mr.a.disabled]:t}),onClick:t?zr:n},e)}var jr=n(17),Lr=n.n(jr);class _r extends tr{constructor(...e){super(...e),this.handleClickHideChunk=(()=>{const{chunk:e}=this.props;if(e&&e.label){const t=Mn.selectedChunks.filter(t=>t.label!==e.label);Mn.selectedChunks=t}this.hide()}),this.handleClickFilterToChunk=(()=>{const{chunk:e}=this.props;if(e&&e.label){const t=Mn.allChunks.filter(t=>t.label===e.label);Mn.selectedChunks=t}this.hide()}),this.handleClickShowAllChunks=(()=>{Mn.selectedChunks=Mn.allChunks,this.hide()}),this.handleDocumentMousedown=(e=>{!(e.ctrlKey||2===e.button)&&function(e,t){return!(e===t||t.contains(e))}(e.target,this.node)&&(e.preventDefault(),e.stopPropagation(),this.hide())}),this.saveNode=(e=>this.node=e)}componentDidMount(){this.boundingRect=this.node.getBoundingClientRect()}componentDidUpdate(e){this.props.visible&&!e.visible?document.addEventListener("mousedown",this.handleDocumentMousedown,!0):e.visible&&!this.props.visible&&document.removeEventListener("mousedown",this.handleDocumentMousedown,!0)}render(){const{visible:e}=this.props,t=Zn()({[Lr.a.container]:!0,[Lr.a.hidden]:!e}),n=Mn.selectedChunks.length>1;return s("ul",{ref:this.saveNode,className:t,style:this.getStyle()},s(kr,{disabled:!n,onClick:this.handleClickHideChunk},"Hide chunk"),s(kr,{disabled:!n,onClick:this.handleClickFilterToChunk},"Hide all other chunks"),s("hr",null),s(kr,{disabled:Mn.allChunksSelected,onClick:this.handleClickShowAllChunks},"Show all chunks"))}hide(){this.props.onHide&&this.props.onHide()}getStyle(){const{boundingRect:e}=this;if(!e)return;const{coords:t}=this.props,n={left:t.x,top:t.y};return n.left+e.width>window.innerWidth&&(n.left=window.innerWidth-e.width),n.top+e.height>window.innerHeight&&(n.top=t.y-e.height),n}}var Dr=n(1),Or=n.n(Dr),Ar=n(24),Ir=n.n(Ar),Nr=n(6),Pr=n.n(Nr);class Er extends tr{constructor(...e){super(...e),this.handleValueChange=Ir()(e=>{this.informChange(e.target.value)},400),this.handleInputBlur=(()=>{this.handleValueChange.flush()}),this.handleClearClick=(()=>{this.clear(),this.focus()}),this.handleKeyDown=(e=>{let t=!0;switch(e.key){case"Escape":this.clear();break;case"Enter":this.handleValueChange.flush();break;default:t=!1}t&&e.stopPropagation()}),this.saveInputNode=(e=>this.input=e)}componentDidMount(){this.props.autofocus&&this.focus()}componentWillUnmount(){this.handleValueChange.cancel()}render(){const{label:e,query:t}=this.props;return s("div",{className:Pr.a.container},s("div",{className:Pr.a.label},e,":"),s("div",{className:Pr.a.row},s("input",{ref:this.saveInputNode,className:Pr.a.input,type:"text",value:t,placeholder:"Enter regexp",onInput:this.handleValueChange,onBlur:this.handleInputBlur,onKeyDown:this.handleKeyDown}),s(rr,{className:Pr.a.clear,onClick:this.handleClearClick},"x")))}focus(){this.input&&this.input.focus()}clear(){this.handleValueChange.cancel(),this.informChange(""),this.input.value=""}informChange(e){this.props.onQueryChange(e)}}var Gr,Br,Rr=n(25),Fr=n.n(Rr),Ur=n(26),Hr=n.n(Ur),Vr=n(8),Wr=n.n(Vr),qr=n(27),Kr=n.n(qr),Yr=n(12),Zr=n.n(Yr);class $r extends tr{constructor(...e){super(...e),this.state={visible:!0},this.handleClick=(()=>this.props.onClick(this.props.module)),this.handleMouseEnter=(()=>{this.props.isVisible&&this.setState({visible:this.isVisible})})}render({module:e,showSize:t}){const n=!this.state.visible;return s("div",{className:Zn()(Zr.a.container,Zr.a[this.itemType],{[Zr.a.invisible]:n}),title:n?this.invisibleHint:null,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},s("span",{dangerouslySetInnerHTML:{__html:this.titleHtml}}),t&&[" (",s("strong",null,kn()(e[t])),")"])}get itemType(){const{module:e}=this.props;return e.path?e.groups?"folder":"module":"chunk"}get titleHtml(){let e;const{module:t}=this.props,n=t.path||t.label,r=this.props.highlightedText;if(r){const t=r instanceof RegExp?new RegExp(r.source,"igu"):new RegExp("(?:".concat(Kr()(r),")+"),"iu");let i,o;do{o=i,i=t.exec(n)}while(i);o&&(e=Wr()(n.slice(0,o.index))+"".concat(Wr()(o[0]),"")+Wr()(n.slice(o.index+o[0].length)))}return e||(e=Wr()(n)),e}get invisibleHint(){return"".concat(Hr()(this.itemType)," is not rendered in the treemap because it's too small.")}get isVisible(){const{isVisible:e}=this.props;return!e||e(this.props.module)}}class Jr extends tr{constructor(...e){super(...e),this.handleModuleClick=(e=>this.props.onModuleClick(e))}render({modules:e,showSize:t,highlightedText:n,isModuleVisible:r,className:i}){return s("div",{className:Zn()(Fr.a.container,i)},e.map(e=>s($r,{key:e.cid,module:e,showSize:t,highlightedText:n,isVisible:r,onClick:this.handleModuleClick})))}}const Qr=[{label:"Stat",prop:"statSize"},{label:"Parsed",prop:"parsedSize"},{label:"Gzipped",prop:"gzipSize"}];let Xr=Rn((G((Br=class extends N{constructor(...e){super(...e),this.mouseCoords={x:0,y:0},this.state={selectedChunk:null,selectedMouseCoords:{x:0,y:0},sidebarPinned:!1,showChunkContextMenu:!1,showTooltip:!1,tooltipContent:null},this.renderChunkItemLabel=(e=>{const t=e===Sr.ALL_ITEM,n=t?"All":e.label,r=t?Mn.totalChunksSize:e[Mn.activeSize];return["".concat(n," ("),s("strong",null,kn()(r)),")"]}),this.handleConcatenatedModulesContentToggle=(e=>{Mn.showConcatenatedModulesContent=e}),this.handleChunkContextMenuHide=(()=>{this.setState({showChunkContextMenu:!1})}),this.handleResize=(()=>{this.state.showChunkContextMenu&&this.setState({showChunkContextMenu:!1})}),this.handleSidebarToggle=(()=>{this.state.sidebarPinned&&setTimeout(()=>this.treemap.resize())}),this.handleSidebarPinStateChange=(e=>{this.setState({sidebarPinned:e}),setTimeout(()=>this.treemap.resize())}),this.handleSidebarResize=(()=>{this.treemap.resize()}),this.handleSizeSwitch=(e=>{Mn.selectedSize=e.prop}),this.handleQueryChange=(e=>{Mn.searchQuery=e}),this.handleSelectedChunksChange=(e=>{Mn.selectedChunks=e}),this.handleMouseLeaveTreemap=(()=>{this.setState({showTooltip:!1})}),this.handleTreemapGroupSecondaryClick=(e=>{const{group:t}=e;t&&t.isAsset?this.setState({selectedChunk:t,selectedMouseCoords:{...this.mouseCoords},showChunkContextMenu:!0}):this.setState({selectedChunk:null,showChunkContextMenu:!1})}),this.handleTreemapGroupHover=(e=>{const{group:t}=e;t?this.setState({showTooltip:!0,tooltipContent:this.getTooltipContent(t)}):this.setState({showTooltip:!1})}),this.handleFoundModuleClick=(e=>this.treemap.zoomToGroup(e)),this.handleMouseMove=(e=>{Object.assign(this.mouseCoords,{x:e.pageX,y:e.pageY})}),this.isModuleVisible=(e=>this.treemap.isGroupRendered(e)),this.saveTreemapRef=(e=>this.treemap=e)}componentDidMount(){document.addEventListener("mousemove",this.handleMouseMove,!0)}componentWillUnmount(){document.removeEventListener("mousemove",this.handleMouseMove,!0)}render(){const{selectedChunk:e,selectedMouseCoords:t,sidebarPinned:n,showChunkContextMenu:r,showTooltip:i,tooltipContent:o}=this.state;return s("div",{className:Or.a.container},s(gr,{pinned:n,onToggle:this.handleSidebarToggle,onPinStateChange:this.handleSidebarPinStateChange,onResize:this.handleSidebarResize},s("div",{className:Or.a.sidebarGroup},s(sr,{label:"Treemap sizes",items:this.sizeSwitchItems,activeItem:this.activeSizeItem,onSwitch:this.handleSizeSwitch}),Mn.hasConcatenatedModules&&s("div",{className:Or.a.showOption},s(yr,{checked:Mn.showConcatenatedModulesContent,onChange:this.handleConcatenatedModulesContentToggle},"Show content of concatenated modules".concat("statSize"===Mn.activeSize?"":" (inaccurate)")))),s("div",{className:Or.a.sidebarGroup},s(Er,{label:"Search modules",query:Mn.searchQuery,autofocus:!0,onQueryChange:this.handleQueryChange}),s("div",{className:Or.a.foundModulesInfo},this.foundModulesInfo),Mn.isSearching&&Mn.hasFoundModules&&s("div",{className:Or.a.foundModulesContainer},Mn.foundModulesByChunk.map(({chunk:e,modules:t})=>s("div",{key:e.cid,className:Or.a.foundModulesChunk},s("div",{className:Or.a.foundModulesChunkName,onClick:()=>this.treemap.zoomToGroup(e)},e.label),s(Jr,{className:Or.a.foundModulesList,modules:t,showSize:Mn.activeSize,highlightedText:Mn.searchQueryRegexp,isModuleVisible:this.isModuleVisible,onModuleClick:this.handleFoundModuleClick}))))),this.chunkItems.length>1&&s("div",{className:Or.a.sidebarGroup},s(Sr,{label:"Show chunks",items:this.chunkItems,checkedItems:Mn.selectedChunks,renderLabel:this.renderChunkItemLabel,onChange:this.handleSelectedChunksChange}))),s(qn,{ref:this.saveTreemapRef,className:Or.a.map,data:Mn.visibleChunks,highlightGroups:this.highlightedModules,weightProp:Mn.activeSize,onMouseLeave:this.handleMouseLeaveTreemap,onGroupHover:this.handleTreemapGroupHover,onGroupSecondaryClick:this.handleTreemapGroupSecondaryClick,onResize:this.handleResize}),s(Qn,{visible:i},o),s(_r,{visible:r,chunk:e,coords:t,onHide:this.handleChunkContextMenuHide}))}renderModuleSize(e,t){const n="".concat(t,"Size"),r=e[n],i=Qr.find(e=>e.prop===n).label,o=Mn.activeSize===n;return"number"==typeof r?s("div",{className:o?Or.a.activeSize:""},i," size: ",s("strong",null,kn()(r))):null}get sizeSwitchItems(){return Mn.hasParsedSizes?Qr:Qr.slice(0,1)}get activeSizeItem(){return this.sizeSwitchItems.find(e=>e.prop===Mn.activeSize)}get chunkItems(){const{allChunks:e,activeSize:t}=Mn;let n=[...e];return"statSize"!==t&&(n=n.filter(pn)),n.sort((e,n)=>n[t]-e[t]),n}get highlightedModules(){return new Set(Mn.foundModules)}get foundModulesInfo(){return Mn.isSearching?Mn.hasFoundModules?[s("div",{className:Or.a.foundModulesInfoItem},"Count: ",s("strong",null,Mn.foundModules.length)),s("div",{className:Or.a.foundModulesInfoItem},"Total size: ",s("strong",null,kn()(Mn.foundModulesSize)))]:"Nothing found"+(Mn.allChunksSelected?"":" in selected chunks"):" "}getTooltipContent(e){return e?s("div",null,s("div",null,s("strong",null,e.label)),s("br",null),this.renderModuleSize(e,"stat"),!e.inaccurateSizes&&this.renderModuleSize(e,"parsed"),!e.inaccurateSizes&&this.renderModuleSize(e,"gzip"),e.path&&s("div",null,"Path: ",s("strong",null,e.path)),e.isAsset&&s("div",null,s("br",null),s("strong",null,s("em",null,"Right-click to view options related to this chunk")))):null}}).prototype,"sizeSwitchItems",[ze],Object.getOwnPropertyDescriptor(Br.prototype,"sizeSwitchItems"),Br.prototype),G(Br.prototype,"activeSizeItem",[ze],Object.getOwnPropertyDescriptor(Br.prototype,"activeSizeItem"),Br.prototype),G(Br.prototype,"chunkItems",[ze],Object.getOwnPropertyDescriptor(Br.prototype,"chunkItems"),Br.prototype),G(Br.prototype,"highlightedModules",[ze],Object.getOwnPropertyDescriptor(Br.prototype,"highlightedModules"),Br.prototype),G(Br.prototype,"foundModulesInfo",[ze],Object.getOwnPropertyDescriptor(Br.prototype,"foundModulesInfo"),Br.prototype),Gr=Br))||Gr;n(67);let ei;try{window.enableWebSocket&&(ei=new WebSocket("ws://".concat(location.host)))}catch(ti){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",()=>{Mn.defaultSize="".concat(window.defaultSizes,"Size"),Mn.setModules(window.chartData),P(s(Xr,null),document.getElementById("app")),ei&&ei.addEventListener("message",e=>{const t=JSON.parse(e.data);"chartDataUpdated"===t.event&&Mn.setModules(t.data)})},!1)}]); //# sourceMappingURL=viewer.js.map