!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e2e4fa0b-49d7-3c5d-88b4-37395ccb9399")}catch(e){}}(); define(["exports","./e_core_exception","./c_src_sink_index","./c_flux_action_type","metaserver/static/js/langpack","react","./c_lodash-es_lodash","./c_pap-events_enums_flexible_sharing_entry_point_variant-utils"],(function(t,e,r,n,o,i,a,s){"use strict";function l(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var c=l(o),u=l(i),h=function(t,e){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},h(t,e)};var f=function(){return f=Object.assign||function(t){for(var e,r=1,n=arguments.length;r1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Nt,(function(t,r,n,o,i,a){if(r)e.minimumIntegerDigits=n.length;else{if(o&&i)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(Pt.test(o.stem))e.minimumIntegerDigits=o.stem.length;else if(St.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(St,(function(t,r,n,o,i,a){return"*"===n?e.minimumFractionDigits=r.length:o&&"#"===o[0]?e.maximumFractionDigits=o.length:i&&a?(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length+a.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""}));var i=o.options[0];"w"===i?e=st(st({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=st(st({},e),It(i)))}else if(Lt.test(o.stem))e=st(st({},e),It(o.stem));else{var a=Rt(o.stem);a&&(e=st(st({},e),a));var s=Ct(o.stem);s&&(e=st(st({},e),s))}}return e}var Bt,Mt={"001":["H","h"],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"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],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"],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","hB","h","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"],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"],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"],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","h","K"],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"],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"],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"],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","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","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"],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"],TL:["H","hB","hb","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"],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"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 Ut(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){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=t.language;return"root"!==n&&(r=t.maximize().region),(Mt[r||""]||Mt[n||""]||Mt["".concat(n,"-001")]||Mt["001"])[0]}var Dt=new RegExp("^".concat(_t.source,"*")),wt=new RegExp("".concat(_t.source,"*$"));function Gt(t,e){return{start:t,end:e}}var Ft=!!String.prototype.startsWith&&"_a".startsWith("a",1),kt=!!String.fromCodePoint,jt=!!Object.fromEntries,xt=!!String.prototype.codePointAt,Vt=!!String.prototype.trimStart,Xt=!!String.prototype.trimEnd,Kt=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Yt=!0;try{Yt="a"===(null===(Bt=te("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Bt?void 0:Bt[0])}catch(t){Yt=!1}var Zt,$t=Ft?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},Wt=kt?String.fromCodePoint:function(){for(var t=[],e=0;ei;){if((r=t[i++])>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},zt=jt?Object.fromEntries:function(t){for(var e={},r=0,n=t;r=r)){var n,o=t.charCodeAt(e);return o<55296||o>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},qt=Vt?function(t){return t.trimStart()}:function(t){return t.replace(Dt,"")},Jt=Xt?function(t){return t.trimEnd()}:function(t){return t.replace(wt,"")};function te(t,e){return new RegExp(t,e)}if(Yt){var ee=te("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Zt=function(t,e){var r;return ee.lastIndex=e,null!==(r=ee.exec(t)[1])&&void 0!==r?r:""}}else Zt=function(t,e){for(var r=[];;){var n=Qt(t,e);if(void 0===n||ie(n)||ae(n))break;r.push(n),e+=n>=65536?2:1}return Wt.apply(void 0,r)};var re=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(t,r)).err)return i;n.push(i.val)}else{if(125===o&&t>0)break;if(35!==o||"plural"!==e&&"selectordinal"!==e){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(ot.UNMATCHED_CLOSING_TAG,Gt(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&ne(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(t,e)).err)return i;n.push(i.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:it.pound,location:Gt(a,this.clonePosition())})}}}return{val:n,err:null}},t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:it.literal,value:"<".concat(n,"/>"),location:Gt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:it.tag,value:n,children:i,location:Gt(r,this.clonePosition())},err:null}:this.error(ot.INVALID_TAG,Gt(a,this.clonePosition())))}return this.error(ot.UNCLOSED_TAG,Gt(r,this.clonePosition()))}return this.error(ot.INVALID_TAG,Gt(r,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&oe(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o)n+=o;else{var i=this.tryParseUnquoted(t,e);if(i)n+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=Gt(r,this.clonePosition());return{val:{type:it.literal,value:n,location:s},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ne(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){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"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return Wt.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&t>0?null:(this.bump(),Wt(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ot.EXPECT_ARGUMENT_CLOSING_BRACE,Gt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ot.EMPTY_ARGUMENT,Gt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ot.MALFORMED_ARGUMENT,Gt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ot.EXPECT_ARGUMENT_CLOSING_BRACE,Gt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:it.argument,value:n,location:Gt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ot.EXPECT_ARGUMENT_CLOSING_BRACE,Gt(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(ot.MALFORMED_ARGUMENT,Gt(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Zt(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:Gt(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(ot.EXPECT_ARGUMENT_TYPE,Gt(i,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=Jt(y.val)).length)return this.error(ot.EXPECT_ARGUMENT_STYLE,Gt(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:Gt(c,this.clonePosition())}}if((T=this.tryParseArgumentClose(n)).err)return T;var u=Gt(n,this.clonePosition());if(l&&$t(null==l?void 0:l.style,"::",0)){var h=qt(l.style.slice(2));if("number"===a)return(y=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?y:{val:{type:it.number,value:r,location:u,style:y.val},err:null};if(0===h.length)return this.error(ot.EXPECT_DATE_TIME_SKELETON,u);var f=h;this.locale&&(f=function(t,e){for(var r="",n=0;n>1),l=Ut(e);for("H"!=l&&"k"!=l||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=l+r}else r+="J"===o?"H":o}return r}(h,this.locale));var p={type:at.dateTime,pattern:f,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?vt(f):{}};return{val:{type:"date"===a?it.date:it.time,value:r,location:u,style:p},err:null}}return{val:{type:"number"===a?it.number:"date"===a?it.date:it.time,value:r,location:u,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ot.EXPECT_SELECT_ARGUMENT_OPTIONS,Gt(m,st({},m)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===E.value){if(!this.bumpIf(":"))return this.error(ot.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Gt(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(ot.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ot.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),E=this.parseIdentifierIfPossible(),g=y.val}var T,d=this.tryParsePluralOrSelectOptions(t,a,e,E);if(d.err)return d;if((T=this.tryParseArgumentClose(n)).err)return T;var _=Gt(n,this.clonePosition());return"select"===a?{val:{type:it.select,value:r,options:zt(d.val),location:_},err:null}:{val:{type:it.plural,value:r,options:zt(d.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:_},err:null};default:return this.error(ot.INVALID_ARGUMENT_TYPE,Gt(i,s))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(ot.EXPECT_ARGUMENT_CLOSING_BRACE,Gt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ot.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Gt(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=t.split(At).filter((function(t){return t.length>0})),r=[],n=0,o=e;n=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=Gt(n,this.clonePosition());return o?Kt(i*=r)?{val:i,err:null}:this.error(e,s):this.error(t,s)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Qt(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if($t(this.message,t,this.offset())){for(var e=0;e=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ie(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();function ne(t){return t>=97&&t<=122||t>=65&&t<=90}function oe(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function ie(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function ae(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function se(t){t.forEach((function(t){if(delete t.location,mt(t)||Et(t))for(var e in t.options)delete t.options[e].location,se(t.options[e].value);else ht(t)&&Tt(t.style)||(ft(t)||pt(t))&&dt(t.style)?delete t.style.location:yt(t)&&se(t.children)}))}function le(t,e){void 0===e&&(e={}),e=st({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new re(t,e).parse();if(r.err){var n=SyntaxError(ot[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||se(r.val),r.val}function ce(t,e){var r=e&&e.cache?e.cache:ye,n=e&&e.serializer?e.serializer:me;return(e&&e.strategy?e.strategy:pe)(t,{cache:r,serializer:n})}function ue(t,e,r,n){var o,i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n),a=e.get(i);return void 0===a&&(a=t.call(this,n),e.set(i,a)),a}function he(t,e,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=e.get(o);return void 0===i&&(i=t.apply(this,n),e.set(o,i)),i}function fe(t,e,r,n,o){return r.bind(e,t,n,o)}function pe(t,e){return fe(t,this,1===t.length?ue:he,e.cache.create(),e.serializer)}var me=function(){return JSON.stringify(arguments)};function Ee(){this.cache=Object.create(null)}Ee.prototype.get=function(t){return this.cache[t]},Ee.prototype.set=function(t,e){this.cache[t]=e};var ge,ye={create:function(){return new Ee}},Te={variadic:function(t,e){return fe(t,this,he,e.cache.create(),e.serializer)},monadic:function(t,e){return fe(t,this,ue,e.cache.create(),e.serializer)}};!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(ge||(ge={}));var de,_e=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.code=r,o.originalMessage=n,o}return nt(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),be=function(t){function e(e,r,n,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ge.INVALID_VALUE,o)||this}return nt(e,t),e}(_e),ve=function(t){function e(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),ge.INVALID_VALUE,n)||this}return nt(e,t),e}(_e),Ae=function(t){function e(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),ge.MISSING_VALUE,r)||this}return nt(e,t),e}(_e);function Se(t){return"function"==typeof t}function Le(t,e,r,n,o,i,a){if(1===t.length&&ct(t[0]))return[{type:de.literal,value:t[0].value}];for(var s=[],l=0,c=t;l0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=le,t.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"}}},t}();t.IntlErrorCode=void 0,(Ie=t.IntlErrorCode||(t.IntlErrorCode={})).FORMAT_ERROR="FORMAT_ERROR",Ie.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",Ie.INVALID_CONFIG="INVALID_CONFIG",Ie.MISSING_DATA="MISSING_DATA",Ie.MISSING_TRANSLATION="MISSING_TRANSLATION";var Ce=function(t){function e(r,n,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=t.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(i,e),i}return J(e,t),e}(Error),Oe=function(e){function r(r,n){return e.call(this,t.IntlErrorCode.UNSUPPORTED_FORMATTER,r,n)||this}return J(r,e),r}(Ce),He=function(e){function r(r,n){return e.call(this,t.IntlErrorCode.INVALID_CONFIG,r,n)||this}return J(r,e),r}(Ce),Be=function(e){function r(r,n){return e.call(this,t.IntlErrorCode.MISSING_DATA,r,n)||this}return J(r,e),r}(Ce),Me=function(e){function r(r,n,o){var i=e.call(this,t.IntlErrorCode.FORMAT_ERROR,"".concat(r,"\nLocale: ").concat(n,"\n"),o)||this;return i.locale=n,i}return J(r,e),r}(Ce),Ue=function(t){function e(e,r,n,o){var i=t.call(this,"".concat(e,"\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,o)||this;return i.descriptor=n,i.locale=r,i}return J(e,t),e}(Me),De=function(e){function r(r,n){var o=e.call(this,t.IntlErrorCode.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat("string"==typeof r.defaultMessage?r.defaultMessage:r.defaultMessage.map((function(t){var e;return null!==(e=t.value)&&void 0!==e?e:JSON.stringify(t)})).join(),")"):"id"," as fallback."))||this;return o.descriptor=r,o}return J(r,e),r}(Ce);function we(t,e,r){return void 0===r&&(r={}),e.reduce((function(e,n){return n in t?e[n]=t[n]:n in r&&(e[n]=r[n]),e}),{})}var Ge,Fe,ke,je,xe={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(t){},onWarn:function(t){}};function Ve(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}function Xe(t,e,r,n){var o,i=t&&t[e];if(i&&(o=i[r]),o)return o;n(new Oe("No ".concat(e," format named: ").concat(r)))}!function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Ge||(Ge={})),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(Fe||(Fe={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(ke||(ke={}));try{"a"===(null===(je=new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===je?void 0:je[0])}catch(t){!1}function Ke(t,e){return Object.keys(t).reduce((function(r,n){return r[n]=tt({timeZone:e},t[n]),r}),{})}function Ye(t,e){return Object.keys(tt(tt({},t),e)).reduce((function(r,n){return r[n]=tt(tt({},t[n]||{}),e[n]||{}),r}),{})}function Ze(t,e){if(!e)return t;var r=Re.formats;return tt(tt(tt({},r),t),{date:Ye(Ke(r.date,e),Ke(t.date||{},e)),time:Ye(Ke(r.time,e),Ke(t.time||{},e))})}var $e=function(t,e,r,n,o){var i=t.locale,a=t.formats,s=t.messages,l=t.defaultLocale,c=t.defaultFormats,u=t.fallbackOnEmptyString,h=t.onError,f=t.timeZone,p=t.defaultRichTextElements;void 0===r&&(r={id:""});var m=r.id,E=r.defaultMessage;!function(t,e,r){if(void 0===r&&(r=Error),!t)throw new r(e)}(!!m,"[@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.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(m),y=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(y)&&1===y.length&&y[0].type===Fe.literal)return y[0].value;if(!n&&y&&"string"==typeof y&&!p)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=tt(tt({},p),n||{}),a=Ze(a,f),c=Ze(c,f),!y){if(!1===u&&""===y)return y;if((!E||i&&i.toLowerCase()!==l.toLowerCase())&&h(new De(r,i)),E)try{return e.getMessageFormat(E,l,c,o).format(n)}catch(t){return h(new Ue('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),i,r,t)),"string"==typeof E?E:g}return g}try{return e.getMessageFormat(y,i,a,tt({formatters:e},o||{})).format(n)}catch(t){h(new Ue('Error formatting message: "'.concat(g,'", using ').concat(E?"default message":"id"," as fallback."),i,r,t))}if(E)try{return e.getMessageFormat(E,l,c,o).format(n)}catch(t){h(new Ue('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),i,r,t))}return"string"==typeof y?y:"string"==typeof E?E:g},We=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ze(t,e,r,n){var o=t.locale,i=t.formats,a=t.onError,s=t.timeZone;void 0===n&&(n={});var l=n.format,c=tt(tt({},s&&{timeZone:s}),l&&Xe(i,e,l,a)),u=we(n,We,c);return"time"!==e||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=tt(tt({},u),{hour:"numeric",minute:"numeric"})),r(o,u)}function Qe(t,e){for(var r=[],n=2;n needs to exist in the component ancestry.")}var dr=f(f({},xe),{textComponent:u.Fragment});function _r(t,e){if(t===e)return!0;if(!t||!e)return!1;var r=Object.keys(t),n=Object.keys(e),o=r.length;if(n.length!==o)return!1;for(var i=0;i2||Math.random()>=.05||(Dr++,fetch("/missed_translation_log",{method:"POST",body:JSON.stringify({message:null==t?void 0:t.defaultMessage,comment:null==t?void 0:t.description})}))}let Gr=0;const Fr=r=>{if(r.code===t.IntlErrorCode.FORMAT_ERROR)return function(t){if(Gr>2||Math.random()>=.05)return;Gr++;const r=["metaserver/static/js/core/i18n","react-intl",t.code];t.descriptor&&t.descriptor.id&&r.push(String(t.descriptor.id)),e.reportException({err:t,tags:r,severity:e.SEVERITY.CRITICAL})}(r);if(r.code===t.IntlErrorCode.MISSING_TRANSLATION)return wr(r.descriptor);const n=["metaserver/static/js/core/i18n","react-intl",r.code];e.reportException({err:r,tags:n,severity:e.SEVERITY.CRITICAL})},kr={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},jr="en";let xr=null;let Vr=null;function Xr(){return Vr||(Vr=Hr({locale:(xr||(xr=s.localeToBcp47LangTag(n.getPageLocale())),xr),defaultLocale:jr,messages:c,onError:Fr},kr)),Vr}let Kr=null;function Yr(){return Kr||(Kr={...Xr(),formatMessage:function(t,e){return Xr().formatMessage(t,e)}}),Kr}const Zr=Yr();t.Context=Lr,t.FormattedNumber=Mr,t.IntlProvider=Br,t.Provider=Sr,t.__rest=p,t.case_insensitive_comparator=function(t){return new window.Intl.Collator(s.localeToBcp47LangTag(n.getPageLocale()),{numeric:t}).compare},t.createIntl=Hr,t.defineMessage=function(t){return t},t.defineMessages=function(t){return t},t.getIntl=Yr,t.hoistStatics=Q,t.intl=Zr,t.reactIsExports=w,t.shallowEqual=_r,t.useIntl=Nr})); //# sourceMappingURL=c_core_i18n.js-vflc_7t9P.map //# debugId=e2e4fa0b-49d7-3c5d-88b4-37395ccb9399