!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("d3")):"function"==typeof define&&define.amd?define(["d3"],r):"object"==typeof exports?exports.DonutWithRoundTip=r(require("d3")):t.DonutWithRoundTip=r(t.d3)}(window,(function(t){return function(t){var r={};function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)n.d(e,o,function(r){return t[r]}.bind(null,o));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=13)}([function(r,n){r.exports=t},function(t,r,n){t.exports=n(14)},function(t,r,n){var e=n(3);t.exports=!e((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,r){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,r,n){(function(r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r&&r)||Function("return this")()}).call(this,n(18))},function(t,r){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,r){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},function(t,r){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,r,n){var e=n(5);t.exports=function(t,r){if(!e(t))return t;var n,o;if(r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!e(o=n.call(t)))return o;if(!r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,r){var n={}.hasOwnProperty;t.exports=function(t,r){return n.call(t,r)}},function(t,r,n){var e=n(2),o=n(3),i=n(24);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,r){t.exports={}},function(t,r){t.exports="\t\n\v\f\r 혻�����곣�귘�꺿�꾟�끸�녳�뉍�댿�됤�듼��걼��\u2028\u2029\ufeff"},function(t,r,n){"use strict";n.r(r),n.d(r,"default",(function(){return c}));var e=n(1),o=n.n(e),i=n(0);function u(t){return!isNaN(t)&&isFinite(t)}var c=function(){function t(t){var r=void 0===t?{}:t,n=r.el,e=r.diameter,c=r.holeDiameter,a=r.endDegree,f=r.color,s=r.backColor,l=r.holeColor,p=r.duration,d=r.easing;if(n){n.innerHTML="";var h,v=u(h=o()(e))?h:n.clientWidth,y=function t(r,n){var e=.8*r;if("number"==typeof n){var i=o()(n);u(i)&&i0&&(e=i)}else if("string"==typeof n){var c=n.match(/%/),a=o()(n);if(!c)return t(r,a);u(a)&&c&&a<100&&a>0&&(e=r*(a/100))}return e}(v,c);v<1||(this.thickness=(v-y)/2,this.middleRadius=y/2+this.thickness/2,this.endDegree=function(t){return u(t)?t:0}(o()(a)),this.duration=function(t){return u(t)?t:1e3}(o()(p)),this.color=i.color(f)||i.color("grey"),this.backColor=i.color(s)||i.color("lightgrey"),this.holeColor=i.color(l)||i.color("white"),this.easing=i[d]||i.easeExpInOut,this.g=function(t,r){return i.select(t).append("svg").attr("width",r).attr("height",r).append("g").attr("transform","translate("+r/2+","+r/2+")")}(n,v),this.backDonut=this.drawBackDonut(),this.donut=this.drawDonut(),this.animate())}}var r=t.prototype;return r.drawBackDonut=function(){var t=this.g,r=this.thickness,n=this.middleRadius,e=this.backColor,o=this.holeColor;return t.append("circle").attr("r",n).attr("fill",o.toString()).attr("stroke",e.toString()).attr("stroke-width",r)},r.drawDonut=function(){var t=this.middleRadius,r=this.thickness,n=this.color;return this.g.append("circle").attr("r",t).attr("fill","none").attr("transform","rotate(-90)").attr("stroke",n.toString()).attr("stroke-width",r).attr("stroke-linecap","round").attr("stroke-dasharray",2*Math.PI*t).attr("stroke-dashoffset",2*Math.PI*t)},r.animate=function(){var t=this.middleRadius,r=this.donut,n=this.duration,e=this.endDegree,o=this.easing,u=2*Math.PI*t;r&&r.transition().duration(n).ease(o).attrTween("stroke-dashoffset",(function(){return i.interpolate(u,u-u*(e/360))}))},t}()},function(t,r,n){var e=n(15);t.exports=e},function(t,r,n){n(16);var e=n(11);t.exports=e.parseFloat},function(t,r,n){var e=n(17),o=n(31);e({global:!0,forced:parseFloat!=o},{parseFloat:o})},function(t,r,n){"use strict";var e=n(4),o=n(19).f,i=n(25),u=n(11),c=n(26),a=n(28),f=n(9),s=function(t){var r=function(r,n,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,e)}return t.apply(this,arguments)};return r.prototype=t.prototype,r};t.exports=function(t,r){var n,l,p,d,h,v,y,g,b=t.target,x=t.global,w=t.stat,m=t.proto,j=x?e:w?e[b]:(e[b]||{}).prototype,O=x?u:u[b]||(u[b]={}),k=O.prototype;for(p in r)n=!i(x?p:b+(w?".":"#")+p,t.forced)&&j&&f(j,p),h=O[p],n&&(v=t.noTargetGet?(g=o(j,p))&&g.value:j[p]),d=n&&v?v:r[p],n&&typeof h==typeof d||(y=t.bind&&n?c(d,e):t.wrap&&n?s(d):m&&"function"==typeof d?c(Function.call,d):d,(t.sham||d&&d.sham||h&&h.sham)&&a(y,"sham",!0),O[p]=y,m&&(f(u,l=b+"Prototype")||a(u,l,{}),u[l][p]=d,t.real&&k&&!k[p]&&a(k,p,d)))}},function(t,r){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,r,n){var e=n(2),o=n(20),i=n(6),u=n(21),c=n(8),a=n(9),f=n(10),s=Object.getOwnPropertyDescriptor;r.f=e?s:function(t,r){if(t=u(t),r=c(r,!0),f)try{return s(t,r)}catch(t){}if(a(t,r))return i(!o.f.call(t,r),t[r])}},function(t,r,n){"use strict";var e={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!e.call({1:2},1);r.f=i?function(t){var r=o(this,t);return!!r&&r.enumerable}:e},function(t,r,n){var e=n(22),o=n(7);t.exports=function(t){return e(o(t))}},function(t,r,n){var e=n(3),o=n(23),i="".split;t.exports=e((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,r){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,r,n){var e=n(4),o=n(5),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,r,n){var e=n(3),o=/#|\.prototype\./,i=function(t,r){var n=c[u(t)];return n==f||n!=a&&("function"==typeof r?e(r):!!r)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,r,n){var e=n(27);t.exports=function(t,r,n){if(e(t),void 0===r)return t;switch(n){case 0:return function(){return t.call(r)};case 1:return function(n){return t.call(r,n)};case 2:return function(n,e){return t.call(r,n,e)};case 3:return function(n,e,o){return t.call(r,n,e,o)}}return function(){return t.apply(r,arguments)}}},function(t,r){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,r,n){var e=n(2),o=n(29),i=n(6);t.exports=e?function(t,r,n){return o.f(t,r,i(1,n))}:function(t,r,n){return t[r]=n,t}},function(t,r,n){var e=n(2),o=n(10),i=n(30),u=n(8),c=Object.defineProperty;r.f=e?c:function(t,r,n){if(i(t),r=u(r,!0),i(n),o)try{return c(t,r,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},function(t,r,n){var e=n(5);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},function(t,r,n){var e=n(4),o=n(32).trim,i=n(12),u=e.parseFloat,c=1/u(i+"-0")!=-1/0;t.exports=c?function(t){var r=o(String(t)),n=u(r);return 0===n&&"-"==r.charAt(0)?-0:n}:u},function(t,r,n){var e=n(7),o="["+n(12)+"]",i=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),c=function(t){return function(r){var n=String(e(r));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(u,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}}]).default}));