LocalCDN-Firefox-Chrome-Brave/resources/react-intl/6.6.2/react-intl.iife.min.jsm

20 lines
69 KiB
JavaScript

/**
* Minified by jsDelivr using Terser v5.19.2.
* Original file: /npm/react-intl@6.6.2/react-intl.iife.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
var ReactIntl=(()=>{var e=Object.create,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,a=(e,t)=>function(){return t||(0,e[n(e)[0]])((t={exports:{}}).exports,t),t.exports},u=(e,o,a,u)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let s of n(o))i.call(e,s)||s===a||t(e,s,{get:()=>o[s],enumerable:!(u=r(o,s))||u.enumerable});return e},s=(r,n,i)=>(i=null!=r?e(o(r)):{},u(!n&&r&&r.__esModule?i:t(i,"default",{value:r,enumerable:!0}),r)),l=a({"../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(e){"use strict";(function(){var t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,d=t?Symbol.for("react.lazy"):60116,E=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:var m=e.type;switch(m){case l:case c:case o:case a:case i:case f:return m;default:var E=m&&m.$$typeof;switch(E){case s:case h:case d:case p:case u:return E;default:return t}}case n:return t}}}var D=l,T=c,F=s,A=u,B=r,_=h,C=o,H=d,S=p,P=n,N=a,I=i,R=f,L=!1;function w(e){return b(e)===c}e.AsyncMode=D,e.ConcurrentMode=T,e.ContextConsumer=F,e.ContextProvider=A,e.Element=B,e.ForwardRef=_,e.Fragment=C,e.Lazy=H,e.Memo=S,e.Portal=P,e.Profiler=N,e.StrictMode=I,e.Suspense=R,e.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),w(e)||b(e)===l},e.isConcurrentMode=w,e.isContextConsumer=function(e){return b(e)===s},e.isContextProvider=function(e){return b(e)===u},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},e.isForwardRef=function(e){return b(e)===h},e.isFragment=function(e){return b(e)===o},e.isLazy=function(e){return b(e)===d},e.isMemo=function(e){return b(e)===p},e.isPortal=function(e){return b(e)===n},e.isProfiler=function(e){return b(e)===a},e.isStrictMode=function(e){return b(e)===i},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===a||e===i||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===u||e.$$typeof===s||e.$$typeof===h||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===E)},e.typeOf=b})()}}),c=a({"../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/index.js"(e,t){"use strict";t.exports=l()}}),h=a({"../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){"use strict";var r=c(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function u(e){return r.isMemo(e)?i:a[e.$$typeof]||n}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=i;var s=Object.defineProperty,l=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=m(r);i&&i!==p&&e(t,i,n)}var a=l(r);h&&(a=a.concat(h(r)));for(var c=u(t),d=u(r),E=0;E<a.length;++E){var g=a[E];if(!(o[g]||n&&n[g]||d&&d[g]||c&&c[g])){var y=f(r,g);try{s(t,g,y)}catch(e){}}}}return t}}}),f={};((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(f,{FormattedDate:()=>Rr,FormattedDateParts:()=>Ur,FormattedDateTimeRange:()=>Sr,FormattedDisplayName:()=>Or,FormattedList:()=>Mr,FormattedListParts:()=>tr,FormattedMessage:()=>_r,FormattedNumber:()=>wr,FormattedNumberParts:()=>er,FormattedPlural:()=>Tr,FormattedRelativeTime:()=>vr,FormattedTime:()=>Lr,FormattedTimeParts:()=>Gr,IntlContext:()=>qt,IntlProvider:()=>cr,InvalidConfigError:()=>ot,MessageFormatError:()=>ut,MissingDataError:()=>it,MissingTranslationError:()=>st,RawIntlProvider:()=>zt,ReactIntlError:()=>rt,ReactIntlErrorCode:()=>Qe,UnsupportedFormatterError:()=>nt,createIntl:()=>sr,createIntlCache:()=>ht,defineMessage:()=>Nr,defineMessages:()=>Pr,injectIntl:()=>Jt,useIntl:()=>Qt});var 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 p(e,t){if("function"!=typeof t&&null!==t)throw new 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 d=function(){return d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d.apply(this,arguments)};function E(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function g(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var y=s(window.React),v=s(window.React),b=s(window.React),D=s(h()),T=s(window.React);["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"].map((function(e){return e.slice(e.indexOf("-")+1)}));function F(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}var A,B,_,C,H,S,P,N,I=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;new RegExp("^".concat(I.source)),new RegExp("".concat(I.source,"$")),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t}p(t,e)}(Error);function R(e){return e.type===H.literal}function L(e){return e.type===H.argument}function w(e){return e.type===H.number}function M(e){return e.type===H.date}function O(e){return e.type===H.time}function U(e){return e.type===H.select}function G(e){return e.type===H.plural}function x(e){return e.type===H.pound}function k(e){return e.type===H.tag}function j(e){return!(!e||"object"!=typeof e||e.type!==P.number)}function V(e){return!(!e||"object"!=typeof e||e.type!==P.dateTime)}(B=A||(A={})).startRange="startRange",B.shared="shared",B.endRange="endRange",(C=_||(_={}))[C.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",C[C.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",C[C.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",C[C.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",C[C.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",C[C.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",C[C.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",C[C.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",C[C.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",C[C.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",C[C.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",C[C.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",C[C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",C[C.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",C[C.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",C[C.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",C[C.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",C[C.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",C[C.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",C[C.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",C[C.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",C[C.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",C[C.INVALID_TAG=23]="INVALID_TAG",C[C.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",C[C.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",C[C.UNCLOSED_TAG=27]="UNCLOSED_TAG",(S=H||(H={}))[S.literal=0]="literal",S[S.argument=1]="argument",S[S.number=2]="number",S[S.date=3]="date",S[S.time=4]="time",S[S.select=5]="select",S[S.plural=6]="plural",S[S.pound=7]="pound",S[S.tag=8]="tag",(N=P||(P={}))[N.number=0]="number",N[N.dateTime=1]="dateTime";var X=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Z=/(?:[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 $(e){var t={};return e.replace(Z,(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 K=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Y=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,W=/^(@+)?(\+|#+)?[rs]?$/g,z=/(\*)(0+)|(#+)(0+)|(0+)/g,q=/^(0+)$/;function J(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(W,(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 Q(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 ee(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)),!q.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function te(e){var t=Q(e);return t||{}}function re(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=d(d(d({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return d(d({},e),te(t))}),{}));continue;case"engineering":t=d(d(d({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return d(d({},e),te(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.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(z,(function(e,r,n,o,i,a){if(r)t.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(q.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Y.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Y,(function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var i=o.options[0];"w"===i?t=d(d({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=d(d({},t),J(i)))}else if(W.test(o.stem))t=d(d({},t),J(o.stem));else{var a=Q(o.stem);a&&(t=d(d({},t),a));var u=ee(o.stem);u&&(t=d(d({},t),u))}}return t}var ne,oe={"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"],BI:["H","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"],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","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"],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","hB","h","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"],"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 ie(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),(oe[r||""]||oe[n||""]||oe["".concat(n,"-001")]||oe["001"])[0]}var ae=new RegExp("^".concat(X.source,"*")),ue=new RegExp("".concat(X.source,"*$"));function se(e,t){return{start:e,end:t}}var le=!!String.prototype.startsWith&&"_a".startsWith("a",1),ce=!!String.fromCodePoint,he=!!Object.fromEntries,fe=!!String.prototype.codePointAt,me=!!String.prototype.trimStart,pe=!!String.prototype.trimEnd,de=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ee=!0;try{Ee="a"===(null===(ne=Be("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===ne?void 0:ne[0])}catch(e){Ee=!1}var ge,ye,ve=le?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},be=ce?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[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},De=he?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t},Te=fe?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},Fe=me?function(e){return e.trimStart()}:function(e){return e.replace(ae,"")},Ae=pe?function(e){return e.trimEnd()}:function(e){return e.replace(ue,"")};function Be(e,t){return new RegExp(e,t)}Ee?(ye=Be("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),ge=function(e,t){var r;return ye.lastIndex=t,null!==(r=ye.exec(e)[1])&&void 0!==r?r:""}):ge=function(e,t){for(var r=[];;){var n=Te(e,t);if(void 0===n||He(n)||Se(n))break;r.push(n),t+=n>=65536?2:1}return be.apply(void 0,r)};var _e=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 o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(_.UNMATCHED_CLOSING_TAG,se(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Ce(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:H.pound,location:se(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:H.literal,value:"<".concat(n,"/>"),location:se(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ce(this.char()))return this.error(_.INVALID_TAG,se(a,this.clonePosition()));var u=this.clonePosition();return n!==this.parseTagName()?this.error(_.UNMATCHED_CLOSING_TAG,se(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:H.tag,value:n,children:i,location:se(r,this.clonePosition())},err:null}:this.error(_.INVALID_TAG,se(a,this.clonePosition())))}return this.error(_.UNCLOSED_TAG,se(r,this.clonePosition()))}return this.error(_.INVALID_TAG,se(r,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 o=this.tryParseQuote(t);if(o)n+=o;else{var i=this.tryParseUnquoted(e,t);if(i)n+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var u=se(r,this.clonePosition());return{val:{type:H.literal,value:n,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ce(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 be.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(),be(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,se(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(_.EMPTY_ARGUMENT,se(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(_.MALFORMED_ARGUMENT,se(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,se(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:H.argument,value:n,location:se(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,se(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(_.MALFORMED_ARGUMENT,se(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=ge(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:se(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(_.EXPECT_ARGUMENT_TYPE,se(i,u));case"number":case"date":case"time":this.bumpSpace();var s=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(m=Ae(y.val)).length)return this.error(_.EXPECT_ARGUMENT_STYLE,se(this.clonePosition(),this.clonePosition()));s={style:m,styleLocation:se(l,this.clonePosition())}}if((v=this.tryParseArgumentClose(n)).err)return v;var c=se(n,this.clonePosition());if(s&&ve(null==s?void 0:s.style,"::",0)){var h=Fe(s.style.slice(2));if("number"===a)return(y=this.parseNumberSkeletonFromString(h,s.styleLocation)).err?y:{val:{type:H.number,value:r,location:c,style:y.val},err:null};if(0===h.length)return this.error(_.EXPECT_DATE_TIME_SKELETON,c);var f=h;this.locale&&(f=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(1&i),u=i<2?1:3+(i>>1),s=ie(t);for("H"!=s&&"k"!=s||(u=0);u-- >0;)r+="a";for(;a-- >0;)r=s+r}else r+="J"===o?"H":o}return r}(h,this.locale));var m={type:P.dateTime,pattern:f,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?$(f):{}};return{val:{type:"date"===a?H.date:H.time,value:r,location:c,style:m},err:null}}return{val:{type:"number"===a?H.number:"date"===a?H.date:H.time,value:r,location:c,style:null!==(o=null==s?void 0:s.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS,se(p,d({},p)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===E.value){if(!this.bumpIf(":"))return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,se(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),E=this.parseIdentifierIfPossible(),g=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,a,t,E);if(b.err)return b;if((v=this.tryParseArgumentClose(n)).err)return v;var D=se(n,this.clonePosition());return"select"===a?{val:{type:H.select,value:r,options:De(b.val),location:D},err:null}:{val:{type:H.plural,value:r,options:De(b.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:D},err:null};default:return this.error(_.INVALID_ARGUMENT_TYPE,se(i,u))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,se(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(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,se(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(K).filter((function(e){return e.length>0}));r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),u=0,s=a;u<s.length;u++)if(0===s[u].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(_.INVALID_NUMBER_SKELETON,t)}return{val:{type:P.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?re(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o,i=!1,a=[],u=new Set,s=n.value,l=n.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR,_.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=se(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(u.has(s))return this.error("select"===t?_.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?_.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,se(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,r);if(m.err)return m;var p=this.tryParseArgumentClose(f);if(p.err)return p;a.push([s,{value:m.val,location:se(f,this.clonePosition())}]),u.add(s),this.bumpSpace(),s=(o=this.parseIdentifierIfPossible()).value,l=o.location}return 0===a.length?this.error("select"===t?_.EXPECT_SELECT_ARGUMENT_SELECTOR:_.EXPECT_PLURAL_ARGUMENT_SELECTOR,se(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(_.MISSING_OTHER_CLAUSE,se(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 o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var u=se(n,this.clonePosition());return o?de(i*=r)?{val:i,err:null}:this.error(t,u):this.error(e,u)},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=Te(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(ve(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()&&He(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 Ce(e){return e>=97&&e<=122||e>=65&&e<=90}function He(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Se(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 Pe(e){e.forEach((function(e){if(delete e.location,U(e)||G(e))for(var t in e.options)delete e.options[t].location,Pe(e.options[t].value);else w(e)&&j(e.style)||(M(e)||O(e))&&V(e.style)?delete e.style.location:k(e)&&Pe(e.children)}))}function Ne(e,t){void 0===t&&(t={}),t=d({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new _e(e,t).parse();if(r.err){var n=SyntaxError(_[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||Pe(r.val),r.val}function Ie(e,t){var r=t&&t.cache?t.cache:ke,n=t&&t.serializer?t.serializer:Oe;return(t&&t.strategy?t.strategy:Me)(e,{cache:r,serializer:n})}function Re(e,t,r,n){var o,i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n),a=t.get(i);return void 0===a&&(a=e.call(this,n),t.set(i,a)),a}function Le(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function we(e,t,r,n,o){return r.bind(t,e,n,o)}function Me(e,t){return we(e,this,1===e.length?Re:Le,t.cache.create(),t.serializer)}var Oe=function(){return JSON.stringify(arguments)};function Ue(){this.cache=Object.create(null)}Ue.prototype.get=function(e){return this.cache[e]},Ue.prototype.set=function(e,t){this.cache[e]=t};var Ge,xe,ke={create:function(){return new Ue}},je={variadic:function(e,t){return we(e,this,Le,t.cache.create(),t.serializer)},monadic:function(e,t){return we(e,this,Re,t.cache.create(),t.serializer)}};(xe=Ge||(Ge={})).MISSING_VALUE="MISSING_VALUE",xe.INVALID_VALUE="INVALID_VALUE",xe.MISSING_INTL_API="MISSING_INTL_API";var Ve,Xe,Ze=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return p(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),$e=function(e){function t(t,r,n,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Ge.INVALID_VALUE,o)||this}return p(t,e),t}(Ze),Ke=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 p(t,e),t}(Ze),Ye=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 p(t,e),t}(Ze);function We(e){return"function"==typeof e}function ze(e,t,r,n,o,i,a){if(1===e.length&&R(e[0]))return[{type:Ve.literal,value:e[0].value}];for(var u=[],s=0,l=e;s<l.length;s++){var c=l[s];if(R(c))u.push({type:Ve.literal,value:c.value});else if(x(c))"number"==typeof i&&u.push({type:Ve.literal,value:r.getNumberFormat(t).format(i)});else{var h=c.value;if(!o||!(h in o))throw new Ye(h,a);var f=o[h];if(L(c))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),u.push({type:"string"==typeof f?Ve.literal:Ve.object,value:f});else if(M(c)){var m="string"==typeof c.style?n.date[c.style]:V(c.style)?c.style.parsedOptions:void 0;u.push({type:Ve.literal,value:r.getDateTimeFormat(t,m).format(f)})}else if(O(c)){m="string"==typeof c.style?n.time[c.style]:V(c.style)?c.style.parsedOptions:n.time.medium;u.push({type:Ve.literal,value:r.getDateTimeFormat(t,m).format(f)})}else if(w(c)){(m="string"==typeof c.style?n.number[c.style]:j(c.style)?c.style.parsedOptions:void 0)&&m.scale&&(f*=m.scale||1),u.push({type:Ve.literal,value:r.getNumberFormat(t,m).format(f)})}else{if(k(c)){var p=c.children,d=c.value,E=o[d];if(!We(E))throw new Ke(d,"function",a);var g=E(ze(p,t,r,n,o,i).map((function(e){return e.value})));Array.isArray(g)||(g=[g]),u.push.apply(u,g.map((function(e){return{type:"string"==typeof e?Ve.literal:Ve.object,value:e}})))}if(U(c)){if(!(y=c.options[f]||c.options.other))throw new $e(c.value,f,Object.keys(c.options),a);u.push.apply(u,ze(y.value,t,r,n,o))}else if(G(c)){var y;if(!(y=c.options["=".concat(f)])){if(!Intl.PluralRules)throw new Ze('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ge.MISSING_INTL_API,a);var v=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));y=c.options[v]||c.options.other}if(!y)throw new $e(c.value,f,Object.keys(c.options),a);u.push.apply(u,ze(y.value,t,r,n,o,f-(c.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===Ve.literal&&t.type===Ve.literal?r.value+=t.value:e.push(t),e}),[])}(u)}function qe(e,t){return t?Object.keys(e).reduce((function(r,n){var o,i;return r[n]=(o=e[n],(i=t[n])?d(d(d({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=d(d({},o[t]),i[t]||{}),e}),{})):o),r}),d({},e)):e}function Je(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}(Xe=Ve||(Ve={}))[Xe.literal=0]="literal",Xe[Xe.object=1]="object";var Qe,et,tt=function(){function e(t,r,n,o){var i,a=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===Ve.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 ze(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=a.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var u=o||{},s=(u.formatters,E(u,["formatters"]));this.ast=e.__parse(t,d(d({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=qe(e.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,g([void 0],t,!1)))}),{cache:Je(i.number),strategy:je.variadic}),getDateTimeFormat:Ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,g([void 0],t,!1)))}),{cache:Je(i.dateTime),strategy:je.variadic}),getPluralRules:Ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,g([void 0],t,!1)))}),{cache:Je(i.pluralRules),strategy:je.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=Ne,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}();(et=Qe||(Qe={})).FORMAT_ERROR="FORMAT_ERROR",et.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",et.INVALID_CONFIG="INVALID_CONFIG",et.MISSING_DATA="MISSING_DATA",et.MISSING_TRANSLATION="MISSING_TRANSLATION";var rt=function(e){function t(r,n,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=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(i,t),i}return p(t,e),t}(Error),nt=function(e){function t(t,r){return e.call(this,Qe.UNSUPPORTED_FORMATTER,t,r)||this}return p(t,e),t}(rt),ot=function(e){function t(t,r){return e.call(this,Qe.INVALID_CONFIG,t,r)||this}return p(t,e),t}(rt),it=function(e){function t(t,r){return e.call(this,Qe.MISSING_DATA,t,r)||this}return p(t,e),t}(rt),at=function(e){function t(t,r,n){var o=e.call(this,Qe.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),n)||this;return o.locale=r,o}return p(t,e),t}(rt),ut=function(e){function t(t,r,n,o){var i=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,o)||this;return i.descriptor=n,i.locale=r,i}return p(t,e),t}(at),st=function(e){function t(t,r){var n=e.call(this,Qe.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 p(t,e),t}(rt);function lt(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 ct={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){console.error(e)},onWarn:function(e){console.warn(e)}};function ht(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function ft(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function mt(e,t,r,n){var o,i=e&&e[t];if(i&&(o=i[r]),o)return o;n(new nt("No ".concat(t," format named: ").concat(r)))}function pt(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=d({timeZone:t},e[n]),r}),{})}function dt(e,t){return Object.keys(d(d({},e),t)).reduce((function(r,n){return r[n]=d(d({},e[n]||{}),t[n]||{}),r}),{})}function Et(e,t){if(!t)return e;var r=tt.formats;return d(d(d({},r),e),{date:dt(pt(r.date,t),pt(e.date||{},t)),time:dt(pt(r.time,t),pt(e.time||{},t))})}var gt=function(e,t,r,n,o){var i=e.locale,a=e.formats,u=e.messages,s=e.defaultLocale,l=e.defaultFormats,c=e.fallbackOnEmptyString,h=e.onError,f=e.timeZone,m=e.defaultRichTextElements;void 0===r&&(r={id:""});var p=r.id,E=r.defaultMessage;F(!!p,"[@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(p),y=u&&Object.prototype.hasOwnProperty.call(u,g)&&u[g];if(Array.isArray(y)&&1===y.length&&y[0].type===H.literal)return y[0].value;if(!n&&y&&"string"==typeof y&&!m)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=d(d({},m),n||{}),a=Et(a,f),l=Et(l,f),!y){if(!1===c&&""===y)return y;if((!E||i&&i.toLowerCase()!==s.toLowerCase())&&h(new st(r,i)),E)try{return t.getMessageFormat(E,s,l,o).format(n)}catch(e){return h(new ut('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),i,r,e)),"string"==typeof E?E:g}return g}try{return t.getMessageFormat(y,i,a,d({formatters:t},o||{})).format(n)}catch(e){h(new ut('Error formatting message: "'.concat(g,'", using ').concat(E?"default message":"id"," as fallback."),i,r,e))}if(E)try{return t.getMessageFormat(E,s,l,o).format(n)}catch(e){h(new ut('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),i,r,e))}return"string"==typeof y?y:"string"==typeof E?E:g},yt=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function vt(e,t,r,n){var o=e.locale,i=e.formats,a=e.onError,u=e.timeZone;void 0===n&&(n={});var s=n.format,l=d(d({},u&&{timeZone:u}),s&&mt(i,t,s,a)),c=lt(n,yt,l);return"time"!==t||c.hour||c.minute||c.second||c.timeStyle||c.dateStyle||(c=d(d({},c),{hour:"numeric",minute:"numeric"})),r(o,c)}function bt(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,u="string"==typeof o?new Date(o||0):o;try{return vt(e,"date",t,a).format(u)}catch(t){e.onError(new at("Error formatting date.",e.locale,t))}return String(u)}function Dt(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,u="string"==typeof o?new Date(o||0):o;try{return vt(e,"time",t,a).format(u)}catch(t){e.onError(new at("Error formatting time.",e.locale,t))}return String(u)}function Tt(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=r[2],u=void 0===a?{}:a,s=e.timeZone,l=e.locale,c=e.onError,h=lt(u,yt,s?{timeZone:s}:{});try{return t(l,h).formatRange(o,i)}catch(t){c(new at("Error formatting date time range.",e.locale,t))}return String(o)}function Ft(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,u="string"==typeof o?new Date(o||0):o;try{return vt(e,"date",t,a).formatToParts(u)}catch(t){e.onError(new at("Error formatting date.",e.locale,t))}return[]}function At(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,u="string"==typeof o?new Date(o||0):o;try{return vt(e,"time",t,a).formatToParts(u)}catch(t){e.onError(new at("Error formatting time.",e.locale,t))}return[]}var Bt=["style","type","fallback","languageDisplay"];function _t(e,t,r,n){var o=e.locale,i=e.onError;Intl.DisplayNames||i(new Ze('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',Ge.MISSING_INTL_API));var a=lt(n,Bt);try{return t(o,a).of(r)}catch(e){i(new at("Error formatting display name.",o,e))}}var Ct=["type","style"],Ht=Date.now();function St(e,t,r,n){void 0===n&&(n={});var o=Pt(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===o.length?o[0]:0===o.length?"":o}function Pt(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.ListFormat||i(new Ze('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',Ge.MISSING_INTL_API));var a=lt(n,Ct);try{var u={},s=r.map((function(e,t){if("object"==typeof e){var r=function(e){return"".concat(Ht,"_").concat(e,"_").concat(Ht)}(t);return u[r]=e,r}return String(e)}));return t(o,a).formatToParts(s).map((function(e){return"literal"===e.type?e:d(d({},e),{value:u[e.value]||e.value})}))}catch(e){i(new at("Error formatting list.",o,e))}return r}var Nt=["type"];function It(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.PluralRules||i(new Ze('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ge.MISSING_INTL_API));var a=lt(n,Nt);try{return t(o,a).select(r)}catch(e){i(new at("Error formatting plural.",o,e))}return"other"}var Rt=["numeric","style"];function Lt(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new Ze('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,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,u=!!a&&mt(o,"relative",a,i)||{};return t(n,lt(r,Rt,u))}(e,t,o).format(r,n)}catch(t){e.onError(new at("Error formatting relative time.",e.locale,t))}return String(r)}var wt=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Mt(e,t,r){var n=e.locale,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,u=a&&mt(o,"number",a,i)||{};return t(n,lt(r,wt,u))}function Ot(e,t,r,n){void 0===n&&(n={});try{return Mt(e,t,n).format(r)}catch(t){e.onError(new at("Error formatting number.",e.locale,t))}return String(r)}function Ut(e,t,r,n){void 0===n&&(n={});try{return Mt(e,t,n).formatToParts(r)}catch(t){e.onError(new at("Error formatting number.",e.locale,t))}return[]}function Gt(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.io/docs/getting-started/message-distribution')}function xt(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=Ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,g([void 0],t,!1)))}),{cache:ft(e.dateTime),strategy:je.variadic}),i=Ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,g([void 0],t,!1)))}),{cache:ft(e.number),strategy:je.variadic}),a=Ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,g([void 0],t,!1)))}),{cache:ft(e.pluralRules),strategy:je.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:Ie((function(e,t,r,n){return new tt(e,t,r,d({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:a}},n||{}))}),{cache:ft(e.message),strategy:je.variadic}),getRelativeTimeFormat:Ie((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,g([void 0],e,!1)))}),{cache:ft(e.relativeTime),strategy:je.variadic}),getPluralRules:a,getListFormat:Ie((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,g([void 0],e,!1)))}),{cache:ft(e.list),strategy:je.variadic}),getDisplayNames:Ie((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,g([void 0],e,!1)))}),{cache:ft(e.displayNames),strategy:je.variadic})}}(t),n=d(d({},ct),e),o=n.locale,i=n.defaultLocale,a=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new it('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new it('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new ot('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),Gt(n),d(d({},n),{formatters:r,formatNumber:Ot.bind(null,n,r.getNumberFormat),formatNumberToParts:Ut.bind(null,n,r.getNumberFormat),formatRelativeTime:Lt.bind(null,n,r.getRelativeTimeFormat),formatDate:bt.bind(null,n,r.getDateTimeFormat),formatDateToParts:Ft.bind(null,n,r.getDateTimeFormat),formatTime:Dt.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:Tt.bind(null,n,r.getDateTimeFormat),formatTimeToParts:At.bind(null,n,r.getDateTimeFormat),formatPlural:It.bind(null,n,r.getPluralRules),formatMessage:gt.bind(null,n,r),$t:gt.bind(null,n,r),formatList:St.bind(null,n,r.getListFormat),formatListToParts:Pt.bind(null,n,r.getListFormat),formatDisplayName:_t.bind(null,n,r.getDisplayNames)})}function kt(e){F(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var jt=d(d({},ct),{textComponent:T.Fragment});function Vt(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var i=0;i<o;i++){var a=r[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}var Xt,Zt,$t,Kt,Yt="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?b.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=b.createContext(null)),Wt=Yt.Consumer,zt=Yt.Provider,qt=Yt;function Jt(e,t){var r,n=t||{},o=n.intlPropName,i=void 0===o?"intl":o,a=n.forwardRef,u=void 0!==a&&a,s=n.enforceContext,l=void 0===s||s,c=function(t){return b.createElement(Wt,null,(function(r){var n;l&&kt(r);var o=((n={})[i]=r,n);return b.createElement(e,d({},t,o,{ref:u?t.forwardedRef:null}))}))};return c.displayName="injectIntl(".concat((r=e).displayName||r.name||"Component",")"),c.WrappedComponent=e,u?(0,D.default)(b.forwardRef((function(e,t){return b.createElement(c,d({},e,{forwardedRef:t}))})),e):(0,D.default)(c,e)}function Qt(){var e=v.useContext(qt);return kt(e),e}(Zt=Xt||(Xt={})).formatDate="FormattedDate",Zt.formatTime="FormattedTime",Zt.formatNumber="FormattedNumber",Zt.formatList="FormattedList",Zt.formatDisplayName="FormattedDisplayName",(Kt=$t||($t={})).formatDate="FormattedDateParts",Kt.formatTime="FormattedTimeParts",Kt.formatNumber="FormattedNumberParts",Kt.formatList="FormattedListParts";var er=function(e){var t=Qt(),r=e.value,n=e.children,o=E(e,["value","children"]);return n(t.formatNumberToParts(r,o))};er.displayName="FormattedNumberParts";var tr=function(e){var t=Qt(),r=e.value,n=e.children,o=E(e,["value","children"]);return n(t.formatListToParts(r,o))};function rr(e){var t=function(t){var r=Qt(),n=t.value,o=t.children,i=E(t,["value","children"]),a="string"==typeof n?new Date(n||0):n;return o("formatDate"===e?r.formatDateToParts(a,i):r.formatTimeToParts(a,i))};return t.displayName=$t[e],t}function nr(e){var t=function(t){var r=Qt(),n=t.value,o=t.children,i=E(t,["value","children"]),a=r[e](n,i);if("function"==typeof o)return o(a);var u=r.textComponent||y.Fragment;return y.createElement(u,null,a)};return t.displayName=Xt[e],t}er.displayName="FormattedNumberParts";var or=s(window.React),ir=s(window.React);function ar(e){return e?Object.keys(e).reduce((function(t,r){var n,o=e[r];return t[r]=We(o)?(n=o,function(e){return n(T.Children.toArray(e))}):o,t}),{}):e}var ur=function(e,t,r,n){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=ar(n),u=gt.apply(void 0,g([e,t,r,a],o,!1));return Array.isArray(u)?ir.Children.toArray(u):u},sr=function(e,t){var r=e.defaultRichTextElements,n=E(e,["defaultRichTextElements"]),o=ar(r),i=xt(d(d(d({},jt),n),{defaultRichTextElements:o}),t),a={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o};return d(d({},i),{formatMessage:ur.bind(null,a,i.formatters),$t:ur.bind(null,a,i.formatters)})};function lr(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}}var cr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:sr(lr(t.props),t.cache),prevConfig:lr(t.props)},t}return p(t,e),t.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=lr(e);return Vt(r,o)?null:{intl:sr(o,n),prevConfig:o}},t.prototype.render=function(){return kt(this.state.intl),or.createElement(zt,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=jt,t}(or.PureComponent),hr=s(window.React),fr=3600;function mr(e){var t=Math.abs(e);return t<60?"second":t<fr?"minute":t<86400?"hour":"day"}function pr(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return fr;default:return 86400}}var dr=["second","minute","hour"];function Er(e){return void 0===e&&(e="second"),dr.indexOf(e)>-1}var gr=function(e){var t=Qt(),r=t.formatRelativeTime,n=t.textComponent,o=e.children,i=r(e.value||0,e.unit,E(e,["children","value","unit"]));return"function"==typeof o?o(i):n?hr.createElement(n,null,i):hr.createElement(hr.Fragment,null,i)},yr=function(e){var t=e.value,r=void 0===t?0:t,n=e.unit,o=void 0===n?"second":n,i=e.updateIntervalInSeconds,a=E(e,["value","unit","updateIntervalInSeconds"]);F(!i||!(!i||!Er(o)),"Cannot schedule update with unit longer than hour");var u,s=hr.useState(),l=s[0],c=s[1],h=hr.useState(0),f=h[0],m=h[1],p=hr.useState(0),g=p[0],y=p[1];o===l&&r===f||(m(r||0),c(o),y(Er(o)?function(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return e*fr}}(r,o):0)),hr.useEffect((function(){function e(){clearTimeout(u)}if(e(),!i||!Er(o))return e;var t=g-i,r=mr(t);if("day"===r)return e;var n=pr(r),a=t-t%n,s=a>=g?a-n:a,l=Math.abs(s-g);return g!==s&&(u=setTimeout((function(){return y(s)}),1e3*l)),e}),[g,i,o]);var v=r||0,b=o;if(Er(o)&&"number"==typeof g&&i){var D=pr(b=mr(g));v=Math.round(g/D)}return hr.createElement(gr,d({value:v,unit:b},a))};yr.displayName="FormattedRelativeTime";var vr=yr,br=s(window.React),Dr=function(e){var t=Qt(),r=t.formatPlural,n=t.textComponent,o=e.value,i=e.other,a=e.children,u=e[r(o,e)]||i;return"function"==typeof a?a(u):n?br.createElement(n,null,u):u};Dr.displayName="FormattedPlural";var Tr=Dr,Fr=s(window.React);function Ar(e){var t=Qt(),r=t.formatMessage,n=t.textComponent,o=void 0===n?Fr.Fragment:n,i=e.id,a=e.description,u=e.defaultMessage,s=e.values,l=e.children,c=e.tagName,h=void 0===c?o:c,f=r({id:i,description:a,defaultMessage:u},s,{ignoreTag:e.ignoreTag});return"function"==typeof l?l(Array.isArray(f)?f:[f]):h?Fr.createElement(h,null,Fr.Children.toArray(f)):Fr.createElement(Fr.Fragment,null,f)}Ar.displayName="FormattedMessage";var Br=Fr.memo(Ar,(function(e,t){var r=e.values,n=E(e,["values"]),o=t.values,i=E(t,["values"]);return Vt(o,r)&&Vt(n,i)}));Br.displayName="MemoizedFormattedMessage";var _r=Br,Cr=s(window.React),Hr=function(e){var t=Qt(),r=e.from,n=e.to,o=e.children,i=E(e,["from","to","children"]),a=t.formatDateTimeRange(r,n,i);if("function"==typeof o)return o(a);var u=t.textComponent||Cr.Fragment;return Cr.createElement(u,null,a)};Hr.displayName="FormattedDateTimeRange";var Sr=Hr;function Pr(e){return e}function Nr(e){return e}var Ir,Rr=nr("formatDate"),Lr=nr("formatTime"),wr=nr("formatNumber"),Mr=nr("formatList"),Or=nr("formatDisplayName"),Ur=rr("formatDate"),Gr=rr("formatTime");return Ir=f,u(t({},"__esModule",{value:!0}),Ir)})();
/*! Bundled license information:
react-is/cjs/react-is.development.js:
(** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
*/
//# sourceMappingURL=/sm/2454da5caf3f41d8a0ee335601a5297e9de6c4da229ebc33299aa38e5a1d59d5.map