import{r as e}from"./vendor-react-RSDKEZ60.js";import{_ as t,a as r,b as n,c as i,r as o}from"./vendor-base-5_f7mmWg.js";function a(e,t){var r=t&&t.cache?t.cache:y,n=t&&t.serializer?t.serializer:E;return(t&&t.strategy?t.strategy:l)(e,{cache:r,serializer:n})}function s(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function h(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function u(e,t,r,n,i){return r.bind(t,e,n,i)}function l(e,t){return u(e,this,1===e.length?s:h,t.cache.create(),t.serializer)}var c,f,m,p,g,d,E=function(){return JSON.stringify(arguments)},v=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),y={create:function(){return new v}},b={variadic:function(e,t){return u(e,this,h,t.cache.create(),t.serializer)}};function T(e){return e.type===m.literal}function H(e){return e.type===m.argument}function _(e){return e.type===m.number}function A(e){return e.type===m.date}function B(e){return e.type===m.time}function N(e){return e.type===m.select}function S(e){return e.type===m.plural}function I(e){return e.type===m.pound}function P(e){return e.type===m.tag}function L(e){return!(!e||"object"!=typeof e||e.type!==g.number)}function R(e){return!(!e||"object"!=typeof e||e.type!==g.dateTime)}(f=c||(c={}))[f.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",f[f.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",f[f.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",f[f.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",f[f.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",f[f.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",f[f.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",f[f.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",f[f.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",f[f.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",f[f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",f[f.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",f[f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",f[f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",f[f.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",f[f.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",f[f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",f[f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",f[f.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",f[f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",f[f.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",f[f.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",f[f.INVALID_TAG=23]="INVALID_TAG",f[f.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",f[f.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",f[f.UNCLOSED_TAG=27]="UNCLOSED_TAG",(p=m||(m={}))[p.literal=0]="literal",p[p.argument=1]="argument",p[p.number=2]="number",p[p.date=3]="date",p[p.time=4]="time",p[p.select=5]="select",p[p.plural=6]="plural",p[p.pound=7]="pound",p[p.tag=8]="tag",(d=g||(g={}))[d.number=0]="number",d[d.dateTime=1]="dateTime";var M=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,C=/(?:[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;function O(e){var t={};return e.replace(C,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?"long":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) patterns 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) patterns are not supported, use `z` instead")}return""}),t}var D=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function w(e){return e.replace(/^(.*?)-/,"")}var F=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,U=/^(@+)?(\+|#+)?[rs]?$/g,G=/(\*)(0+)|(#+)(0+)|(0+)/g,k=/^(0+)$/;function x(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),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 j(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function V(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!k.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function X(e){var t=j(e);return t||{}}function K(e){for(var r={},n=0,i=e;n<i.length;n++){var o=i[n];switch(o.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=o.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=w(o.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=t(t(t({},r),{notation:"scientific"}),o.options.reduce(function(e,r){return t(t({},e),X(r))},{}));continue;case"engineering":r=t(t(t({},r),{notation:"engineering"}),o.options.reduce(function(e,r){return t(t({},e),X(r))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(G,function(e,t,n,i,o,a){if(t)r.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(k.test(o.stem))r.minimumIntegerDigits=o.stem.length;else if(F.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(F,function(e,t,n,i,o,a){return"*"===n?r.minimumFractionDigits=t.length:i&&"#"===i[0]?r.maximumFractionDigits=i.length:o&&a?(r.minimumFractionDigits=o.length,r.maximumFractionDigits=o.length+a.length):(r.minimumFractionDigits=t.length,r.maximumFractionDigits=t.length),""});var a=o.options[0];"w"===a?r=t(t({},r),{trailingZeroDisplay:"stripIfInteger"}):a&&(r=t(t({},r),x(a)))}else if(U.test(o.stem))r=t(t({},r),x(o.stem));else{var s=j(o.stem);s&&(r=t(t({},r),s));var h=V(o.stem);h&&(r=t(t({},r),h))}}return r}var Z,Y={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function W(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Y[r||""]||Y[n||""]||Y["".concat(n,"-001")]||Y["001"])[0]}var z=new RegExp("^".concat(M.source,"*")),q=new RegExp("".concat(M.source,"*$"));function J(e,t){return{start:e,end:t}}var Q=!!String.prototype.startsWith&&"_a".startsWith("a",1),$=!!String.fromCodePoint,ee=!!Object.fromEntries,te=!!String.prototype.codePointAt,re=!!String.prototype.trimStart,ne=!!String.prototype.trimEnd,ie=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},oe=!0;try{oe="a"===(null===(Z=me("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Z?void 0:Z[0])}catch(or){oe=!1}var ae,se=Q?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},he=$?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},ue=ee?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],a=i[1];t[o]=a}return t},le=te?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},ce=re?function(e){return e.trimStart()}:function(e){return e.replace(z,"")},fe=ne?function(e){return e.trimEnd()}:function(e){return e.replace(q,"")};function me(e,t){return new RegExp(e,t)}if(oe){var pe=me("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ae=function(e,t){var r;return pe.lastIndex=t,null!==(r=pe.exec(e)[1])&&void 0!==r?r:""}}else ae=function(e,t){for(var r=[];;){var n=le(e,t);if(void 0===n||be(n)||Te(n))break;r.push(n),t+=n>=65536?2:1}return he.apply(void 0,r)};var ge,de,Ee=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(c.UNMATCHED_CLOSING_TAG,J(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ve(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:m.pound,location:J(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:m.literal,value:"<".concat(n,"/>"),location:J(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ve(this.char()))return this.error(c.INVALID_TAG,J(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(c.UNMATCHED_CLOSING_TAG,J(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:m.tag,value:n,children:o,location:J(r,this.clonePosition())},err:null}:this.error(c.INVALID_TAG,J(a,this.clonePosition())))}return this.error(c.UNCLOSED_TAG,J(r,this.clonePosition()))}return this.error(c.INVALID_TAG,J(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&ye(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=J(r,this.clonePosition());return{val:{type:m.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ve(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return he.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),he(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,J(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(c.EMPTY_ARGUMENT,J(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(c.MALFORMED_ARGUMENT,J(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,J(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:m.argument,value:n,location:J(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,J(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(c.MALFORMED_ARGUMENT,J(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=ae(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:J(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,r,n,i){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(s){case"":return this.error(c.EXPECT_ARGUMENT_TYPE,J(a,h));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((T=this.parseSimpleArgStyleIfPossible()).err)return T;if(0===(E=fe(T.val)).length)return this.error(c.EXPECT_ARGUMENT_STYLE,J(this.clonePosition(),this.clonePosition()));u={style:E,styleLocation:J(l,this.clonePosition())}}if((H=this.tryParseArgumentClose(i)).err)return H;var f=J(i,this.clonePosition());if(u&&se(null==u?void 0:u.style,"::",0)){var p=ce(u.style.slice(2));if("number"===s)return(T=this.parseNumberSkeletonFromString(p,u.styleLocation)).err?T:{val:{type:m.number,value:n,location:f,style:T.val},err:null};if(0===p.length)return this.error(c.EXPECT_DATE_TIME_SKELETON,f);var d=p;this.locale&&(d=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),h=W(t);for("H"!=h&&"k"!=h||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=h+r}else r+="J"===i?"H":i}return r}(p,this.locale));var E={type:g.dateTime,pattern:d,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?O(d):{}};return{val:{type:"date"===s?m.date:m.time,value:n,location:f,style:E},err:null}}return{val:{type:"number"===s?m.number:"date"===s?m.date:m.time,value:n,location:f,style:null!==(o=null==u?void 0:u.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var v=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(c.EXPECT_SELECT_ARGUMENT_OPTIONS,J(v,t({},v)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),b=0;if("select"!==s&&"offset"===y.value){if(!this.bumpIf(":"))return this.error(c.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,J(this.clonePosition(),this.clonePosition()));var T;if(this.bumpSpace(),(T=this.tryParseDecimalInteger(c.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,c.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return T;this.bumpSpace(),y=this.parseIdentifierIfPossible(),b=T.val}var H,_=this.tryParsePluralOrSelectOptions(e,s,r,y);if(_.err)return _;if((H=this.tryParseArgumentClose(i)).err)return H;var A=J(i,this.clonePosition());return"select"===s?{val:{type:m.select,value:n,options:ue(_.val),location:A},err:null}:{val:{type:m.plural,value:n,options:ue(_.val),offset:b,pluralType:"plural"===s?"cardinal":"ordinal",location:A},err:null};default:return this.error(c.INVALID_ARGUMENT_TYPE,J(a,h))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,J(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(c.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,J(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(D).filter(function(e){return e.length>0});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0,h=a;s<h.length;s++)if(0===h[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(n){return this.error(c.INVALID_NUMBER_SKELETON,t)}return{val:{type:g.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?K(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,a=[],s=new Set,h=n.value,u=n.location;;){if(0===h.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(c.EXPECT_PLURAL_ARGUMENT_SELECTOR,c.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=J(l,this.clonePosition()),h=this.message.slice(l.offset,this.offset())}if(s.has(h))return this.error("select"===t?c.DUPLICATE_SELECT_ARGUMENT_SELECTOR:c.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===h&&(o=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?c.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:c.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,J(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var g=this.tryParseArgumentClose(m);if(g.err)return g;a.push([h,{value:p.val,location:J(m,this.clonePosition())}]),s.add(h),this.bumpSpace(),h=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===a.length?this.error("select"===t?c.EXPECT_SELECT_ARGUMENT_SELECTOR:c.EXPECT_PLURAL_ARGUMENT_SELECTOR,J(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(c.MISSING_OTHER_CLAUSE,J(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=J(n,this.clonePosition());return i?ie(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=le(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(se(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&be(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ve(e){return e>=97&&e<=122||e>=65&&e<=90}function ye(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function be(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Te(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function He(e){e.forEach(function(e){if(delete e.location,N(e)||S(e))for(var t in e.options)delete e.options[t].location,He(e.options[t].value);else _(e)&&L(e.style)||(A(e)||B(e))&&R(e.style)?delete e.style.location:P(e)&&He(e.children)})}function _e(e,r){void 0===r&&(r={}),r=t({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var n=new Ee(e,r).parse();if(n.err){var i=SyntaxError(c[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return(null==r?void 0:r.captureLocation)||He(n.val),n.val}(de=ge||(ge={})).MISSING_VALUE="MISSING_VALUE",de.INVALID_VALUE="INVALID_VALUE",de.MISSING_INTL_API="MISSING_INTL_API";var Ae,Be,Ne=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return r(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Se=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ge.INVALID_VALUE,i)||this}return r(t,e),t}(Ne),Ie=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),ge.INVALID_VALUE,n)||this}return r(t,e),t}(Ne),Pe=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),ge.MISSING_VALUE,r)||this}return r(t,e),t}(Ne);function Le(e){return"function"==typeof e}function Re(e,t,r,n,i,o,a){if(1===e.length&&T(e[0]))return[{type:Ae.literal,value:e[0].value}];for(var s=[],h=0,u=e;h<u.length;h++){var l=u[h];if(T(l))s.push({type:Ae.literal,value:l.value});else if(I(l))"number"==typeof o&&s.push({type:Ae.literal,value:r.getNumberFormat(t).format(o)});else{var c=l.value;if(!i||!(c in i))throw new Pe(c,a);var f=i[c];if(H(l))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),s.push({type:"string"==typeof f?Ae.literal:Ae.object,value:f});else if(A(l)){var m="string"==typeof l.style?n.date[l.style]:R(l.style)?l.style.parsedOptions:void 0;s.push({type:Ae.literal,value:r.getDateTimeFormat(t,m).format(f)})}else if(B(l)){m="string"==typeof l.style?n.time[l.style]:R(l.style)?l.style.parsedOptions:n.time.medium;s.push({type:Ae.literal,value:r.getDateTimeFormat(t,m).format(f)})}else if(_(l)){(m="string"==typeof l.style?n.number[l.style]:L(l.style)?l.style.parsedOptions:void 0)&&m.scale&&(f*=m.scale||1),s.push({type:Ae.literal,value:r.getNumberFormat(t,m).format(f)})}else{if(P(l)){var p=l.children,g=l.value,d=i[g];if(!Le(d))throw new Ie(g,"function",a);var E=d(Re(p,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(E)||(E=[E]),s.push.apply(s,E.map(function(e){return{type:"string"==typeof e?Ae.literal:Ae.object,value:e}}))}if(N(l)){if(!(v=l.options[f]||l.options.other))throw new Se(l.value,f,Object.keys(l.options),a);s.push.apply(s,Re(v.value,t,r,n,i))}else if(S(l)){var v;if(!(v=l.options["=".concat(f)])){if(!Intl.PluralRules)throw new Ne('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ge.MISSING_INTL_API,a);var y=r.getPluralRules(t,{type:l.pluralType}).select(f-(l.offset||0));v=l.options[y]||l.options.other}if(!v)throw new Se(l.value,f,Object.keys(l.options),a);s.push.apply(s,Re(v.value,t,r,n,i,f-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===Ae.literal&&t.type===Ae.literal?r.value+=t.value:e.push(t),e},[])}(s)}function Me(e,r){return r?Object.keys(e).reduce(function(n,i){var o,a;return n[i]=(o=e[i],(a=r[i])?t(t(t({},o||{}),a||{}),Object.keys(o).reduce(function(e,r){return e[r]=t(t({},o[r]),a[r]||{}),e},{})):o),n},t({},e)):e}function Ce(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}(Be=Ae||(Ae={}))[Be.literal=0]="literal",Be[Be.object=1]="object";var Oe,De,we=function(){function e(r,o,s,h){void 0===o&&(o=e.defaultLocale);var u,l=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=l.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===Ae.literal&&"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 Re(l.ast,l.locales,l.formatters,l.formats,e,void 0,l.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=l.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(l.locales)[0]}},this.getAst=function(){return l.ast},this.locales=o,this.resolvedLocale=e.resolveLocale(o),"string"==typeof r){if(this.message=r,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=h||{};c.formatters;var f=n(c,["formatters"]);this.ast=e.__parse(r,t(t({},f),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Me(e.formats,s),this.formatters=h&&h.formatters||(void 0===(u=this.formatterCache)&&(u={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,i([void 0],t,!1)))},{cache:Ce(u.number),strategy:b.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,i([void 0],t,!1)))},{cache:Ce(u.dateTime),strategy:b.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,i([void 0],t,!1)))},{cache:Ce(u.pluralRules),strategy:b.variadic})})}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.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=_e,e.formats={number:{integer:{maximumFractionDigits:0},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}();(De=Oe||(Oe={})).FORMAT_ERROR="FORMAT_ERROR",De.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",De.INVALID_CONFIG="INVALID_CONFIG",De.MISSING_DATA="MISSING_DATA",De.MISSING_TRANSLATION="MISSING_TRANSLATION";var Fe=function(e){function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return r(t,e),t}(Error),Ue=function(e){function t(t,r){return e.call(this,Oe.UNSUPPORTED_FORMATTER,t,r)||this}return r(t,e),t}(Fe),Ge=function(e){function t(t,r){return e.call(this,Oe.INVALID_CONFIG,t,r)||this}return r(t,e),t}(Fe),ke=function(e){function t(t,r){return e.call(this,Oe.MISSING_DATA,t,r)||this}return r(t,e),t}(Fe),xe=function(e){function t(t,r,n){var i=e.call(this,Oe.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),n)||this;return i.locale=r,i}return r(t,e),t}(Fe),je=function(e){function t(t,r,n,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return o.descriptor=n,o.locale=r,o}return r(t,e),t}(xe),Ve=function(e){function t(t,r){var n=e.call(this,Oe.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map(function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return n.descriptor=t,n}return r(t,e),t}(Fe);function Xe(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 Ke={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function Ze(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Ye(e,t,r,n){var i,o=e&&e[t];if(o&&(i=o[r]),i)return i;n(new Ue("No ".concat(t," format named: ").concat(r)))}function We(e,r){return Object.keys(e).reduce(function(n,i){return n[i]=t({timeZone:r},e[i]),n},{})}function ze(e,r){return Object.keys(t(t({},e),r)).reduce(function(n,i){return n[i]=t(t({},e[i]||{}),r[i]||{}),n},{})}function qe(e,r){if(!r)return e;var n=we.formats;return t(t(t({},n),e),{date:ze(We(n.date,r),We(e.date||{},r)),time:ze(We(n.time,r),We(e.time||{},r))})}var Je=function(e,r,n,i,o){var a=e.locale,s=e.formats,h=e.messages,u=e.defaultLocale,l=e.defaultFormats,c=e.fallbackOnEmptyString,f=e.onError,p=e.timeZone,g=e.defaultRichTextElements;void 0===n&&(n={id:""});var d=n.id,E=n.defaultMessage;if(!d)throw new Error("[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var v=String(d),y=h&&Object.prototype.hasOwnProperty.call(h,v)&&h[v];if(Array.isArray(y)&&1===y.length&&y[0].type===m.literal)return y[0].value;if(!i&&y&&"string"==typeof y&&!g)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(i=t(t({},g),i||{}),s=qe(s,p),l=qe(l,p),!y){if(!1===c&&""===y)return y;if((!E||a&&a.toLowerCase()!==u.toLowerCase())&&f(new Ve(n,a)),E)try{return r.getMessageFormat(E,u,l,o).format(i)}catch(b){return f(new je('Error formatting default message for: "'.concat(v,'", rendering default message verbatim'),a,n,b)),"string"==typeof E?E:v}return v}try{return r.getMessageFormat(y,a,s,t({formatters:r},o||{})).format(i)}catch(b){f(new je('Error formatting message: "'.concat(v,'", using ').concat(E?"default message":"id"," as fallback."),a,n,b))}if(E)try{return r.getMessageFormat(E,u,l,o).format(i)}catch(b){f(new je('Error formatting the default message for: "'.concat(v,'", rendering message verbatim'),a,n,b))}return"string"==typeof y?y:"string"==typeof E?E:v},Qe=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function $e(e,r,n,i){var o=e.locale,a=e.formats,s=e.onError,h=e.timeZone;void 0===i&&(i={});var u=i.format,l=t(t({},h&&{timeZone:h}),u&&Ye(a,r,u,s)),c=Xe(i,Qe,l);return"time"!==r||c.hour||c.minute||c.second||c.timeStyle||c.dateStyle||(c=t(t({},c),{hour:"numeric",minute:"numeric"})),n(o,c)}function et(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return $e(e,"date",t,a).format(s)}catch(h){e.onError(new xe("Error formatting date.",e.locale,h))}return String(s)}function tt(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return $e(e,"time",t,a).format(s)}catch(h){e.onError(new xe("Error formatting time.",e.locale,h))}return String(s)}function rt(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=void 0===a?{}:a,h="string"==typeof i?new Date(i||0):i,u="string"==typeof o?new Date(o||0):o;try{return $e(e,"dateTimeRange",t,s).formatRange(h,u)}catch(l){e.onError(new xe("Error formatting date time range.",e.locale,l))}return String(h)}function nt(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return $e(e,"date",t,a).formatToParts(s)}catch(h){e.onError(new xe("Error formatting date.",e.locale,h))}return[]}function it(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return $e(e,"time",t,a).formatToParts(s)}catch(h){e.onError(new xe("Error formatting time.",e.locale,h))}return[]}var ot=["style","type","fallback","languageDisplay"];function at(e,t,r,n){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new Ne('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',ge.MISSING_INTL_API));var a=Xe(n,ot);try{return t(i,a).of(r)}catch(s){o(new xe("Error formatting display name.",i,s))}}var st=["type","style"],ht=Date.now();function ut(e,t,r,n){void 0===n&&(n={});var i=lt(e,t,r,n).reduce(function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[]);return 1===i.length?i[0]:0===i.length?"":i}function lt(e,r,n,i){var o=e.locale,a=e.onError;void 0===i&&(i={}),Intl.ListFormat||a(new Ne('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',ge.MISSING_INTL_API));var s=Xe(i,st);try{var h={},u=n.map(function(e,t){if("object"==typeof e){var r=function(e){return"".concat(ht,"_").concat(e,"_").concat(ht)}(t);return h[r]=e,r}return String(e)});return r(o,s).formatToParts(u).map(function(e){return"literal"===e.type?e:t(t({},e),{value:h[e.value]||e.value})})}catch(l){a(new xe("Error formatting list.",o,l))}return n}var ct=["type"];function ft(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.PluralRules||o(new Ne('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ge.MISSING_INTL_API));var a=Xe(n,ct);try{return t(i,a).select(r)}catch(s){o(new xe("Error formatting plural.",i,s))}return"other"}var mt=["numeric","style"];function pt(e,t,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new Ne('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',ge.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&Ye(i,"relative",a,o)||{};return t(n,Xe(r,mt,s))}(e,t,i).format(r,n)}catch(o){e.onError(new xe("Error formatting relative time.",e.locale,o))}return String(r)}var gt=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function dt(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=a&&Ye(i,"number",a,o)||{};return t(n,Xe(r,gt,s))}function Et(e,t,r,n){void 0===n&&(n={});try{return dt(e,t,n).format(r)}catch(i){e.onError(new xe("Error formatting number.",e.locale,i))}return String(r)}function vt(e,t,r,n){void 0===n&&(n={});try{return dt(e,t,n).formatToParts(r)}catch(i){e.onError(new xe("Error formatting number.",e.locale,i))}return[]}function yt(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@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.github.io/docs/getting-started/message-distribution')}function bt(e,r){var n=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var r=Intl.RelativeTimeFormat,n=Intl.ListFormat,o=Intl.DisplayNames,s=a(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,i([void 0],t,!1)))},{cache:Ze(e.dateTime),strategy:b.variadic}),h=a(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,i([void 0],t,!1)))},{cache:Ze(e.number),strategy:b.variadic}),u=a(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,i([void 0],t,!1)))},{cache:Ze(e.pluralRules),strategy:b.variadic});return{getDateTimeFormat:s,getNumberFormat:h,getMessageFormat:a(function(e,r,n,i){return new we(e,r,n,t({formatters:{getNumberFormat:h,getDateTimeFormat:s,getPluralRules:u}},i||{}))},{cache:Ze(e.message),strategy:b.variadic}),getRelativeTimeFormat:a(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,i([void 0],e,!1)))},{cache:Ze(e.relativeTime),strategy:b.variadic}),getPluralRules:u,getListFormat:a(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,i([void 0],e,!1)))},{cache:Ze(e.list),strategy:b.variadic}),getDisplayNames:a(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(o.bind.apply(o,i([void 0],e,!1)))},{cache:Ze(e.displayNames),strategy:b.variadic})}}(r),o=t(t({},Ke),e),s=o.locale,h=o.defaultLocale,u=o.onError;return s?!Intl.NumberFormat.supportedLocalesOf(s).length&&u?u(new ke('Missing locale data for locale: "'.concat(s,'" in Intl.NumberFormat. Using default locale: "').concat(h,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(s).length&&u&&u(new ke('Missing locale data for locale: "'.concat(s,'" in Intl.DateTimeFormat. Using default locale: "').concat(h,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(u&&u(new Ge('"locale" was not configured, using "'.concat(h,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),o.locale=o.defaultLocale||"en"),yt(o),t(t({},o),{formatters:n,formatNumber:Et.bind(null,o,n.getNumberFormat),formatNumberToParts:vt.bind(null,o,n.getNumberFormat),formatRelativeTime:pt.bind(null,o,n.getRelativeTimeFormat),formatDate:et.bind(null,o,n.getDateTimeFormat),formatDateToParts:nt.bind(null,o,n.getDateTimeFormat),formatTime:tt.bind(null,o,n.getDateTimeFormat),formatDateTimeRange:rt.bind(null,o,n.getDateTimeFormat),formatTimeToParts:it.bind(null,o,n.getDateTimeFormat),formatPlural:ft.bind(null,o,n.getPluralRules),formatMessage:Je.bind(null,o,n),$t:Je.bind(null,o,n),formatList:ut.bind(null,o,n.getListFormat),formatListToParts:lt.bind(null,o,n.getListFormat),formatDisplayName:at.bind(null,o,n.getDisplayNames)})}function Tt(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function Ht(e){Tt(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var _t,At,Bt=t(t({},Ke),{textComponent:e.Fragment}),Nt={key:42},St=function(t){return e.isValidElement(t)?e.createElement(e.Fragment,Nt,t):t};function It(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var o=0;o<i;o++){var a=r[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}!function(){if(At)return _t;At=1;var e=o(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function a(r){return e.isMemo(r)?n:i[r.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=n;var s=Object.defineProperty,h=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,f=Object.prototype;_t=function e(t,n,i){if("string"!=typeof n){if(f){var o=c(n);o&&o!==f&&e(t,o,i)}var m=h(n);u&&(m=m.concat(u(n)));for(var p=a(t),g=a(n),d=0;d<m.length;++d){var E=m[d];if(!(r[E]||i&&i[E]||g&&g[E]||p&&p[E])){var v=l(n,E);try{s(t,E,v)}catch(y){}}}}return t}}();var Pt="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?e.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=e.createContext(null));Pt.Consumer;var Lt,Rt,Mt,Ct,Ot=Pt.Provider,Dt=Pt;function wt(){var t=e.useContext(Dt);return Ht(t),t}function Ft(e){var t=function(t){var r=wt(),i=t.value,o=t.children,a=n(t,["value","children"]),s="string"==typeof i?new Date(i||0):i;return o("formatDate"===e?r.formatDateToParts(s,a):r.formatTimeToParts(s,a))};return t.displayName=Mt[e],t}function Ut(t){var r=function(r){var i=wt(),o=r.value,a=r.children,s=n(r,["value","children"]),h=i[t](o,s);if("function"==typeof a)return a(h);var u=i.textComponent||e.Fragment;return e.createElement(u,null,h)};return r.displayName=Lt[t],r}function Gt(t){return t?Object.keys(t).reduce(function(r,n){var i,o=t[n];return r[n]=Le(o)?(i=o,function(t){return i(e.Children.toArray(t))}):o,r},{}):t}(Rt=Lt||(Lt={})).formatDate="FormattedDate",Rt.formatTime="FormattedTime",Rt.formatNumber="FormattedNumber",Rt.formatList="FormattedList",Rt.formatDisplayName="FormattedDisplayName",(Ct=Mt||(Mt={})).formatDate="FormattedDateParts",Ct.formatTime="FormattedTimeParts",Ct.formatNumber="FormattedNumberParts",Ct.formatList="FormattedListParts";var kt=function(t,r,n,o){for(var a=[],s=4;s<arguments.length;s++)a[s-4]=arguments[s];var h,u,l=Gt(o),c=Je.apply(void 0,i([t,r,n,l],a,!1));return Array.isArray(c)?(h=c,null!==(u=e.Children.map(h,St))&&void 0!==u?u:[]):c},xt=function(e,r){var i=e.defaultRichTextElements,o=n(e,["defaultRichTextElements"]),a=Gt(i),s=bt(t(t(t({},Bt),o),{defaultRichTextElements:a}),r),h={locale:s.locale,timeZone:s.timeZone,fallbackOnEmptyString:s.fallbackOnEmptyString,formats:s.formats,defaultLocale:s.defaultLocale,defaultFormats:s.defaultFormats,messages:s.messages,onError:s.onError,defaultRichTextElements:a};return t(t({},s),{formatMessage:kt.bind(null,h,s.formatters),$t:kt.bind(null,h,s.formatters)})};function jt(t){var r=wt(),n=r.formatMessage,i=r.textComponent,o=void 0===i?e.Fragment:i,a=t.id,s=t.description,h=t.defaultMessage,u=t.values,l=t.children,c=t.tagName,f=void 0===c?o:c,m=n({id:a,description:s,defaultMessage:h},u,{ignoreTag:t.ignoreTag});return"function"==typeof l?l(Array.isArray(m)?m:[m]):f?e.createElement(f,null,m):e.createElement(e.Fragment,null,m)}jt.displayName="FormattedMessage";var Vt=e.memo(jt,function(e,t){var r=e.values,i=n(e,["values"]),o=t.values,a=n(t,["values"]);return It(o,r)&&It(i,a)});function Xt(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}Vt.displayName="MemoizedFormattedMessage";var Kt=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},e.state={cache:e.cache,intl:xt(Xt(e.props),e.cache),prevConfig:Xt(e.props)},e}return r(n,t),n.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,i=Xt(e);return It(r,i)?null:{intl:xt(i,n),prevConfig:i}},n.prototype.render=function(){return Ht(this.state.intl),e.createElement(Ot,{value:this.state.intl},this.props.children)},n.displayName="IntlProvider",n.defaultProps=Bt,n}(e.PureComponent),Zt=3600;function Yt(e){var t=Math.abs(e);return t<60?"second":t<Zt?"minute":t<86400?"hour":"day"}function Wt(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return Zt;default:return 86400}}var zt=["second","minute","hour"];function qt(e){return void 0===e&&(e="second"),zt.indexOf(e)>-1}var Jt=function(t){var r=wt(),i=r.formatRelativeTime,o=r.textComponent,a=t.children,s=i(t.value||0,t.unit,n(t,["children","value","unit"]));return"function"==typeof a?a(s):o?e.createElement(o,null,s):e.createElement(e.Fragment,null,s)},Qt=function(r){var i=r.value,o=void 0===i?0:i,a=r.unit,s=void 0===a?"second":a,h=r.updateIntervalInSeconds,u=n(r,["value","unit","updateIntervalInSeconds"]);Tt(!h||!(!h||!qt(s)),"Cannot schedule update with unit longer than hour");var l,c=e.useState(),f=c[0],m=c[1],p=e.useState(0),g=p[0],d=p[1],E=e.useState(0),v=E[0],y=E[1];s===f&&o===g||(d(o||0),m(s),y(qt(s)?function(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return e*Zt}}(o,s):0)),e.useEffect(function(){function e(){clearTimeout(l)}if(e(),!h||!qt(s))return e;var t=v-h,r=Yt(t);if("day"===r)return e;var n=Wt(r),i=t-t%n,o=i>=v?i-n:i,a=Math.abs(o-v);return v!==o&&(l=setTimeout(function(){return y(o)},1e3*a)),e},[v,h,s]);var b=o||0,T=s;if(qt(s)&&"number"==typeof v&&h){var H=Wt(T=Yt(v));b=Math.round(v/H)}return e.createElement(Jt,t({value:b,unit:T},u))};function $t(e){return e}function er(e){return e}Qt.displayName="FormattedRelativeTime";var tr=Ut("formatDate");Ut("formatTime");var rr=Ut("formatNumber"),nr=Ut("formatList"),ir=Ut("formatDisplayName");Ft("formatDate"),Ft("formatTime");export{rr as F,Kt as I,Vt as M,tr as a,nr as b,er as c,$t as d,Qt as e,ir as f,wt as u};
