UNPKG

twreporter-react

Version:

React-Redux site for The Reporter Foundation in Taiwan

3 lines 43.3 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(e.ReactIntl=e.ReactIntl||{},e.React)}(this,function(e,t){"use strict";function r(e,t){return t={exports:{}},e(t,t.exports),t.exports}function n(e){var t,r,n,o,a=Array.prototype.slice.call(arguments,1);for(t=0,r=a.length;r>t;t+=1)if(n=a[t])for(o in n)H.call(n,o)&&(e[o]=n[o]);return e}function o(e,t,r){this.locales=e,this.formats=t,this.pluralFn=r}function a(e){this.id=e}function i(e,t,r,n,o){this.id=e,this.useOrdinal=t,this.offset=r,this.options=n,this.pluralFn=o}function s(e,t,r,n){this.id=e,this.offset=t,this.numberFormat=r,this.string=n}function l(e,t){this.id=e,this.options=t}function u(e,t,r){var n="string"==typeof e?u.__parse(e):e;if(!n||"messageFormatPattern"!==n.type)throw new TypeError("A message must be provided as a String or AST.");r=this._mergeFormats(u.formats,r),Z(this,"_locale",{value:this._resolveLocale(t)});var o=this._findPluralRuleFunction(this._locale),a=this._compilePattern(n,t,r,o),i=this;this.format=function(e){return i._format(a,e)}}function c(e){return 400*e/146097}function p(e,t){e=+e,t=+t;var r=$(t-e),n=$(r/1e3),o=$(n/60),a=$(o/60),i=$(a/24),s=$(i/7),l=c(i),u=$(12*l),p=$(l);return{millisecond:r,second:n,minute:o,hour:a,day:i,week:s,month:u,year:p}}function f(e,t){t=t||{},re(e)&&(e=e.concat()),Y(this,"_locale",{value:this._resolveLocale(e)}),Y(this,"_options",{value:{style:this._resolveStyle(t.style),units:this._isValidUnits(t.units)&&t.units}}),Y(this,"_locales",{value:e}),Y(this,"_fields",{value:this._findFields(this._locale)}),Y(this,"_messages",{value:ee(null)});var r=this;this.format=function(e,t){return r._format(e,t)}}function d(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=Array.isArray(e)?e:[e];t.forEach(function(e){e&&e.locale&&(u.__addLocaleData(e),f.__addLocaleData(e))})}function h(e){for(var t=(e||"").split("-");t.length>0;){if(m(t.join("-")))return!0;t.pop()}return!1}function m(e){var t=e&&e.toLowerCase();return!(!u.__localeData__[t]||!f.__localeData__[t])}function y(e){return(""+e).replace(xe,function(e){return Ce[e]})}function v(e,t){var r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];return t.reduce(function(t,n){return e.hasOwnProperty(n)?t[n]=e[n]:r.hasOwnProperty(n)&&(t[n]=r[n]),t},{})}function g(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.intl;Te(t,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function b(e,t){if(e===t)return!0;if("object"!==("undefined"==typeof e?"undefined":G["typeof"](e))||null===e||"object"!==("undefined"==typeof t?"undefined":G["typeof"](t))||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),a=0;a<r.length;a++)if(!o(r[a])||e[r[a]]!==t[r[a]])return!1;return!0}function _(e,t,r){var n=e.props,o=e.state,a=e.context,i=void 0===a?{}:a,s=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],l=i.intl,u=void 0===l?{}:l,c=s.intl,p=void 0===c?{}:c;return!b(t,n)||!b(r,o)||!(p===u||b(v(p,Pe),v(u,Pe)))}function w(e){return e.displayName||e.name||"Component"}function F(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.intlPropName,o=void 0===n?"intl":n,a=r.withRef,i=void 0===a?!1:a,s=function(t){function r(e,t){G.classCallCheck(this,r);var n=G.possibleConstructorReturn(this,Object.getPrototypeOf(r).call(this,e,t));return g(t),n}return G.inherits(r,t),G.createClass(r,[{key:"getWrappedInstance",value:function(){return Te(i,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this.refs.wrappedInstance}},{key:"render",value:function(){return U.createElement(e,G["extends"]({},this.props,G.defineProperty({},o,this.context.intl),{ref:i?"wrappedInstance":null}))}}]),r}(t.Component);return s.displayName="InjectIntl("+w(e)+")",s.contextTypes={intl:ye},s.WrappedComponent=e,s}function T(e){return e}function P(e){return u.prototype._resolveLocale(e)}function C(e){return u.prototype._findPluralRuleFunction(e)}function x(e){var t=ke(null);return function(){var r=Array.prototype.slice.call(arguments),n=O(r),o=n&&t[n];return o||(o=new(je.apply(e,[null].concat(r))),n&&(t[n]=o)),o}}function O(e){if("undefined"!=typeof JSON){var t,r,n,o=[];for(t=0,r=e.length;r>t;t+=1)n=e[t],n&&"object"===("undefined"==typeof n?"undefined":G["typeof"](n))?o.push(j(n)):o.push(n);return JSON.stringify(o)}}function j(e){var t,r,n,o,a=[],i=[];for(t in e)e.hasOwnProperty(t)&&i.push(t);var s=i.sort();for(r=0,n=s.length;n>r;r+=1)t=s[r],o={},o[t]=e[t],a[r]=o;return a}function R(e){var t=f.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month}function A(e,t,r){var n=e&&e[t]&&e[t][r];return n?n:void 0}function N(e,t,r){var n=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],o=e.locale,a=e.formats,i=n.format,s=new Date(r),l=i&&A(a,"date",i),u=v(n,Me,l);try{return t.getDateTimeFormat(o,u).format(s)}catch(c){}return String(s)}function k(e,t,r){var n=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],o=e.locale,a=e.formats,i=n.format,s=new Date(r),l=i&&A(a,"time",i),u=v(n,Me,l);0===Object.keys(u).length&&(u={hour:"numeric",minute:"numeric"});try{return t.getDateTimeFormat(o,u).format(s)}catch(c){}return String(s)}function M(e,t,r){var n=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],o=e.locale,a=e.formats,i=n.format,s=new Date(r),l=new Date(n.now),u=i&&A(a,"relative",i),c=v(n,Ee,u),p=G["extends"]({},f.thresholds);R(Ie);try{return t.getRelativeFormat(o,c).format(s,{now:isFinite(l)?l:t.now()})}catch(d){}finally{R(p)}return String(s)}function D(e,t,r){var n=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],o=e.locale,a=e.formats,i=n.format,s=i&&A(a,"number",i),l=v(n,De,s);try{return t.getNumberFormat(o,l).format(r)}catch(u){}return String(r)}function E(e,t,r){var n=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],o=e.locale,a=v(n,Le);try{return t.getPluralFormat(o,a).format(r)}catch(i){}return"other"}function L(e,t){var r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],n=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],o=e.locale,a=e.formats,i=e.messages,s=e.defaultLocale,l=e.defaultFormats,u=r.id,c=r.defaultMessage;Te(u,"[React Intl] An `id` must be provided to format a message.");var p=i&&i[u],f=Object.keys(n).length>0;if(!f)return p||c||u;var d=void 0;if(p)try{var h=t.getMessageFormat(p,o,a);d=h.format(n)}catch(m){}if(!d&&c)try{var y=t.getMessageFormat(c,s,l);d=y.format(n)}catch(m){}return d||p||c||u}function I(e,t,r){var n=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],o=Object.keys(n).reduce(function(e,t){var r=n[t];return e[t]="string"==typeof r?y(r):r,e},{});return L(e,t,r,o)}function S(e){var t=Math.abs(e);return Be>t?"second":ze>t?"minute":Je>t?"hour":"day"}function q(e){switch(e){case"second":return Ze;case"minute":return Be;case"hour":return ze;case"day":return Je;default:return $e}}var U="default"in t?t["default"]:t,G={};G["typeof"]="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},G.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},G.createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),G.defineProperty=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},G["extends"]=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},G.inherits=function(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)},G.objectWithoutProperties=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},G.possibleConstructorReturn=function(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},G.toConsumableArray=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)};var W={locale:"en",pluralRuleFunction:function(e,t){var r=String(e).split("."),n=!r[1],o=Number(r[0])==e,a=o&&r[0].slice(-1),i=o&&r[0].slice(-2);return t?1==a&&11!=i?"one":2==a&&12!=i?"two":3==a&&13!=i?"few":"other":1==e&&n?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"minute",relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}},H=Object.prototype.hasOwnProperty,V=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),Z=(!V&&!Object.prototype.__defineGetter__,V?Object.defineProperty:function(e,t,r){"get"in r&&e.__defineGetter__?e.__defineGetter__(t,r.get):(!H.call(e,t)||"value"in r)&&(e[t]=r.value)}),B=Object.create||function(e,t){function r(){}var n,o;r.prototype=e,n=new r;for(o in t)H.call(t,o)&&Z(n,o,t[o]);return n};o.prototype.compile=function(e){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(e)},o.prototype.compileMessage=function(e){if(!e||"messageFormatPattern"!==e.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var t,r,n,o=e.elements,a=[];for(t=0,r=o.length;r>t;t+=1)switch(n=o[t],n.type){case"messageTextElement":a.push(this.compileMessageText(n));break;case"argumentElement":a.push(this.compileArgument(n));break;default:throw new Error("Message element does not have a valid type")}return a},o.prototype.compileMessageText=function(e){return this.currentPlural&&/(^|[^\\])#/g.test(e.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new s(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,e.value)):e.value.replace(/\\#/g,"#")},o.prototype.compileArgument=function(e){var t=e.format;if(!t)return new a(e.id);var r,n=this.formats,o=this.locales,s=this.pluralFn;switch(t.type){case"numberFormat":return r=n.number[t.style],{id:e.id,format:new Intl.NumberFormat(o,r).format};case"dateFormat":return r=n.date[t.style],{id:e.id,format:new Intl.DateTimeFormat(o,r).format};case"timeFormat":return r=n.time[t.style],{id:e.id,format:new Intl.DateTimeFormat(o,r).format};case"pluralFormat":return r=this.compileOptions(e),new i(e.id,t.ordinal,t.offset,r,s);case"selectFormat":return r=this.compileOptions(e),new l(e.id,r);default:throw new Error("Message element does not have a valid format type")}},o.prototype.compileOptions=function(e){var t=e.format,r=t.options,n={};this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===t.type?e:null;var o,a,i;for(o=0,a=r.length;a>o;o+=1)i=r[o],n[i.selector]=this.compileMessage(i.value);return this.currentPlural=this.pluralStack.pop(),n},a.prototype.format=function(e){return e?"string"==typeof e?e:String(e):""},i.prototype.getOption=function(e){var t=this.options,r=t["="+e]||t[this.pluralFn(e-this.offset,this.useOrdinal)];return r||t.other},s.prototype.format=function(e){var t=this.numberFormat.format(e-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+t).replace(/\\#/g,"#")},l.prototype.getOption=function(e){var t=this.options;return t[e]||t.other};var z=function(){function e(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function t(e,t,r,n,o,a){this.message=e,this.expected=t,this.found=r,this.offset=n,this.line=o,this.column=a,this.name="SyntaxError"}function r(e){function r(t){function r(t,r,n){var o,a;for(o=r;n>o;o++)a=e.charAt(o),"\n"===a?(t.seenCR||t.line++,t.column=1,t.seenCR=!1):"\r"===a||"\u2028"===a||"\u2029"===a?(t.line++,t.column=1,t.seenCR=!0):(t.column++,t.seenCR=!1)}return $e!==t&&($e>t&&($e=0,Ke={line:1,column:1,seenCR:!1}),r(Ke,$e,t),$e=t),Ke}function n(e){Qe>ze||(ze>Qe&&(Qe=ze,Xe=[]),Xe.push(e))}function o(n,o,a){function i(e){var t=1;for(e.sort(function(e,t){return e.description<t.description?-1:e.description>t.description?1:0});t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}function s(e,t){function r(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+t(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+t(e)}).replace(/[\u0180-\u0FFF]/g,function(e){return"\\u0"+t(e)}).replace(/[\u1080-\uFFFF]/g,function(e){return"\\u"+t(e)})}var n,o,a,i=new Array(e.length);for(a=0;a<e.length;a++)i[a]=e[a].description;return n=e.length>1?i.slice(0,-1).join(", ")+" or "+i[e.length-1]:i[0],o=t?'"'+r(t)+'"':"end of input","Expected "+n+" but "+o+" found."}var l=r(a),u=a<e.length?e.charAt(a):null;return null!==o&&i(o),new t(null!==n?n:s(o,u),o,u,a,l.line,l.column)}function a(){var e;return e=i()}function i(){var e,t,r;for(e=ze,t=[],r=s();r!==A;)t.push(r),r=s();return t!==A&&(Je=e,t=M(t)),e=t}function s(){var e;return e=u(),e===A&&(e=p()),e}function l(){var t,r,n,o,a,i;if(t=ze,r=[],n=ze,o=F(),o!==A?(a=O(),a!==A?(i=F(),i!==A?(o=[o,a,i],n=o):(ze=n,n=D)):(ze=n,n=D)):(ze=n,n=D),n!==A)for(;n!==A;)r.push(n),n=ze,o=F(),o!==A?(a=O(),a!==A?(i=F(),i!==A?(o=[o,a,i],n=o):(ze=n,n=D)):(ze=n,n=D)):(ze=n,n=D);else r=D;return r!==A&&(Je=t,r=E(r)),t=r,t===A&&(t=ze,r=w(),r!==A&&(r=e.substring(t,ze)),t=r),t}function u(){var e,t;return e=ze,t=l(),t!==A&&(Je=e,t=L(t)),e=t}function c(){var t,r,o;if(t=C(),t===A){if(t=ze,r=[],I.test(e.charAt(ze))?(o=e.charAt(ze),ze++):(o=A,0===Ye&&n(S)),o!==A)for(;o!==A;)r.push(o),I.test(e.charAt(ze))?(o=e.charAt(ze),ze++):(o=A,0===Ye&&n(S));else r=D;r!==A&&(r=e.substring(t,ze)),t=r}return t}function p(){var t,r,o,a,i,s,l,u,p;return t=ze,123===e.charCodeAt(ze)?(r=q,ze++):(r=A,0===Ye&&n(U)),r!==A?(o=F(),o!==A?(a=c(),a!==A?(i=F(),i!==A?(s=ze,44===e.charCodeAt(ze)?(l=W,ze++):(l=A,0===Ye&&n(H)),l!==A?(u=F(),u!==A?(p=f(),p!==A?(l=[l,u,p],s=l):(ze=s,s=D)):(ze=s,s=D)):(ze=s,s=D),s===A&&(s=G),s!==A?(l=F(),l!==A?(125===e.charCodeAt(ze)?(u=V,ze++):(u=A,0===Ye&&n(Z)),u!==A?(Je=t,r=B(a,s),t=r):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D),t}function f(){var e;return e=d(),e===A&&(e=h(),e===A&&(e=m(),e===A&&(e=y()))),e}function d(){var t,r,o,a,i,s,l;return t=ze,e.substr(ze,6)===z?(r=z,ze+=6):(r=A,0===Ye&&n(J)),r===A&&(e.substr(ze,4)===$?(r=$,ze+=4):(r=A,0===Ye&&n(K)),r===A&&(e.substr(ze,4)===Q?(r=Q,ze+=4):(r=A,0===Ye&&n(X)))),r!==A?(o=F(),o!==A?(a=ze,44===e.charCodeAt(ze)?(i=W,ze++):(i=A,0===Ye&&n(H)),i!==A?(s=F(),s!==A?(l=O(),l!==A?(i=[i,s,l],a=i):(ze=a,a=D)):(ze=a,a=D)):(ze=a,a=D),a===A&&(a=G),a!==A?(Je=t,r=Y(r,a),t=r):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D),t}function h(){var t,r,o,a,i,s;return t=ze,e.substr(ze,6)===ee?(r=ee,ze+=6):(r=A,0===Ye&&n(te)),r!==A?(o=F(),o!==A?(44===e.charCodeAt(ze)?(a=W,ze++):(a=A,0===Ye&&n(H)),a!==A?(i=F(),i!==A?(s=_(),s!==A?(Je=t,r=re(s),t=r):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D),t}function m(){var t,r,o,a,i,s;return t=ze,e.substr(ze,13)===ne?(r=ne,ze+=13):(r=A,0===Ye&&n(oe)),r!==A?(o=F(),o!==A?(44===e.charCodeAt(ze)?(a=W,ze++):(a=A,0===Ye&&n(H)),a!==A?(i=F(),i!==A?(s=_(),s!==A?(Je=t,r=ae(s),t=r):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D),t}function y(){var t,r,o,a,i,s,l;if(t=ze,e.substr(ze,6)===ie?(r=ie,ze+=6):(r=A,0===Ye&&n(se)),r!==A)if(o=F(),o!==A)if(44===e.charCodeAt(ze)?(a=W,ze++):(a=A,0===Ye&&n(H)),a!==A)if(i=F(),i!==A){if(s=[],l=g(),l!==A)for(;l!==A;)s.push(l),l=g();else s=D;s!==A?(Je=t,r=le(s),t=r):(ze=t,t=D)}else ze=t,t=D;else ze=t,t=D;else ze=t,t=D;else ze=t,t=D;return t}function v(){var t,r,o,a;return t=ze,r=ze,61===e.charCodeAt(ze)?(o=ue,ze++):(o=A,0===Ye&&n(ce)),o!==A?(a=C(),a!==A?(o=[o,a],r=o):(ze=r,r=D)):(ze=r,r=D),r!==A&&(r=e.substring(t,ze)),t=r,t===A&&(t=O()),t}function g(){var t,r,o,a,s,l,u,c,p;return t=ze,r=F(),r!==A?(o=v(),o!==A?(a=F(),a!==A?(123===e.charCodeAt(ze)?(s=q,ze++):(s=A,0===Ye&&n(U)),s!==A?(l=F(),l!==A?(u=i(),u!==A?(c=F(),c!==A?(125===e.charCodeAt(ze)?(p=V,ze++):(p=A,0===Ye&&n(Z)),p!==A?(Je=t,r=pe(o,u),t=r):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D),t}function b(){var t,r,o,a;return t=ze,e.substr(ze,7)===fe?(r=fe,ze+=7):(r=A,0===Ye&&n(de)),r!==A?(o=F(),o!==A?(a=C(),a!==A?(Je=t,r=he(a),t=r):(ze=t,t=D)):(ze=t,t=D)):(ze=t,t=D),t}function _(){var e,t,r,n,o;if(e=ze,t=b(),t===A&&(t=G),t!==A)if(r=F(),r!==A){if(n=[],o=g(),o!==A)for(;o!==A;)n.push(o),o=g();else n=D;n!==A?(Je=e,t=me(t,n),e=t):(ze=e,e=D)}else ze=e,e=D;else ze=e,e=D;return e}function w(){var t,r;if(Ye++,t=[],ve.test(e.charAt(ze))?(r=e.charAt(ze),ze++):(r=A,0===Ye&&n(ge)),r!==A)for(;r!==A;)t.push(r),ve.test(e.charAt(ze))?(r=e.charAt(ze),ze++):(r=A,0===Ye&&n(ge));else t=D;return Ye--,t===A&&(r=A,0===Ye&&n(ye)),t}function F(){var t,r,o;for(Ye++,t=ze,r=[],o=w();o!==A;)r.push(o),o=w();return r!==A&&(r=e.substring(t,ze)),t=r,Ye--,t===A&&(r=A,0===Ye&&n(be)),t}function T(){var t;return _e.test(e.charAt(ze))?(t=e.charAt(ze),ze++):(t=A,0===Ye&&n(we)),t}function P(){var t;return Fe.test(e.charAt(ze))?(t=e.charAt(ze),ze++):(t=A,0===Ye&&n(Te)),t}function C(){var t,r,o,a,i,s;if(t=ze,48===e.charCodeAt(ze)?(r=Pe,ze++):(r=A,0===Ye&&n(Ce)),r===A){if(r=ze,o=ze,xe.test(e.charAt(ze))?(a=e.charAt(ze),ze++):(a=A,0===Ye&&n(Oe)),a!==A){for(i=[],s=T();s!==A;)i.push(s),s=T();i!==A?(a=[a,i],o=a):(ze=o,o=D)}else ze=o,o=D;o!==A&&(o=e.substring(r,ze)),r=o}return r!==A&&(Je=t,r=je(r)),t=r}function x(){var t,r,o,a,i,s,l,u;return Re.test(e.charAt(ze))?(t=e.charAt(ze),ze++):(t=A,0===Ye&&n(Ae)),t===A&&(t=ze,e.substr(ze,2)===Ne?(r=Ne,ze+=2):(r=A,0===Ye&&n(ke)),r!==A&&(Je=t,r=Me()),t=r,t===A&&(t=ze,e.substr(ze,2)===De?(r=De,ze+=2):(r=A,0===Ye&&n(Ee)),r!==A&&(Je=t,r=Le()),t=r,t===A&&(t=ze,e.substr(ze,2)===Ie?(r=Ie,ze+=2):(r=A,0===Ye&&n(Se)),r!==A&&(Je=t,r=qe()),t=r,t===A&&(t=ze,e.substr(ze,2)===Ue?(r=Ue,ze+=2):(r=A,0===Ye&&n(Ge)),r!==A&&(Je=t,r=We()),t=r,t===A&&(t=ze,e.substr(ze,2)===He?(r=He,ze+=2):(r=A,0===Ye&&n(Ve)),r!==A?(o=ze,a=ze,i=P(),i!==A?(s=P(),s!==A?(l=P(),l!==A?(u=P(),u!==A?(i=[i,s,l,u],a=i):(ze=a,a=D)):(ze=a,a=D)):(ze=a,a=D)):(ze=a,a=D),a!==A&&(a=e.substring(o,ze)),o=a,o!==A?(Je=t,r=Ze(o),t=r):(ze=t,t=D)):(ze=t,t=D)))))),t}function O(){var e,t,r;if(e=ze,t=[],r=x(),r!==A)for(;r!==A;)t.push(r),r=x();else t=D;return t!==A&&(Je=e,t=Be(t)),e=t}var j,R=arguments.length>1?arguments[1]:{},A={},N={start:a},k=a,M=function(e){return{type:"messageFormatPattern",elements:e}},D=A,E=function(e){var t,r,n,o,a,i="";for(t=0,n=e.length;n>t;t+=1)for(o=e[t],r=0,a=o.length;a>r;r+=1)i+=o[r];return i},L=function(e){return{type:"messageTextElement",value:e}},I=/^[^ \t\n\r,.+={}#]/,S={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},q="{",U={type:"literal",value:"{",description:'"{"'},G=null,W=",",H={type:"literal",value:",",description:'","'},V="}",Z={type:"literal",value:"}",description:'"}"'},B=function(e,t){return{type:"argumentElement",id:e,format:t&&t[2]}},z="number",J={type:"literal",value:"number",description:'"number"'},$="date",K={type:"literal",value:"date",description:'"date"'},Q="time",X={type:"literal",value:"time",description:'"time"'},Y=function(e,t){return{type:e+"Format",style:t&&t[2]}},ee="plural",te={type:"literal",value:"plural",description:'"plural"'},re=function(e){return{type:e.type,ordinal:!1,offset:e.offset||0,options:e.options}},ne="selectordinal",oe={type:"literal",value:"selectordinal",description:'"selectordinal"'},ae=function(e){return{type:e.type,ordinal:!0,offset:e.offset||0,options:e.options}},ie="select",se={type:"literal",value:"select",description:'"select"'},le=function(e){return{type:"selectFormat",options:e}},ue="=",ce={type:"literal",value:"=",description:'"="'},pe=function(e,t){return{type:"optionalFormatPattern",selector:e,value:t}},fe="offset:",de={type:"literal",value:"offset:",description:'"offset:"'},he=function(e){return e},me=function(e,t){return{type:"pluralFormat",offset:e,options:t}},ye={type:"other",description:"whitespace"},ve=/^[ \t\n\r]/,ge={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},be={type:"other",description:"optionalWhitespace"},_e=/^[0-9]/,we={type:"class",value:"[0-9]",description:"[0-9]"},Fe=/^[0-9a-f]/i,Te={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},Pe="0",Ce={type:"literal",value:"0",description:'"0"'},xe=/^[1-9]/,Oe={type:"class",value:"[1-9]",description:"[1-9]"},je=function(e){return parseInt(e,10)},Re=/^[^{}\\\0-\x1F \t\n\r]/,Ae={type:"class",value:"[^{}\\\\\\0-\\x1F \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F \\t\\n\\r]"},Ne="\\\\",ke={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},Me=function(){return"\\"},De="\\#",Ee={type:"literal",value:"\\#",description:'"\\\\#"'},Le=function(){return"\\#"},Ie="\\{",Se={type:"literal",value:"\\{",description:'"\\\\{"'},qe=function(){return"{"},Ue="\\}",Ge={type:"literal",value:"\\}",description:'"\\\\}"'},We=function(){return"}"},He="\\u",Ve={type:"literal",value:"\\u",description:'"\\\\u"'},Ze=function(e){return String.fromCharCode(parseInt(e,16))},Be=function(e){return e.join("")},ze=0,Je=0,$e=0,Ke={line:1,column:1,seenCR:!1},Qe=0,Xe=[],Ye=0;if("startRule"in R){if(!(R.startRule in N))throw new Error("Can't start parsing from rule \""+R.startRule+'".');k=N[R.startRule]}if(j=k(),j!==A&&ze===e.length)return j;throw j!==A&&ze<e.length&&n({type:"end",description:"end of input"}),o(null,Xe,Qe)}return e(t,Error),{SyntaxError:t,parse:r}}();Z(u,"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"}}}}),Z(u,"__localeData__",{value:B(null)}),Z(u,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");u.__localeData__[e.locale.toLowerCase()]=e}}),Z(u,"__parse",{value:z.parse}),Z(u,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),u.prototype.resolvedOptions=function(){return{locale:this._locale}},u.prototype._compilePattern=function(e,t,r,n){var a=new o(t,r,n);return a.compile(e)},u.prototype._findPluralRuleFunction=function(e){for(var t=u.__localeData__,r=t[e.toLowerCase()];r;){if(r.pluralRuleFunction)return r.pluralRuleFunction;r=r.parentLocale&&t[r.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+e)},u.prototype._format=function(e,t){var r,n,o,a,i,s="";for(r=0,n=e.length;n>r;r+=1)if(o=e[r],"string"!=typeof o){if(a=o.id,!t||!H.call(t,a))throw new Error("A value must be provided for: "+a);i=t[a],s+=o.options?this._format(o.getOption(i),t):o.format(i)}else s+=o;return s},u.prototype._mergeFormats=function(e,t){var r,o,a={};for(r in e)H.call(e,r)&&(a[r]=o=B(e[r]),t&&H.call(t,r)&&n(o,t[r]));return a},u.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(u.defaultLocale);var t,r,n,o,a=u.__localeData__;for(t=0,r=e.length;r>t;t+=1)for(n=e[t].toLowerCase().split("-");n.length;){if(o=a[n.join("-")])return o.locale;n.pop()}var i=e.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+e.join(", ")+", or the default locale: "+i)};var J={locale:"en",pluralRuleFunction:function(e,t){var r=String(e).split("."),n=!r[1],o=Number(r[0])==e,a=o&&r[0].slice(-1),i=o&&r[0].slice(-2);return t?1==a&&11!=i?"one":2==a&&12!=i?"two":3==a&&13!=i?"few":"other":1==e&&n?"one":"other"}};u.__addLocaleData(J),u.defaultLocale="en";var $=Math.round,K=Object.prototype.hasOwnProperty,Q=Object.prototype.toString,X=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),Y=(!X&&!Object.prototype.__defineGetter__,X?Object.defineProperty:function(e,t,r){"get"in r&&e.__defineGetter__?e.__defineGetter__(t,r.get):(!K.call(e,t)||"value"in r)&&(e[t]=r.value)}),ee=Object.create||function(e,t){function r(){}var n,o;r.prototype=e,n=new r;for(o in t)K.call(t,o)&&Y(n,o,t[o]);return n},te=Array.prototype.indexOf||function(e,t){var r=this;if(!r.length)return-1;for(var n=t||0,o=r.length;o>n;n++)if(r[n]===e)return n;return-1},re=Array.isArray||function(e){return"[object Array]"===Q.call(e)},ne=Date.now||function(){return(new Date).getTime()},oe=["second","minute","hour","day","month","year"],ae=["best fit","numeric"];Y(f,"__localeData__",{value:ee(null)}),Y(f,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlRelativeFormat is missing a `locale` property value");f.__localeData__[e.locale.toLowerCase()]=e,u.__addLocaleData(e)}}),Y(f,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),Y(f,"thresholds",{enumerable:!0,value:{second:45,minute:45,hour:22,day:26,month:11}}),f.prototype.resolvedOptions=function(){return{locale:this._locale,style:this._options.style,units:this._options.units}},f.prototype._compileMessage=function(e){var t,r=this._locales,n=(this._locale,this._fields[e]),o=n.relativeTime,a="",i="";for(t in o.future)o.future.hasOwnProperty(t)&&(a+=" "+t+" {"+o.future[t].replace("{0}","#")+"}");for(t in o.past)o.past.hasOwnProperty(t)&&(i+=" "+t+" {"+o.past[t].replace("{0}","#")+"}");var s="{when, select, future {{0, plural, "+a+"}}past {{0, plural, "+i+"}}}";return new u(s,r)},f.prototype._getMessage=function(e){var t=this._messages;return t[e]||(t[e]=this._compileMessage(e)),t[e]},f.prototype._getRelativeUnits=function(e,t){var r=this._fields[t];return r.relative?r.relative[e]:void 0},f.prototype._findFields=function(e){for(var t=f.__localeData__,r=t[e.toLowerCase()];r;){if(r.fields)return r.fields;r=r.parentLocale&&t[r.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlRelativeFormat is missing `fields` for :"+e)},f.prototype._format=function(e,t){var r=t&&void 0!==t.now?t.now:ne();if(void 0===e&&(e=r),!isFinite(r))throw new RangeError("The `now` option provided to IntlRelativeFormat#format() is not in valid range.");if(!isFinite(e))throw new RangeError("The date value provided to IntlRelativeFormat#format() is not in valid range.");var n=p(r,e),o=this._options.units||this._selectUnits(n),a=n[o];if("numeric"!==this._options.style){var i=this._getRelativeUnits(a,o);if(i)return i}return this._getMessage(o).format({0:Math.abs(a),when:0>a?"past":"future"})},f.prototype._isValidUnits=function(e){if(!e||te.call(oe,e)>=0)return!0;if("string"==typeof e){var t=/s$/.test(e)&&e.substr(0,e.length-1);if(t&&te.call(oe,t)>=0)throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+t)}throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+oe.join('", "')+'"')},f.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(f.defaultLocale);var t,r,n,o,a=f.__localeData__;for(t=0,r=e.length;r>t;t+=1)for(n=e[t].toLowerCase().split("-");n.length;){if(o=a[n.join("-")])return o.locale;n.pop()}var i=e.pop();throw new Error("No locale data has been added to IntlRelativeFormat for: "+e.join(", ")+", or the default locale: "+i)},f.prototype._resolveStyle=function(e){if(!e)return ae[0];if(te.call(ae,e)>=0)return e;throw new Error('"'+e+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+ae.join('", "')+'"')},f.prototype._selectUnits=function(e){var t,r,n;for(t=0,r=oe.length;r>t&&(n=oe[t],!(Math.abs(e[n])<f.thresholds[n]));t+=1);return n};var ie={locale:"en",pluralRuleFunction:function(e,t){var r=String(e).split("."),n=!r[1],o=Number(r[0])==e,a=o&&r[0].slice(-1),i=o&&r[0].slice(-2);return t?1==a&&11!=i?"one":2==a&&12!=i?"two":3==a&&13!=i?"few":"other":1==e&&n?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"minute",relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}};f.__addLocaleData(ie),f.defaultLocale="en";var se=t.PropTypes.bool,le=t.PropTypes.number,ue=t.PropTypes.string,ce=t.PropTypes.func,pe=t.PropTypes.object,fe=t.PropTypes.oneOf,de=t.PropTypes.shape,he={locale:ue,formats:pe,messages:pe,defaultLocale:ue,defaultFormats:pe},me={formatDate:ce.isRequired,formatTime:ce.isRequired,formatRelative:ce.isRequired,formatNumber:ce.isRequired,formatPlural:ce.isRequired,formatMessage:ce.isRequired,formatHTMLMessage:ce.isRequired},ye=de(G["extends"]({},he,me,{formatters:pe,now:ce.isRequired})),ve={id:ue.isRequired,description:ue,defaultMessage:ue},ge={localeMatcher:fe(["best fit","lookup"]),formatMatcher:fe(["basic","best fit"]),timeZone:ue,hour12:se,weekday:fe(["narrow","short","long"]),era:fe(["narrow","short","long"]),year:fe(["numeric","2-digit"]),month:fe(["numeric","2-digit","narrow","short","long"]),day:fe(["numeric","2-digit"]),hour:fe(["numeric","2-digit"]),minute:fe(["numeric","2-digit"]),second:fe(["numeric","2-digit"]),timeZoneName:fe(["short","long"])},be={localeMatcher:fe(["best fit","lookup"]),style:fe(["decimal","currency","percent"]),currency:ue,currencyDisplay:fe(["symbol","code","name"]),useGrouping:se,minimumIntegerDigits:le,minimumFractionDigits:le,maximumFractionDigits:le,minimumSignificantDigits:le,maximumSignificantDigits:le},_e={style:fe(["best fit","numeric"]),units:fe(["second","minute","hour","day","month","year"])},we={style:fe(["cardinal","ordinal"]) },Fe=r(function(e){var t="production",r=function(e,r,n,o,a,i,s,l){if("production"!==t&&void 0===r)throw new Error("invariant requires an error message argument");if(!e){var u;if(void 0===r)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,a,i,s,l],p=0;u=new Error(r.replace(/%s/g,function(){return c[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};e.exports=r}),Te=Fe&&"object"==typeof Fe&&"default"in Fe?Fe["default"]:Fe,Pe=Object.keys(he),Ce={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},xe=/[&><"']/g,Oe=function tt(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];G.classCallCheck(this,tt);var r="ordinal"===t.style,n=C(P(e));this.format=function(e){return n(e,r)}},je=Function.prototype.bind||function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),r=this,n=function(){},o=function(){return r.apply(this instanceof n?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(n.prototype=this.prototype),o.prototype=new n,o},Re=Object.prototype.hasOwnProperty,Ae=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),Ne=(!Ae&&!Object.prototype.__defineGetter__,Ae?Object.defineProperty:function(e,t,r){"get"in r&&e.__defineGetter__?e.__defineGetter__(t,r.get):(!Re.call(e,t)||"value"in r)&&(e[t]=r.value)}),ke=Object.create||function(e,t){function r(){}var n,o;r.prototype=e,n=new r;for(o in t)Re.call(t,o)&&Ne(n,o,t[o]);return n},Me=Object.keys(ge),De=Object.keys(be),Ee=Object.keys(_e),Le=Object.keys(we),Ie={second:60,minute:60,hour:24,day:30,month:12},Se=Object.freeze({formatDate:N,formatTime:k,formatRelative:M,formatNumber:D,formatPlural:E,formatMessage:L,formatHTMLMessage:I}),qe=Object.keys(he),Ue=Object.keys(me),Ge={formats:{},messages:{},defaultLocale:"en",defaultFormats:{}},We=function(e){function r(e,t){G.classCallCheck(this,r);var n=G.possibleConstructorReturn(this,Object.getPrototypeOf(r).call(this,e,t));Te("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var o=t.intl,a=void 0;a=isFinite(e.initialNow)?Number(e.initialNow):o?o.now():Date.now();var i=o||{},s=i.formatters,l=void 0===s?{getDateTimeFormat:x(Intl.DateTimeFormat),getNumberFormat:x(Intl.NumberFormat),getMessageFormat:x(u),getRelativeFormat:x(f),getPluralFormat:x(Oe)}:s;return n.state=G["extends"]({},l,{now:function(){return n._didDisplay?Date.now():a}}),n}return G.inherits(r,e),G.createClass(r,[{key:"getConfig",value:function(){var e=this.context.intl,t=v(this.props,qe,e);for(var r in Ge)void 0===t[r]&&(t[r]=Ge[r]);if(!h(t.locale)){var n=t,o=(n.locale,n.defaultLocale),a=n.defaultFormats;t=G["extends"]({},t,{locale:o,formats:a,messages:Ge.messages})}return t}},{key:"getBoundFormatFns",value:function(e,t){return Ue.reduce(function(r,n){return r[n]=Se[n].bind(null,e,t),r},{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),r=this.state,n=r.now,o=G.objectWithoutProperties(r,["now"]);return{intl:G["extends"]({},e,t,{formatters:o,now:n})}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];return _.apply(void 0,[this].concat(t))}},{key:"componentDidMount",value:function(){this._didDisplay=!0}},{key:"render",value:function(){return t.Children.only(this.props.children)}}]),r}(t.Component);We.displayName="IntlProvider",We.contextTypes={intl:ye},We.childContextTypes={intl:ye.isRequired},We.propTypes=G["extends"]({},he,{children:t.PropTypes.element.isRequired,initialNow:t.PropTypes.any});var He=function(e){function t(e,r){G.classCallCheck(this,t);var n=G.possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this,e,r));return g(r),n}return G.inherits(t,e),G.createClass(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];return _.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatDate,t=this.props,r=t.value,n=t.children,o=e(r,this.props);return"function"==typeof n?n(o):U.createElement("span",null,o)}}]),t}(t.Component);He.displayName="FormattedDate",He.contextTypes={intl:ye},He.propTypes=G["extends"]({},ge,{value:t.PropTypes.any.isRequired,format:t.PropTypes.string,children:t.PropTypes.func});var Ve=function(e){function t(e,r){G.classCallCheck(this,t);var n=G.possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this,e,r));return g(r),n}return G.inherits(t,e),G.createClass(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];return _.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatTime,t=this.props,r=t.value,n=t.children,o=e(r,this.props);return"function"==typeof n?n(o):U.createElement("span",null,o)}}]),t}(t.Component);Ve.displayName="FormattedTime",Ve.contextTypes={intl:ye},Ve.propTypes=G["extends"]({},ge,{value:t.PropTypes.any.isRequired,format:t.PropTypes.string,children:t.PropTypes.func});var Ze=1e3,Be=6e4,ze=36e5,Je=864e5,$e=2147483647,Ke=function(e){function t(e,r){G.classCallCheck(this,t);var n=G.possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this,e,r));g(r);var o=isFinite(e.initialNow)?Number(e.initialNow):r.intl.now();return n.state={now:o},n}return G.inherits(t,e),G.createClass(t,[{key:"scheduleNextUpdate",value:function(e,t){var r=this,n=e.updateInterval;if(n){var o=new Date(e.value).getTime(),a=o-t.now,i=e.units||S(a),s=q(i),l=Math.abs(a%s),u=0>a?Math.max(n,s-l):Math.max(n,l);clearTimeout(this._timer),this._timer=setTimeout(function(){r.setState({now:r.context.intl.now()})},u)}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];return _.apply(void 0,[this].concat(t))}},{key:"componentWillUpdate",value:function(e,t){this.scheduleNextUpdate(e,t)}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._timer)}},{key:"render",value:function(){var e=this.context.intl.formatRelative,t=this.props,r=t.value,n=t.children,o=e(r,G["extends"]({},this.props,this.state));return"function"==typeof n?n(o):U.createElement("span",null,o)}}]),t}(t.Component);Ke.displayName="FormattedRelative",Ke.contextTypes={intl:ye},Ke.propTypes=G["extends"]({},_e,{value:t.PropTypes.any.isRequired,format:t.PropTypes.string,updateInterval:t.PropTypes.number,initialNow:t.PropTypes.any,children:t.PropTypes.func}),Ke.defaultProps={updateInterval:1e4};var Qe=function(e){function t(e,r){G.classCallCheck(this,t);var n=G.possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this,e,r));return g(r),n}return G.inherits(t,e),G.createClass(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];return _.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatNumber,t=this.props,r=t.value,n=t.children,o=e(r,this.props);return"function"==typeof n?n(o):U.createElement("span",null,o)}}]),t}(t.Component);Qe.displayName="FormattedNumber",Qe.contextTypes={intl:ye},Qe.propTypes=G["extends"]({},be,{value:t.PropTypes.any.isRequired,format:t.PropTypes.string,children:t.PropTypes.func});var Xe=function(e){function t(e,r){G.classCallCheck(this,t);var n=G.possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this,e,r));return g(r),n}return G.inherits(t,e),G.createClass(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];return _.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatPlural,t=this.props,r=t.value,n=t.other,o=t.children,a=e(r,this.props),i=this.props[a]||n;return"function"==typeof o?o(i):U.createElement("span",null,i)}}]),t}(t.Component);Xe.displayName="FormattedPlural",Xe.contextTypes={intl:ye},Xe.propTypes=G["extends"]({},we,{value:t.PropTypes.any.isRequired,other:t.PropTypes.node.isRequired,zero:t.PropTypes.node,one:t.PropTypes.node,two:t.PropTypes.node,few:t.PropTypes.node,many:t.PropTypes.node,children:t.PropTypes.func}),Xe.defaultProps={style:"cardinal"};var Ye=function(e){function r(e,t){G.classCallCheck(this,r);var n=G.possibleConstructorReturn(this,Object.getPrototypeOf(r).call(this,e,t));return g(t),n}return G.inherits(r,e),G.createClass(r,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,r=e.values;if(!b(r,t))return!0;for(var n=G["extends"]({},e,{values:t}),o=arguments.length,a=Array(o>1?o-1:0),i=1;o>i;i++)a[i-1]=arguments[i];return _.apply(void 0,[this,n].concat(a))}},{key:"render",value:function(){var e=this.context.intl.formatMessage,r=this.props,n=r.id,o=r.description,a=r.defaultMessage,i=r.values,s=r.tagName,l=r.children,u=void 0,c=void 0,p=void 0,f=i&&Object.keys(i).length>0;f&&!function(){var e=Math.floor(1099511627776*Math.random()).toString(16),r=function(){var t=0;return function(){return"ELEMENT-"+e+"-"+(t+=1)}}();u="@__"+e+"__@",c={},p={},Object.keys(i).forEach(function(e){var n=i[e];if(t.isValidElement(n)){var o=r();c[e]=u+o+u,p[o]=n}else c[e]=n})}();var d={id:n,description:o,defaultMessage:a},h=e(d,c||i),m=void 0,y=p&&Object.keys(p).length>0;return m=y?h.split(u).filter(function(e){return!!e}).map(function(e){return p[e]||e}):[h],"function"==typeof l?l.apply(void 0,G.toConsumableArray(m)):t.createElement.apply(void 0,[s,null].concat(G.toConsumableArray(m)))}}]),r}(t.Component);Ye.displayName="FormattedMessage",Ye.contextTypes={intl:ye},Ye.propTypes=G["extends"]({},ve,{values:t.PropTypes.object,tagName:t.PropTypes.string,children:t.PropTypes.func}),Ye.defaultProps={values:{},tagName:"span"};var et=function(e){function r(e,t){G.classCallCheck(this,r);var n=G.possibleConstructorReturn(this,Object.getPrototypeOf(r).call(this,e,t));return g(t),n}return G.inherits(r,e),G.createClass(r,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,r=e.values;if(!b(r,t))return!0;for(var n=G["extends"]({},e,{values:t}),o=arguments.length,a=Array(o>1?o-1:0),i=1;o>i;i++)a[i-1]=arguments[i];return _.apply(void 0,[this,n].concat(a))}},{key:"render",value:function(){var e=this.context.intl.formatHTMLMessage,r=this.props,n=r.id,o=r.description,a=r.defaultMessage,i=r.values,s=r.tagName,l=r.children,u={id:n,description:o,defaultMessage:a},c=e(u,i);return"function"==typeof l?l(c):t.createElement(s,{dangerouslySetInnerHTML:{__html:c}})}}]),r}(t.Component);et.displayName="FormattedHTMLMessage",et.contextTypes={intl:ye},et.propTypes=G["extends"]({},ve,{values:t.PropTypes.object,tagName:t.PropTypes.string,children:t.PropTypes.func}),et.defaultProps={values:{},tagName:"span"},d(W),e.addLocaleData=d,e.intlShape=ye,e.injectIntl=F,e.defineMessages=T,e.IntlProvider=We,e.FormattedDate=He,e.FormattedTime=Ve,e.FormattedRelative=Ke,e.FormattedNumber=Qe,e.FormattedPlural=Xe,e.FormattedMessage=Ye,e.FormattedHTMLMessage=et}); //# sourceMappingURL=react-intl.min.js.map