New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

future-charts-example

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

future-charts-example - npm Package Compare versions

Comparing version 0.9.9 to 0.9.10

2

dist/DonutChartWebComponent.js

@@ -1,1 +0,1 @@

!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(1),i=r(o),a=n(1),u=r(a),l=n(2),c=r(l),s=Object.create(HTMLElement.prototype,{attachedCallback:{value:function(){var e=document.createElement("span");this.createShadowRoot().appendChild(e);var t={radius:+this.getAttribute("radius"),holeSize:+this.getAttribute("hole-size"),text:this.getAttribute("text"),value:+this.getAttribute("value"),total:+this.getAttribute("total"),backgroundColor:this.getAttribute("background-color"),valueColor:this.getAttribute("value-color")};u.default.render(i.default.createElement(c.default,t),e)}}});document.registerElement("donut-chart",{prototype:s})},function(e,t,n){(function(t){!function(t,r){e.exports=r(n(7),n(5))}(this,function(e,n){function r(e){var t=e.nodeName,n=e.attributes;e.attributes={},t.defaultProps&&x(e.attributes,t.defaultProps),n&&x(e.attributes,n),n=e.attributes,e.children&&!e.children.length&&(e.children=void 0),e.children&&(n.children=e.children)}function o(e,t){var n,r,o;if(t){for(o in t)if(n=I.test(o))break;if(n){r=e.attributes={};for(o in t)t.hasOwnProperty(o)&&(r[I.test(o)?o.replace(/([A-Z0-9])/,"-$1").toLowerCase():o]=t[o])}}}function i(e,t,r){var o=t&&t._preactCompatRendered;o&&o.parentNode!==t&&(o=null),o||(o=t.children[0]);for(var i=t.childNodes.length;i--;)t.childNodes[i]!==o&&t.removeChild(t.childNodes[i]);var a=n.render(e,t,o);return t&&(t._preactCompatRendered=a),"function"==typeof r&&r(),a&&a._component||a.base}function a(e,t,r,o){var a=n.h(G,{context:e.context},t),u=i(a,r);return o&&o(u),u}function u(e){var t=e._preactCompatRendered;return!(!t||t.parentNode!==e)&&(n.render(n.h(V),e,t),!0)}function l(e){return d.bind(null,e)}function c(e,t){for(var n=t||0;n<e.length;n++){var r=e[n];Array.isArray(r)?c(r):r&&"object"==typeof r&&!v(r)&&(r.props&&r.type||r.attributes&&r.nodeName||r.children)&&(e[n]=d(r.type||r.nodeName,r.props||r.attributes,r.children))}}function s(e){return"function"==typeof e&&!(e.prototype&&e.prototype.render)}function f(e){return N({displayName:e.displayName||e.name,render:function(t,n,r){return e(t,r)}})}function p(e){var t=e[Q];return t?t===!0?e:t:(t=f(e),Object.defineProperty(t,Q,{configurable:!0,value:!0}),t.displayName=e.displayName,t.propTypes=e.propTypes,t.defaultProps=e.defaultProps,Object.defineProperty(e,Q,{configurable:!0,value:t}),t)}function d(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return c(e,2),h(n.h.apply(void 0,e))}function h(e){e.preactCompatNormalized=!0,g(e),s(e.nodeName)&&(e.nodeName=p(e.nodeName));var t=e.attributes.ref,n=t&&typeof t;return!q||"string"!==n&&"number"!==n||(e.attributes.ref=y(t,q)),b(e),e}function m(e,t){for(var r=[],o=arguments.length-2;o-- >0;)r[o]=arguments[o+2];if(!v(e))return e;var i=e.attributes||e.props,a=n.h(e.nodeName||e.type,i,e.children||i&&i.children);return h(n.cloneElement.apply(void 0,[a,t].concat(r)))}function v(e){return e&&(e instanceof H||e.$$typeof===D)}function y(e,t){return t._refProxies[e]||(t._refProxies[e]=function(n){t&&t.refs&&(t.refs[e]=n,null===n&&(delete t._refProxies[e],t=null))})}function b(e){var t=e.nodeName,n=e.attributes;if(n&&"string"==typeof t){var r={};for(var o in n)r[o.toLowerCase()]=o;if(r.onchange){t=t.toLowerCase();var i="input"===t&&"checkbox"===String(n.type).toLowerCase()?"onclick":"oninput",a=r[i]||i;n[a]||(n[a]=A([n[r[i]],n[r.onchange]]))}}}function g(e){var t=e.attributes;if(t){var n=t.className||t.class;n&&(t.className=n)}}function x(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function _(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}function C(){}function N(e){function t(t,r){x(this,e),n&&E(this,n),k(this),U.call(this,t,r,B),P.call(this,t,r)}var n=e.mixins&&w(e.mixins);return e.statics&&x(t,e.statics),e.propTypes&&(t.propTypes=e.propTypes),e.defaultProps&&(t.defaultProps=e.defaultProps),e.getDefaultProps&&(t.defaultProps=e.getDefaultProps()),C.prototype=U.prototype,t.prototype=new C,t.prototype.constructor=t,t.displayName=e.displayName||"Component",t}function w(e){for(var t={},n=0;n<e.length;n++){var r=e[n];for(var o in r)r.hasOwnProperty(o)&&"function"==typeof r[o]&&(t[o]||(t[o]=[])).push(r[o])}return t}function E(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=A(t[n].concat(e[n]||n)))}function k(e){for(var t in e){var n=e[t];"function"!=typeof n||n.__bound||W.hasOwnProperty(t)||((e[t]=n.bind(e)).__bound=!0)}}function S(e,t,n){if("string"==typeof t&&(t=e.constructor.prototype[t]),"function"==typeof t)return t.apply(e,n)}function A(e){return function(){for(var t,n=arguments,r=this,o=0;o<e.length;o++){var i=S(r,e[o],n);"undefined"!=typeof i&&(t=i)}return t}}function P(e,t){T.call(this,e,t),this.componentWillReceiveProps=A([T,this.componentWillReceiveProps||"componentWillReceiveProps"]),this.render=A([T,O,this.render||"render",j])}function T(e,t){var n=this;if(e){var r=e.children;if(r&&Array.isArray(r)&&1===r.length&&(e.children=r[0],e.children&&"object"==typeof e.children&&(e.children.length=1,e.children[0]=e.children)),z){var o="function"==typeof this?this:this.constructor,i=this.propTypes||o.propTypes;if(i)for(var a in i)if(i.hasOwnProperty(a)&&"function"==typeof i[a]){var u=n.displayName||o.name,l=i[a](e,a,u,"prop");l&&console.error(new Error(l.message||l))}}}}function O(e){q=this}function j(){q===this&&(q=null)}function U(e,t,r){n.Component.call(this,e,t),this.getInitialState&&(this.state=this.getInitialState()),this.refs={},this._refProxies={},r!==B&&P.call(this,e,t)}function R(e,t){U.call(this,e,t)}e="default"in e?e.default:e;var L="15.1.0",M="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),D="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,W={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},I=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vert|word|writing|x)[A-Z]/,B={},z="undefined"!=typeof t&&t.env&&!1,V=function(){return null},H=n.h("").constructor;H.prototype.$$typeof=D,H.prototype.preactCompatUpgraded=!1,H.prototype.preactCompatNormalized=!1,Object.defineProperty(H.prototype,"type",{get:function(){return this.nodeName},set:function(e){this.nodeName=e},configurable:!0}),Object.defineProperty(H.prototype,"props",{get:function(){return this.attributes},set:function(e){this.attributes=e},configurable:!0});var $=n.options.vnode;n.options.vnode=function(e){if(!e.preactCompatUpgraded){e.preactCompatUpgraded=!0;var t=e.nodeName,n=e.attributes;n||(n=e.attributes={}),"function"==typeof t?(t[Q]===!0||t.prototype&&"isReactComponent"in t.prototype)&&(e.preactCompatNormalized||h(e),r(e)):n&&o(e,n)}$&&$(e)};var G=function(){};G.prototype.getChildContext=function(){return this.props.context},G.prototype.render=function(e){return e.children[0]};for(var q,F=[],J={map:function(e,t,n){return e=J.toArray(e),n&&n!==e&&(t=t.bind(n)),e.map(t)},forEach:function(e,t,n){e=J.toArray(e),n&&n!==e&&(t=t.bind(n)),e.forEach(t)},count:function(e){return e=J.toArray(e),e.length},only:function(e){if(e=J.toArray(e),1!==e.length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:function(e){return Array.isArray&&Array.isArray(e)?e:F.concat(e)}},Z={},K=M.length;K--;)Z[M[K]]=l(M[K]);var Q="undefined"!=typeof Symbol?Symbol.for("__preactCompatWrapper"):"__preactCompatWrapper",X=function(e){return e&&e.base||e};U.prototype=new n.Component,x(U.prototype,{constructor:U,isReactComponent:{},replaceState:function(e,t){var n=this;this.setState(e,t);for(var r in this.state)r in e||delete n.state[r]},getDOMNode:function(){return this.base},isMounted:function(){return!!this.base}}),R.prototype=new U({},{},B),R.prototype.shouldComponentUpdate=function(e,t){return _(this.props,e)||_(this.state,t)};var Y={version:L,DOM:Z,PropTypes:e,Children:J,render:i,createClass:N,createFactory:l,createElement:d,cloneElement:m,isValidElement:v,findDOMNode:X,unmountComponentAtNode:u,Component:U,PureComponent:R,unstable_renderSubtreeIntoContainer:a};return Y})}).call(t,n(6))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),c=r(l),s=n(9),f=r(s),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.radius,n=e.holeSize,r=e.text,o=e.value,i=e.total,a=e.backgroundColor,u=e.valueColor,l=t*(1-(1-n)/2),s=t*(1-n),p=2*Math.PI*l,d=o*p/i+" "+p,h="rotate(-90 "+t+","+t+")",m=l*n*.6;return c.default.createElement("div",{className:f.default.root},c.default.createElement("svg",{width:2*t+"px",height:2*t+"px"},c.default.createElement("circle",{r:l+"px",cx:t+"px",cy:t+"px",transform:h,strokeWidth:s,stroke:a,fill:"none"}),c.default.createElement("circle",{r:l+"px",cx:t+"px",cy:t+"px",transform:h,strokeWidth:s,strokeDasharray:d,fill:"none",stroke:u}),c.default.createElement("text",{x:t+"px",y:t+"px",dy:m/3+"px",textAnchor:"middle",fill:u,fontSize:m+"px"},~~(1e3*o/i)/10,"%")),c.default.createElement("div",{className:f.default.text},r))}}]),t}(c.default.Component);t.default=p,p.defaultProps={holeSize:.8,radius:65,backgroundColor:"#d1d8e7",valueColor:"#49649f"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".DonutChart__root_CuCoH{text-align:center;font-family:sans-serif}.DonutChart__text_2sTmw{text-align:center;margin-top:10px}",""]),t.locals={root:"DonutChart__root_CuCoH",text:"DonutChart__text_2sTmw"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){!function(e,n){n(t)}(this,function(e){function t(e,t,n){this.nodeName=e,this.attributes=t,this.children=n,this.key=t&&t.key}function n(e,n){var r,o,i,a,u=[];for(a=arguments.length;a-- >2;)B.push(arguments[a]);for(n&&n.children&&(B.length||B.push(n.children),delete n.children);B.length;)if((o=B.pop())instanceof Array)for(a=o.length;a--;)B.push(o[a]);else null!=o&&o!==!1&&("number"!=typeof o&&o!==!0||(o=String(o)),i="string"==typeof o,i&&r?u[u.length-1]+=o:(u.push(o),r=i));var l=new t(e,n||void 0,u);return I.vnode&&I.vnode(l),l}function r(e,t){if(t)for(var n in t)e[n]=t[n];return e}function o(e){return r({},e)}function i(e,t){for(var n=t.split("."),r=0;r<n.length&&e;r++)e=e[n[r]];return e}function a(e){return"function"==typeof e}function u(e){return"string"==typeof e}function l(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}function c(e,t){return n(e.nodeName,r(o(e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function s(e,t,n){var r=t.split(".");return function(t){for(var o=t&&t.target||this,a={},l=a,c=u(n)?i(t,n):o.nodeName?o.type.match(/^che|rad/)?o.checked:o.value:t,s=0;s<r.length-1;s++)l=l[r[s]]||(l[r[s]]=!s&&e.state[r[s]]||{});l[r[s]]=c,e.setState(a)}}function f(e){!e._dirty&&(e._dirty=!0)&&1==Z.push(e)&&(I.debounceRendering||$)(p)}function p(){var e,t=Z;for(Z=[];e=t.pop();)e._dirty&&R(e)}function d(e){var t=e&&e.nodeName;return t&&a(t)&&!(t.prototype&&t.prototype.render)}function h(e,t){return e.nodeName(y(e),t||G)}function m(e,t){return u(t)?e instanceof Text:u(t.nodeName)?v(e,t.nodeName):a(t.nodeName)?e._componentConstructor===t.nodeName||d(t):void 0}function v(e,t){return e.normalizedNodeName===t||V(e.nodeName)===V(t)}function y(e){var t=o(e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function b(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,n,r,o){if("className"===t&&(t="class"),"class"===t&&r&&"object"==typeof r&&(r=l(r)),"key"===t);else if("class"!==t||o)if("style"===t){if((!r||u(r)||u(n))&&(e.style.cssText=r||""),r&&"object"==typeof r){if(!u(n))for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"!=typeof r[i]||F[i]?r[i]:r[i]+"px"}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html);else if("o"==t[0]&&"n"==t[1]){var c=e._listeners||(e._listeners={});t=V(t.substring(2)),r?c[t]||e.addEventListener(t,_,!!J[t]):c[t]&&e.removeEventListener(t,_,!!J[t]),c[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e)x(e,t,null==r?"":r),null!=r&&r!==!1||e.removeAttribute(t);else{var s=o&&t.match(/^xlink\:?(.+)/);null==r||r===!1?s?e.removeAttributeNS("http://www.w3.org/1999/xlink",V(s[1])):e.removeAttribute(t):"object"==typeof r||a(r)||(s?e.setAttributeNS("http://www.w3.org/1999/xlink",V(s[1]),r):e.setAttribute(t,r))}else e.className=r||""}function x(e,t,n){try{e[t]=n}catch(e){}}function _(e){return this._listeners[e.type](I.event&&I.event(e)||e)}function C(e){if(b(e),e instanceof Element){e._component=e._componentConstructor=null;var t=e.normalizedNodeName||V(e.nodeName);(K[t]||(K[t]=[])).push(e)}}function N(e,t){var n=V(e),r=K[n]&&K[n].pop()||(t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e));return r.normalizedNodeName=n,r}function w(){for(var e;e=Q.pop();)I.afterMount&&I.afterMount(e),e.componentDidMount&&e.componentDidMount()}function E(e,t,n,r,o,i){X++||(Y=o instanceof SVGElement);var a=k(e,t,n,r);return o&&a.parentNode!==o&&o.appendChild(a),--X||i||w(),a}function k(e,t,n,r){for(var o=t&&t.attributes;d(t);)t=h(t,n);if(null==t&&(t=""),u(t)){if(e){if(e instanceof Text&&e.parentNode)return e.nodeValue!=t&&(e.nodeValue=t),e;P(e)}return document.createTextNode(t)}if(a(t.nodeName))return L(e,t,n,r);var i=e,l=t.nodeName,c=Y,s=t.children;if(u(l)||(l=String(l)),Y="svg"===l||"foreignObject"!==l&&Y,e){if(!v(e,l)){for(i=N(l,Y);e.firstChild;)i.appendChild(e.firstChild);P(e)}}else i=N(l,Y);s&&1===s.length&&"string"==typeof s[0]&&1===i.childNodes.length&&i.firstChild instanceof Text?i.firstChild.nodeValue!=s[0]&&(i.firstChild.nodeValue=s[0]):(s&&s.length||i.firstChild)&&S(i,s,n,r);var f=i[q];if(!f){i[q]=f={};for(var p=i.attributes,m=p.length;m--;)f[p[m].name]=p[m].value}return T(i,t.attributes,f),o&&"function"==typeof o.ref&&(f.ref=o.ref)(i),Y=c,i}function S(e,t,n,r){var o,i,u,l,c=e.childNodes,s=[],f={},p=0,d=0,h=c.length,v=0,y=t&&t.length;if(h)for(var b=0;b<h;b++){var g=c[b],x=y?(i=g._component)?i.__key:(i=g[q])?i.key:null:null;x||0===x?(p++,f[x]=g):s[v++]=g}if(y)for(var b=0;b<y;b++){u=t[b],l=null;var x=u.key;if(null!=x)p&&x in f&&(l=f[x],f[x]=void 0,p--);else if(!l&&d<v){for(o=d;o<v;o++)if(i=s[o],i&&m(i,u)){l=i,s[o]=void 0,o===v-1&&v--,o===d&&d++;break}!l&&d<v&&a(u.nodeName)&&r&&(l=s[d],s[d++]=void 0)}l=k(l,u,n,r),l&&l!==e&&l!==c[b]&&e.insertBefore(l,c[b]||null)}if(p)for(var b in f)f[b]&&P(f[b]);d<v&&A(s)}function A(e,t){for(var n=e.length;n--;)e[n]&&P(e[n],t)}function P(e,t){var n=e._component;n?M(n,!t):(e[q]&&e[q].ref&&e[q].ref(null),t||C(e),e.childNodes&&e.childNodes.length&&A(e.childNodes,t))}function T(e,t,n){for(var r in n)t&&r in t||null==n[r]||g(e,r,n[r],n[r]=void 0,Y);if(t)for(var o in t)"children"===o||"innerHTML"===o||o in n&&t[o]===("value"===o||"checked"===o?e[o]:n[o])||g(e,o,n[o],n[o]=t[o],Y)}function O(e){var t=e.constructor.name,n=ee[t];n?n.push(e):ee[t]=[e]}function j(e,t,n){var r=new e(t,n),o=ee[e.name];if(D.call(r,t,n),o)for(var i=o.length;i--;)if(o[i].constructor===e){r.nextBase=o[i].nextBase,o.splice(i,1);break}return r}function U(e,t,n,r,o){e._disable||(e._disable=!0,(e.__ref=t.ref)&&delete t.ref,(e.__key=t.key)&&delete t.key,!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&I.syncComponentUpdates===!1&&e.base?f(e):R(e,1,o)),e.__ref&&e.__ref(e))}function R(e,t,n,i){if(!e._disable){var u,l,c,s,f=e.props,p=e.state,m=e.context,v=e.prevProps||f,b=e.prevState||p,g=e.prevContext||m,x=e.base,_=e.nextBase,C=x||_,N=e._component;if(x&&(e.props=v,e.state=b,e.context=g,2!==t&&e.shouldComponentUpdate&&e.shouldComponentUpdate(f,p,m)===!1?u=!0:e.componentWillUpdate&&e.componentWillUpdate(f,p,m),e.props=f,e.state=p,e.context=m),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!u){for(e.render&&(l=e.render(f,p,m)),e.getChildContext&&(m=r(o(m),e.getChildContext()));d(l);)l=h(l,m);var k,S,A=l&&l.nodeName;if(a(A)){c=N;var T=y(l);c&&c.constructor===A?U(c,T,1,m):(k=c,c=j(A,T,m),c.nextBase=c.nextBase||_,c._parentComponent=e,e._component=c,U(c,T,0,m),R(c,1,n,!0)),S=c.base}else s=C,k=N,k&&(s=e._component=null),(C||1===t)&&(s&&(s._component=null),S=E(s,l,m,n||!x,C&&C.parentNode,!0));if(C&&S!==C&&c!==N){var O=C.parentNode;O&&S!==O&&(O.replaceChild(S,C),k||(C._component=null,P(C)))}if(k&&M(k,S!==C),e.base=S,S&&!i){for(var L=e,D=e;D=D._parentComponent;)(L=D).base=S;S._component=L,S._componentConstructor=L.constructor}}!x||n?Q.unshift(e):u||(e.componentDidUpdate&&e.componentDidUpdate(v,b,g),I.afterUpdate&&I.afterUpdate(e));var W,B=e._renderCallbacks;if(B)for(;W=B.pop();)W.call(e);X||i||w()}}function L(e,t,n,r){for(var o=e&&e._component,i=e,a=o&&e._componentConstructor===t.nodeName,u=a,l=y(t);o&&!u&&(o=o._parentComponent);)u=o.constructor===t.nodeName;return o&&u&&(!r||o._component)?(U(o,l,3,n,r),e=o.base):(o&&!a&&(M(o,!0),e=i=null),o=j(t.nodeName,l,n),e&&!o.nextBase&&(o.nextBase=e,i=null),U(o,l,1,n,r),e=o.base,i&&e!==i&&(i._component=null,P(i))),e}function M(e,t){I.beforeUnmount&&I.beforeUnmount(e);var n=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var r=e._component;r?M(r,t):n&&(n[q]&&n[q].ref&&n[q].ref(null),e.nextBase=n,t&&(b(n),O(e)),A(n.childNodes,!t)),e.__ref&&e.__ref(null),e.componentDidUnmount&&e.componentDidUnmount()}function D(e,t){this._dirty=!0,this.context=t,this.props=e,this.state||(this.state={})}function W(e,t,n){return E(n,e,{},!1,t)}var I={},B=[],z={},V=function(e){return z[e]||(z[e]=e.toLowerCase())},H="undefined"!=typeof Promise&&Promise.resolve(),$=H?function(e){H.then(e)}:setTimeout,G={},q="undefined"!=typeof Symbol?Symbol.for("preactattr"):"__preactattr_",F={boxFlex:1,boxFlexGroup:1,columnCount:1,fillOpacity:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,fontWeight:1,lineClamp:1,lineHeight:1,opacity:1,order:1,orphans:1,strokeOpacity:1,widows:1,zIndex:1,zoom:1},J={blur:1,error:1,focus:1,load:1,resize:1,scroll:1},Z=[],K={},Q=[],X=0,Y=!1,ee={};r(D.prototype,{linkState:function(e,t){var n=this._linkedStates||(this._linkedStates={});return n[e+t]||(n[e+t]=s(this,e,t))},setState:function(e,t){var n=this.state;this.prevState||(this.prevState=o(n)),r(n,a(e)?e(n,this.props):e),t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),f(this)},forceUpdate:function(){R(this,2)},render:function(){}}),e.h=n,e.cloneElement=c,e.Component=D,e.render=W,e.rerender=p,e.options=I})},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(s===setTimeout)return setTimeout(e,0);if((s===n||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(t){try{return s.call(null,e,0)}catch(t){return s.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){m&&d&&(m=!1,d.length?h=d.concat(h):v=-1,h.length&&u())}function u(){if(!m){var e=o(a);m=!0;for(var t=h.length;t;){for(d=h,h=[];++v<t;)d&&d[v].run();v=-1,t=h.length}d=null,m=!1,i(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var s,f,p=e.exports={};!function(){try{s="function"==typeof setTimeout?setTimeout:n}catch(e){s=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var d,h=[],m=!1,v=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new l(e,t)),1!==h.length||m||o(u)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){var r,o,i;!function(n,a){o=[t,e],r=a,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t){"use strict";function n(e){var t=e&&(C&&e[C]||e[N]);if("function"==typeof t)return t}function r(e){function t(t,n,r,o,i,a){if(o=o||w,a=a||r,null==n[r]){var u=x[i];return t?new Error("Required "+u+" `"+a+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,i,a)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e){function t(t,n,r,o,i){var a=t[n],u=m(a);if(u!==e){var l=x[o],c=v(a);return new Error("Invalid "+l+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return r(t)}function i(){return r(_.thatReturns(null))}function a(e){function t(t,n,r,o,i){var a=t[n];if(!Array.isArray(a)){var u=x[o],l=m(a);return new Error("Invalid "+u+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c<a.length;c++){var s=e(a,c,r,o,i+"["+c+"]");if(s instanceof Error)return s}return null}return r(t)}function u(){function e(e,t,n,r,o){if(!g.isValidElement(e[t])){var i=x[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a single ReactElement."))}return null}return r(e)}function l(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=x[o],u=e.name||w,l=y(t[n]);return new Error("Invalid "+a+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("instance of `"+u+"`."))}return null}return r(t)}function c(e){function t(t,n,r,o,i){for(var a=t[n],u=0;u<e.length;u++)if(a===e[u])return null;var l=x[o],c=JSON.stringify(e);return new Error("Invalid "+l+" `"+i+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+c+"."))}return r(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function s(e){function t(t,n,r,o,i){var a=t[n],u=m(a);if("object"!==u){var l=x[o];return new Error("Invalid "+l+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an object."))}for(var c in a)if(a.hasOwnProperty(c)){var s=e(a,c,r,o,i+"."+c);if(s instanceof Error)return s}return null}return r(t)}function f(e){function t(t,n,r,o,i){for(var a=0;a<e.length;a++){var u=e[a];if(null==u(t,n,r,o,i))return null}var l=x[o];return new Error("Invalid "+l+" `"+i+"` supplied to "+("`"+r+"`."))}return r(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function p(){function e(e,t,n,r,o){if(!h(e[t])){var i=x[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(e)}function d(e){function t(t,n,r,o,i){var a=t[n],u=m(a);if("object"!==u){var l=x[o];return new Error("Invalid "+l+" `"+i+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `object`."))}for(var c in e){var s=e[c];if(s){var f=s(a,c,r,o,i+"."+c);if(f)return f}}return null}return r(t)}function h(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(h);if(null===e||g.isValidElement(e))return!0;var t=n(e);if(!t)return!1;var r,o=t.call(e);if(t!==e.entries){for(;!(r=o.next()).done;)if(!h(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!h(i[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function v(e){var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){return e.constructor&&e.constructor.name?e.constructor.name:w}var b="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,g={};g.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===b};var x={prop:"prop",context:"context",childContext:"child context"},_={thatReturns:function(e){return function(){return e}}},C="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",w="<<anonymous>>",E={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:i(),arrayOf:a,element:u(),instanceOf:l,node:p(),objectOf:s,oneOf:c,oneOfType:f,shape:d};t.exports=E})},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=d[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(c(r.parts[i],t))}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(c(r.parts[i],t));d[r.id]={id:r.id,refs:1,parts:a}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],a=o[1],u=o[2],l=o[3],c={css:a,media:u,sourceMap:l};n[i]?n[i].parts.push(c):t.push(n[i]={id:i,parts:[c]})}return t}function i(e,t){var n=v(),r=g[g.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=g.indexOf(e);t>=0&&g.splice(t,1)}function u(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function c(e,t){var n,r,o;if(t.singleton){var i=b++;n=y||(y=u(t)),r=s.bind(null,n,i,!1),o=s.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=p.bind(null,n),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=u(t),r=f.bind(null,n),o=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function s(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var d={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,b=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],a=0;a<n.length;a++){var u=n[a],l=d[u.id];l.refs--,i.push(l)}if(e){var c=o(e);r(c,t)}for(var a=0;a<i.length;a++){var l=i[a];if(0===l.refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete d[l.id]}}}};var x=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var r=n(3);"string"==typeof r&&(r=[[e.id,r,""]]);n(8)(r,{});r.locals&&(e.exports=r.locals)}]);
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(1),i=r(o),a=n(1),u=r(a),l=n(2),c=r(l),s=Object.create(HTMLElement.prototype,{attachedCallback:{value:function(){var e=document.createElement("span");this.createShadowRoot().appendChild(e);var t={radius:+this.getAttribute("radius")||void 0,holeSize:+this.getAttribute("hole-size")||void 0,text:this.getAttribute("text"),value:+this.getAttribute("value")||void 0,total:+this.getAttribute("total")||void 0,backgroundColor:this.getAttribute("background-color"),valueColor:this.getAttribute("value-color")};u.default.render(i.default.createElement(c.default,t),e)}}});document.registerElement("donut-chart",{prototype:s})},function(e,t,n){(function(t){!function(t,r){e.exports=r(n(7),n(5))}(this,function(e,n){function r(e){var t=e.nodeName,n=e.attributes;e.attributes={},t.defaultProps&&x(e.attributes,t.defaultProps),n&&x(e.attributes,n),n=e.attributes,e.children&&!e.children.length&&(e.children=void 0),e.children&&(n.children=e.children)}function o(e,t){var n,r,o;if(t){for(o in t)if(n=I.test(o))break;if(n){r=e.attributes={};for(o in t)t.hasOwnProperty(o)&&(r[I.test(o)?o.replace(/([A-Z0-9])/,"-$1").toLowerCase():o]=t[o])}}}function i(e,t,r){var o=t&&t._preactCompatRendered;o&&o.parentNode!==t&&(o=null),o||(o=t.children[0]);for(var i=t.childNodes.length;i--;)t.childNodes[i]!==o&&t.removeChild(t.childNodes[i]);var a=n.render(e,t,o);return t&&(t._preactCompatRendered=a),"function"==typeof r&&r(),a&&a._component||a.base}function a(e,t,r,o){var a=n.h(G,{context:e.context},t),u=i(a,r);return o&&o(u),u}function u(e){var t=e._preactCompatRendered;return!(!t||t.parentNode!==e)&&(n.render(n.h(V),e,t),!0)}function l(e){return d.bind(null,e)}function c(e,t){for(var n=t||0;n<e.length;n++){var r=e[n];Array.isArray(r)?c(r):r&&"object"==typeof r&&!v(r)&&(r.props&&r.type||r.attributes&&r.nodeName||r.children)&&(e[n]=d(r.type||r.nodeName,r.props||r.attributes,r.children))}}function s(e){return"function"==typeof e&&!(e.prototype&&e.prototype.render)}function f(e){return N({displayName:e.displayName||e.name,render:function(t,n,r){return e(t,r)}})}function p(e){var t=e[Q];return t?t===!0?e:t:(t=f(e),Object.defineProperty(t,Q,{configurable:!0,value:!0}),t.displayName=e.displayName,t.propTypes=e.propTypes,t.defaultProps=e.defaultProps,Object.defineProperty(e,Q,{configurable:!0,value:t}),t)}function d(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return c(e,2),h(n.h.apply(void 0,e))}function h(e){e.preactCompatNormalized=!0,g(e),s(e.nodeName)&&(e.nodeName=p(e.nodeName));var t=e.attributes.ref,n=t&&typeof t;return!q||"string"!==n&&"number"!==n||(e.attributes.ref=y(t,q)),b(e),e}function m(e,t){for(var r=[],o=arguments.length-2;o-- >0;)r[o]=arguments[o+2];if(!v(e))return e;var i=e.attributes||e.props,a=n.h(e.nodeName||e.type,i,e.children||i&&i.children);return h(n.cloneElement.apply(void 0,[a,t].concat(r)))}function v(e){return e&&(e instanceof H||e.$$typeof===D)}function y(e,t){return t._refProxies[e]||(t._refProxies[e]=function(n){t&&t.refs&&(t.refs[e]=n,null===n&&(delete t._refProxies[e],t=null))})}function b(e){var t=e.nodeName,n=e.attributes;if(n&&"string"==typeof t){var r={};for(var o in n)r[o.toLowerCase()]=o;if(r.onchange){t=t.toLowerCase();var i="input"===t&&"checkbox"===String(n.type).toLowerCase()?"onclick":"oninput",a=r[i]||i;n[a]||(n[a]=A([n[r[i]],n[r.onchange]]))}}}function g(e){var t=e.attributes;if(t){var n=t.className||t.class;n&&(t.className=n)}}function x(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function _(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}function C(){}function N(e){function t(t,r){x(this,e),n&&E(this,n),k(this),U.call(this,t,r,B),P.call(this,t,r)}var n=e.mixins&&w(e.mixins);return e.statics&&x(t,e.statics),e.propTypes&&(t.propTypes=e.propTypes),e.defaultProps&&(t.defaultProps=e.defaultProps),e.getDefaultProps&&(t.defaultProps=e.getDefaultProps()),C.prototype=U.prototype,t.prototype=new C,t.prototype.constructor=t,t.displayName=e.displayName||"Component",t}function w(e){for(var t={},n=0;n<e.length;n++){var r=e[n];for(var o in r)r.hasOwnProperty(o)&&"function"==typeof r[o]&&(t[o]||(t[o]=[])).push(r[o])}return t}function E(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=A(t[n].concat(e[n]||n)))}function k(e){for(var t in e){var n=e[t];"function"!=typeof n||n.__bound||W.hasOwnProperty(t)||((e[t]=n.bind(e)).__bound=!0)}}function S(e,t,n){if("string"==typeof t&&(t=e.constructor.prototype[t]),"function"==typeof t)return t.apply(e,n)}function A(e){return function(){for(var t,n=arguments,r=this,o=0;o<e.length;o++){var i=S(r,e[o],n);"undefined"!=typeof i&&(t=i)}return t}}function P(e,t){T.call(this,e,t),this.componentWillReceiveProps=A([T,this.componentWillReceiveProps||"componentWillReceiveProps"]),this.render=A([T,O,this.render||"render",j])}function T(e,t){var n=this;if(e){var r=e.children;if(r&&Array.isArray(r)&&1===r.length&&(e.children=r[0],e.children&&"object"==typeof e.children&&(e.children.length=1,e.children[0]=e.children)),z){var o="function"==typeof this?this:this.constructor,i=this.propTypes||o.propTypes;if(i)for(var a in i)if(i.hasOwnProperty(a)&&"function"==typeof i[a]){var u=n.displayName||o.name,l=i[a](e,a,u,"prop");l&&console.error(new Error(l.message||l))}}}}function O(e){q=this}function j(){q===this&&(q=null)}function U(e,t,r){n.Component.call(this,e,t),this.getInitialState&&(this.state=this.getInitialState()),this.refs={},this._refProxies={},r!==B&&P.call(this,e,t)}function R(e,t){U.call(this,e,t)}e="default"in e?e.default:e;var L="15.1.0",M="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),D="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,W={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},I=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vert|word|writing|x)[A-Z]/,B={},z="undefined"!=typeof t&&t.env&&!1,V=function(){return null},H=n.h("").constructor;H.prototype.$$typeof=D,H.prototype.preactCompatUpgraded=!1,H.prototype.preactCompatNormalized=!1,Object.defineProperty(H.prototype,"type",{get:function(){return this.nodeName},set:function(e){this.nodeName=e},configurable:!0}),Object.defineProperty(H.prototype,"props",{get:function(){return this.attributes},set:function(e){this.attributes=e},configurable:!0});var $=n.options.vnode;n.options.vnode=function(e){if(!e.preactCompatUpgraded){e.preactCompatUpgraded=!0;var t=e.nodeName,n=e.attributes;n||(n=e.attributes={}),"function"==typeof t?(t[Q]===!0||t.prototype&&"isReactComponent"in t.prototype)&&(e.preactCompatNormalized||h(e),r(e)):n&&o(e,n)}$&&$(e)};var G=function(){};G.prototype.getChildContext=function(){return this.props.context},G.prototype.render=function(e){return e.children[0]};for(var q,F=[],J={map:function(e,t,n){return e=J.toArray(e),n&&n!==e&&(t=t.bind(n)),e.map(t)},forEach:function(e,t,n){e=J.toArray(e),n&&n!==e&&(t=t.bind(n)),e.forEach(t)},count:function(e){return e=J.toArray(e),e.length},only:function(e){if(e=J.toArray(e),1!==e.length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:function(e){return Array.isArray&&Array.isArray(e)?e:F.concat(e)}},Z={},K=M.length;K--;)Z[M[K]]=l(M[K]);var Q="undefined"!=typeof Symbol?Symbol.for("__preactCompatWrapper"):"__preactCompatWrapper",X=function(e){return e&&e.base||e};U.prototype=new n.Component,x(U.prototype,{constructor:U,isReactComponent:{},replaceState:function(e,t){var n=this;this.setState(e,t);for(var r in this.state)r in e||delete n.state[r]},getDOMNode:function(){return this.base},isMounted:function(){return!!this.base}}),R.prototype=new U({},{},B),R.prototype.shouldComponentUpdate=function(e,t){return _(this.props,e)||_(this.state,t)};var Y={version:L,DOM:Z,PropTypes:e,Children:J,render:i,createClass:N,createFactory:l,createElement:d,cloneElement:m,isValidElement:v,findDOMNode:X,unmountComponentAtNode:u,Component:U,PureComponent:R,unstable_renderSubtreeIntoContainer:a};return Y})}).call(t,n(6))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),c=r(l),s=n(9),f=r(s),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.radius,n=e.holeSize,r=e.text,o=e.value,i=e.total,a=e.backgroundColor,u=e.valueColor,l=t*(1-(1-n)/2),s=t*(1-n),p=2*Math.PI*l,d=o*p/i+" "+p,h="rotate(-90 "+t+","+t+")",m=l*n*.6;return c.default.createElement("div",{className:f.default.root},c.default.createElement("svg",{width:2*t+"px",height:2*t+"px"},c.default.createElement("circle",{r:l+"px",cx:t+"px",cy:t+"px",transform:h,strokeWidth:s,stroke:a,fill:"none"}),c.default.createElement("circle",{r:l+"px",cx:t+"px",cy:t+"px",transform:h,strokeWidth:s,strokeDasharray:d,fill:"none",stroke:u}),c.default.createElement("text",{x:t+"px",y:t+"px",dy:m/3+"px",textAnchor:"middle",fill:u,fontSize:m+"px"},~~(1e3*o/i)/10,"%")),c.default.createElement("div",{className:f.default.text},r))}}]),t}(c.default.Component);t.default=p,p.defaultProps={holeSize:.8,radius:65,backgroundColor:"#d1d8e7",valueColor:"#49649f"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".DonutChart__root_CuCoH{text-align:center;font-family:sans-serif}.DonutChart__text_2sTmw{text-align:center;margin-top:10px}",""]),t.locals={root:"DonutChart__root_CuCoH",text:"DonutChart__text_2sTmw"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){!function(e,n){n(t)}(this,function(e){function t(e,t,n){this.nodeName=e,this.attributes=t,this.children=n,this.key=t&&t.key}function n(e,n){var r,o,i,a,u=[];for(a=arguments.length;a-- >2;)B.push(arguments[a]);for(n&&n.children&&(B.length||B.push(n.children),delete n.children);B.length;)if((o=B.pop())instanceof Array)for(a=o.length;a--;)B.push(o[a]);else null!=o&&o!==!1&&("number"!=typeof o&&o!==!0||(o=String(o)),i="string"==typeof o,i&&r?u[u.length-1]+=o:(u.push(o),r=i));var l=new t(e,n||void 0,u);return I.vnode&&I.vnode(l),l}function r(e,t){if(t)for(var n in t)e[n]=t[n];return e}function o(e){return r({},e)}function i(e,t){for(var n=t.split("."),r=0;r<n.length&&e;r++)e=e[n[r]];return e}function a(e){return"function"==typeof e}function u(e){return"string"==typeof e}function l(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}function c(e,t){return n(e.nodeName,r(o(e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function s(e,t,n){var r=t.split(".");return function(t){for(var o=t&&t.target||this,a={},l=a,c=u(n)?i(t,n):o.nodeName?o.type.match(/^che|rad/)?o.checked:o.value:t,s=0;s<r.length-1;s++)l=l[r[s]]||(l[r[s]]=!s&&e.state[r[s]]||{});l[r[s]]=c,e.setState(a)}}function f(e){!e._dirty&&(e._dirty=!0)&&1==Z.push(e)&&(I.debounceRendering||$)(p)}function p(){var e,t=Z;for(Z=[];e=t.pop();)e._dirty&&R(e)}function d(e){var t=e&&e.nodeName;return t&&a(t)&&!(t.prototype&&t.prototype.render)}function h(e,t){return e.nodeName(y(e),t||G)}function m(e,t){return u(t)?e instanceof Text:u(t.nodeName)?v(e,t.nodeName):a(t.nodeName)?e._componentConstructor===t.nodeName||d(t):void 0}function v(e,t){return e.normalizedNodeName===t||V(e.nodeName)===V(t)}function y(e){var t=o(e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function b(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,n,r,o){if("className"===t&&(t="class"),"class"===t&&r&&"object"==typeof r&&(r=l(r)),"key"===t);else if("class"!==t||o)if("style"===t){if((!r||u(r)||u(n))&&(e.style.cssText=r||""),r&&"object"==typeof r){if(!u(n))for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"!=typeof r[i]||F[i]?r[i]:r[i]+"px"}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html);else if("o"==t[0]&&"n"==t[1]){var c=e._listeners||(e._listeners={});t=V(t.substring(2)),r?c[t]||e.addEventListener(t,_,!!J[t]):c[t]&&e.removeEventListener(t,_,!!J[t]),c[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e)x(e,t,null==r?"":r),null!=r&&r!==!1||e.removeAttribute(t);else{var s=o&&t.match(/^xlink\:?(.+)/);null==r||r===!1?s?e.removeAttributeNS("http://www.w3.org/1999/xlink",V(s[1])):e.removeAttribute(t):"object"==typeof r||a(r)||(s?e.setAttributeNS("http://www.w3.org/1999/xlink",V(s[1]),r):e.setAttribute(t,r))}else e.className=r||""}function x(e,t,n){try{e[t]=n}catch(e){}}function _(e){return this._listeners[e.type](I.event&&I.event(e)||e)}function C(e){if(b(e),e instanceof Element){e._component=e._componentConstructor=null;var t=e.normalizedNodeName||V(e.nodeName);(K[t]||(K[t]=[])).push(e)}}function N(e,t){var n=V(e),r=K[n]&&K[n].pop()||(t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e));return r.normalizedNodeName=n,r}function w(){for(var e;e=Q.pop();)I.afterMount&&I.afterMount(e),e.componentDidMount&&e.componentDidMount()}function E(e,t,n,r,o,i){X++||(Y=o instanceof SVGElement);var a=k(e,t,n,r);return o&&a.parentNode!==o&&o.appendChild(a),--X||i||w(),a}function k(e,t,n,r){for(var o=t&&t.attributes;d(t);)t=h(t,n);if(null==t&&(t=""),u(t)){if(e){if(e instanceof Text&&e.parentNode)return e.nodeValue!=t&&(e.nodeValue=t),e;P(e)}return document.createTextNode(t)}if(a(t.nodeName))return L(e,t,n,r);var i=e,l=t.nodeName,c=Y,s=t.children;if(u(l)||(l=String(l)),Y="svg"===l||"foreignObject"!==l&&Y,e){if(!v(e,l)){for(i=N(l,Y);e.firstChild;)i.appendChild(e.firstChild);P(e)}}else i=N(l,Y);s&&1===s.length&&"string"==typeof s[0]&&1===i.childNodes.length&&i.firstChild instanceof Text?i.firstChild.nodeValue!=s[0]&&(i.firstChild.nodeValue=s[0]):(s&&s.length||i.firstChild)&&S(i,s,n,r);var f=i[q];if(!f){i[q]=f={};for(var p=i.attributes,m=p.length;m--;)f[p[m].name]=p[m].value}return T(i,t.attributes,f),o&&"function"==typeof o.ref&&(f.ref=o.ref)(i),Y=c,i}function S(e,t,n,r){var o,i,u,l,c=e.childNodes,s=[],f={},p=0,d=0,h=c.length,v=0,y=t&&t.length;if(h)for(var b=0;b<h;b++){var g=c[b],x=y?(i=g._component)?i.__key:(i=g[q])?i.key:null:null;x||0===x?(p++,f[x]=g):s[v++]=g}if(y)for(var b=0;b<y;b++){u=t[b],l=null;var x=u.key;if(null!=x)p&&x in f&&(l=f[x],f[x]=void 0,p--);else if(!l&&d<v){for(o=d;o<v;o++)if(i=s[o],i&&m(i,u)){l=i,s[o]=void 0,o===v-1&&v--,o===d&&d++;break}!l&&d<v&&a(u.nodeName)&&r&&(l=s[d],s[d++]=void 0)}l=k(l,u,n,r),l&&l!==e&&l!==c[b]&&e.insertBefore(l,c[b]||null)}if(p)for(var b in f)f[b]&&P(f[b]);d<v&&A(s)}function A(e,t){for(var n=e.length;n--;)e[n]&&P(e[n],t)}function P(e,t){var n=e._component;n?M(n,!t):(e[q]&&e[q].ref&&e[q].ref(null),t||C(e),e.childNodes&&e.childNodes.length&&A(e.childNodes,t))}function T(e,t,n){for(var r in n)t&&r in t||null==n[r]||g(e,r,n[r],n[r]=void 0,Y);if(t)for(var o in t)"children"===o||"innerHTML"===o||o in n&&t[o]===("value"===o||"checked"===o?e[o]:n[o])||g(e,o,n[o],n[o]=t[o],Y)}function O(e){var t=e.constructor.name,n=ee[t];n?n.push(e):ee[t]=[e]}function j(e,t,n){var r=new e(t,n),o=ee[e.name];if(D.call(r,t,n),o)for(var i=o.length;i--;)if(o[i].constructor===e){r.nextBase=o[i].nextBase,o.splice(i,1);break}return r}function U(e,t,n,r,o){e._disable||(e._disable=!0,(e.__ref=t.ref)&&delete t.ref,(e.__key=t.key)&&delete t.key,!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&I.syncComponentUpdates===!1&&e.base?f(e):R(e,1,o)),e.__ref&&e.__ref(e))}function R(e,t,n,i){if(!e._disable){var u,l,c,s,f=e.props,p=e.state,m=e.context,v=e.prevProps||f,b=e.prevState||p,g=e.prevContext||m,x=e.base,_=e.nextBase,C=x||_,N=e._component;if(x&&(e.props=v,e.state=b,e.context=g,2!==t&&e.shouldComponentUpdate&&e.shouldComponentUpdate(f,p,m)===!1?u=!0:e.componentWillUpdate&&e.componentWillUpdate(f,p,m),e.props=f,e.state=p,e.context=m),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!u){for(e.render&&(l=e.render(f,p,m)),e.getChildContext&&(m=r(o(m),e.getChildContext()));d(l);)l=h(l,m);var k,S,A=l&&l.nodeName;if(a(A)){c=N;var T=y(l);c&&c.constructor===A?U(c,T,1,m):(k=c,c=j(A,T,m),c.nextBase=c.nextBase||_,c._parentComponent=e,e._component=c,U(c,T,0,m),R(c,1,n,!0)),S=c.base}else s=C,k=N,k&&(s=e._component=null),(C||1===t)&&(s&&(s._component=null),S=E(s,l,m,n||!x,C&&C.parentNode,!0));if(C&&S!==C&&c!==N){var O=C.parentNode;O&&S!==O&&(O.replaceChild(S,C),k||(C._component=null,P(C)))}if(k&&M(k,S!==C),e.base=S,S&&!i){for(var L=e,D=e;D=D._parentComponent;)(L=D).base=S;S._component=L,S._componentConstructor=L.constructor}}!x||n?Q.unshift(e):u||(e.componentDidUpdate&&e.componentDidUpdate(v,b,g),I.afterUpdate&&I.afterUpdate(e));var W,B=e._renderCallbacks;if(B)for(;W=B.pop();)W.call(e);X||i||w()}}function L(e,t,n,r){for(var o=e&&e._component,i=e,a=o&&e._componentConstructor===t.nodeName,u=a,l=y(t);o&&!u&&(o=o._parentComponent);)u=o.constructor===t.nodeName;return o&&u&&(!r||o._component)?(U(o,l,3,n,r),e=o.base):(o&&!a&&(M(o,!0),e=i=null),o=j(t.nodeName,l,n),e&&!o.nextBase&&(o.nextBase=e,i=null),U(o,l,1,n,r),e=o.base,i&&e!==i&&(i._component=null,P(i))),e}function M(e,t){I.beforeUnmount&&I.beforeUnmount(e);var n=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var r=e._component;r?M(r,t):n&&(n[q]&&n[q].ref&&n[q].ref(null),e.nextBase=n,t&&(b(n),O(e)),A(n.childNodes,!t)),e.__ref&&e.__ref(null),e.componentDidUnmount&&e.componentDidUnmount()}function D(e,t){this._dirty=!0,this.context=t,this.props=e,this.state||(this.state={})}function W(e,t,n){return E(n,e,{},!1,t)}var I={},B=[],z={},V=function(e){return z[e]||(z[e]=e.toLowerCase())},H="undefined"!=typeof Promise&&Promise.resolve(),$=H?function(e){H.then(e)}:setTimeout,G={},q="undefined"!=typeof Symbol?Symbol.for("preactattr"):"__preactattr_",F={boxFlex:1,boxFlexGroup:1,columnCount:1,fillOpacity:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,fontWeight:1,lineClamp:1,lineHeight:1,opacity:1,order:1,orphans:1,strokeOpacity:1,widows:1,zIndex:1,zoom:1},J={blur:1,error:1,focus:1,load:1,resize:1,scroll:1},Z=[],K={},Q=[],X=0,Y=!1,ee={};r(D.prototype,{linkState:function(e,t){var n=this._linkedStates||(this._linkedStates={});return n[e+t]||(n[e+t]=s(this,e,t))},setState:function(e,t){var n=this.state;this.prevState||(this.prevState=o(n)),r(n,a(e)?e(n,this.props):e),t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),f(this)},forceUpdate:function(){R(this,2)},render:function(){}}),e.h=n,e.cloneElement=c,e.Component=D,e.render=W,e.rerender=p,e.options=I})},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(s===setTimeout)return setTimeout(e,0);if((s===n||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(t){try{return s.call(null,e,0)}catch(t){return s.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){m&&d&&(m=!1,d.length?h=d.concat(h):v=-1,h.length&&u())}function u(){if(!m){var e=o(a);m=!0;for(var t=h.length;t;){for(d=h,h=[];++v<t;)d&&d[v].run();v=-1,t=h.length}d=null,m=!1,i(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var s,f,p=e.exports={};!function(){try{s="function"==typeof setTimeout?setTimeout:n}catch(e){s=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var d,h=[],m=!1,v=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new l(e,t)),1!==h.length||m||o(u)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){var r,o,i;!function(n,a){o=[t,e],r=a,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i))}(this,function(e,t){"use strict";function n(e){var t=e&&(C&&e[C]||e[N]);if("function"==typeof t)return t}function r(e){function t(t,n,r,o,i,a){if(o=o||w,a=a||r,null==n[r]){var u=x[i];return t?new Error("Required "+u+" `"+a+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,i,a)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e){function t(t,n,r,o,i){var a=t[n],u=m(a);if(u!==e){var l=x[o],c=v(a);return new Error("Invalid "+l+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return r(t)}function i(){return r(_.thatReturns(null))}function a(e){function t(t,n,r,o,i){var a=t[n];if(!Array.isArray(a)){var u=x[o],l=m(a);return new Error("Invalid "+u+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c<a.length;c++){var s=e(a,c,r,o,i+"["+c+"]");if(s instanceof Error)return s}return null}return r(t)}function u(){function e(e,t,n,r,o){if(!g.isValidElement(e[t])){var i=x[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a single ReactElement."))}return null}return r(e)}function l(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=x[o],u=e.name||w,l=y(t[n]);return new Error("Invalid "+a+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("instance of `"+u+"`."))}return null}return r(t)}function c(e){function t(t,n,r,o,i){for(var a=t[n],u=0;u<e.length;u++)if(a===e[u])return null;var l=x[o],c=JSON.stringify(e);return new Error("Invalid "+l+" `"+i+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+c+"."))}return r(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function s(e){function t(t,n,r,o,i){var a=t[n],u=m(a);if("object"!==u){var l=x[o];return new Error("Invalid "+l+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an object."))}for(var c in a)if(a.hasOwnProperty(c)){var s=e(a,c,r,o,i+"."+c);if(s instanceof Error)return s}return null}return r(t)}function f(e){function t(t,n,r,o,i){for(var a=0;a<e.length;a++){var u=e[a];if(null==u(t,n,r,o,i))return null}var l=x[o];return new Error("Invalid "+l+" `"+i+"` supplied to "+("`"+r+"`."))}return r(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function p(){function e(e,t,n,r,o){if(!h(e[t])){var i=x[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(e)}function d(e){function t(t,n,r,o,i){var a=t[n],u=m(a);if("object"!==u){var l=x[o];return new Error("Invalid "+l+" `"+i+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `object`."))}for(var c in e){var s=e[c];if(s){var f=s(a,c,r,o,i+"."+c);if(f)return f}}return null}return r(t)}function h(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(h);if(null===e||g.isValidElement(e))return!0;var t=n(e);if(!t)return!1;var r,o=t.call(e);if(t!==e.entries){for(;!(r=o.next()).done;)if(!h(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!h(i[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function v(e){var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){return e.constructor&&e.constructor.name?e.constructor.name:w}var b="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,g={};g.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===b};var x={prop:"prop",context:"context",childContext:"child context"},_={thatReturns:function(e){return function(){return e}}},C="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",w="<<anonymous>>",E={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:i(),arrayOf:a,element:u(),instanceOf:l,node:p(),objectOf:s,oneOf:c,oneOfType:f,shape:d};t.exports=E})},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=d[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(c(r.parts[i],t))}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(c(r.parts[i],t));d[r.id]={id:r.id,refs:1,parts:a}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],a=o[1],u=o[2],l=o[3],c={css:a,media:u,sourceMap:l};n[i]?n[i].parts.push(c):t.push(n[i]={id:i,parts:[c]})}return t}function i(e,t){var n=v(),r=g[g.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=g.indexOf(e);t>=0&&g.splice(t,1)}function u(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function c(e,t){var n,r,o;if(t.singleton){var i=b++;n=y||(y=u(t)),r=s.bind(null,n,i,!1),o=s.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=p.bind(null,n),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=u(t),r=f.bind(null,n),o=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function s(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var d={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,b=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],a=0;a<n.length;a++){var u=n[a],l=d[u.id];l.refs--,i.push(l)}if(e){var c=o(e);r(c,t)}for(var a=0;a<i.length;a++){var l=i[a];if(0===l.refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete d[l.id]}}}};var x=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var r=n(3);"string"==typeof r&&(r=[[e.id,r,""]]);n(8)(r,{});r.locals&&(e.exports=r.locals)}]);
{
"name": "future-charts-example",
"version": "0.9.9",
"version": "0.9.10",
"description": "Future Charts - Example",

@@ -5,0 +5,0 @@ "scripts": {

@@ -11,7 +11,7 @@ import React from 'react';

const props = {
radius : +this.getAttribute('radius'),
holeSize : +this.getAttribute('hole-size'),
radius : +this.getAttribute('radius') || undefined,
holeSize : +this.getAttribute('hole-size') || undefined,
text : this.getAttribute('text'),
value : +this.getAttribute('value'),
total : +this.getAttribute('total'),
value : +this.getAttribute('value') || undefined,
total : +this.getAttribute('total') || undefined,
backgroundColor : this.getAttribute('background-color'),

@@ -18,0 +18,0 @@ valueColor : this.getAttribute('value-color')

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc