1 line
24 KiB
JavaScript
1 line
24 KiB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports["rc-progress"]=e(require("react")):t["rc-progress"]=e(t.React)}("undefined"!=typeof self?self:this,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=50)}([function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e){var r=t.exports={version:"2.6.2"};"number"==typeof __e&&(__e=r)},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(4),o=r(12);t.exports=r(6)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(10),o=r(34),i=r(17),u=Object.defineProperty;e.f=r(6)?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){t.exports=!r(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(37),o=r(18);t.exports=function(t){return n(o(t))}},function(t,e,r){var n=r(21)("wks"),o=r(15),i=r(0).Symbol,u="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=n},function(t,e,r){var n=r(0),o=r(1),i=r(33),u=r(3),a=r(2),s=function(t,e,r){var c,f,p,l=t&s.F,y=t&s.G,h=t&s.S,d=t&s.P,v=t&s.B,b=t&s.W,g=y?o:o[e]||(o[e]={}),m=g.prototype,x=y?n:h?n[e]:(n[e]||{}).prototype;y&&(r=e);for(c in r)(f=!l&&x&&void 0!==x[c])&&a(g,c)||(p=f?x[c]:r[c],g[c]=y&&"function"!=typeof x[c]?r[c]:v&&f?i(p,n):b&&x[c]==p?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(p):d&&"function"==typeof p?i(Function.call,p):p,d&&((g.virtual||(g.virtual={}))[c]=p,t&s.R&&m&&!m[c]&&u(m,c,p)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,r){var n=r(5);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(36),o=r(22);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e){t.exports=!0},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){var n=r(5);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(21)("keys"),o=r(15);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e,r){var n=r(1),o=r(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(14)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(41),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e){t.exports={}},function(t,e,r){var n=r(10),o=r(66),i=r(22),u=r(20)("IE_PROTO"),a=function(){},s=function(){var t,e=r(35)("iframe"),n=i.length;for(e.style.display="none",r(67).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;n--;)delete s.prototype[i[n]];return s()};t.exports=Object.create||function(t,e){var r;return null!==t?(a.prototype=n(t),r=new a,a.prototype=null,r[u]=t):r=s(),void 0===e?r:o(r,e)}},function(t,e,r){var n=r(4).f,o=r(2),i=r(8)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e,r){e.f=r(8)},function(t,e,r){var n=r(0),o=r(1),i=r(14),u=r(29),a=r(4).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=r(83),i=n(o),u=r(87),a=n(u),s=r(41),c=n(s);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,c.default)(e)));t.prototype=(0,a.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?(0,i.default)(t,e):t.__proto__=e)}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(53),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}},function(t,e,r){var n=r(56);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){t.exports=!r(6)&&!r(11)(function(){return 7!=Object.defineProperty(r(35)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(5),o=r(0).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,r){var n=r(2),o=r(7),i=r(58)(!1),u=r(20)("IE_PROTO");t.exports=function(t,e){var r,a=o(t),s=0,c=[];for(r in a)r!=u&&n(a,r)&&c.push(r);for(;e.length>s;)n(a,r=e[s++])&&(~i(c,r)||c.push(r));return c}},function(t,e,r){var n=r(38);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(18);t.exports=function(t){return Object(n(t))}},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=r(61),i=n(o),u=r(73),a=n(u),s="function"==typeof a.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};e.default="function"==typeof a.default&&"symbol"===s(i.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,e,r){"use strict";var n=r(14),o=r(9),i=r(43),u=r(3),a=r(26),s=r(65),c=r(28),f=r(68),p=r(8)("iterator"),l=!([].keys&&"next"in[].keys()),y=function(){return this};t.exports=function(t,e,r,h,d,v,b){s(r,e,h);var g,m,x,O=function(t){if(!l&&t in w)return w[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},_=e+" Iterator",S="values"==d,k=!1,w=t.prototype,j=w[p]||w["@@iterator"]||d&&w[d],P=j||O(d),E=d?S?O("entries"):P:void 0,L="Array"==e?w.entries||j:j;if(L&&(x=f(L.call(new t)))!==Object.prototype&&x.next&&(c(x,_,!0),n||"function"==typeof x[p]||u(x,p,y)),S&&j&&"values"!==j.name&&(k=!0,P=function(){return j.call(this)}),n&&!b||!l&&!k&&w[p]||u(w,p,P),a[e]=P,a[_]=y,d)if(g={values:S?P:O("values"),keys:v?P:O("keys"),entries:E},b)for(m in g)m in w||i(w,m,g[m]);else o(o.P+o.F*(l||k),e,g);return g}},function(t,e,r){t.exports=r(3)},function(t,e,r){var n=r(36),o=r(22).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,r){var n=r(16),o=r(12),i=r(7),u=r(17),a=r(2),s=r(34),c=Object.getOwnPropertyDescriptor;e.f=r(6)?c:function(t,e){if(t=i(t),e=u(e,!0),s)try{return c(t,e)}catch(t){}if(a(t,e))return o(!n.f.call(t,e),t[e])}},function(e,r){e.exports=t},function(t,e,r){"use strict";var n=r(24),o=r.n(n),i=r(25),u=r.n(i),a=r(31),s=r.n(a),c=function(t){return function(t){function e(){return o()(this,e),u()(this,t.apply(this,arguments))}return s()(e,t),e.prototype.componentDidUpdate=function(){var t=this,e=Date.now(),r=!1;Object.keys(this.paths).forEach(function(n){var o=t.paths[n];if(o){r=!0;var i=o.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.prevTimeStamp&&e-t.prevTimeStamp<100&&(i.transitionDuration="0s, 0s")}}),r&&(this.prevTimeStamp=Date.now())},e.prototype.render=function(){return t.prototype.render.call(this)},e}(t)};e.a=c},function(t,e,r){"use strict";r.d(e,"a",function(){return i}),r.d(e,"b",function(){return a});var n=r(49),o=r.n(n),i={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},u=o.a.oneOfType([o.a.number,o.a.string]),a={className:o.a.string,percent:o.a.oneOfType([u,o.a.arrayOf(u)]),prefixCls:o.a.string,strokeColor:o.a.oneOfType([o.a.string,o.a.arrayOf(o.a.string)]),strokeLinecap:o.a.oneOf(["butt","round","square"]),strokeWidth:u,style:o.a.object,trailColor:o.a.string,trailWidth:u}},function(t,e,r){t.exports=r(90)()},function(t,e,r){r(51),t.exports=r(93)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(52),o=r(92);r.d(e,"Line",function(){return n.a}),r.d(e,"Circle",function(){return o.a}),e.default={Line:n.a,Circle:o.a}},function(t,e,r){"use strict";var n=r(32),o=r.n(n),i=r(40),u=r.n(i),a=r(24),s=r.n(a),c=r(25),f=r.n(c),p=r(31),l=r.n(p),y=r(46),h=r.n(y),d=r(47),v=r(48),b=function(t){function e(){var r,n,o;s()(this,e);for(var i=arguments.length,u=Array(i),a=0;a<i;a++)u[a]=arguments[a];return r=n=f()(this,t.call.apply(t,[this].concat(u))),n.paths={},o=r,f()(n,o)}return l()(e,t),e.prototype.render=function(){var t=this,e=this.props,r=e.className,n=e.percent,i=e.prefixCls,a=e.strokeColor,s=e.strokeLinecap,c=e.strokeWidth,f=e.style,p=e.trailColor,l=e.trailWidth,y=u()(e,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth"]);delete y.gapPosition;var d=Array.isArray(n)?n:[n],v=Array.isArray(a)?a:[a],b=c/2,g=100-c/2,m="M "+("round"===s?b:0)+","+b+"\n L "+("round"===s?g:100)+","+b,x="0 0 100 "+c,O=0;return h.a.createElement("svg",o()({className:i+"-line "+r,viewBox:x,preserveAspectRatio:"none",style:f},y),h.a.createElement("path",{className:i+"-line-trail",d:m,strokeLinecap:s,stroke:p,strokeWidth:l||c,fillOpacity:"0"}),d.map(function(e,r){var n={strokeDasharray:e+"px, 100px",strokeDashoffset:"-"+O+"px",transition:"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},o=v[r]||v[v.length-1];return O+=e,h.a.createElement("path",{key:r,className:i+"-line-path",d:m,strokeLinecap:s,stroke:o,strokeWidth:c,fillOpacity:"0",ref:function(e){t.paths[r]=e},style:n})}))},e}(y.Component);b.propTypes=v.b,b.defaultProps=v.a,e.a=Object(d.a)(b)},function(t,e,r){t.exports={default:r(54),__esModule:!0}},function(t,e,r){r(55),t.exports=r(1).Object.assign},function(t,e,r){var n=r(9);n(n.S+n.F,"Object",{assign:r(57)})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){"use strict";var n=r(13),o=r(23),i=r(16),u=r(39),a=r(37),s=Object.assign;t.exports=!s||r(11)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=s({},t)[r]||Object.keys(s({},e)).join("")!=n})?function(t,e){for(var r=u(t),s=arguments.length,c=1,f=o.f,p=i.f;s>c;)for(var l,y=a(arguments[c++]),h=f?n(y).concat(f(y)):n(y),d=h.length,v=0;d>v;)p.call(y,l=h[v++])&&(r[l]=y[l]);return r}:s},function(t,e,r){var n=r(7),o=r(59),i=r(60);t.exports=function(t){return function(e,r,u){var a,s=n(e),c=o(s.length),f=i(u,c);if(t&&r!=r){for(;c>f;)if((a=s[f++])!=a)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===r)return t||f||0;return!t&&-1}}},function(t,e,r){var n=r(19),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(19),o=Math.max,i=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):i(t,e)}},function(t,e,r){t.exports={default:r(62),__esModule:!0}},function(t,e,r){r(63),r(69),t.exports=r(29).f("iterator")},function(t,e,r){"use strict";var n=r(64)(!0);r(42)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},function(t,e,r){var n=r(19),o=r(18);t.exports=function(t){return function(e,r){var i,u,a=String(o(e)),s=n(r),c=a.length;return s<0||s>=c?t?"":void 0:(i=a.charCodeAt(s),i<55296||i>56319||s+1===c||(u=a.charCodeAt(s+1))<56320||u>57343?t?a.charAt(s):i:t?a.slice(s,s+2):u-56320+(i-55296<<10)+65536)}}},function(t,e,r){"use strict";var n=r(27),o=r(12),i=r(28),u={};r(3)(u,r(8)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(u,{next:o(1,r)}),i(t,e+" Iterator")}},function(t,e,r){var n=r(4),o=r(10),i=r(13);t.exports=r(6)?Object.defineProperties:function(t,e){o(t);for(var r,u=i(e),a=u.length,s=0;a>s;)n.f(t,r=u[s++],e[r]);return t}},function(t,e,r){var n=r(0).document;t.exports=n&&n.documentElement},function(t,e,r){var n=r(2),o=r(39),i=r(20)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,r){r(70);for(var n=r(0),o=r(3),i=r(26),u=r(8)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<a.length;s++){var c=a[s],f=n[c],p=f&&f.prototype;p&&!p[u]&&o(p,u,c),i[c]=i.Array}},function(t,e,r){"use strict";var n=r(71),o=r(72),i=r(26),u=r(7);t.exports=r(42)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,r):"values"==e?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){t.exports={default:r(74),__esModule:!0}},function(t,e,r){r(75),r(80),r(81),r(82),t.exports=r(1).Symbol},function(t,e,r){"use strict";var n=r(0),o=r(2),i=r(6),u=r(9),a=r(43),s=r(76).KEY,c=r(11),f=r(21),p=r(28),l=r(15),y=r(8),h=r(29),d=r(30),v=r(77),b=r(78),g=r(10),m=r(5),x=r(7),O=r(17),_=r(12),S=r(27),k=r(79),w=r(45),j=r(4),P=r(13),E=w.f,L=j.f,T=k.f,M=n.Symbol,C=n.JSON,A=C&&C.stringify,N=y("_hidden"),D=y("toPrimitive"),W={}.propertyIsEnumerable,F=f("symbol-registry"),I=f("symbols"),R=f("op-symbols"),G=Object.prototype,V="function"==typeof M,q=n.QObject,B=!q||!q.prototype||!q.prototype.findChild,H=i&&c(function(){return 7!=S(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=E(G,e);n&&delete G[e],L(t,e,r),n&&t!==G&&L(G,e,n)}:L,J=function(t){var e=I[t]=S(M.prototype);return e._k=t,e},U=V&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},z=function(t,e,r){return t===G&&z(R,e,r),g(t),e=O(e,!0),g(r),o(I,e)?(r.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),r=S(r,{enumerable:_(0,!1)})):(o(t,N)||L(t,N,_(1,{})),t[N][e]=!0),H(t,e,r)):L(t,e,r)},K=function(t,e){g(t);for(var r,n=v(e=x(e)),o=0,i=n.length;i>o;)z(t,r=n[o++],e[r]);return t},Y=function(t,e){return void 0===e?S(t):K(S(t),e)},Q=function(t){var e=W.call(this,t=O(t,!0));return!(this===G&&o(I,t)&&!o(R,t))&&(!(e||!o(this,t)||!o(I,t)||o(this,N)&&this[N][t])||e)},X=function(t,e){if(t=x(t),e=O(e,!0),t!==G||!o(I,e)||o(R,e)){var r=E(t,e);return!r||!o(I,e)||o(t,N)&&t[N][e]||(r.enumerable=!0),r}},Z=function(t){for(var e,r=T(x(t)),n=[],i=0;r.length>i;)o(I,e=r[i++])||e==N||e==s||n.push(e);return n},$=function(t){for(var e,r=t===G,n=T(r?R:x(t)),i=[],u=0;n.length>u;)!o(I,e=n[u++])||r&&!o(G,e)||i.push(I[e]);return i};V||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),e=function(r){this===G&&e.call(R,r),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),H(this,t,_(1,r))};return i&&B&&H(G,t,{configurable:!0,set:e}),J(t)},a(M.prototype,"toString",function(){return this._k}),w.f=X,j.f=z,r(44).f=k.f=Z,r(16).f=Q,r(23).f=$,i&&!r(14)&&a(G,"propertyIsEnumerable",Q,!0),h.f=function(t){return J(y(t))}),u(u.G+u.W+u.F*!V,{Symbol:M});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)y(tt[et++]);for(var rt=P(y.store),nt=0;rt.length>nt;)d(rt[nt++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=M(t)},keyFor:function(t){if(!U(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),u(u.S+u.F*!V,"Object",{create:Y,defineProperty:z,defineProperties:K,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),C&&u(u.S+u.F*(!V||c(function(){var t=M();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(m(e)||void 0!==t)&&!U(t))return b(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!U(e))return e}),n[1]=e,A.apply(C,n)}}),M.prototype[D]||r(3)(M.prototype,D,M.prototype.valueOf),p(M,"Symbol"),p(Math,"Math",!0),p(n.JSON,"JSON",!0)},function(t,e,r){var n=r(15)("meta"),o=r(5),i=r(2),u=r(4).f,a=0,s=Object.isExtensible||function(){return!0},c=!r(11)(function(){return s(Object.preventExtensions({}))}),f=function(t){u(t,n,{value:{i:"O"+ ++a,w:{}}})},p=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!s(t))return"F";if(!e)return"E";f(t)}return t[n].i},l=function(t,e){if(!i(t,n)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[n].w},y=function(t){return c&&h.NEED&&s(t)&&!i(t,n)&&f(t),t},h=t.exports={KEY:n,NEED:!1,fastKey:p,getWeak:l,onFreeze:y}},function(t,e,r){var n=r(13),o=r(23),i=r(16);t.exports=function(t){var e=n(t),r=o.f;if(r)for(var u,a=r(t),s=i.f,c=0;a.length>c;)s.call(t,u=a[c++])&&e.push(u);return e}},function(t,e,r){var n=r(38);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(7),o=r(44).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?a(t):o(n(t))}},function(t,e){},function(t,e,r){r(30)("asyncIterator")},function(t,e,r){r(30)("observable")},function(t,e,r){t.exports={default:r(84),__esModule:!0}},function(t,e,r){r(85),t.exports=r(1).Object.setPrototypeOf},function(t,e,r){var n=r(9);n(n.S,"Object",{setPrototypeOf:r(86).set})},function(t,e,r){var n=r(5),o=r(10),i=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=r(33)(Function.call,r(45).f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,r){return i(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:i}},function(t,e,r){t.exports={default:r(88),__esModule:!0}},function(t,e,r){r(89);var n=r(1).Object;t.exports=function(t,e){return n.create(t,e)}},function(t,e,r){var n=r(9);n(n.S,"Object",{create:r(27)})},function(t,e,r){"use strict";function n(){}var o=r(91);t.exports=function(){function t(t,e,r,n,i,u){if(u!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return r.checkPropTypes=n,r.PropTypes=r,r}},function(t,e,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,r){"use strict";var n=r(32),o=r.n(n),i=r(40),u=r.n(i),a=r(24),s=r.n(a),c=r(25),f=r.n(c),p=r(31),l=r.n(p),y=r(46),h=r.n(y),d=r(49),v=r.n(d),b=r(47),g=r(48),m=function(t){function e(){var r,n,o;s()(this,e);for(var i=arguments.length,u=Array(i),a=0;a<i;a++)u[a]=arguments[a];return r=n=f()(this,t.call.apply(t,[this].concat(u))),n.paths={},o=r,f()(n,o)}return l()(e,t),e.prototype.getPathStyles=function(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments[5],u=50-n/2,a=0,s=-u,c=0,f=-2*u;switch(i){case"left":a=-u,s=0,c=2*u,f=0;break;case"right":a=u,s=0,c=-2*u,f=0;break;case"bottom":s=u,f=2*u}var p="M 50,50 m "+a+","+s+"\n a "+u+","+u+" 0 1 1 "+c+","+-f+"\n a "+u+","+u+" 0 1 1 "+-c+","+f,l=2*Math.PI*u;return{pathString:p,pathStyle:{stroke:r,strokeDasharray:e/100*(l-o)+"px "+l+"px",strokeDashoffset:"-"+(o/2+t/100*(l-o))+"px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"}}},e.prototype.getStokeList=function(){var t=this,e=this.props,r=e.prefixCls,n=e.percent,o=e.strokeColor,i=e.strokeWidth,u=e.strokeLinecap,a=e.gapDegree,s=e.gapPosition,c=Array.isArray(n)?n:[n],f=Array.isArray(o)?o:[o],p=0;return c.map(function(e,n){var o=f[n]||f[f.length-1],c=t.getPathStyles(p,e,o,i,a,s),l=c.pathString,y=c.pathStyle;return p+=e,h.a.createElement("path",{key:n,className:r+"-circle-path",d:l,strokeLinecap:u,strokeWidth:0===e?0:i,fillOpacity:"0",style:y,ref:function(e){t.paths[n]=e}})})},e.prototype.render=function(){var t=this.props,e=t.prefixCls,r=t.strokeWidth,n=t.trailWidth,i=t.gapDegree,a=t.gapPosition,s=t.trailColor,c=t.strokeLinecap,f=t.style,p=t.className,l=u()(t,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className"]),y=this.getPathStyles(0,100,s,r,i,a),d=y.pathString,v=y.pathStyle;return delete l.percent,delete l.strokeColor,h.a.createElement("svg",o()({className:e+"-circle "+p,viewBox:"0 0 100 100",style:f},l),h.a.createElement("path",{className:e+"-circle-trail",d:d,stroke:s,strokeLinecap:c,strokeWidth:n||r,fillOpacity:"0",style:v}),this.getStokeList())},e}(y.Component);m.propTypes=o()({},g.b,{gapPosition:v.a.oneOf(["top","bottom","left","right"])}),m.defaultProps=o()({},g.a,{gapPosition:"top"}),e.a=Object(b.a)(m)},function(t,e){}]).default}); |