react-intl
Version:
Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.
9 lines • 60.3 kB
JavaScript
!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,o,a=r(t);function i(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function u(e){return e.type===n.literal}function c(e){return e.type===n.argument}function s(e){return e.type===n.number}function l(e){return e.type===n.date}function f(e){return e.type===n.time}function p(e){return e.type===n.select}function m(e){return e.type===n.plural}function d(e){return e.type===n.pound}function h(e){return e.type===n.tag}function y(e){return!(!e||"object"!=typeof e||0!==e.type)}function g(e){return!(!e||"object"!=typeof e||1!==e.type)}!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"}(n||(n={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(o||(o={}));var v=function(){return(v=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)},b=/(?:[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,w=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,O=/^(@+)?(\+|#+)?$/g;function A(e){var t={};return e.replace(O,(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 T(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 F(e){return T(e)||{}}function E(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":t.style="percent";continue;case"currency":t.style="currency",t.currency=o.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=o.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=v(v(v({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return v(v({},e),F(t))}),{}));continue;case"engineering":t=v(v(v({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return v(v({},e),F(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(w.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(w,(function(e,r,n,o,a,i){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:a&&i?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+i.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""})),o.options.length&&(t=v(v({},t),A(o.options[0])))}else if(O.test(o.stem))t=v(v({},t),A(o.stem));else{var a=T(o.stem);a&&(t=v(v({},t),a))}}return t}var I,S=(I=function(e,t){return(I=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}I(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),P=function(){return(P=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)},R=function(e){function t(r,n,o,a){var i=e.call(this)||this;return i.message=r,i.expected=n,i.found=o,i.location=a,i.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return S(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function a(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function i(e){var t,r,n=e.map(a);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function u(e){return e?'"'+n(e)+'"':"end of input"}(t)+" found."},t}(Error),D=function _(e,t){t=void 0!==t?t:{};var r,o={},a={start:De},i=De,u=Fe("<",!1),c=function(e){return e.join("")},s=Fe("#",!1),l=Ie("tagElement"),f=Fe("/>",!1),p=Fe(">",!1),m=Fe("</",!1),d=Ie("argumentElement"),h=Fe("{",!1),y=Fe("}",!1),g=Ie("numberSkeletonId"),v=/^['\/{}]/,w=Ee(["'","/","{","}"],!1,!1),O={type:"any"},A=Ie("numberSkeletonTokenOption"),T=Fe("/",!1),F=Ie("numberSkeletonToken"),I=Fe("::",!1),S=function(e){return rt.pop(),e.replace(/\s*$/,"")},D=Fe(",",!1),_=Fe("number",!1),j=function(e,t,r){return P({type:"number"===t?n.number:"date"===t?n.date:n.time,style:r&&r[2],value:e},ot())},N=Fe("'",!1),C=/^[^']/,x=Ee(["'"],!0,!1),M=/^[^a-zA-Z'{}]/,k=Ee([["a","z"],["A","Z"],"'","{","}"],!0,!1),L=/^[a-zA-Z]/,$=Ee([["a","z"],["A","Z"]],!1,!1),U=Fe("date",!1),z=Fe("time",!1),V=Fe("plural",!1),Z=Fe("selectordinal",!1),G=Fe("offset:",!1),B=Fe("select",!1),q=Fe("=",!1),H=Ie("whitespace"),W=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,J=Ee([["\t","\r"]," ","
"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),K=Ie("syntax pattern"),Q=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,X=Ee([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←",""],["─","❵"],["➔","⯿"],["⸀",""],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),Y=Ie("optional whitespace"),ee=Ie("number"),te=Fe("-",!1),re=Ie("double apostrophes"),ne=Fe("''",!1),oe=Fe("\n",!1),ae=Ie("argNameOrNumber"),ie=Ie("validTag"),ue=Ie("argNumber"),ce=Fe("0",!1),se=/^[1-9]/,le=Ee([["1","9"]],!1,!1),fe=/^[0-9]/,pe=Ee([["0","9"]],!1,!1),me=Ie("argName"),de=Ie("tagName"),he=0,ye=0,ge=[{line:1,column:1}],ve=0,be=[],we=0;if(void 0!==t.startRule){if(!(t.startRule in a))throw new Error("Can't start parsing from rule \""+t.startRule+'".');i=a[t.startRule]}function Oe(){return e.substring(ye,he)}function Ae(){return Pe(ye,he)}function Te(e,t){throw function r(e,t){return new R(e,[],"",t)}(e,t=void 0!==t?t:Pe(ye,he))}function Fe(e,t){return{type:"literal",text:e,ignoreCase:t}}function Ee(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Ie(e){return{type:"other",description:e}}function Se(t){var r,n=ge[t];if(n)return n;for(r=t-1;!ge[r];)r--;for(n={line:(n=ge[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ge[t]=n,n}function Pe(e,t){var r=Se(e),n=Se(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Re(e){he<ve||(he>ve&&(ve=he,be=[]),be.push(e))}function De(){return _e()}function _e(){var e,t;for(e=[],t=je();t!==o;)e.push(t),t=je();return e}function je(){var t,r;return t=he,ye=he,(at?o:void 0)!==o&&(r=function a(){var e,t,r,a,i,u,c;return we++,(e=xe())===o&&(e=he,(t=Me())!==o&&(r=_e())!==o&&(a=ke())!==o?(ye=e,u=r,(i=t)!==(c=a)&&Te('Mismatch tag "'+i+'" !== "'+c+'"',Ae()),e=t=P({type:n.tag,value:i,children:u},ot())):(he=e,e=o)),we--,e===o&&(t=o,0===we&&Re(l)),e}())!==o?(ye=t,t=r):(he=t,t=o),t===o&&(t=function i(){var e,t;return e=he,(t=Ne())!==o&&(ye=e,t=P({type:n.literal,value:t},ot())),t}())===o&&(t=function u(){var t,r,a,i;return we++,t=he,123===e.charCodeAt(he)?(r="{",he++):(r=o,0===we&&Re(h)),r!==o&&He()!==o&&(a=Xe())!==o&&He()!==o?(125===e.charCodeAt(he)?(i="}",he++):(i=o,0===we&&Re(y)),i!==o?(ye=t,t=r=P({type:n.argument,value:a},ot())):(he=t,t=o)):(he=t,t=o),we--,t===o&&(r=o,0===we&&Re(d)),t}())===o&&(t=function c(){var t;return(t=function r(){var t,r,n,a,i,u,c,s,l;return t=he,123===e.charCodeAt(he)?(r="{",he++):(r=o,0===we&&Re(h)),r!==o&&He()!==o&&(n=Xe())!==o&&He()!==o?(44===e.charCodeAt(he)?(a=",",he++):(a=o,0===we&&Re(D)),a!==o&&He()!==o?("number"===e.substr(he,6)?(i="number",he+=6):(i=o,0===we&&Re(_)),i!==o&&He()!==o?(u=he,44===e.charCodeAt(he)?(c=",",he++):(c=o,0===we&&Re(D)),c!==o&&(s=He())!==o&&(l=function f(){var t,r,n;return t=he,"::"===e.substr(he,2)?(r="::",he+=2):(r=o,0===we&&Re(I)),r!==o&&(n=function a(){var e,t,r,n;if(e=he,t=[],(r=Ue())!==o)for(;r!==o;)t.push(r),r=Ue();else t=o;return t!==o&&(ye=e,t=P({type:0,tokens:n=t,parsedOptions:it?E(n):{}},ot())),t}())!==o?(ye=t,t=r=n):(he=t,t=o),t===o&&(t=he,ye=he,rt.push("numberArgStyle"),(r=(r=!0)?void 0:o)!==o&&(n=Ne())!==o?(ye=t,t=r=S(n)):(he=t,t=o)),t}())!==o?u=c=[c,s,l]:(he=u,u=o),u===o&&(u=null),u!==o&&(c=He())!==o?(125===e.charCodeAt(he)?(s="}",he++):(s=o,0===we&&Re(y)),s!==o?(ye=t,t=r=j(n,i,u)):(he=t,t=o)):(he=t,t=o)):(he=t,t=o)):(he=t,t=o)):(he=t,t=o),t}())===o&&(t=function n(){var t,r,n,a,i,u,c,s,l;return t=he,123===e.charCodeAt(he)?(r="{",he++):(r=o,0===we&&Re(h)),r!==o&&He()!==o&&(n=Xe())!==o&&He()!==o?(44===e.charCodeAt(he)?(a=",",he++):(a=o,0===we&&Re(D)),a!==o&&He()!==o?("date"===e.substr(he,4)?(i="date",he+=4):(i=o,0===we&&Re(U)),i===o&&("time"===e.substr(he,4)?(i="time",he+=4):(i=o,0===we&&Re(z))),i!==o&&He()!==o?(u=he,44===e.charCodeAt(he)?(c=",",he++):(c=o,0===we&&Re(D)),c!==o&&(s=He())!==o&&(l=function f(){var t,r,n;return t=he,"::"===e.substr(he,2)?(r="::",he+=2):(r=o,0===we&&Re(I)),r!==o&&(n=function a(){var t,r,n,a,i,u,c;if(t=he,r=he,n=[],(a=ze())===o&&(a=Ve()),a!==o)for(;a!==o;)n.push(a),(a=ze())===o&&(a=Ve());else n=o;return(r=n!==o?e.substring(r,he):n)!==o&&(ye=t,r=P({type:1,pattern:i=r,parsedOptions:it?(u=i,c={},u.replace(b,(function(e){var t=e.length;switch(e[0]){case"G":c.era=4===t?"long":5===t?"narrow":"short";break;case"y":c.year=2===t?"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":c.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":c.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":c.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");c.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");c.weekday=["short","long","narrow","short"][t-4];break;case"a":c.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":c.hourCycle="h12",c.hour=["numeric","2-digit"][t-1];break;case"H":c.hourCycle="h23",c.hour=["numeric","2-digit"][t-1];break;case"K":c.hourCycle="h11",c.hour=["numeric","2-digit"][t-1];break;case"k":c.hourCycle="h24",c.hour=["numeric","2-digit"][t-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":c.minute=["numeric","2-digit"][t-1];break;case"s":c.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":c.timeZoneName=t<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) patterns are not supported, use `z` instead")}return""})),c):{}},ot())),r}())!==o?(ye=t,t=r=n):(he=t,t=o),t===o&&(t=he,ye=he,rt.push("dateOrTimeArgStyle"),(r=(r=!0)?void 0:o)!==o&&(n=Ne())!==o?(ye=t,t=r=S(n)):(he=t,t=o)),t}())!==o?u=c=[c,s,l]:(he=u,u=o),u===o&&(u=null),u!==o&&(c=He())!==o?(125===e.charCodeAt(he)?(s="}",he++):(s=o,0===we&&Re(y)),s!==o?(ye=t,t=r=j(n,i,u)):(he=t,t=o)):(he=t,t=o)):(he=t,t=o)):(he=t,t=o)):(he=t,t=o),t}()),t}())===o&&(t=function f(){var t,r,a,i,u,c,s,l,f,p,m;if(t=he,123===e.charCodeAt(he)?(r="{",he++):(r=o,0===we&&Re(h)),r!==o)if(He()!==o)if((a=Xe())!==o)if(He()!==o)if(44===e.charCodeAt(he)?(i=",",he++):(i=o,0===we&&Re(D)),i!==o)if(He()!==o)if("plural"===e.substr(he,6)?(u="plural",he+=6):(u=o,0===we&&Re(V)),u===o&&("selectordinal"===e.substr(he,13)?(u="selectordinal",he+=13):(u=o,0===we&&Re(Z))),u!==o)if(He()!==o)if(44===e.charCodeAt(he)?(c=",",he++):(c=o,0===we&&Re(D)),c!==o)if(He()!==o)if(s=he,"offset:"===e.substr(he,7)?(l="offset:",he+=7):(l=o,0===we&&Re(G)),l!==o&&(f=He())!==o&&(p=We())!==o?s=l=[l,f,p]:(he=s,s=o),s===o&&(s=null),s!==o)if((l=He())!==o){if(f=[],(p=Ge())!==o)for(;p!==o;)f.push(p),p=Ge();else f=o;f!==o&&(p=He())!==o?(125===e.charCodeAt(he)?(m="}",he++):(m=o,0===we&&Re(y)),m!==o?(ye=t,t=r=function(e,t,r,o){return P({type:n.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:o.reduce((function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&Te('Duplicate option "'+r+'" in plural element: "'+Oe()+'"',Ae()),e[r]={value:n,location:o},e}),{})},ot())}(a,u,s,f)):(he=t,t=o)):(he=t,t=o)}else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;return t}())===o&&(t=function p(){var t,r,a,i,u,c,s,l,f;if(t=he,123===e.charCodeAt(he)?(r="{",he++):(r=o,0===we&&Re(h)),r!==o)if(He()!==o)if((a=Xe())!==o)if(He()!==o)if(44===e.charCodeAt(he)?(i=",",he++):(i=o,0===we&&Re(D)),i!==o)if(He()!==o)if("select"===e.substr(he,6)?(u="select",he+=6):(u=o,0===we&&Re(B)),u!==o)if(He()!==o)if(44===e.charCodeAt(he)?(c=",",he++):(c=o,0===we&&Re(D)),c!==o)if(He()!==o){if(s=[],(l=Ze())!==o)for(;l!==o;)s.push(l),l=Ze();else s=o;s!==o&&(l=He())!==o?(125===e.charCodeAt(he)?(f="}",he++):(f=o,0===we&&Re(y)),f!==o?(ye=t,t=r=function(e,t){return P({type:n.select,value:e,options:t.reduce((function(e,t){var r=t.id,n=t.value,o=t.location;return r in e&&Te('Duplicate option "'+r+'" in select element: "'+Oe()+'"',Ae()),e[r]={value:n,location:o},e}),{})},ot())}(a,s)):(he=t,t=o)):(he=t,t=o)}else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;else he=t,t=o;return t}())===o&&(t=function m(){var t,r;return t=he,35===e.charCodeAt(he)?(r="#",he++):(r=o,0===we&&Re(s)),r!==o&&(ye=t,r=P({type:n.pound},ot())),r}()),t}function Ne(){var t,r,n,a;if(t=he,ye=he,(r=(r=at)?void 0:o)!==o){if(n=[],(a=Je())===o&&(a=Ke())===o&&(a=Qe())===o&&(60===e.charCodeAt(he)?(a="<",he++):(a=o,0===we&&Re(u))),a!==o)for(;a!==o;)n.push(a),(a=Je())===o&&(a=Ke())===o&&(a=Qe())===o&&(60===e.charCodeAt(he)?(a="<",he++):(a=o,0===we&&Re(u)));else n=o;n!==o?(ye=t,t=r=c(n)):(he=t,t=o)}else he=t,t=o;if(t===o){if(t=he,r=[],(n=Je())===o&&(n=Ke())===o&&(n=Qe())===o&&(n=Ce()),n!==o)for(;n!==o;)r.push(n),(n=Je())===o&&(n=Ke())===o&&(n=Qe())===o&&(n=Ce());else r=o;r!==o&&(ye=t,r=c(r)),t=r}return t}function Ce(){var t,r,n;return t=he,r=he,we++,(n=Me())===o&&(n=ke())===o&&(n=xe()),we--,n===o?r=void 0:(he=r,r=o),r!==o?(60===e.charCodeAt(he)?(n="<",he++):(n=o,0===we&&Re(u)),n!==o?(ye=t,t=r="<"):(he=t,t=o)):(he=t,t=o),t}function xe(){var t,r,a,i,c,s;return t=he,r=he,60===e.charCodeAt(he)?(a="<",he++):(a=o,0===we&&Re(u)),a!==o&&(i=Ye())!==o&&(c=He())!==o?("/>"===e.substr(he,2)?(s="/>",he+=2):(s=o,0===we&&Re(f)),s!==o?r=a=[a,i,c,s]:(he=r,r=o)):(he=r,r=o),r!==o&&(ye=t,r=P({type:n.literal,value:r.join("")},ot())),r}function Me(){var t,r,n,a;return t=he,60===e.charCodeAt(he)?(r="<",he++):(r=o,0===we&&Re(u)),r!==o&&(n=Ye())!==o?(62===e.charCodeAt(he)?(a=">",he++):(a=o,0===we&&Re(p)),a!==o?(ye=t,t=r=n):(he=t,t=o)):(he=t,t=o),t}function ke(){var t,r,n,a;return t=he,"</"===e.substr(he,2)?(r="</",he+=2):(r=o,0===we&&Re(m)),r!==o&&(n=Ye())!==o?(62===e.charCodeAt(he)?(a=">",he++):(a=o,0===we&&Re(p)),a!==o?(ye=t,t=r=n):(he=t,t=o)):(he=t,t=o),t}function Le(){var t,r,n,a,i;if(we++,t=he,r=[],n=he,a=he,we++,(i=Be())===o&&(v.test(e.charAt(he))?(i=e.charAt(he),he++):(i=o,0===we&&Re(w))),we--,i===o?a=void 0:(he=a,a=o),a!==o?(e.length>he?(i=e.charAt(he),he++):(i=o,0===we&&Re(O)),i!==o?n=a=[a,i]:(he=n,n=o)):(he=n,n=o),n!==o)for(;n!==o;)r.push(n),n=he,a=he,we++,(i=Be())===o&&(v.test(e.charAt(he))?(i=e.charAt(he),he++):(i=o,0===we&&Re(w))),we--,i===o?a=void 0:(he=a,a=o),a!==o?(e.length>he?(i=e.charAt(he),he++):(i=o,0===we&&Re(O)),i!==o?n=a=[a,i]:(he=n,n=o)):(he=n,n=o);else r=o;return t=r!==o?e.substring(t,he):r,we--,t===o&&(r=o,0===we&&Re(g)),t}function $e(){var t,r,n;return we++,t=he,47===e.charCodeAt(he)?(r="/",he++):(r=o,0===we&&Re(T)),r!==o&&(n=Le())!==o?(ye=t,t=r=n):(he=t,t=o),we--,t===o&&(r=o,0===we&&Re(A)),t}function Ue(){var e,t,r,n;if(we++,e=he,He()!==o)if((t=Le())!==o){for(r=[],n=$e();n!==o;)r.push(n),n=$e();r!==o?(ye=e,e=function(e,t){return{stem:e,options:t}}(t,r)):(he=e,e=o)}else he=e,e=o;else he=e,e=o;return we--,e===o&&0===we&&Re(F),e}function ze(){var t,r,n,a;if(t=he,39===e.charCodeAt(he)?(r="'",he++):(r=o,0===we&&Re(N)),r!==o){if(n=[],(a=Je())===o&&(C.test(e.charAt(he))?(a=e.charAt(he),he++):(a=o,0===we&&Re(x))),a!==o)for(;a!==o;)n.push(a),(a=Je())===o&&(C.test(e.charAt(he))?(a=e.charAt(he),he++):(a=o,0===we&&Re(x)));else n=o;n!==o?(39===e.charCodeAt(he)?(a="'",he++):(a=o,0===we&&Re(N)),a!==o?t=r=[r,n,a]:(he=t,t=o)):(he=t,t=o)}else he=t,t=o;if(t===o)if(t=[],(r=Je())===o&&(M.test(e.charAt(he))?(r=e.charAt(he),he++):(r=o,0===we&&Re(k))),r!==o)for(;r!==o;)t.push(r),(r=Je())===o&&(M.test(e.charAt(he))?(r=e.charAt(he),he++):(r=o,0===we&&Re(k)));else t=o;return t}function Ve(){var t,r;if(t=[],L.test(e.charAt(he))?(r=e.charAt(he),he++):(r=o,0===we&&Re($)),r!==o)for(;r!==o;)t.push(r),L.test(e.charAt(he))?(r=e.charAt(he),he++):(r=o,0===we&&Re($));else t=o;return t}function Ze(){var t,r,n,a,i,u,c;return t=he,He()!==o&&(r=tt())!==o&&He()!==o?(123===e.charCodeAt(he)?(n="{",he++):(n=o,0===we&&Re(h)),n!==o?(ye=he,rt.push("select"),void 0!==o&&(a=_e())!==o?(125===e.charCodeAt(he)?(i="}",he++):(i=o,0===we&&Re(y)),i!==o?(ye=t,u=r,c=a,rt.pop(),t=P({id:u,value:c},ot())):(he=t,t=o)):(he=t,t=o)):(he=t,t=o)):(he=t,t=o),t}function Ge(){var t,r,n,a,i,u,c;return t=he,He()!==o&&(r=function s(){var t,r,n,a;return t=he,r=he,61===e.charCodeAt(he)?(n="=",he++):(n=o,0===we&&Re(q)),n!==o&&(a=We())!==o?r=n=[n,a]:(he=r,r=o),(t=r!==o?e.substring(t,he):r)===o&&(t=tt()),t}())!==o&&He()!==o?(123===e.charCodeAt(he)?(n="{",he++):(n=o,0===we&&Re(h)),n!==o?(ye=he,rt.push("plural"),void 0!==o&&(a=_e())!==o?(125===e.charCodeAt(he)?(i="}",he++):(i=o,0===we&&Re(y)),i!==o?(ye=t,u=r,c=a,rt.pop(),t=P({id:u,value:c},ot())):(he=t,t=o)):(he=t,t=o)):(he=t,t=o)):(he=t,t=o),t}function Be(){var t;return we++,W.test(e.charAt(he))?(t=e.charAt(he),he++):(t=o,0===we&&Re(J)),we--,t===o&&0===we&&Re(H),t}function qe(){var t;return we++,Q.test(e.charAt(he))?(t=e.charAt(he),he++):(t=o,0===we&&Re(X)),we--,t===o&&0===we&&Re(K),t}function He(){var t,r,n;for(we++,t=he,r=[],n=Be();n!==o;)r.push(n),n=Be();return t=r!==o?e.substring(t,he):r,we--,t===o&&(r=o,0===we&&Re(Y)),t}function We(){var t,r,n,a;return we++,t=he,45===e.charCodeAt(he)?(r="-",he++):(r=o,0===we&&Re(te)),r===o&&(r=null),r!==o&&(n=et())!==o?(ye=t,t=r=(a=n)?r?-a:a:0):(he=t,t=o),we--,t===o&&(r=o,0===we&&Re(ee)),t}function Je(){var t,r;return we++,t=he,"''"===e.substr(he,2)?(r="''",he+=2):(r=o,0===we&&Re(ne)),r!==o&&(ye=t,r="'"),we--,(t=r)===o&&(r=o,0===we&&Re(re)),t}function Ke(){var t,r,n,a,i,u;if(t=he,39===e.charCodeAt(he)?(r="'",he++):(r=o,0===we&&Re(N)),r!==o)if((n=function c(){var t,r,n,a;return t=he,r=he,e.length>he?(n=e.charAt(he),he++):(n=o,0===we&&Re(O)),n!==o?(ye=he,(a=(a=function(e){return"<"===e||">"===e||"{"===e||"}"===e||nt()&&"#"===e}(n))?void 0:o)!==o?r=n=[n,a]:(he=r,r=o)):(he=r,r=o),r!==o?e.substring(t,he):r}())!==o){for(a=he,i=[],"''"===e.substr(he,2)?(u="''",he+=2):(u=o,0===we&&Re(ne)),u===o&&(C.test(e.charAt(he))?(u=e.charAt(he),he++):(u=o,0===we&&Re(x)));u!==o;)i.push(u),"''"===e.substr(he,2)?(u="''",he+=2):(u=o,0===we&&Re(ne)),u===o&&(C.test(e.charAt(he))?(u=e.charAt(he),he++):(u=o,0===we&&Re(x)));(a=i!==o?e.substring(a,he):i)!==o?(39===e.charCodeAt(he)?(i="'",he++):(i=o,0===we&&Re(N)),i===o&&(i=null),i!==o?(ye=t,t=r=n+a.replace("''","'")):(he=t,t=o)):(he=t,t=o)}else he=t,t=o;else he=t,t=o;return t}function Qe(){var t,r,n,a;return t=he,r=he,e.length>he?(n=e.charAt(he),he++):(n=o,0===we&&Re(O)),n!==o?(ye=he,(a=(a=function(e){return!("<"===e||"{"===e||nt()&&"#"===e||function t(){return rt.length>1}()&&"}"===e)}(n))?void 0:o)!==o?r=n=[n,a]:(he=r,r=o)):(he=r,r=o),r===o&&(10===e.charCodeAt(he)?(r="\n",he++):(r=o,0===we&&Re(oe))),r!==o?e.substring(t,he):r}function Xe(){var t,r;return we++,t=he,(r=et())===o&&(r=tt()),t=r!==o?e.substring(t,he):r,we--,t===o&&(r=o,0===we&&Re(ae)),t}function Ye(){var t,r;return we++,t=he,(r=et())===o&&(r=function n(){var t,r,n,a,i;if(we++,t=he,r=[],45===e.charCodeAt(he)?(n="-",he++):(n=o,0===we&&Re(te)),n===o&&(n=he,a=he,we++,(i=Be())===o&&(i=qe()),we--,i===o?a=void 0:(he=a,a=o),a!==o?(e.length>he?(i=e.charAt(he),he++):(i=o,0===we&&Re(O)),i!==o?n=a=[a,i]:(he=n,n=o)):(he=n,n=o)),n!==o)for(;n!==o;)r.push(n),45===e.charCodeAt(he)?(n="-",he++):(n=o,0===we&&Re(te)),n===o&&(n=he,a=he,we++,(i=Be())===o&&(i=qe()),we--,i===o?a=void 0:(he=a,a=o),a!==o?(e.length>he?(i=e.charAt(he),he++):(i=o,0===we&&Re(O)),i!==o?n=a=[a,i]:(he=n,n=o)):(he=n,n=o));else r=o;return t=r!==o?e.substring(t,he):r,we--,t===o&&(r=o,0===we&&Re(de)),t}()),t=r!==o?e.substring(t,he):r,we--,t===o&&(r=o,0===we&&Re(ie)),t}function et(){var t,r,n,a,i;if(we++,t=he,48===e.charCodeAt(he)?(r="0",he++):(r=o,0===we&&Re(ce)),r!==o&&(ye=t,r=0),(t=r)===o){if(t=he,r=he,se.test(e.charAt(he))?(n=e.charAt(he),he++):(n=o,0===we&&Re(le)),n!==o){for(a=[],fe.test(e.charAt(he))?(i=e.charAt(he),he++):(i=o,0===we&&Re(pe));i!==o;)a.push(i),fe.test(e.charAt(he))?(i=e.charAt(he),he++):(i=o,0===we&&Re(pe));a!==o?r=n=[n,a]:(he=r,r=o)}else he=r,r=o;r!==o&&(ye=t,r=parseInt(r.join(""),10)),t=r}return we--,t===o&&(r=o,0===we&&Re(ue)),t}function tt(){var t,r,n,a,i;if(we++,t=he,r=[],n=he,a=he,we++,(i=Be())===o&&(i=qe()),we--,i===o?a=void 0:(he=a,a=o),a!==o?(e.length>he?(i=e.charAt(he),he++):(i=o,0===we&&Re(O)),i!==o?n=a=[a,i]:(he=n,n=o)):(he=n,n=o),n!==o)for(;n!==o;)r.push(n),n=he,a=he,we++,(i=Be())===o&&(i=qe()),we--,i===o?a=void 0:(he=a,a=o),a!==o?(e.length>he?(i=e.charAt(he),he++):(i=o,0===we&&Re(O)),i!==o?n=a=[a,i]:(he=n,n=o)):(he=n,n=o);else r=o;return t=r!==o?e.substring(t,he):r,we--,t===o&&(r=o,0===we&&Re(me)),t}var rt=["root"];function nt(){return"plural"===rt[rt.length-1]}function ot(){return t&&t.captureLocation?{location:Ae()}:{}}var at=t&&t.ignoreTag,it=t&&t.shouldParseSkeleton;if((r=i())!==o&&he===e.length)return r;throw r!==o&&he<e.length&&Re({type:"end"}),function ut(e,t,r){return new R(R.buildMessage(e,t),e,t,r)}(be,ve<e.length?e.charAt(ve):null,Pe(ve,ve<e.length?ve+1:ve))},j=/(^|[^\\])#/g,N=function(){return(N=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 C(e,t){t=N({normalizeHashtagInPlural:!0,shouldParseSkeleton:!0},t||{});var r=D(e,t);return t.normalizeHashtagInPlural&&function e(t){t.forEach((function(t){(m(t)||p(t))&&Object.keys(t.options).forEach((function(r){for(var n,o=t.options[r],a=-1,i=void 0,c=0;c<o.value.length;c++){var s=o.value[c];if(u(s)&&j.test(s.value)){a=c,i=s;break}}if(i){var l=i.value.replace(j,"$1{"+t.value+", number}"),f=D(l);(n=o.value).splice.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}([a,1],f))}e(o.value)}))}))}(r),r}function x(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 M(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 k(e,t,r,n,o){return r.bind(t,e,n,o)}function L(e,t){return k(e,this,1===e.length?x:M,t.cache.create(),t.serializer)}function $(){return JSON.stringify(arguments)}function U(){this.cache=Object.create(null)}U.prototype.has=function(e){return e in this.cache},U.prototype.get=function(e){return this.cache[e]},U.prototype.set=function(e,t){this.cache[e]=t};var z={create:function e(){return new U}},V=function Z(e,t){return(t&&t.strategy?t.strategy:L)(e,{cache:t&&t.cache?t.cache:z,serializer:t&&t.serializer?t.serializer:$})},G={variadic:function B(e,t){return k(e,this,M,t.cache.create(),t.serializer)},monadic:function q(e,t){return k(e,this,x,t.cache.create(),t.serializer)}};V.strategies=G;var H,W=Object.freeze(Object.assign(Object.create(null),V,{default:V,strategies:G})),J=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)}}();!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(H||(H={}));var K,Q=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return J(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),X=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 J(t,e),t}(Q),Y=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,"INVALID_VALUE",n)||this}return J(t,e),t}(Q),ee=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 J(t,e),t}(Q);function te(e){return"function"==typeof e}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(K||(K={}));var re=function(){return(re=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)},ne=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 oe(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 ae,ie=V||W,ue=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,v){if(1===t.length&&u(t[0]))return[{type:0,value:t[0].value}];for(var b=[],w=0,O=t;w<O.length;w++){var A=O[w];if(u(A))b.push({type:0,value:A.value});else if(d(A))"number"==typeof i&&b.push({type:0,value:n.getNumberFormat(r).format(i)});else{var T=A.value;if(!a||!(T in a))throw new ee(T,v);var F=a[T];if(c(A))F&&"string"!=typeof F&&"number"!=typeof F||(F="string"==typeof F||"number"==typeof F?String(F):""),b.push({type:"string"==typeof F?0:1,value:F});else if(l(A)){var E="string"==typeof A.style?o.date[A.style]:g(A.style)?A.style.parsedOptions:void 0;b.push({type:0,value:n.getDateTimeFormat(r,E).format(F)})}else if(f(A))E="string"==typeof A.style?o.time[A.style]:g(A.style)?A.style.parsedOptions:void 0,b.push({type:0,value:n.getDateTimeFormat(r,E).format(F)});else if(s(A))E="string"==typeof A.style?o.number[A.style]:y(A.style)?A.style.parsedOptions:void 0,b.push({type:0,value:n.getNumberFormat(r,E).format(F)});else{if(h(A)){var I=A.children,S=A.value,P=a[S];if(!te(P))throw new Y(S,"function",v);var R=P(e(I,r,n,o,a,i).map((function(e){return e.value})));Array.isArray(R)||(R=[R]),b.push.apply(b,R.map((function(e){return{type:"string"==typeof e?0:1,value:e}})))}if(p(A)){if(!(D=A.options[F]||A.options.other))throw new X(A.value,F,Object.keys(A.options),v);b.push.apply(b,e(D.value,r,n,o,a))}else if(m(A)){var D;if(!(D=A.options["="+F])){if(!Intl.PluralRules)throw new Q('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",v);var _=n.getPluralRules(r,{type:A.pluralType}).select(F-(A.offset||0));D=A.options[_]||A.options.other}if(!D)throw new X(A.value,F,Object.keys(A.options),v);b.push.apply(b,e(D.value,r,n,o,a,F-(A.offset||0)))}}}}return function j(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}),[])}(b)}(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?re(re(re({},e||{}),t||{}),Object.keys(e).reduce((function(r,n){return r[n]=re(re({},e[n]),t[n]||{}),r}),{})):e}(e[n],t[n]),r}),re({},e)):e}(e.formats,n),this.locales=r,this.formatters=o&&o.formatters||function v(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,ne([void 0],t)))}),{cache:oe(e.number),strategy:ie.strategies.variadic}),getDateTimeFormat:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,ne([void 0],t)))}),{cache:oe(e.dateTime),strategy:ie.strategies.variadic}),getPluralRules:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,ne([void 0],t)))}),{cache:oe(e.pluralRules),strategy:ie.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=C,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}(),ce=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)}}();(ae=e.ReactIntlErrorCode||(e.ReactIntlErrorCode={})).FORMAT_ERROR="FORMAT_ERROR",ae.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",ae.INVALID_CONFIG="INVALID_CONFIG",ae.MISSING_DATA="MISSING_DATA",ae.MISSING_TRANSLATION="MISSING_TRANSLATION";var se=function(e){function t(r,n,o){var a=e.call(this,"[@formatjs/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 ce(t,e),t}(Error),le=function(e){function t(t,r){return e.call(this,"UNSUPPORTED_FORMATTER",t,r)||this}return ce(t,e),t}(se),fe=function(e){function t(t,r){return e.call(this,"INVALID_CONFIG",t,r)||this}return ce(t,e),t}(se),pe=function(e){function t(t,r){return e.call(this,"MISSING_DATA",t,r)||this}return ce(t,e),t}(se),me=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 ce(t,e),t}(se),de=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 ce(t,e),t}(se),he=function(){return(he=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)},ye=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 ge(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}),{})}var ve={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function be(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 we=V||W;function Oe(e,t,r,n){var o,a=e&&e[t];if(a&&(o=a[r]),o)return o;n(new le("No "+t+" format named: "+r))}var 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)};function Te(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=Ae({timeZone:t},e[n]),r}),{})}function Fe(e,t){return Object.keys(Ae(Ae({},e),t)).reduce((function(r,n){return r[n]=Ae(Ae({},e[n]||{}),t[n]||{}),r}),{})}function Ee(e,t){if(!t)return e;var r=ue.formats;return Ae(Ae(Ae({},r),e),{date:Fe(Te(r.date,t),Te(e.date||{},t)),time:Fe(Te(r.time,t),Te(e.time||{},t))})}function Ie(e,t,r,o){var a=e.locale,u=e.formats,c=e.messages,s=e.defaultLocale,l=e.defaultFormats,f=e.onError,p=e.timeZone,m=e.defaultRichTextElements;void 0===r&&(r={id:""});var d=r.id,h=r.defaultMessage;i(!!d,"[@formatjs/intl] An `id` must be provided to format a message.");var y=String(d),g=c&&Object.prototype.hasOwnProperty.call(c,y)&&c[y];if(Array.isArray(g)&&1===g.length&&g[0].type===n.literal)return g[0].value;if(!o&&g&&"string"==typeof g&&m&&console.error('[@formatjs/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&&g&&"string"==typeof g&&!m)return g.replace(/'\{(.*?)\}'/gi,"{$1}");if(o=Ae(Ae({},m),o||{}),u=Ee(u,p),l=Ee(l,p),!g){if((!h||a&&a.toLowerCase()!==s.toLowerCase())&&f(new de(r,a)),h)try{return t.getMessageFormat(h,s,l).format(o)}catch(e){return f(new me('Error formatting default message for: "'+y+'", rendering default message verbatim',a,r,e)),"string"==typeof h?h:y}return y}try{return t.getMessageFormat(g,a,u,{formatters:t}).format(o)}catch(e){f(new me('Error formatting message: "'+y+'", using '+(h?"default message":"id")+" as fallback.",a,r,e))}if(h)try{return t.getMessageFormat(h,s,l).format(o)}catch(e){f(new me('Error formatting the default message for: "'+y+'", rendering message verbatim',a,r,e))}return"string"==typeof g?g:"string"==typeof h?h:y}var Se=function(){return(Se=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)},Pe=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","fractionalSecondDigits","calendar","numberingSystem"];function Re(e,t,r,n){var o=e.locale,a=e.formats,i=e.onError,u=e.timeZone;void 0===n&&(n={});var c=n.format,s=Se(Se({},u&&{timeZone:u}),c&&Oe(a,t,c,i)),l=ge(n,Pe,s);return"time"!==t||l.hour||l.minute||l.second||(l=Se(Se({},l),{hour:"numeric",minute:"numeric"})),r(o,l)}function De(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return Re(e,"date",t,n).format(o)}catch(t){e.onError(new se("FORMAT_ERROR","Error formatting date.",t))}return String(o)}function _e(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return Re(e,"time",t,n).format(o)}catch(t){e.onError(new se("FORMAT_ERROR","Error formatting time.",t))}return String(o)}function je(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return Re(e,"date",t,n).formatToParts(o)}catch(t){e.onError(new se("FORMAT_ERROR","Error formatting date.",t))}return[]}function Ne(e,t,r,n){void 0===n&&(n={});var o="string"==typeof r?new Date(r||0):r;try{return Re(e,"time",t,n).formatToParts(o)}catch(t){e.onError(new se("FORMAT_ERROR","Error formatting time.",t))}return[]}var Ce=["localeMatcher","style","type","fallback"];function xe(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.DisplayNames||a(new Q('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',"MISSING_INTL_API"));var i=ge(n,Ce);try{return t(o,i).of(r)}catch(e){a(new se("FORMAT_ERROR","Error formatting display name.",e))}}var Me=["localeMatcher","type","style"],ke=Date.now();function Le(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.ListFormat||a(new Q('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',"MISSING_INTL_API"));var i=ge(n,Me);try{var u={},c=r.map((function(e,t){if("object"==typeof e){var r=function n(e){return ke+"_"+e+"_"+ke}(t);return u[r]=e,r}return String(e)}));return Object.keys(u).length?t(o,i).formatToParts(c).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(c)}catch(e){a(new se("FORMAT_ERROR","Error formatting list.",e))}return r}var $e=["localeMatcher","type"];function Ue(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.PluralRules||a(new Q('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API"));var i=ge(n,$e);try{return t(o,i).select(r)}catch(e){a(new me("Error formatting plural.",e))}return"other"}var ze=["numeric","style"];function Ve(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new Q('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&&Oe(e.formats,"relative",o,e.onError)||{};return t(n,ge(r,ze,a))}(e,t,o).format(r,n)}catch(t){e.onError(new me("Error formatting relative time.",t))}return String(r)}var Ze=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function Ge(e,t,r){var n=e.locale;void 0===r&&(r={});var o=r.format,a=o&&Oe(e.formats,"number",o,e.onError)||{};return t(n,ge(r,Ze,a))}function Be(e,t,r,n){void 0===n&&(n={});try{return Ge(e,t,n).format(r)}catch(t){e.onError(new se("FORMAT_ERROR","Error formatting number.",t))}return String(r)}function qe(e,t,r,n){void 0===n&&(n={});try{return Ge(e,t,n).formatToParts(r)}catch(t){e.onError(new se("FORMAT_ERROR","Error formatting number.",t))}return[]}var He=function(){return(He=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)},We=function(){return(We=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 Je(e){i(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Ke=We(We({},ve),{textComponent:t.Fragment}),Qe="function"==typeof Symbol&&Symbol.for,Xe=Qe?Symbol.for("react.element"):60103,Ye=Qe?Symbol.for("react.portal"):60106,et=Qe?Symbol.for("react.fragment"):60107,tt=Qe?Symbol.for("react.strict_mode"):60108,rt=Qe?Symbol.for("react.profiler"):60114,nt=Qe?Symbol.for("react.provider"):60109,ot=Qe?Symbol.for("react.context"):60110,at=Qe?Symbol.for("react.async_mode"):60111,it=Qe?Symbol.for("react.concurrent_mode"):60111,ut=Qe?Symbol.for("react.forward_ref"):60112,ct=Qe?Symbol.for("react.suspense"):60113,st=Qe?Symbol.for("react.suspense_list"):60120,lt=Qe?Symbol.for("react.memo"):60115,ft=Qe?Symbol.for("react.lazy"):60116,pt=Qe?Symbol.for("react.block"):60121,mt=Qe?Symbol.for("react.fundamental"):60117,dt=Qe?Symbol.for("react.responder"):60118,ht=Qe?Symbol.for("react.scope"):60119;function yt(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Xe:switch(e=e.type){case at:case it:case et:case rt:case tt:case ct:return e;default:switch(e=e&&e.$$typeof){case ot:case ut:case ft:case lt:case nt:return e;default:return t}}case Ye:return t}}}function gt(e){return yt(e)===it}var vt={AsyncMode:at,ConcurrentMode:it,ContextConsumer:ot,ContextProvider:nt,Element:Xe,ForwardRef:ut,Fragment:et,Lazy:ft,Memo:lt,Portal:Ye,Profiler:rt,StrictMode:tt,Suspense:ct,isAsyncMode:function(e){return gt(e)||yt(e)===at},isConcurrentMode:gt,isContextConsumer:function(e){return yt(e)===ot},isContextProvider:function(e){return yt(e)===nt},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Xe},isForwardRef:function(e){return yt(e)===ut},isFragment:function(e){return yt(e)===et},isLazy:function(e){return yt(e)===ft},isMemo:function(e){return yt(e)===lt},isPortal:function(e){return yt(e)===Ye},isProfiler:function(e){return yt(e)===rt},isStrictMode:function(e){return yt(e)===tt},isSuspense:function(e){return yt(e)===ct},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===et||e===it||e===rt||e===tt||e===ct||e===st||"object"==typeof e&&null!==e&&(e.$$typeof===ft||e.$$typeof===lt||e.$$typeof===nt||e.$$typeof===ot||e.$$typeof===ut||e.$$typeof===mt||e.$$typeof===dt||e.$$typeof===ht||e.$$typeof===pt)},typeOf:yt},bt=function wt(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")}
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/()}},r.exports),r.exports}((function(e){e.exports=vt})),Ot={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},At={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Tt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ft={};function Et(e){return bt.isMemo(e)?Tt:Ft[e.$$typeof]||Ot}Ft[bt.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ft[bt.Memo]=Tt;var It=Object.defineProperty,St=Object.getOwnPropertyNames,Pt=Object.getOwnPropertySymbols,Rt=Object.getOwnPropertyDescriptor,Dt=Object.getPrototypeOf,_t=Object.prototype,jt=function e(t,r,n){if("string"!=typeof r){if(_t){var o=Dt(r);o&&o!==_t&&e(t,o,n)}var a=St(r);Pt&&(a=a.concat(Pt(r)));for(var i=Et(t),u=Et(r),c=0;c<a.length;++c){var s=a[c];if(!(At[s]||n&&n[s]||u&&u[s]||i&&i[s])){var l=Rt(r,s);try{It(t,s,l)}catch(e){}}}}return t},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)},Ct=jt.default||jt,xt=t.createContext(null),Mt=xt.Consumer,kt=xt.Provider,Lt=xt;function $t(e,r){var n=r||{},o=n.intlPropName,a=void 0===o?"intl":o,i=n.forwardRef,u=void 0!==i&&i,c=n.enforceContext,s=void 0===c||c,l=function(r){return t.createElement(Mt,null,(function(n){var o;s&&Je(n);var i=((o={})[a]=n,o);return t.createElement(e,Nt({},r,i,{ref:u?r.forwardedRef:null}))}))};return l.displayName="injectIntl("+function f(e){return e.displayName||e.name||"Component"}(e)+")",l.WrappedComponent=e,Ct(u?t.forwardRef((function(e,r){return t.createElement(l,Nt({},e,{forwardedRef:r}))})):l,e)}var Ut,zt,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};!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(Ut||(Ut={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(zt||(zt={}));var Zt=function(e){return t.createElement(Lt.Consumer,null,(function(t){Je(t);var r=e.value,n=e.children,o=Vt(e,["value","children"]);return n(t.formatNumberToParts(r,o))}))};function Gt(e){var r=function(r){return t.createElement(Lt.Consumer,null,(function(t){Je(t);var n=r.value,o=r.children,a=Vt(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=zt[e],r}function Bt(e){var r=function(r){return t.createElement(Lt.Consumer,null,(function(n){Je(n);var o=r.value,a=r.children,i=Vt(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=Ut[e],r}Zt.displayName="FormattedNumberParts";var qt=function Ht(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},Wt=Object.freeze(Object.assign(Object.create(null),qt,{default:qt})),Jt=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(){return(Kt=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)},Qt=qt||Wt;function Xt(e){return{locale:e.locale,timeZone:e.timeZ