"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9358],{86182:function(e,t,r){r.r(t),r.d(t,{ErrorCode:function(){return p},FormatError:function(){return eg},IntlMessageFormat:function(){return eA},InvalidValueError:function(){return eb},InvalidValueTypeError:function(){return ed},MissingValueError:function(){return ey},PART_TYPE:function(){return E},default:function(){return eH},formatToParts:function(){return eT},isFormatXMLElementFn:function(){return ev}});var n,i,o,s,a,h,u,l,c,f,p,E,m=function(e,t){return(m=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function g(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var b=function(){return(b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=Math.abs(e)},W=!0;try{var Q=en("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");W=(null===(c=Q.exec("a"))||void 0===c?void 0:c[0])==="a"}catch(e){W=!1}var q=j?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},J=x?String.fromCodePoint:function(){for(var e,t=[],r=0;ro;){if((e=t[o++])>1114111)throw RangeError(e+" is not a valid code point");n+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return n},$=X?Object.fromEntries:function(e){for(var t={},r=0;r=n)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},et=Z?function(e){return e.trimStart()}:function(e){return e.replace(D,"")},er=Y?function(e){return e.trimEnd()}:function(e){return e.replace(k,"")};function en(e,t){return new RegExp(e,t)}if(W){var ei=en("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");f=function(e,t){var r;return ei.lastIndex=t,null!==(r=ei.exec(e)[1])&&void 0!==r?r:""}}else f=function(e,t){for(var r=[];;){var n,i=ee(e,t);if(void 0===i||ea(i)||(n=i)>=33&&n<=35||36===n||n>=37&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||n>=162&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||n>=8208&&n<=8213||n>=8214&&n<=8215||8216===n||8217===n||8218===n||n>=8219&&n<=8220||8221===n||8222===n||8223===n||n>=8224&&n<=8231||n>=8240&&n<=8248||8249===n||8250===n||n>=8251&&n<=8254||n>=8257&&n<=8259||8260===n||8261===n||8262===n||n>=8263&&n<=8273||8274===n||8275===n||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||8608===n||n>=8609&&n<=8610||8611===n||n>=8612&&n<=8613||8614===n||n>=8615&&n<=8621||8622===n||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||8658===n||8659===n||8660===n||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||8968===n||8969===n||8970===n||8971===n||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||9001===n||9002===n||n>=9003&&n<=9083||9084===n||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||9655===n||n>=9656&&n<=9664||9665===n||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||9839===n||n>=9840&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||n>=10132&&n<=10175||n>=10176&&n<=10180||10181===n||10182===n||n>=10183&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||n>=10649&&n<=10711||10712===n||10713===n||10714===n||10715===n||n>=10716&&n<=10747||10748===n||10749===n||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||11158===n||n>=11159&&n<=11263||n>=11776&&n<=11777||11778===n||11779===n||11780===n||11781===n||n>=11782&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||n>=11790&&n<=11798||11799===n||n>=11800&&n<=11801||11802===n||11803===n||11804===n||11805===n||n>=11806&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||n>=11818&&n<=11822||11823===n||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||11840===n||11841===n||11842===n||n>=11843&&n<=11855||n>=11856&&n<=11857||11858===n||n>=11859&&n<=11903||n>=12289&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||n>=12306&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||n>=12318&&n<=12319||12320===n||12336===n||64830===n||64831===n||n>=65093&&n<=65094)break;r.push(i),t+=i>=65536?2:1}return J.apply(void 0,r)};var eo=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){var o=this.parseArgument(e,r);if(o.err)return o;n.push(o.val)}else if(125===i&&e>0)break;else if(35===i&&("plural"===t||"selectordinal"===t)){var s=this.clonePosition();this.bump(),n.push({type:u.pound,location:V(s,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&es(this.peek()||0)){var o=this.parseTag(e,t);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(e,t);if(o.err)return o;n.push(o.val)}}else{if(!r)return this.error(h.UNMATCHED_CLOSING_TAG,V(this.clonePosition(),this.clonePosition()));break}}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:u.literal,value:"<".concat(n,"/>"),location:V(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(h.INVALID_TAG,V(r,this.clonePosition()));var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(!this.bumpIf(""))?{val:{type:u.tag,value:n,children:o,location:V(r,this.clonePosition())},err:null}:this.error(h.INVALID_TAG,V(s,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||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);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i){n+=i;continue}var o=this.tryParseUnquoted(e,t);if(o){n+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){n+=s;continue}break}var a=V(r,this.clonePosition());return{val:{type:u.literal,value:n,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(es(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},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())t.push(39),this.bump();else{this.bump();break}}else t.push(r);this.bump()}return J.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(),J(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(h.EXPECT_ARGUMENT_CLOSING_BRACE,V(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(h.EMPTY_ARGUMENT,V(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(h.MALFORMED_ARGUMENT,V(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(h.EXPECT_ARGUMENT_CLOSING_BRACE,V(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:u.argument,value:n,location:V(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(h.EXPECT_ARGUMENT_CLOSING_BRACE,V(r,this.clonePosition()));return this.parseArgumentOptions(e,t,n,r);default:return this.error(h.MALFORMED_ARGUMENT,V(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=f(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:V(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(h.EXPECT_ARGUMENT_TYPE,V(o,a));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var E=er(p.val);if(0===E.length)return this.error(h.EXPECT_ARGUMENT_STYLE,V(this.clonePosition(),this.clonePosition()));c={style:E,styleLocation:V(f,this.clonePosition())}}var m=this.tryParseArgumentClose(n);if(m.err)return m;var g=V(n,this.clonePosition());if(c&&q(null==c?void 0:c.style,"::",0)){var d,y=et(c.style.slice(2));if("number"===s){var p=this.parseNumberSkeletonFromString(y,c.styleLocation);if(p.err)return p;return{val:{type:u.number,value:r,location:g,style:p.val},err:null}}if(0===y.length)return this.error(h.EXPECT_DATE_TIME_SKELETON,g);var v=y;this.locale&&(v=function(e,t){for(var r="",n=0;n>1),h=function(e){var t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=e.language;return"root"!==n&&(t=e.maximize().region),(U[t||""]||U[n||""]||U["".concat(n,"-001")]||U["001"])[0]}(t);for(("H"==h||"k"==h)&&(a=0);a-- >0;)r+="a";for(;s-- >0;)r=h+r}else"J"===i?r+="H":r+=i}return r}(y,this.locale));var E={type:l.dateTime,pattern:v,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?(d={},v.replace(L,function(e){var t=e.length;switch(e[0]){case"G":d.era=4===t?"long":5===t?"narrow":"short";break;case"y":d.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":d.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":d.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":d.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");d.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");d.weekday=["short","long","narrow","short"][t-4];break;case"a":d.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":d.hourCycle="h12",d.hour=["numeric","2-digit"][t-1];break;case"H":d.hourCycle="h23",d.hour=["numeric","2-digit"][t-1];break;case"K":d.hourCycle="h11",d.hour=["numeric","2-digit"][t-1];break;case"k":d.hourCycle="h24",d.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":d.minute=["numeric","2-digit"][t-1];break;case"s":d.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":d.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),d):{}};return{val:{type:"date"===s?u.date:u.time,value:r,location:g,style:E},err:null}}return{val:{type:"number"===s?u.number:"date"===s?u.date:u.time,value:r,location:g,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(h.EXPECT_SELECT_ARGUMENT_OPTIONS,V(T,b({},T)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),A=0;if("select"!==s&&"offset"===_.value){if(!this.bumpIf(":"))return this.error(h.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,V(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(h.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,h.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),_=this.parseIdentifierIfPossible(),A=p.val}var H=this.tryParsePluralOrSelectOptions(e,s,t,_);if(H.err)return H;var m=this.tryParseArgumentClose(n);if(m.err)return m;var B=V(n,this.clonePosition());if("select"===s)return{val:{type:u.select,value:r,options:$(H.val),location:B},err:null};return{val:{type:u.plural,value:r,options:$(H.val),offset:A,pluralType:"plural"===s?"cardinal":"ordinal",location:B},err:null};default:return this.error(h.INVALID_ARGUMENT_TYPE,V(o,a))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(h.EXPECT_ARGUMENT_CLOSING_BRACE,V(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(h.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,V(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 Error("Number skeleton cannot be empty");for(var t=e.split(P).filter(function(e){return e.length>0}),r=[],n=0;n1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(O,function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else if(i&&o)throw Error("We currently do not support maximum integer digits");else if(s)throw Error("We currently do not support exact integer digits");return""});continue}if(R.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(M.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(M,function(e,r,n,i,o,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=n.options[0];"w"===i?t=b(b({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=b(b({},t),G(i)));continue}if(C.test(n.stem)){t=b(b({},t),G(n.stem));continue}var o=w(n.stem);o&&(t=b(b({},t),o));var s=function(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)),!R.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem);s&&(t=b(b({},t),s))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,s=[],a=new Set,u=n.value,l=n.location;;){if(0===u.length){var c=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(h.EXPECT_PLURAL_ARGUMENT_SELECTOR,h.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;l=V(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(a.has(u))return this.error("select"===t?h.DUPLICATE_SELECT_ARGUMENT_SELECTOR:h.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===u&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?h.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:h.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,V(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(e+1,t,r);if(E.err)return E;var m=this.tryParseArgumentClose(p);if(m.err)return m;s.push([u,{value:E.val,location:V(p,this.clonePosition())}]),a.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===t?h.EXPECT_SELECT_ARGUMENT_SELECTOR:h.EXPECT_PLURAL_ARGUMENT_SELECTOR,V(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(h.MISSING_OTHER_CLAUSE,V(this.clonePosition(),this.clonePosition())):{val:s,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 s=this.char();if(s>=48&&s<=57)i=!0,o=10*o+(s-48),this.bump();else break}var a=V(n,this.clonePosition());return i?z(o*=r)?{val:o,err:null}:this.error(t,a):this.error(e,a)},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=ee(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(q(this.message,e,this.offset())){for(var t=0;t=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()&&ea(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 es(e){return e>=97&&e<=122||e>=65&&e<=90}function ea(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function eh(e,t){void 0===t&&(t={});var r=new eo(e,t=b({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(r.err){var n=SyntaxError(h[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,A(t)||H(t))for(var r in t.options)delete t.options[r].location,e(t.options[r].value);else v(t)&&I(t.style)?delete t.style.location:(T(t)||_(t))&&N(t.style)?delete t.style.location:B(t)&&e(t.children)})}(r.val),r.val}function eu(e,t){var r=t&&t.cache?t.cache:eE,n=t&&t.serializer?t.serializer:ef;return(t&&t.strategy?t.strategy:function(e,t){var r,n,i=1===e.length?el:ec;return r=t.cache.create(),n=t.serializer,i.bind(this,e,r,n)})(e,{cache:r,serializer:n})}function el(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),o=t.get(i);return void 0===o&&(o=e.call(this,n),t.set(i,o)),o}function ec(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}var ef=function(){return JSON.stringify(arguments)};function ep(){this.cache=Object.create(null)}ep.prototype.get=function(e){return this.cache[e]},ep.prototype.set=function(e,t){this.cache[e]=t};var eE={create:function(){return new ep}},em={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,ec.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,el.bind(this,e,r,n)}};(s=p||(p={})).MISSING_VALUE="MISSING_VALUE",s.INVALID_VALUE="INVALID_VALUE",s.MISSING_INTL_API="MISSING_INTL_API";var eg=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return g(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),eb=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('", "'),'"'),p.INVALID_VALUE,i)||this}return g(t,e),t}(eg),ed=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),p.INVALID_VALUE,n)||this}return g(t,e),t}(eg),ey=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,'"'),p.MISSING_VALUE,r)||this}return g(t,e),t}(eg);function ev(e){return"function"==typeof e}function eT(e,t,r,n,i,o,s){if(1===e.length&&y(e[0]))return[{type:E.literal,value:e[0].value}];for(var a=[],h=0;h0?t[0]:"string"==typeof e?e:e[0])},e.__parse=eh,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}(),eH=eA},52199:function(e,t){function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;tnew Map),m=n.useMemo(()=>({...i.initializeConfig({locale:u,defaultTranslationValues:r,formats:a,getMessageFallback:h,messages:l,now:c,onError:f,timeZone:p}),messageFormatCache:E}),[r,a,h,u,E,l,c,f,p]);return s.default.createElement(o.IntlContext.Provider,{value:m},t)}},79859:function(e,t,r){var n=r(54772),i=r(34487);function o(){let e=n.useContext(i.IntlContext);if(!e)throw Error(void 0);return e}t.useIntlContext=o,t.useLocale=function(){return o().locale}},2762:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(79859);r(54772),r(34487),t.useLocale=n.useLocale},15601:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(95182),i=r(88947);r(86182),r(54772),t.IntlError=n.IntlError,t.IntlErrorCode=n.IntlErrorCode,t.createFormatter=n.createFormatter,t.initializeConfig=i.initializeConfig,t.createTranslator=function(e){let{getMessageFallback:t=i.defaultGetMessageFallback,messages:r,namespace:o,onError:s=i.defaultOnError,...a}=e;return function(e,t){let{getMessageFallback:r,messages:i,namespace:o,onError:s,...a}=e;return i=i["!"],o=n.resolveNamespace(o,"!"),n.createBaseTranslator({...a,onError:s,getMessageFallback:r,messages:i,namespace:o})}({...a,onError:s,getMessageFallback:t,messages:{"!":r},namespace:o?"!.".concat(o):"!"},0)}},95182:function(e,t,r){var n,i=r(86182),o=r(54772),s=r(88947),a=i&&i.__esModule?i:{default:i};function h(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let u=((n={}).MISSING_MESSAGE="MISSING_MESSAGE",n.MISSING_FORMAT="MISSING_FORMAT",n.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",n.INSUFFICIENT_PATH="INSUFFICIENT_PATH",n.INVALID_MESSAGE="INVALID_MESSAGE",n.INVALID_KEY="INVALID_KEY",n.FORMATTING_ERROR="FORMATTING_ERROR",n);class l extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),h(this,"code",void 0),h(this,"originalMessage",void 0),this.code=e,t&&(this.originalMessage=t)}}function c(e,t){return e?Object.keys(e).reduce((r,n)=>(r[n]={timeZone:t,...e[n]},r),{}):e}function f(e,t,r){let n=s.joinPath(r,t);if(!e)throw Error(n);let i=e;return t.split(".").forEach(e=>{let t=i[e];if(null==e||null==t)throw Error(n);i=t}),i}let p=365/12*86400,E={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:365/12*86400,months:365/12*86400,quarter:365/12*259200,quarters:365/12*259200,year:31536e3,years:31536e3};t.IntlError=l,t.IntlErrorCode=u,t.createBaseTranslator=function(e){let t=function(e){let{messages:t,namespace:r,onError:n=s.defaultOnError}=e;try{if(!t)throw Error(void 0);let e=r?f(t,r):t;if(!e)throw Error(r);return e}catch(t){let e=new l(u.MISSING_MESSAGE,t.message);return n(e),e}}({messages:e.messages,namespace:e.namespace,onError:e.onError});return function(e){let{defaultTranslationValues:t,formats:r,getMessageFallback:n=s.defaultGetMessageFallback,locale:i,messageFormatCache:h,messagesOrError:p,namespace:E,onError:m,timeZone:g}=e;function b(e,t,r){let i=new l(t,r);return m(i),n({error:i,key:e,namespace:E})}function d(e,m,d){let y,v;if(p instanceof l)return n({error:p,key:e,namespace:E});try{y=f(p,e,E)}catch(t){return b(e,u.MISSING_MESSAGE,t.message)}let T=s.joinPath(i,E,e,String(y));if(null!=h&&h.has(T))v=h.get(T);else{if("object"==typeof y){let t;return b(e,Array.isArray(y)?u.INVALID_MESSAGE:u.INSUFFICIENT_PATH,t)}let t=function(e,t){if(t)return;let r=e.replace(/'([{}])/gi,"$1");return/<|{/.test(r)?void 0:r}(y,m);if(t)return t;try{v=new a.default(y,i,function(e,t){let r=t?{...e,dateTime:c(e.dateTime,t)}:e,n=a.default.formats.date,i=t?c(n,t):n,o=a.default.formats.time,s=t?c(o,t):o;return{...r,date:{...i,...null==r?void 0:r.dateTime},time:{...s,...null==r?void 0:r.dateTime}}}({...r,...d},g))}catch(t){return b(e,u.INVALID_MESSAGE,t.message)}null==h||h.set(T,v)}try{let e=v.format(function(e){if(0===Object.keys(e).length)return;let t={};return Object.keys(e).forEach(r=>{let n,i=0,s=e[r];n="function"==typeof s?e=>{let t=s(e);return o.isValidElement(t)?o.cloneElement(t,{key:r+i++}):t}:s,t[r]=n}),t}({...t,...m}));if(null==e)throw Error(void 0);return o.isValidElement(e)||Array.isArray(e)||"string"==typeof e?e:String(e)}catch(t){return b(e,u.FORMATTING_ERROR,t.message)}}function y(e,t,r){let n=d(e,t,r);return"string"!=typeof n?b(e,u.INVALID_MESSAGE,void 0):n}return y.rich=d,y.markup=(e,t,r)=>{let i=d(e,t,r);if("string"!=typeof i){let t=new l(u.FORMATTING_ERROR,void 0);return m(t),n({error:t,key:e,namespace:E})}return i},y.raw=e=>{if(p instanceof l)return n({error:p,key:e,namespace:E});try{return f(p,e,E)}catch(t){return b(e,u.MISSING_MESSAGE,t.message)}},y}({...e,messagesOrError:t})},t.createFormatter=function(e){let{formats:t,locale:r,now:n,onError:i=s.defaultOnError,timeZone:o}=e;function a(e,t,r,n){let o;try{o=function(e,t){let r;if("string"==typeof t){if(!(r=null==e?void 0:e[t])){let e=new l(u.MISSING_FORMAT,void 0);throw i(e),e}}else r=t;return r}(r,t)}catch(t){return String(e)}try{return n(o)}catch(t){return i(new l(u.FORMATTING_ERROR,t.message)),String(e)}}return{dateTime:function(e,n){return a(e,n,null==t?void 0:t.dateTime,t=>{var n;return null!==(n=t)&&void 0!==n&&n.timeZone||(o?t={...t,timeZone:o}:i(new l(u.ENVIRONMENT_FALLBACK,void 0))),new Intl.DateTimeFormat(r,t).format(e)})},number:function(e,n){return a(e,n,null==t?void 0:t.number,t=>new Intl.NumberFormat(r,t).format(e))},relativeTime:function(e,t){try{let o=new Date(e),s=t instanceof Date||"number"==typeof t?new Date(t):void 0!==(null==t?void 0:t.now)?new Date(t.now):n||(i(new l(u.ENVIRONMENT_FALLBACK,void 0)),new Date),a=(o.getTime()-s.getTime())/1e3,h="number"==typeof t||t instanceof Date||void 0===(null==t?void 0:t.unit)?function(e){let t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":t<604800?"day":tnew Intl.ListFormat(r,t).format(e))}}},t.resolveNamespace=function(e,t){return e===t?void 0:e.slice((t+".").length)}},60860:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(95182),i=r(15601),o=r(88947),s=r(57935),a=r(71263),h=r(79859);r(86182),r(54772),r(34487),t.IntlError=n.IntlError,t.IntlErrorCode=n.IntlErrorCode,t.createFormatter=n.createFormatter,t.createTranslator=i.createTranslator,t.initializeConfig=o.initializeConfig,t.IntlProvider=s.IntlProvider,t.useFormatter=a.useFormatter,t.useMessages=a.useMessages,t.useNow=a.useNow,t.useTimeZone=a.useTimeZone,t.useTranslations=a.useTranslations,t.useLocale=h.useLocale},88947:function(e,t){function r(){for(var e=arguments.length,t=Array(e),r=0;rs.createFormatter({formats:e,locale:t,now:r,onError:n,timeZone:a}),[e,r,t,n,a])},t.useMessages=function(){let e=i.useIntlContext();if(!e.messages)throw Error(void 0);return e.messages},t.useNow=function(e){let t=null==e?void 0:e.updateInterval,{now:r}=i.useIntlContext(),[n,s]=o.useState(r||new Date);return o.useEffect(()=>{if(!t)return;let e=setInterval(()=>{s(new Date)},t);return()=>{clearInterval(e)}},[r,t]),n},t.useTimeZone=function(){return i.useIntlContext().timeZone},t.useTranslations=function(e){return function(e,t,r){let{defaultTranslationValues:n,formats:u,getMessageFallback:l,locale:c,messageFormatCache:f,onError:p,timeZone:E}=i.useIntlContext();return e=e["!"],t=s.resolveNamespace(t,"!"),E||a||!h||(a=!0,p(new s.IntlError(s.IntlErrorCode.ENVIRONMENT_FALLBACK,void 0))),o.useMemo(()=>s.createBaseTranslator({messageFormatCache:f,getMessageFallback:l,messages:e,defaultTranslationValues:n,namespace:t,onError:p,formats:u,locale:c,timeZone:E}),[f,l,e,t,p,n,u,c,E])}({"!":i.useIntlContext().messages},e?"!.".concat(e):"!",0)}}}]);