honkoma/priv/static/packs/flavours/glitch/home.js

80 lines
1.1 MiB
JavaScript
Raw Normal View History

2020-01-22 15:00:23 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[87,0],[function(e,t,n){"use strict";var r;function o(e,t,n,o){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});if(1===i)t.children=o;else if(i>1){for(var u=new Array(i),c=0;c<i;c++)u[c]=arguments[c+3];t.children=u}return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";e.exports=n(121)},function(e,t,n){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return i(e)?e:V(e)}function r(e){return s(e)?e:G(e)}function o(e){return u(e)?e:X(e)}function a(e){return i(e)&&!c(e)?e:Y(e)}function i(e){return!(!e||!e[f])}function s(e){return!(!e||!e[d])}function u(e){return!(!e||!e[p])}function c(e){return s(e)||u(e)}function l(e){return!(!e||!e[h])}t(r,n),t(o,n),t(a,n),n.isIterable=i,n.isKeyed=s,n.isIndexed=u,n.isAssociative=c,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=a;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",m=5,g=1<<m,b=g-1,v={},y={value:!1},_={value:!1};function w(e){return e.value=!1,e}function O(e){e&&(e.value=!0)}function k(){}function j(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function E(e){return void 0===e.size&&(e.size=e.__iterate(S)),e.size}function x(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?E(e)+t:t}function S(){return!0}function C(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return P(e,t,0)}function M(e,t){return P(e,t,t)}function P(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var I=0,F=1,N=2,D="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",A=D||R;function L(e){this.next=e}function U(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function z(){return{value:void 0,done:!0}}function q(e){return!!H(e)}function W(e){return e&&"function"==typeof e.next}function B(e){var t=H(e);return t&&t.call(e)}function H(e){var t=e&&(D&&e[D]||e[R]);if("function"==typeof t)return t}function K(e){return e&&"number"==typeof e.length}function V(e){return null==e?ae():i(e)?e.toSeq():function(e){var t=ue(e)||"object"==typeof e&&new te(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function G(e){return null==e?ae().toKeyedSeq():i(e)?s(e)?e.toSeq():e.fromEntrySeq():ie(e)}function X(e){return null==e?ae():i(e)?s(e)?e.entrySeq():e.toIndexedSeq():se(e)}function Y(e){return(null==e?ae():i(e)?s(e)?e.entrySeq():e:se(e)).toSetSeq()}L.prototype.toString=function(){return"[Iterator]"},L.KEYS=I,L.VALUES=F,L.ENTRIES=N,L.prototype.inspect=L.prototype.toSource=function(){return this.toString()},L.prototype[A]=function(){return this},t(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(e,t){return ce(this,e,t,!0)},V.prototype.__iterator=function(e,t){return le(this,e,t,!0)},t(G,V),G.prototype.toKeyedSeq=function(){return this},t(X,V),X.of=function(){return X(arguments)},X.prototype.toIndexedSeq=function(){return this},X.prototype.toString=func
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";var r;function o(e){r=e}function a(){return r}n.r(t),n.d(t,"setLocale",function(){return o}),n.d(t,"getLocale",function(){return a})},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),a=(n(5),o.a.createContext(null));var i=function(e){e()},s=function(){return i},u=null,c={notify:function(){}};var l=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=c,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t,n;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=(e=s(),t=[],n=[],{clear:function(){n=u,t=u},notify:function(){var r=t=n;e(function(){for(var e=0;e<r.length;e++)r[e]()})},get:function(){return n},subscribe:function(e){var r=!0;return n===t&&(n=t.slice()),n.push(e),function(){r&&t!==u&&(r=!1,n===t&&(n=t.slice()),n.splice(n.indexOf(e),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=c)},e}();var f=function(e){var t=e.store,n=e.context,i=e.children,s=Object(r.useMemo)(function(){var e=new l(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}},[t]),u=Object(r.useMemo)(function(){return t.getState()},[t]);Object(r.useEffect)(function(){var e=s.subscription;return e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[s,u]);var c=n||a;return o.a.createElement(c.Provider,{value:s},i)},d=n(22),p=n(31),h=n(54),m=n.n(h),g=n(24),b=n.n(g),v=n(78),y=[],_=[null,null];function w(e,t){var n=e[1];return[t.payload,n+1]}var O=function(){return[null,0]},k="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function j(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,s=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,u=n.methodName,c=void 0===u?"connectAdvanced":u,f=n.renderCountProp,h=void 0===f?void 0:f,g=n.shouldHandleStateChanges,j=void 0===g||g,E=n.storeKey,x=void 0===E?"store":E,S=n.withRef,C=void 0!==S&&S,T=n.forwardRef,M=void 0!==T&&T,P=n.context,I=void 0===P?a:P,F=Object(p.default)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);b()(void 0===h,"renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension"),b()(!C,"withRef is removed. To access the wrapped instance, use a ref on the connected component");b()("store"===x,"storeKey has been removed and does not do anything. To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect");var N=I;return function(t){var n=t.displayName||t.name||"Component",a=s(n),i=Object(d.a)({},F,{getDisplayName:s,methodName:c,renderCountProp:h,shouldHandleStateChanges:j,storeKey:x,displayName:a,wrappedComponentName:n,WrappedComponent:t}),u=F.pure;var f=u?r.useMemo:function(e){return e()};function g(n){var s=Object(r.us
/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/var r=/["'&<>]/;e.exports=function(e){var t,n=""+e,o=r.exec(n);if(!o)return n;var a="",i=0,s=0;for(i=o.index;i<n.length;i++){switch(n.charCodeAt(i)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}s!==i&&(a+=n.substring(s,i)),s=i+1,a+=t}return s!==i?a+n.substring(s,i):a}},function(e,t,n){"use strict";n.d(t,"k",function(){return a}),n.d(t,"j",function(){return s}),n.d(t,"f",function(){return u}),n.d(t,"g",function(){return c}),n.d(t,"e",function(){return l}),n.d(t,"m",function(){return m}),n.d(t,"i",function(){return v}),n.d(t,"d",function(){return w}),n.d(t,"h",function(){return j}),n.d(t,"n",function(){return S}),n.d(t,"b",function(){return T}),n.d(t,"c",function(){return M}),n.d(t,"a",function(){return P}),n.d(t,"l",function(){return F}),n.d(t,"t",function(){return D}),n.d(t,"x",function(){return R}),n.d(t,"p",function(){return A}),n.d(t,"v",function(){return L}),n.d(t,"o",function(){return U}),n.d(t,"u",function(){return z}),n.d(t,"r",function(){return q}),n.d(t,"q",function(){return W}),n.d(t,"s",function(){return B}),n.d(t,"w",function(){return H});var r=n(8),o=n(14),a="REBLOG_REQUEST",i="REBLOG_SUCCESS",s="REBLOG_FAIL",u="FAVOURITE_REQUEST",c="FAVOURITE_SUCCESS",l="FAVOURITE_FAIL",f="UNREBLOG_REQUEST",d="UNREBLOG_SUCCESS",p="UNREBLOG_FAIL",h="UNFAVOURITE_REQUEST",m="UNFAVOURITE_SUCCESS",g="UNFAVOURITE_FAIL",b="REBLOGS_FETCH_REQUEST",v="REBLOGS_FETCH_SUCCESS",y="REBLOGS_FETCH_FAIL",_="FAVOURITES_FETCH_REQUEST",w="FAVOURITES_FETCH_SUCCESS",O="FAVOURITES_FETCH_FAIL",k="PIN_REQUEST",j="PIN_SUCCESS",E="PIN_FAIL",x="UNPIN_REQUEST",S="UNPIN_SUCCESS",C="UNPIN_FAIL",T="BOOKMARK_REQUEST",M="BOOKMARKED_SUCCESS",P="BOOKMARKED_FAIL",I="UNBOOKMARKED_REQUEST",F="UNBOOKMARKED_SUCCESS",N="UNBOOKMARKED_FAIL";function D(e){return function(t,n){t(function(e){return{type:a,status:e}}(e)),Object(r.a)(n).post("/api/v1/statuses/"+e.get("id")+"/reblog").then(function(n){t(Object(o.i)(n.data.reblog)),t(function(e){return{type:i,status:e}}(e))}).catch(function(n){t(function(e,t){return{type:s,status:e,error:t}}(e,n))})}}function R(e){return function(t,n){t(function(e){return{type:f,status:e}}(e)),Object(r.a)(n).post("/api/v1/statuses/"+e.get("id")+"/unreblog").then(function(n){t(Object(o.i)(n.data)),t(function(e){return{type:d,status:e}}(e))}).catch(function(n){t(function(e,t){return{type:p,status:e,error:t}}(e,n))})}}function A(e){return function(t,n){t(function(e){return{type:u,status:e}}(e)),Object(r.a)(n).post("/api/v1/statuses/"+e.get("id")+"/favourite").then(function(n){t(Object(o.i)(n.data)),t(function(e){return{type:c,status:e}}(e))}).catch(function(n){t(function(e,t){return{type:l,status:e,error:t}}(e,n))})}}function L(e){return function(t,n){t(function(e){return{type:h,status:e}}(e)),Object(r.a)(n).post("/api/v1/statuses/"+e.get("id")+"/unfavourite").then(function(n){t(Object(o.i)(n.data)),t(function(e){return{type:m,status:e}}(e))}).catch(function(n){t(function(e,t){return{type:g,status:e,error:t}}(e,n))})}}function U(e){return function(t,n){t(function(e){return{type:T,status:e}}(e)),Object(r.a)(n).post("/api/v1/statuses/"+e.get("id")+"/bookmark").then(function(n){t(Object(o.i)(n.data)),t(function(e){return{type:M,status:e}}(e))}).catch(function(n){t(function(e,t){return{type:P,status:e,error:t}}(e,n))})}}function z(e){return function(t,n){t(function(e){return{type:I,status:e}}(e)),Object(r.a)(n).post("/api/v1/statuses/"+e.get("id")+"/unbookmark").then(function(n){t(Object(o.i)(n.data)),t(function(e){return{type:F,status:e}}(e))}).catch(function(n){t(function(e,t){return{type:N,status:e,error:t}}(e,n))})}}function q(e){return function(t,n){t(function(e){return{type:b,id:e}}(e)),Object(r.a)(n).get("/api/v1/statuses/"+e+"/reblogged_by").then(function(n){t(Object(o.g)(n.data)),t(function(e,t){return{type:v,id:e,accounts:t}}(e,n.data))}).catch(function(e){t(function(e,t){return{type:y,error:t}}(0,e))})}}function W(e){return function(t,n){t(function(e){return{type:_,id:e}}(e)),Object(r.a)(n).get("/api/v1/statuses/"+e+"/favourited_by").then(funct
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=i(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))o.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var f=0;f<s.length;f++)a.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t,n){"use strict";t.extend=function(e){var t,n,o,a,i=Array.prototype.slice.call(arguments,1);for(t=0,n=i.length;t<n;t+=1)if(o=i[t])for(a in o)r.call(o,a)&&(e[a]=o[a]);return e};var r=Object.prototype.hasOwnProperty;t.hop=r},function(e,t,n){"use strict";var r=n(15),o=n(0),a=n(7),i=n(3),s=n.n(i),u=n(105),c=n.n(u),l=["opacity","backgroundOpacity"],f=function(e){function t(){return e.apply(this,arguments)||this}return Object(a.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.style,n=e.defaultStyle,r=e.children;return Object.keys(t).forEach(function(e){var r;l.includes(e)||(t[e]=n[e]="object"==typeof(r=t[e])&&r&&"val"in r?r.val:r)}),Object(o.a)(c.a,{style:t,defaultStyle:n},void 0,r)},t}(s.a.Component);t.a=r.p?f:c.a},,function(e,t){},,function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(0),o=n(13),a=n(2),i=n(7),s=n(1),u=n(10),c=n.n(u),l=n(3),f=n.n(l),d=n(15),p=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,Object(s.a)(Object(a.a)(t),"state",{hovering:!1}),Object(s.a)(Object(a.a)(t),"handleMouseEnter",function(){t.props.animate||t.setState({hovering:!0})}),Object(s.a)(Object(a.a)(t),"handleMouseLeave",function(){t.props.animate||t.setState({hovering:!1})}),t}return Object(i.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.account,n=e.animate,a=e.className,i=e.inline,s=e.size,u=this.state.hovering,l=t.get("avatar"),f=t.get("avatar_static"),d=c()("account__avatar",{"account__avatar-inline":i},a),p=Object(o.default)({},this.props.style,{width:s+"px",height:s+"px",backgroundSize:s+"px "+s+"px"});return p.backgroundImage=u||n?"url("+l+")":"url("+f+")",Object(r.a)("div",{className:d,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,style:p,"data-avatar-of":"@"+t.get("acct")})},t}(f.a.PureComponent);Object(s.a)(p,"defaultProps",{animate:d.a,size:20,inline:!1})},,function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(0),o=n(2),a=n(7),i=n(1),s=n(3),u=n.n(s),c=n(10),l=n.n(c),f=n(15),d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=e.call.apply(e,[this].concat(r))||this,Object(i.a)(Object(o.a)(t),"handleEmojiMouseEnter",function(e){var t=e.target;t.src=t.getAttribute("data-original")}),Object(i.a)(Object(o.a)(t),"handleEmojiMouseLeave",function(e){var t=e.target;t.src=t.getAttribute("data-static")}),Object(i.a)(Object(o.a)(t),"setRef",function(e){t.node=e}),t}Object(a.a)(t,e);var n=t.prototype;return n._updateEmojis=function(){var e=this.node;if(e&&!f.a)for(var t=e.querySelectorAll(".custom-emoji"),n=0;n<t.length;n++){var r=t[n];r.classList.contains("status-emoji")||(r.classList.add("status-emoji"),r.addEventListener("mouseenter",this.handleEmojiMouseEnter,!1),r.addEventListener("mouseleave",this.handleEmojiMouseLeave,!1))}},n.componentDidMount=function(){this._updateEmojis()},n.componentDidUpdate=function(){this._updateEmojis()},n.render=function(){var e,t,n=this.props,o=n.account,a=n.className,i=n.inline,s=n.localDomain,c=n.others,f=n.onAccountClick,d=l()
/** @license React v16.8.6
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(85),o="function"==typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.concurrent_mode"):60111,p=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,b="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,a,i,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,i,s],c=0;(e=Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function w(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||y}function O(){}function k(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&v("85"),this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=w.prototype;var j=k.prototype=new O;j.constructor=k,r(j,w.prototype),j.isPureReactComponent=!0;var E={current:null},x={current:null},S=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r=void 0,o={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,r)&&!C.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];o.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:a,type:e,key:i,ref:s,props:o,_owner:x.current}}function M(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var P=/\/+/g,I=[];function F(e,t,n,r){if(I.length){var o=I.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>I.length&&I.push(e)}function D(e,t,n){return null==e?0:function e(t,n,r,o){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case a:case i:u=!0}}if(u)return r(o,t,""===n?"."+R(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var l=n+R(s=t[c],c);u+=e(s,l,r,o)}else if(l=null===t||"object"!=typeof t?null:"function"==typeof(l=b&&t[b]||t["@@iterator"])?l:null,"function"==typeof l)for(t=l.call(t),c=0;!(s=t.next()).done;)u+=e(s=s.value,l=n+R(s,c++),r,o);else"object"===s&&v("31","[object Object]"==(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return u}(e,"",t,n)}function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function A(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?U(e,r,n,function(e){return e}):null!=e&&(M(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),r.push(e))}function U(e,t,n,r,o){var
/** @license React v16.8.6
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(3),o=n(85),a=n(123);function i(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,a,i,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,i,s],c=0;(e=Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}r||i("227");var s=!1,u=null,c=!1,l=null,f={onError:function(e){s=!0,u=e}};function d(e,t,n,r,o,a,i,c,l){s=!1,u=null,function(e,t,n,r,o,a,i,s,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}.apply(f,arguments)}var p=null,h={};function m(){if(p)for(var e in h){var t=h[e],n=p.indexOf(e);if(-1<n||i("96",e),!b[n])for(var r in t.extractEvents||i("97",e),b[n]=t,n=t.eventTypes){var o=void 0,a=n[r],s=t,u=r;v.hasOwnProperty(u)&&i("99",u),v[u]=a;var c=a.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&g(c[o],s,u);o=!0}else a.registrationName?(g(a.registrationName,s,u),o=!0):o=!1;o||i("98",r,e)}}}function g(e,t,n){y[e]&&i("100",e),y[e]=t,_[e]=t.eventTypes[n].dependencies}var b=[],v={},y={},_={},w=null,O=null,k=null;function j(e,t,n){var r=e.type||"unknown-event";e.currentTarget=k(n),function(e,t,n,r,o,a,f,p,h){if(d.apply(this,arguments),s){if(s){var m=u;s=!1,u=null}else i("198"),m=void 0;c||(c=!0,l=m)}}(r,t,void 0,e),e.currentTarget=null}function E(e,t){return null==t&&i("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function x(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var S=null;function C(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)j(e,t[r],n[r]);else t&&j(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var T={injectEventPluginOrder:function(e){p&&i("101"),p=Array.prototype.slice.call(e),m()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];h.hasOwnProperty(t)&&h[t]===r||(h[t]&&i("102",t),h[t]=r,n=!0)}n&&m()}};function M(e,t){var n=e.stateNode;if(!n)return null;var r=w(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&i("231",t,typeof n),n)}function P(e){if(null!==e&&(S=E(S,e)),e=S,S=null,e&&(x(e,C),S&&i("95"),c))throw e=l,c=!1,l=null,e}var I=Math.random().toString(36).slice(2),F="__reactInternalInstance$"+I,N="__reactEventHandlers$"+I;function D(e){if(e[F])return e[F];for(;!e[F];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[F]).tag||6===e.tag?e:null}function R(e){return!(e=e[F])||5!==e.tag&&6!==e.tag?null:e}function A(e){if(5===e.tag||6===e.tag)return e.stateNode;i("33")}function L(e){return e[N]||null}function U(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function z(e,t,n){(t=M(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=E(n._dispatchListeners,t),n._dispatchInstances=E(n._dispatchInstances,e))}function q(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=U(t);for(t=n.length;0<t--;)z(n[t],"captured",e);for(t=0;t<n.length;t++)z(n[t],"bubbled",e)}}function W(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=M(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=E(n._dispatchListeners,t),n._dispatchInstances=E(n._dispatchInstances,e))}function B(e){e&&e.dispatchConfig.registrationName&&W
/** @license React v0.13.6
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
Object.defineProperty(t,"__esModule",{value:!0});var n=null,r=!1,o=3,a=-1,i=-1,s=!1,u=!1;function c(){if(!s){var e=n.expirationTime;u?k():u=!0,O(d,e)}}function l(){var e=n,t=n.next;if(n===t)n=null;else{var r=n.previous;n=r.next=t,t.previous=r}e.next=e.previous=null,r=e.callback,t=e.expirationTime,e=e.priorityLevel;var a=o,s=i;o=e,i=t;try{var u=r()}finally{o=a,i=s}if("function"==typeof u)if(u={callback:u,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=u.next=u.previous=u;else{r=null,e=n;do{if(e.expirationTime>=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=u,c()),(t=r.previous).next=r.previous=u,u.next=r,u.previous=t}}function f(){if(-1===a&&null!==n&&1===n.priorityLevel){s=!0;try{do{l()}while(null!==n&&1===n.priorityLevel)}finally{s=!1,null!==n?c():u=!1}}}function d(e){s=!0;var o=r;r=e;try{if(e)for(;null!==n;){var a=t.unstable_now();if(!(n.expirationTime<=a))break;do{l()}while(null!==n&&n.expirationTime<=a)}else if(null!==n)do{l()}while(null!==n&&!j())}finally{s=!1,r=o,null!==n?c():u=!1,f()}}var p,h,m=Date,g="function"==typeof setTimeout?setTimeout:void 0,b="function"==typeof clearTimeout?clearTimeout:void 0,v="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,y="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function _(e){p=v(function(t){b(h),e(t)}),h=g(function(){y(p),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var w=performance;t.unstable_now=function(){return w.now()}}else t.unstable_now=function(){return m.now()};var O,k,j,E=null;if("undefined"!=typeof window?E=window:void 0!==e&&(E=e),E&&E._schedMock){var x=E._schedMock;O=x[0],k=x[1],j=x[2],t.unstable_now=x[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var S=null,C=function(e){if(null!==S)try{S(e)}finally{S=null}};O=function(e){null!==S?setTimeout(O,0,e):(S=e,setTimeout(C,0,!1))},k=function(){S=null},j=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof v&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var T=null,M=!1,P=-1,I=!1,F=!1,N=0,D=33,R=33;j=function(){return N<=t.unstable_now()};var A=new MessageChannel,L=A.port2;A.port1.onmessage=function(){M=!1;var e=T,n=P;T=null,P=-1;var r=t.unstable_now(),o=!1;if(0>=N-r){if(!(-1!==n&&n<=r))return I||(I=!0,_(U)),T=e,void(P=n);o=!0}if(null!==e){F=!0;try{e(o)}finally{F=!1}}};var U=function e(t){if(null!==T){_(e);var n=t-N+R;n<R&&D<R?(8>n&&(n=8),R=n<D?D:n):D=n,N=t+R,M||(M=!0,L.postMessage(void 0))}else I=!1};O=function(e,t){T=e,P=t,F||0>t?L.postMessage(void 0):I||(I=!0,_(U))},k=function(){T=null,M=!1,P=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=o,i=a;o=e,a=t.unstable_now();try{return n()}finally{o=r,a=i,f()}},t.unstable_next=function(e){switch(o){case 1:case 2:case 3:var n=3;break;default:n=o}var r=o,i=a;o=n,a=t.unstable_now();try{return e()}finally{o=r,a=i,f()}},t.unstable_scheduleCallback=function(e,r){var i=-1!==a?a:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=i+r.timeout;else switch(o){case 1:r=i+-1;break;case 2:r=i+250;break;case 5:r=i+1073741823;break;case 4:r=i+1e4;break;default:r=i+5e3}if(e={callback:e,priorityLevel:o,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,c();else{i=null;var s=n;do{if(s.expirationTime>r){i=s;break}s=s.next}while(s!==n);null===i?i=n:i===n&&(n=e,c()),(r=i.previous).next=i.previous=e,e.next=i,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.u
/** @license React v16.9.0
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case i:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof){case l:case p:case c:return e;default:return t}}case b:case g:case a:return t}}}function w(e){return _(e)===d}t.typeOf=_,t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=o,t.ForwardRef=p,t.Fragment=i,t.Lazy=b,t.Memo=g,t.Portal=a,t.Profiler=u,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===u||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y)},t.isAsyncMode=function(e){return w(e)||_(e)===f},t.isConcurrentMode=w,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===b},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===a},t.isProfiler=function(e){return _(e)===u},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===h}},function(e,t,n){"use strict";var r=n(129),o=n(134);r.default.__addLocaleData(o.default),r.default.defaultLocale="en",t.default=r.default},function(e,t,n){"use strict";var r=n(86),o=n(130),a=n(131),i=n(132);function s(e,t,n){var r="string"==typeof e?s.__parse(e):e;if(!r||"messageFormatPattern"!==r.type)throw new TypeError("A message must be provided as a String or AST.");n=this._mergeFormats(s.formats,n),o.defineProperty(this,"_locale",{value:this._resolveLocale(t)});var a=this._findPluralRuleFunction(this._locale),i=this._compilePattern(r,t,n,a),u=this;this.format=function(t){try{return u._format(i,t)}catch(t){throw t.variableId?new Error("The intl string context variable '"+t.variableId+"' was not provided to the string '"+e+"'"):t}}}t.default=s,o.defineProperty(s,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),o.defineProperty(s,"__localeData__",{value:o.objCreate(null)}),o.defineProperty(s,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");s.__localeData__[e.locale.toLowerCase()]=e}}),o.defineProperty(s,"__parse",{value:i.default.parse}),o.defineProperty(s,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),s.prototype.resolvedOptions=function(){return{locale:this._locale}},s.prototype._compilePattern=function(e,t,n,r){return new a.default(t,n,r).compile(e)},s.prototype._findPluralRuleFunction=function(e){for(var t=s.__localeData__,n=t[e.toLowerCase()];n;){if(n.pluralRuleFunc
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var r=n(38),o=n(230),a=n(329),i=n(330),s=n(235);function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method=e.method?e.method.toLowerCase():"get";var t=[i,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){u.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}}),r.forEach(["post","put","patch"],function(e){u.prototype[e]=function(t,n,o){return this.request(r.merge(o||{},{method:e,url:t,data:n}))}}),e.exports=u},function(e,t,n){"use strict";var r=n(38);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},function(e,t,n){"use strict";var r=n(38),o=n(331),a=n(231),i=n(232),s=n(338),u=n(339);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.baseURL&&!s(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||i.adapter)(e).then(function(t){return c(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(c(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(38);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";var r=n(38);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(234);e.exports=function(e,t,n){var o=n.config.validateStatus;!o||o(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(38),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,i={};return e?(r.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(i[t]&&o.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}}),i):i}},function(e,t,n){"use strict";var r=n(38);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/
/**
* @license MIT
* @fileOverview Favico animations
* @author Miroslav Magda, http://blog.ejci.net
* @version 0.3.10
*/
/**
* @license MIT
* @fileOverview Favico animations
* @author Miroslav Magda, http://blog.ejci.net
* @version 0.3.10
*/
o=function(e){"use strict";e=e||{};var t,n,r,o,a,i,s,u,c,l,f,d,p,h,m,g,b={bgColor:"#d00",textColor:"#fff",fontFamily:"sans-serif",fontStyle:"bold",type:"circle",position:"down",animation:"slide",elementId:!1,dataUrl:!1,win:window};(p={}).ff="undefined"!=typeof InstallTrigger,p.chrome=!!window.chrome,p.opera=!!window.opera||navigator.userAgent.indexOf("Opera")>=0,p.ie=
/*@cc_on!@*/
!1,p.safari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,p.supported=p.chrome||p.ff||p.opera;var v=[];f=function(){},u=d=!1;var y={ready:function(){u=!0,y.reset(),f()},reset:function(){u&&(v=[],c=!1,l=!1,i.clearRect(0,0,o,r),i.drawImage(s,0,0,o,r),k.setIcon(a),window.clearTimeout(h),window.clearTimeout(m))}};y.start=function(){if(u&&!l&&v.length>0){l=!0;var e=function(){["type","animation","bgColor","textColor","fontFamily","fontStyle"].forEach(function(e){e in v[0].options&&(t[e]=v[0].options[e])}),x.run(v[0].options,function(){c=v[0],l=!1,v.length>0&&(v.shift(),y.start())},!1)};c?x.run(c.options,function(){e()},!0):e()}};var _={},w=function(e){return e.n="number"==typeof e.n?Math.abs(0|e.n):e.n,e.x=o*e.x,e.y=r*e.y,e.w=o*e.w,e.h=r*e.h,e.len=(""+e.n).length,e};function O(e){if(e.paused||e.ended||d)return!1;try{i.clearRect(0,0,o,r),i.drawImage(e,0,0,o,r)}catch(e){}m=setTimeout(function(){O(e)},x.duration),k.setIcon(a)}_.circle=function(e){var n=!1;2===(e=w(e)).len?(e.x=e.x-.4*e.w,e.w=1.4*e.w,n=!0):e.len>=3&&(e.x=e.x-.65*e.w,e.w=1.65*e.w,n=!0),i.clearRect(0,0,o,r),i.drawImage(s,0,0,o,r),i.beginPath(),i.font=t.fontStyle+" "+Math.floor(e.h*(e.n>99?.85:1))+"px "+t.fontFamily,i.textAlign="center",n?(i.moveTo(e.x+e.w/2,e.y),i.lineTo(e.x+e.w-e.h/2,e.y),i.quadraticCurveTo(e.x+e.w,e.y,e.x+e.w,e.y+e.h/2),i.lineTo(e.x+e.w,e.y+e.h-e.h/2),i.quadraticCurveTo(e.x+e.w,e.y+e.h,e.x+e.w-e.h/2,e.y+e.h),i.lineTo(e.x+e.h/2,e.y+e.h),i.quadraticCurveTo(e.x,e.y+e.h,e.x,e.y+e.h-e.h/2),i.lineTo(e.x,e.y+e.h/2),i.quadraticCurveTo(e.x,e.y,e.x+e.h/2,e.y)):i.arc(e.x+e.w/2,e.y+e.h/2,e.h/2,0,2*Math.PI),i.fillStyle="rgba("+t.bgColor.r+","+t.bgColor.g+","+t.bgColor.b+","+e.o+")",i.fill(),i.closePath(),i.beginPath(),i.stroke(),i.fillStyle="rgba("+t.textColor.r+","+t.textColor.g+","+t.textColor.b+","+e.o+")","number"==typeof e.n&&e.n>999?i.fillText((e.n>9999?9:Math.floor(e.n/1e3))+"k+",Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-.2*e.h)):i.fillText(e.n,Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-.15*e.h)),i.closePath()},_.rectangle=function(e){2===(e=w(e)).len?(e.x=e.x-.4*e.w,e.w=1.4*e.w):e.len>=3&&(e.x=e.x-.65*e.w,e.w=1.65*e.w),i.clearRect(0,0,o,r),i.drawImage(s,0,0,o,r),i.beginPath(),i.font=t.fontStyle+" "+Math.floor(e.h*(e.n>99?.9:1))+"px "+t.fontFamily,i.textAlign="center",i.fillStyle="rgba("+t.bgColor.r+","+t.bgColor.g+","+t.bgColor.b+","+e.o+")",i.fillRect(e.x,e.y,e.w,e.h),i.fillStyle="rgba("+t.textColor.r+","+t.textColor.g+","+t.textColor.b+","+e.o+")","number"==typeof e.n&&e.n>999?i.fillText((e.n>9999?9:Math.floor(e.n/1e3))+"k+",Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-.2*e.h)):i.fillText(e.n,Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-.15*e.h)),i.closePath()};var k={};function j(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return!!t&&{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}}function E(e,t){var n,r={};for(n in e)r[n]=e[n];for(n in t)r[n]=t[n];return r}k.getIcon=function(){var e=!1;return t.element?e=t.element:t.elementId?(e=g.getElementById(t.elementId)).setAttribute("href",e.getAttribute("src")):!1===(e=function(){for(var e=g.getElementsByTagName("head")[0].getElementsByTagName("link"),t=e.length-1;t>=0;t--)if(/(^|\s)icon(\s|$)/i.test(e[t].getAttribute("rel")))return e[t];return!1}())&&((e=g.createElement("link")).setAttribute("rel","icon"),g.getElementsByTagName("head")[0].appendChild(e)),e.setAttribute("type","image/png"),e},k.setIcon=function(e){var r=e.toDataURL("image/png");if(t.dataUrl&&t.dataUrl(r),t.element)t.element.setAttribute("href",r),t.element.setAttribute("src",r);else if(t.elementId){var o=g.getElementById(t.elementId);o.setAttribute("href",r),o.setAttribute("src",r)}else if(p.ff||p.opera){var a=n;n=g.createElement("link"),p.opera&&n.setAttribute("rel","icon"),n.setAttribute("rel","icon"),n.setAttribute("type","image/png"),g.getElementsByTagName("head")[0].appendChild(n),n.setAttribute("href",r),a.parentNode&&a.parentNode.removeChild(a)}else n.setAttribute("href",r)};var x={duration:40,types
2018-09-16 21:17:34 +00:00
//# sourceMappingURL=home.js.map