react-intl 5.6.5 → 5.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactIntl={},e.React)}(this,(function(e,t){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=r(t),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function r(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var a=i((function(e,t){var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.createNumberElement=t.createLiteralElement=t.isDateTimeSkeleton=t.isNumberSkeleton=t.isTagElement=t.isPoundElement=t.isPluralElement=t.isSelectElement=t.isTimeElement=t.isDateElement=t.isNumberElement=t.isArgumentElement=t.isLiteralElement=t.SKELETON_TYPE=t.TYPE=void 0,function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(r=t.TYPE||(t.TYPE={})),(n=t.SKELETON_TYPE||(t.SKELETON_TYPE={}))[n.number=0]="number",n[n.dateTime=1]="dateTime",t.isLiteralElement=function o(e){return e.type===r.literal},t.isArgumentElement=function i(e){return e.type===r.argument},t.isNumberElement=function a(e){return e.type===r.number},t.isDateElement=function u(e){return e.type===r.date},t.isTimeElement=function l(e){return e.type===r.time},t.isSelectElement=function c(e){return e.type===r.select},t.isPluralElement=function s(e){return e.type===r.plural},t.isPoundElement=function f(e){return e.type===r.pound},t.isTagElement=function m(e){return e.type===r.tag},t.isNumberSkeleton=function p(e){return!(!e||"object"!=typeof e||0!==e.type)},t.isDateTimeSkeleton=function d(e){return!(!e||"object"!=typeof e||1!==e.type)},t.createLiteralElement=function g(e){return{type:r.literal,value:e}},t.createNumberElement=function y(e,t){return{type:r.number,value:e,style:t}}})),u=i((function(e,t){var r=o&&o.__assign||function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.convertNumberSkeletonToNumberFormatOptions=t.parseDateTimeSkeleton=void 0;var n=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;t.parseDateTimeSkeleton=function i(e){var t={};return e.replace(n,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""})),t};var a=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,u=/^(@+)?(\+|#+)?$/g;function l(e){var t={};return e.replace(u,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function c(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function s(e){return c(e)||{}}t.convertNumberSkeletonToNumberFormatOptions=function f(e){for(var t={},n=0,o=e;n<o.length;n++){var i=o[n];switch(i.stem){case"percent":t.style="percent";continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=r(r(r({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return r(r({},e),s(t))}),{}));continue;case"engineering":t=r(r(r({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return r(r({},e),s(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue}if(a.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(a,(function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""})),i.options.length&&(t=r(r({},t),l(i.options[0])))}else if(u.test(i.stem))t=r(r({},t),l(i.stem));else{var f=c(i.stem);f&&(t=r(r({},t),f))}}return t}})),l=i((function(e,t){var r=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=o&&o.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0,n(a,t),n(u,t),t.parse=function i(){throw new Error("You're trying to format an uncompiled message with react-intl without parser, please import from 'react-int' instead")}}));function c(e,t,r,n){var o=function i(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function s(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function f(e,t,r,n,o){return r.bind(t,e,n,o)}function m(e,t){return f(e,this,1===e.length?c:s,t.cache.create(),t.serializer)}function p(){return JSON.stringify(arguments)}function d(){this.cache=Object.create(null)}d.prototype.has=function(e){return e in this.cache},d.prototype.get=function(e){return this.cache[e]},d.prototype.set=function(e,t){this.cache[e]=t};var g={create:function e(){return new d}},y=function v(e,t){return(t&&t.strategy?t.strategy:m)(e,{cache:t&&t.cache?t.cache:g,serializer:t&&t.serializer?t.serializer:p})},h={variadic:function b(e,t){return f(e,this,s,t.cache.create(),t.serializer)},monadic:function O(e,t){return f(e,this,c,t.cache.create(),t.serializer)}};y.strategies=h;var w,P,E=Object.freeze(Object.assign(Object.create(null),y,{default:y,strategies:h})),T=i((function(e,t){var r,n,i=o&&o.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MissingValueError=t.InvalidValueTypeError=t.InvalidValueError=t.FormatError=t.ErrorCode=void 0,(n=t.ErrorCode||(t.ErrorCode={})).MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API";var a=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return i(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error);t.FormatError=a;var u=function(e){function t(t,r,n,o){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',"INVALID_VALUE",o)||this}return i(t,e),t}(a);t.InvalidValueError=u;var l=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,"INVALID_VALUE",n)||this}return i(t,e),t}(a);t.InvalidValueTypeError=l;var c=function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',"MISSING_VALUE",r)||this}return i(t,e),t}(a);t.MissingValueError=c})),S=i((function(e,t){function r(e){return"function"==typeof e}var n;Object.defineProperty(t,"__esModule",{value:!0}),t.formatToParts=t.isFormatXMLElementFn=t.PART_TYPE=void 0,(n=t.PART_TYPE||(t.PART_TYPE={}))[n.literal=0]="literal",n[n.object=1]="object",t.isFormatXMLElementFn=r,t.formatToParts=function e(t,n,o,i,a,u,c){if(1===t.length&&l.isLiteralElement(t[0]))return[{type:0,value:t[0].value}];for(var s=[],f=0,m=t;f<m.length;f++){var p=m[f];if(l.isLiteralElement(p))s.push({type:0,value:p.value});else if(l.isPoundElement(p))"number"==typeof u&&s.push({type:0,value:o.getNumberFormat(n).format(u)});else{var d=p.value;if(!a||!(d in a))throw new T.MissingValueError(d,c);var g=a[d];if(l.isArgumentElement(p))g&&"string"!=typeof g&&"number"!=typeof g||(g="string"==typeof g||"number"==typeof g?String(g):""),s.push({type:"string"==typeof g?0:1,value:g});else if(l.isDateElement(p)){var y="string"==typeof p.style?i.date[p.style]:l.isDateTimeSkeleton(p.style)?l.parseDateTimeSkeleton(p.style.pattern):void 0;s.push({type:0,value:o.getDateTimeFormat(n,y).format(g)})}else if(l.isTimeElement(p))y="string"==typeof p.style?i.time[p.style]:l.isDateTimeSkeleton(p.style)?l.parseDateTimeSkeleton(p.style.pattern):void 0,s.push({type:0,value:o.getDateTimeFormat(n,y).format(g)});else if(l.isNumberElement(p))y="string"==typeof p.style?i.number[p.style]:l.isNumberSkeleton(p.style)?l.convertNumberSkeletonToNumberFormatOptions(p.style.tokens):void 0,s.push({type:0,value:o.getNumberFormat(n,y).format(g)});else{if(l.isTagElement(p)){var v=p.children,h=p.value,b=a[h];if(!r(b))throw new T.InvalidValueTypeError(h,"function",c);var O=b(e(v,n,o,i,a,u).map((function(e){return e.value})));Array.isArray(O)||(O=[O]),s.push.apply(s,O.map((function(e){return{type:"string"==typeof e?0:1,value:e}})))}if(l.isSelectElement(p)){if(!(w=p.options[g]||p.options.other))throw new T.InvalidValueError(p.value,g,Object.keys(p.options),c);s.push.apply(s,e(w.value,n,o,i,a))}else if(l.isPluralElement(p)){var w;if(!(w=p.options["="+g])){if(!Intl.PluralRules)throw new T.FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",c);var P=o.getPluralRules(n,{type:p.pluralType}).select(g-(p.offset||0));w=p.options[P]||p.options.other}if(!w)throw new T.InvalidValueError(p.value,g,Object.keys(p.options),c);s.push.apply(s,e(w.value,n,o,i,a,g-(p.offset||0)))}}}}return function E(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e}),[])}(s)}})),_=i((function(e,t){var r=o&&o.__assign||function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},n=o&&o.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,o++)n[o]=i[a];return n};function i(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.IntlMessageFormat=void 0;var a=y.default||y,u=function(){function e(t,o,u,l){var c=this;if(void 0===o&&(o=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=c.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return S.formatToParts(c.ast,c.locales,c.formatters,c.formats,e,void 0,c.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(c.locales)[0]}},this.getAst=function(){return c.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1,ignoreTag:null==l?void 0:l.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function s(e,t){return t?Object.keys(e).reduce((function(n,o){return n[o]=function i(e,t){return t?r(r(r({},e||{}),t||{}),Object.keys(e).reduce((function(n,o){return n[o]=r(r({},e[o]),t[o]||{}),n}),{})):e}(e[o],t[o]),n}),r({},e)):e}(e.formats,u),this.locales=o,this.formatters=l&&l.formatters||function f(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:a((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,n([void 0],t)))}),{cache:i(e.number),strategy:a.strategies.variadic}),getDateTimeFormat:a((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,n([void 0],t)))}),{cache:i(e.dateTime),strategy:a.strategies.variadic}),getPluralRules:a((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,n([void 0],t)))}),{cache:i(e.pluralRules),strategy:a.strategies.variadic})}}(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=l.parse,e.formats={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"}}},e}();t.IntlMessageFormat=u})),I=i((function(e,t){var r=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=o&&o.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),n(S,t),n(_,t),n(T,t),t.default=_.IntlMessageFormat})),j=i((function(e,t){var r=o&&o.__assign||function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_THRESHOLDS=t.selectUnit=void 0,t.selectUnit=function n(e,o,i){void 0===o&&(o=Date.now()),void 0===i&&(i={});var a=r(r({},t.DEFAULT_THRESHOLDS),i||{}),u=(+e-+o)/1e3;if(Math.abs(u)<a.second)return{value:Math.round(u),unit:"second"};var l=u/60;if(Math.abs(l)<a.minute)return{value:Math.round(l),unit:"minute"};var c=u/3600;if(Math.abs(c)<a.hour)return{value:Math.round(c),unit:"hour"};var s=u/86400;if(Math.abs(s)<a.day)return{value:Math.round(s),unit:"day"};var f=new Date(e),m=new Date(o),p=f.getFullYear()-m.getFullYear();if(Math.round(Math.abs(p))>0)return{value:Math.round(p),unit:"year"};var d=12*p+f.getMonth()-m.getMonth();return Math.round(Math.abs(d))>0?{value:Math.round(d),unit:"month"}:{value:Math.round(u/604800),unit:"week"}},t.DEFAULT_THRESHOLDS={second:45,minute:45,hour:22,day:5}})),D=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=void 0,t.invariant=function r(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}})),F=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.removeUnitNamespace=t.SANCTIONED_UNITS=void 0,t.SANCTIONED_UNITS=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"],t.removeUnitNamespace=function r(e){return e.replace(/^(.*?)-/,"")}})),M=i((function(e,t){function r(e){if("symbol"==typeof e)throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function n(e,t,r,n){if(void 0!==e){if(e=Number(e),isNaN(e)||e<t||e>r)throw new RangeError(e+" is outside of range ["+t+", "+r+"]");return Math.floor(e)}return n}function o(e,t,r,o,i){return n(e[t],r,o,i)}function i(e,t,r,n){e.get(t)||e.set(t,Object.create(null)),e.get(t)[r]=n}function a(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=e.get(t);if(!o)throw new TypeError(t+" InternalSlot has not been initialized");return r.reduce((function(e,t){return e[t]=o[t],e}),Object.create(null))}function u(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t}Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperty=t.isWellFormedUnitIdentifier=t.getMagnitude=t.repeat=t.toRawPrecision=t.toRawFixed=t.formatNumericToString=t.isWellFormedCurrencyCode=t.objectIs=t.setNumberFormatDigitOptions=t.partitionPattern=t.isLiteralPart=t.getMultiInternalSlots=t.getInternalSlot=t.setMultiInternalSlots=t.setInternalSlot=t.getNumberOption=t.defaultNumberOption=t.getOption=t.toString=t.toObject=t.hasOwnProperty=void 0,t.hasOwnProperty=function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.toObject=function c(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)},t.toString=r,t.getOption=function s(e,t,n,o,i){var a=e[t];if(void 0!==a){if("boolean"!==n&&"string"!==n)throw new TypeError("invalid type");if("boolean"===n&&(a=Boolean(a)),"string"===n&&(a=r(a)),void 0!==o&&!o.filter((function(e){return e==a})).length)throw new RangeError(a+" is not within "+o.join(", "));return a}return i},t.defaultNumberOption=n,t.getNumberOption=o,t.setInternalSlot=i,t.setMultiInternalSlots=function f(e,t,r){for(var n=0,o=Object.keys(r);n<o.length;n++){var a=o[n];i(e,t,a,r[a])}},t.getInternalSlot=function m(e,t,r){return a(e,t,r)[r]},t.getMultiInternalSlots=a,t.isLiteralPart=function p(e){return"literal"===e.type},t.partitionPattern=function d(e){for(var t=[],r=e.indexOf("{"),n=0,o=0,i=e.length;r<e.length&&r>-1;)n=e.indexOf("}",r),D.invariant(n>r,"Invalid pattern "+e),r>o&&t.push({type:"literal",value:e.substring(o,r)}),t.push({type:e.substring(r+1,n),value:void 0}),r=e.indexOf("{",o=n+1);return o<i&&t.push({type:"literal",value:e.substring(o,i)}),t},t.setNumberFormatDigitOptions=function g(e,t,r,i,a){var u=o(t,"minimumIntegerDigits",1,21,1),l=t.minimumFractionDigits,c=t.maximumFractionDigits,s=t.minimumSignificantDigits,f=t.maximumSignificantDigits;e.minimumIntegerDigits=u,void 0!==s||void 0!==f?(e.roundingType="significantDigits",s=n(s,1,21,1),f=n(f,s,21,21),e.minimumSignificantDigits=s,e.maximumSignificantDigits=f):void 0!==l||void 0!==c?(e.roundingType="fractionDigits",l=n(l,0,20,r),c=n(c,l,20,Math.max(l,i)),e.minimumFractionDigits=l,e.maximumFractionDigits=c):"compact"===a?e.roundingType="compactRounding":(e.roundingType="fractionDigits",e.minimumFractionDigits=r,e.maximumFractionDigits=i)},t.objectIs=u;var y=/[^A-Z]/;function v(e,t,r){var n,o,i=r,a=Math.round(e*Math.pow(10,i)),u=a/Math.pow(10,i);if(a<1e21)n=a.toString();else{var l=(n=a.toString()).split("e"),c=l[1];n=l[0].replace(".",""),n+=b("0",Math.max(+c-n.length+1,0))}if(0!==i){var s=n.length;s<=i&&(n=b("0",i+1-s)+n,s=i+1);var f=n.slice(0,s-i),m=n.slice(s-i);n=f+"."+m,o=f.length}else o=n.length;for(var p=r-t;p>0&&"0"===n[n.length-1];)n=n.slice(0,-1),p--;return"."===n[n.length-1]&&(n=n.slice(0,-1)),{formattedString:n,roundedNumber:u,integerDigitsCount:o}}function h(e,t,r){var n,o,i,a,u=r;if(0===e)n=b("0",u),o=0,i=0;else{var l=e.toString(),c=l.indexOf("e"),s=l.split("e"),f=s[1],m=s[0].replace(".","");if(c>=0&&m.length<=u)o=+f,n=m+b("0",u-m.length),i=e;else{o=O(e);var p=Math.round(g(e,o-u+1));g(p,u-1)>=10&&(o+=1,p=Math.floor(p/10)),n=p.toString(),i=g(p,u-1-o)}}if(o>=u-1?(n+=b("0",o-u+1),a=o+1):o>=0?(n=n.slice(0,o+1)+"."+n.slice(o+1),a=o+1):(n="0."+b("0",-o-1)+n,a=1),n.indexOf(".")>=0&&r>t){for(var d=r-t;d>0&&"0"===n[n.length-1];)n=n.slice(0,-1),d--;"."===n[n.length-1]&&(n=n.slice(0,-1))}return{formattedString:n,roundedNumber:i,integerDigitsCount:a};function g(e,t){return t<0?e*Math.pow(10,-t):e/Math.pow(10,t)}}function b(e,t){if("function"==typeof e.repeat)return e.repeat(t);for(var r=new Array(t),n=0;n<r.length;n++)r[n]=e;return r.join("")}function O(e){return Math.floor(Math.log(e)*Math.LOG10E)}t.isWellFormedCurrencyCode=function w(e){return 3===(e=function t(e){return e.replace(/([a-z])/g,(function(e,t){return t.toUpperCase()}))}(e)).length&&!y.test(e)},t.formatNumericToString=function P(e,t){var r,n=t<0||u(t,-0);switch(n&&(t=-t),e.roundingType){case"significantDigits":r=h(t,e.minimumSignificantDigits,e.maximumSignificantDigits);break;case"fractionDigits":r=v(t,e.minimumFractionDigits,e.maximumFractionDigits);break;default:(r=h(t,1,2)).integerDigitsCount>1&&(r=v(t,0,0))}t=r.roundedNumber;var o=r.formattedString,i=r.integerDigitsCount,a=e.minimumIntegerDigits;return i<a&&(o=b("0",a-i)+o),n&&(t=-t),{roundedNumber:t,formattedString:o}},t.toRawFixed=v,t.toRawPrecision=h,t.repeat=b,t.getMagnitude=O;var E=F.SANCTIONED_UNITS.map((function(e){return e.replace(/^(.*?)-/,"")}));t.isWellFormedUnitIdentifier=function T(e){if(e=function t(e){return e.replace(/([A-Z])/g,(function(e,t){return t.toLowerCase()}))}(e),E.indexOf(e)>-1)return!0;var r=e.split("-per-");return 2===r.length&&!(E.indexOf(r[0])<0||E.indexOf(r[1])<0)},t.defineProperty=function S(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r.value})}})),N=i((function(e,t){var r,n=o&&o.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=o&&o.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){D.invariant(2===t.length,"key must have 2 elements");var r=e.length,n="-"+t+"-",o=e.indexOf(n);if(-1!==o){for(var i=o+4,a=i,u=i,l=!1;!l;){var c=e.indexOf("-",u);2==(-1===c?r-u:c-u)?l=!0:-1===c?(a=r,l=!0):(a=c,u=c+1)}return e.slice(i,a)}if(-1!==(o=e.indexOf(n="-"+t))&&o+3===r)return""}Object.defineProperty(t,"__esModule",{value:!0}),t.unpackData=t.isMissingLocaleDataError=t.supportedLocales=t.getLocaleHierarchy=t.createResolveLocale=void 0,t.createResolveLocale=function u(e){var t=function r(e){return function t(r,n){for(var o={locale:""},i=0,a=n;i<a.length;i++){var u=a[i],s=u.replace(l,""),f=c(r,s);if(f)return o.locale=f,u!==s&&(o.extension=u.slice(s.length+1,u.length)),o}return o.locale=e(),o}}(e),n=function o(e){return function t(r,n){for(var o={locale:""},i=0,a=n;i<a.length;i++){var u=a[i],s=u.replace(l,""),f=c(r,s);if(f)return o.locale=f,u!==s&&(o.extension=u.slice(s.length+1,u.length)),o}return o.locale=e(),o}}(e);return function e(r,o,i,u,l){for(var c,s=(c="lookup"===i.localeMatcher?t(r,o):n(r,o)).locale,f={locale:"",dataLocale:s},m="-u",p=0,d=u;p<d.length;p++){var g=d[p],y=l[s];D.invariant("object"==typeof y&&null!==y,"locale data "+g+" must be an object");var v=y[g];D.invariant(Array.isArray(v),"keyLocaleData for "+g+" must be an array");var h=v[0];D.invariant("string"==typeof h||null===h,"value must be string or null but got "+typeof h+" in key "+g);var b="";if(c.extension){var O=a(c.extension,g);void 0!==O&&(""!==O?~v.indexOf(O)&&(b="-"+g+"-"+(h=O)):~O.indexOf("true")&&(h="true",b="-"+g))}if(g in i){var w=i[g];D.invariant("string"==typeof w||null==w,"optionsValue must be String, Undefined or Null"),~v.indexOf(w)&&w!==h&&(h=w,b="")}f[g]=h,m+=b}if(m.length>2){var P=s.indexOf("-x-");if(-1===P)s+=m;else{var E=s.slice(0,P),T=s.slice(P,s.length);s=E+m+T}s=Intl.getCanonicalLocales(s)[0]}return f.locale=s,f}};var l=/-u(?:-[0-9a-z]{2,8})+/gi;function c(e,t){for(var r=t;;){if(~e.indexOf(r))return r;var n=r.lastIndexOf("-");if(!~n)return;n>=2&&"-"===r[n-2]&&(n-=2),r=r.slice(0,n)}}function s(e){for(var t=[e],r=e.split("-"),n=r.length;n>1;n--)t.push(r.slice(0,n-1).join("-"));return t}t.getLocaleHierarchy=s,t.supportedLocales=function f(e,t,r){return void 0!==r&&(r=M.toObject(r),M.getOption(r,"localeMatcher","string",["lookup","best fit"],"best fit")),function n(e,t){for(var r=[],n=0,o=t;n<o.length;n++){var i=c(e,o[n].replace(l,""));i&&r.push(i)}return r}(e,t)};var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t}return n(t,e),t}(Error);t.isMissingLocaleDataError=function p(e){return"MISSING_LOCALE_DATA"===e.type},t.unpackData=function d(e,t,r){void 0===r&&(r=function(e,t){return i(i({},e),t)});var n=s(e),o=n.map((function(e){return t.data[e]})).filter(Boolean);if(!o.length)throw new m('Missing locale data for "'+e+'", lookup hierarchy: '+n.join(", "));return o.reverse(),o.reduce(r,{})}})),R=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),L=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),A=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),x=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),k=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),C=i((function(e,t){var r=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=o&&o.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"selectUnit",{enumerable:!0,get:function(){return j.selectUnit}}),Object.defineProperty(t,"defaultNumberOption",{enumerable:!0,get:function(){return M.defaultNumberOption}}),Object.defineProperty(t,"getInternalSlot",{enumerable:!0,get:function(){return M.getInternalSlot}}),Object.defineProperty(t,"getMultiInternalSlots",{enumerable:!0,get:function(){return M.getMultiInternalSlots}}),Object.defineProperty(t,"getNumberOption",{enumerable:!0,get:function(){return M.getNumberOption}}),Object.defineProperty(t,"getOption",{enumerable:!0,get:function(){return M.getOption}}),Object.defineProperty(t,"isLiteralPart",{enumerable:!0,get:function(){return M.isLiteralPart}}),Object.defineProperty(t,"partitionPattern",{enumerable:!0,get:function(){return M.partitionPattern}}),Object.defineProperty(t,"setInternalSlot",{enumerable:!0,get:function(){return M.setInternalSlot}}),Object.defineProperty(t,"setMultiInternalSlots",{enumerable:!0,get:function(){return M.setMultiInternalSlots}}),Object.defineProperty(t,"setNumberFormatDigitOptions",{enumerable:!0,get:function(){return M.setNumberFormatDigitOptions}}),Object.defineProperty(t,"toObject",{enumerable:!0,get:function(){return M.toObject}}),Object.defineProperty(t,"objectIs",{enumerable:!0,get:function(){return M.objectIs}}),Object.defineProperty(t,"isWellFormedCurrencyCode",{enumerable:!0,get:function(){return M.isWellFormedCurrencyCode}}),Object.defineProperty(t,"toString",{enumerable:!0,get:function(){return M.toString}}),Object.defineProperty(t,"formatNumericToString",{enumerable:!0,get:function(){return M.formatNumericToString}}),Object.defineProperty(t,"toRawFixed",{enumerable:!0,get:function(){return M.toRawFixed}}),Object.defineProperty(t,"toRawPrecision",{enumerable:!0,get:function(){return M.toRawPrecision}}),Object.defineProperty(t,"getMagnitude",{enumerable:!0,get:function(){return M.getMagnitude}}),Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return M.repeat}}),Object.defineProperty(t,"hasOwnProperty",{enumerable:!0,get:function(){return M.hasOwnProperty}}),Object.defineProperty(t,"isWellFormedUnitIdentifier",{enumerable:!0,get:function(){return M.isWellFormedUnitIdentifier}}),Object.defineProperty(t,"defineProperty",{enumerable:!0,get:function(){return M.defineProperty}}),Object.defineProperty(t,"createResolveLocale",{enumerable:!0,get:function(){return N.createResolveLocale}}),Object.defineProperty(t,"getLocaleHierarchy",{enumerable:!0,get:function(){return N.getLocaleHierarchy}}),Object.defineProperty(t,"supportedLocales",{enumerable:!0,get:function(){return N.supportedLocales}}),Object.defineProperty(t,"unpackData",{enumerable:!0,get:function(){return N.unpackData}}),Object.defineProperty(t,"isMissingLocaleDataError",{enumerable:!0,get:function(){return N.isMissingLocaleDataError}}),n(F,t),n(R,t),n(L,t),n(A,t),n(x,t),n(k,t),Object.defineProperty(t,"invariant",{enumerable:!0,get:function(){return D.invariant}})})),U=(w=function(e,t){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});(P=e.ReactIntlErrorCode||(e.ReactIntlErrorCode={})).FORMAT_ERROR="FORMAT_ERROR",P.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",P.INVALID_CONFIG="INVALID_CONFIG",P.MISSING_DATA="MISSING_DATA",P.MISSING_TRANSLATION="MISSING_TRANSLATION";var V=function(e){function t(r,n,o){var i=e.call(this,"[React Intl Error "+r+"] "+n+" \n"+(o?"\n"+o.message+"\n"+o.stack:""))||this;return i.code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return U(t,e),t}(Error),$=function(e){function t(t,r){return e.call(this,"UNSUPPORTED_FORMATTER",t,r)||this}return U(t,e),t}(V),z=function(e){function t(t,r){return e.call(this,"INVALID_CONFIG",t,r)||this}return U(t,e),t}(V),G=function(e){function t(t,r){return e.call(this,"MISSING_DATA",t,r)||this}return U(t,e),t}(V),Z=function(e){function t(t,r,n,o){var i=e.call(this,"FORMAT_ERROR",t+" \nLocale: "+r+"\nMessageID: "+(null==n?void 0:n.id)+"\nDefault Message: "+(null==n?void 0:n.defaultMessage)+"\nDescription: "+(null==n?void 0:n.description)+" \n",o)||this;return i.descriptor=n,i}return U(t,e),t}(V),Y=function(e){function t(t,r){var n=e.call(this,"MISSING_TRANSLATION",'Missing message: "'+t.id+'" for locale "'+r+'", using '+(t.defaultMessage?"default message":"id")+" as fallback.")||this;return n.descriptor=t,n}return U(t,e),t}(V),H=function(){return(H=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},W=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,o++)n[o]=i[a];return n};function q(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}function B(e){C.invariant(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var K={formats:{},messages:{},timeZone:void 0,textComponent:t.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function X(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var J=y||E;function Q(e,t,r,n){var o,i=e&&e[t];if(i&&(o=i[r]),o)return o;n(new $("No "+t+" format named: "+r))}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactIntl={},e.React)}(this,(function(e,t){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=r(t),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function r(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var i=a((function(e,t){var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.createNumberElement=t.createLiteralElement=t.isDateTimeSkeleton=t.isNumberSkeleton=t.isTagElement=t.isPoundElement=t.isPluralElement=t.isSelectElement=t.isTimeElement=t.isDateElement=t.isNumberElement=t.isArgumentElement=t.isLiteralElement=t.SKELETON_TYPE=t.TYPE=void 0,function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(r=t.TYPE||(t.TYPE={})),(n=t.SKELETON_TYPE||(t.SKELETON_TYPE={}))[n.number=0]="number",n[n.dateTime=1]="dateTime",t.isLiteralElement=function o(e){return e.type===r.literal},t.isArgumentElement=function a(e){return e.type===r.argument},t.isNumberElement=function i(e){return e.type===r.number},t.isDateElement=function u(e){return e.type===r.date},t.isTimeElement=function l(e){return e.type===r.time},t.isSelectElement=function s(e){return e.type===r.select},t.isPluralElement=function c(e){return e.type===r.plural},t.isPoundElement=function f(e){return e.type===r.pound},t.isTagElement=function m(e){return e.type===r.tag},t.isNumberSkeleton=function p(e){return!(!e||"object"!=typeof e||0!==e.type)},t.isDateTimeSkeleton=function d(e){return!(!e||"object"!=typeof e||1!==e.type)},t.createLiteralElement=function y(e){return{type:r.literal,value:e}},t.createNumberElement=function v(e,t){return{type:r.number,value:e,style:t}}})),u=a((function(e,t){var r=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=o&&o.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0,n(i,t),t.parse=function a(){throw new Error("You're trying to format an uncompiled message with react-intl without parser, please import from 'react-int' instead")}}));function l(e,t,r,n){var o=function a(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),i=t.get(o);return void 0===i&&(i=e.call(this,n),t.set(o,i)),i}function s(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),a=t.get(o);return void 0===a&&(a=e.apply(this,n),t.set(o,a)),a}function c(e,t,r,n,o){return r.bind(t,e,n,o)}function f(e,t){return c(e,this,1===e.length?l:s,t.cache.create(),t.serializer)}function m(){return JSON.stringify(arguments)}function p(){this.cache=Object.create(null)}p.prototype.has=function(e){return e in this.cache},p.prototype.get=function(e){return this.cache[e]},p.prototype.set=function(e,t){this.cache[e]=t};var d={create:function e(){return new p}},y=function v(e,t){return(t&&t.strategy?t.strategy:f)(e,{cache:t&&t.cache?t.cache:d,serializer:t&&t.serializer?t.serializer:m})},g={variadic:function h(e,t){return c(e,this,s,t.cache.create(),t.serializer)},monadic:function b(e,t){return c(e,this,l,t.cache.create(),t.serializer)}};y.strategies=g;var T,O,E=Object.freeze(Object.assign(Object.create(null),y,{default:y,strategies:g})),I=(T=function(e,t){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}T(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(O||(O={}));var P,w=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return I(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),_=function(e){function t(t,r,n,o){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',"INVALID_VALUE",o)||this}return I(t,e),t}(w),S=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,"INVALID_VALUE",n)||this}return I(t,e),t}(w),N=function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',"MISSING_VALUE",r)||this}return I(t,e),t}(w);function F(e){return"function"==typeof e}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(P||(P={}));var R=function(){return(R=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},j=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};function D(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var M=y||E,A=function(){function e(t,r,n,o){var a=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return function e(t,r,n,o,a,i,l){if(1===t.length&&u.isLiteralElement(t[0]))return[{type:0,value:t[0].value}];for(var s=[],c=0,f=t;c<f.length;c++){var m=f[c];if(u.isLiteralElement(m))s.push({type:0,value:m.value});else if(u.isPoundElement(m))"number"==typeof i&&s.push({type:0,value:n.getNumberFormat(r).format(i)});else{var p=m.value;if(!a||!(p in a))throw new N(p,l);var d=a[p];if(u.isArgumentElement(m))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),s.push({type:"string"==typeof d?0:1,value:d});else if(u.isDateElement(m)){var y="string"==typeof m.style?o.date[m.style]:u.isDateTimeSkeleton(m.style)?m.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(r,y).format(d)})}else if(u.isTimeElement(m))y="string"==typeof m.style?o.time[m.style]:u.isDateTimeSkeleton(m.style)?m.style.parsedOptions:void 0,s.push({type:0,value:n.getDateTimeFormat(r,y).format(d)});else if(u.isNumberElement(m))y="string"==typeof m.style?o.number[m.style]:u.isNumberSkeleton(m.style)?m.style.parsedOptions:void 0,s.push({type:0,value:n.getNumberFormat(r,y).format(d)});else{if(u.isTagElement(m)){var v=m.children,g=m.value,h=a[g];if(!F(h))throw new S(g,"function",l);var b=h(e(v,r,n,o,a,i).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),s.push.apply(s,b.map((function(e){return{type:"string"==typeof e?0:1,value:e}})))}if(u.isSelectElement(m)){if(!(T=m.options[d]||m.options.other))throw new _(m.value,d,Object.keys(m.options),l);s.push.apply(s,e(T.value,r,n,o,a))}else if(u.isPluralElement(m)){var T;if(!(T=m.options["="+d])){if(!Intl.PluralRules)throw new w('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",l);var O=n.getPluralRules(r,{type:m.pluralType}).select(d-(m.offset||0));T=m.options[O]||m.options.other}if(!T)throw new _(m.value,d,Object.keys(m.options),l);s.push.apply(s,e(T.value,r,n,o,a,d-(m.offset||0)))}}}}return function E(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e}),[])}(s)}(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1,ignoreTag:null==o?void 0:o.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function i(e,t){return t?Object.keys(e).reduce((function(r,n){return r[n]=function o(e,t){return t?R(R(R({},e||{}),t||{}),Object.keys(e).reduce((function(r,n){return r[n]=R(R({},e[n]),t[n]||{}),r}),{})):e}(e[n],t[n]),r}),R({},e)):e}(e.formats,n),this.locales=r,this.formatters=o&&o.formatters||function l(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:M((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,j([void 0],t)))}),{cache:D(e.number),strategy:M.strategies.variadic}),getDateTimeFormat:M((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,j([void 0],t)))}),{cache:D(e.dateTime),strategy:M.strategies.variadic}),getPluralRules:M((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,j([void 0],t)))}),{cache:D(e.pluralRules),strategy:M.strategies.variadic})}}(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=u.parse,e.formats={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"}}},e}();function L(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}var C,x=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();(C=e.ReactIntlErrorCode||(e.ReactIntlErrorCode={})).FORMAT_ERROR="FORMAT_ERROR",C.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",C.INVALID_CONFIG="INVALID_CONFIG",C.MISSING_DATA="MISSING_DATA",C.MISSING_TRANSLATION="MISSING_TRANSLATION";var k=function(e){function t(r,n,o){var a=e.call(this,"[React Intl Error "+r+"] "+n+" \n"+(o?"\n"+o.message+"\n"+o.stack:""))||this;return a.code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return x(t,e),t}(Error),$=function(e){function t(t,r){return e.call(this,"UNSUPPORTED_FORMATTER",t,r)||this}return x(t,e),t}(k),U=function(e){function t(t,r){return e.call(this,"INVALID_CONFIG",t,r)||this}return x(t,e),t}(k),V=function(e){function t(t,r){return e.call(this,"MISSING_DATA",t,r)||this}return x(t,e),t}(k),G=function(e){function t(t,r,n,o){var a=e.call(this,"FORMAT_ERROR",t+" \nLocale: "+r+"\nMessageID: "+(null==n?void 0:n.id)+"\nDefault Message: "+(null==n?void 0:n.defaultMessage)+"\nDescription: "+(null==n?void 0:n.description)+" \n",o)||this;return a.descriptor=n,a}return x(t,e),t}(k),z=function(e){function t(t,r){var n=e.call(this,"MISSING_TRANSLATION",'Missing message: "'+t.id+'" for locale "'+r+'", using '+(t.defaultMessage?"default message":"id")+" as fallback.")||this;return n.descriptor=t,n}return x(t,e),t}(k),Z=function(){return(Z=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Y=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};function q(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}function K(e){L(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var W={formats:{},messages:{},timeZone:void 0,textComponent:t.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function B(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var H=y||E;function J(e,t,r,n){var o,a=e&&e[t];if(a&&(o=a[r]),o)return o;n(new $("No "+t+" format named: "+r))}
2
2
  /** @license React v16.13.1
3
3
  * react-is.production.min.js
4
4
  *
@@ -7,4 +7,4 @@
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
- var ee="function"==typeof Symbol&&Symbol.for,te=ee?Symbol.for("react.element"):60103,re=ee?Symbol.for("react.portal"):60106,ne=ee?Symbol.for("react.fragment"):60107,oe=ee?Symbol.for("react.strict_mode"):60108,ie=ee?Symbol.for("react.profiler"):60114,ae=ee?Symbol.for("react.provider"):60109,ue=ee?Symbol.for("react.context"):60110,le=ee?Symbol.for("react.async_mode"):60111,ce=ee?Symbol.for("react.concurrent_mode"):60111,se=ee?Symbol.for("react.forward_ref"):60112,fe=ee?Symbol.for("react.suspense"):60113,me=ee?Symbol.for("react.suspense_list"):60120,pe=ee?Symbol.for("react.memo"):60115,de=ee?Symbol.for("react.lazy"):60116,ge=ee?Symbol.for("react.block"):60121,ye=ee?Symbol.for("react.fundamental"):60117,ve=ee?Symbol.for("react.responder"):60118,he=ee?Symbol.for("react.scope"):60119;function be(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case te:switch(e=e.type){case le:case ce:case ne:case ie:case oe:case fe:return e;default:switch(e=e&&e.$$typeof){case ue:case se:case de:case pe:case ae:return e;default:return t}}case re:return t}}}function Oe(e){return be(e)===ce}var we={AsyncMode:le,ConcurrentMode:ce,ContextConsumer:ue,ContextProvider:ae,Element:te,ForwardRef:se,Fragment:ne,Lazy:de,Memo:pe,Portal:re,Profiler:ie,StrictMode:oe,Suspense:fe,isAsyncMode:function(e){return Oe(e)||be(e)===le},isConcurrentMode:Oe,isContextConsumer:function(e){return be(e)===ue},isContextProvider:function(e){return be(e)===ae},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===te},isForwardRef:function(e){return be(e)===se},isFragment:function(e){return be(e)===ne},isLazy:function(e){return be(e)===de},isMemo:function(e){return be(e)===pe},isPortal:function(e){return be(e)===re},isProfiler:function(e){return be(e)===ie},isStrictMode:function(e){return be(e)===oe},isSuspense:function(e){return be(e)===fe},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===ne||e===ce||e===ie||e===oe||e===fe||e===me||"object"==typeof e&&null!==e&&(e.$$typeof===de||e.$$typeof===pe||e.$$typeof===ae||e.$$typeof===ue||e.$$typeof===se||e.$$typeof===ye||e.$$typeof===ve||e.$$typeof===he||e.$$typeof===ge)},typeOf:be},Pe=i((function(e){e.exports=we})),Ee={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Te={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Se={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_e={};function Ie(e){return Pe.isMemo(e)?Se:_e[e.$$typeof]||Ee}_e[Pe.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_e[Pe.Memo]=Se;var je=Object.defineProperty,De=Object.getOwnPropertyNames,Fe=Object.getOwnPropertySymbols,Me=Object.getOwnPropertyDescriptor,Ne=Object.getPrototypeOf,Re=Object.prototype,Le=function e(t,r,n){if("string"!=typeof r){if(Re){var o=Ne(r);o&&o!==Re&&e(t,o,n)}var i=De(r);Fe&&(i=i.concat(Fe(r)));for(var a=Ie(t),u=Ie(r),l=0;l<i.length;++l){var c=i[l];if(!(Te[c]||n&&n[c]||u&&u[c]||a&&a[c])){var s=Me(r,c);try{je(t,c,s)}catch(e){}}}}return t},Ae=function(){return(Ae=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},xe=Le||Object.freeze(Object.assign(Object.create(null),Le,{default:Le})),ke=t.createContext(null),Ce=ke.Consumer,Ue=ke.Provider,Ve=ke;function $e(e,r){var n=r||{},o=n.intlPropName,i=void 0===o?"intl":o,a=n.forwardRef,u=void 0!==a&&a,l=n.enforceContext,c=void 0===l||l,s=function(r){return t.createElement(Ce,null,(function(n){var o;c&&B(n);var a=((o={})[i]=n,o);return t.createElement(e,Ae({},r,a,{ref:u?r.forwardedRef:null}))}))};return s.displayName="injectIntl("+function f(e){return e.displayName||e.name||"Component"}(e)+")",s.WrappedComponent=e,xe(u?t.forwardRef((function(e,r){return t.createElement(s,Ae({},e,{forwardedRef:r}))})):s,e)}var ze,Ge,Ze=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(ze||(ze={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(Ge||(Ge={}));var Ye=function(e){return t.createElement(Ve.Consumer,null,(function(t){B(t);var r=e.value,n=e.children,o=Ze(e,["value","children"]);return n(t.formatNumberToParts(r,o))}))};function He(e){var r=function(r){return t.createElement(Ve.Consumer,null,(function(t){B(t);var n=r.value,o=r.children,i=Ze(r,["value","children"]),a="string"==typeof n?new Date(n||0):n;return o("formatDate"===e?t.formatDateToParts(a,i):t.formatTimeToParts(a,i))}))};return r.displayName=Ge[e],r}function We(e){var r=function(r){return t.createElement(Ve.Consumer,null,(function(n){B(n);var o=r.value,i=r.children,a=Ze(r,["value","children"]),u=n[e](o,a);return"function"==typeof i?i(u):t.createElement(n.textComponent||t.Fragment,null,u)}))};return r.displayName=ze[e],r}Ye.displayName="FormattedNumberParts";var qe=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function Be(e,t,r){var n=e.locale;void 0===r&&(r={});var o=r.format,i=o&&Q(e.formats,"number",o,e.onError)||{};return t(n,q(r,qe,i))}function Ke(e,t,r,n){void 0===n&&(n={});try{return Be(e,t,n).format(r)}catch(t){e.onError(new V("FORMAT_ERROR","Error formatting number.",t))}return String(r)}function Xe(e,t,r,n){void 0===n&&(n={});try{return Be(e,t,n).formatToParts(r)}catch(t){e.onError(new V("FORMAT_ERROR","Error formatting number.",t))}return[]}var Je=["numeric","style"];function Qe(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new I.FormatError('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',"MISSING_INTL_API"));try{return function i(e,t,r){var n=e.locale;void 0===r&&(r={});var o=r.format,i=!!o&&Q(e.formats,"relative",o,e.onError)||{};return t(n,q(r,Je,i))}(e,t,o).format(r,n)}catch(t){e.onError(new Z("Error formatting relative time.",t))}return String(r)}var et=function(){return(et=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},tt=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","fractionalSecondDigits","calendar","numberingSystem"];function rt(e,t,r,n){var o=e.locale,i=e.formats,a=e.onError,u=e.timeZone;void 0===n&&(n={});var l=n.format,c=et(et({},u&&{timeZone:u}),l&&Q(i,t,l,a)),s=q(n,tt,c);return"time"!==t||s.hour||s.minute||s.second||(s=et(et({},s),{hour:"numeric",minute:"numeric"})),r(o,s)}function nt(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return rt(e,"date",t,n).format(o)}catch(t){e.onError(new V("FORMAT_ERROR","Error formatting date.",t))}return String(o)}function ot(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return rt(e,"time",t,n).format(o)}catch(t){e.onError(new V("FORMAT_ERROR","Error formatting time.",t))}return String(o)}function it(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return rt(e,"date",t,n).formatToParts(o)}catch(t){e.onError(new V("FORMAT_ERROR","Error formatting date.",t))}return[]}function at(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return rt(e,"time",t,n).formatToParts(o)}catch(t){e.onError(new V("FORMAT_ERROR","Error formatting time.",t))}return[]}var ut=["localeMatcher","type"];function lt(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.PluralRules||i(new I.FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API"));var a=q(n,ut);try{return t(o,a).select(r)}catch(e){i(new Z("Error formatting plural.",e))}return"other"}var ct=function(){return(ct=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function st(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=ct({timeZone:t},e[n]),r}),{})}function ft(e,t){return Object.keys(ct(ct({},e),t)).reduce((function(r,n){return r[n]=ct(ct({},e[n]||{}),t[n]||{}),r}),{})}function mt(e,t){if(!t)return e;var r=I.IntlMessageFormat.formats;return ct(ct(ct({},r),e),{date:ft(st(r.date,t),st(e.date||{},t)),time:ft(st(r.time,t),st(e.time||{},t))})}function pt(e,r){return Array.isArray(e)&&r?t.createElement.apply(n,function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,o++)n[o]=i[a];return n}([t.Fragment,null],e)):e}function dt(e,r,n,o){var i=e.locale,a=e.formats,u=e.messages,c=e.defaultLocale,s=e.defaultFormats,f=e.onError,m=e.timeZone,p=e.wrapRichTextChunksInFragment,d=e.defaultRichTextElements;void 0===n&&(n={id:""});var g=n.id,y=n.defaultMessage;C.invariant(!!g,"[React Intl] An `id` must be provided to format a message.");var v=String(g),h=u&&Object.prototype.hasOwnProperty.call(u,v)&&u[v];if(Array.isArray(h)&&1===h.length&&h[0].type===l.TYPE.literal)return h[0].value;if(!o&&h&&"string"==typeof h&&d&&console.error('[React Intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution'),!o&&h&&"string"==typeof h&&!d)return h.replace(/'\{(.*?)\}'/gi,"{$1}");var b=function O(e){return Object.keys(e).reduce((function(r,n){var o=e[n];return r[n]=I.isFormatXMLElementFn(o)?function i(e){return function(r){return e(t.Children.toArray(r))}}(o):o,r}),{})}(ct(ct({},d),o||{}));if(a=mt(a,m),s=mt(s,m),!h){if((!y||i&&i.toLowerCase()!==c.toLowerCase())&&f(new Y(n,i)),y)try{return pt(r.getMessageFormat(y,c,s).format(b),p)}catch(e){return f(new Z('Error formatting default message for: "'+v+'", rendering default message verbatim',i,n,e)),y}return v}try{return pt(r.getMessageFormat(h,i,a,{formatters:r}).format(b),p)}catch(e){f(new Z('Error formatting message: "'+v+'", using '+(y?"default message":"id")+" as fallback.",i,n,e))}if(y)try{return pt(r.getMessageFormat(y,c,s).format(b),p)}catch(e){f(new Z('Error formatting the default message for: "'+v+'", rendering message verbatim',i,n,e))}return h||y||v}var gt=function yt(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var i=0;i<o;i++){var a=r[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0},vt=Object.freeze(Object.assign(Object.create(null),gt,{default:gt})),ht=["localeMatcher","type","style"],bt=Date.now();function Ot(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.ListFormat||i(new I.FormatError('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',"MISSING_INTL_API"));var a=q(n,ht);try{var u={},l=r.map((function(e,t){if("object"==typeof e){var r=function n(e){return bt+"_"+e+"_"+bt}(t);return u[r]=e,r}return String(e)}));return Object.keys(u).length?t(o,a).formatToParts(l).reduce((function(e,t){var r=t.value;return u[r]?e.push(u[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]):t(o,a).format(l)}catch(e){i(new V("FORMAT_ERROR","Error formatting list.",e))}return r}var wt=["localeMatcher","style","type","fallback"];function Pt(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.DisplayNames||i(new I.FormatError('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',"MISSING_INTL_API"));var a=q(n,wt);try{return t(o,a).of(r)}catch(e){i(new V("FORMAT_ERROR","Error formatting display name.",e))}}var Et=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Tt=function(){return(Tt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},St=gt||vt;function _t(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function It(e,t){var r=function n(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=J((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,W([void 0],t)))}),{cache:X(e.dateTime),strategy:J.strategies.variadic}),i=J((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,W([void 0],t)))}),{cache:X(e.number),strategy:J.strategies.variadic}),a=J((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,W([void 0],t)))}),{cache:X(e.pluralRules),strategy:J.strategies.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:J((function(e,t,r,n){return new I.IntlMessageFormat(e,t,r,H({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:a}},n||{}))}),{cache:X(e.message),strategy:J.strategies.variadic}),getRelativeTimeFormat:J((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,W([void 0],e)))}),{cache:X(e.relativeTime),strategy:J.strategies.variadic}),getPluralRules:a,getListFormat:J((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,W([void 0],e)))}),{cache:X(e.list),strategy:J.strategies.variadic}),getDisplayNames:J((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,W([void 0],e)))}),{cache:X(e.displayNames),strategy:J.strategies.variadic})}}(t),o=Tt(Tt({},K),e),i=o.locale,a=o.defaultLocale,u=o.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&u?u(new G('Missing locale data for locale: "'+i+'" in Intl.NumberFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&u&&u(new G('Missing locale data for locale: "'+i+'" in Intl.DateTimeFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(u&&u(new z('"locale" was not configured, using "'+a+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),o.locale=o.defaultLocale||"en"),Tt(Tt({},o),{formatters:r,formatNumber:Ke.bind(null,o,r.getNumberFormat),formatNumberToParts:Xe.bind(null,o,r.getNumberFormat),formatRelativeTime:Qe.bind(null,o,r.getRelativeTimeFormat),formatDate:nt.bind(null,o,r.getDateTimeFormat),formatDateToParts:it.bind(null,o,r.getDateTimeFormat),formatTime:ot.bind(null,o,r.getDateTimeFormat),formatTimeToParts:at.bind(null,o,r.getDateTimeFormat),formatPlural:lt.bind(null,o,r.getPluralRules),formatMessage:dt.bind(null,o,r),formatList:Ot.bind(null,o,r.getListFormat),formatDisplayName:Pt.bind(null,o,r.getDisplayNames)})}var jt=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:It(_t(t.props),t.cache),prevConfig:_t(t.props)},t}return Et(r,e),r.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=_t(e);return St(r,o)?null:{intl:It(o,n),prevConfig:o}},r.prototype.render=function(){return B(this.state.intl),t.createElement(Ue,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=K,r}(t.PureComponent),Dt=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ft=function(){return(Ft=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Mt(e){var t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":"day"}function Nt(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return 3600;default:return 86400}}function Rt(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return 3600*e}}var Lt=["second","minute","hour"];function At(e){return void 0===e&&(e="second"),Lt.includes(e)}var xt=function(e){function r(t){var r=e.call(this,t)||this;return r._updateTimer=null,r.state={prevUnit:r.props.unit,prevValue:r.props.value,currentValueInSeconds:At(r.props.unit)?Rt(r.props.value,r.props.unit):0},C.invariant(!t.updateIntervalInSeconds||!(!t.updateIntervalInSeconds||!At(t.unit)),"Cannot schedule update with unit longer than hour"),r}return Dt(r,e),r.prototype.scheduleNextUpdate=function(e,t){var r=this,n=e.updateIntervalInSeconds,o=e.unit,i=t.currentValueInSeconds;if(clearTimeout(this._updateTimer),this._updateTimer=null,n&&At(o)){var a=i-n,u=Mt(a);if("day"!==u){var l=Nt(u),c=a-a%l,s=c>=i?c-l:c,f=Math.abs(s-i);this._updateTimer=setTimeout((function(){return r.setState({currentValueInSeconds:s})}),1e3*f)}}},r.prototype.componentDidMount=function(){this.scheduleNextUpdate(this.props,this.state)},r.prototype.componentDidUpdate=function(){this.scheduleNextUpdate(this.props,this.state)},r.prototype.componentWillUnmount=function(){clearTimeout(this._updateTimer),this._updateTimer=null},r.getDerivedStateFromProps=function(e,t){return e.unit!==t.prevUnit||e.value!==t.prevValue?{prevValue:e.value,prevUnit:e.unit,currentValueInSeconds:At(e.unit)?Rt(e.value,e.unit):0}:null},r.prototype.render=function(){var e=this;return t.createElement(Ve.Consumer,null,(function(r){B(r);var n=r.formatRelativeTime,o=r.textComponent,i=e.props,a=i.children,u=i.unit,l=i.updateIntervalInSeconds,c=e.state.currentValueInSeconds,s=i.value||0,f=u;if(At(u)&&"number"==typeof c&&l){var m=Nt(f=Mt(c));s=Math.round(c/m)}var p=n(s,f,Ft({},e.props));return"function"==typeof a?a(p):o?t.createElement(o,null,p):p}))},r.displayName="FormattedRelativeTime",r.defaultProps={value:0,unit:"second"},r}(t.PureComponent),kt=function(e){var r=e.other,n=e.children,o=e.intl,i=o.textComponent,a=e[(0,o.formatPlural)(e.value,e)]||r;return"function"==typeof n?n(a):i?t.createElement(i,null,a):a};kt.defaultProps={type:"cardinal"},kt.displayName="FormattedPlural";var Ct=$e(kt),Ut=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Vt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},$t=gt||vt,zt=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return Ut(r,e),r.prototype.shouldComponentUpdate=function(e){var t=this.props,r=t.values,n=Vt(t,["values"]),o=e.values,i=Vt(e,["values"]);return!$t(o,r)||!$t(n,i)},r.prototype.render=function(){var e=this;return t.createElement(Ve.Consumer,null,(function(r){B(r);var o=r.textComponent,i=e.props,a=i.children,u=i.tagName,l=void 0===u?void 0===o?t.Fragment:o:u,c=(0,r.formatMessage)({id:i.id,description:i.description,defaultMessage:i.defaultMessage},i.values);return Array.isArray(c)||(c=[c]),"function"==typeof a?a(c):l?t.createElement.apply(n,function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,o++)n[o]=i[a];return n}([l,null],c)):c}))},r.displayName="FormattedMessage",r}(t.Component),Gt=We("formatDate"),Zt=We("formatTime"),Yt=We("formatNumber"),Ht=We("formatList"),Wt=We("formatDisplayName"),qt=He("formatDate"),Bt=He("formatTime");e.FormattedDate=Gt,e.FormattedDateParts=qt,e.FormattedDisplayName=Wt,e.FormattedList=Ht,e.FormattedMessage=zt,e.FormattedNumber=Yt,e.FormattedNumberParts=Ye,e.FormattedPlural=Ct,e.FormattedRelativeTime=xt,e.FormattedTime=Zt,e.FormattedTimeParts=Bt,e.IntlContext=Ve,e.IntlProvider=jt,e.InvalidConfigError=z,e.MessageFormatError=Z,e.MissingDataError=G,e.MissingTranslationError=Y,e.RawIntlProvider=Ue,e.ReactIntlError=V,e.UnsupportedFormatterError=$,e.createIntl=It,e.createIntlCache=function Kt(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}},e.defineMessage=function Xt(e){return e},e.defineMessages=function Jt(e){return e},e.injectIntl=$e,e.useIntl=function Qt(){var e=t.useContext(Ve);return B(e),e},Object.defineProperty(e,"__esModule",{value:!0})}));
10
+ var Q="function"==typeof Symbol&&Symbol.for,X=Q?Symbol.for("react.element"):60103,ee=Q?Symbol.for("react.portal"):60106,te=Q?Symbol.for("react.fragment"):60107,re=Q?Symbol.for("react.strict_mode"):60108,ne=Q?Symbol.for("react.profiler"):60114,oe=Q?Symbol.for("react.provider"):60109,ae=Q?Symbol.for("react.context"):60110,ie=Q?Symbol.for("react.async_mode"):60111,ue=Q?Symbol.for("react.concurrent_mode"):60111,le=Q?Symbol.for("react.forward_ref"):60112,se=Q?Symbol.for("react.suspense"):60113,ce=Q?Symbol.for("react.suspense_list"):60120,fe=Q?Symbol.for("react.memo"):60115,me=Q?Symbol.for("react.lazy"):60116,pe=Q?Symbol.for("react.block"):60121,de=Q?Symbol.for("react.fundamental"):60117,ye=Q?Symbol.for("react.responder"):60118,ve=Q?Symbol.for("react.scope"):60119;function ge(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case X:switch(e=e.type){case ie:case ue:case te:case ne:case re:case se:return e;default:switch(e=e&&e.$$typeof){case ae:case le:case me:case fe:case oe:return e;default:return t}}case ee:return t}}}function he(e){return ge(e)===ue}var be={AsyncMode:ie,ConcurrentMode:ue,ContextConsumer:ae,ContextProvider:oe,Element:X,ForwardRef:le,Fragment:te,Lazy:me,Memo:fe,Portal:ee,Profiler:ne,StrictMode:re,Suspense:se,isAsyncMode:function(e){return he(e)||ge(e)===ie},isConcurrentMode:he,isContextConsumer:function(e){return ge(e)===ae},isContextProvider:function(e){return ge(e)===oe},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===X},isForwardRef:function(e){return ge(e)===le},isFragment:function(e){return ge(e)===te},isLazy:function(e){return ge(e)===me},isMemo:function(e){return ge(e)===fe},isPortal:function(e){return ge(e)===ee},isProfiler:function(e){return ge(e)===ne},isStrictMode:function(e){return ge(e)===re},isSuspense:function(e){return ge(e)===se},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===te||e===ue||e===ne||e===re||e===se||e===ce||"object"==typeof e&&null!==e&&(e.$$typeof===me||e.$$typeof===fe||e.$$typeof===oe||e.$$typeof===ae||e.$$typeof===le||e.$$typeof===de||e.$$typeof===ye||e.$$typeof===ve||e.$$typeof===pe)},typeOf:ge},Te=a((function(e){e.exports=be})),Oe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ee={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ie={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Pe={};function we(e){return Te.isMemo(e)?Ie:Pe[e.$$typeof]||Oe}Pe[Te.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pe[Te.Memo]=Ie;var _e=Object.defineProperty,Se=Object.getOwnPropertyNames,Ne=Object.getOwnPropertySymbols,Fe=Object.getOwnPropertyDescriptor,Re=Object.getPrototypeOf,je=Object.prototype,De=function e(t,r,n){if("string"!=typeof r){if(je){var o=Re(r);o&&o!==je&&e(t,o,n)}var a=Se(r);Ne&&(a=a.concat(Ne(r)));for(var i=we(t),u=we(r),l=0;l<a.length;++l){var s=a[l];if(!(Ee[s]||n&&n[s]||u&&u[s]||i&&i[s])){var c=Fe(r,s);try{_e(t,s,c)}catch(e){}}}}return t},Me=function(){return(Me=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ae=De.default||De,Le=t.createContext(null),Ce=Le.Consumer,xe=Le.Provider,ke=Le;function $e(e,r){var n=r||{},o=n.intlPropName,a=void 0===o?"intl":o,i=n.forwardRef,u=void 0!==i&&i,l=n.enforceContext,s=void 0===l||l,c=function(r){return t.createElement(Ce,null,(function(n){var o;s&&K(n);var i=((o={})[a]=n,o);return t.createElement(e,Me({},r,i,{ref:u?r.forwardedRef:null}))}))};return c.displayName="injectIntl("+function f(e){return e.displayName||e.name||"Component"}(e)+")",c.WrappedComponent=e,Ae(u?t.forwardRef((function(e,r){return t.createElement(c,Me({},e,{forwardedRef:r}))})):c,e)}var Ue,Ve,Ge=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(Ue||(Ue={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(Ve||(Ve={}));var ze=function(e){return t.createElement(ke.Consumer,null,(function(t){K(t);var r=e.value,n=e.children,o=Ge(e,["value","children"]);return n(t.formatNumberToParts(r,o))}))};function Ze(e){var r=function(r){return t.createElement(ke.Consumer,null,(function(t){K(t);var n=r.value,o=r.children,a=Ge(r,["value","children"]),i="string"==typeof n?new Date(n||0):n;return o("formatDate"===e?t.formatDateToParts(i,a):t.formatTimeToParts(i,a))}))};return r.displayName=Ve[e],r}function Ye(e){var r=function(r){return t.createElement(ke.Consumer,null,(function(n){K(n);var o=r.value,a=r.children,i=Ge(r,["value","children"]),u=n[e](o,i);return"function"==typeof a?a(u):t.createElement(n.textComponent||t.Fragment,null,u)}))};return r.displayName=Ue[e],r}ze.displayName="FormattedNumberParts";var qe=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function Ke(e,t,r){var n=e.locale;void 0===r&&(r={});var o=r.format,a=o&&J(e.formats,"number",o,e.onError)||{};return t(n,q(r,qe,a))}function We(e,t,r,n){void 0===n&&(n={});try{return Ke(e,t,n).format(r)}catch(t){e.onError(new k("FORMAT_ERROR","Error formatting number.",t))}return String(r)}function Be(e,t,r,n){void 0===n&&(n={});try{return Ke(e,t,n).formatToParts(r)}catch(t){e.onError(new k("FORMAT_ERROR","Error formatting number.",t))}return[]}var He=["numeric","style"];function Je(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new w('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',"MISSING_INTL_API"));try{return function a(e,t,r){var n=e.locale;void 0===r&&(r={});var o=r.format,a=!!o&&J(e.formats,"relative",o,e.onError)||{};return t(n,q(r,He,a))}(e,t,o).format(r,n)}catch(t){e.onError(new G("Error formatting relative time.",t))}return String(r)}var Qe=function(){return(Qe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Xe=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","fractionalSecondDigits","calendar","numberingSystem"];function et(e,t,r,n){var o=e.locale,a=e.formats,i=e.onError,u=e.timeZone;void 0===n&&(n={});var l=n.format,s=Qe(Qe({},u&&{timeZone:u}),l&&J(a,t,l,i)),c=q(n,Xe,s);return"time"!==t||c.hour||c.minute||c.second||(c=Qe(Qe({},c),{hour:"numeric",minute:"numeric"})),r(o,c)}function tt(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return et(e,"date",t,n).format(o)}catch(t){e.onError(new k("FORMAT_ERROR","Error formatting date.",t))}return String(o)}function rt(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return et(e,"time",t,n).format(o)}catch(t){e.onError(new k("FORMAT_ERROR","Error formatting time.",t))}return String(o)}function nt(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return et(e,"date",t,n).formatToParts(o)}catch(t){e.onError(new k("FORMAT_ERROR","Error formatting date.",t))}return[]}function ot(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return et(e,"time",t,n).formatToParts(o)}catch(t){e.onError(new k("FORMAT_ERROR","Error formatting time.",t))}return[]}var at=["localeMatcher","type"];function it(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.PluralRules||a(new w('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API"));var i=q(n,at);try{return t(o,i).select(r)}catch(e){a(new G("Error formatting plural.",e))}return"other"}var ut=function(){return(ut=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function lt(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=ut({timeZone:t},e[n]),r}),{})}function st(e,t){return Object.keys(ut(ut({},e),t)).reduce((function(r,n){return r[n]=ut(ut({},e[n]||{}),t[n]||{}),r}),{})}function ct(e,t){if(!t)return e;var r=A.formats;return ut(ut(ut({},r),e),{date:st(lt(r.date,t),lt(e.date||{},t)),time:st(lt(r.time,t),lt(e.time||{},t))})}function ft(e,r){return Array.isArray(e)&&r?t.createElement.apply(n,function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n}([t.Fragment,null],e)):e}function mt(e,r,n,o){var a=e.locale,i=e.formats,l=e.messages,s=e.defaultLocale,c=e.defaultFormats,f=e.onError,m=e.timeZone,p=e.wrapRichTextChunksInFragment,d=e.defaultRichTextElements;void 0===n&&(n={id:""});var y=n.id,v=n.defaultMessage;L(!!y,"[React Intl] An `id` must be provided to format a message.");var g=String(y),h=l&&Object.prototype.hasOwnProperty.call(l,g)&&l[g];if(Array.isArray(h)&&1===h.length&&h[0].type===u.TYPE.literal)return h[0].value;if(!o&&h&&"string"==typeof h&&d&&console.error('[React Intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution'),!o&&h&&"string"==typeof h&&!d)return h.replace(/'\{(.*?)\}'/gi,"{$1}");var b=function T(e){return Object.keys(e).reduce((function(r,n){var o=e[n];return r[n]=F(o)?function a(e){return function(r){return e(t.Children.toArray(r))}}(o):o,r}),{})}(ut(ut({},d),o||{}));if(i=ct(i,m),c=ct(c,m),!h){if((!v||a&&a.toLowerCase()!==s.toLowerCase())&&f(new z(n,a)),v)try{return ft(r.getMessageFormat(v,s,c).format(b),p)}catch(e){return f(new G('Error formatting default message for: "'+g+'", rendering default message verbatim',a,n,e)),v}return g}try{return ft(r.getMessageFormat(h,a,i,{formatters:r}).format(b),p)}catch(e){f(new G('Error formatting message: "'+g+'", using '+(v?"default message":"id")+" as fallback.",a,n,e))}if(v)try{return ft(r.getMessageFormat(v,s,c).format(b),p)}catch(e){f(new G('Error formatting the default message for: "'+g+'", rendering message verbatim',a,n,e))}return h||v||g}var pt=function dt(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var a=0;a<o;a++){var i=r[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0},yt=Object.freeze(Object.assign(Object.create(null),pt,{default:pt})),vt=["localeMatcher","type","style"],gt=Date.now();function ht(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.ListFormat||a(new w('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',"MISSING_INTL_API"));var i=q(n,vt);try{var u={},l=r.map((function(e,t){if("object"==typeof e){var r=function n(e){return gt+"_"+e+"_"+gt}(t);return u[r]=e,r}return String(e)}));return Object.keys(u).length?t(o,i).formatToParts(l).reduce((function(e,t){var r=t.value;return u[r]?e.push(u[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]):t(o,i).format(l)}catch(e){a(new k("FORMAT_ERROR","Error formatting list.",e))}return r}var bt=["localeMatcher","style","type","fallback"];function Tt(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.DisplayNames||a(new w('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',"MISSING_INTL_API"));var i=q(n,bt);try{return t(o,i).of(r)}catch(e){a(new k("FORMAT_ERROR","Error formatting display name.",e))}}var Ot=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Et=function(){return(Et=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},It=pt||yt;function Pt(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function wt(e,t){var r=function n(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=H((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Y([void 0],t)))}),{cache:B(e.dateTime),strategy:H.strategies.variadic}),a=H((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Y([void 0],t)))}),{cache:B(e.number),strategy:H.strategies.variadic}),i=H((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Y([void 0],t)))}),{cache:B(e.pluralRules),strategy:H.strategies.variadic});return{getDateTimeFormat:o,getNumberFormat:a,getMessageFormat:H((function(e,t,r,n){return new A(e,t,r,Z({formatters:{getNumberFormat:a,getDateTimeFormat:o,getPluralRules:i}},n||{}))}),{cache:B(e.message),strategy:H.strategies.variadic}),getRelativeTimeFormat:H((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,Y([void 0],e)))}),{cache:B(e.relativeTime),strategy:H.strategies.variadic}),getPluralRules:i,getListFormat:H((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,Y([void 0],e)))}),{cache:B(e.list),strategy:H.strategies.variadic}),getDisplayNames:H((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,Y([void 0],e)))}),{cache:B(e.displayNames),strategy:H.strategies.variadic})}}(t),o=Et(Et({},W),e),a=o.locale,i=o.defaultLocale,u=o.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&u?u(new V('Missing locale data for locale: "'+a+'" in Intl.NumberFormat. Using default locale: "'+i+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&u&&u(new V('Missing locale data for locale: "'+a+'" in Intl.DateTimeFormat. Using default locale: "'+i+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(u&&u(new U('"locale" was not configured, using "'+i+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),o.locale=o.defaultLocale||"en"),Et(Et({},o),{formatters:r,formatNumber:We.bind(null,o,r.getNumberFormat),formatNumberToParts:Be.bind(null,o,r.getNumberFormat),formatRelativeTime:Je.bind(null,o,r.getRelativeTimeFormat),formatDate:tt.bind(null,o,r.getDateTimeFormat),formatDateToParts:nt.bind(null,o,r.getDateTimeFormat),formatTime:rt.bind(null,o,r.getDateTimeFormat),formatTimeToParts:ot.bind(null,o,r.getDateTimeFormat),formatPlural:it.bind(null,o,r.getPluralRules),formatMessage:mt.bind(null,o,r),formatList:ht.bind(null,o,r.getListFormat),formatDisplayName:Tt.bind(null,o,r.getDisplayNames)})}var _t=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:wt(Pt(t.props),t.cache),prevConfig:Pt(t.props)},t}return Ot(r,e),r.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=Pt(e);return It(r,o)?null:{intl:wt(o,n),prevConfig:o}},r.prototype.render=function(){return K(this.state.intl),t.createElement(xe,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=W,r}(t.PureComponent),St=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Nt=function(){return(Nt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Ft(e){var t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":"day"}function Rt(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return 3600;default:return 86400}}function jt(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return 3600*e}}var Dt=["second","minute","hour"];function Mt(e){return void 0===e&&(e="second"),Dt.includes(e)}var At=function(e){function r(t){var r=e.call(this,t)||this;return r._updateTimer=null,r.state={prevUnit:r.props.unit,prevValue:r.props.value,currentValueInSeconds:Mt(r.props.unit)?jt(r.props.value,r.props.unit):0},L(!t.updateIntervalInSeconds||!(!t.updateIntervalInSeconds||!Mt(t.unit)),"Cannot schedule update with unit longer than hour"),r}return St(r,e),r.prototype.scheduleNextUpdate=function(e,t){var r=this,n=e.updateIntervalInSeconds,o=e.unit,a=t.currentValueInSeconds;if(clearTimeout(this._updateTimer),this._updateTimer=null,n&&Mt(o)){var i=a-n,u=Ft(i);if("day"!==u){var l=Rt(u),s=i-i%l,c=s>=a?s-l:s,f=Math.abs(c-a);this._updateTimer=setTimeout((function(){return r.setState({currentValueInSeconds:c})}),1e3*f)}}},r.prototype.componentDidMount=function(){this.scheduleNextUpdate(this.props,this.state)},r.prototype.componentDidUpdate=function(){this.scheduleNextUpdate(this.props,this.state)},r.prototype.componentWillUnmount=function(){clearTimeout(this._updateTimer),this._updateTimer=null},r.getDerivedStateFromProps=function(e,t){return e.unit!==t.prevUnit||e.value!==t.prevValue?{prevValue:e.value,prevUnit:e.unit,currentValueInSeconds:Mt(e.unit)?jt(e.value,e.unit):0}:null},r.prototype.render=function(){var e=this;return t.createElement(ke.Consumer,null,(function(r){K(r);var n=r.formatRelativeTime,o=r.textComponent,a=e.props,i=a.children,u=a.unit,l=a.updateIntervalInSeconds,s=e.state.currentValueInSeconds,c=a.value||0,f=u;if(Mt(u)&&"number"==typeof s&&l){var m=Rt(f=Ft(s));c=Math.round(s/m)}var p=n(c,f,Nt({},e.props));return"function"==typeof i?i(p):o?t.createElement(o,null,p):p}))},r.displayName="FormattedRelativeTime",r.defaultProps={value:0,unit:"second"},r}(t.PureComponent),Lt=function(e){var r=e.other,n=e.children,o=e.intl,a=o.textComponent,i=e[(0,o.formatPlural)(e.value,e)]||r;return"function"==typeof n?n(i):a?t.createElement(a,null,i):i};Lt.defaultProps={type:"cardinal"},Lt.displayName="FormattedPlural";var Ct=$e(Lt),xt=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),kt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},$t=pt||yt,Ut=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return xt(r,e),r.prototype.shouldComponentUpdate=function(e){var t=this.props,r=t.values,n=kt(t,["values"]),o=e.values,a=kt(e,["values"]);return!$t(o,r)||!$t(n,a)},r.prototype.render=function(){var e=this;return t.createElement(ke.Consumer,null,(function(r){K(r);var o=r.textComponent,a=e.props,i=a.children,u=a.tagName,l=void 0===u?void 0===o?t.Fragment:o:u,s=(0,r.formatMessage)({id:a.id,description:a.description,defaultMessage:a.defaultMessage},a.values);return Array.isArray(s)||(s=[s]),"function"==typeof i?i(s):l?t.createElement.apply(n,function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n}([l,null],s)):s}))},r.displayName="FormattedMessage",r}(t.Component),Vt=Ye("formatDate"),Gt=Ye("formatTime"),zt=Ye("formatNumber"),Zt=Ye("formatList"),Yt=Ye("formatDisplayName"),qt=Ze("formatDate"),Kt=Ze("formatTime");e.FormattedDate=Vt,e.FormattedDateParts=qt,e.FormattedDisplayName=Yt,e.FormattedList=Zt,e.FormattedMessage=Ut,e.FormattedNumber=zt,e.FormattedNumberParts=ze,e.FormattedPlural=Ct,e.FormattedRelativeTime=At,e.FormattedTime=Gt,e.FormattedTimeParts=Kt,e.IntlContext=ke,e.IntlProvider=_t,e.InvalidConfigError=U,e.MessageFormatError=G,e.MissingDataError=V,e.MissingTranslationError=z,e.RawIntlProvider=xe,e.ReactIntlError=k,e.UnsupportedFormatterError=$,e.createIntl=wt,e.createIntlCache=function Wt(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}},e.defineMessage=function Bt(e){return e},e.defineMessages=function Ht(e){return e},e.injectIntl=$e,e.useIntl=function Jt(){var e=t.useContext(ke);return K(e),e},Object.defineProperty(e,"__esModule",{value:!0})}));