- Redesign KPI cards to look like stock tickers - Add ticker ID (e.g. ВЫРУЧК:KPI, AOV:KPI) - Arrow up/down SVG indicators for change direction - Mini trend-line (50px) inside each card - Change color: green (#16a34a) for up, red (#e21d1d) for down - Remove sparkline background area, keep only line - Fix duplicate arrowUp variable naming (bArrowUp/bArrowDown/bArrowNeutral)
1 line
69 KiB
JavaScript
1 line
69 KiB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1860],{67917:function(e,t,r){"use strict";r.d(t,{ik:function(){return o},sk:function(){return n}});let n=!1,i=/\s+/gm;function o(e){return e.replace(i," ")}},7438:function(e,t,r){"use strict";r.d(t,{z:function(){return u}});var n=r(67294),i=r(8599),o=r(77536);r(74766);var s={"roundedButton-phoenix":"media-ui-RoundedButton_roundedButton-phoenix-fI40QjV8msE-",small:"media-ui-RoundedButton_small-4uGdyeL41YA-",default:"media-ui-RoundedButton_default-KSbLMQQUxEk-",hasIcon:"media-ui-RoundedButton_hasIcon-pA-fzIwcl9s-",large:"media-ui-RoundedButton_large-Ylf54m9mmF8-",light:"media-ui-RoundedButton_light-ecL1xA3tWQ0-",outline:"media-ui-RoundedButton_outline-L-sLv9ivvaE-",fill:"media-ui-RoundedButton_fill-a2vFCr4YQIA-",dark:"media-ui-RoundedButton_dark-4tzyzSMv4yQ-",smallIcon:"media-ui-RoundedButton_smallIcon-x1cG8-ig6mI-",roundedButton___phoenix:"media-ui-RoundedButton_roundedButton-phoenix-fI40QjV8msE-",_default:"media-ui-RoundedButton_default-KSbLMQQUxEk-"};let u=n.forwardRef(function(e,t){let{children:r,name:u="roundedButton",version:c="phoenix",colorMode:l="light",appearance:h="outline",size:f="default",...m}=e,d=!!(e.Icon&&"none"!==e.iconPosition),p=(0,o.Sh)([s["roundedButton-".concat(c)],s[l],s[h],s[f],s.smallIcon,{[s.hasIcon]:d}],{unstyled:e.unstyled,className:e.className,name:e.name});return n.createElement(i.zx,{...m,version:c,className:p,ref:t,name:u},r)})},83524:function(e,t,r){"use strict";r.d(t,{x:function(){return u}});var n=r(67294),i=r(67673),o=r(41780),s=r(77536);r(82793);let u=n.forwardRef(function(e,t){let{className:r,name:u="toast-success",open:c,text:l,autoHideDuration:h,unstyled:f,inline:m=!1,onClose:d}=e,p=(0,s.Sh)([r,"media-ui-ToastSuccess_toastSuccess-nvHCoX8SI28-"],{...e,unstyled:f,name:u});return n.createElement(o.F,{autoHideDuration:h,Icon:n.createElement(i.yv,{className:"media-ui-ToastSuccess_toastSuccessIcon-fhF5NBkNQpE-"}),className:p,maxSize:"full",name:u,open:c,onClose:d,position:{horizontal:"center",vertical:"bottom"},ref:t,variant:"message",inline:m},l)})},90354:function(e,t,r){"use strict";r.d(t,{Y:function(){return t6}});var n,i,o,s,u,c=r(67294),l=r(99104),h=r(24229),f=r(70390),m=r(77536),d=r(12065),p=r(60006),g=r(93075),v=r(1371),E=r(29545);r(38688);var b={wrapper:"media-ui-Overlay_wrapper-IzUR8y5HyZw-",hiddenWrapper:"media-ui-Overlay_hiddenWrapper-UuMYm-kTyTc-",header:"media-ui-Overlay_header--SJNqPwUJfI-",headerWrapper:"media-ui-Overlay_headerWrapper-9ZxEK6l7q3g-",headerIcon:"media-ui-Overlay_headerIcon-6QQ8n-t6BV8-",withIcon:"media-ui-Overlay_withIcon-amCI8aiikyw-",mobileAnchor:"media-ui-Overlay_mobileAnchor-4PJw-CbaDDU-",dismissOverlay:"media-ui-Overlay_dismissOverlay-0Pc7hsD-ETc-",mobileOverlayWrapper:"media-ui-Overlay_mobileOverlayWrapper-fKy8NlpcYaU-",body:"media-ui-Overlay_body-cqXHjm-p6N4-"},y=function(){return(y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function T(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}"function"==typeof SuppressedError&&SuppressedError;var _="right-scroll-bar-position",S="width-before-scroll-bar",H=(void 0===eV&&(eV={}),(void 0===eX&&(eX=function(e){return e}),eW=[],eY=!1,eK={read:function(){if(eY)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return eW.length?eW[eW.length-1]:null},useMedium:function(e){var t=eX(e,eY);return eW.push(t),function(){eW=eW.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(eY=!0;eW.length;){var t=eW;eW=[],t.forEach(e)}eW={push:function(t){return e(t)},filter:function(){return eW}}},assignMedium:function(e){eY=!0;var t=[];if(eW.length){var r=eW;eW=[],r.forEach(e),t=eW}var n=function(){var r=t;t=[],r.forEach(e)},i=function(){return Promise.resolve().then(n)};i(),eW={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),eW}}}}).options=y({async:!0,ssr:!1},eV),eK),B=function(){},I=c.forwardRef(function(e,t){var r,n,i,o=c.useRef(null),s=c.useState({onScrollCapture:B,onWheelCapture:B,onTouchMoveCapture:B}),u=s[0],l=s[1],h=e.forwardProps,f=e.children,m=e.className,d=e.removeScrollBar,p=e.enabled,g=e.shards,v=e.sideCar,E=e.noIsolation,b=e.inert,_=e.allowPinchZoom,S=e.as,I=e.gapMode,N=T(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=(r=[o,t],n=function(e){return r.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,c.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(a){var e=i.value;e!==a&&(i.value=a,i.callback(a,e))}}}})[0]).callback=n,i.facade),L=y(y({},N),u);return c.createElement(c.Fragment,null,p&&c.createElement(v,{sideCar:H,removeScrollBar:d,shards:g,noIsolation:E,inert:b,setCallbacks:l,allowPinchZoom:!!_,lockRef:o,gapMode:I}),h?c.cloneElement(c.Children.only(f),y(y({},L),{ref:A})):c.createElement(void 0===S?"div":S,y({},L,{className:m,ref:A}),f))});I.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},I.classNames={fullWidth:S,zeroRight:_};var N=!1;try{var A=Object.defineProperty({},"passive",{get:function(){return N=!0,!0}});window.addEventListener("test",A,A),window.removeEventListener("test",A,A)}catch(e){N=!1}var L=!!N&&{passive:!1},P=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[t])},R=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),M(e,n)){var i=w(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},M=function(e,t){return"v"===e?P(t,"overflowY"):P(t,"overflowX")},w=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},C=function(e,t,r,n,i){var o,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),u=s*n,c=r.target,l=t.contains(c),h=!1,f=u>0,m=0,d=0;do{var p=w(e,c),g=p[0],v=p[1]-p[2]-s*g;(g||v)&&M(e,c)&&(m+=v,d+=g),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(f&&(i&&1>Math.abs(m)||!i&&u>m)||!f&&(i&&1>Math.abs(d)||!i&&-u>d))&&(h=!0),h},O=function(){var e=0,t=null;return{add:function(n){var i,o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=eZ||r.nc;return t&&e.setAttribute("nonce",t),e}())&&((i=t).styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)),e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},D=function(){var e=O();return function(t,r){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},U=function(){var e=D();return function(t){return e(t.styles,t.dynamic),null}},F=function(e){return parseInt(e||"",10)||0},G=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[F(r),F(n),F(i)]},k=function(e){void 0===e&&(e="margin");var t=G(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},x=U(),j=function(e,t,r,n){var i=e.left,o=e.top,s=e.right,u=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(u,"px ").concat(n,";\n }\n body {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(u,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(_," {\n right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(S," {\n margin-right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(_," .").concat(_," {\n right: 0 ").concat(n,";\n }\n \n .").concat(S," .").concat(S," {\n margin-right: 0 ").concat(n,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},V=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n,o=c.useMemo(function(){return k(i)},[i]);return c.createElement(x,{styles:j(o,!t,i,r?"":"!important")})},X=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},W=function(e){return[e.deltaX,e.deltaY]},Y=function(e){return e&&"current"in e?e.current:e},K=0,Z=[],z=function(e){var t=e.sideCar,r=T(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return c.createElement(n,y({},r))};z.isSideCarExport=!0;var Q=(ez=function(e){var t=c.useRef([]),r=c.useRef([0,0]),n=c.useRef(),i=c.useState(K++)[0],o=c.useState(U)[0],s=c.useRef(e);c.useEffect(function(){s.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(Y),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,o=X(e),u=r.current,c="deltaX"in e?e.deltaX:u[0]-o[0],l="deltaY"in e?e.deltaY:u[1]-o[1],h=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===h.type)return!1;var m=R(f,h);if(!m)return!0;if(m?i=f:(i="v"===f?"h":"v",m=R(f,h)),!m)return!1;if(!n.current&&"changedTouches"in e&&(c||l)&&(n.current=i),!i)return!0;var d=n.current||i;return C(d,t,e,"h"===d?c:l,!0)},[]),l=c.useCallback(function(e){if(!(!Z.length||Z[Z.length-1]!==o)){var r="deltaY"in e?W(e):X(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(s.current.shards||[]).map(Y).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?u(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),h=c.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),f=c.useCallback(function(e){r.current=X(e),n.current=void 0},[]),m=c.useCallback(function(t){h(t.type,W(t),t.target,u(t,e.lockRef.current))},[]),d=c.useCallback(function(t){h(t.type,X(t),t.target,u(t,e.lockRef.current))},[]);c.useEffect(function(){return Z.push(o),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:d}),document.addEventListener("wheel",l,L),document.addEventListener("touchmove",l,L),document.addEventListener("touchstart",f,L),function(){Z=Z.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,L),document.removeEventListener("touchmove",l,L),document.removeEventListener("touchstart",f,L)}},[]);var p=e.removeScrollBar,g=e.inert;return c.createElement(c.Fragment,null,g?c.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?c.createElement(V,{gapMode:e.gapMode}):null)},H.useMedium(ez),z),J=c.forwardRef(function(e,t){return c.createElement(I,y({},e,{ref:t,sideCar:Q}))});J.classNames=I.classNames;let q=c.forwardRef(function(e,t){var r;let{headerText:n,onExit:i,children:o,className:s,Icon:u,anchorElementRef:l,placement:h,usePortal:y}=e,T=[b.headerWrapper,u&&b.withIcon],_=(0,c.useRef)(null),[S]=(0,c.useState)("overlay-".concat((0,m.Mc)())),[H,B]=(0,c.useState)(),[I,N]=(0,c.useState)(),[A,L]=(0,c.useState)(!1),[P,R]=(0,c.useState)((null===(r=window)||void 0===r?void 0:r.innerWidth)||0),M=(0,c.useCallback)(()=>{window.innerWidth<768?(N("bottom-start"),setTimeout(()=>{i()},150)):i()},[N,i]),w=(0,c.useCallback)(e=>{var t,r;let n=!(null===(t=document.getElementById(S))||void 0===t?void 0:t.contains(e.target));(null==l?void 0:null===(r=l.current)||void 0===r?void 0:r.contains(e.target))||!n||M()},[M,S,l]),C=(0,c.useCallback)(()=>{window.innerWidth<620?(B(null==_?void 0:_.current),N("bottom-start"),L(!0),setTimeout(()=>{N("top-start"),L(!1)},50)):(B(null==l?void 0:l.current),N(h))},[_,l,B,N]);(0,c.useEffect)(()=>(window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)),[_,l]),(0,c.useEffect)(C,[]),(0,c.useEffect)(()=>(window.addEventListener("click",w),()=>window.removeEventListener("click",w)),[w]),(0,c.useLayoutEffect)(()=>{R(window.innerWidth)},[window.innerWidth]);let{refs:O,floatingStyles:D,isPositioned:U}=(0,g.YF)({elements:{reference:H},open:!0,placement:I,middleware:[P>=620&&(0,v.cv)(2),(0,v.Cp)({strategy:"referenceHidden",padding:10}),(0,v.Cp)({strategy:"escaped",padding:10})],whileElementsMounted:E.Me}),F=c.createElement(c.Fragment,null,c.createElement("div",{className:b.mobileOverlayWrapper,onClick:M}),c.createElement("div",{id:S,ref:O.setFloating,className:(0,m.Sh)([s,b.wrapper,(A||!U)&&b.hiddenWrapper]),style:D},c.createElement("div",{ref:t,className:(0,m.Sh)(T)},u&&c.createElement("div",{className:b.headerIcon},u),c.createElement(d.x,{className:b.header,as:"h6"},n),c.createElement(p.h,{className:b.dismissOverlay,onClick:M},c.createElement(f.h6,null))),c.createElement("div",{className:b.body},o)));return c.createElement(J,{enabled:P<620},c.createElement("div",{ref:_,className:b.mobileAnchor}),y?c.createElement(g.ll,null,F):F)});r(39168);var $={buttonContainer:"media-ui-SubscriberOnlyBenefitOverlay_buttonContainer-DDC1QDjKl7I-",signInButton:"media-ui-SubscriberOnlyBenefitOverlay_signInButton-nVQb7fZGgJo-",defaultText:"media-ui-SubscriberOnlyBenefitOverlay_defaultText-VWW2YBn6NsM-"},ee={context:4775,"media-ui-subscriptions_subscribe":8246492,"media-ui-subscriptions_signIn":8239192,"media-ui-subscriptions_upgrade":8246489,"media-ui-subscriptions_subscriberBenefit":8246486,"media-ui-subscriptions_subscriberOnlyFeature":8246487},et=r(86896),er=r(64618),en=r(70700),ei=r(85893),eo=r(44012),ea=function(e,t){return(ea=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 es(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ea(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var eu=function(){return(eu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function ec(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function el(e,t){var r=t&&t.cache?t.cache:ep,n=t&&t.serializer?t.serializer:em;return(t&&t.strategy?t.strategy:function(e,t){var r,n,i=1===e.length?eh:ef;return r=t.cache.create(),n=t.serializer,i.bind(this,e,r,n)})(e,{cache:r,serializer:n})}function eh(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),o=t.get(i);return typeof o>"u"&&(o=e.call(this,n),t.set(i,o)),o}function ef(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,n),t.set(i,o)),o}"function"==typeof SuppressedError&&SuppressedError;var em=function(){return JSON.stringify(arguments)},ed=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),ep={create:function(){return new ed}},eg={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,ef.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,eh.bind(this,e,r,n)}};(eQ=e1||(e1={})).FORMAT_ERROR="FORMAT_ERROR",eQ.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",eQ.INVALID_CONFIG="INVALID_CONFIG",eQ.MISSING_DATA="MISSING_DATA",eQ.MISSING_TRANSLATION="MISSING_TRANSLATION";var ev=function(e){function t(r,n,i){var o=this,s=i?i instanceof Error?i:Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(s?"\n".concat(s.message,"\n").concat(s.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return es(t,e),t}(Error),eE=function(e){function t(t,r){return e.call(this,e1.UNSUPPORTED_FORMATTER,t,r)||this}return es(t,e),t}(ev),eb=function(e){function t(t,r){return e.call(this,e1.INVALID_CONFIG,t,r)||this}return es(t,e),t}(ev),ey=function(e){function t(t,r){return e.call(this,e1.MISSING_DATA,t,r)||this}return es(t,e),t}(ev),eT=function(e){function t(t,r,n){var i=e.call(this,e1.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),n)||this;return i.locale=r,i}return es(t,e),t}(ev),e_=function(e){function t(t,r,n,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return o.descriptor=n,o.locale=r,o}return es(t,e),t}(eT),eS=function(e){function t(t,r){var n=e.call(this,e1.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 es(t,e),t}(ev);function eH(e){return e.type===e2.literal}function eB(e){return e.type===e2.number}function eI(e){return e.type===e2.date}function eN(e){return e.type===e2.time}function eA(e){return e.type===e2.select}function eL(e){return e.type===e2.plural}function eP(e){return e.type===e2.tag}function eR(e){return!!(e&&"object"==typeof e&&e.type===e8.number)}function eM(e){return!!(e&&"object"==typeof e&&e.type===e8.dateTime)}(eJ=e0||(e0={}))[eJ.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",eJ[eJ.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",eJ[eJ.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",eJ[eJ.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",eJ[eJ.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",eJ[eJ.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",eJ[eJ.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",eJ[eJ.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",eJ[eJ.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",eJ[eJ.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",eJ[eJ.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",eJ[eJ.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",eJ[eJ.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",eJ[eJ.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",eJ[eJ.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",eJ[eJ.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",eJ[eJ.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",eJ[eJ.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",eJ[eJ.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",eJ[eJ.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",eJ[eJ.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",eJ[eJ.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",eJ[eJ.INVALID_TAG=23]="INVALID_TAG",eJ[eJ.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",eJ[eJ.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",eJ[eJ.UNCLOSED_TAG=27]="UNCLOSED_TAG",(eq=e2||(e2={}))[eq.literal=0]="literal",eq[eq.argument=1]="argument",eq[eq.number=2]="number",eq[eq.date=3]="date",eq[eq.time=4]="time",eq[eq.select=5]="select",eq[eq.plural=6]="plural",eq[eq.pound=7]="pound",eq[eq.tag=8]="tag",(e$=e8||(e8={}))[e$.number=0]="number",e$[e$.dateTime=1]="dateTime";var ew=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,eC={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},eO=/(?:[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,eD=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,eU=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,eF=/^(@+)?(\+|#+)?[rs]?$/g,eG=/(\*)(0+)|(#+)(0+)|(0+)/g,ek=/^(0+)$/;function ex(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(eF,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 ej(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"}}}var eV,eX,eW,eY,eK,eZ,ez,eQ,eJ,eq,e$,e1,e0,e2,e8,e6,e9=new RegExp("^".concat(ew.source,"*")),e3=new RegExp("".concat(ew.source,"*$"));function e5(e,t){return{start:e,end:t}}var e4=!!String.prototype.startsWith&&"_a".startsWith("a",1),e7=!!String.fromCodePoint,te=!!Object.fromEntries,tt=!!String.prototype.codePointAt,tr=!!String.prototype.trimStart,tn=!!String.prototype.trimEnd,ti=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&9007199254740991>=Math.abs(e)},to=!0;try{var ta=tm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");to=(null===(e6=ta.exec("a"))||void 0===e6?void 0:e6[0])==="a"}catch(e){to=!1}var ts=e4?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},tu=e7?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(((r-=65536)>>10)+55296,r%1024+56320)}return n},tc=te?Object.fromEntries:function(e){for(var t={},r=0;r<e.length;r++){var n=e[r],i=n[0],o=n[1];t[i]=o}return t},tl=tt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:(i-55296<<10)+(n-56320)+65536}},th=tr?function(e){return e.trimStart()}:function(e){return e.replace(e9,"")},tf=tn?function(e){return e.trimEnd()}:function(e){return e.replace(e3,"")};function tm(e,t){return new RegExp(e,t)}if(to){var td=tm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");o=function(e,t){var r;return td.lastIndex=t,null!==(r=td.exec(e)[1])&&void 0!==r?r:""}}else o=function(e,t){for(var r=[];;){var n,i=tl(e,t);if(void 0===i||tv(i)||(n=i)>=33&&n<=35||36===n||n>=37&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||n>=162&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||n>=8208&&n<=8213||n>=8214&&n<=8215||8216===n||8217===n||8218===n||n>=8219&&n<=8220||8221===n||8222===n||8223===n||n>=8224&&n<=8231||n>=8240&&n<=8248||8249===n||8250===n||n>=8251&&n<=8254||n>=8257&&n<=8259||8260===n||8261===n||8262===n||n>=8263&&n<=8273||8274===n||8275===n||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||8608===n||n>=8609&&n<=8610||8611===n||n>=8612&&n<=8613||8614===n||n>=8615&&n<=8621||8622===n||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||8658===n||8659===n||8660===n||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||8968===n||8969===n||8970===n||8971===n||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||9001===n||9002===n||n>=9003&&n<=9083||9084===n||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||9655===n||n>=9656&&n<=9664||9665===n||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||9839===n||n>=9840&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||n>=10132&&n<=10175||n>=10176&&n<=10180||10181===n||10182===n||n>=10183&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||n>=10649&&n<=10711||10712===n||10713===n||10714===n||10715===n||n>=10716&&n<=10747||10748===n||10749===n||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||11158===n||n>=11159&&n<=11263||n>=11776&&n<=11777||11778===n||11779===n||11780===n||11781===n||n>=11782&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||n>=11790&&n<=11798||11799===n||n>=11800&&n<=11801||11802===n||11803===n||11804===n||11805===n||n>=11806&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||n>=11818&&n<=11822||11823===n||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||11840===n||11841===n||11842===n||n>=11843&&n<=11855||n>=11856&&n<=11857||11858===n||n>=11859&&n<=11903||n>=12289&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||n>=12306&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||n>=12318&&n<=12319||12320===n||12336===n||64830===n||64831===n||n>=65093&&n<=65094)break;r.push(i),t+=i>=65536?2:1}return tu.apply(void 0,r)};var tp=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){var o=this.parseArgument(e,r);if(o.err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35===i&&("plural"===t||"selectordinal"===t)){var s=this.clonePosition();this.bump(),n.push({type:e2.pound,location:e5(s,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&tg(this.peek()||0)){var o=this.parseTag(e,t);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(e,t);if(o.err)return o;n.push(o.val)}}else{if(r)break;return this.error(e0.UNMATCHED_CLOSING_TAG,e5(this.clonePosition(),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:e2.literal,value:"<".concat(n,"/>"),location:e5(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(e0.INVALID_TAG,e5(r,this.clonePosition()));var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(!this.bumpIf("</"))return this.error(e0.UNCLOSED_TAG,e5(r,this.clonePosition()));if(this.isEOF()||!tg(this.char()))return this.error(e0.INVALID_TAG,e5(s,this.clonePosition()));var u=this.clonePosition();return n!==this.parseTagName()?this.error(e0.UNMATCHED_CLOSING_TAG,e5(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:e2.tag,value:n,children:o,location:e5(r,this.clonePosition())},err:null}:this.error(e0.INVALID_TAG,e5(s,this.clonePosition())))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i){n+=i;continue}var o=this.tryParseUnquoted(e,t);if(o){n+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){n+=s;continue}break}var u=e5(r,this.clonePosition());return{val:{type:e2.literal,value:n,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(tg(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(r);this.bump()}return tu.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(),tu(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(e0.EXPECT_ARGUMENT_CLOSING_BRACE,e5(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(e0.EMPTY_ARGUMENT,e5(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(e0.MALFORMED_ARGUMENT,e5(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(e0.EXPECT_ARGUMENT_CLOSING_BRACE,e5(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:e2.argument,value:n,location:e5(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(e0.EXPECT_ARGUMENT_CLOSING_BRACE,e5(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(e0.MALFORMED_ARGUMENT,e5(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=o(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:e5(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(e0.EXPECT_ARGUMENT_TYPE,e5(o,u));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var f=tf(h.val);if(0===f.length)return this.error(e0.EXPECT_ARGUMENT_STYLE,e5(this.clonePosition(),this.clonePosition()));c={style:f,styleLocation:e5(l,this.clonePosition())}}var m=this.tryParseArgumentClose(n);if(m.err)return m;var d=e5(n,this.clonePosition());if(c&&ts(null==c?void 0:c.style,"::",0)){var p,g=th(c.style.slice(2));if("number"===s){var h=this.parseNumberSkeletonFromString(g,c.styleLocation);return h.err?h:{val:{type:e2.number,value:r,location:d,style:h.val},err:null}}if(0===g.length)return this.error(e0.EXPECT_DATE_TIME_SKELETON,d);var v=g;this.locale&&(v=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),u=o<2?1:3+(o>>1),c=function(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 Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(eC[r||""]||eC[n||""]||eC["".concat(n,"-001")]||eC["001"])[0]}(t);for(("H"==c||"k"==c)&&(u=0);u-- >0;)r+="a";for(;s-- >0;)r=c+r}else"J"===i?r+="H":r+=i}return r}(g,this.locale));var f={type:e8.dateTime,pattern:v,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?(p={},v.replace(eO,function(e){var t=e.length;switch(e[0]){case"G":p.era=4===t?"long":5===t?"narrow":"short";break;case"y":p.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":p.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":p.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":p.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");p.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");p.weekday=["short","long","narrow","short"][t-4];break;case"a":p.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":p.hourCycle="h12",p.hour=["numeric","2-digit"][t-1];break;case"H":p.hourCycle="h23",p.hour=["numeric","2-digit"][t-1];break;case"K":p.hourCycle="h11",p.hour=["numeric","2-digit"][t-1];break;case"k":p.hourCycle="h24",p.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":p.minute=["numeric","2-digit"][t-1];break;case"s":p.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":p.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),p):{}};return{val:{type:"date"===s?e2.date:e2.time,value:r,location:d,style:f},err:null}}return{val:{type:"number"===s?e2.number:"date"===s?e2.date:e2.time,value:r,location:d,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(e0.EXPECT_SELECT_ARGUMENT_OPTIONS,e5(E,eu({},E)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),y=0;if("select"!==s&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(e0.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,e5(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(e0.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,e0.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),b=this.parseIdentifierIfPossible(),y=h.val}var T=this.tryParsePluralOrSelectOptions(e,s,t,b);if(T.err)return T;var m=this.tryParseArgumentClose(n);if(m.err)return m;var _=e5(n,this.clonePosition());return"select"===s?{val:{type:e2.select,value:r,options:tc(T.val),location:_},err:null}:{val:{type:e2.plural,value:r,options:tc(T.val),offset:y,pluralType:"plural"===s?"cardinal":"ordinal",location:_},err:null};default:return this.error(e0.INVALID_ARGUMENT_TYPE,e5(o,u))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(e0.EXPECT_ARGUMENT_CLOSING_BRACE,e5(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(e0.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,e5(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(eD).filter(function(e){return e.length>0}),r=[],n=0;n<t.length;n++){var i=t[n].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),u=0;u<s.length;u++)if(0===s[u].length)throw Error("Invalid number skeleton");r.push({stem:o,options:s})}return r}(e)}catch(e){return this.error(e0.INVALID_NUMBER_SKELETON,t)}return{val:{type:e8.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.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=n.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=eu(eu(eu({},t),{notation:"scientific"}),n.options.reduce(function(e,t){return eu(eu({},e),ej(t)||{})},{}));continue;case"engineering":t=eu(eu(eu({},t),{notation:"engineering"}),n.options.reduce(function(e,t){return eu(eu({},e),ej(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(n.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(n.options.length>1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(eG,function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw Error("We currently do not support maximum integer digits");if(s)throw Error("We currently do not support exact integer digits")}return""});continue}if(ek.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(eU.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(eU,function(e,r,n,i,o,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=n.options[0];"w"===i?t=eu(eu({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=eu(eu({},t),ex(i)));continue}if(eF.test(n.stem)){t=eu(eu({},t),ex(n.stem));continue}var o=ej(n.stem);o&&(t=eu(eu({},t),o));var s=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!ek.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem);s&&(t=eu(eu({},t),s))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,s=[],u=new Set,c=n.value,l=n.location;;){if(0===c.length){var h=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(e0.EXPECT_PLURAL_ARGUMENT_SELECTOR,e0.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;l=e5(h,this.clonePosition()),c=this.message.slice(h.offset,this.offset())}else break}if(u.has(c))return this.error("select"===t?e0.DUPLICATE_SELECT_ARGUMENT_SELECTOR:e0.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===c&&(o=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?e0.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:e0.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,e5(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(e+1,t,r);if(d.err)return d;var p=this.tryParseArgumentClose(m);if(p.err)return p;s.push([c,{value:d.val,location:e5(m,this.clonePosition())}]),u.add(c),this.bumpSpace(),c=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===t?e0.EXPECT_SELECT_ARGUMENT_SELECTOR:e0.EXPECT_PLURAL_ARGUMENT_SELECTOR,e5(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(e0.MISSING_OTHER_CLAUSE,e5(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,o=10*o+(s-48),this.bump();else break}var u=e5(n,this.clonePosition());return i?ti(o*=r)?{val:o,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=tl(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(ts(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()&&tv(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 tg(e){return e>=97&&e<=122||e>=65&&e<=90}function tv(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function tE(e,t){void 0===t&&(t={});var r=new tp(e,t=eu({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(r.err){var n=SyntaxError(e0[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,eA(t)||eL(t))for(var r in t.options)delete t.options[r].location,e(t.options[r].value);else eB(t)&&eR(t.style)||(eI(t)||eN(t))&&eM(t.style)?delete t.style.location:eP(t)&&e(t.children)})}(r.val),r.val}(n=s||(s={})).MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API";var tb=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return es(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ty=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),s.INVALID_VALUE,i)||this}return es(t,e),t}(tb),tT=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),s.INVALID_VALUE,n)||this}return es(t,e),t}(tb),t_=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,'"'),s.MISSING_VALUE,r)||this}return es(t,e),t}(tb);function tS(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}(i=u||(u={}))[i.literal=0]="literal",i[i.object=1]="object";var tH=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var o,c,l=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=l.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===u.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 function e(t,r,n,i,o,c,l){if(1===t.length&&eH(t[0]))return[{type:u.literal,value:t[0].value}];for(var h=[],f=0;f<t.length;f++){var m=t[f];if(eH(m)){h.push({type:u.literal,value:m.value});continue}if(m.type===e2.pound){"number"==typeof c&&h.push({type:u.literal,value:n.getNumberFormat(r).format(c)});continue}var d=m.value;if(!(o&&d in o))throw new t_(d,l);var p=o[d];if(m.type===e2.argument){p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),h.push({type:"string"==typeof p?u.literal:u.object,value:p});continue}if(eI(m)){var g="string"==typeof m.style?i.date[m.style]:eM(m.style)?m.style.parsedOptions:void 0;h.push({type:u.literal,value:n.getDateTimeFormat(r,g).format(p)});continue}if(eN(m)){var g="string"==typeof m.style?i.time[m.style]:eM(m.style)?m.style.parsedOptions:i.time.medium;h.push({type:u.literal,value:n.getDateTimeFormat(r,g).format(p)});continue}if(eB(m)){var g="string"==typeof m.style?i.number[m.style]:eR(m.style)?m.style.parsedOptions:void 0;g&&g.scale&&(p*=g.scale||1),h.push({type:u.literal,value:n.getNumberFormat(r,g).format(p)});continue}if(eP(m)){var v=m.children,E=m.value,b=o[E];if("function"!=typeof b)throw new tT(E,"function",l);var y=b(e(v,r,n,i,o,c).map(function(e){return e.value}));Array.isArray(y)||(y=[y]),h.push.apply(h,y.map(function(e){return{type:"string"==typeof e?u.literal:u.object,value:e}}))}if(eA(m)){var T=m.options[p]||m.options.other;if(!T)throw new ty(m.value,p,Object.keys(m.options),l);h.push.apply(h,e(T.value,r,n,i,o));continue}if(eL(m)){var T=m.options["=".concat(p)];if(!T){if(!Intl.PluralRules)throw new tb('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',s.MISSING_INTL_API,l);var _=n.getPluralRules(r,{type:m.pluralType}).select(p-(m.offset||0));T=m.options[_]||m.options.other}if(!T)throw new ty(m.value,p,Object.keys(m.options),l);h.push.apply(h,e(T.value,r,n,i,o,p-(m.offset||0)));continue}}return h.length<2?h:h.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===u.literal&&t.type===u.literal?r.value+=t.value:e.push(t),e},[])}(l.ast,l.locales,l.formatters,l.formats,e,void 0,l.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=l.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(l.locales)[0]}},this.getAst=function(){return l.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var h=i||{},f=(h.formatters,function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}(h,["formatters"]));this.ast=e.__parse(t,eu(eu({},f),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(o=e.formats,n?Object.keys(o).reduce(function(e,t){var r,i;return e[t]=(r=o[t],(i=n[t])?eu(eu(eu({},r||{}),i||{}),Object.keys(r).reduce(function(e,t){return e[t]=eu(eu({},r[t]),i[t]||{}),e},{})):r),e},eu({},o)):o),this.formatters=i&&i.formatters||(void 0===(c=this.formatterCache)&&(c={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:el(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,ec([void 0],t,!1)))},{cache:tS(c.number),strategy:eg.variadic}),getDateTimeFormat:el(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,ec([void 0],t,!1)))},{cache:tS(c.dateTime),strategy:eg.variadic}),getPluralRules:el(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,ec([void 0],t,!1)))},{cache:tS(c.pluralRules),strategy:eg.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(!(typeof Intl.Locale>"u")){var t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=tE,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}();function tB(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 tI={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function tN(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function tA(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function tL(e,t,r,n){var i,o=e&&e[t];if(o&&(i=o[r]),i)return i;n(new eE("No ".concat(t," format named: ").concat(r)))}var tP=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function tR(e,t,r,n){var i=e.locale,o=e.formats,s=e.onError,u=e.timeZone;void 0===n&&(n={});var c=n.format,l=tB(n,tP,eu(eu({},u&&{timeZone:u}),c&&tL(o,t,c,s)));return"time"!==t||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=eu(eu({},l),{hour:"numeric",minute:"numeric"})),r(i,l)}function tM(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],s="string"==typeof i?new Date(i||0):i;try{return tR(e,"date",t,void 0===o?{}:o).format(s)}catch(t){e.onError(new eT("Error formatting date.",e.locale,t))}return String(s)}function tw(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],s="string"==typeof i?new Date(i||0):i;try{return tR(e,"time",t,void 0===o?{}:o).format(s)}catch(t){e.onError(new eT("Error formatting time.",e.locale,t))}return String(s)}function tC(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],s=r[2],u="string"==typeof i?new Date(i||0):i,c="string"==typeof o?new Date(o||0):o;try{return tR(e,"dateTimeRange",t,void 0===s?{}:s).formatRange(u,c)}catch(t){e.onError(new eT("Error formatting date time range.",e.locale,t))}return String(u)}function tO(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],s="string"==typeof i?new Date(i||0):i;try{return tR(e,"date",t,void 0===o?{}:o).formatToParts(s)}catch(t){e.onError(new eT("Error formatting date.",e.locale,t))}return[]}function tD(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],s="string"==typeof i?new Date(i||0):i;try{return tR(e,"time",t,void 0===o?{}:o).formatToParts(s)}catch(t){e.onError(new eT("Error formatting time.",e.locale,t))}return[]}var tU=["style","type","fallback","languageDisplay"];function tF(e,t,r,n){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new tb('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',s.MISSING_INTL_API));var u=tB(n,tU);try{return t(i,u).of(r)}catch(e){o(new eT("Error formatting display name.",i,e))}}var tG=["type","style"],tk=Date.now();function tx(e,t,r,n){void 0===n&&(n={});var i=tj(e,t,r,n).reduce(function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[]);return 1===i.length?i[0]:0===i.length?"":i}function tj(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.ListFormat||o(new tb('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',s.MISSING_INTL_API));var u=tB(n,tG);try{var c={},l=r.map(function(e,t){if("object"==typeof e){var r="".concat(tk,"_").concat(t,"_").concat(tk);return c[r]=e,r}return String(e)});return t(i,u).formatToParts(l).map(function(e){return"literal"===e.type?e:eu(eu({},e),{value:c[e.value]||e.value})})}catch(e){o(new eT("Error formatting list.",i,e))}return r}function tV(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=eu({timeZone:t},e[n]),r},{})}function tX(e,t){return Object.keys(eu(eu({},e),t)).reduce(function(r,n){return r[n]=eu(eu({},e[n]||{}),t[n]||{}),r},{})}function tW(e,t){if(!t)return e;var r=tH.formats;return eu(eu(eu({},r),e),{date:tX(tV(r.date,t),tV(e.date||{},t)),time:tX(tV(r.time,t),tV(e.time||{},t))})}var tY=function(e,t,r,n,i){var o=e.locale,s=e.formats,u=e.messages,c=e.defaultLocale,l=e.defaultFormats,h=e.fallbackOnEmptyString,f=e.onError,m=e.timeZone,d=e.defaultRichTextElements;void 0===r&&(r={id:""});var p=r.id,g=r.defaultMessage;!function(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}(!!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.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var v=String(p),E=u&&Object.prototype.hasOwnProperty.call(u,v)&&u[v];if(Array.isArray(E)&&1===E.length&&E[0].type===e2.literal)return E[0].value;if(!n&&E&&"string"==typeof E&&!d)return E.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=eu(eu({},d),n||{}),s=tW(s,m),l=tW(l,m),!E){if(!1===h&&""===E)return E;if((!g||o&&o.toLowerCase()!==c.toLowerCase())&&f(new eS(r,o)),g)try{var b=t.getMessageFormat(g,c,l,i);return b.format(n)}catch(e){return f(new e_('Error formatting default message for: "'.concat(v,'", rendering default message verbatim'),o,r,e)),"string"==typeof g?g:v}return v}try{var b=t.getMessageFormat(E,o,s,eu({formatters:t},i||{}));return b.format(n)}catch(e){f(new e_('Error formatting message: "'.concat(v,'", using ').concat(g?"default message":"id"," as fallback."),o,r,e))}if(g)try{var b=t.getMessageFormat(g,c,l,i);return b.format(n)}catch(e){f(new e_('Error formatting the default message for: "'.concat(v,'", rendering message verbatim'),o,r,e))}return"string"==typeof E?E:"string"==typeof g?g:v},tK=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function tZ(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var s=r.format;return t(n,tB(r,tK,s&&tL(i,"number",s,o)||{}))}function tz(e,t,r,n){void 0===n&&(n={});try{return tZ(e,t,n).format(r)}catch(t){e.onError(new eT("Error formatting number.",e.locale,t))}return String(r)}function tQ(e,t,r,n){void 0===n&&(n={});try{return tZ(e,t,n).formatToParts(r)}catch(t){e.onError(new eT("Error formatting number.",e.locale,t))}return[]}var tJ=["type"];function tq(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.PluralRules||o(new tb('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',s.MISSING_INTL_API));var u=tB(n,tJ);try{return t(i,u).select(r)}catch(e){o(new eT("Error formatting plural.",i,e))}return"other"}var t$=["numeric","style"];function t1(e,t,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new tb('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',s.MISSING_INTL_API));try{var o,u,c,l,h;return(o=i,u=e.locale,c=e.formats,l=e.onError,void 0===o&&(o={}),h=o.format,t(u,tB(o,t$,!!h&&tL(c,"relative",h,l)||{}))).format(r,n)}catch(t){e.onError(new eT("Error formatting relative time.",e.locale,t))}return String(r)}let t0=()=>{let e;try{let t=(0,et.Z)();e=(0,c.useCallback)((e,r)=>{let{id:n,defaultMessage:i}=e;return t.formatMessage({id:n,defaultMessage:i},r)},[t,ee])}catch(n){let t=(0,er.Sn)(),r=(0,en.d)({locale:"en",messages:{}},t);e=(e,t)=>{let{defaultMessage:n,id:i}=e;return r.formatMessage({defaultMessage:n,id:i},t)}}return e},t2=(e=>{let{id:t,values:r,defaultMessage:n,children:i,...o}=e;try{return(0,et.Z)(),(0,ei.jsx)(eo.Z,{id:t,values:r,children:i,defaultMessage:n,...o})}catch(o){var s,u,c,l,h,f,m,d,p,g,v,E,b,y;let e=(s={locale:"en",messages:{}},void 0===(u=tN())&&(u=tN()),c=Intl.RelativeTimeFormat,l=Intl.ListFormat,h=Intl.DisplayNames,f=el(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,ec([void 0],t,!1)))},{cache:tA(u.dateTime),strategy:eg.variadic}),m=el(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,ec([void 0],t,!1)))},{cache:tA(u.number),strategy:eg.variadic}),d=el(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,ec([void 0],t,!1)))},{cache:tA(u.pluralRules),strategy:eg.variadic}),p={getDateTimeFormat:f,getNumberFormat:m,getMessageFormat:el(function(e,t,r,n){return new tH(e,t,r,eu({formatters:{getNumberFormat:m,getDateTimeFormat:f,getPluralRules:d}},n||{}))},{cache:tA(u.message),strategy:eg.variadic}),getRelativeTimeFormat:el(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(c.bind.apply(c,ec([void 0],e,!1)))},{cache:tA(u.relativeTime),strategy:eg.variadic}),getPluralRules:d,getListFormat:el(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(l.bind.apply(l,ec([void 0],e,!1)))},{cache:tA(u.list),strategy:eg.variadic}),getDisplayNames:el(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(h.bind.apply(h,ec([void 0],e,!1)))},{cache:tA(u.displayNames),strategy:eg.variadic})},v=(g=eu(eu({},tI),s)).locale,E=g.defaultLocale,b=g.onError,v?!Intl.NumberFormat.supportedLocalesOf(v).length&&b?b(new ey('Missing locale data for locale: "'.concat(v,'" in Intl.NumberFormat. Using default locale: "').concat(E,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(v).length&&b&&b(new ey('Missing locale data for locale: "'.concat(v,'" in Intl.DateTimeFormat. Using default locale: "').concat(E,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(b&&b(new eb('"locale" was not configured, using "'.concat(E,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),g.locale=g.defaultLocale||"en"),g.onWarn&&g.defaultRichTextElements&&"string"==typeof(y=g.messages||{})[Object.keys(y)[0]]&&g.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.github.io/docs/getting-started/message-distribution'),eu(eu({},g),{formatters:p,formatNumber:tz.bind(null,g,p.getNumberFormat),formatNumberToParts:tQ.bind(null,g,p.getNumberFormat),formatRelativeTime:t1.bind(null,g,p.getRelativeTimeFormat),formatDate:tM.bind(null,g,p.getDateTimeFormat),formatDateToParts:tO.bind(null,g,p.getDateTimeFormat),formatTime:tw.bind(null,g,p.getDateTimeFormat),formatDateTimeRange:tC.bind(null,g,p.getDateTimeFormat),formatTimeToParts:tD.bind(null,g,p.getDateTimeFormat),formatPlural:tq.bind(null,g,p.getPluralRules),formatMessage:tY.bind(null,g,p),$t:tY.bind(null,g,p),formatList:tx.bind(null,g,p.getListFormat),formatListToParts:tj.bind(null,g,p.getListFormat),formatDisplayName:tF.bind(null,g,p.getDisplayNames)})).formatMessage({defaultMessage:n,id:t},r);return"function"==typeof i?(0,ei.jsx)(ei.Fragment,{children:null==i?void 0:i([e])}):(0,ei.jsx)(ei.Fragment,{children:e})}},()=>{try{return(0,et.Z)()}catch(t){let e=(0,er.Sn)();return(0,en.d)({locale:"en",messages:{}},e)}}),t8=Object.fromEntries(Object.keys(ee).map(e=>[e,e])),t6=e=>{var t,r;let{client:n,inSource:i="subscriber-only-benefit",children:o,placement:s}=e,u=t0(),{locale:m}=t2(),d=!!m&&"string"==typeof m&&(null===(r=m.split("-")[0])||void 0===r?void 0:r.toLowerCase())==="ja",p=null!==(t=e.headerText)&&void 0!==t?t:u({id:t8["media-ui-subscriptions_subscriberBenefit"],defaultMessage:"Subscriber Benefit"}),g=null!=o?o:c.createElement("p",{className:$.defaultText},u({id:t8["media-ui-subscriptions_subscriberOnlyFeature"],defaultMessage:"This feature is only available to bloomberg.com subscribers."})),v=((null==n?void 0:n.getEntitlementFeatures())||[]).length>0,E=d?"/jp":"",b=v?"".concat(E,"/portal/subscription?triggerSubscriptionUpgradeModal=true&in_source=").concat(i):"".concat(E,"/subscriptions?in_source=").concat(i),y=u(v?{id:t8["media-ui-subscriptions_upgrade"],defaultMessage:"Upgrade"}:{id:t8["media-ui-subscriptions_subscribe"],defaultMessage:"Subscribe"});return c.createElement(q,{...e,headerText:p,Icon:c.createElement(f.HE,null),placement:s},c.createElement(c.Fragment,null,g,c.createElement("div",{className:$.buttonContainer},c.createElement(l.K,{version:"phoenix",linkUrl:b,fullWidth:!0},y),!(null==n?void 0:n.isLoggedIn())&&c.createElement(h.F,{version:"phoenix",fullWidth:!0,className:$.signInButton,onClick:()=>null==n?void 0:n.linkToSignIn({in_source:i,leadSource:i})},u({id:t8["media-ui-subscriptions_signIn"],defaultMessage:"Sign In"})))))}},74766:function(){},82793:function(){},38688:function(){},39168:function(){}}]); |