Files
roi24/European, Middle Eastern & African Stocks - Bloomberg - Bloomberg Markets_files/7592-1a7f29923c252d64_05Q6.js
T
neo 932ec3ac8f KPI cards: Bloomberg stock ticker style
- 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)
2026-06-21 18:14:08 +05:00

1 line
624 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7592],{93223:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(54138),i=n.n(r),a=n(47044),o=n.n(a);class s{baseUrl;constructor({baseUrl:e}={}){this.baseUrl=new URL(e||"https://search.bloomberg.com/")}lookup(e){let t=new URL(`${this.baseUrl}lookup.json`);return t.search=this.#e(e).toString(),fetch(t.toString()).then(e=>e.json())}autoComplete(e){let t=new URL(`${this.baseUrl}autocomplete.json`);return t.search=this.#e(e).toString(),fetch(t.toString()).then(e=>e.json())}#e(e){return new URLSearchParams(i()(e,(e,t)=>o()(t)))}}},22539:function(e,t,n){"use strict";n.d(t,{Q:function(){return b}});var r=n(85893),i=n(67294),a=n(9008),o=n.n(a),s=n(97314),l=n(30488);l.domToReact,l.htmlToDOM,l.attributesToProps,l.Comment,l.Element,l.ProcessingInstruction,l.Text;var u=n(4298),c=n.n(u);let d=(e,t)=>e&&t?`<style>${t}</style>${e}`:e,h=({href:e="",media:t="all",property:n="stylesheet",rel:i="stylesheet",type:a="text/css"})=>[(0,r.jsx)("link",{rel:"preload",href:`${e}`,as:"style"},`tophat-preload-${e}`),(0,r.jsx)("link",{href:`${e}`,media:`${t}`,property:`${n}`,rel:`${i}`,type:`${a}`},`tophat-${e}`)],m=e=>(0,r.jsx)(c(),{src:e},`tophat - ${e}`),f=e=>e&&e.length?e.flatMap(e=>h({href:e})):(console.debug("No styles received to construct tophat."),[]),p=e=>e&&e.length?e.map(e=>m(e)):(console.warn("No scripts received to construct tophat."),[]),g=(0,s.Z)(e=>{if(!e||!e.snippet.that)return console.warn("No html data received to construct tophat."),null;let t=f(e.snippet.styles),n=p(e.snippet.scripts);return{html:l(d(e.snippet.that,e.snippet.styles_overrides)),js:n,css:t}},v);function v(e,t){return e?.snippet?.that===t?.snippet?.that&&e?.snippet?.scripts.join?.("")===t?.snippet?.scripts.join?.("")&&e?.snippet?.styles.join?.("")===t?.snippet?.styles.join?.("")&&e?.snippet?.styles_overrides===t?.snippet?.styles_overrides}var b=(0,i.memo)(function(e){let t=g(e);if(!t)return(0,r.jsx)(r.Fragment,{});let{html:n,js:i,css:a}=t;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o(),{children:a}),n,i]})},v)},93859:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});var r=n(67294);let i=e=>{let{classNameOnScrollUp:t="",classNameOnScrollDown:n="",scrollingElementRef:i,scrollDirectionThreshold:a=30,onScrollUpCallback:o=()=>{},onScrollDownCallback:s=()=>{}}=e,[l,u]=(0,r.useState)(!1),c=(0,r.useRef)(0),d=(0,r.useCallback)(()=>{let e=window.scrollY;Math.abs(e-c.current)<a||(u(e<c.current),c.current=e>0?e:0)},[]);(0,r.useEffect)(()=>(window.addEventListener("scroll",d),()=>{window.removeEventListener("scroll",d)}),[]),(0,r.useEffect)(()=>{i?.current&&(l?(t&&i.current.classList.add(t),n&&i.current.classList.remove(n)):(n&&i.current.classList.add(n),t&&i.current.classList.remove(t)))},[l]),(0,r.useEffect)(()=>{if(l){o();return}s()},[l,o,s])}},31361:function(e,t,n){"use strict";n.r(t),n.d(t,{StatsigProvider:function(){return r.StatsigProvider},endStatsigPerfLog:function(){return s},runStatsigAutoCapture:function(){return O},startStatsigPerfLog:function(){return o},useDynamicConfig:function(){return N},useFeatureGate:function(){return A},useLayer:function(){return I},useParameterStore:function(){return L},useStatsigClient:function(){return T},useStatsigClientCustomSetup:function(){return P},useStatsigClientWebSetup:function(){return M},useStatsigCustomUserRefresh:function(){return D},useStatsigUser:function(){return k},useStatsigWebUserRefresh:function(){return B}});var r=n(89211),i=n(12566);let a="undefined"!=typeof window&&void 0!==window?.performance&&void 0!==window?.performance?.mark&&void 0!==window?.performance?.measure?window?.performance:{mark:()=>({}),measure:()=>({duration:void 0})};function o(e){a.mark(`${e}-Start`)}function s(e){a.mark(`${e}-End`),n.g.window?.newrelic?.addPageAction(e,{duration:a.measure(e,`${e}-Start`,`${e}-End`)?.duration})}let l=(e,t)=>(...n)=>{o(e);let r=t(...n);return s(e),r};var u=n(67294),c=n(31955);let d=(e={})=>!!(e.userID||e.customIDs?.sessionId||e.customIDs?.regId),h=async(e,t,{timeoutMs:a}={})=>{o("SS-InitializeAsync");try{if(!d(t))throw Error("Provided user does not have a valid userID, regId, or sessionId.");return r.Storage.isReady()||await r.Storage.isReadyResolver(),e.updateUserSync(t,{disableBackgroundCacheRefresh:!0}),await e.initializeAsync({timeoutMs:a}),o("SS-runSSAutoCapture"),(0,i.AP)(e),s("SS-runSSAutoCapture"),e}catch(e){throw n.g.window.newrelic?.addPageAction("SS-InitializeAsync",e),e}finally{s("SS-InitializeAsync")}},m=(e,t)=>!!(e&&e._options?.environment?.tier===t.environmentTier&&e._sdkKey===t.statsigClientKey),f=e=>{let t=(0,r._getInstance)(e);if(t instanceof r.StatsigClient)return t},p=({initialUser:e,getAsyncInitializationUser:t,statsigClientKey:n,environmentTier:i,onStatsigInit:a,onStatsigInitError:o,options:s})=>{let l=(0,u.useRef)({client:f(n),onStatsigInit:a,onStatsigInitError:o});return l.current.onStatsigInit=a,l.current.onStatsigInitError=o,(0,u.useMemo)(()=>{if(m(l.current.client,{statsigClientKey:n,environmentTier:i}))return l.current.client;let a=new r.StatsigClient(n,e,{logLevel:"production"===i?r.LogLevel.Warn:r.LogLevel.Debug,environment:{tier:i}});return"undefined"!=typeof window&&(async()=>{try{let n=await t?.()??e,r=await h(a,n,s);l.current.onStatsigInit?.(r)}catch(e){l.current.onStatsigInitError?.(e)}})(),l.current.client=a,l.current.client},[i,n])};function g(e){return 0!==e.length&&"object"==typeof e[0]&&"actionId"in e[0]&&"confidence"in e[0]}async function v(){o("SS-getAbbaClientTargetingMetadata");let e={};return n.g.window?.__bloomberg__?.getAbbaClient&&(e=(await n.g.window?.__bloomberg__.getAbbaClient())._byzantium.getTargetingMetadata()),s("SS-getAbbaClientTargetingMetadata"),e}async function b(){let e;if(void 0!==c.Z.get("_user-data"))return;let t=new Promise(t=>{e=setTimeout(()=>{n.g.window?.newrelic?.addPageAction("SS-waitForUserCookieData-Timeout"),t()},3e3)}),r=new Promise(e=>{n.g.window?.addEventListener("reg-user-info-ready",()=>e(),{once:!0})});await Promise.race([r,t]),clearTimeout(e)}async function _(){let e,t;await b();try{e=JSON.parse(c.Z.get("_user-data")??"{}")}catch(t){e={}}try{t=JSON.parse(c.Z.get("_breg-user")??"{}")}catch(e){t={}}let n=c.Z.get("exp_pref"),r=(c.Z.get("bbgconsentstring")??"").includes("pad1");return{userData:e,experienceRegion:n,isBloombergEmployee:t?.isBloombergEmployee??!1,userHasConsented:r}}let E=async()=>{let[e,t]=(await Promise.allSettled([v(),_()])).map(e=>"fulfilled"===e.status?e.value:(n.g.window?.newrelic?.addPageAction("SS-getFlattenedStatsigCustomUserObject-Error",e.reason instanceof Error?{name:e.reason.name,message:e.reason.message,stack:e.reason.stack}:{message:JSON.stringify(e.reason)}),{})),r=c.Z.get("_breg-uid");return{userID:r,customIDs:{regId:r,sessionId:c.Z.get("session_id")},custom:function e(t){let n={};for(let[r,i]of Object.entries(t))void 0!==i&&"__typename"!==r&&(null===i||"object"!=typeof i?n[r]=i:Array.isArray(i)&&!g(i)?n[r]=i.map(e=>{if("object"!=typeof e||null===e)return e;if(e.id)return e.id;let t=Object.keys(e).find(e=>e.endsWith("Id"));return t?e[t]:void 0}).join(","):Object.assign(n,Array.isArray(i)&&g(i)?function(e){let t={};return e.forEach(e=>{t[e.actionId]=e.confidence}),t}(i):e(i)));return n}({...e,...function({userData:e,experienceRegion:t,isBloombergEmployee:n,userHasConsented:r}={}){let i={registered:e?.status?.toLowerCase()==="logged_in",subscriber:e?.subscriberData?.subscriptionStatus?.toLowerCase()==="active",subscriptionProduct:e?.subscriberData?.subscriptionProduct,subscriptionProvider:e?.subscriberData?.subscriptionProvider,subscriptionType:e?.subscriberData?.subscriptionType,experienceRegion:t,subscriptionIntroPeriodStatus:e?.subscriberData?.introPeriodStatus,daysSubscribed:e?.subscriberData?.daysSubscribed,subscriptionStartDate:e?.subscriberData?.startDate,subscriptionCurrency:e?.subscriberData?.currency,subscriptionFullPrice:e?.subscriberData?.fullPrice,subscriptionIntroPrice:e?.subscriberData?.introPrice,pricingJourneyState:e?.subscriberData?.pricingJourneyState,subscriptionGeoBand:e?.subscriberData?.geoBand,subscriptionOfferType:e?.subscriberData?.offerType,subscriptionStatus:e?.subscriberData?.subscriptionStatus,subscriptionBillingPeriod:e?.subscriberData?.billingPeriod,isEligibleForPromo:e?.subscriberData?.isEligibleForPromo};return r?{...i,userNewsletters:e?.newsletterIds?.join(","),linkedAccounts:e?.linkedAccounts,isBloombergEmployee:n??!1}:i}(t)})}},y=e=>async t=>{let n=e.getContext().user,r="function"==typeof t?await t(n):t;if("Uninitialized"===e.loadingStatus){await h(e,r);return}await e.updateUserAsync(r)},S=e=>async(t={})=>{let n=await E(),r="function"==typeof t?e=>t(n,e):{...n,custom:{...n.custom,...t}};await y(e)(r)},C=["reg-user-signed-in","reg-user-signed-out"],w=e=>{window.statsig=e,window.dispatchEvent(new CustomEvent("statsig:ready",{detail:{statsig:e}}))},T=l("SS-useStatsigClient",r.useStatsigClient),k=l("SS-useStatisigUser",r.useStatsigUser),I=l("SS-useLayer",r.useLayer),A=l("SS-useFeatureGate",r.useFeatureGate),N=l("SS-useDynamicConfig",r.useDynamicConfig),L=l("SS-useParameterStore",r.useParameterStore),O=l("SS-runStatsigAutoCapture",i.AP),M=l("SS-useSSClientWebSetupHook",({statsigClientKey:e,environmentTier:t,options:n})=>{let r=c.Z.get("_breg-uid"),i=p({statsigClientKey:e,environmentTier:t,initialUser:{userID:r,customIDs:{regId:r,sessionId:c.Z.get("session_id")}},getAsyncInitializationUser:E,onStatsigInit:w,onStatsigInitError:()=>{},options:n});return(0,u.useEffect)(()=>{let e=S(i),t=()=>e();return C.forEach(e=>{window.addEventListener(e,t)}),()=>{C.forEach(e=>{window.removeEventListener(e,t)})}},[i]),i}),P=l("SS-useSSClientCustomSetupHook",p),B=l("SS-useSSWebUserRefresh",()=>{let{client:e}=(0,r.useStatsigClient)();return(0,u.useCallback)(S(e),[e])}),D=l("SS-useSSWebUserRefresh",()=>{let{client:e}=(0,r.useStatsigClient)();return(0,u.useCallback)(y(e),[e])})},97314:function(e,t,n){"use strict";function r(e,t){let n,r;return function(i){return n&&r&&t(n,i)?r:(n=i,r=e(i))}}n.d(t,{Z:function(){return r}})},9996:function(e){"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==n},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s(Array.isArray(e)?[]:{},e,t):e}function i(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function a(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function o(e,t){try{return t in e}catch(e){return!1}}function s(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var u,c,d=Array.isArray(n);return d!==Array.isArray(e)?r(n,l):d?l.arrayMerge(e,n,l):(c={},(u=l).isMergeableObject(e)&&a(e).forEach(function(t){c[t]=r(e[t],u)}),a(n).forEach(function(t){(!o(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(o(e,t)&&u.isMergeableObject(n[t])?c[t]=(function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s})(t,u)(e[t],n[t],u):c[t]=r(n[t],u))}),c)}s.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},e.exports=s},99960:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,(r=n=t.ElementType||(t.ElementType={})).Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype",t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},47915:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(99960),o=n(97790);i(n(97790),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?a.ElementType.Tag:void 0,r=new o.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===a.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new o.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment){this.lastNode.data+=e;return}var t=new o.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new o.Text(""),t=new o.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new o.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},97790:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var o=n(99960),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),S(this,e)},e}();t.Node=s;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=c;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=o.ElementType.Directive,r}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var h=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=h;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(h);t.CDATA=m;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(h);t.Document=f;var p=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?o.ElementType.Script:"style"===t?o.ElementType.Style:o.ElementType.Tag);var a=e.call(this,r)||this;return a.name=t,a.attribs=n,a.type=i,a}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(h);function g(e){return(0,o.isTag)(e)}function v(e){return e.type===o.ElementType.CDATA}function b(e){return e.type===o.ElementType.Text}function _(e){return e.type===o.ElementType.Comment}function E(e){return e.type===o.ElementType.Directive}function y(e){return e.type===o.ElementType.Root}function S(e,t){if(void 0===t&&(t=!1),b(e))n=new u(e.data);else if(_(e))n=new c(e.data);else if(g(e)){var n,r=t?C(e.children):[],i=new p(e.name,a({},e.attribs),r);r.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),n=i}else if(v(e)){var r=t?C(e.children):[],o=new m(r);r.forEach(function(e){return e.parent=o}),n=o}else if(y(e)){var r=t?C(e.children):[],s=new f(r);r.forEach(function(e){return e.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else if(E(e)){var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}else throw Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function C(e){for(var t=e.map(function(e){return S(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=p,t.isTag=g,t.isCDATA=v,t.isText=b,t.isComment=_,t.isDirective=E,t.isDocument=y,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=S},54483:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}var l=n(67294),u=n(45697),c=n(15303).createFocusTrap,d=n(88388).isFocusable,h=function(e){var t;function n(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),t=n,o=[e],t=a(t),l=d=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,i()?Reflect.construct(t,o||[],a(this).constructor):t.apply(this,o)),u="getNodeForOption",c=function(e){var t,n,r=null!==(t=this.internalOptions[e])&&void 0!==t?t:this.originalOptions[e];if("function"==typeof r){for(var i=arguments.length,a=Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];r=r.apply(void 0,a)}if(!0===r&&(r=void 0),!r){if(void 0===r||!1===r)return r;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=r;if("string"==typeof r&&!(s=null===(n=this.getDocument())||void 0===n?void 0:n.querySelector(r)))throw Error("`".concat(e,"` as selector refers to no known node"));return s},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c,d.handleDeactivate=d.handleDeactivate.bind(d),d.handlePostDeactivate=d.handlePostDeactivate.bind(d),d.handleClickOutsideDeactivates=d.handleClickOutsideDeactivates.bind(d),d.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:d.handleDeactivate,onPostDeactivate:d.handlePostDeactivate,clickOutsideDeactivates:d.handleClickOutsideDeactivates},d.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var t,o,l,u,c,d,h=e.focusTrapOptions;for(var m in h)if(Object.prototype.hasOwnProperty.call(h,m)){if("returnFocusOnDeactivate"===m||"onDeactivate"===m||"onPostDeactivate"===m||"checkCanReturnFocus"===m||"clickOutsideDeactivates"===m){d.originalOptions[m]=h[m];continue}d.internalOptions[m]=h[m]}return d.outsideClick=null,d.focusTrapElements=e.containerElements||[],d.updatePreviousElement(),d}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(n,e),t=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),n=!!(e.originalOptions.returnFocusOnDeactivate&&null!=t&&t.focus&&(!e.outsideClick||e.outsideClick.allowDeactivation&&!d(e.outsideClick.target,e.internalOptions.tabbableOptions))),r=e.internalOptions.preventScroll;n&&t.focus({preventScroll:void 0!==r&&r}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,r=!e.paused&&this.props.paused,i=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n){this.deactivateTrap();return}r&&this.focusTrap.pause(),i&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?l.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===l.Fragment)throw Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return l.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}(l.Component),m="undefined"==typeof Element?Function:Element;h.propTypes={active:u.bool,paused:u.bool,focusTrapOptions:u.shape({document:u.object,onActivate:u.func,onPostActivate:u.func,checkCanFocusTrap:u.func,onPause:u.func,onPostPause:u.func,onUnpause:u.func,onPostUnpause:u.func,onDeactivate:u.func,onPostDeactivate:u.func,checkCanReturnFocus:u.func,initialFocus:u.oneOfType([u.instanceOf(m),u.string,u.bool,u.func]),fallbackFocus:u.oneOfType([u.instanceOf(m),u.string,u.func]),escapeDeactivates:u.oneOfType([u.bool,u.func]),clickOutsideDeactivates:u.oneOfType([u.bool,u.func]),returnFocusOnDeactivate:u.bool,setReturnFocus:u.oneOfType([u.instanceOf(m),u.string,u.bool,u.func]),allowOutsideClick:u.oneOfType([u.bool,u.func]),preventScroll:u.bool,tabbableOptions:u.shape({displayCheck:u.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:u.oneOfType([u.bool,u.func])}),trapStack:u.array,isKeyForward:u.func,isKeyBackward:u.func}),containerElements:u.arrayOf(u.instanceOf(m)),children:u.oneOfType([u.element,u.instanceOf(m)])},h.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:c},e.exports=h},15303:function(e,t,n){"use strict";n.r(t),n.d(t,{createFocusTrap:function(){return g}});var r=n(88388);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){var r,i;r=t,i=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var s=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},l=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},u=function(e){return(null==e?void 0:e.key)==="Tab"||(null==e?void 0:e.keyCode)===9},c=function(e){return u(e)&&!e.shiftKey},d=function(e){return u(e)&&e.shiftKey},h=function(e){return setTimeout(e,0)},m=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},f=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},p=[],g=function(e,t){var n,a=(null==t?void 0:t.document)||document,g=(null==t?void 0:t.trapStack)||p,v=o({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:c,isKeyBackward:d},t),b={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},_=function(e,t,n){return e&&void 0!==e[t]?e[t]:v[n||t]},E=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return b.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||(null==n?void 0:n.includes(r))||i.find(function(t){return t===e})})},y=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.hasFallback,o=n.params,s=v[e];if("function"==typeof s&&(s=s.apply(void 0,function(e){if(Array.isArray(e))return i(e)}(t=void 0===o?[]:o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return i(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),!0===s&&(s=void 0),!s){if(void 0===s||!1===s)return s;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=s;if("string"==typeof s){try{l=a.querySelector(s)}catch(t){throw Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!l&&!(void 0!==r&&r))throw Error("`".concat(e,"` as selector refers to no known node"))}return l},S=function(){var e=y("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,r.isFocusable)(e,v.tabbableOptions)){if(E(a.activeElement)>=0)e=a.activeElement;else{var t=b.tabbableGroups[0];e=t&&t.firstTabbableNode||y("fallbackFocus")}}else null===e&&(e=y("fallbackFocus"));if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e},C=function(){if(b.containerGroups=b.containers.map(function(e){var t=(0,r.tabbable)(e,v.tabbableOptions),n=(0,r.focusable)(e,v.tabbableOptions),i=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return(0,r.isTabbable)(e)}),s=n.slice().reverse().find(function(e){return(0,r.isTabbable)(e)}),l=!!t.find(function(e){return(0,r.getTabIndex)(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var i=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=t.indexOf(e);return a<0?i?n.slice(n.indexOf(e)+1).find(function(e){return(0,r.isTabbable)(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return(0,r.isTabbable)(e)}):t[a+(i?1:-1)]}}}),b.tabbableGroups=b.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),b.tabbableGroups.length<=0&&!y("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(b.containerGroups.find(function(e){return e.posTabIndexesFound})&&b.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},w=function(e){var t=e.activeElement;return t?t.shadowRoot&&null!==t.shadowRoot.activeElement?w(t.shadowRoot):t:void 0},T=function(e){if(!1!==e&&e!==w(document)){if(!e||!e.focus){T(S());return}e.focus({preventScroll:!!v.preventScroll}),b.mostRecentlyFocusedNode=e,e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select&&e.select()}},k=function(e){var t=y("setReturnFocus",{params:[e]});return t||!1!==t&&e},I=function(e){var t=e.target,n=e.event,i=e.isBackward,a=void 0!==i&&i;t=t||f(n),C();var o=null;if(b.tabbableGroups.length>0){var s=E(t,n),l=s>=0?b.containerGroups[s]:void 0;if(s<0)o=a?b.tabbableGroups[b.tabbableGroups.length-1].lastTabbableNode:b.tabbableGroups[0].firstTabbableNode;else if(a){var c=b.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(c<0&&(l.container===t||(0,r.isFocusable)(t,v.tabbableOptions)&&!(0,r.isTabbable)(t,v.tabbableOptions)&&!l.nextTabbableNode(t,!1))&&(c=s),c>=0){var d=0===c?b.tabbableGroups.length-1:c-1,h=b.tabbableGroups[d];o=(0,r.getTabIndex)(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else u(n)||(o=l.nextTabbableNode(t,!1))}else{var m=b.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(m<0&&(l.container===t||(0,r.isFocusable)(t,v.tabbableOptions)&&!(0,r.isTabbable)(t,v.tabbableOptions)&&!l.nextTabbableNode(t))&&(m=s),m>=0){var p=m===b.tabbableGroups.length-1?0:m+1,g=b.tabbableGroups[p];o=(0,r.getTabIndex)(t)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else u(n)||(o=l.nextTabbableNode(t))}}else o=y("fallbackFocus");return o},A=function(e){if(!(E(f(e),e)>=0)){if(m(v.clickOutsideDeactivates,e)){n.deactivate({returnFocus:v.returnFocusOnDeactivate});return}m(v.allowOutsideClick,e)||e.preventDefault()}},N=function(e){var t=f(e),n=E(t,e)>=0;if(n||t instanceof Document)n&&(b.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var i,a=!0;if(b.mostRecentlyFocusedNode){if((0,r.getTabIndex)(b.mostRecentlyFocusedNode)>0){var o=E(b.mostRecentlyFocusedNode),s=b.containerGroups[o].tabbableNodes;if(s.length>0){var l=s.findIndex(function(e){return e===b.mostRecentlyFocusedNode});l>=0&&(v.isKeyForward(b.recentNavEvent)?l+1<s.length&&(i=s[l+1],a=!1):l-1>=0&&(i=s[l-1],a=!1))}}else b.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return(0,r.getTabIndex)(e)>0})})||(a=!1)}else a=!1;a&&(i=I({target:b.mostRecentlyFocusedNode,isBackward:v.isKeyBackward(b.recentNavEvent)})),i?T(i):T(b.mostRecentlyFocusedNode||S())}b.recentNavEvent=void 0},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b.recentNavEvent=e;var n=I({event:e,isBackward:t});n&&(u(e)&&e.preventDefault(),T(n))},O=function(e){(v.isKeyForward(e)||v.isKeyBackward(e))&&L(e,v.isKeyBackward(e))},M=function(e){((null==e?void 0:e.key)==="Escape"||(null==e?void 0:e.key)==="Esc"||(null==e?void 0:e.keyCode)===27)&&!1!==m(v.escapeDeactivates,e)&&(e.preventDefault(),n.deactivate())},P=function(e){E(f(e),e)>=0||m(v.clickOutsideDeactivates,e)||m(v.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},B=function(){if(b.active)return s(g,n),b.delayInitialFocusTimer=v.delayInitialFocus?h(function(){T(S())}):T(S()),a.addEventListener("focusin",N,!0),a.addEventListener("mousedown",A,{capture:!0,passive:!1}),a.addEventListener("touchstart",A,{capture:!0,passive:!1}),a.addEventListener("click",P,{capture:!0,passive:!1}),a.addEventListener("keydown",O,{capture:!0,passive:!1}),a.addEventListener("keydown",M),n},D=function(){if(b.active)return a.removeEventListener("focusin",N,!0),a.removeEventListener("mousedown",A,!0),a.removeEventListener("touchstart",A,!0),a.removeEventListener("click",P,!0),a.removeEventListener("keydown",O,!0),a.removeEventListener("keydown",M),n},R="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===b.mostRecentlyFocusedNode})})&&T(S())}):void 0,H=function(){R&&(R.disconnect(),b.active&&!b.paused&&b.containers.map(function(e){R.observe(e,{subtree:!0,childList:!0})}))};return Object.defineProperties(n={get active(){return b.active},get paused(){return b.paused},activate:function(e){if(b.active)return this;var t=_(e,"onActivate"),n=_(e,"onPostActivate"),r=_(e,"checkCanFocusTrap");r||C(),b.active=!0,b.paused=!1,b.nodeFocusedBeforeActivation=w(a),null==t||t();var i=function(){r&&C(),B(),H(),null==n||n()};return r?r(b.containers.concat()).then(i,i):i(),this},deactivate:function(e){if(!b.active)return this;var t=o({onDeactivate:v.onDeactivate,onPostDeactivate:v.onPostDeactivate,checkCanReturnFocus:v.checkCanReturnFocus},e);clearTimeout(b.delayInitialFocusTimer),b.delayInitialFocusTimer=void 0,D(),b.active=!1,b.paused=!1,H(),l(g,n);var r=_(t,"onDeactivate"),i=_(t,"onPostDeactivate"),a=_(t,"checkCanReturnFocus"),s=_(t,"returnFocus","returnFocusOnDeactivate");null==r||r();var u=function(){h(function(){s&&T(k(b.nodeFocusedBeforeActivation)),null==i||i()})};return s&&a?a(k(b.nodeFocusedBeforeActivation)).then(u,u):u(),this},pause:function(e){return b.active?(b.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return b.active?(b.manuallyPaused=!1,g[g.length-1]!==this)?this:this._setPausedState(!1,e):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return b.containers=t.map(function(e){return"string"==typeof e?a.querySelector(e):e}),b.active&&C(),H(),this}},{_isManuallyPaused:{value:function(){return b.manuallyPaused}},_setPausedState:{value:function(e,t){if(b.paused===e)return this;if(b.paused=e,e){var n=_(t,"onPause"),r=_(t,"onPostPause");null==n||n(),D(),H(),null==r||r()}else{var i=_(t,"onUnpause"),a=_(t,"onPostUnpause");null==i||i(),C(),B(),H(),null==a||a()}return this}}}),n.updateContainerElements(e),n}},60885:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{})},38276:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r="html",i="head",a="body",o=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,l=/<body[^]*>/i,u=function(e,t){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},d="object"==typeof window&&window.DOMParser;if("function"==typeof d){var h=new d;u=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),h.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var m=document.implementation.createHTMLDocument();u=function(e,t){if(t){var n=m.documentElement.querySelector(t);return n&&(n.innerHTML=e),m}return m.documentElement.innerHTML=e,m}}var f="object"==typeof document&&document.createElement("template");f&&f.content&&(n=function(e){return f.innerHTML=e,f.content.childNodes}),t.default=function(e){var t,d,h=e.match(o),m=h&&h[1]?h[1].toLowerCase():"";switch(m){case r:var f=c(e);if(!s.test(e)){var p=f.querySelector(i);null===(t=null==p?void 0:p.parentNode)||void 0===t||t.removeChild(p)}if(!l.test(e)){var p=f.querySelector(a);null===(d=null==p?void 0:p.parentNode)||void 0===d||d.removeChild(p)}return f.querySelectorAll(r);case i:case a:var g=u(e).querySelectorAll(m);if(l.test(e)&&s.test(e))return g[0].parentNode.childNodes;return g;default:if(n)return n(e);var p=u(e,a).querySelector(a);return p.childNodes}}},14152:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(38276)),a=n(1507),o=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];var t=e.match(o),n=t?t[1]:void 0;return(0,a.formatDOM)((0,i.default)(e),null,n)}},1507:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var r=n(47915),i=n(60885);function a(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}t.formatAttributes=a,t.formatDOM=function e(t,n,o){void 0===n&&(n=null);for(var s,l=[],u=0,c=t.length;u<c;u++){var d=t[u];switch(d.nodeType){case 1:var h=function(e){var t;return t=e=e.toLowerCase(),i.CASE_SENSITIVE_TAG_NAMES_MAP[t]||e}(d.nodeName);(s=new r.Element(h,a(d.attributes))).children=e("template"===h?d.content.childNodes:d.childNodes,s);break;case 3:s=new r.Text(d.nodeValue);break;case 8:s=new r.Comment(d.nodeValue);break;default:continue}var m=l[u-1]||null;m&&(m.next=s),s.parent=n,s.prev=m,s.next=null,l.push(s)}return o&&((s=new r.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=l[0]||null,s.parent=n,l.unshift(s),l[1]&&(l[1].prev=l[0])),l}},30488:function(e,t,n){var r=n(47915),i=n(14152).default,a=n(50484),o=n(53670);i="function"==typeof i.default?i.default:i;var s={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");return""===e?[]:o(i(e,(t=t||{}).htmlparser2||s),t)}l.domToReact=o,l.htmlToDOM=i,l.attributesToProps=a,l.Comment=r.Comment,l.Element=r.Element,l.ProcessingInstruction=r.ProcessingInstruction,l.Text=r.Text,e.exports=l,l.default=l},50484:function(e,t,n){var r=n(25726),i=n(74606),a=["checked","value"],o=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,u,c,d,h,m={},f=(e=e||{}).type&&s[e.type];for(n in e){if(c=e[n],r.isCustomAttribute(n)){m[n]=c;continue}if(d=l(u=n.toLowerCase())){switch(h=r.getPropertyInfo(d),-1===a.indexOf(d)||-1===o.indexOf(t)||f||(d=l("default"+u)),m[d]=c,h&&h.type){case r.BOOLEAN:m[d]=!0;break;case r.OVERLOADED_BOOLEAN:""===c&&(m[d]=!0)}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(m[n]=c)}return i.setStyleProp(e.style,m),m}},53670:function(e,t,n){var r=n(67294),i=n(50484),a=n(74606),o=a.setStyleProp,s=a.canTextBeChildOfNode;e.exports=function e(t,n){for(var l,u,c,d,h,m=(n=n||{}).library||r,f=m.cloneElement,p=m.createElement,g=m.isValidElement,v=[],b="function"==typeof n.replace,_=n.transform||a.returnFirstArg,E=n.trim,y=0,S=t.length;y<S;y++){if(l=t[y],b&&g(c=n.replace(l))){S>1&&(c=f(c,{key:c.key||y})),v.push(_(c,l,y));continue}if("text"===l.type){if((u=!l.data.trim().length)&&l.parent&&!s(l.parent)||E&&u)continue;v.push(_(l.data,l,y));continue}switch(d=l.attribs,a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===l.type&&a.isCustomComponent(l.name,l.attribs)?o(d.style,d):d&&(d=i(d,l.name)),h=null,l.type){case"script":case"style":l.children[0]&&(d.dangerouslySetInnerHTML={__html:l.children[0].data});break;case"tag":"textarea"===l.name&&l.children[0]?d.defaultValue=l.children[0].data:l.children&&l.children.length&&(h=e(l.children,n));break;default:continue}S>1&&(d.key=y),v.push(_(p(l.name,d,h),l,y))}return 1===v.length?v[0]:v}},74606:function(e,t,n){var r=n(67294),i=n(41476).default,a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),o={reactCompat:!0},s=r.version.split(".")[0]>=16,l=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:s,ELEMENTS_WITH_NO_TEXT_CHILDREN:l,isCustomComponent:function(e,t){return -1===e.indexOf("-")?t&&"string"==typeof t.is:!a.has(e)},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!l.has(e.name)},returnFirstArg:function(e){return e}}},18139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,d=1;function h(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function m(){var e={line:c,column:d};return function(t){return t.position=new f(e),v(r),t}}function f(e){this.start=e,this.end={line:c,column:d},this.source=l.source}f.prototype.content=e;var p=[];function g(t){var n=Error(l.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=c,n.column=d,n.source=e,l.silent)p.push(n);else throw n}function v(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function b(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,h(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}return v(r),function(){var e,n=[];for(b(n);e=function(){var e=m(),n=v(i);if(n){if(_(),!v(a))return g("property missing ':'");var r=v(o),l=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return v(s),l}}();)!1!==e&&(n.push(e),b(n));return n}()}},54138:function(e,t,n){e=n.nmd(e);var r,i,a,o="__lodash_hash_undefined__",s=1/0,l="[object Arguments]",u="[object Array]",c="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Function]",f="[object Map]",p="[object Number]",g="[object Object]",v="[object Promise]",b="[object RegExp]",_="[object Set]",E="[object String]",y="[object Symbol]",S="[object WeakMap]",C="[object ArrayBuffer]",w="[object DataView]",T=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k=/^\w*$/,I=/^\./,A=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,N=/\\(\\)?/g,L=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[l]=M[u]=M[C]=M[c]=M[w]=M[d]=M[h]=M[m]=M[f]=M[p]=M[g]=M[b]=M[_]=M[E]=M[S]=!1;var P="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,B="object"==typeof self&&self&&self.Object===Object&&self,D=P||B||Function("return this")(),R=t&&!t.nodeType&&t,H=R&&e&&!e.nodeType&&e,x=H&&H.exports===R&&P.process,U=function(){try{return x&&x.binding("util")}catch(e){}}(),F=U&&U.isTypedArray;function G(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function j(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function V(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var K=Array.prototype,W=Function.prototype,z=Object.prototype,Z=D["__core-js_shared__"],Y=(r=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",q=W.toString,X=z.hasOwnProperty,J=z.toString,Q=RegExp("^"+q.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=D.Symbol,ee=D.Uint8Array,et=z.propertyIsEnumerable,en=K.splice,er=(i=Object.keys,a=Object,function(e){return i(a(e))}),ei=eL(D,"DataView"),ea=eL(D,"Map"),eo=eL(D,"Promise"),es=eL(D,"Set"),el=eL(D,"WeakMap"),eu=eL(Object,"create"),ec=eH(ei),ed=eH(ea),eh=eH(eo),em=eH(es),ef=eH(el),ep=$?$.prototype:void 0,eg=ep?ep.valueOf:void 0,ev=ep?ep.toString:void 0;function eb(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function e_(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eE(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ey(e){var t=-1,n=e?e.length:0;for(this.__data__=new eE;++t<n;)this.add(e[t])}function eS(e){this.__data__=new e_(e)}function eC(e,t){for(var n=e.length;n--;)if(eU(e[n][0],t))return n;return -1}eb.prototype.clear=function(){this.__data__=eu?eu(null):{}},eb.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},eb.prototype.get=function(e){var t=this.__data__;if(eu){var n=t[e];return n===o?void 0:n}return X.call(t,e)?t[e]:void 0},eb.prototype.has=function(e){var t=this.__data__;return eu?void 0!==t[e]:X.call(t,e)},eb.prototype.set=function(e,t){return this.__data__[e]=eu&&void 0===t?o:t,this},e_.prototype.clear=function(){this.__data__=[]},e_.prototype.delete=function(e){var t=this.__data__,n=eC(t,e);return!(n<0)&&(n==t.length-1?t.pop():en.call(t,n,1),!0)},e_.prototype.get=function(e){var t=this.__data__,n=eC(t,e);return n<0?void 0:t[n][1]},e_.prototype.has=function(e){return eC(this.__data__,e)>-1},e_.prototype.set=function(e,t){var n=this.__data__,r=eC(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},eE.prototype.clear=function(){this.__data__={hash:new eb,map:new(ea||e_),string:new eb}},eE.prototype.delete=function(e){return eN(this,e).delete(e)},eE.prototype.get=function(e){return eN(this,e).get(e)},eE.prototype.has=function(e){return eN(this,e).has(e)},eE.prototype.set=function(e,t){return eN(this,e).set(e,t),this},ey.prototype.add=ey.prototype.push=function(e){return this.__data__.set(e,o),this},ey.prototype.has=function(e){return this.__data__.has(e)},eS.prototype.clear=function(){this.__data__=new e_},eS.prototype.delete=function(e){return this.__data__.delete(e)},eS.prototype.get=function(e){return this.__data__.get(e)},eS.prototype.has=function(e){return this.__data__.has(e)},eS.prototype.set=function(e,t){var n=this.__data__;if(n instanceof e_){var r=n.__data__;if(!ea||r.length<199)return r.push([e,t]),this;n=this.__data__=new eE(r)}return n.set(e,t),this};var ew=function(e,t,n){for(var r=-1,i=Object(e),a=n(e),o=a.length;o--;){var s=a[++r];if(!1===t(i[s],s,i))break}return e};function eT(e,t){var n;t=eP(t,e)?[t]:eG(n=t)?n:eD(n);for(var r=0,i=t.length;null!=e&&r<i;)e=e[eR(t[r++])];return r&&r==i?e:void 0}function ek(e,t){return null!=e&&t in Object(e)}function eI(e,t,n,r,i){return e===t||(null!=e&&null!=t&&(eW(e)||ez(t))?function(e,t,n,r,i,a){var o=eG(e),s=eG(t),m=u,v=u;o||(m=(m=eO(e))==l?g:m),s||(v=(v=eO(t))==l?g:v);var S=m==g&&!G(e),T=v==g&&!G(t),k=m==v;if(k&&!S)return a||(a=new eS),o||eY(e)?eA(e,t,n,r,i,a):function(e,t,n,r,i,a,o){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case C:if(e.byteLength!=t.byteLength||!r(new ee(e),new ee(t)))break;return!0;case c:case d:case p:return eU(+e,+t);case h:return e.name==t.name&&e.message==t.message;case b:case E:return e==t+"";case f:var s=j;case _:var l=2&a;if(s||(s=V),e.size!=t.size&&!l)break;var u=o.get(e);if(u)return u==t;a|=1,o.set(e,t);var m=eA(s(e),s(t),r,i,a,o);return o.delete(e),m;case y:if(eg)return eg.call(e)==eg.call(t)}return!1}(e,t,m,n,r,i,a);if(!(2&i)){var I=S&&X.call(e,"__wrapped__"),A=T&&X.call(t,"__wrapped__");if(I||A){var N=I?e.value():e,L=A?t.value():t;return a||(a=new eS),n(N,L,r,i,a)}}return!!k&&(a||(a=new eS),function(e,t,n,r,i,a){var o=2&i,s=eq(e),l=s.length;if(l!=eq(t).length&&!o)return!1;for(var u=l;u--;){var c=s[u];if(!(o?c in t:X.call(t,c)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var h=!0;a.set(e,t),a.set(t,e);for(var m=o;++u<l;){var f=e[c=s[u]],p=t[c];if(r)var g=o?r(p,f,c,t,e,a):r(f,p,c,e,t,a);if(!(void 0===g?f===p||n(f,p,r,i,a):g)){h=!1;break}m||(m="constructor"==c)}if(h&&!m){var v=e.constructor,b=t.constructor;v!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b)&&(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,eI,n,r,i):e!=e&&t!=t)}function eA(e,t,n,r,i,a){var o=2&i,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var c=-1,d=!0,h=1&i?new ey:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var m=e[c],f=t[c];if(r)var p=o?r(f,m,c,t,e,a):r(m,f,c,e,t,a);if(void 0!==p){if(p)continue;d=!1;break}if(h){if(!function(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}(t,function(e,t){if(!h.has(t)&&(m===e||n(m,e,r,i,a)))return h.add(t)})){d=!1;break}}else if(!(m===f||n(m,f,r,i,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function eN(e,t){var n,r=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function eL(e,t){var n=null==e?void 0:e[t];return!(!eW(n)||Y&&Y in n)&&(eV(n)||G(n)?Q:L).test(eH(n))?n:void 0}var eO=function(e){return J.call(e)};function eM(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e<t}function eP(e,t){if(eG(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||eZ(e))||k.test(e)||!T.test(e)||null!=t&&e in Object(t)}function eB(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(ei&&eO(new ei(new ArrayBuffer(1)))!=w||ea&&eO(new ea)!=f||eo&&eO(eo.resolve())!=v||es&&eO(new es)!=_||el&&eO(new el)!=S)&&(eO=function(e){var t=J.call(e),n=t==g?e.constructor:void 0,r=n?eH(n):void 0;if(r)switch(r){case ec:return w;case ed:return f;case eh:return v;case em:return _;case ef:return S}return t});var eD=ex(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(eZ(e))return ev?ev.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}(t);var t,n=[];return I.test(e)&&n.push(""),e.replace(A,function(e,t,r,i){n.push(r?i.replace(N,"$1"):t||e)}),n});function eR(e){if("string"==typeof e||eZ(e))return e;var t=e+"";return"0"==t&&1/e==-s?"-0":t}function eH(e){if(null!=e){try{return q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ex(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(ex.Cache||eE),n}function eU(e,t){return e===t||e!=e&&t!=t}function eF(e){return ez(e)&&ej(e)&&X.call(e,"callee")&&(!et.call(e,"callee")||J.call(e)==l)}ex.Cache=eE;var eG=Array.isArray;function ej(e){return null!=e&&eK(e.length)&&!eV(e)}function eV(e){var t=eW(e)?J.call(e):"";return t==m||"[object GeneratorFunction]"==t}function eK(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function eW(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ez(e){return!!e&&"object"==typeof e}function eZ(e){return"symbol"==typeof e||ez(e)&&J.call(e)==y}var eY=F?function(e){return F(e)}:function(e){return ez(e)&&eK(e.length)&&!!M[J.call(e)]};function eq(e){return ej(e)?function(e,t){var n=eG(e)||eF(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)X.call(e,a)&&!(i&&("length"==a||eM(a,r)))&&n.push(a);return n}(e):function(e){if(t=e&&e.constructor,e!==("function"==typeof t&&t.prototype||z))return er(e);var t,n=[];for(var r in Object(e))X.call(e,r)&&"constructor"!=r&&n.push(r);return n}(e)}function eX(e){return e}e.exports=function(e,t){var n,r,i,a,o,s,l,u,c={};return t="function"==typeof(l=t)?l:null==l?eX:"object"==typeof l?eG(l)?(i=l[0],a=l[1],eP(i)&&(o=a)==o&&!eW(o)?eB(eR(i),a):function(e){var t,n=void 0===(t=null==e?void 0:eT(e,i))?void 0:t;return void 0===n&&n===a?null!=e&&function(e,t,n){t=eP(t,e)?[t]:eG(r=t)?r:eD(r);for(var r,i,a=-1,o=t.length;++a<o;){var s=eR(t[a]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}if(i)return i;var o=e?e.length:0;return!!o&&eK(o)&&eM(s,o)&&(eG(e)||eF(e))}(e,i,ek):eI(a,n,void 0,3)}):1==(s=function(e){for(var t=eq(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,i==i&&!eW(i)]}return t}(l)).length&&s[0][2]?eB(s[0][0],s[0][1]):function(e){return e===l||function(e,t,n,r){var i=n.length,a=i;if(null==e)return!a;for(e=Object(e);i--;){var o=n[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<a;){var s=(o=n[i])[0],l=e[s],u=o[1];if(o[2]){if(void 0===l&&!(s in e))return!1}else{var c,d=new eS;if(!(void 0===c?eI(u,l,void 0,3,d):c))return!1}}return!0}(e,0,s)}:eP(n=l)?(r=eR(n),function(e){return null==e?void 0:e[r]}):function(e){return eT(e,n)},u=function(e,n,r){c[t(e,n,r)]=e},e&&ew(e,u,eq),c}},47044:function(e,t,n){var r,i,a=1/0,o=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,l="\ud800-\udfff",u="\\u2700-\\u27bf",c="a-z\\xdf-\\xf6\\xf8-\\xff",d="A-Z\\xc0-\\xd6\\xd8-\\xde",h="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",m="['’]",f="["+h+"]",p="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",g="["+c+"]",v="[^"+l+h+"\\d+"+u+c+d+"]",b="(?:\ud83c[\udde6-\uddff]){2}",_="[\ud800-\udbff][\udc00-\udfff]",E="["+d+"]",y="(?:"+g+"|"+v+")",S="(?:"+m+"(?:d|ll|m|re|s|t|ve))?",C="(?:"+m+"(?:D|LL|M|RE|S|T|VE))?",w="(?:"+p+"|\ud83c[\udffb-\udfff])?",T="[\\ufe0e\\ufe0f]?",k="(?:\\u200d(?:"+["[^"+l+"]",b,_].join("|")+")"+T+w+")*",I="(?:"+["["+u+"]",b,_].join("|")+")"+(T+w+k),A=RegExp(m,"g"),N=RegExp(p,"g"),L=RegExp([E+"?"+g+"+"+S+"(?="+[f,E,"$"].join("|")+")","(?:"+E+"|"+v+")+"+C+"(?="+[f,E+y,"$"].join("|")+")",E+"?"+y+"+"+S,E+"+"+C,"\\d+",I].join("|"),"g"),O=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,M="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,P="object"==typeof self&&self&&self.Object===Object&&self,B=M||P||Function("return this")(),D=(r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==r?void 0:r[e]}),R=Object.prototype.toString,H=B.Symbol,x=H?H.prototype:void 0,U=x?x.toString:void 0;function F(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==R.call(t))return U?U.call(e):"";var t,n=e+"";return"0"==n&&1/e==-a?"-0":n}(e)}var G=(i=function(e,t,n){return e+(n?"_":"")+t.toLowerCase()},function(e){var t;return function(e,t,n,r){for(var i=-1,a=e?e.length:0;++i<a;)n=t(n,e[i],i,e);return n}(function(e,t,n){if(e=F(e),void 0===t){var r;return(r=e,O.test(r))?e.match(L)||[]:e.match(o)||[]}return e.match(t)||[]}(((t=F(t=e))&&t.replace(s,D).replace(N,"")).replace(A,"")),i,"")});e.exports=G},93096:function(e,t,n){var r="Expected a function",i=0/0,a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,h=c||d||Function("return this")(),m=Object.prototype.toString,f=Math.max,p=Math.min,g=function(){return h.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==m.call(t))return i;if(v(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=v(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var r=s.test(e);return r||l.test(e)?u(e.slice(2),r?2:8):o.test(e)?i:+e}e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw TypeError(r);return v(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),function(e,t,n){var i,a,o,s,l,u,c=0,d=!1,h=!1,m=!0;if("function"!=typeof e)throw TypeError(r);function _(t){var n=i,r=a;return i=a=void 0,c=t,s=e.apply(r,n)}function E(e){var n=e-u,r=e-c;return void 0===u||n>=t||n<0||h&&r>=o}function y(){var e,n,r,i=g();if(E(i))return S(i);l=setTimeout(y,(e=i-u,n=i-c,r=t-e,h?p(r,o-n):r))}function S(e){return(l=void 0,m&&i)?_(e):(i=a=void 0,s)}function C(){var e,n=g(),r=E(n);if(i=arguments,a=this,u=n,r){if(void 0===l)return c=e=u,l=setTimeout(y,t),d?_(e):s;if(h)return l=setTimeout(y,t),_(u)}return void 0===l&&(l=setTimeout(y,t)),s}return t=b(t)||0,v(n)&&(d=!!n.leading,o=(h="maxWait"in n)?f(b(n.maxWait)||0,t):o,m="trailing"in n?!!n.trailing:m),C.cancel=function(){void 0!==l&&clearTimeout(l),c=0,i=u=a=l=void 0},C.flush=function(){return void 0===l?s:S(g())},C}(e,t,{leading:i,maxWait:t,trailing:a})}},84664:function(e,t,n){"use strict";n.d(t,{l:function(){return s}});var r=n(67294),i=n(25434),a=n(77536);n(11859);var o={form:"media-ui-Form_form-UvJm--ec8QA-",stretch:"media-ui-Form_stretch-zeR0j9ob6As-",center:"media-ui-Form_center-82LKmQUsLaU-",tight:"media-ui-Form_tight-vG2QkggODhU-",default:"media-ui-Form_default-tNBThaJw9IU-",loose:"media-ui-Form_loose-hKxMT3xrzJU-",_default:"media-ui-Form_default-tNBThaJw9IU-"};let s=r.forwardRef(function(e,t){let{children:n,onSubmit:s,noValidate:l=!1,name:u,layout:c="default",autoComplete:d="on",alignDirection:h="start"}=e,m=(0,i.f)(u||""),f=(0,a.Sh)([o.form,o[h],o[c]],e);return r.createElement("form",{className:f,onSubmit:s,noValidate:l,"data-component":m,name:u,autoComplete:d,ref:t},n)})},9339:function(e,t,n){"use strict";n.d(t,{p:function(){return s}});var r=n(67294),i=n(25434),a=n(77536);n(66730);var o={helperText:"media-ui-HelperText_helperText-lrCnwu8QoPI-",error:"media-ui-HelperText_error-6TmQB8EWS-k-",errorDark:"media-ui-HelperText_errorDark-ImbkNjRFdfo-"};let s=(0,r.forwardRef)(function(e,t){let{error:n,text:s,name:l="helper-text",variant:u}=e,c=(0,i.f)(l);return s?r.createElement("div",{ref:t,"data-component":c,role:n?"alert":"status",className:(0,a.Sh)([o.helperText,{[o.error]:n&&"default"===u,[o.errorDark]:n&&"dark"===u}],{...e})},s):r.createElement("div",{ref:t,className:(0,a.Sh)([o.helperText],{...e}),"data-component":c})})},60006:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var r=n(67294),i=n(8599),a=n(25434),o=n(77536);n(70356);var s={wrapper:"media-ui-IconButton_wrapper-ZtMlyZ3p34k-",default:"media-ui-IconButton_default-OUq-rV0XCU4-",small:"media-ui-IconButton_small-nbfyux0zKD0-",tiny:"media-ui-IconButton_tiny-Xv9lcY2NAJY-",outlined:"media-ui-IconButton_outlined-z7c334w-V9s-",sectionDark:"media-ui-IconButton_sectionDark-wSNacVMkig8-","iconButton-phoenix":"media-ui-IconButton_iconButton-phoenix-gC6ermSRsQU-",light:"media-ui-IconButton_light-zZFry5zY6kQ-",outline:"media-ui-IconButton_outline-6-iPazMeTfA-",dark:"media-ui-IconButton_dark-jx5Qu41FbN4-",onlyIcon:"media-ui-IconButton_onlyIcon-6RK7-eVNwGs-",_default:"media-ui-IconButton_default-OUq-rV0XCU4-",iconButton___phoenix:"media-ui-IconButton_iconButton-phoenix-gC6ermSRsQU-"};let l=r.forwardRef(function(e,t){let{colorMode:n="light",appearance:l="default",variant:u="default",size:c="default",type:d="button",title:h="",disabled:m=!1,linkUrl:f,openLinkInNewWindow:p,name:g="icon-button",version:v}=e,b="phoenix"===v?(0,o.Sh)([s["iconButton-".concat(e.version)],s[l],s[c],s[n],s.onlyIcon],{name:g,className:e.className,...e}):(0,o.Sh)([s.wrapper,s[u],s[c]],{...e,name:g}),_=(0,a.f)(g),E=r.useCallback(()=>{},[]);if("phoenix"===v)return r.createElement(i.zx,{...e,name:g,className:b,ref:t,iconPosition:"left"});let{size:y,children:S,...C}=e;return f?r.createElement("a",{title:h||"",href:f,className:s.link,rel:"noopener noreferrer",target:p?"_blank":void 0},r.createElement("button",{...C,disabled:m,title:h,className:b,"data-component":_,type:d,"aria-label":h||"",onClick:E,ref:t},S)):r.createElement("button",{...C,disabled:m,title:h,className:b,"data-component":_,type:d,"aria-label":h||"",ref:t},S)})},24847:function(e,t,n){"use strict";n.d(t,{Z:function(){return u},e:function(){return l}});var r=n(67294),i=n(67673),a=n(25434),o=n(77536);n(6376);var s={banner:"media-ui-NotificationBanner_banner-4eebMkIRJzw-",error:"media-ui-NotificationBanner_error-4z4mv6K0k8k-",success:"media-ui-NotificationBanner_success-APeFHeVYWv4-",warning:"media-ui-NotificationBanner_warning-cAdZufLHk0I-",bannerAttentionWrapper:"media-ui-NotificationBanner_bannerAttentionWrapper-pchGP09RuNQ-",bannerIcon:"media-ui-NotificationBanner_bannerIcon-g6aCeVVqubQ-",bannerTitle:"media-ui-NotificationBanner_bannerTitle-kRajE0ZuW44-",bannerText:"media-ui-NotificationBanner_bannerText-x9X1JVeIIp0-"};let l={error:r.createElement(i._Z,null),warning:r.createElement(i.Ov,null),success:r.createElement(i.yv,null)},u=r.forwardRef(function(e,t){let{title:n,text:i,variant:u,name:c="notification-banner",children:d}=e,[h]=(0,a.f)(c),m=(0,o.Sh)([s.banner,s[u]],e);return r.createElement("div",{className:m,"data-component":h,ref:t},r.createElement("div",{className:s.bannerAttentionWrapper},r.createElement("span",{className:s.bannerIcon},l[u])),r.createElement("div",null,r.createElement("p",{className:s.bannerTitle},n),i&&r.createElement("p",{className:s.bannerText,dangerouslySetInnerHTML:{__html:i}}),d))})},62139:function(e,t,n){"use strict";n.d(t,{U:function(){return s}});var r=n(67294),i=n(8599),a=n(77536);n(57054);var o={outlinedButton:"media-ui-OutlinedButton_outlinedButton-5-j3Ymkvvnw-",default:"media-ui-OutlinedButton_default-WRnB2HeLXEE-",dark:"media-ui-OutlinedButton_dark-8g3alcKPdYM-",bold:"media-ui-OutlinedButton_bold-3okO96gkN08-","outlinedButton-phoenix":"media-ui-OutlinedButton_outlinedButton-phoenix-578zuGBVzuk-",small:"media-ui-OutlinedButton_small-SKjgc7KH9uo-",light:"media-ui-OutlinedButton_light-73gI9xYets4-",disabled:"media-ui-OutlinedButton_disabled-Eh4qsosjw4I-",_default:"media-ui-OutlinedButton_default-WRnB2HeLXEE-",outlinedButton___phoenix:"media-ui-OutlinedButton_outlinedButton-phoenix-578zuGBVzuk-"};let s=r.forwardRef(function(e,t){let{bold:n=!0,children:s,variant:l="default",name:u="outlined-button",version:c,colorMode:d="light",size:h="default",disabled:m}=e,f="phoenix"===c?(0,a.Sh)([o["outlinedButton-".concat(c)],o[d],o[m?"disabled":""],o[h]],{...e,name:u}):(0,a.Sh)([o.outlinedButton,o[l],{[o.bold]:n}],{...e,name:u});return r.createElement(i.zx,{...e,className:f,ref:t,name:u},s)})},33617:function(e,t,n){"use strict";n.d(t,{z:function(){return h}});var r=n(67294),i=n(67673),a=n(9339),o=n(25434),s=n(60006),l=n(50020),u=n(9290),c=n(77536);n(67923);var d={wrapper:"media-ui-OutlinedInputField_wrapper-8NXbpSGRFgg-",inputContainer:"media-ui-OutlinedInputField_inputContainer-Kcz7KRUBBhE-",small:"media-ui-OutlinedInputField_small-nszuIO6Kx9c-",extraSmall:"media-ui-OutlinedInputField_extraSmall-aAiH-ixL2pQ-",input:"media-ui-OutlinedInputField_input-OoJ1rJl3m9o-",password:"media-ui-OutlinedInputField_password-V6uaKpB1lis-",label:"media-ui-OutlinedInputField_label-xQvnS-5rdBM-",searchBar:"media-ui-OutlinedInputField_searchBar-bbhoZ9cdH9g-",labelShrink:"media-ui-OutlinedInputField_labelShrink-r0lqRx4IBjc-",disabled:"media-ui-OutlinedInputField_disabled-yYmAFKrNOS4-",superdark:"media-ui-OutlinedInputField_superdark-Lw8cVl5aJ34-",error:"media-ui-OutlinedInputField_error-6Hj8Tx9d8lI-",hasLabel:"media-ui-OutlinedInputField_hasLabel-rvdHlQauCXI-",hideLabel:"media-ui-OutlinedInputField_hideLabel-KIAqvzSwEvc-",disabledButShowPlaceholder:"media-ui-OutlinedInputField_disabledButShowPlaceholder-i3AiPRZl7ho-",fieldset:"media-ui-OutlinedInputField_fieldset-00gvcQCX8-4-",markets:"media-ui-OutlinedInputField_markets-vbpR66gSbmM-",active:"media-ui-OutlinedInputField_active-uumWRqMz-r8-",focused:"media-ui-OutlinedInputField_focused-Zvw98Co6rls-",errorDark:"media-ui-OutlinedInputField_errorDark-FdBL3fq-nT8-",fieldsetActive:"media-ui-OutlinedInputField_fieldsetActive-iF9q1PDDr9M-",legend:"media-ui-OutlinedInputField_legend-VhT6AUw5LoI-",legendActive:"media-ui-OutlinedInputField_legendActive--iUiMRIN860-",inactive:"media-ui-OutlinedInputField_inactive-NJJMl2q5bo8-",superdarkerror:"media-ui-OutlinedInputField_superdarkerror-GRuLNCOPscA-",icon:"media-ui-OutlinedInputField_icon-Lrj0Rf2vF00-",fullWidth:"media-ui-OutlinedInputField_fullWidth-so82EQNhkRY-",extraDimension:"media-ui-OutlinedInputField_extraDimension-MDww49mFMGA-",extraPadding:"media-ui-OutlinedInputField_extraPadding-6FN-DVEt6gA-",successIconContainer:"media-ui-OutlinedInputField_successIconContainer-21ViW4IZ9V4-",successIconContainerSuperDark:"media-ui-OutlinedInputField_successIconContainerSuperDark--hARScRkaQI-",helperText:"media-ui-OutlinedInputField_helperText-G3BbbLXMkOQ-",searchIcon:"media-ui-OutlinedInputField_searchIcon-vN1XKOuUFGg-",clearInput:"media-ui-OutlinedInputField_clearInput-5r56JmgqVWk-"};let h=(0,r.forwardRef)(function(e,t){var n,h;let{success:m=!1,disabled:f,disableHelperText:p=!1,error:g=!1,helperText:v,hideLabel:b=!1,id:_,inputProps:E={},labelProps:y={},label:S="",name:C,onChange:w,placeholder:T="",required:k,size:I="default",type:A,defaultValue:N,value:L,unstyled:O,variant:M,onClear:P,autocomplete:B,className:D}=e,R=C||"text-input",[H]=(0,o.f)(R),x=(0,r.useRef)((0,c.Mc)()),U=(null==E?void 0:E.type)||A,F=_||(null==E?void 0:E.id)||C||S||x.current,[G,j]=(0,r.useState)(!1),[V,K]=(0,r.useState)(!1),[W,z]=(0,r.useState)(!1),Z=!!((null==L?void 0:L.length)||(null==N?void 0:N.length)),Y={..."undefined"!==L&&{value:L},..."undefined"!==N&&{defaultValue:N}},q=G||Z||!!(null===(n=Y.value)||void 0===n?void 0:n.toString().length)||!!(null===(h=Y.defaultValue)||void 0===h?void 0:h.toString().length),X=(0,r.useCallback)(e=>{j(e)},[G]),J=(0,c.Sh)([d.inputContainer,"search"===A&&d.searchBar,f&&d.disabled,"superdark"===M&&d.superdark,d[I],{...A&&{[d[A]]:!0}}],e),Q=(0,c.Sh)(["label",{[d.error]:g&&("default"===M||"superdark"===M),[d.errorDark]:g&&"dark"===M,[d.labelActive]:G}],{unstyled:e.unstyled,name:"".concat(R,"-label")}),$=(0,c.Sh)([d.input,{[d.error]:g&&("default"===M||"superdark"===M),[d.errorDark]:g&&"dark"===M,[d.superdark]:"superdark"===M,[d.hasLabel]:S&&!b,[d.hideLabel]:b,[d.labelShrink]:q,[d.disabled]:f,[d.disabledButShowPlaceholder]:f&&(b||""===S),[d.active]:G||!!(null==Y?void 0:Y.toString.length)},"password"===U?d.password:""],{unstyled:e.unstyled,name:"".concat(R,"-input")}),ee=(0,c.Sh)([d.icon,d[I]],{unstyled:e.unstyled,name:"".concat(R,"-icon")}),et=(0,r.useCallback)(e=>{e.persist(),E.onChange?E.onChange(e):w&&w(e)},[E,w]),en=(0,r.useCallback)(()=>{K(e=>!e)},[V]),er=(0,r.useCallback)(e=>{e.persist(),E.onFocus&&E.onFocus(e),z(!0)},[E]),ei=(0,r.useCallback)(e=>{e.persist(),z(!1),E.onBlur&&E.onBlur(e)},[E]),ea="password"===U&&V?"text":U;return r.createElement("div",{ref:t,"data-component":H,className:(0,c.Sh)([D,d.wrapper,"css--input-base","css--input-outlined-base","".concat((0,c.lV)(R))])},r.createElement("div",{className:J},r.createElement(u.A,{htmlFor:F,className:(0,c.Sh)([d.label,d[I],{[d.labelShrink]:q,[d.hideLabel]:b,[d.disabled]:f,[d.superdark]:"superdark"===M,[d.error]:g&&("default"===M||"superdark"===M),[d.errorDark]:g&&"dark"===M,[d.focused]:G,[d.active]:Z&&!W,[d.inactive]:!G&&!q}],{unstyled:e.unstyled,name:"".concat(R,"-label-outer")}),spanClassName:Q,label:S,unstyled:O,labelProps:y}),"search"===A&&r.createElement(i.HN,{className:(0,c.Sh)([d.searchIcon,f&&d.disabled,d[I]])}),r.createElement(l.I,{inputProps:{...E,onFocus:er,onBlur:ei,type:ea,"aria-required":k},...Y,id:F,type:ea,className:$,disabled:f,required:k,name:R,placeholder:T,onActiveStatusChange:X,onChange:et,unstyled:O,autoComplete:B}),("password"===A||(null==E?void 0:E.type)==="password")&&r.createElement("span",{className:(0,c.Sh)([ee,{[d.extraDimension]:m&&!g}])},r.createElement(s.h,{type:"button",size:"small",onClick:en,title:V?"Hide Password":"Show Password"},V?r.createElement(i.Yz,null):r.createElement(i.uC,null))),"search"===A&&P&&Z&&r.createElement("span",{className:ee},r.createElement(s.h,{type:"button",size:"small",onClick:P,title:"Clear Input"},r.createElement(i.n$,null))),m&&!g&&r.createElement("span",{className:(0,c.Sh)([ee,{[d.extraPadding]:"password"===A}])},r.createElement("span",{className:(0,c.Sh)([d.successIconContainer,{[d.successIconContainerSuperDark]:"superdark"===M}])},r.createElement(i.MC,null))),r.createElement("fieldset",{className:(0,c.Sh)([d.fieldset,{[d.focused]:W,[d.disabled]:f,[d.active]:Z&&!W,[d.error]:g&&("default"===M||"superdark"===M),[d.errorDark]:g&&"dark"===M,[d.fieldsetActive]:q,[d.markets]:"markets"===M,[d.superdark]:"superdark"===M}])},S&&r.createElement("legend",{className:(0,c.Sh)([d.legend,{[d.legendActive]:q,[d.disabled]:f,[d.error]:g&&"default"===M,[d.errorDark]:g&&"dark"===M,[d.hideLabel]:b}])},S))),!p&&r.createElement(a.p,{className:(0,c.Sh)(d.helperText),error:g,text:v,variant:"dark"===M||"superdark"===M?"dark":"default"}))})},3631:function(e,t,n){"use strict";n.d(t,{Kw:function(){return g},ue:function(){return v},HV:function(){return f}});var r=n(67294),i=n(35436),a=n(25434),o=n(38968),s=n(77536),l=n(16562);n(84575);var u={wrapper:"media-ui-Privacy_wrapper-xY-fKxt67RI-","single-line":"media-ui-Privacy_single-line-ulcImPTIVKA-","tighter-line-height":"media-ui-Privacy_tighter-line-height-7MhHRiQXhKQ-","with-extra-hit-area":"media-ui-Privacy_with-extra-hit-area-was21ivKeWY-",checkbox:"media-ui-Privacy_checkbox-SePr4vZd1Zg-"},c=n(86896),d=n(64618),h=n(70700);let m=()=>{try{return(0,c.Z)()}catch(t){let e=(0,d.Sn)();return(0,h.d)({locale:"en",messages:{}},e)}},f=e=>{if(!e)return!0;switch(e){case"US":case"GB":case"CA":case"FR":case"BR":case"CN":return!1;default:return!0}},p=r.forwardRef(function(e,t){let{onChange:n,checkboxProps:c={},text:d,name:h="PrivacyConsent",checked:m,defaultChecked:p,unstyled:g,countryCode:v,includeTextInHitArea:b=!1,showTextWhenConsentRequired:_=!0}=e,E=(0,a.f)(h),y=(0,l.Q)(),S=null!=d?d:y({id:"media-ui-core_offersAndPromotions",defaultMessage:o.j["media-ui-core_offersAndPromotions"]}),C=r.useRef(null),w=r.useRef(null),[T,k]=r.useState(!0),I=r.useCallback(()=>{if(!w.current)return;let{height:e}=w.current.getBoundingClientRect();e>22?k(!1):k(!0)},[]);r.useEffect(()=>{I();let e=(0,s.Ds)(I,100);return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}},[]);let A=r.useCallback(()=>{C.current&&C.current.click()},[]),N=(0,s.Sh)([u.wrapper,{[u["tighter-line-height"]]:!0,[u["single-line"]]:T,"single-line":T,[u["with-extra-hit-area"]]:b}],{...e,unstyled:g,name:h});return r.createElement("div",{className:N,ref:t,"data-component":E},r.createElement(r.Fragment,null,f(v)&&r.createElement(i.X,{ref:C,size:"small",className:u.checkbox,checked:m,defaultChecked:p,onChange:n,...c}),(f(v)||_)&&r.createElement("p",{dangerouslySetInnerHTML:{__html:S},ref:w,onClick:b?A:void 0})))}),g=r.forwardRef(function(e,t){return r.createElement(p,{name:"PrivacyPolicy",ref:t,...e,showTextWhenConsentRequired:!1})}),v=r.forwardRef(function(e,t){let{name:n="PrivacyShortDisclaimer",unstyled:i,className:o,text:c="",disclaimerLength:d="short",countryCode:h=""}=e,f=(0,a.f)(n),{locale:p}=m(),g=(0,s.Sh)([u.wrapper],{...e,unstyled:i,className:o});if(!c){let e,n;let i=e=>e?(0,s.vw)(p)?e.replace("/notices/","/notices/jp/"):e:"",a=0;switch(h){case"US":e="media-ui-core_policyAgreeUSFull",n="By continuing, I agree to the <link>Privacy Policy</link> and <link>Terms of Service</link>.";break;case"GB":case"CA":case"FR":case"BR":case"CN":e="media-ui-core_policyAgreeOffers",n="By continuing, I agree that Bloomberg may send me news and offers relating to Bloomberg products. I also acknowledge the <link>Privacy Policy</link> and agree to the <link>Terms of Service</link>.";break;default:"full"===d?(e="media-ui-core_policyAgreeUSFull",n="By continuing, I agree to the <link>Privacy Policy</link> and <link>Terms of Service</link>."):(e="media-ui-core_policyAgreeShort",n="By submitting my information, I agree to the <link>Privacy Policy</link> and <link>Terms of Service</link>.")}return r.createElement("div",{className:g,ref:t,"data-component":f},r.createElement("p",null,r.createElement(l.j,{id:e,defaultMessage:n,values:{link:e=>{let t=i(["https://www.bloomberg.com/notices/","https://www.bloomberg.com/notices/tos/"][a++]),n=r.Children.toArray(e).join("").replace(/ /g,"&nbsp;");return r.createElement("a",{href:t,target:"_blank",rel:"noreferrer",dangerouslySetInnerHTML:{__html:n}})}}})))}return r.createElement("div",{className:g,ref:t,"data-component":f},r.createElement("p",{dangerouslySetInnerHTML:{__html:c}}))})},24229:function(e,t,n){"use strict";n.d(t,{F:function(){return s}});var r=n(67294),i=n(8599),a=n(77536);n(50946);var o={transButton:"media-ui-TransparentButton_transButton-ykx0hnORrD0-",small:"media-ui-TransparentButton_small-E4muduTu328-","transButton-phoenix":"media-ui-TransparentButton_transButton-phoenix-ZKYHhMrZ8DM-",default:"media-ui-TransparentButton_default-4QcMWVmuWfw-",light:"media-ui-TransparentButton_light--Aer4BKe2hs-",disabled:"media-ui-TransparentButton_disabled-A9wefiuF1qE-",dark:"media-ui-TransparentButton_dark-v1TGOcesNwk-",transButton___phoenix:"media-ui-TransparentButton_transButton-phoenix-ZKYHhMrZ8DM-",_default:"media-ui-TransparentButton_default-4QcMWVmuWfw-"};let s=r.forwardRef(function(e,t){let{size:n="default",name:s="transparent-button",colorMode:l="light",disabled:u}=e,c="phoenix"===e.version?(0,a.Sh)([o["transButton-".concat(e.version)],o[n],o[u?"disabled":""],o[l]],{...e,name:s}):(0,a.Sh)([o.transButton,o[n]],{...e,name:s});return r.createElement(i.zx,{...e,className:c,ref:t})})},38968:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});let r={"media-ui-core_search":"Search","media-ui-core_linkCopied":"Link Copied","media-ui-core_beforeItsHereItsOnTheBloombergTerminal":"Before it's here, it's on the Bloomberg Terminal.","media-ui-core_learnMore":"Learn More","media-ui-core_haveAConfidentialTipForOurReporters":"Have a confidential tip for our reporters?","media-ui-core_getInTouch":"GET IN TOUCH","media-ui-core_newslettersWillBeSentToEmail":"Newsletters will be sent to {email}","media-ui-core_signUpToThisNewsletter":"Sign up to this newsletter","media-ui-core_signUp":"Sign Up","media-ui-core_youreSignedUp":"You're signed up!","media-ui-core_loading":"Loading...","media-ui-core_nextButtonText":"Next","media-ui-core_previousButtonText":"Previous","media-ui-core_shareThisArticle":"Share this article","media-ui-core_lessThan1mAgo":"<1m ago","media-ui-core_lessThanAMinuteAgo":"Less than a minute ago","media-ui-core_approxDaysAgoShort":"{days}d ago","media-ui-core_approxDaysAgoLong":"{days} days ago","media-ui-core_approxMonthsAgoShort":"{months}mo ago","media-ui-core_approxMonthsAgoLong":"{months} months ago","media-ui-core_approxYearsAgoShort":"{years}y ago","media-ui-core_approxYearsAgoLong":"{years} years ago","media-ui-core_anHourAgo":"An hour ago","media-ui-core_updatedTime":"Updated on {date} at {time}","media-ui-core_policyAgreeShort":"By submitting my information, I agree to the <link>Privacy Policy</link> and <link>Terms of Service</link>.","media-ui-core_policyAgreeOffers":"By continuing, I agree that Bloomberg may send me news and offers relating to Bloomberg products. I also acknowledge the <link>Privacy Policy</link> and agree to the <link>Terms of Service</link>.","media-ui-core_policyAgreeUSFull":"By continuing, I agree to the <link>Privacy Policy</link> and <link>Terms of Service</link>.","media-ui-core_navigationDot":"navigation dot","media-ui-core_navigateLeft":"navigate left","media-ui-core_navigateRight":"navigate right","media-ui-core_onlyEnterNumbers":"You can only enter numbers","media-ui-core_fillOutAllFields":"Please fill out all fields","media-ui-core_digitNOfTotal":"Digit {position} of {total}","media-ui-core_offersAndPromotions":"Bloomberg may send me offers and promotions.","media-ui-core_paginationItemsPerPage":"items <span>per page</span>","media-ui-core_paginationPageOfTotal":"<span>Page</span> {current} of {total}","media-ui-core_paginationNoPagesFound":"no pages found"}},67673:function(e,t,n){"use strict";n.d(t,{FN:function(){return h},HE:function(){return A},HN:function(){return O},Kh:function(){return u},MC:function(){return o},Ov:function(){return y},X:function(){return F},Yz:function(){return U},_M:function(){return c},_Q:function(){return l},_Z:function(){return f},h6:function(){return g},n$:function(){return v},oI:function(){return P},rU:function(){return w},s$:function(){return s},s1:function(){return _},tL:function(){return D},uC:function(){return H},v3:function(){return N},x1:function(){return S},yh:function(){return k},yv:function(){return a}});var r=n(67294),i="Checkmark";function a(e){let{className:t,title:n}=e;return r.createElement("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":n||i},r.createElement("title",null,n||i),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM10.126 18.0042L18 8.03048L16.4921 6.84L9.95682 15.118L7.35852 12.5197L6 13.8782L10.126 18.0042Z",fill:"currentColor"}))}function o(e){let{className:t,title:n}=e,a=n||i;return r.createElement("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",role:"img","aria-label":a,xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,a),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 4.68064L8.87668 21.3035L2 14.4268L4.26419 12.1626L8.59469 16.4931L19.4868 2.6965L22 4.68064Z",fill:"currentColor"}))}function s(){return r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"Chevron Left",role:"img"},r.createElement("title",null,"Chevron Left"),r.createElement("path",{d:"M8.92155 11.9954L16.46 19.5387L14.9977 21L5.99798 11.9945L14.9982 3L16.4595 4.46225L8.92155 11.9954Z",fill:"currentColor"}))}function l(){return r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Chevron Right"},r.createElement("title",null,"Chevron Right"),r.createElement("path",{d:"M15.0784 12.0046L7.54 4.46132L9.00225 3L18.002 12.0055L9.00178 21L7.54047 19.5377L15.0784 12.0046Z",fill:"currentColor"}))}function u(){return r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"Chevron Up",role:"img"},r.createElement("title",null,"Chevron Up"),r.createElement("path",{d:"M12.0046 8.92154L4.46132 16.46L3 14.9977L12.0055 5.99797L21 14.9982L19.5377 16.4595L12.0046 8.92154Z",fill:"currentColor"}))}function c(e){let{title:t="Chevron Down"}=e;return r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":t,role:"img"},r.createElement("title",null,t),r.createElement("path",{d:"M11.9954 15.0785L19.5387 7.54001L21 9.00226L11.9945 18.002L3 9.00179L4.46225 7.54047L11.9954 15.0785Z",fill:"currentColor"}))}var d="Email";function h(){return r.createElement("svg",{width:"24",height:"24","aria-label":d,role:"img",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,d),r.createElement("path",{d:"M2 20V4h20v16H2Zm10-7 8-5V6l-8 5-8-5v2l8 5Z",fill:"currentColor"}))}var m="Exclamation";function f(e){let{className:t}=e;return r.createElement("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",role:"img","aria-label":m,xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,m),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM10.6667 8.66667V6H13.3333V8.66667L12.6625 14H11.3375L10.6667 8.66667ZM10.6667 18V15.3333H13.3333V18H10.6667Z",fill:"currentColor"}))}var p="Exit";function g(e){let{title:t=p,className:n}=e;return r.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":t},r.createElement("title",null,t),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.45 3.45L20.55 2.55L12 11.1L3.45 2.55L2.55 3.45L11.1 12L2.55 20.55L3.45 21.45L12 12.9L20.55 21.45L21.45 20.55L12.9 12L21.45 3.45Z",fill:"currentColor"}))}function v(e){let{title:t=p,className:n}=e;return r.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":t},r.createElement("title",null,t),r.createElement("path",{d:"M12 10.1651L3.83495 2L2 3.83495L10.1651 12L2 20.1651L3.83495 22L12 13.8349L20.1651 22L22 20.1651L13.8349 12L22 3.83495L20.1651 2L12 10.1651Z",fill:"currentColor"}))}var b="Facebook";function _(e){let{className:t}=e;return r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":b,className:t},r.createElement("title",null,b),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12.0611C22 6.50451 17.5229 2 12 2C6.47715 2 2 6.50451 2 12.0611C2 17.0829 5.65686 21.2452 10.4375 22V14.9694H7.89844V12.0611H10.4375V9.84452C10.4375 7.32296 11.9304 5.93012 14.2146 5.93012C15.3087 5.93012 16.4531 6.12663 16.4531 6.12663V8.60261H15.1921C13.9499 8.60261 13.5625 9.37816 13.5625 10.1738V12.0611H16.3359L15.8926 14.9694H13.5625V22C18.3431 21.2452 22 17.0829 22 12.0611Z",fill:"currentColor"}))}var E="Info";function y(){return r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":E,role:"img"},r.createElement("title",null,E),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM11 8V6H13V8H11ZM11 18V10H13V18H11Z",fill:"currentColor"}))}function S(e){let{className:t}=e;return r.createElement("svg",{width:"89",height:"85",viewBox:"0 0 89 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-label":"Line"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M88.54 35.9255C88.54 16.1163 68.6809 0 44.27 0C19.8632 0 0 16.1163 0 35.9255C0 53.685 15.7511 68.5564 37.0251 71.3697C38.465 71.6809 40.4276 72.3199 40.9256 73.5523C41.3737 74.6727 41.216 76.4237 41.0708 77.5565C41.0708 77.5565 40.5521 80.681 40.4401 81.3449C40.2451 82.4652 39.5521 85.7225 44.2741 83.7308C49.0003 81.7391 69.7681 68.7183 79.0544 58.0294C85.4653 50.9962 88.54 43.855 88.54 35.9255ZM73.8135 47.3654H61.3943H61.3777C60.9088 47.3654 60.5312 46.9878 60.5312 46.5189V46.5065V27.2201V27.2035C60.5312 26.7346 60.9088 26.357 61.3777 26.357H61.3943H73.8135C74.2782 26.357 74.66 26.7387 74.66 27.2035V30.3446C74.66 30.8135 74.2824 31.191 73.8135 31.191H65.3612V34.4525H73.8135C74.2782 34.4525 74.66 34.8342 74.66 35.299V38.4401C74.66 38.9089 74.2824 39.2865 73.8135 39.2865H65.3612V42.548H73.8135C74.2782 42.548 74.66 42.9297 74.66 43.3944V46.5355C74.66 46.9878 74.2824 47.3654 73.8135 47.3654ZM27.8098 47.3654C28.2746 47.3654 28.6563 46.9878 28.6563 46.5189V43.3778C28.6563 42.9131 28.2746 42.5314 27.8098 42.5314H19.3575V27.1952C19.3575 26.7304 18.9757 26.3487 18.511 26.3487H15.3699C14.901 26.3487 14.5234 26.7263 14.5234 27.1952V46.5023V46.5148C14.5234 46.9837 14.901 47.3613 15.3699 47.3613H15.3865H27.8098V47.3654ZM35.2923 26.3528H32.1512C31.6864 26.3528 31.3047 26.7304 31.3047 27.1993V46.5189C31.3047 46.9837 31.6823 47.3654 32.1512 47.3654H35.2923C35.7611 47.3654 36.1387 46.9878 36.1387 46.5189V27.1993C36.1387 26.7346 35.7611 26.3528 35.2923 26.3528ZM56.6626 26.3528H53.5215C53.0526 26.3528 52.675 26.7304 52.675 27.1993V38.6724L43.8368 26.7346C43.816 26.7055 43.7911 26.6765 43.7704 26.6475L43.7662 26.6433C43.7496 26.6267 43.733 26.606 43.7164 26.5894C43.7123 26.5852 43.704 26.5811 43.6998 26.5769C43.6832 26.5645 43.6708 26.552 43.6542 26.5396C43.6459 26.5354 43.6376 26.5271 43.6293 26.523C43.6169 26.5105 43.6003 26.5022 43.5837 26.4939C43.5754 26.4898 43.5671 26.4815 43.5588 26.4773C43.5422 26.469 43.5297 26.4607 43.5131 26.4524C43.5048 26.4483 43.4965 26.4441 43.4882 26.44C43.4716 26.4317 43.455 26.4234 43.4384 26.4192C43.4301 26.4151 43.4218 26.4109 43.4094 26.4109C43.3928 26.4068 43.3762 26.3985 43.3596 26.3943C43.3513 26.3902 43.3388 26.3902 43.3305 26.386C43.314 26.3819 43.2974 26.3777 43.2808 26.3736C43.2683 26.3694 43.2559 26.3694 43.2434 26.3694C43.2268 26.3653 43.2144 26.3653 43.1978 26.3653C43.1812 26.3653 43.1687 26.3653 43.1521 26.3611C43.1438 26.3611 43.1314 26.3611 43.1231 26.3611H40.0027C39.538 26.3611 39.1562 26.7387 39.1562 27.2076V46.5272C39.1562 46.992 39.5338 47.3737 40.0027 47.3737H43.1438C43.6127 47.3737 43.9903 46.9961 43.9903 46.5272V35.0541L52.841 47.0086C52.9032 47.0957 52.9779 47.1663 53.0609 47.2202C53.065 47.2243 53.0692 47.2243 53.0692 47.2285C53.0858 47.2409 53.1024 47.2492 53.1231 47.2617C53.1314 47.2658 53.1397 47.27 53.148 47.2741C53.1605 47.2824 53.1771 47.2866 53.1895 47.2949C53.202 47.3032 53.2186 47.3073 53.231 47.3115C53.2393 47.3156 53.2476 47.3198 53.2559 47.3198C53.2767 47.3281 53.2933 47.3322 53.314 47.3364C53.3182 47.3364 53.3223 47.3405 53.3265 47.3405C53.397 47.3571 53.4717 47.3696 53.5464 47.3696H56.6667C57.1315 47.3696 57.5132 46.992 57.5132 46.5231V27.2035C57.5091 26.7346 57.1315 26.3528 56.6626 26.3528Z",fill:"currentColor"}))}var C="Link";function w(){return r.createElement("svg",{width:"24",height:"24","aria-label":C,role:"img",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,C),r.createElement("path",{d:"M3.78112 12C3.78112 10.5609 4.87554 9.39594 6.22747 9.39594L11.0343 9.39594V7.5L6.22747 7.5C3.88841 7.5 2 9.51015 2 12C2 14.4898 3.88841 16.5 6.22747 16.5L11.0343 16.5V14.6041L6.22747 14.6041C4.87554 14.6041 3.78112 13.4391 3.78112 12ZM17.7725 7.5L12.9657 7.5V9.39594L17.7725 9.39594C19.1245 9.39594 20.2189 10.5609 20.2189 12C20.2189 13.4391 19.1245 14.6041 17.7725 14.6041L12.9657 14.6041V16.5L17.7725 16.5C20.1116 16.5 22 14.4898 22 12C22 9.51015 20.1116 7.5 17.7725 7.5ZM6.91416 12C6.91416 12.5254 7.32189 12.9594 7.81545 12.9594L16.206 12.9594C16.6996 12.9594 17.1073 12.5254 17.1073 12C17.1073 11.4746 16.6996 11.0406 16.206 11.0406L7.81545 11.0406C7.32189 11.0406 6.91416 11.4746 6.91416 12Z",fill:"currentColor"}))}var T="LinkedIn";function k(e){let{className:t}=e;return r.createElement("svg",{width:"24",height:"24","aria-label":T,role:"img",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t},r.createElement("title",null,T),r.createElement("path",{d:"M7.13955 5.90917C6.96055 6.0806 6.74824 6.21341 6.51578 6.29937C6.28332 6.38533 6.03568 6.42261 5.78822 6.40888C5.54947 6.42029 5.31096 6.38174 5.08797 6.29569C4.86497 6.20965 4.66239 6.078 4.49319 5.90917C4.33413 5.7507 4.20855 5.56188 4.12392 5.35392C4.03928 5.14595 3.99732 4.9231 4.00052 4.6986C3.99484 4.47377 4.03567 4.25019 4.12045 4.04187C4.20523 3.83356 4.33213 3.64501 4.49319 3.48803C4.66979 3.32232 4.87798 3.1939 5.10532 3.11046C5.33267 3.02702 5.5745 2.99027 5.81637 3.0024C6.05509 2.98987 6.29384 3.02651 6.51782 3.11005C6.74179 3.19359 6.94622 3.32224 7.11843 3.48803C7.43729 3.81162 7.62099 4.24445 7.63222 4.6986C7.63582 4.92316 7.59404 5.14613 7.50939 5.35414C7.42473 5.56216 7.29893 5.75094 7.13955 5.90917V5.90917ZM4.08498 7.76724H7.51961V18.7679H4.08498V7.76724ZM9.52549 9.38602C9.52549 8.8042 9.50437 8.26461 9.46215 7.76724H12.4323L12.5941 9.30157H12.6575C12.9826 8.84796 13.3824 8.45289 13.8399 8.13323C14.4924 7.6923 15.2704 7.47497 16.0569 7.51387C16.5976 7.51311 17.1332 7.61832 17.6335 7.82355C18.1053 8.01653 18.5267 8.31509 18.8652 8.69628C19.2391 9.12775 19.5216 9.63055 19.6957 10.1743C19.9124 10.8566 20.0147 11.5701 19.9983 12.2858V18.782H16.5707V12.6658C16.5974 12.0682 16.4611 11.4747 16.1766 10.9485C16.0381 10.724 15.8392 10.5429 15.6028 10.426C15.3664 10.309 15.1018 10.2608 14.8393 10.2869C14.4213 10.2654 14.0116 10.4095 13.6991 10.6881C13.4306 10.9308 13.2211 11.2317 13.0868 11.5679C13.039 11.6918 13.0105 11.8224 13.0023 11.955V18.7609H9.56068V11.2793C9.56068 10.5896 9.54895 9.95846 9.52549 9.38602V9.38602Z",fill:"currentColor"}))}var I="Lock";function A(e){let{className:t,title:n}=e;return r.createElement("svg",{className:t,width:"24",height:"24","aria-label":I,role:"img",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,n||I),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 7C9.5 5.61929 10.6193 4.5 12 4.5C13.3807 4.5 14.5 5.61929 14.5 7V9H9.5V7ZM7 9V7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7V9H18C19.1046 9 20 9.89543 20 11V18C20 19.1046 19.1046 20 18 20H6C4.89543 20 4 19.1046 4 18V11C4 9.89543 4.89543 9 6 9H7Z",fill:"currentColor"}))}function N(e){let{className:t,title:n}=e,i=n||"Plus";return r.createElement("svg",{className:t,width:"24",height:"24","aria-label":i,role:"img",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,i),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 3H11V11H3V13H11V21H13V13H21V11H13V3Z",fill:"currentColor"}))}var L="Search";function O(e){let{className:t}=e;return r.createElement("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":L},r.createElement("title",null,L),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 20.1125C21 19.8689 20.9095 19.6566 20.7285 19.4756L15.7587 14.4849C16.232 13.8863 16.6009 13.2146 16.8654 12.4698C17.1299 11.7251 17.2622 10.942 17.2622 10.1206C17.2622 9.14617 17.0742 8.2239 16.6984 7.35383C16.3225 6.48375 15.8109 5.72854 15.1636 5.08817C14.5162 4.44779 13.761 3.93968 12.8979 3.56381C12.0348 3.18793 11.1091 3 10.1206 3C9.14617 3 8.2239 3.18793 7.35383 3.56381C6.48375 3.93968 5.72854 4.44779 5.08817 5.08817C4.44779 5.72854 3.93968 6.48375 3.56381 7.35383C3.18793 8.2239 3 9.14617 3 10.1206C3 11.1091 3.18793 12.0348 3.56381 12.8979C3.93968 13.761 4.44779 14.5162 5.08817 15.1636C5.72854 15.8109 6.48375 16.3225 7.35383 16.6984C8.2239 17.0742 9.14617 17.2622 10.1206 17.2622C10.942 17.2622 11.7251 17.1299 12.4698 16.8654C13.2146 16.6009 13.8863 16.232 14.4849 15.7587L19.4756 20.7285C19.5731 20.826 19.6775 20.8956 19.7889 20.9374C19.9002 20.9791 20.0046 21 20.1021 21C20.2135 21 20.3248 20.9791 20.4362 20.9374C20.5476 20.8956 20.645 20.826 20.7285 20.7285C20.9095 20.5615 21 20.3561 21 20.1125ZM5.203 12.1984C4.91762 11.551 4.77493 10.8584 4.77493 10.1206C4.77493 9.39672 4.91762 8.70764 5.203 8.05334C5.48839 7.39904 5.87121 6.83177 6.35149 6.35148C6.83177 5.8712 7.39905 5.48838 8.05335 5.20299C8.70764 4.91761 9.39673 4.77492 10.1206 4.77492C10.8585 4.77492 11.551 4.91761 12.1984 5.20299C12.8457 5.48838 13.413 5.8712 13.9002 6.35148C14.3875 6.83177 14.7703 7.39904 15.0487 8.05334C15.3271 8.70764 15.4663 9.39672 15.4663 10.1206C15.4663 10.8584 15.3271 11.551 15.0487 12.1984C14.7703 12.8457 14.3875 13.413 13.9002 13.9002C13.413 14.3874 12.8457 14.7703 12.1984 15.0487C11.551 15.3271 10.8585 15.4663 10.1206 15.4663C9.39673 15.4663 8.70764 15.3271 8.05335 15.0487C7.39905 14.7703 6.83177 14.3874 6.35149 13.9002C5.87121 13.413 5.48839 12.8457 5.203 12.1984Z",fill:"currentColor"}))}var M="Bloomberg Terminal";function P(e){let{className:t}=e;return r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",role:"img","aria-label":M,xmlns:"http://www.w3.org/2000/svg",className:t},r.createElement("title",null,M),r.createElement("path",{d:"M12.7876 16.67L12.4287 16.6501V17.6072C12.4088 17.6271 12.2891 17.7069 11.99 17.7069C11.6909 17.7069 11.5713 17.6271 11.5513 17.6072V16.6501L11.1924 16.6899C9.43769 16.8495 8.3011 17.5075 8.3011 18.325C8.3011 19.3021 9.85643 20 11.99 20C14.1236 20 15.679 19.3021 15.679 18.325C15.679 17.4875 14.5424 16.8495 12.7876 16.67ZM11.5314 14.2223V7.77767C11.5314 7.33898 11.1725 7 10.7537 7H2.77767C2.33898 7 2 7.33898 2 7.77767V14.2223C2 14.6411 2.33898 15 2.77767 15H10.7537C11.1725 15 11.5314 14.6411 11.5314 14.2223ZM22 7.77767C22 7.35892 21.661 7 21.2223 7H13.2463C12.8275 7 12.4686 7.33898 12.4686 7.77767V14.2223C12.4686 14.6411 12.8076 15 13.2463 15H21.2223C21.6411 15 22 14.661 22 14.2223V7.77767Z",fill:"currentColor"}))}var B="Twitter";function D(e){let{className:t}=e;return r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":B,className:t},r.createElement("title",null,B),r.createElement("path",{d:"M22 5.75994C21.8663 5.96888 21.7242 6.16947 21.5654 6.37005C21.4091 6.56883 21.2417 6.75857 21.0639 6.93838C20.8884 7.11389 20.6962 7.2894 20.5207 7.43984C20.3452 7.59028 20.1446 7.74908 19.9356 7.91623V8.16696C19.9442 8.26428 19.9442 8.36216 19.9356 8.45948C19.9272 9.86509 19.6667 11.2578 19.1667 12.5715C18.6768 13.9535 17.9375 15.234 16.9854 16.3492C15.9538 17.5038 14.7003 18.439 13.2996 19.0988C11.7309 19.8304 10.0156 20.1935 8.285 20.1603C7.72589 20.157 7.16757 20.1179 6.61346 20.0433C6.06192 19.9687 5.51702 19.8514 4.9837 19.6922C4.44731 19.5412 3.92451 19.3455 3.42081 19.1072C2.92938 18.8601 2.45476 18.5809 2 18.2714H2.96949C3.44825 18.2708 3.92617 18.2316 4.39866 18.1544C4.82812 18.0913 5.25066 17.9877 5.66068 17.8452C6.09688 17.7169 6.51737 17.5403 6.91433 17.3187C7.30653 17.0994 7.67607 16.8418 8.01755 16.5497C7.14915 16.5497 6.30645 16.2551 5.62725 15.714C5.28446 15.4765 4.98721 15.1792 4.74969 14.8364C4.49845 14.4784 4.30393 14.0837 4.173 13.6663C4.30262 13.6939 4.4338 13.7134 4.56582 13.7248C4.69663 13.733 4.82782 13.733 4.95863 13.7248C5.13951 13.7368 5.321 13.7368 5.50188 13.7248C5.68528 13.6975 5.86673 13.6584 6.04513 13.6078C5.11309 13.4476 4.27506 12.9436 3.69661 12.1954C3.38066 11.8467 3.1339 11.4411 2.96949 11.0002C2.80046 10.5428 2.71552 10.0587 2.71876 9.57106L3.17008 9.78L3.61304 9.9388L4.09778 10.0224C4.25901 10.0376 4.42131 10.0376 4.58253 10.0224C4.31379 9.83314 4.06461 9.61756 3.8387 9.37883C3.60412 9.13014 3.40703 8.84859 3.25366 8.54306C3.09569 8.24515 2.96962 7.93139 2.87756 7.607C2.80195 7.29527 2.76823 6.97485 2.77727 6.65422C2.7667 6.48444 2.7667 6.31417 2.77727 6.1444C2.80462 5.961 2.8437 5.77954 2.89427 5.60115C2.94442 5.44235 3.01128 5.28355 3.06979 5.1164C3.13396 4.9455 3.21812 4.78278 3.32052 4.63165C3.8146 5.24855 4.37516 5.80912 4.99206 6.30319C5.63366 6.81165 6.32865 7.24882 7.06477 7.607C7.77495 7.99761 8.52987 8.3007 9.313 8.50963C10.1332 8.72561 10.9733 8.85723 11.8203 8.90244C11.7922 8.74483 11.7726 8.58579 11.7618 8.42605V7.94966C11.7583 7.39963 11.8634 6.85431 12.071 6.34498C12.2613 5.8622 12.5454 5.42191 12.9068 5.04954C13.2956 4.68628 13.7418 4.38977 14.2273 4.17198C14.7328 3.94918 15.2796 3.83527 15.832 3.83767C16.1136 3.83817 16.3941 3.87183 16.6678 3.93796C16.9523 4.00034 17.2317 4.08416 17.5036 4.18869C17.7621 4.2943 18.0064 4.43188 18.2307 4.59822C18.4448 4.7609 18.6485 4.93675 18.8408 5.12476C19.0612 5.09688 19.2791 5.05217 19.4927 4.99103C19.7232 4.92955 19.9472 4.84557 20.1613 4.7403C20.3702 4.65672 20.5792 4.57315 20.7881 4.4645L21.415 4.15526C21.3343 4.39055 21.2366 4.6196 21.1224 4.84059C21.0079 5.05789 20.8706 5.26241 20.7129 5.45071C20.5669 5.65022 20.3987 5.83248 20.2115 5.99396C20.0284 6.15427 19.8328 6.29961 19.6264 6.42856C19.8354 6.42856 20.0359 6.37005 20.2365 6.32827C20.4371 6.28648 20.6377 6.24469 20.8466 6.18619C21.0399 6.13416 21.2298 6.06995 21.415 5.99396L22 5.75994Z",fill:"currentColor"}))}var R="Visibility Off";function H(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",role:"img","aria-label":R},r.createElement("title",null,R),r.createElement("path",{d:"M0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"}),r.createElement("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5-.59 1.22-1.42 2.27-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5l2.61 2.61c-.04.01-.08.02-.12.02-1.38 0-2.5-1.12-2.5-2.5 0-.05.01-.08.01-.13zm-3.4-3.4l1.75 1.75c-.23.55-.36 1.15-.36 1.78 0 2.48 2.02 4.5 4.5 4.5.63 0 1.23-.13 1.77-.36l.98.98c-.88.24-1.8.38-2.75.38-3.79 0-7.17-2.13-8.82-5.5.7-1.43 1.72-2.61 2.93-3.53z"}))}var x="Visibility On";function U(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",role:"img","aria-label":x},r.createElement("title",null,x),r.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),r.createElement("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z"}))}function F(e){let{className:t}=e;return r.createElement("svg",{"aria-label":"X",className:t,fill:"none",height:"24",role:"img",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,"X"),r.createElement("path",{d:"M17.175 4h2.761l-6.031 6.777L21 20h-5.554l-4.353-5.592L6.117 20H3.352l6.45-7.25L3 4h5.695l3.93 5.112L17.176 4Zm-.97 14.377h1.529L7.862 5.538H6.219l9.986 12.839Z",fill:"currentColor"}))}},31469:function(e,t,n){"use strict";function r(e){return"number"==typeof e}n.d(t,{h:function(){return r}})},16562:function(e,t,n){"use strict";n.d(t,{j:function(){return ti},Q:function(){return tr}});var r,i,a,o,s,l,u=n(67294),c=n(86896),d=n(64618),h=n(70700),m=n(85893),f=n(44012),p=function(e,t){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function g(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var v=function(){return(v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function b(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function _(e,t){var n=t&&t.cache?t.cache:w,r=t&&t.serializer?t.serializer:S;return(t&&t.strategy?t.strategy:function(e,t){var n,r,i=1===e.length?E:y;return n=t.cache.create(),r=t.serializer,i.bind(this,e,n,r)})(e,{cache:n,serializer:r})}function E(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),a=t.get(i);return typeof a>"u"&&(a=e.call(this,r),t.set(i,a)),a}function y(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,r),t.set(i,a)),a}"function"==typeof SuppressedError&&SuppressedError;var S=function(){return JSON.stringify(arguments)},C=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}(),w={create:function(){return new C}},T={variadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,y.bind(this,e,n,r)},monadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,E.bind(this,e,n,r)}};(Q=en||(en={})).FORMAT_ERROR="FORMAT_ERROR",Q.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",Q.INVALID_CONFIG="INVALID_CONFIG",Q.MISSING_DATA="MISSING_DATA",Q.MISSING_TRANSLATION="MISSING_TRANSLATION";var k=function(e){function t(n,r,i){var a=this,o=i?i instanceof Error?i:Error(String(i)):void 0;return(a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(o?"\n".concat(o.message,"\n").concat(o.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return g(t,e),t}(Error),I=function(e){function t(t,n){return e.call(this,en.UNSUPPORTED_FORMATTER,t,n)||this}return g(t,e),t}(k),A=function(e){function t(t,n){return e.call(this,en.INVALID_CONFIG,t,n)||this}return g(t,e),t}(k),N=function(e){function t(t,n){return e.call(this,en.MISSING_DATA,t,n)||this}return g(t,e),t}(k),L=function(e){function t(t,n,r){var i=e.call(this,en.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),r)||this;return i.locale=n,i}return g(t,e),t}(k),O=function(e){function t(t,n,r,i){var a=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,i)||this;return a.descriptor=r,a.locale=n,a}return g(t,e),t}(L),M=function(e){function t(t,n){var r=e.call(this,en.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", 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 r.descriptor=t,r}return g(t,e),t}(k);function P(e){return e.type===ei.literal}function B(e){return e.type===ei.number}function D(e){return e.type===ei.date}function R(e){return e.type===ei.time}function H(e){return e.type===ei.select}function x(e){return e.type===ei.plural}function U(e){return e.type===ei.tag}function F(e){return!!(e&&"object"==typeof e&&e.type===ea.number)}function G(e){return!!(e&&"object"==typeof e&&e.type===ea.dateTime)}($=er||(er={}))[$.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",$[$.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",$[$.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",$[$.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",$[$.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",$[$.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",$[$.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",$[$.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",$[$.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",$[$.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",$[$.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",$[$.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",$[$.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",$[$.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",$[$.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",$[$.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",$[$.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",$[$.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",$[$.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",$[$.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",$[$.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",$[$.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",$[$.INVALID_TAG=23]="INVALID_TAG",$[$.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",$[$.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",$[$.UNCLOSED_TAG=27]="UNCLOSED_TAG",(ee=ei||(ei={}))[ee.literal=0]="literal",ee[ee.argument=1]="argument",ee[ee.number=2]="number",ee[ee.date=3]="date",ee[ee.time=4]="time",ee[ee.select=5]="select",ee[ee.plural=6]="plural",ee[ee.pound=7]="pound",ee[ee.tag=8]="tag",(et=ea||(ea={}))[et.number=0]="number",et[et.dateTime=1]="dateTime";var j=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,V={"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"]},K=/(?:[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,W=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,z=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Z=/^(@+)?(\+|#+)?[rs]?$/g,Y=/(\*)(0+)|(#+)(0+)|(0+)/g,q=/^(0+)$/;function X(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Z,function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""}),t}function J(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}var Q,$,ee,et,en,er,ei,ea,eo,es=new RegExp("^".concat(j.source,"*")),el=new RegExp("".concat(j.source,"*$"));function eu(e,t){return{start:e,end:t}}var ec=!!String.prototype.startsWith&&"_a".startsWith("a",1),ed=!!String.fromCodePoint,eh=!!Object.fromEntries,em=!!String.prototype.codePointAt,ef=!!String.prototype.trimStart,ep=!!String.prototype.trimEnd,eg=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&9007199254740991>=Math.abs(e)},ev=!0;try{var eb=eT("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ev=(null===(eo=eb.exec("a"))||void 0===eo?void 0:eo[0])==="a"}catch(e){ev=!1}var e_=ec?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},eE=ed?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,a=0;i>a;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return r},ey=eh?Object.fromEntries:function(e){for(var t={},n=0;n<e.length;n++){var r=e[n],i=r[0],a=r[1];t[i]=a}return t},eS=em?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},eC=ef?function(e){return e.trimStart()}:function(e){return e.replace(es,"")},ew=ep?function(e){return e.trimEnd()}:function(e){return e.replace(el,"")};function eT(e,t){return new RegExp(e,t)}if(ev){var ek=eT("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");o=function(e,t){var n;return ek.lastIndex=t,null!==(n=ek.exec(e)[1])&&void 0!==n?n:""}}else o=function(e,t){for(var n=[];;){var r,i=eS(e,t);if(void 0===i||eN(i)||(r=i)>=33&&r<=35||36===r||r>=37&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||r>=162&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||r>=8208&&r<=8213||r>=8214&&r<=8215||8216===r||8217===r||8218===r||r>=8219&&r<=8220||8221===r||8222===r||8223===r||r>=8224&&r<=8231||r>=8240&&r<=8248||8249===r||8250===r||r>=8251&&r<=8254||r>=8257&&r<=8259||8260===r||8261===r||8262===r||r>=8263&&r<=8273||8274===r||8275===r||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||8608===r||r>=8609&&r<=8610||8611===r||r>=8612&&r<=8613||8614===r||r>=8615&&r<=8621||8622===r||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||8658===r||8659===r||8660===r||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||8968===r||8969===r||8970===r||8971===r||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||9001===r||9002===r||r>=9003&&r<=9083||9084===r||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||9655===r||r>=9656&&r<=9664||9665===r||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||9839===r||r>=9840&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||r>=10132&&r<=10175||r>=10176&&r<=10180||10181===r||10182===r||r>=10183&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||r>=10649&&r<=10711||10712===r||10713===r||10714===r||10715===r||r>=10716&&r<=10747||10748===r||10749===r||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||11158===r||r>=11159&&r<=11263||r>=11776&&r<=11777||11778===r||11779===r||11780===r||11781===r||r>=11782&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||r>=11790&&r<=11798||11799===r||r>=11800&&r<=11801||11802===r||11803===r||11804===r||11805===r||r>=11806&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||r>=11818&&r<=11822||11823===r||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||11840===r||11841===r||11842===r||r>=11843&&r<=11855||r>=11856&&r<=11857||11858===r||r>=11859&&r<=11903||r>=12289&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||r>=12306&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||r>=12318&&r<=12319||12320===r||12336===r||64830===r||64831===r||r>=65093&&r<=65094)break;n.push(i),t+=i>=65536?2:1}return eE.apply(void 0,n)};var eI=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,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else{if(125===i&&e>0)break;if(35===i&&("plural"===t||"selectordinal"===t)){var o=this.clonePosition();this.bump(),r.push({type:ei.pound,location:eu(o,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&eA(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}else{if(n)break;return this.error(er.UNMATCHED_CLOSING_TAG,eu(this.clonePosition(),this.clonePosition()))}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ei.literal,value:"<".concat(r,"/>"),location:eu(n,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(er.INVALID_TAG,eu(n,this.clonePosition()));var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(!this.bumpIf("</"))return this.error(er.UNCLOSED_TAG,eu(n,this.clonePosition()));if(this.isEOF()||!eA(this.char()))return this.error(er.INVALID_TAG,eu(o,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(er.UNMATCHED_CLOSING_TAG,eu(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ei.tag,value:r,children:a,location:eu(n,this.clonePosition())},err:null}:this.error(er.INVALID_TAG,eu(o,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 n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=eu(n,this.clonePosition());return{val:{type:ei.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(eA(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 n=this.char();if(39===n){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(n);this.bump()}return eE.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),eE(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(er.EXPECT_ARGUMENT_CLOSING_BRACE,eu(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(er.EMPTY_ARGUMENT,eu(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(er.MALFORMED_ARGUMENT,eu(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(er.EXPECT_ARGUMENT_CLOSING_BRACE,eu(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ei.argument,value:r,location:eu(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(er.EXPECT_ARGUMENT_CLOSING_BRACE,eu(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(er.MALFORMED_ARGUMENT,eu(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=o(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:eu(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(o){case"":return this.error(er.EXPECT_ARGUMENT_TYPE,eu(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var d=ew(c.val);if(0===d.length)return this.error(er.EXPECT_ARGUMENT_STYLE,eu(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:eu(u,this.clonePosition())}}var h=this.tryParseArgumentClose(r);if(h.err)return h;var m=eu(r,this.clonePosition());if(l&&e_(null==l?void 0:l.style,"::",0)){var f,p=eC(l.style.slice(2));if("number"===o){var c=this.parseNumberSkeletonFromString(p,l.styleLocation);return c.err?c:{val:{type:ei.number,value:n,location:m,style:c.val},err:null}}if(0===p.length)return this.error(er.EXPECT_DATE_TIME_SKELETON,m);var g=p;this.locale&&(g=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(1&a),s=a<2?1:3+(a>>1),l=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 n,r=e.language;return"root"!==r&&(n=e.maximize().region),(V[n||""]||V[r||""]||V["".concat(r,"-001")]||V["001"])[0]}(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)n+="a";for(;o-- >0;)n=l+n}else"J"===i?n+="H":n+=i}return n}(p,this.locale));var d={type:ea.dateTime,pattern:g,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(f={},g.replace(K,function(e){var t=e.length;switch(e[0]){case"G":f.era=4===t?"long":5===t?"narrow":"short";break;case"y":f.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":f.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":f.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":f.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");f.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");f.weekday=["short","long","narrow","short"][t-4];break;case"a":f.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":f.hourCycle="h12",f.hour=["numeric","2-digit"][t-1];break;case"H":f.hourCycle="h23",f.hour=["numeric","2-digit"][t-1];break;case"K":f.hourCycle="h11",f.hour=["numeric","2-digit"][t-1];break;case"k":f.hourCycle="h24",f.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":f.minute=["numeric","2-digit"][t-1];break;case"s":f.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":f.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""}),f):{}};return{val:{type:"date"===o?ei.date:ei.time,value:n,location:m,style:d},err:null}}return{val:{type:"number"===o?ei.number:"date"===o?ei.date:ei.time,value:n,location:m,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(er.EXPECT_SELECT_ARGUMENT_OPTIONS,eu(b,v({},b)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),E=0;if("select"!==o&&"offset"===_.value){if(!this.bumpIf(":"))return this.error(er.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,eu(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(er.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,er.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),_=this.parseIdentifierIfPossible(),E=c.val}var y=this.tryParsePluralOrSelectOptions(e,o,t,_);if(y.err)return y;var h=this.tryParseArgumentClose(r);if(h.err)return h;var S=eu(r,this.clonePosition());return"select"===o?{val:{type:ei.select,value:n,options:ey(y.val),location:S},err:null}:{val:{type:ei.plural,value:n,options:ey(y.val),offset:E,pluralType:"plural"===o?"cardinal":"ordinal",location:S},err:null};default:return this.error(er.INVALID_ARGUMENT_TYPE,eu(a,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(er.EXPECT_ARGUMENT_CLOSING_BRACE,eu(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 n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(er.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,eu(n,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 n=[];try{n=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(W).filter(function(e){return e.length>0}),n=[],r=0;r<t.length;r++){var i=t[r].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var a=i[0],o=i.slice(1),s=0;s<o.length;s++)if(0===o[s].length)throw Error("Invalid number skeleton");n.push({stem:a,options:o})}return n}(e)}catch(e){return this.error(er.INVALID_NUMBER_SKELETON,t)}return{val:{type:ea.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.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=r.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=v(v(v({},t),{notation:"scientific"}),r.options.reduce(function(e,t){return v(v({},e),J(t)||{})},{}));continue;case"engineering":t=v(v(v({},t),{notation:"engineering"}),r.options.reduce(function(e,t){return v(v({},e),J(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(r.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(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Y,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else{if(i&&a)throw Error("We currently do not support maximum integer digits");if(o)throw Error("We currently do not support exact integer digits")}return""});continue}if(q.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(z.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(z,function(e,n,r,i,a,o){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});var i=r.options[0];"w"===i?t=v(v({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=v(v({},t),X(i)));continue}if(Z.test(r.stem)){t=v(v({},t),X(r.stem));continue}var a=J(r.stem);a&&(t=v(v({},t),a));var o=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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!q.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);o&&(t=v(v({},t),o))}return t}(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,l=r.value,u=r.location;;){if(0===l.length){var c=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(er.EXPECT_PLURAL_ARGUMENT_SELECTOR,er.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=eu(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(s.has(l))return this.error("select"===t?er.DUPLICATE_SELECT_ARGUMENT_SELECTOR:er.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?er.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:er.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,eu(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,n);if(m.err)return m;var f=this.tryParseArgumentClose(h);if(f.err)return f;o.push([l,{value:m.val,location:eu(h,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===o.length?this.error("select"===t?er.EXPECT_SELECT_ARGUMENT_SELECTOR:er.EXPECT_PLURAL_ARGUMENT_SELECTOR,eu(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(er.MISSING_OTHER_CLAUSE,eu(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=10*a+(o-48),this.bump();else break}var s=eu(r,this.clonePosition());return i?eg(a*=n)?{val:a,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=eS(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(e_(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(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!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()&&eN(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function eA(e){return e>=97&&e<=122||e>=65&&e<=90}function eN(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function eL(e,t){void 0===t&&(t={});var n=new eI(e,t=v({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(n.err){var r=SyntaxError(er[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,H(t)||x(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else B(t)&&F(t.style)||(D(t)||R(t))&&G(t.style)?delete t.style.location:U(t)&&e(t.children)})}(n.val),n.val}(r=s||(s={})).MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API";var eO=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return g(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),eM=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),s.INVALID_VALUE,i)||this}return g(t,e),t}(eO),eP=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),s.INVALID_VALUE,r)||this}return g(t,e),t}(eO),eB=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),s.MISSING_VALUE,n)||this}return g(t,e),t}(eO);function eD(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}(i=l||(l={}))[i.literal=0]="literal",i[i.object=1]="object";var eR=function(){function e(t,n,r,i){void 0===n&&(n=e.defaultLocale);var a,o,u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=u.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce(function(e,t){return e.length&&t.type===l.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return function e(t,n,r,i,a,o,u){if(1===t.length&&P(t[0]))return[{type:l.literal,value:t[0].value}];for(var c=[],d=0;d<t.length;d++){var h=t[d];if(P(h)){c.push({type:l.literal,value:h.value});continue}if(h.type===ei.pound){"number"==typeof o&&c.push({type:l.literal,value:r.getNumberFormat(n).format(o)});continue}var m=h.value;if(!(a&&m in a))throw new eB(m,u);var f=a[m];if(h.type===ei.argument){f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),c.push({type:"string"==typeof f?l.literal:l.object,value:f});continue}if(D(h)){var p="string"==typeof h.style?i.date[h.style]:G(h.style)?h.style.parsedOptions:void 0;c.push({type:l.literal,value:r.getDateTimeFormat(n,p).format(f)});continue}if(R(h)){var p="string"==typeof h.style?i.time[h.style]:G(h.style)?h.style.parsedOptions:i.time.medium;c.push({type:l.literal,value:r.getDateTimeFormat(n,p).format(f)});continue}if(B(h)){var p="string"==typeof h.style?i.number[h.style]:F(h.style)?h.style.parsedOptions:void 0;p&&p.scale&&(f*=p.scale||1),c.push({type:l.literal,value:r.getNumberFormat(n,p).format(f)});continue}if(U(h)){var g=h.children,v=h.value,b=a[v];if("function"!=typeof b)throw new eP(v,"function",u);var _=b(e(g,n,r,i,a,o).map(function(e){return e.value}));Array.isArray(_)||(_=[_]),c.push.apply(c,_.map(function(e){return{type:"string"==typeof e?l.literal:l.object,value:e}}))}if(H(h)){var E=h.options[f]||h.options.other;if(!E)throw new eM(h.value,f,Object.keys(h.options),u);c.push.apply(c,e(E.value,n,r,i,a));continue}if(x(h)){var E=h.options["=".concat(f)];if(!E){if(!Intl.PluralRules)throw new eO('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',s.MISSING_INTL_API,u);var y=r.getPluralRules(n,{type:h.pluralType}).select(f-(h.offset||0));E=h.options[y]||h.options.other}if(!E)throw new eM(h.value,f,Object.keys(h.options),u);c.push.apply(c,e(E.value,n,r,i,a,f-(h.offset||0)));continue}}return c.length<2?c:c.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===l.literal&&t.type===l.literal?n.value+=t.value:e.push(t),e},[])}(u.ast,u.locales,u.formatters,u.formats,e,void 0,u.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=u.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=i||{},d=(c.formatters,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(c,["formatters"]));this.ast=e.__parse(t,v(v({},d),{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=(a=e.formats,r?Object.keys(a).reduce(function(e,t){var n,i;return e[t]=(n=a[t],(i=r[t])?v(v(v({},n||{}),i||{}),Object.keys(n).reduce(function(e,t){return e[t]=v(v({},n[t]),i[t]||{}),e},{})):n),e},v({},a)):a),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,b([void 0],t,!1)))},{cache:eD(o.number),strategy:T.variadic}),getDateTimeFormat:_(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,b([void 0],t,!1)))},{cache:eD(o.dateTime),strategy:T.variadic}),getPluralRules:_(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,b([void 0],t,!1)))},{cache:eD(o.pluralRules),strategy:T.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=eL,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 eH(e,t,n){return void 0===n&&(n={}),t.reduce(function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t},{})}var ex={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function eU(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function eF(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function eG(e,t,n,r){var i,a=e&&e[t];if(a&&(i=a[n]),i)return i;r(new I("No ".concat(t," format named: ").concat(n)))}var ej=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function eV(e,t,n,r){var i=e.locale,a=e.formats,o=e.onError,s=e.timeZone;void 0===r&&(r={});var l=r.format,u=eH(r,ej,v(v({},s&&{timeZone:s}),l&&eG(a,t,l,o)));return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=v(v({},u),{hour:"numeric",minute:"numeric"})),n(i,u)}function eK(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],o="string"==typeof i?new Date(i||0):i;try{return eV(e,"date",t,void 0===a?{}:a).format(o)}catch(t){e.onError(new L("Error formatting date.",e.locale,t))}return String(o)}function eW(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],o="string"==typeof i?new Date(i||0):i;try{return eV(e,"time",t,void 0===a?{}:a).format(o)}catch(t){e.onError(new L("Error formatting time.",e.locale,t))}return String(o)}function ez(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],o=n[2],s="string"==typeof i?new Date(i||0):i,l="string"==typeof a?new Date(a||0):a;try{return eV(e,"dateTimeRange",t,void 0===o?{}:o).formatRange(s,l)}catch(t){e.onError(new L("Error formatting date time range.",e.locale,t))}return String(s)}function eZ(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],o="string"==typeof i?new Date(i||0):i;try{return eV(e,"date",t,void 0===a?{}:a).formatToParts(o)}catch(t){e.onError(new L("Error formatting date.",e.locale,t))}return[]}function eY(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],o="string"==typeof i?new Date(i||0):i;try{return eV(e,"time",t,void 0===a?{}:a).formatToParts(o)}catch(t){e.onError(new L("Error formatting time.",e.locale,t))}return[]}var eq=["style","type","fallback","languageDisplay"];function eX(e,t,n,r){var i=e.locale,a=e.onError;Intl.DisplayNames||a(new eO('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',s.MISSING_INTL_API));var o=eH(r,eq);try{return t(i,o).of(n)}catch(e){a(new L("Error formatting display name.",i,e))}}var eJ=["type","style"],eQ=Date.now();function e$(e,t,n,r){void 0===r&&(r={});var i=e0(e,t,n,r).reduce(function(e,t){var n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e},[]);return 1===i.length?i[0]:0===i.length?"":i}function e0(e,t,n,r){var i=e.locale,a=e.onError;void 0===r&&(r={}),Intl.ListFormat||a(new eO('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',s.MISSING_INTL_API));var o=eH(r,eJ);try{var l={},u=n.map(function(e,t){if("object"==typeof e){var n="".concat(eQ,"_").concat(t,"_").concat(eQ);return l[n]=e,n}return String(e)});return t(i,o).formatToParts(u).map(function(e){return"literal"===e.type?e:v(v({},e),{value:l[e.value]||e.value})})}catch(e){a(new L("Error formatting list.",i,e))}return n}function e1(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=v({timeZone:t},e[r]),n},{})}function e2(e,t){return Object.keys(v(v({},e),t)).reduce(function(n,r){return n[r]=v(v({},e[r]||{}),t[r]||{}),n},{})}function e3(e,t){if(!t)return e;var n=eR.formats;return v(v(v({},n),e),{date:e2(e1(n.date,t),e1(e.date||{},t)),time:e2(e1(n.time,t),e1(e.time||{},t))})}var e4=function(e,t,n,r,i){var a=e.locale,o=e.formats,s=e.messages,l=e.defaultLocale,u=e.defaultFormats,c=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,m=e.defaultRichTextElements;void 0===n&&(n={id:""});var f=n.id,p=n.defaultMessage;!function(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}(!!f,"[@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 g=String(f),b=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(b)&&1===b.length&&b[0].type===ei.literal)return b[0].value;if(!r&&b&&"string"==typeof b&&!m)return b.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=v(v({},m),r||{}),o=e3(o,h),u=e3(u,h),!b){if(!1===c&&""===b)return b;if((!p||a&&a.toLowerCase()!==l.toLowerCase())&&d(new M(n,a)),p)try{var _=t.getMessageFormat(p,l,u,i);return _.format(r)}catch(e){return d(new O('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),a,n,e)),"string"==typeof p?p:g}return g}try{var _=t.getMessageFormat(b,a,o,v({formatters:t},i||{}));return _.format(r)}catch(e){d(new O('Error formatting message: "'.concat(g,'", using ').concat(p?"default message":"id"," as fallback."),a,n,e))}if(p)try{var _=t.getMessageFormat(p,l,u,i);return _.format(r)}catch(e){d(new O('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),a,n,e))}return"string"==typeof b?b:"string"==typeof p?p:g},e6=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function e8(e,t,n){var r=e.locale,i=e.formats,a=e.onError;void 0===n&&(n={});var o=n.format;return t(r,eH(n,e6,o&&eG(i,"number",o,a)||{}))}function e5(e,t,n,r){void 0===r&&(r={});try{return e8(e,t,r).format(n)}catch(t){e.onError(new L("Error formatting number.",e.locale,t))}return String(n)}function e7(e,t,n,r){void 0===r&&(r={});try{return e8(e,t,r).formatToParts(n)}catch(t){e.onError(new L("Error formatting number.",e.locale,t))}return[]}var e9=["type"];function te(e,t,n,r){var i=e.locale,a=e.onError;void 0===r&&(r={}),Intl.PluralRules||a(new eO('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',s.MISSING_INTL_API));var o=eH(r,e9);try{return t(i,o).select(n)}catch(e){a(new L("Error formatting plural.",i,e))}return"other"}var tt=["numeric","style"];function tn(e,t,n,r,i){void 0===i&&(i={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new eO('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',s.MISSING_INTL_API));try{var a,o,l,u,c;return(a=i,o=e.locale,l=e.formats,u=e.onError,void 0===a&&(a={}),c=a.format,t(o,eH(a,tt,!!c&&eG(l,"relative",c,u)||{}))).format(n,r)}catch(t){e.onError(new L("Error formatting relative time.",e.locale,t))}return String(n)}let tr=(a={context:4713,"media-ui-core_search":8130675,"media-ui-core_linkCopied":8130679,"media-ui-core_beforeItsHereItsOnTheBloombergTerminal":8130580,"media-ui-core_learnMore":8130581,"media-ui-core_haveAConfidentialTipForOurReporters":8130680,"media-ui-core_getInTouch":8130681,"media-ui-core_newslettersWillBeSentToEmail":8130682,"media-ui-core_signUpToThisNewsletter":8130694,"media-ui-core_signUp":8127459,"media-ui-core_youreSignedUp":8130683,"media-ui-core_loading":8130696,"media-ui-core_nextButtonText":8130697,"media-ui-core_previousButtonText":8130698,"media-ui-core_shareThisArticle":8130699,"media-ui-core_lessThan1mAgo":8136464,"media-ui-core_lessThanAMinuteAgo":8136465,"media-ui-core_approxDaysAgoShort":8136471,"media-ui-core_approxDaysAgoLong":8136473,"media-ui-core_approxMonthsAgoShort":8136475,"media-ui-core_approxMonthsAgoLong":8136476,"media-ui-core_approxYearsAgoShort":8136477,"media-ui-core_approxYearsAgoLong":8136481,"media-ui-core_anHourAgo":8136483,"media-ui-core_updatedTime":8136485,"media-ui-core_policyAgreeShort":8251054,"media-ui-core_policyAgreeOffers":8251055,"media-ui-core_policyAgreeUSFull":8251056,"media-ui-core_navigationDot":8250799,"media-ui-core_navigateLeft":8250800,"media-ui-core_navigateRight":8250801,"media-ui-core_onlyEnterNumbers":8250802,"media-ui-core_fillOutAllFields":8250803,"media-ui-core_digitNOfTotal":8250804,"media-ui-core_offersAndPromotions":8185809,"media-ui-core_paginationItemsPerPage":8263141,"media-ui-core_paginationPageOfTotal":8263142,"media-ui-core_paginationNoPagesFound":8263143},()=>{let e;try{let t=(0,c.Z)();e=(0,u.useCallback)((e,n)=>{let{id:r,defaultMessage:i}=e;return t.formatMessage({id:r,defaultMessage:i},n)},[t,a])}catch(r){let t=(0,d.Sn)(),n=(0,h.d)({locale:"en",messages:{}},t);e=(e,t)=>{let{defaultMessage:r,id:i}=e;return n.formatMessage({defaultMessage:r,id:i},t)}}return e}),ti=e=>{let{id:t,values:n,defaultMessage:r,children:i,...a}=e;try{return(0,c.Z)(),(0,m.jsx)(f.Z,{id:t,values:n,children:i,defaultMessage:r,...a})}catch(a){var o,s,l,u,d,h,p,g,E,y,S,C,w,k;let e=(o={locale:"en",messages:{}},void 0===(s=eU())&&(s=eU()),l=Intl.RelativeTimeFormat,u=Intl.ListFormat,d=Intl.DisplayNames,h=_(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,b([void 0],t,!1)))},{cache:eF(s.dateTime),strategy:T.variadic}),p=_(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,b([void 0],t,!1)))},{cache:eF(s.number),strategy:T.variadic}),g=_(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,b([void 0],t,!1)))},{cache:eF(s.pluralRules),strategy:T.variadic}),E={getDateTimeFormat:h,getNumberFormat:p,getMessageFormat:_(function(e,t,n,r){return new eR(e,t,n,v({formatters:{getNumberFormat:p,getDateTimeFormat:h,getPluralRules:g}},r||{}))},{cache:eF(s.message),strategy:T.variadic}),getRelativeTimeFormat:_(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(l.bind.apply(l,b([void 0],e,!1)))},{cache:eF(s.relativeTime),strategy:T.variadic}),getPluralRules:g,getListFormat:_(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(u.bind.apply(u,b([void 0],e,!1)))},{cache:eF(s.list),strategy:T.variadic}),getDisplayNames:_(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(d.bind.apply(d,b([void 0],e,!1)))},{cache:eF(s.displayNames),strategy:T.variadic})},S=(y=v(v({},ex),o)).locale,C=y.defaultLocale,w=y.onError,S?!Intl.NumberFormat.supportedLocalesOf(S).length&&w?w(new N('Missing locale data for locale: "'.concat(S,'" in Intl.NumberFormat. Using default locale: "').concat(C,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(S).length&&w&&w(new N('Missing locale data for locale: "'.concat(S,'" in Intl.DateTimeFormat. Using default locale: "').concat(C,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(w&&w(new A('"locale" was not configured, using "'.concat(C,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),y.locale=y.defaultLocale||"en"),y.onWarn&&y.defaultRichTextElements&&"string"==typeof(k=y.messages||{})[Object.keys(k)[0]]&&y.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'),v(v({},y),{formatters:E,formatNumber:e5.bind(null,y,E.getNumberFormat),formatNumberToParts:e7.bind(null,y,E.getNumberFormat),formatRelativeTime:tn.bind(null,y,E.getRelativeTimeFormat),formatDate:eK.bind(null,y,E.getDateTimeFormat),formatDateToParts:eZ.bind(null,y,E.getDateTimeFormat),formatTime:eW.bind(null,y,E.getDateTimeFormat),formatDateTimeRange:ez.bind(null,y,E.getDateTimeFormat),formatTimeToParts:eY.bind(null,y,E.getDateTimeFormat),formatPlural:te.bind(null,y,E.getPluralRules),formatMessage:e4.bind(null,y,E),$t:e4.bind(null,y,E),formatList:e$.bind(null,y,E.getListFormat),formatListToParts:e0.bind(null,y,E.getListFormat),formatDisplayName:eX.bind(null,y,E.getDisplayNames)})).formatMessage({defaultMessage:r,id:t},n);return"function"==typeof i?(0,m.jsx)(m.Fragment,{children:null==i?void 0:i([e])}):(0,m.jsx)(m.Fragment,{children:e})}}},30310:function(e,t,n){"use strict";n.d(t,{R:function(){return d}});var r=n(67294),i=n(25434),a=n(77536),o=n(70390);n(89912);let s=r.forwardRef(function(e,t){let{name:n="MarketArrow",delta:s,iconClassName:l,width:u,height:c,variant:d,isDark:h=!1}=e,m=(0,i.f)(n);return r.createElement("div",{className:(0,a.Sh)(["media-ui-MarketArrow_marketArrow-NJbPK36JnlU-",{"media-ui-MarketArrow_refresh2024-q8U31zHiCAU-":"refresh2024"===d,"media-ui-MarketArrow_isDark-iVonPLW12f8-":h,"media-ui-MarketArrow_marketUp-J-Apma-v15k-":s>0,"media-ui-MarketArrow_marketDown-ewEp9WMLewg-":s<0,"media-ui-MarketArrow_marketNeutral--DHdSZwqvtM-":0===s}]),ref:t,"data-component":m},s<0?r.createElement(o.II,{width:u,height:c,className:l,small:!0}):r.createElement(o.CH,{width:u,height:c,className:l,small:!0}))});var l=n(98052);n(56274);var u={change:"media-ui-Change_change-lMq4LV-1csY-",default:"media-ui-Change_default-8hphe2lFPJo-",xsmall:"media-ui-Change_xsmall-Uzcme4e1kNc-",small:"media-ui-Change_small-BYXrCjiwTBg-",large:"media-ui-Change_large--d--nglkh5o-",marketArrow:"media-ui-Change_marketArrow-EVr1-r6VAis-",priceChange:"media-ui-Change_priceChange-OgFOGsx-jKI-",changeValue:"media-ui-Change_changeValue-cRzdGNve3oU-",positive:"media-ui-Change_positive-il7qv0BctMg-",negative:"media-ui-Change_negative-rQGvYj5WMsM-",highlight:"media-ui-Change_highlight-5Dr87cdirmM-",neutral:"media-ui-Change_neutral-nBYyHHGgsdY-",refresh2024:"media-ui-Change_refresh2024-EajM9IkrlnU-",isDark:"media-ui-Change_isDark-FcEFVkzHPF0-",_default:"media-ui-Change_default-8hphe2lFPJo-"};let c={default:{width:12,height:10},xsmall:{width:10,height:8},small:{width:10,height:11},large:{width:15,height:12.5}},d=(0,r.forwardRef)(function(e,t){let{precision:n,size:o="default",variant:d="default",highlight:h=!1,percentChange:m,priceChange:f,name:p="Change",hideMarketArrow:g=!1,hideChangeInfo:v=!1,hidePercentChange:b=!1,percentChangeClassName:_,marketArrowClassName:E,isDark:y=!1}=e,S=(0,i.f)(p),C=(0,a.Mg)(m),w=(f||0===f)&&(0,l.X6)(f),T=(0,l.X6)(m),k=(0,l.id)(T,w);return r.createElement("div",{ref:t,"data-component":S,className:(0,a.Sh)([u.change,u[o],y&&u.isDark,"refresh2024"===d&&u.refresh2024],e),tabIndex:0,"aria-live":"off","aria-label":k},!g&&r.createElement(s,{isDark:y,variant:d,delta:m,iconClassName:(0,a.Sh)([u.marketArrow,u[C],u[o],E]),width:c[o].width,height:c[o].height}),!v&&r.createElement("span",{"aria-hidden":"true"},r.createElement("span",{className:(0,a.Sh)([u.changeValue,h&&u.highlight,u[C],u[o],_])},(f||0===f)&&r.createElement("span",{className:u.priceChange},(0,l.Bw)(Math.abs(f),n)),!b&&r.createElement("span",{className:(0,a.Sh)([h&&u.highlight,u[C],u[o]])},f||g?(0,l.X6)(m):(0,l.Bw)(Math.abs(m)),"%"))))})},98279:function(e,t,n){"use strict";let r,i,a,o;n.d(t,{jT:function(){return b},Ki:function(){return S},xh:function(){return _},hT:function(){return y},EK:function(){return C},$u:function(){return v},$e:function(){return E}});var s=n(67294),l=n(31469),u=n(25434),c=n(77536),d=n(60006),h=n(70390),m=n(30310),f=n(83683),p=n(18005);n(683);var g={securityPill:"media-ui-SecurityPill_securityPill-tHtSdrlxcjI-",fullWidth:"media-ui-SecurityPill_fullWidth-G7PZLsFyLPY-",price:"media-ui-SecurityPill_price-GA5w4Y0Yy5s-",default:"media-ui-SecurityPill_default-IgcHcH580Vc-",ticker:"media-ui-SecurityPill_ticker-kNwKDByGgQM-",positive:"media-ui-SecurityPill_positive-j-08Pe8KqPw-",negative:"media-ui-SecurityPill_negative-3yJm-9q9Vkg-",priceChange:"media-ui-SecurityPill_priceChange-RAkSNe17Dl8-",percentChange:"media-ui-SecurityPill_percentChange-Axlq8xllsVU-",comparison:"media-ui-SecurityPill_comparison-yJfLlQOYumE-",refresh2024:"media-ui-SecurityPill_refresh2024-LxQdflh-E-E-",refreshbar2024:"media-ui-SecurityPill_refreshbar2024-etfhODemqtk-",twoLines:"media-ui-SecurityPill_twoLines-36Mjzv-fF1E-",threeLines:"media-ui-SecurityPill_threeLines-uMNKKxxn0ms-",priceWrapper:"media-ui-SecurityPill_priceWrapper-vE3MnSVD9uY-",tickerColorBox:"media-ui-SecurityPill_tickerColorBox-YpZcADOevgM-",missingPricingData:"media-ui-SecurityPill_missingPricingData-IyNPRgT3yDU-",privateCompany:"media-ui-SecurityPill_privateCompany-wnLiRMEI-cQ-","size-default":"media-ui-SecurityPill_size-default-i1OJr9V-7ZQ-","size-small":"media-ui-SecurityPill_size-small-JPaGCHV0Uuc-",_default:"media-ui-SecurityPill_default-IgcHcH580Vc-",size___default:"media-ui-SecurityPill_size-default-i1OJr9V-7ZQ-",size___small:"media-ui-SecurityPill_size-small-JPaGCHV0Uuc-"},v=((r=v||{}).small="small",r.default="default",r),b=((i=b||{}).xsmall="xsmall",i.small="small",i.default="default",i),_=((a=_||{}).one="one",a.two="two",a.three="three",a),E=((o=E||{}).comparison="comparison",o.refresh2024="refresh2024",o.refreshbar2024="refreshbar2024",o.default="default",o);let y={one:"oneLine",two:"twoLines",three:"threeLines"},S={comparison:"default",refreshbar2024:"small",default:"default",small:"small"},C=s.forwardRef(function(e,t){let n;let{displayName:r,fullWidth:i,isPrivate:a,lines:o,name:v="security-pill",percentChange:b,size:_="default",ticker:E,onClick:C,variant:w="default"}=e,T=(0,p.Q)()({id:"media-ui-markets-private-company",defaultMessage:"Private company"}),k=!(0,l.h)(b),I=(0,u.f)(v),A=(0,c.Mg)(b||0),N=S[_]||S[w],L=_||"default",O="refresh2024"===w||"refreshbar2024"===w,M="comparison"===w,P=O?e.price:null,B=!(0,l.h)(P);if(O&&!B){let{showCurrency:t,currency:r}=e;t&&(n=r)}let D=M?e.onDismiss:()=>{},R=O?r||E:"",H=(0,s.useCallback)(()=>{null==C||C(E)},[C,E]),x=(0,c.Sh)([g.securityPill,i&&g.fullWidth,!M&&g[A],g[w],o&&g[y[o]],{[g["size-".concat(_)]]:!!_}],{...e,name:v});return s.createElement("div",{ref:t,"data-component":I,className:x,onClick:H,title:R},M&&s.createElement("span",{className:(0,c.Sh)([g.tickerColorBox]),style:{backgroundColor:e.color}}),s.createElement("span",{className:g.ticker},r||E),s.createElement("div",{className:(0,c.Sh)([g.priceWrapper,!k&&g.priceChange])},a&&B&&k&&s.createElement("b",{className:(0,c.Sh)([g.privateCompany])},T),!B&&s.createElement(f.l,{size:L,isDark:O,className:g.price,price:P,currency:n}),!k&&s.createElement(m.R,{isDark:O,variant:O?"refresh2024":"default",percentChange:b,percentChangeClassName:g.percentChange,marketArrowClassName:g.marketArrow,hideMarketArrow:M,size:N}),!a&&k&&s.createElement("b",{className:(0,c.Sh)([g.missingPricingData])},"--"),M&&D&&s.createElement("span",null,s.createElement(d.h,{type:"button",size:"tiny",onClick:()=>D(E)},s.createElement(h.h6,null)))))})},83683:function(e,t,n){"use strict";n.d(t,{l:function(){return l}});var r=n(67294),i=n(25434),a=n(77536),o=n(98052);n(6520);var s={default:"media-ui-SizedPrice_default-jkpJAG-dT-o-",currency:"media-ui-SizedPrice_currency-Yb1Swg0ASI4-",small:"media-ui-SizedPrice_small-JyWSlyvj6FI-",large:"media-ui-SizedPrice_large-Aifpn8F-xqU-",extraLarge:"media-ui-SizedPrice_extraLarge-05pKbJRbUH8-",isDark:"media-ui-SizedPrice_isDark-kvE-imv2wFA-",tabular:"media-ui-SizedPrice_tabular-THpKTXeBUGw-",_default:"media-ui-SizedPrice_default-jkpJAG-dT-o-"};let l=(0,r.forwardRef)(function(e,t){let{price:n,size:l="default",currency:u,name:c="SizedPrice",precision:d,isDark:h=!1}=e,m=(0,i.f)(c),f=n<=0?(0,o.Bw)(n,d).replace("-","–"):"".concat((0,o.Bw)(n,d));return r.createElement("div",{ref:t,"data-component":m,className:(0,a.Sh)([m,s[l],h&&s.isDark,s.tabular],e)},f,u&&r.createElement("span",{className:s.currency},u))})},98052:function(e,t,n){"use strict";n.d(t,{Bw:function(){return i},X6:function(){return a},id:function(){return o},kT:function(){return r}});let r=new Set(["CUR","CEF","CEFH","MMF","OEF","ETP"]);function i(e,t){return null==e?"":e.toLocaleString("en-US",{minimumFractionDigits:null!=t?t:2,maximumFractionDigits:null!=t?t:2})}function a(e,t){return e<=0?i(e,t).replace("-","–"):"+".concat(i(e,t))}function o(e,t){return t?"Current price is ".concat(t,". Current percentage change is ").concat(e,"%."):"Current percentage change is ".concat(e,"%.")}},18005:function(e,t,n){"use strict";n.d(t,{Q:function(){return eZ}});var r,i,a,o,s,l,u=n(67294),c=n(86896),d=n(64618),h=n(70700),m=(n(85893),n(44012),function(e,t){return(m=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)});function f(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p=function(){return(p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function g(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function v(e,t){var n=t&&t.cache?t.cache:S,r=t&&t.serializer?t.serializer:E;return(t&&t.strategy?t.strategy:function(e,t){var n,r,i=1===e.length?b:_;return n=t.cache.create(),r=t.serializer,i.bind(this,e,n,r)})(e,{cache:n,serializer:r})}function b(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),a=t.get(i);return typeof a>"u"&&(a=e.call(this,r),t.set(i,a)),a}function _(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,r),t.set(i,a)),a}"function"==typeof SuppressedError&&SuppressedError;var E=function(){return JSON.stringify(arguments)},y=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}(),S={create:function(){return new y}},C={variadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,_.bind(this,e,n,r)},monadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,b.bind(this,e,n,r)}};(Y=Q||(Q={})).FORMAT_ERROR="FORMAT_ERROR",Y.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",Y.INVALID_CONFIG="INVALID_CONFIG",Y.MISSING_DATA="MISSING_DATA",Y.MISSING_TRANSLATION="MISSING_TRANSLATION";var w=function(e){function t(n,r,i){var a=this,o=i?i instanceof Error?i:Error(String(i)):void 0;return(a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(o?"\n".concat(o.message,"\n").concat(o.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return f(t,e),t}(Error),T=function(e){function t(t,n){return e.call(this,Q.UNSUPPORTED_FORMATTER,t,n)||this}return f(t,e),t}(w),k=(function(e){function t(t,n){return e.call(this,Q.INVALID_CONFIG,t,n)||this}f(t,e)}(w),function(e){function t(t,n){return e.call(this,Q.MISSING_DATA,t,n)||this}f(t,e)}(w),function(e){function t(t,n,r){var i=e.call(this,Q.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),r)||this;return i.locale=n,i}return f(t,e),t}(w)),I=function(e){function t(t,n,r,i){var a=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,i)||this;return a.descriptor=r,a.locale=n,a}return f(t,e),t}(k),A=function(e){function t(t,n){var r=e.call(this,Q.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", 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 r.descriptor=t,r}return f(t,e),t}(w);function N(e){return e.type===ee.literal}function L(e){return e.type===ee.number}function O(e){return e.type===ee.date}function M(e){return e.type===ee.time}function P(e){return e.type===ee.select}function B(e){return e.type===ee.plural}function D(e){return e.type===ee.tag}function R(e){return!!(e&&"object"==typeof e&&e.type===et.number)}function H(e){return!!(e&&"object"==typeof e&&e.type===et.dateTime)}(q=$||($={}))[q.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",q[q.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",q[q.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",q[q.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",q[q.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",q[q.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",q[q.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",q[q.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",q[q.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",q[q.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",q[q.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",q[q.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",q[q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",q[q.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",q[q.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",q[q.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",q[q.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",q[q.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",q[q.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",q[q.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",q[q.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",q[q.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",q[q.INVALID_TAG=23]="INVALID_TAG",q[q.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",q[q.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",q[q.UNCLOSED_TAG=27]="UNCLOSED_TAG",(X=ee||(ee={}))[X.literal=0]="literal",X[X.argument=1]="argument",X[X.number=2]="number",X[X.date=3]="date",X[X.time=4]="time",X[X.select=5]="select",X[X.plural=6]="plural",X[X.pound=7]="pound",X[X.tag=8]="tag",(J=et||(et={}))[J.number=0]="number",J[J.dateTime=1]="dateTime";var x=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,U={"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"]},F=/(?:[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,G=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,j=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,V=/^(@+)?(\+|#+)?[rs]?$/g,K=/(\*)(0+)|(#+)(0+)|(0+)/g,W=/^(0+)$/;function z(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(V,function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""}),t}function Z(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 Y,q,X,J,Q,$,ee,et,en,er=new RegExp("^".concat(x.source,"*")),ei=new RegExp("".concat(x.source,"*$"));function ea(e,t){return{start:e,end:t}}var eo=!!String.prototype.startsWith&&"_a".startsWith("a",1),es=!!String.fromCodePoint,el=!!Object.fromEntries,eu=!!String.prototype.codePointAt,ec=!!String.prototype.trimStart,ed=!!String.prototype.trimEnd,eh=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&9007199254740991>=Math.abs(e)},em=!0;try{var ef=ey("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");em=(null===(en=ef.exec("a"))||void 0===en?void 0:en[0])==="a"}catch(e){em=!1}var ep=eo?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},eg=es?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,a=0;i>a;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return r},ev=el?Object.fromEntries:function(e){for(var t={},n=0;n<e.length;n++){var r=e[n],i=r[0],a=r[1];t[i]=a}return t},eb=eu?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},e_=ec?function(e){return e.trimStart()}:function(e){return e.replace(er,"")},eE=ed?function(e){return e.trimEnd()}:function(e){return e.replace(ei,"")};function ey(e,t){return new RegExp(e,t)}if(em){var eS=ey("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");o=function(e,t){var n;return eS.lastIndex=t,null!==(n=eS.exec(e)[1])&&void 0!==n?n:""}}else o=function(e,t){for(var n=[];;){var r,i=eb(e,t);if(void 0===i||eT(i)||(r=i)>=33&&r<=35||36===r||r>=37&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||r>=162&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||r>=8208&&r<=8213||r>=8214&&r<=8215||8216===r||8217===r||8218===r||r>=8219&&r<=8220||8221===r||8222===r||8223===r||r>=8224&&r<=8231||r>=8240&&r<=8248||8249===r||8250===r||r>=8251&&r<=8254||r>=8257&&r<=8259||8260===r||8261===r||8262===r||r>=8263&&r<=8273||8274===r||8275===r||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||8608===r||r>=8609&&r<=8610||8611===r||r>=8612&&r<=8613||8614===r||r>=8615&&r<=8621||8622===r||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||8658===r||8659===r||8660===r||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||8968===r||8969===r||8970===r||8971===r||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||9001===r||9002===r||r>=9003&&r<=9083||9084===r||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||9655===r||r>=9656&&r<=9664||9665===r||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||9839===r||r>=9840&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||r>=10132&&r<=10175||r>=10176&&r<=10180||10181===r||10182===r||r>=10183&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||r>=10649&&r<=10711||10712===r||10713===r||10714===r||10715===r||r>=10716&&r<=10747||10748===r||10749===r||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||11158===r||r>=11159&&r<=11263||r>=11776&&r<=11777||11778===r||11779===r||11780===r||11781===r||r>=11782&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||r>=11790&&r<=11798||11799===r||r>=11800&&r<=11801||11802===r||11803===r||11804===r||11805===r||r>=11806&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||r>=11818&&r<=11822||11823===r||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||11840===r||11841===r||11842===r||r>=11843&&r<=11855||r>=11856&&r<=11857||11858===r||r>=11859&&r<=11903||r>=12289&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||r>=12306&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||r>=12318&&r<=12319||12320===r||12336===r||64830===r||64831===r||r>=65093&&r<=65094)break;n.push(i),t+=i>=65536?2:1}return eg.apply(void 0,n)};var eC=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,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else{if(125===i&&e>0)break;if(35===i&&("plural"===t||"selectordinal"===t)){var o=this.clonePosition();this.bump(),r.push({type:ee.pound,location:ea(o,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&ew(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}else{if(n)break;return this.error($.UNMATCHED_CLOSING_TAG,ea(this.clonePosition(),this.clonePosition()))}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ee.literal,value:"<".concat(r,"/>"),location:ea(n,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error($.INVALID_TAG,ea(n,this.clonePosition()));var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(!this.bumpIf("</"))return this.error($.UNCLOSED_TAG,ea(n,this.clonePosition()));if(this.isEOF()||!ew(this.char()))return this.error($.INVALID_TAG,ea(o,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error($.UNMATCHED_CLOSING_TAG,ea(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ee.tag,value:r,children:a,location:ea(n,this.clonePosition())},err:null}:this.error($.INVALID_TAG,ea(o,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 n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=ea(n,this.clonePosition());return{val:{type:ee.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ew(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 n=this.char();if(39===n){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(n);this.bump()}return eg.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),eg(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,ea(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error($.EMPTY_ARGUMENT,ea(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error($.MALFORMED_ARGUMENT,ea(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,ea(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ee.argument,value:r,location:ea(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,ea(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error($.MALFORMED_ARGUMENT,ea(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=o(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:ea(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(o){case"":return this.error($.EXPECT_ARGUMENT_TYPE,ea(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var d=eE(c.val);if(0===d.length)return this.error($.EXPECT_ARGUMENT_STYLE,ea(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:ea(u,this.clonePosition())}}var h=this.tryParseArgumentClose(r);if(h.err)return h;var m=ea(r,this.clonePosition());if(l&&ep(null==l?void 0:l.style,"::",0)){var f,g=e_(l.style.slice(2));if("number"===o){var c=this.parseNumberSkeletonFromString(g,l.styleLocation);return c.err?c:{val:{type:ee.number,value:n,location:m,style:c.val},err:null}}if(0===g.length)return this.error($.EXPECT_DATE_TIME_SKELETON,m);var v=g;this.locale&&(v=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(1&a),s=a<2?1:3+(a>>1),l=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 n,r=e.language;return"root"!==r&&(n=e.maximize().region),(U[n||""]||U[r||""]||U["".concat(r,"-001")]||U["001"])[0]}(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)n+="a";for(;o-- >0;)n=l+n}else"J"===i?n+="H":n+=i}return n}(g,this.locale));var d={type:et.dateTime,pattern:v,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(f={},v.replace(F,function(e){var t=e.length;switch(e[0]){case"G":f.era=4===t?"long":5===t?"narrow":"short";break;case"y":f.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":f.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":f.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":f.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");f.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");f.weekday=["short","long","narrow","short"][t-4];break;case"a":f.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":f.hourCycle="h12",f.hour=["numeric","2-digit"][t-1];break;case"H":f.hourCycle="h23",f.hour=["numeric","2-digit"][t-1];break;case"K":f.hourCycle="h11",f.hour=["numeric","2-digit"][t-1];break;case"k":f.hourCycle="h24",f.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":f.minute=["numeric","2-digit"][t-1];break;case"s":f.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":f.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""}),f):{}};return{val:{type:"date"===o?ee.date:ee.time,value:n,location:m,style:d},err:null}}return{val:{type:"number"===o?ee.number:"date"===o?ee.date:ee.time,value:n,location:m,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error($.EXPECT_SELECT_ARGUMENT_OPTIONS,ea(b,p({},b)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),E=0;if("select"!==o&&"offset"===_.value){if(!this.bumpIf(":"))return this.error($.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ea(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger($.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),_=this.parseIdentifierIfPossible(),E=c.val}var y=this.tryParsePluralOrSelectOptions(e,o,t,_);if(y.err)return y;var h=this.tryParseArgumentClose(r);if(h.err)return h;var S=ea(r,this.clonePosition());return"select"===o?{val:{type:ee.select,value:n,options:ev(y.val),location:S},err:null}:{val:{type:ee.plural,value:n,options:ev(y.val),offset:E,pluralType:"plural"===o?"cardinal":"ordinal",location:S},err:null};default:return this.error($.INVALID_ARGUMENT_TYPE,ea(a,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,ea(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 n=this.clonePosition();if(!this.bumpUntil("'"))return this.error($.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ea(n,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 n=[];try{n=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(G).filter(function(e){return e.length>0}),n=[],r=0;r<t.length;r++){var i=t[r].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var a=i[0],o=i.slice(1),s=0;s<o.length;s++)if(0===o[s].length)throw Error("Invalid number skeleton");n.push({stem:a,options:o})}return n}(e)}catch(e){return this.error($.INVALID_NUMBER_SKELETON,t)}return{val:{type:et.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.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=r.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=p(p(p({},t),{notation:"scientific"}),r.options.reduce(function(e,t){return p(p({},e),Z(t)||{})},{}));continue;case"engineering":t=p(p(p({},t),{notation:"engineering"}),r.options.reduce(function(e,t){return p(p({},e),Z(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(r.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(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(K,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else{if(i&&a)throw Error("We currently do not support maximum integer digits");if(o)throw Error("We currently do not support exact integer digits")}return""});continue}if(W.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(j.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(j,function(e,n,r,i,a,o){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});var i=r.options[0];"w"===i?t=p(p({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=p(p({},t),z(i)));continue}if(V.test(r.stem)){t=p(p({},t),z(r.stem));continue}var a=Z(r.stem);a&&(t=p(p({},t),a));var o=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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!W.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);o&&(t=p(p({},t),o))}return t}(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,l=r.value,u=r.location;;){if(0===l.length){var c=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var d=this.tryParseDecimalInteger($.EXPECT_PLURAL_ARGUMENT_SELECTOR,$.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=ea(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(s.has(l))return this.error("select"===t?$.DUPLICATE_SELECT_ARGUMENT_SELECTOR:$.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?$.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:$.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ea(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,n);if(m.err)return m;var f=this.tryParseArgumentClose(h);if(f.err)return f;o.push([l,{value:m.val,location:ea(h,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===o.length?this.error("select"===t?$.EXPECT_SELECT_ARGUMENT_SELECTOR:$.EXPECT_PLURAL_ARGUMENT_SELECTOR,ea(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error($.MISSING_OTHER_CLAUSE,ea(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=10*a+(o-48),this.bump();else break}var s=ea(r,this.clonePosition());return i?eh(a*=n)?{val:a,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=eb(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(ep(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(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!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()&&eT(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function ew(e){return e>=97&&e<=122||e>=65&&e<=90}function eT(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ek(e,t){void 0===t&&(t={});var n=new eC(e,t=p({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(n.err){var r=SyntaxError($[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,P(t)||B(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else L(t)&&R(t.style)||(O(t)||M(t))&&H(t.style)?delete t.style.location:D(t)&&e(t.children)})}(n.val),n.val}(r=s||(s={})).MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API";var eI=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return f(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),eA=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),s.INVALID_VALUE,i)||this}return f(t,e),t}(eI),eN=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),s.INVALID_VALUE,r)||this}return f(t,e),t}(eI),eL=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),s.MISSING_VALUE,n)||this}return f(t,e),t}(eI);function eO(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}(i=l||(l={}))[i.literal=0]="literal",i[i.object=1]="object";var eM=function(){function e(t,n,r,i){void 0===n&&(n=e.defaultLocale);var a,o,u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=u.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce(function(e,t){return e.length&&t.type===l.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return function e(t,n,r,i,a,o,u){if(1===t.length&&N(t[0]))return[{type:l.literal,value:t[0].value}];for(var c=[],d=0;d<t.length;d++){var h=t[d];if(N(h)){c.push({type:l.literal,value:h.value});continue}if(h.type===ee.pound){"number"==typeof o&&c.push({type:l.literal,value:r.getNumberFormat(n).format(o)});continue}var m=h.value;if(!(a&&m in a))throw new eL(m,u);var f=a[m];if(h.type===ee.argument){f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),c.push({type:"string"==typeof f?l.literal:l.object,value:f});continue}if(O(h)){var p="string"==typeof h.style?i.date[h.style]:H(h.style)?h.style.parsedOptions:void 0;c.push({type:l.literal,value:r.getDateTimeFormat(n,p).format(f)});continue}if(M(h)){var p="string"==typeof h.style?i.time[h.style]:H(h.style)?h.style.parsedOptions:i.time.medium;c.push({type:l.literal,value:r.getDateTimeFormat(n,p).format(f)});continue}if(L(h)){var p="string"==typeof h.style?i.number[h.style]:R(h.style)?h.style.parsedOptions:void 0;p&&p.scale&&(f*=p.scale||1),c.push({type:l.literal,value:r.getNumberFormat(n,p).format(f)});continue}if(D(h)){var g=h.children,v=h.value,b=a[v];if("function"!=typeof b)throw new eN(v,"function",u);var _=b(e(g,n,r,i,a,o).map(function(e){return e.value}));Array.isArray(_)||(_=[_]),c.push.apply(c,_.map(function(e){return{type:"string"==typeof e?l.literal:l.object,value:e}}))}if(P(h)){var E=h.options[f]||h.options.other;if(!E)throw new eA(h.value,f,Object.keys(h.options),u);c.push.apply(c,e(E.value,n,r,i,a));continue}if(B(h)){var E=h.options["=".concat(f)];if(!E){if(!Intl.PluralRules)throw new eI('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',s.MISSING_INTL_API,u);var y=r.getPluralRules(n,{type:h.pluralType}).select(f-(h.offset||0));E=h.options[y]||h.options.other}if(!E)throw new eA(h.value,f,Object.keys(h.options),u);c.push.apply(c,e(E.value,n,r,i,a,f-(h.offset||0)));continue}}return c.length<2?c:c.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===l.literal&&t.type===l.literal?n.value+=t.value:e.push(t),e},[])}(u.ast,u.locales,u.formatters,u.formats,e,void 0,u.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=u.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=i||{},d=(c.formatters,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(c,["formatters"]));this.ast=e.__parse(t,p(p({},d),{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=(a=e.formats,r?Object.keys(a).reduce(function(e,t){var n,i;return e[t]=(n=a[t],(i=r[t])?p(p(p({},n||{}),i||{}),Object.keys(n).reduce(function(e,t){return e[t]=p(p({},n[t]),i[t]||{}),e},{})):n),e},p({},a)):a),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:v(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,g([void 0],t,!1)))},{cache:eO(o.number),strategy:C.variadic}),getDateTimeFormat:v(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,g([void 0],t,!1)))},{cache:eO(o.dateTime),strategy:C.variadic}),getPluralRules:v(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,g([void 0],t,!1)))},{cache:eO(o.pluralRules),strategy:C.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=ek,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 eP(e,t,n){return void 0===n&&(n={}),t.reduce(function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t},{})}function eB(e,t,n,r){var i,a=e&&e[t];if(a&&(i=a[n]),i)return i;r(new T("No ".concat(t," format named: ").concat(n)))}var eD=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function eR(e,t,n,r){var i=e.locale,a=e.formats,o=e.onError,s=e.timeZone;void 0===r&&(r={});var l=r.format,u=eP(r,eD,p(p({},s&&{timeZone:s}),l&&eB(a,t,l,o)));return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=p(p({},u),{hour:"numeric",minute:"numeric"})),n(i,u)}var eH=["style","type","fallback","languageDisplay"],ex=["type","style"],eU=Date.now();function eF(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=p({timeZone:t},e[r]),n},{})}function eG(e,t){return Object.keys(p(p({},e),t)).reduce(function(n,r){return n[r]=p(p({},e[r]||{}),t[r]||{}),n},{})}function ej(e,t){if(!t)return e;var n=eM.formats;return p(p(p({},n),e),{date:eG(eF(n.date,t),eF(e.date||{},t)),time:eG(eF(n.time,t),eF(e.time||{},t))})}var eV=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function eK(e,t,n){var r=e.locale,i=e.formats,a=e.onError;void 0===n&&(n={});var o=n.format;return t(r,eP(n,eV,o&&eB(i,"number",o,a)||{}))}var eW=["type"],ez=["numeric","style"];let eZ=(a={context:3717,"media-ui-markets-market-indices":8176667,"media-ui-markets-prev-close":3272276,"media-ui-markets-private-company":3348642,"media-ui-markets-recently-viewed":8187720,"media-ui-markets-view-all":8184582,"media-ui-markets-view-less":3272291,"media-ui-markets-rates-and-bonds":8176668,"media-ui-markets-top-securities":8176666},()=>{let e;try{let t=(0,c.Z)();e=(0,u.useCallback)((e,n)=>{let{id:r,defaultMessage:i}=e;return t.formatMessage({id:r,defaultMessage:i},n)},[t,a])}catch(r){let t=(0,d.Sn)(),n=(0,h.d)({locale:"en",messages:{}},t);e=(e,t)=>{let{defaultMessage:r,id:i}=e;return n.formatMessage({defaultMessage:r,id:i},t)}}return e})},97445:function(e,t,n){"use strict";n.d(t,{z:function(){return u}});var r=n(67294),i=n(25434),a=n(77536),o=n(57745),s=n(25173);n(74009);var l={dropdownContainer:"media-ui-DropdownMenuDesktop_dropdownContainer-Nvj2M1mpZek-",light:"media-ui-DropdownMenuDesktop_light-Dne867BExAE-",dark:"media-ui-DropdownMenuDesktop_dark-OjY8kqnMIt4-",blue:"media-ui-DropdownMenuDesktop_blue-SfKCZ2GP1Vw-"};let u=r.forwardRef(function(e,t){var n;let{menuItemId:u,submenuItems:c,items:d,theme:h=s.yU.LIGHT,desktopBreakpointClassName:m,trackingFunction:f}=e,p=(0,i.f)("dropdown-menu-desktop"),g=c&&(null===(n=c["metadata_".concat(u)])||void 0===n?void 0:n.dropdownListItems);if(!(c&&Object.keys(c).length)&&!(d&&Object.keys(d).length)||g&&0===g.length)return null;let v=(0,a.Sh)([m,l.dropdownContainer,{[l.light]:h===s.yU.LIGHT,[l.dark]:h===s.yU.DARK,[l.blue]:h===s.yU.BLUE}],{...e});return r.createElement("div",{className:v,ref:t,"aria-label":"dropdown-menu-desktop","data-component":p,"data-menuid":u,"data-submenuid":u},c&&Object.entries(c).map(e=>{let[,t]=e;return r.createElement(o.q,{key:t.id,menuItemId:u,submenuItem:t,trackingFunction:f})}))})},33090:function(e,t,n){"use strict";n.d(t,{$:function(){return f}});var r=n(67294),i=n(25434),a=n(77536),o=n(70390),s=n(97445),l=n(20297),u=n(40799),c=n(25173),d=n(50508);n(60242);var h={footerContainer:"media-ui-Footer_footerContainer-48Eos3T24SA-",logo:"media-ui-Footer_logo-u0pZo99AdPk-",topContent:"media-ui-Footer_topContent-pbN5-5sK798-",bottomContent:"media-ui-Footer_bottomContent-FGNwwTOXYJc-",bottomLeftContent:"media-ui-Footer_bottomLeftContent-BOyobil9rv4-",bottomRightContent:"media-ui-Footer_bottomRightContent--131BbNfIQg-",link:"media-ui-Footer_link-eSdhpCwbm6w-",copyright:"media-ui-Footer_copyright-c6BP90zMB1Y-",light:"media-ui-Footer_light-xuTLep21Dtw-",dark:"media-ui-Footer_dark-zNOaDG22onM-",blue:"media-ui-Footer_blue-TnK7rO9T2zM-"};let m={en:{adChoices:"/privacy#advertisements",advertise:"https://www.bloombergmedia.com/contact",careers:"/careers/?utm_source=dotcom&utm_medium=footer",tos:"/tos",privacy:"/privacy",help:"/help",trademarks:"/trademarks"},jp:{adChoices:"/privacy#advertisements",advertise:"https://www.bloombergmedia.com/contact",careers:"https://www.bloomberg.co.jp/company/what-we-do/?utm_source=jpregional&utm_medium",tos:"/notices/jp/tos",privacy:"/notices/jp/privacy",help:"/notices/jp/help",trademarks:"/notices/jp/trademarks"}},f=r.forwardRef(function(e,t){let n=(0,d.Q)(),{prefix:f="",cmpText:p=n({id:"media-ui-nav_doNotSellorSharePersonalInfo",defaultMessage:"Do Not Sell or Share My Personal Information"}),name:g="footer",desktopBreakpointClassName:v,addPrivacyManager:b,isWeekend:_,locale:E="en",region:y=c.Up.US,footerMenuItemsUrl:S,theme:C=c.yU.DARK,showLogo:w=!0,footerMenuItems:T,trackingFunction:k=()=>{}}=e,I=r.useRef(null),[A,N]=(0,r.useState)(T),L="jp"!==E;(0,r.useEffect)(()=>{b(I.current)},[]);let O=(0,r.useCallback)(async()=>{if(S)try{let e=await (await fetch(S)).json();e&&Object.keys(e).length&&N(e)}catch(e){console.error("Unable to fetch footer items from ".concat(S,": ").concat(e))}},[S]);(0,r.useEffect)(()=>{O()},[S]);let M=(0,r.useCallback)(e=>{k("click",e)},[k]),P=(0,r.useCallback)(e=>{k("click",e)},[k]),B=(0,r.useCallback)(e=>{k("click",e)},[k]),D=new Date().getFullYear(),R=(0,i.f)(g),H=(0,a.Sh)([h.footerContainer,{[h.light]:C===c.yU.LIGHT,[h.dark]:C===c.yU.DARK,[h.blue]:C===c.yU.BLUE}],{name:g}),x=(0,r.useCallback)(e=>{var t,n,r,i;let a=null!==(n=m[E])&&void 0!==n?n:m.en;return"".concat(f).concat(null!==(i=null!==(r=null==a?void 0:a[e])&&void 0!==r?r:null===(t=m.en)||void 0===t?void 0:t[e])&&void 0!==i?i:"")},[E,f]);return r.createElement(u.N,{region:y,locale:E},r.createElement("div",{className:H,ref:t,"data-component":R},r.createElement("div",{className:(0,a.Sh)([h.topContent,v])},w&&r.createElement("div",{className:h.logo},r.createElement(l.T,{trackingFunction:M,isWeekend:_,theme:C})),A&&r.createElement(s.z,{trackingFunction:(e,t)=>{P("footer-".concat(e,"-").concat(t))},desktopBreakpointClassName:v,menuItemId:"footer-items-menu",submenuItems:A,theme:C})),r.createElement("div",{className:(0,a.Sh)([h.bottomContent,v])},r.createElement("div",{className:h.bottomLeftContent},r.createElement("a",{className:h.link,"data-testid":"footer-link",onClick:e=>{e.preventDefault(),B("Terms of Service");let t=x("tos");window.location.assign(t)}},r.createElement(d.jU,{id:"media-ui-nav_termsOfService",defaultMessage:"Terms of Service"})),L&&r.createElement("button",{className:h.link,id:"cmp-footer-link","data-testid":"cmp-footer-link","data-lang":"en",type:"button",ref:I,onClick:()=>B("CMP")},p),r.createElement("a",{className:h.link,"data-testid":"footer-link",onClick:e=>{e.preventDefault(),B("Trademarks");let t=x("trademarks");window.location.assign(t)}},r.createElement(d.jU,{id:"media-ui-nav_trademarks",defaultMessage:"Trademarks"})),r.createElement("a",{className:h.link,"data-testid":"footer-link",onClick:e=>{e.preventDefault(),B("Privacy Policy");let t=x("privacy");window.location.assign(t)}},r.createElement(d.jU,{id:"media-ui-nav_privacyPolicy",defaultMessage:"Privacy Policy"}))),r.createElement("div",{className:h.bottomRightContent},r.createElement("a",{className:h.link,"data-testid":"footer-link",onClick:e=>{e.preventDefault(),B("Careers");let t=x("careers");window.location.assign(t)}},r.createElement(d.jU,{id:"media-ui-nav_careers",defaultMessage:"Careers"})),r.createElement("a",{className:h.link,"data-testid":"footer-link",onClick:e=>{e.preventDefault(),B("Advertise");let t=x("advertise");window.location.assign(t)}},r.createElement(d.jU,{id:"media-ui-nav_advertise",defaultMessage:"Advertise"})),r.createElement("div",{className:h.link},r.createElement("a",{"data-testid":"footer-link",onClick:e=>{e.preventDefault(),B("Ad Choices");let t=x("adChoices");window.location.assign(t)}},r.createElement(d.jU,{id:"media-ui-nav_adchoices",defaultMessage:"Ad Choices"})),r.createElement(o._z,{width:12,height:12})),r.createElement("a",{className:h.link,"data-testid":"footer-link",onClick:e=>{e.preventDefault(),B("Help");let t=x("help");window.location.assign(t)}},r.createElement(d.jU,{id:"media-ui-nav_help",defaultMessage:"Help"})),r.createElement("span",{className:h.copyright,onClick:()=>B("Copyright")},r.createElement(d.jU,{id:"media-ui-nav_bloombergAllRightsReserved",defaultMessage:"\xa9{year} Bloomberg L.P. All Rights Reserved.",values:{year:D}}))))))})},20297:function(e,t,n){"use strict";n.d(t,{T:function(){return f}});var r=n(67294),i=n(25434),a=n(77536),o=n(70390),s=n(40799),l=n(25173);n(24932);var u="media-ui-Logo_logo-08Z6l4waIQI-";let c=e=>{let{trackingFunction:t}=e;return r.createElement("a",{href:"/",className:"media-ui-Logo_logoWeekend-GTXjKXxUxIw-",onClick:e=>{e.preventDefault(),t("bloomberg"),window.location.assign("/")}},r.createElement(o.of,null))},d=e=>{let{trackingFunction:t}=e;return r.createElement("a",{href:"/uk",className:"media-ui-Logo_logoUK-F4PIum-q9kI-",onClick:e=>{e.preventDefault(),t("bloomberg"),window.location.assign("/uk")}},r.createElement(o.sk,null))},h=e=>{let{trackingFunction:t}=e,{region:n}=(0,s.S)(),i=n===l.Up.JAPAN?"https://www.bloomberg.co.jp":"/";return r.createElement("a",{href:i,className:u,onClick:e=>{e.preventDefault(),t("bloomberg"),window.location.assign(i)}},r.createElement(o.hE,null))},m=e=>{let{isWeekend:t,trackingFunction:n}=e,{region:i}=(0,s.S)();return t?r.createElement(c,{trackingFunction:n}):i===l.Up.UK?r.createElement(d,{trackingFunction:n}):r.createElement(h,{trackingFunction:n})},f=r.forwardRef(function(e,t){let{isWeekend:n,theme:o,trackingFunction:s}=e,c=(0,i.f)("logo"),d=(0,a.Sh)([u,{"media-ui-Logo_light-vDe1eR1Ub9E-":o===l.yU.LIGHT,"media-ui-Logo_dark-8-AT52-hX7Q-":o===l.yU.DARK,"media-ui-Logo_blue-QQqFQ4F-5Ac-":o===l.yU.BLUE}]);return r.createElement("div",{className:d,"aria-label":"logo","data-component":c,ref:t},r.createElement(m,{trackingFunction:s,isWeekend:n}))})},40799:function(e,t,n){"use strict";n.d(t,{N:function(){return o},S:function(){return s}});var r=n(67294),i=n(25173);let a=(0,r.createContext)({locale:"en",region:i.Up.US}),o=e=>{let{children:t,locale:n="en",region:o=i.Up.US}=e;return r.createElement(a.Provider,{value:{locale:n,region:o}},t)},s=()=>(0,r.useContext)(a)},47631:function(e,t,n){"use strict";let r,i,a;n.d(t,{z:function(){return im},J:function(){return ip}});var o,s,l,u,c,d,h,m,f,p,g=n(67294),v=n(25434),b=n(77536),_=n(73935),E=n(70390);let y="mockShowSignInModal",S=["www.bloomberg.com","origin.blue.bloomberg.com"],C=["origin.red.bloomberg.com","origin.green.bloomberg.com","origin.orange.bloomberg.com","origin.yellow.bloomberg.com","origin.purple.bloomberg.com","origin.staging.bloomberg.com"],w=()=>S.includes(window.location.hostname),T=()=>C.includes(window.location.hostname),k=e=>{let t=document.createElement("script");t.src=e,t.async=!0,t.defer=!0,document.head.appendChild(t)},I=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n="https://coordinator".concat(w()?"":"-stg",".cm.bloomberg.com/coordination/flags").concat(e),r=new AbortController,i=setTimeout(()=>r.abort(),t);try{let e=await fetch(n,{method:"GET",signal:r.signal});if(!e.ok)throw Error("HTTP error! status for fetching /coordination/flags from coordinator is : ".concat(e.status));return e.json()}catch(e){throw e&&"AbortError"===e.name?Error("Fetching /coordination/flags from coordinator timed out"):e}finally{clearTimeout(i)}},A=e=>/^\/account\/onboarding(?:\/|\?|$)/.test(e);n(62868);var N={signInModalContainer:"media-ui-SignInModal_signInModalContainer-9ZWvtOL5-tk-",header:"media-ui-SignInModal_header-gE-fRmmBo6M-",signInModal:"media-ui-SignInModal_signInModal-JeKqtzwD48c-",loginRegistration:"media-ui-SignInModal_loginRegistration-2jTb6-Jzf28-",homeButton:"media-ui-SignInModal_homeButton-JY0HB54m-1c-"},L={context:4775,"media-ui-login_signInOrCreateAccount":8244829,"media-ui-login_continueWithGoogle":8244830,"media-ui-login_enterYourEmail":8244836,"media-ui-login_invalidEmail":8244837,"media-ui-login_passwordAuthFailed":8244848,"media-ui-login_sendCodeFailed":8244838,"media-ui-login_redirectingGroupSso":8244839,"media-ui-login_codeError":8244841,"media-ui-login_codeResent":8244842,"media-ui-login_enterCodeSentTo":8244840,"media-ui-login_resendTheCode":8244843,"media-ui-login_editEmailAddress":8244844,"media-ui-login_errorVerifyingCode":8244847,"media-ui-login_errorSigningInWithSocial":8244846,"media-ui-login_closeSignIn":8244845,"media-ui-login_googleSignInTitle":8244831,"media-ui-login_appleSignInTitle":8244832,"media-ui-login_facebookSignInTitle":8244833,"media-ui-login_twitterSignInTitle":8244834,"media-ui-login_bbaSignInTitle":8244835,"media-ui-login_continue":8239148,"media-ui-login_continueWithApple":8244756,"media-ui-login_continueWithFacebook":8244755,"media-ui-login_continueWithTwitter":8244757,"media-ui-login_continueWithBba":8244758,"media-ui-login_orSeparator":8244726,"media-ui-login_signUp":8244734,"media-ui-login_enterYourPassword":8244372,"media-ui-login_forgotPassword":8244373,"media-ui-login_didntGetAnything":8244380,"media-ui-login_home":8244435,"media-ui-login_sendCodeFailedWithError":8251088,"media-ui-login_sendCodeFailedPlain":8251085,"media-ui-login_unknownSocialSite":8251086,"media-ui-login_failedToAuthenticate":8251087},O=n(86896),M=n(64618),P=n(70700),B=(n(85893),n(44012),function(e,t){return(B=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)});function D(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}B(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var R=function(){return(R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function H(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function x(e,t){var n=t&&t.cache?t.cache:V,r=t&&t.serializer?t.serializer:G;return(t&&t.strategy?t.strategy:function(e,t){var n,r,i=1===e.length?U:F;return n=t.cache.create(),r=t.serializer,i.bind(this,e,n,r)})(e,{cache:n,serializer:r})}function U(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),a=t.get(i);return typeof a>"u"&&(a=e.call(this,r),t.set(i,a)),a}function F(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,r),t.set(i,a)),a}"function"==typeof SuppressedError&&SuppressedError;var G=function(){return JSON.stringify(arguments)},j=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}(),V={create:function(){return new j}},K={variadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,F.bind(this,e,n,r)},monadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,U.bind(this,e,n,r)}};(ep=e_||(e_={})).FORMAT_ERROR="FORMAT_ERROR",ep.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",ep.INVALID_CONFIG="INVALID_CONFIG",ep.MISSING_DATA="MISSING_DATA",ep.MISSING_TRANSLATION="MISSING_TRANSLATION";var W=function(e){function t(n,r,i){var a=this,o=i?i instanceof Error?i:Error(String(i)):void 0;return(a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(o?"\n".concat(o.message,"\n").concat(o.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return D(t,e),t}(Error),z=function(e){function t(t,n){return e.call(this,e_.UNSUPPORTED_FORMATTER,t,n)||this}return D(t,e),t}(W),Z=(function(e){function t(t,n){return e.call(this,e_.INVALID_CONFIG,t,n)||this}D(t,e)}(W),function(e){function t(t,n){return e.call(this,e_.MISSING_DATA,t,n)||this}D(t,e)}(W),function(e){function t(t,n,r){var i=e.call(this,e_.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),r)||this;return i.locale=n,i}return D(t,e),t}(W)),Y=function(e){function t(t,n,r,i){var a=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,i)||this;return a.descriptor=r,a.locale=n,a}return D(t,e),t}(Z),q=function(e){function t(t,n){var r=e.call(this,e_.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", 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 r.descriptor=t,r}return D(t,e),t}(W);function X(e){return e.type===ey.literal}function J(e){return e.type===ey.number}function Q(e){return e.type===ey.date}function $(e){return e.type===ey.time}function ee(e){return e.type===ey.select}function et(e){return e.type===ey.plural}function en(e){return e.type===ey.tag}function er(e){return!!(e&&"object"==typeof e&&e.type===eS.number)}function ei(e){return!!(e&&"object"==typeof e&&e.type===eS.dateTime)}(eg=eE||(eE={}))[eg.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",eg[eg.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",eg[eg.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",eg[eg.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",eg[eg.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",eg[eg.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",eg[eg.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",eg[eg.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",eg[eg.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",eg[eg.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",eg[eg.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",eg[eg.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",eg[eg.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",eg[eg.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",eg[eg.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",eg[eg.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",eg[eg.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",eg[eg.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",eg[eg.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",eg[eg.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",eg[eg.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",eg[eg.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",eg[eg.INVALID_TAG=23]="INVALID_TAG",eg[eg.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",eg[eg.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",eg[eg.UNCLOSED_TAG=27]="UNCLOSED_TAG",(ev=ey||(ey={}))[ev.literal=0]="literal",ev[ev.argument=1]="argument",ev[ev.number=2]="number",ev[ev.date=3]="date",ev[ev.time=4]="time",ev[ev.select=5]="select",ev[ev.plural=6]="plural",ev[ev.pound=7]="pound",ev[ev.tag=8]="tag",(eb=eS||(eS={}))[eb.number=0]="number",eb[eb.dateTime=1]="dateTime";var ea=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,eo={"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"]},es=/(?:[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,el=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,eu=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ec=/^(@+)?(\+|#+)?[rs]?$/g,ed=/(\*)(0+)|(#+)(0+)|(0+)/g,eh=/^(0+)$/;function em(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(ec,function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""}),t}function ef(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 ep,eg,ev,eb,e_,eE,ey,eS,eC,ew=new RegExp("^".concat(ea.source,"*")),eT=new RegExp("".concat(ea.source,"*$"));function ek(e,t){return{start:e,end:t}}var eI=!!String.prototype.startsWith&&"_a".startsWith("a",1),eA=!!String.fromCodePoint,eN=!!Object.fromEntries,eL=!!String.prototype.codePointAt,eO=!!String.prototype.trimStart,eM=!!String.prototype.trimEnd,eP=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&9007199254740991>=Math.abs(e)},eB=!0;try{var eD=ej("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");eB=(null===(eC=eD.exec("a"))||void 0===eC?void 0:eC[0])==="a"}catch(e){eB=!1}var eR=eI?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},eH=eA?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,a=0;i>a;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return r},ex=eN?Object.fromEntries:function(e){for(var t={},n=0;n<e.length;n++){var r=e[n],i=r[0],a=r[1];t[i]=a}return t},eU=eL?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},eF=eO?function(e){return e.trimStart()}:function(e){return e.replace(ew,"")},eG=eM?function(e){return e.trimEnd()}:function(e){return e.replace(eT,"")};function ej(e,t){return new RegExp(e,t)}if(eB){var eV=ej("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");u=function(e,t){var n;return eV.lastIndex=t,null!==(n=eV.exec(e)[1])&&void 0!==n?n:""}}else u=function(e,t){for(var n=[];;){var r,i=eU(e,t);if(void 0===i||ez(i)||(r=i)>=33&&r<=35||36===r||r>=37&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||r>=162&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||r>=8208&&r<=8213||r>=8214&&r<=8215||8216===r||8217===r||8218===r||r>=8219&&r<=8220||8221===r||8222===r||8223===r||r>=8224&&r<=8231||r>=8240&&r<=8248||8249===r||8250===r||r>=8251&&r<=8254||r>=8257&&r<=8259||8260===r||8261===r||8262===r||r>=8263&&r<=8273||8274===r||8275===r||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||8608===r||r>=8609&&r<=8610||8611===r||r>=8612&&r<=8613||8614===r||r>=8615&&r<=8621||8622===r||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||8658===r||8659===r||8660===r||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||8968===r||8969===r||8970===r||8971===r||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||9001===r||9002===r||r>=9003&&r<=9083||9084===r||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||9655===r||r>=9656&&r<=9664||9665===r||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||9839===r||r>=9840&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||r>=10132&&r<=10175||r>=10176&&r<=10180||10181===r||10182===r||r>=10183&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||r>=10649&&r<=10711||10712===r||10713===r||10714===r||10715===r||r>=10716&&r<=10747||10748===r||10749===r||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||11158===r||r>=11159&&r<=11263||r>=11776&&r<=11777||11778===r||11779===r||11780===r||11781===r||r>=11782&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||r>=11790&&r<=11798||11799===r||r>=11800&&r<=11801||11802===r||11803===r||11804===r||11805===r||r>=11806&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||r>=11818&&r<=11822||11823===r||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||11840===r||11841===r||11842===r||r>=11843&&r<=11855||r>=11856&&r<=11857||11858===r||r>=11859&&r<=11903||r>=12289&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||r>=12306&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||r>=12318&&r<=12319||12320===r||12336===r||64830===r||64831===r||r>=65093&&r<=65094)break;n.push(i),t+=i>=65536?2:1}return eH.apply(void 0,n)};var eK=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,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else{if(125===i&&e>0)break;if(35===i&&("plural"===t||"selectordinal"===t)){var o=this.clonePosition();this.bump(),r.push({type:ey.pound,location:ek(o,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&eW(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}else{if(n)break;return this.error(eE.UNMATCHED_CLOSING_TAG,ek(this.clonePosition(),this.clonePosition()))}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ey.literal,value:"<".concat(r,"/>"),location:ek(n,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(eE.INVALID_TAG,ek(n,this.clonePosition()));var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(!this.bumpIf("</"))return this.error(eE.UNCLOSED_TAG,ek(n,this.clonePosition()));if(this.isEOF()||!eW(this.char()))return this.error(eE.INVALID_TAG,ek(o,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(eE.UNMATCHED_CLOSING_TAG,ek(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ey.tag,value:r,children:a,location:ek(n,this.clonePosition())},err:null}:this.error(eE.INVALID_TAG,ek(o,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 n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=ek(n,this.clonePosition());return{val:{type:ey.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(eW(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 n=this.char();if(39===n){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(n);this.bump()}return eH.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),eH(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(eE.EXPECT_ARGUMENT_CLOSING_BRACE,ek(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(eE.EMPTY_ARGUMENT,ek(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(eE.MALFORMED_ARGUMENT,ek(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(eE.EXPECT_ARGUMENT_CLOSING_BRACE,ek(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ey.argument,value:r,location:ek(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(eE.EXPECT_ARGUMENT_CLOSING_BRACE,ek(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(eE.MALFORMED_ARGUMENT,ek(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=u(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:ek(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(o){case"":return this.error(eE.EXPECT_ARGUMENT_TYPE,ek(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var d=eG(c.val);if(0===d.length)return this.error(eE.EXPECT_ARGUMENT_STYLE,ek(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:ek(u,this.clonePosition())}}var h=this.tryParseArgumentClose(r);if(h.err)return h;var m=ek(r,this.clonePosition());if(l&&eR(null==l?void 0:l.style,"::",0)){var f,p=eF(l.style.slice(2));if("number"===o){var c=this.parseNumberSkeletonFromString(p,l.styleLocation);return c.err?c:{val:{type:ey.number,value:n,location:m,style:c.val},err:null}}if(0===p.length)return this.error(eE.EXPECT_DATE_TIME_SKELETON,m);var g=p;this.locale&&(g=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(1&a),s=a<2?1:3+(a>>1),l=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 n,r=e.language;return"root"!==r&&(n=e.maximize().region),(eo[n||""]||eo[r||""]||eo["".concat(r,"-001")]||eo["001"])[0]}(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)n+="a";for(;o-- >0;)n=l+n}else"J"===i?n+="H":n+=i}return n}(p,this.locale));var d={type:eS.dateTime,pattern:g,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(f={},g.replace(es,function(e){var t=e.length;switch(e[0]){case"G":f.era=4===t?"long":5===t?"narrow":"short";break;case"y":f.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":f.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":f.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":f.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");f.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");f.weekday=["short","long","narrow","short"][t-4];break;case"a":f.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":f.hourCycle="h12",f.hour=["numeric","2-digit"][t-1];break;case"H":f.hourCycle="h23",f.hour=["numeric","2-digit"][t-1];break;case"K":f.hourCycle="h11",f.hour=["numeric","2-digit"][t-1];break;case"k":f.hourCycle="h24",f.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":f.minute=["numeric","2-digit"][t-1];break;case"s":f.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":f.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""}),f):{}};return{val:{type:"date"===o?ey.date:ey.time,value:n,location:m,style:d},err:null}}return{val:{type:"number"===o?ey.number:"date"===o?ey.date:ey.time,value:n,location:m,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var v=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(eE.EXPECT_SELECT_ARGUMENT_OPTIONS,ek(v,R({},v)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),_=0;if("select"!==o&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(eE.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ek(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(eE.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,eE.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),b=this.parseIdentifierIfPossible(),_=c.val}var E=this.tryParsePluralOrSelectOptions(e,o,t,b);if(E.err)return E;var h=this.tryParseArgumentClose(r);if(h.err)return h;var y=ek(r,this.clonePosition());return"select"===o?{val:{type:ey.select,value:n,options:ex(E.val),location:y},err:null}:{val:{type:ey.plural,value:n,options:ex(E.val),offset:_,pluralType:"plural"===o?"cardinal":"ordinal",location:y},err:null};default:return this.error(eE.INVALID_ARGUMENT_TYPE,ek(a,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(eE.EXPECT_ARGUMENT_CLOSING_BRACE,ek(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 n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(eE.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ek(n,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 n=[];try{n=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(el).filter(function(e){return e.length>0}),n=[],r=0;r<t.length;r++){var i=t[r].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var a=i[0],o=i.slice(1),s=0;s<o.length;s++)if(0===o[s].length)throw Error("Invalid number skeleton");n.push({stem:a,options:o})}return n}(e)}catch(e){return this.error(eE.INVALID_NUMBER_SKELETON,t)}return{val:{type:eS.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.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=r.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=R(R(R({},t),{notation:"scientific"}),r.options.reduce(function(e,t){return R(R({},e),ef(t)||{})},{}));continue;case"engineering":t=R(R(R({},t),{notation:"engineering"}),r.options.reduce(function(e,t){return R(R({},e),ef(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(r.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(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(ed,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else{if(i&&a)throw Error("We currently do not support maximum integer digits");if(o)throw Error("We currently do not support exact integer digits")}return""});continue}if(eh.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(eu.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(eu,function(e,n,r,i,a,o){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});var i=r.options[0];"w"===i?t=R(R({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=R(R({},t),em(i)));continue}if(ec.test(r.stem)){t=R(R({},t),em(r.stem));continue}var a=ef(r.stem);a&&(t=R(R({},t),a));var o=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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!eh.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);o&&(t=R(R({},t),o))}return t}(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,l=r.value,u=r.location;;){if(0===l.length){var c=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(eE.EXPECT_PLURAL_ARGUMENT_SELECTOR,eE.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=ek(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(s.has(l))return this.error("select"===t?eE.DUPLICATE_SELECT_ARGUMENT_SELECTOR:eE.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?eE.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:eE.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ek(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,n);if(m.err)return m;var f=this.tryParseArgumentClose(h);if(f.err)return f;o.push([l,{value:m.val,location:ek(h,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===o.length?this.error("select"===t?eE.EXPECT_SELECT_ARGUMENT_SELECTOR:eE.EXPECT_PLURAL_ARGUMENT_SELECTOR,ek(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(eE.MISSING_OTHER_CLAUSE,ek(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=10*a+(o-48),this.bump();else break}var s=ek(r,this.clonePosition());return i?eP(a*=n)?{val:a,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=eU(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(eR(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(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!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()&&ez(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function eW(e){return e>=97&&e<=122||e>=65&&e<=90}function ez(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function eZ(e,t){void 0===t&&(t={});var n=new eK(e,t=R({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(n.err){var r=SyntaxError(eE[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,ee(t)||et(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else J(t)&&er(t.style)||(Q(t)||$(t))&&ei(t.style)?delete t.style.location:en(t)&&e(t.children)})}(n.val),n.val}(o=c||(c={})).MISSING_VALUE="MISSING_VALUE",o.INVALID_VALUE="INVALID_VALUE",o.MISSING_INTL_API="MISSING_INTL_API";var eY=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return D(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),eq=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),c.INVALID_VALUE,i)||this}return D(t,e),t}(eY),eX=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),c.INVALID_VALUE,r)||this}return D(t,e),t}(eY),eJ=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),c.MISSING_VALUE,n)||this}return D(t,e),t}(eY);function eQ(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}(s=d||(d={}))[s.literal=0]="literal",s[s.object=1]="object";var e$=function(){function e(t,n,r,i){void 0===n&&(n=e.defaultLocale);var a,o,s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce(function(e,t){return e.length&&t.type===d.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return function e(t,n,r,i,a,o,s){if(1===t.length&&X(t[0]))return[{type:d.literal,value:t[0].value}];for(var l=[],u=0;u<t.length;u++){var h=t[u];if(X(h)){l.push({type:d.literal,value:h.value});continue}if(h.type===ey.pound){"number"==typeof o&&l.push({type:d.literal,value:r.getNumberFormat(n).format(o)});continue}var m=h.value;if(!(a&&m in a))throw new eJ(m,s);var f=a[m];if(h.type===ey.argument){f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),l.push({type:"string"==typeof f?d.literal:d.object,value:f});continue}if(Q(h)){var p="string"==typeof h.style?i.date[h.style]:ei(h.style)?h.style.parsedOptions:void 0;l.push({type:d.literal,value:r.getDateTimeFormat(n,p).format(f)});continue}if($(h)){var p="string"==typeof h.style?i.time[h.style]:ei(h.style)?h.style.parsedOptions:i.time.medium;l.push({type:d.literal,value:r.getDateTimeFormat(n,p).format(f)});continue}if(J(h)){var p="string"==typeof h.style?i.number[h.style]:er(h.style)?h.style.parsedOptions:void 0;p&&p.scale&&(f*=p.scale||1),l.push({type:d.literal,value:r.getNumberFormat(n,p).format(f)});continue}if(en(h)){var g=h.children,v=h.value,b=a[v];if("function"!=typeof b)throw new eX(v,"function",s);var _=b(e(g,n,r,i,a,o).map(function(e){return e.value}));Array.isArray(_)||(_=[_]),l.push.apply(l,_.map(function(e){return{type:"string"==typeof e?d.literal:d.object,value:e}}))}if(ee(h)){var E=h.options[f]||h.options.other;if(!E)throw new eq(h.value,f,Object.keys(h.options),s);l.push.apply(l,e(E.value,n,r,i,a));continue}if(et(h)){var E=h.options["=".concat(f)];if(!E){if(!Intl.PluralRules)throw new eY('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',c.MISSING_INTL_API,s);var y=r.getPluralRules(n,{type:h.pluralType}).select(f-(h.offset||0));E=h.options[y]||h.options.other}if(!E)throw new eq(h.value,f,Object.keys(h.options),s);l.push.apply(l,e(E.value,n,r,i,a,f-(h.offset||0)));continue}}return l.length<2?l:l.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===d.literal&&t.type===d.literal?n.value+=t.value:e.push(t),e},[])}(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=s.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var l=i||{},u=(l.formatters,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(l,["formatters"]));this.ast=e.__parse(t,R(R({},u),{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=(a=e.formats,r?Object.keys(a).reduce(function(e,t){var n,i;return e[t]=(n=a[t],(i=r[t])?R(R(R({},n||{}),i||{}),Object.keys(n).reduce(function(e,t){return e[t]=R(R({},n[t]),i[t]||{}),e},{})):n),e},R({},a)):a),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:x(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,H([void 0],t,!1)))},{cache:eQ(o.number),strategy:K.variadic}),getDateTimeFormat:x(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,H([void 0],t,!1)))},{cache:eQ(o.dateTime),strategy:K.variadic}),getPluralRules:x(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,H([void 0],t,!1)))},{cache:eQ(o.pluralRules),strategy:K.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=eZ,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 e0(e,t,n){return void 0===n&&(n={}),t.reduce(function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t},{})}function e1(e,t,n,r){var i,a=e&&e[t];if(a&&(i=a[n]),i)return i;r(new z("No ".concat(t," format named: ").concat(n)))}var e2=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function e3(e,t,n,r){var i=e.locale,a=e.formats,o=e.onError,s=e.timeZone;void 0===r&&(r={});var l=r.format,u=e0(r,e2,R(R({},s&&{timeZone:s}),l&&e1(a,t,l,o)));return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=R(R({},u),{hour:"numeric",minute:"numeric"})),n(i,u)}var e4=["style","type","fallback","languageDisplay"],e6=["type","style"],e8=Date.now();function e5(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=R({timeZone:t},e[r]),n},{})}function e7(e,t){return Object.keys(R(R({},e),t)).reduce(function(n,r){return n[r]=R(R({},e[r]||{}),t[r]||{}),n},{})}function e9(e,t){if(!t)return e;var n=e$.formats;return R(R(R({},n),e),{date:e7(e5(n.date,t),e5(e.date||{},t)),time:e7(e5(n.time,t),e5(e.time||{},t))})}var te=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function tt(e,t,n){var r=e.locale,i=e.formats,a=e.onError;void 0===n&&(n={});var o=n.format;return t(r,e0(n,te,o&&e1(i,"number",o,a)||{}))}var tn=["type"],tr=["numeric","style"];let ti=()=>{let e;try{let t=(0,O.Z)();e=(0,g.useCallback)((e,n)=>{let{id:r,defaultMessage:i}=e;return t.formatMessage({id:r,defaultMessage:i},n)},[t,L])}catch(r){let t=(0,M.Sn)(),n=(0,P.d)({locale:"en",messages:{}},t);e=(e,t)=>{let{defaultMessage:r,id:i}=e;return n.formatMessage({defaultMessage:r,id:i},t)}}return e},ta=Object.fromEntries(Object.keys(L).map(e=>[e,e])),to={"media-ui-login_signInOrCreateAccount":"Sign in or Create account","media-ui-login_continueWithGoogle":"Continue with Google","media-ui-login_enterYourEmail":"Enter your email","media-ui-login_invalidEmail":"Please enter a valid email address","media-ui-login_sendCodeFailed":"Failed to send verification code","media-ui-login_redirectingGroupSso":"Redirecting you to group SSO login...","media-ui-login_codeError":"The entered code is not correct. Please try again.","media-ui-login_codeResent":"A code has been sent to your email.","media-ui-login_enterCodeSentTo":"Please enter the code sent to:","media-ui-login_resendTheCode":"Resend the code","media-ui-login_editEmailAddress":"Edit email address","media-ui-login_errorVerifyingCode":"Error verifying the code","media-ui-login_errorSigningInWithSocial":"Error signing in with {socialSite}","media-ui-login_closeSignIn":"Close Sign In","media-ui-login_googleSignInTitle":"google sign-in","media-ui-login_appleSignInTitle":"apple sign-in","media-ui-login_facebookSignInTitle":"facebook sign-in","media-ui-login_twitterSignInTitle":"twitter sign-in","media-ui-login_bbaSignInTitle":"bba sign-in","media-ui-login_continue":"Continue","media-ui-login_continueWithApple":"Continue with Apple","media-ui-login_continueWithFacebook":"Continue with Facebook","media-ui-login_continueWithTwitter":"Continue with Twitter","media-ui-login_continueWithBba":"Continue with BBA","media-ui-login_orSeparator":"or","media-ui-login_signUp":"Sign Up","media-ui-login_enterYourPassword":"Enter your password","media-ui-login_forgotPassword":"Forgot Password","media-ui-login_didntGetAnything":"Didn't get anything?","media-ui-login_home":"home","media-ui-login_sendCodeFailedWithError":"Failed to send verification code with error {errorMessage}. Please log in with your password.","media-ui-login_sendCodeFailedPlain":"Failed to send verification code. Please log in with your password.","media-ui-login_unknownSocialSite":"Encountered unknown social site {socialSite}","media-ui-login_failedToAuthenticate":"Failed to authenticate"};var ts=n(62139),tl=n(22358),tu=n.n(tl),tc=n(3631),td=n(33617),th=n(99104),tm=n(84664);let tf=(e,t)=>{let n="light";return e?n=e:t&&(n="dark"===t?"dark":"light"),n},tp=(e,t)=>e||("dark"===t?"outlined":"primary");n(48870);var tg={content:"media-ui-EmailForm_content-uOUK1U9--h8-",inlinePrivacyPolicy:"media-ui-EmailForm_inlinePrivacyPolicy-DIIagaU1ySA-",standardPrivacyPolicy:"media-ui-EmailForm_standardPrivacyPolicy-uId7Qc6uJPg-",centeredLayout:"media-ui-EmailForm_centeredLayout-DIruFNtA-og-",error:"media-ui-EmailForm_error-q-4bmFMezLk-",hideError:"media-ui-EmailForm_hideError-zFD7YqYgV5Q-",darkInput:"media-ui-EmailForm_darkInput-T4kWfBUDbOU-",hideOnMobile:"media-ui-EmailForm_hideOnMobile-ukHi9le1fcY-",inlineEmailComponentsContainer:"media-ui-EmailForm_inlineEmailComponentsContainer-5whFRW75Ci8-",textInputContainerBoxTheme:"media-ui-EmailForm_textInputContainerBoxTheme-XpNYmpKYBF8-",boxTheme:"media-ui-EmailForm_boxTheme-X8oRSuZ9lIY-",standardButton:"media-ui-EmailForm_standardButton-6AiH2dMDwis-",inlineButton:"media-ui-EmailForm_inlineButton-t1IXlSnGYd8-",mobileButton:"media-ui-EmailForm_mobileButton-hn-Xbz3PW78-",mobileChildren:"media-ui-EmailForm_mobileChildren-6r3bQmso69Y-",textInput:"media-ui-EmailForm_textInput-b43lk-vTHC0-",label:"media-ui-EmailForm_label-15FEe3kXooo-",fullWidthLabel:"media-ui-EmailForm_fullWidthLabel-dajb0BpP3sI-",inlineEmailFormContainer:"media-ui-EmailForm_inlineEmailFormContainer-4CnOfWswPUs-",disclaimer:"media-ui-EmailForm_disclaimer-FeHEol3QnG0-",checkbox:"media-ui-EmailForm_checkbox-XO5J70q-lr0-",noMargin:"media-ui-EmailForm_noMargin-ZoTXgnUdXIQ-",dark:"media-ui-EmailForm_dark-B1CYAZtgS1I-",privacyContainer:"media-ui-EmailForm_privacyContainer-I8PFkddX-zU-",inlinePrivacyCheckbox:"media-ui-EmailForm_inlinePrivacyCheckbox-Pj-g59G2a2s-",maxWidth:"media-ui-EmailForm_maxWidth-wYFMeqAEIlM-"};let tv=/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,tb=e=>!!e&&!tv.test(e),t_=e=>!(0,tc.HV)(e),tE=g.forwardRef(function(e,t){let n=ti(),{inlineButton:r=!1,inputId:i="email-form-input",onFormSubmit:a,onEmailChange:o,centeredLayout:s,buttonText:l=n({id:ta["media-ui-login_signUp"],defaultMessage:to["media-ui-login_signUp"]}),loading:u=!1,error:c,countryCode:d,autoFocus:h=!1,hidePrivacyPolicy:m=!1,defaultValue:f="",className:p,isAutoOptedIn:v=!1,children:_=null,autocomplete:E,setGlobalMarketingConsent:y,emailVerificationWaitTime:S=500,fullWidth:C=!0}=e,w=tf(e.theme,e.variant),T=tp(e.buttonType,e.variant),[k,I]=(0,g.useState)(f.trim().toLowerCase()),[A,N]=(0,g.useState)(!1),[L,O]=(0,g.useState)(t_(d)||v),[M,P]=(0,g.useState)(!1),[B,D]=(0,g.useState)(!1),[R,H]=(0,g.useState)(void 0),x=(0,g.useRef)(k),U=k||M;(0,g.useEffect)(()=>{null==y||y(L)},[L]);let F=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=tb(e),r=0===e.length,i=!r&&!n;return t?i&&(N(!0),D(!1),H(void 0)):(N(!n&&!r),D(n),H(void 0)),i};(0,g.useEffect)(()=>{x.current=k,F(x.current,!0)||(R?(clearTimeout(R),H(void 0)):D(!1),H(setTimeout(()=>{F(x.current)},S)),null==o||o(k))},[k]);let G=(0,g.useCallback)(()=>{P(!0)},[P]),j=(0,g.useCallback)(e=>{e.preventDefault(),e.stopPropagation();let t=tb(k),n=0===k.trim().length;D(t),N(!t&&!n),k&&!t&&a(k,L)},[a,k,L]),V=(0,g.useCallback)(e=>{O(e.target.checked)},[O]),K=(0,b.Sh)([tg.textInput,U?tg.activeState:tg.inactiveState,{[tg.darkInput]:"dark"===w}]),W=(0,b.Sh)([...p?[p]:[],{[tg.centeredLayout]:s},{[tg.maxWidth]:!C},tg.content]),z="dark"===w?tg.dark:"",Z=(0,b.Sh)([r?tg.inlineButton:tg.standardButton,tg.noMargin]),Y=g.createElement(td.z,{id:i,ref:t,hideLabel:!0,type:"email",className:K,placeholder:n({id:ta["media-ui-login_enterYourEmail"],defaultMessage:to["media-ui-login_enterYourEmail"]}),value:k,required:!0,error:B,success:A,helperText:B?n({id:ta["media-ui-login_invalidEmail"],defaultMessage:to["media-ui-login_invalidEmail"]}):void 0,inputProps:{onFocus:G,autoFocus:h},onChange:e=>{I(e.target.value.trim().toLowerCase())},variant:"dark"===w?"dark":"default",autocomplete:E}),q=(0,g.useMemo)(()=>"primary"===T?g.createElement(th.K,{type:"submit",fullWidth:!0,loading:u,size:r?"default":"small",className:Z,version:"phoenix",colorMode:"dark"===w?"dark":"light",disabled:!A},l):g.createElement(ts.U,{type:"submit",loading:u,size:r?"default":"small",fullWidth:!0,version:"phoenix",colorMode:"dark"===w?"dark":"light",className:Z,disabled:!A},l),[T,w,u,r,l,A]),X=g.createElement("span",{className:(0,b.Sh)([tg.error,...""!==c&&c?[]:[tg.hideError],...r?[tg.hideOnMobile]:[]]),role:"alert","aria-atomic":!0},c),J=g.createElement(tc.Kw,{className:(0,b.Sh)([z,tg.checkbox]),defaultChecked:v,onChange:V,countryCode:d}),Q=g.createElement(tc.ue,{className:(0,b.Sh)([z,tg.disclaimer]),countryCode:d});return r?g.createElement(tm.l,{onSubmit:j,noValidate:!0,className:W},g.createElement("div",{className:tg.inlineEmailFormContainer},g.createElement("div",{className:tg.privacyContainer},!m&&g.createElement("div",{className:tg.inlinePrivacyPolicy},J,Q)),g.createElement("div",{className:tg.inlineEmailComponentsContainer},g.createElement("div",{className:(0,b.Sh)([tg.textInputContainerBoxTheme])},Y,X),g.createElement("div",{className:tg.hideOnMobile},q),g.createElement("div",{className:tg.mobileButton},q)),g.createElement("div",{className:tg.hideOnMobile},_),g.createElement("div",{className:tg.mobileChildren},_))):g.createElement(tm.l,{onSubmit:j,noValidate:!0,className:(0,b.Sh)([W])},g.createElement("div",{className:(0,b.Sh)([tg.boxTheme])},!m&&g.createElement("div",{className:tg.standardPrivacyPolicy},J,Q),Y,q,X))});var ty=n(24847);n(14486);var tS={wrapper:"media-ui-ErrorText_wrapper-DVnz67swMvg-",wrapperDark:"media-ui-ErrorText_wrapperDark-NA2TQ6581-w-"};let tC=g.forwardRef(function(e,t){let{errorMsg:n,name:r="error-text",variant:i="default"}=e,a=(0,v.f)(r),o=(0,b.Sh)([tS.wrapper,"error-text-box",{[tS.wrapper]:"default"===i,[tS.wrapperDark]:"dark"===i,[tS.hide]:!n,[tS.visible]:n}],e);return g.createElement("div",{className:o,role:"alert","aria-atomic":!0,ref:t,"data-component":a},n)});var tw=n(24229),tT=n(38968),tk=n(50020),tI=n(7009),tA=n(16562);n(94448);var tN={wrapper:"media-ui-CodeInputForm_wrapper-J3zq5bAEacI-",divWrapper:"media-ui-CodeInputForm_divWrapper-Y5p8TID0bIM-",divWrapperCenter:"media-ui-CodeInputForm_divWrapperCenter-hRcvRYK-m4c-",spacer:"media-ui-CodeInputForm_spacer-MIG0YhlhzZc-",marginTop:"media-ui-CodeInputForm_marginTop-jddiHl7RybM-",errorSection:"media-ui-CodeInputForm_errorSection-KkF7MbGjgXY-",errorCenter:"media-ui-CodeInputForm_errorCenter-ZzdirbTbcOU-",halfClass:"media-ui-CodeInputForm_halfClass-Ap6qnBEetI4-",section:"media-ui-CodeInputForm_section-1UMkn7Xgecg-",errorWrapper:"media-ui-CodeInputForm_errorWrapper-lWFo3iPgyJ0-",buttonContainer:"media-ui-CodeInputForm_buttonContainer-Q5iugTnI-zk-",textInput:"media-ui-CodeInputForm_textInput-W1eDVMRHFa0-",halfClassError:"media-ui-CodeInputForm_halfClassError-NH41hull3Gw-",halfClassErrorDark:"media-ui-CodeInputForm_halfClassErrorDark-C4FkKm8R4ys-",dots:"media-ui-CodeInputForm_dots-hLLCYQff1cQ-",dotsWhite:"media-ui-CodeInputForm_dotsWhite-hkzySJjuwiw-"},tL=((r=tL||{}).BackSpace="Backspace",r.ArrowLeft="ArrowLeft",r.ArrowRight="ArrowRight",r.Enter="Enter",r);let tO=g.forwardRef(function(e,t){let{length:n=6,onFormSubmit:r,autoSubmit:i=!0,buttonText:a="",center:o=!0,disabled:s=!1,errorMessage:l="",loading:u=!1,name:c="code-input-form",showError:d=!1,variant:h="default"}=e,m=(0,tA.Q)(),f=m({id:"media-ui-core_onlyEnterNumbers",defaultMessage:tT.j["media-ui-core_onlyEnterNumbers"]}),p=m({id:"media-ui-core_fillOutAllFields",defaultMessage:tT.j["media-ui-core_fillOutAllFields"]}),v=g.useRef(null),_=g.useMemo(()=>Array(n).fill(""),[n]),[E,y]=g.useState(_),[S,C]=g.useState(l),[w,T]=g.useState(!1),k=g.useRef(0),I=g.useCallback((0,b.Ds)(e=>{e&&e.preventDefault();let t=E.join("");if(t.length===n){r&&(T(!1),r(t));return}Date.now()-k.current<800||C(p)},500),[E,n,r,d]),A=g.useCallback(e=>{let t=document.querySelector("input[name=".concat(c,"-field-").concat(e,"]"));return!!t&&(t.focus(),!0)},[c]),N=g.useCallback(e=>function(t){let a=t.target.value;if(0===e&&a.length>1){k.current=Date.now();let e=a.replace(/\D/g,"").slice(0,n).split("");y(e),e.length===n?(C(""),T(!0),i&&(r?(r(e.join("")),T(!1)):setTimeout(()=>{I()},0))):A(e.length);return}if(!a.match(/[0-9]$/)&&""!==a){C(f);return}y(t=>t.map((t,n)=>n===e?a:t)),""!==a&&A(e+1),T(!0)},[i,n,c,A,T,I]),L=g.useCallback(e=>function(t){C("");let n=t.target.value;"Backspace"===t.key&&""===n&&(T(!0),A(e-1)),a||"Enter"!==t.key||I()},[c,a,A,I,T]),O=g.useCallback(e=>function(t){let{key:n}=t;"ArrowLeft"===n&&A(e-1),"ArrowRight"===n&&A(e+1)},[A]),M=g.useCallback(e=>function(t){t.preventDefault();let r=t.clipboardData.getData("text").split("").filter((e,t)=>!("-"===e&&t===n/2));for(let t=0;t<r.length;t+=1){let n=r[t],i=/[0-9]$/;if(!(null==n?void 0:n.match(i))){C(f);break}let a=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set,o=document.querySelector("input[name=".concat(c,"-field-").concat(e+t,"]"));a.call(o,n);let s=new Event("input",{bubbles:!0,cancelable:!0});o.dispatchEvent(s),T(!0),C("")}},[T]),P=g.useCallback(()=>{y(_),A(0),T(!0)},[]);g.useImperativeHandle(t,()=>({clearForm(){P()},tagName:"FORM",element:v.current}));let B=g.useCallback((t,r)=>{let i=[],a=r?0:t/2;for(let r=a;r<t/2+a;r+=1)i.push(g.createElement(tk.I,{id:"input-".concat(r),inputProps:{autoFocus:0===r,type:"tel",onKeyDown:L(r),onKeyUp:O(r),onPaste:M(r),pattern:"[0-9]?",inputMode:"numeric",maxLength:0===r?void 0:1},className:(0,b.Sh)([tN.textInput,{[tN.textInputError]:S}],{...e,name:"".concat(c,"-input-item")}),key:"".concat(a,"-").concat(r,"-").concat(t),name:"".concat(c,"-field-").concat(r),disabled:s||u,value:E[r],autoComplete:r===a?"one-time-code":"",placeholder:m({id:"media-ui-core_digitNOfTotal",defaultMessage:tT.j["media-ui-core_digitNOfTotal"]},{position:String(r+1),total:String(n)}),required:!0,onChange:N(r)}));return i},[E,s,u,S,e,c,L,O,M,N,n]),D=(0,b.Sh)(["input-section",tN.halfClass,{[tN.halfClassError]:S&&"default"===h,[tN.halfClassErrorDark]:S&&"dark"===h}],{...e,name:"".concat(c,"-half")});return g.useEffect(()=>{E.every(e=>!!e)&&i&&w&&I()},[E,I,w]),g.useEffect(()=>{l.length&&l!==S&&C(l)},[l]),g.createElement(tm.l,{onSubmit:I,noValidate:!0,name:c,autoComplete:"off",ref:v,alignDirection:"stretch",className:(0,b.Sh)([],e)},g.createElement("div",{className:(0,b.Sh)([tN.divWrapper,{[tN.divWrapperCenter]:o}],{...e,name:"".concat(c,"-inner")})},g.createElement("span",{className:(0,b.Sh)([D,"input-section-first",{"group-eight":8===n,"group-six":6===n}],{...e,name:"".concat(c,"-input-section-first")})},B(n,!0)),g.createElement("span",{className:tN.spacer}),g.createElement("span",{className:(0,b.Sh)([D,"input-section-last",{"group-eight":8===n,"group-six":6===n}],{...e,name:"".concat(c,"-input-section-last")})},B(n,!1))),g.createElement("section",{className:(0,b.Sh)([tN.errorSection,{[tN.errorCenter]:o}])},g.createElement("div",{className:(0,b.Sh)([tN.errorWrapper,{[tN.errorCenter]:o}])},g.createElement(tC,{errorMsg:S,variant:h})),a?g.createElement("div",{className:tN.marginTop},g.createElement(th.K,{type:"submit",size:"default",disabled:s,loading:u},a)):u&&g.createElement("div",{className:(0,b.Sh)([tN.dots,{[tN.dotsWhite]:"dark"===h}])},g.createElement(tI.x,null))))}),tM={GOOGLE:"GOOGLE",APPLE:"APPLE",FACEBOOK:"FACEBOOK",TWITTER:"TWITTER",TERMINAL:"TERMINAL"},tP=async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"SocialUser";if(!e)throw Error("RegUIClient undefined!");let i=to["media-ui-login_unknownSocialSite"].replace("{socialSite}",t),a={success:!1,data:{},error:{errorMessage:i}};switch(t){case tM.APPLE:a=await e.appleLogin(r,n);break;case tM.FACEBOOK:a=await e.facebookLogin(r,n);break;case tM.TERMINAL:a=await e.terminalLogin(r,n);break;case tM.TWITTER:a=await e.twitterLogin(r,n);break;default:console.error(i)}return a},tB=async function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"CreateAccountUser";return await (null==e?void 0:e.verifyVerificationCode(t,n,i,r))},tD=async(e,t)=>{let n;return t.endsWith("@bloomberg.net")?(null==e||e.linkToBSSO(),n=await (null==e?void 0:e.terminalLogin())):await (null==e?void 0:e.redirectToGeneratedGroupSubsSSOUrlIfEligible(t))&&(n={data:{isGroupSSO:!0}}),n},tR=async(e,t,n)=>{try{if(!e)throw Error("RegUIClient undefined");let r=await e.googleSignIn(t.credential,n);return console.log("info","Response from Google Sign In:",JSON.stringify(r)),r}catch(e){console.error("Something went wrong =>",e)}return{success:!1,data:{}}},tH=async(e,t,n,r)=>{try{if(!e)throw Error("RegUIClient undefined");let i=await e.passwordLogin(t,n,r);return console.log("info","Response from BConnect Sign In:",JSON.stringify(i)),i}catch(e){console.error("Something went wrong =>",e)}return{success:!1,error:{errorMessage:to["media-ui-login_failedToAuthenticate"],name:"AUTHENTICATION_ERROR",message:to["media-ui-login_failedToAuthenticate"]},data:{}}};n(77168);var tx={verificationCodeInputWrapper:"media-ui-EmailVerificationForm_verificationCodeInputWrapper-u-Efi2UQF34-",verificationCodeInput:"media-ui-EmailVerificationForm_verificationCodeInput-le9N4KEjgrA-",secondaryCtaWrapper:"media-ui-EmailVerificationForm_secondaryCtaWrapper-7d3ANwCpw1g-",buttonLooksLikeALink:"media-ui-EmailVerificationForm_buttonLooksLikeALink-U2p-zDu7h9Q-",textWhite:"media-ui-EmailVerificationForm_textWhite-r5-AE9lVBDg-",notificationWrapper:"media-ui-EmailVerificationForm_notificationWrapper-cS-nYBGUjsw-",instructionWrapper:"media-ui-EmailVerificationForm_instructionWrapper-bJ1deWHuhqM-",instructionTitle:"media-ui-EmailVerificationForm_instructionTitle-RSs33nHKMc0-",instructionMessage:"media-ui-EmailVerificationForm_instructionMessage-LXg-mT-T1mI-",verificationEmailFormWrapper:"media-ui-EmailVerificationForm_verificationEmailFormWrapper-B3UawJsmTPo-",verificationEmailForm:"media-ui-EmailVerificationForm_verificationEmailForm-wxFw4dYOEeU-",header:"media-ui-EmailVerificationForm_header-hIn-avIYi0A-",codeInputForm:"media-ui-EmailVerificationForm_codeInputForm-Tr14cEmNfVg-",verificationInputContainer:"media-ui-EmailVerificationForm_verificationInputContainer-MlsxnOOD29Q-"};let tU=g.forwardRef(function(e,t){let n=ti(),{email:r,onEmailChange:i,codeReSent:a,onResendEmail:o,onVerificationCodeInputStarting:s,onVerificationCodeInputComplete:l,onVerificationCodeSubmit:u,marketingConsent:c,allowEditEmail:d,leadSource:h,setIsLoggedIn:m,googleTracking:f,nr:p,disabled:v=!1}=e;e.regUIClient||console.warn("Please pass in a regUIClient parameter from the client instead!");let _=tf(e.theme,e.variant),E=(0,g.useRef)(null),[y,S]=(0,g.useState)(!1),[C,w]=(0,g.useState)(!1),[T,k]=(0,g.useState)(e.regUIClient);(0,g.useEffect)(()=>{T||k(new(tu()))},[]);let I=async e=>{var t;if(!T)return;null==f||f.trackRegisterEvent("submit_code"),null==p||p.logRegisterEvent("submit_code"),S(!0),null==s||s();let i=await tB(T,r,e,!!c,h);null==l||l(),(null==i?void 0:i.success)?i.data&&(i.data.firstTimeUser?(null==f||f.trackRegisterEvent("account_verified"),null==p||p.logRegisterEvent("account_verified")):(null==f||f.trackLoginEvent("account_verified"),null==p||p.logLoginEvent("account_verified"))):(w(!0),console.error((null==i?void 0:null===(t=i.error)||void 0===t?void 0:t.errorMessage)||n({id:ta["media-ui-login_errorVerifyingCode"],defaultMessage:to["media-ui-login_errorVerifyingCode"]})),null==f||f.trackErrorEvent("error: invalid_token"),null==p||p.logErrorEvent("error: invalid_token")),u({...i,...(null==i?void 0:i.data)&&Object.keys(i.data).length>0?{data:{...i.data,email:r},success:null==i?void 0:i.success}:{success:!1}}),null==m||m((null==i?void 0:i.success)||!1),S(!1)};return(0,g.useEffect)(()=>{let e=E.current,t=()=>{C&&w(!1)};return null==e||e.addEventListener("keydown",t),()=>null==e?void 0:e.removeEventListener("keydown",t)},[C]),g.createElement("div",{className:(0,b.Sh)([tx.verificationCodeInputWrapper])},g.createElement("div",{className:(0,b.Sh)([tx.verificationCodeInput])},g.createElement("div",{className:(0,b.Sh)([tx.instructionWrapper,{[tx.textWhite]:"dark"===_}])},g.createElement("span",{className:(0,b.Sh)([tx.instructionTitle])},n({id:ta["media-ui-login_enterCodeSentTo"],defaultMessage:to["media-ui-login_enterCodeSentTo"]})),g.createElement("span",{className:(0,b.Sh)([tx.instructionMessage])},g.createElement("b",null,r))),g.createElement("div",{ref:E,className:(0,b.Sh)([tx.codeInputForm])},g.createElement(tO,{className:tx.codeInputForm,onFormSubmit:I,length:8,loading:y,ref:t,showError:C,errorMessage:C?n({id:ta["media-ui-login_codeError"],defaultMessage:to["media-ui-login_codeError"]}):void 0,variant:"dark"===_?"dark":"default",disabled:v})),!v&&g.createElement("div",{className:(0,b.Sh)([tx.notificationWrapper,{[tx.textWhite]:"dark"===_}])},a?g.createElement(ty.Z,{variant:"success",title:n({id:ta["media-ui-login_codeResent"],defaultMessage:to["media-ui-login_codeResent"]})}):g.createElement("div",{className:(0,b.Sh)([tx.secondaryCtaWrapper,{[tx.textWhite]:"dark"===_}])},g.createElement("span",null,"".concat(n({id:ta["media-ui-login_didntGetAnything"],defaultMessage:to["media-ui-login_didntGetAnything"]})," ")),g.createElement("div",null,g.createElement(tw.F,{className:tx.buttonLooksLikeALink,onClick:o,type:"button",version:"phoenix",colorMode:"dark"===_?"dark":"light"},n({id:ta["media-ui-login_resendTheCode"],defaultMessage:to["media-ui-login_resendTheCode"]})),d&&g.createElement("span",null," ".concat(n({id:ta["media-ui-login_orSeparator"],defaultMessage:to["media-ui-login_orSeparator"]})," "),g.createElement(tw.F,{className:tx.buttonLooksLikeALink,disabled:y,onClick:i,type:"button",version:"phoenix",colorMode:"dark"===_?"dark":"light"},n({id:ta["media-ui-login_editEmailAddress"],defaultMessage:to["media-ui-login_editEmailAddress"]}))))))))});n(22515);var tF="media-ui-OrSeparator_separatorItem-TJzXHshHebA-";let tG=e=>{let t=ti()({id:ta["media-ui-login_orSeparator"],defaultMessage:to["media-ui-login_orSeparator"]});return g.createElement("div",{className:"media-ui-OrSeparator_separatorRow-0-r1u-Sl3s4-"},g.createElement("div",{className:tF},g.createElement("hr",null)),g.createElement("div",{className:(0,b.Sh)([tF,{"media-ui-OrSeparator_textWhite-WoRGlWPi4C4-":"dark"===e.theme}])},g.createElement("span",null,t)),g.createElement("div",{className:tF},g.createElement("hr",null)))},tj={DEV:"6Ldg36IUAAAAAANOMM57fJ3nAH2R7Cq5cVe8lcoL",STAGING:"6LdehaMUAAAAAKnkPQ7strzRJtkV0z262iwF5J9D",PROD:"6Lfj7akUAAAAAGDt7CiiLizYUN6Syh72hVmontj7"},tV=()=>w()?tj.PROD:T()?tj.STAGING:tj.DEV,tK=e=>e&&new URLSearchParams(window.location.search).get("skipGrecaptcha")||void 0,tW=e=>w()||"true"!==tK(e);async function tz(e,t,n){if(!e)return console.error("isRecaptchaRequired: the component isn't mounted"),!0;if(!tW(e))return!1;if(!n)return console.error("isRecaptchaRequired: no regUIClient available"),!0;let r=tK(e);if(r&&"true"!==r)try{var i,a;let e=await n.validateCaptchaKey(r,t);return(null===(i=e.data)||void 0===i||!i.valid)&&(console.error("Skip Recaptcha JWT is invalid: ".concat(null===(a=e.data)||void 0===a?void 0:a.errorMessage)),!0)}catch(e){return console.error("Failed to validate JWT with error ".concat(e.message)),!0}return!0}let tZ=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],[i,a]=(0,g.useState)(tW(e));return(0,g.useEffect)(()=>{if(r){a(!1);return}tz(e,t,n).then(e=>{a(e)}).catch(e=>{console.error("Failed to check recaptcha required: ".concat(e.message))})},[a,t,r]),i};"u">typeof globalThis?globalThis:window;var tY={exports:{}};tY.exports,tY.exports=(function(){if(p)return f;p=1;var e=m?h:(m=1,h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,f=function(){function r(t,n,r,i,a,o){if(o!==e){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a}})()();var tq=(l=tY.exports)&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l;n(31404);var tX={textWhite:"media-ui-EnterPasswordOrVerificationCode_textWhite-ePgrdQ8sQk4-",continuePasswordCode:"media-ui-EnterPasswordOrVerificationCode_continuePasswordCode-QiJC-xuUO0U-",password:"media-ui-EnterPasswordOrVerificationCode_password-FXE-PhxUImg-",forgotPassword:"media-ui-EnterPasswordOrVerificationCode_forgotPassword-3NvQ-PgD4xI-",error:"media-ui-EnterPasswordOrVerificationCode_error-dUtWdKLqdy4-",header:"media-ui-EnterPasswordOrVerificationCode_header-zcupTPgVHus-",form:"media-ui-EnterPasswordOrVerificationCode_form-d74FkVim8rA-",buttonLooksLikeALink:"media-ui-EnterPasswordOrVerificationCode_buttonLooksLikeALink-BHDJxDUHZGc-",darkInput:"media-ui-EnterPasswordOrVerificationCode_darkInput-tiz1CUVaibw-",textInput:"media-ui-EnterPasswordOrVerificationCode_textInput-qtiAfgLMF4s-",hiddenOnMobile:"media-ui-EnterPasswordOrVerificationCode_hiddenOnMobile-4bzvI8cfhso-"};class tJ extends g.Component{componentDidMount(){let{grecaptchaApiKey:e,setGrecaptchaId:t,elementId:n,size:r}=this.props;this._addScript();let i=()=>{var i;null===(i=window.grecaptcha)||void 0===i||i.ready(()=>{var i;this.grecaptchaId=null===(i=window.grecaptcha)||void 0===i?void 0:i.render(n,{sitekey:e,size:r,callback:()=>this._onCaptchaResponse()}),t(this.grecaptchaId)})},a=()=>{var e;if(window.grecaptcha&&"function"==typeof(null===(e=window.grecaptcha)||void 0===e?void 0:e.ready)){i();return}setTimeout(()=>{a()},100)};a()}_addScript(){let e="https://www.google.com/recaptcha/api.js?render=explicit";if(document.querySelectorAll('[src="'.concat(e,'"]')).length>0)return;let t=document.createElement("script");t.src=e,t.async=!0,t.defer=!0,document.head.appendChild(t)}_onSubmit(e){var t;e.preventDefault(),null===(t=window.grecaptcha)||void 0===t||t.execute(this.grecaptchaId)}_onCaptchaResponse(){var e,t;let n=null===(e=window.grecaptcha)||void 0===e?void 0:e.getResponse();this.props.onCaptchaResponse(n),null===(t=window.grecaptcha)||void 0===t||t.reset(this.grecaptchaId)}render(){let{hiddenOnMobile:e,elementId:t}=this.props;return g.createElement("div",{id:t,className:e?tX.hiddenOnMobile:""})}constructor(e){super(e),this.grecaptchaId=null,this._onSubmit=this._onSubmit.bind(this),this._onCaptchaResponse=this._onCaptchaResponse.bind(this)}}tJ.propTypes={onCaptchaResponse:tq.func.isRequired,grecaptchaApiKey:tq.string.isRequired,hiddenOnMobile:tq.bool,elementId:tq.string.isRequired,setGrecaptchaId:tq.func,size:tq.string.isRequired};let tQ=e=>{let{recaptchaRequired:t=!0,formStyles:n,grecaptchaApiKey:r,onCaptchaResponse:i,children:a,formRef:o}=e,[s,l]=(0,g.useState)(null);return(0,g.useEffect)(()=>{var e;null===(e=window.newrelic)||void 0===e||e.addPageAction("Login with Password",{recaptchaRequired:t})},[t]),t&&r?g.createElement("form",{className:n,onSubmit:e=>{var t;e.preventDefault(),null===(t=window.grecaptcha)||void 0===t||t.execute(s)},ref:o},a,g.createElement(tJ,{grecaptchaApiKey:r,elementId:"grecaptchaSubmitButton",size:"invisible",onCaptchaResponse:i,setGrecaptchaId:l,hiddenOnMobile:!1})):g.createElement("form",{ref:o,className:n,onSubmit:e=>{e.preventDefault(),i(null)}},a)},t$=e=>{let{theme:t="light",thinking:n,email:r,error:i,codeReSent:a,marketingConsent:o,regUIClient:s,verificationCodeSent:l=!0,onEmailChange:u,onResendEmail:c,onPasswordLogin:d,onVerificationCodeInputStarting:h,onVerificationCodeInputComplete:m,onVerificationCodeSubmit:f}=e,p=ti(),v=(0,g.useRef)(null),_=(0,g.useRef)(null),[E,y]=(0,g.useState)(""),[S,C]=(0,g.useState)(!0),[w,T]=(0,g.useState)(!1),k=tZ(w,r,s);(0,g.useEffect)(()=>C(!E.length),[E]),(0,g.useEffect)(()=>{T(!0)},[]),(0,g.useEffect)(()=>{var e;w&&!l&&v.current&&(null===(e=v.current.querySelector("input"))||void 0===e||e.focus())},[w,l]);let I=async e=>{let t={captchaResponse:e,useRecaptcha:k,captchaBypass:tK(w)};await d(r,E,t)};return w?g.createElement("div",{className:tX.continuePasswordCode},l&&g.createElement(g.Fragment,null,g.createElement("div",{"data-name":"continuePasswordless"},g.createElement(tU,{theme:t,email:r,codeReSent:a||!1,marketingConsent:o,onEmailChange:u,onResendEmail:c,onVerificationCodeInputStarting:h,onVerificationCodeInputComplete:m,onVerificationCodeSubmit:f,allowEditEmail:!1,regUIClient:s}),g.createElement(tC,{errorMsg:null==i?void 0:i.verificationCode,variant:"light"===t?"default":t})),g.createElement(tG,{theme:t})),g.createElement("div",{"data-name":"continuePassword"},g.createElement("h2",{className:(0,b.Sh)([tX.header,{[tX.textWhite]:"dark"===t}])},p({id:ta["media-ui-login_enterYourPassword"],defaultMessage:to["media-ui-login_enterYourPassword"]})),g.createElement("div",{className:tX.password},g.createElement(tQ,{recaptchaRequired:k,formStyles:tX.form,onCaptchaResponse:e=>void I(e),grecaptchaApiKey:tV(),formRef:_},g.createElement("div",{"data-testid":"wdio-password-entry"},g.createElement(td.z,{variant:"dark"===t?"dark":"default",type:"password",ref:v,placeholder:p({id:ta["media-ui-login_enterYourPassword"],defaultMessage:to["media-ui-login_enterYourPassword"]}),name:"password",value:E,required:!0,onChange:e=>{y(e.currentTarget.value)},autocomplete:"current-password",disabled:n,className:(0,b.Sh)([tX.textInput,{[tX.darkInput]:"dark"===t}])}),g.createElement("div",{"data-testid":"wdio-password-continue-button"},g.createElement(th.K,{colorMode:"dark"===t?"dark":"light",fullWidth:!0,size:"default",type:"button",loading:!!n,disabled:S,version:"phoenix",onClick:()=>{var e;return null===(e=_.current)||void 0===e?void 0:e.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))}},p({id:ta["media-ui-login_continue"],defaultMessage:to["media-ui-login_continue"]}))))),g.createElement(tC,{className:tX.error,errorMsg:null==i?void 0:i.password,variant:"light"===t?"default":"dark"}),g.createElement("div",{className:tX.forgotPassword},g.createElement(tw.F,{colorMode:"dark"===t?"dark":"light",type:"button",className:(0,b.Sh)([tX.buttonLooksLikeALink]),version:"phoenix",onClick:()=>{window.location.href="/account/forgot-password"}},p({id:ta["media-ui-login_forgotPassword"],defaultMessage:to["media-ui-login_forgotPassword"]})))))):g.createElement(g.Fragment,null)};var t0=((i=t0||{}).EMAIL_SUBMISSION="EMAIL_SUBMISSION",i.CHOOSE_YOUR_METHOD="CHOOSE_YOUR_METHOD",i.VERIFICATION_CODE="VERIFICATION_CODE",i);let t1=g.forwardRef(function(e,t){let{onEmailSubmit:n,onTerminalLogin:r,defaultEmail:i,countryCode:a,allowEditEmail:o,buttonText:s,header:l,centeredLayout:u=!0,inlineButton:c=!0,autoFocus:d=!1,marketingConsent:h,onPasswordLogin:m,onVerificationCodeSubmit:f,setGlobalMarketingConsent:p,setIsLoggedIn:v,setShowSocialSignins:_,googleTracking:E,nr:y,error:S,setError:C,fullWidth:w=!0,allowPassword:T=!1,leadSource:k}=e;e.regUIClient||console.warn("Please pass in a regUIClient parameter from the client instead!");let I=tf(e.theme,e.variant),A=tp(e.buttonType,e.variant),[N,L]=(0,g.useState)(!1),[O,M]=(0,g.useState)(!1),[P,B]=(0,g.useState)(i?T?"CHOOSE_YOUR_METHOD":"VERIFICATION_CODE":"EMAIL_SUBMISSION"),[D,R]=(0,g.useState)(i),[H,x]=(0,g.useState)(i),[U,F]=(0,g.useState)(e.regUIClient),[G,j]=(0,g.useState)(!1),[V,K]=(0,g.useState)(!1),W=ti();(0,g.useEffect)(()=>{U||F(new(tu()))},[]),(0,g.useEffect)(()=>{V&&(M(!0),setTimeout(()=>{M(!1)},3e4))},[V]);let z=(0,g.useRef)(null),Z=async(e,t,n)=>{L(!0);try{await m(e,t,n)}catch(e){null==y||y.logErrorEvent("Invalid Password Login",{error:e})}finally{L(!1)}},Y=async e=>{var t,n;null===(t=z.current)||void 0===t||t.clearForm();try{let t=await (null==U?void 0:U.sendVerificationEmail(e));if(!(null==t?void 0:t.success)){let r=null==t?void 0:null===(n=t.error)||void 0===n?void 0:n.message,i=r?W({id:ta["media-ui-login_sendCodeFailedWithError"],defaultMessage:to["media-ui-login_sendCodeFailedWithError"]},{errorMessage:r}):W({id:ta["media-ui-login_sendCodeFailedPlain"],defaultMessage:to["media-ui-login_sendCodeFailedPlain"]});return null==y||y.logErrorEvent("MediaUiLoginErrors",{errorMessage:r||to["media-ui-login_sendCodeFailedPlain"],email:e,type:"SEND_VERIFICATION_CODE"}),null==C||C({...S,verificationCode:i}),K(!1),!1}}catch(r){let t=r.message,n=t?W({id:ta["media-ui-login_sendCodeFailedWithError"],defaultMessage:to["media-ui-login_sendCodeFailedWithError"]},{errorMessage:t}):W({id:ta["media-ui-login_sendCodeFailedPlain"],defaultMessage:to["media-ui-login_sendCodeFailedPlain"]});return null==y||y.logErrorEvent("MediaUiLoginErrors",{errorMessage:t||to["media-ui-login_sendCodeFailedPlain"],email:e,type:"SEND_VERIFICATION_CODE"}),null==C||C({...S,verificationCode:n}),K(!1),!1}return K(!0),!0},q=async(e,t)=>{var i;if(!U)return;let a=e.endsWith("@bloomberg.net");L(!0),null==p||p(t);let o=await tD(U,e);if((null==o?void 0:o.success)&&(null==o?void 0:o.data)&&(o.data.email=e,f(o)),null==o?void 0:null===(i=o.data)||void 0===i?void 0:i.isGroupSSO)j(!0),null==_||_(!1);else if(a)r(e,!!(null==o?void 0:o.success));else{R(e);let t=await Y(e);T?(B("CHOOSE_YOUR_METHOD"),null==_||_(!1)):t?(B("VERIFICATION_CODE"),null==_||_(!1)):null==C||C({...S,email:W({id:ta["media-ui-login_sendCodeFailed"],defaultMessage:to["media-ui-login_sendCodeFailed"]})})}n(e,(null==o?void 0:o.success)&&a||t,!!(null==o?void 0:o.success)),L(!1)};(0,g.useEffect)(()=>{D&&U&&q(D,h||!1)},[U]);let X=async()=>{D&&(await Y(D),null==E||E.trackRegisterEvent("resend_code"),null==y||y.logRegisterEvent("resend_code"))};return D&&"EMAIL_SUBMISSION"!==P?"CHOOSE_YOUR_METHOD"===P?g.createElement(t$,{theme:I,thinking:N,error:S,email:D,regUIClient:U,marketingConsent:h,onEmailChange:()=>B("EMAIL_SUBMISSION"),onPasswordLogin:Z,codeReSent:O,onResendEmail:X,onVerificationCodeInputStarting:()=>{L(!0)},onVerificationCodeInputComplete:()=>{L(!1)},onVerificationCodeSubmit:f,verificationCodeSent:V}):"VERIFICATION_CODE"===P?g.createElement("div",{className:tx.verificationInputContainer},g.createElement(tU,{marketingConsent:h,email:D,onEmailChange:()=>{R(void 0),B("EMAIL_SUBMISSION"),null==_||_(!0)},onResendEmail:X,codeReSent:O,ref:z,allowEditEmail:o,theme:"dark"===I?"dark":"light",onVerificationCodeSubmit:f,setIsLoggedIn:v,googleTracking:E,nr:y,regUIClient:U,leadSource:k})):g.createElement("div",null):g.createElement("div",{className:(0,b.Sh)([tx.verificationEmailFormWrapper])},g.createElement("div",{className:(0,b.Sh)([tx.verificationEmailForm])},l&&g.createElement("div",{className:(0,b.Sh)([tx.header,{[tx.textWhite]:"dark"===I}])},l),G?g.createElement(ty.Z,{variant:"success",title:W({id:ta["media-ui-login_redirectingGroupSso"],defaultMessage:to["media-ui-login_redirectingGroupSso"]})}):g.createElement(tE,{inlineButton:c,onFormSubmit:q,buttonText:s||W({id:ta["media-ui-login_continue"],defaultMessage:to["media-ui-login_continue"]}),isAutoOptedIn:h,loading:N||!U,centeredLayout:u,onEmailChange:x,defaultValue:H,countryCode:a,ref:t,buttonType:"primary"===A?"primary":"outlined",autoFocus:d,theme:"dark"===I?"dark":"light",setGlobalMarketingConsent:p,error:null==S?void 0:S.email,fullWidth:w})))}),t2=()=>w()?"546584498403-snvknu3h3pbh270lcnr3r88gedpi2vic.apps.googleusercontent.com":"1050715551196-b1gn63jaqv5t1503recv9ovlom52s5v3.apps.googleusercontent.com",t3=g.forwardRef(function(e,t){let n=ti(),r=n({id:ta["media-ui-login_continueWithGoogle"],defaultMessage:to["media-ui-login_continueWithGoogle"]}),i=n({id:ta["media-ui-login_googleSignInTitle"],defaultMessage:to["media-ui-login_googleSignInTitle"]}),{onGoogleSignIn:a,buttonText:o=r,buttonType:s="primary",caller:l,className:u,onClickCb:c,theme:d="light",size:h="small"}=e,[m,f]=g.useState(!1),p=g.useRef(null);g.useEffect(()=>{window.onGoogleSignIn=async e=>{f(!0);try{await a(e)}finally{f(!1)}}},[a]),g.useEffect(()=>{k("https://accounts.google.com/gsi/client")},[]);let v=g.useCallback(()=>{var e,t,n;let r=null===(e=p.current)||void 0===e?void 0:e.querySelector("div[role=button]");r||(r=null===(t=p.current)||void 0===t?void 0:t.querySelector('div[tabindex="0"]')),null===(n=window.newrelic)||void 0===n||n.addPageAction("googleSignIn",{type:"Clicked",caller:l}),null==r||r.click(),c&&c()},[]);return g.createElement("div",{ref:t,className:(0,b.Sh)([u])},g.createElement("div",{id:"g_id_onload","data-client_id":t2(),"data-context":"signin","data-ux_mode":"popup","data-callback":"onGoogleSignIn","data-auto_prompt":"false"}),g.createElement("div",{ref:p,style:{display:"none"},className:"g_id_signin"}),"primary"===s?g.createElement(th.K,{version:"phoenix",colorMode:"dark"===d?"dark":"light",Icon:g.createElement(E.ie,{isMultiColor:!0}),iconPosition:"left",fullWidth:!0,onClick:v,size:h,loading:m},o):g.createElement(ts.U,{version:"phoenix",colorMode:"dark"===d?"dark":"light",iconPosition:"left",Icon:g.createElement(E.ie,{isMultiColor:!0}),fullWidth:!0,onClick:v,size:h,loading:m,title:i},o))}),t4="registration";var t6=((a=t6||{}).registration="register",a.login="login",a.click="click",a.error="error",a);class t8{trackClickEvent(e){this.trackEvent({eventAction:"click",eventLabel:e})}trackErrorEvent(e){this.trackEvent({eventAction:"error",eventLabel:e})}constructor(e,t){this.trackEvent=e=>{var t;let{eventAction:n,eventLabel:r}=e;null===(t=window.dataLayer)||void 0===t||t.push({event:this.eventTriggerName,eventCategory:this.eventCategory,eventAction:n,eventLabel:r})},this.eventCategory=t,this.eventTriggerName=e}}class t5 extends t8{trackLoginEvent(e){this.trackEvent({eventAction:"login",eventLabel:e})}trackRegisterEvent(e){this.trackEvent({eventAction:"register",eventLabel:e})}trackSocialLogIn(e,t,n){if(t){this.trackRegisterEvent("join_now_".concat(e));return}if(n){this.trackLoginEvent("link_".concat(e));return}this.trackLoginEvent("sign_in_".concat(e))}constructor(e){super(e,t4)}}class t7{constructor(e,t){this.addPageAction=(e,t)=>{var n;null===(n=window.newrelic)||void 0===n||n.addPageAction(e,t)},this.logErrorEvent=(e,t)=>{var n;null===(n=window.newrelic)||void 0===n||n.addPageAction(this.eventTriggerName,{eventCategory:this.eventCategory,eventAction:"error",eventLabel:e,...t})},this.logClickEvent=(e,t)=>{var n;null===(n=window.newrelic)||void 0===n||n.addPageAction(this.eventTriggerName,{eventCategory:this.eventCategory,eventAction:"click",eventLabel:e,...t})},this.eventCategory=t,this.eventTriggerName=e}}class t9 extends t7{logSocialLogIn(e,t,n){if(t){this.logRegisterEvent("join_now_".concat(e));return}if(n){this.logLoginEvent("link_".concat(e));return}this.logLoginEvent("sign_in_".concat(e))}constructor(e){super(e,t4),this.logLoginEvent=(e,t)=>{var n;null===(n=window.newrelic)||void 0===n||n.addPageAction(this.eventTriggerName,{eventCategory:this.eventCategory,eventAction:"login",eventLabel:e,...t})},this.logRegisterEvent=(e,t)=>{var n;null===(n=window.newrelic)||void 0===n||n.addPageAction(this.eventTriggerName,{eventCategory:this.eventCategory,eventAction:"register",eventLabel:e,...t})}}}n(64690);var ne={socialButtonsContainer:"media-ui-LogInRegistration_socialButtonsContainer--2ttNo-74mo-",iconButton:"media-ui-LogInRegistration_iconButton-5tP5dd4KIr0-",facebook:"media-ui-LogInRegistration_facebook-dGfTpZ4ZIUs-",twitter:"media-ui-LogInRegistration_twitter-JqHlAdQvhHg-",title:"media-ui-LogInRegistration_title-e4jSx88-kbI-",content:"media-ui-LogInRegistration_content-VD5OkwzgMK4-",hide:"media-ui-LogInRegistration_hide-hOktVm9CetQ-",noMarginTop:"media-ui-LogInRegistration_noMarginTop-WskAHOzVvm4-",textWhite:"media-ui-LogInRegistration_textWhite-irhQt5yrzac-",noPaddingTop:"media-ui-LogInRegistration_noPaddingTop-tw9OTmv4Wlk-",lottie:"media-ui-LogInRegistration_lottie-GoUbiQKVmfU-",lottieSubtext:"media-ui-LogInRegistration_lottieSubtext-LukOkAlq8n4-"};let nt=g.lazy(()=>n.e(4632).then(n.bind(n,88260)).then(e=>({default:e.DotLottieReact}))),nn=g.forwardRef(function(e,t){let n=ti(),{socialLoginsList:r=[tM.GOOGLE,tM.APPLE,tM.TERMINAL],setUserDataResp:i,formTitle:a=n({id:ta["media-ui-login_signInOrCreateAccount"],defaultMessage:to["media-ui-login_signInOrCreateAccount"]}),showTitle:o=!0,inlineContinueButton:s=!1,theme:l="light",countryCode:u,allowEditEmail:c=!0,continueButtonText:d=n({id:ta["media-ui-login_continue"],defaultMessage:to["media-ui-login_continue"]}),onEmailCapture:h,onClickForGoogle:m,onTerminalLogin:f=()=>{},callerAppInfo:p,emailFocus:v=!0,allowPassword:_=!1,leadSource:y,enableOnboarding:S=!1,isGiftedArticleUser:C}=e;e.regUIClient||console.warn("Please pass in a regUIClient parameter from the client instead!");let[w,T]=(0,g.useState)(void 0);(0,g.useEffect)(()=>{var e;T((e=window.location.pathname).endsWith("/games/alphadots")?"alphadots":e.endsWith("/games/pointed")?"pointed":void 0)},[]);let[k,I]=(0,g.useState)(!1),[N,L]=(0,g.useState)(!0),[O,M]=(0,g.useState)({}),[P,B]=(0,g.useState)(),[D,R]=(0,g.useState)(),[H,x]=(0,g.useState)(!1),[U,F]=(0,g.useState)(e.regUIClient),G=(0,g.useRef)(H),[j,V]=(0,g.useState)();(0,g.useEffect)(()=>{U||F(new(tu()))},[]),(0,g.useEffect)(()=>{x(t_(u))},[u]),(0,g.useEffect)(()=>{G.current=H},[H]),(0,g.useEffect)(()=>{B(new t5(p.triggerEventName)),R(new t9(p.triggerEventName))},[]),(0,g.useEffect)(()=>{if(j&&(i(j),S&&(null==j?void 0:j.success))){let e="".concat(window.location.origin,"/account/onboarding"),t=A(window.location.pathname)?void 0:"redirectTo=".concat(encodeURIComponent(window.location.href)),n=!1;j.data.redirectToPostLoginConversion&&(e+="?isReturningUser=true".concat(t?"&".concat(t):""),n=!0),(j.data.firstTimeUser||j.data.accountWasCreated)&&(n=!0,e+=t?"?".concat(t):""),n&&(window.location.href=e)}},[j]);let K=!C,W={[tM.APPLE]:g.createElement(E.AC,null),[tM.FACEBOOK]:g.createElement(E.s1,{className:ne.facebook}),[tM.TWITTER]:g.createElement(E.tL,{className:ne.twitter}),[tM.TERMINAL]:g.createElement(E.oI,null)},z=async t=>{if(U){var r,i,a,o,s,l;let e=await tR(U,t,G.current);if(null==h||h((null===(r=e.data)||void 0===r?void 0:r.email)||"",G.current,e.success),e.success)null==P||P.trackSocialLogIn(tM.GOOGLE,e.data.accountWasCreated,e.data.accountWasLinked),null==D||D.logSocialLogIn(tM.GOOGLE,e.data.accountWasCreated,e.data.accountWasLinked);else{let t=(null===(a=e.error)||void 0===a?void 0:a.errorMessage)||n({id:ta["media-ui-login_errorSigningInWithSocial"],defaultMessage:to["media-ui-login_errorSigningInWithSocial"]},{socialSite:tM.GOOGLE});e.error||(e.error={name:t,message:t,errorMessage:t}),e.error.errorMessage=t,M({...O,social:t}),null==P||P.trackErrorEvent("error_".concat(tM.GOOGLE)),null==D||D.logErrorEvent("MediaUiLoginErrors",{errorMessage:(null===(o=e.error)||void 0===o?void 0:o.errorMessage)||to["media-ui-login_errorSigningInWithSocial"],email:(null===(s=e.data)||void 0===s?void 0:s.email)||"",type:"GOOGLE"})}V({...e,data:{...e.data,redirectToPostLoginConversion:(l=((null===(i=U.getSubscriberData())||void 0===i?void 0:i.subscriptionsData)||[]).length>0,!e.data.accountWasCreated&&K&&!l)}}),I(e.success)}e.onGoogleSignIn&&await e.onGoogleSignIn(t)},Z=async e=>{var t,r,i,a,o,s,l,u,c;if(!U)return;null==P||P.trackClickEvent("connect_".concat(e)),null==D||D.logClickEvent("connect_".concat(e));let d=await tP(U,e,H,y);if(null==h||h((null===(t=d.data)||void 0===t?void 0:t.email)||"",H,d.success),d.success)null==P||P.trackSocialLogIn(e,null===(r=d.data)||void 0===r?void 0:r.accountWasCreated,null===(i=d.data)||void 0===i?void 0:i.accountWasLinked),null==D||D.logSocialLogIn(e,null===(a=d.data)||void 0===a?void 0:a.accountWasCreated,null===(o=d.data)||void 0===o?void 0:o.accountWasLinked);else{let t=n({id:ta["media-ui-login_errorSigningInWithSocial"],defaultMessage:to["media-ui-login_errorSigningInWithSocial"]},{socialSite:e});M({...O,social:t}),null==P||P.trackErrorEvent("error_".concat(e)),null==D||D.logErrorEvent("MediaUiLoginErrors",{errorMessage:(null===(l=d.error)||void 0===l?void 0:l.errorMessage)||to["media-ui-login_errorSigningInWithSocial"],email:(null===(u=d.data)||void 0===u?void 0:u.email)||"",type:"SOCIAL"})}V({...d,data:{...d.data,redirectToPostLoginConversion:(c=((null===(s=U.getSubscriberData())||void 0===s?void 0:s.subscriptionsData)||[]).length>0,!d.data.accountWasCreated&&K&&!c)}}),I(d.success)},Y=async(e,t,r)=>{var i,a,o,s,l,u,c;if(!U)return;null==P||P.trackClickEvent("bconnect"),null==D||D.logClickEvent("bconnect");let d=await tH(U,e,t,r);if(null==h||h((null===(i=d.data)||void 0===i?void 0:i.email)||"",H,d.success),d.success)null==P||P.trackLoginEvent("bconnect_success"),null==D||D.logLoginEvent("bconnect_success",{excessSessionsDeleted:null===(a=d.data)||void 0===a?void 0:a.excessSessionsDeleted,requiresPasswordUpdate:null===(o=d.data)||void 0===o?void 0:o.requiresPasswordUpdate});else{let e=n({id:ta["media-ui-login_failedToAuthenticate"],defaultMessage:to["media-ui-login_failedToAuthenticate"]});M({...O,password:e}),null==P||P.trackErrorEvent("error_bconnect"),null==D||D.logErrorEvent("MediaUiLoginErrors",{errorMessage:(null===(l=d.error)||void 0===l?void 0:l.errorMessage)||to["media-ui-login_failedToAuthenticate"],email:(null===(u=d.data)||void 0===u?void 0:u.email)||"",type:"PASSWORD"})}V({...d,data:{...d.data,redirectToPostLoginConversion:(c=((null===(s=U.getSubscriberData())||void 0===s?void 0:s.subscriptionsData)||[]).length>0,!d.data.accountWasCreated&&K&&!c)}}),I(d.success)},q=e=>{switch(e){case tM.GOOGLE:return n({id:ta["media-ui-login_continueWithGoogle"],defaultMessage:to["media-ui-login_continueWithGoogle"]});case tM.APPLE:return n({id:ta["media-ui-login_continueWithApple"],defaultMessage:to["media-ui-login_continueWithApple"]});case tM.FACEBOOK:return n({id:ta["media-ui-login_continueWithFacebook"],defaultMessage:to["media-ui-login_continueWithFacebook"]});case tM.TWITTER:return n({id:ta["media-ui-login_continueWithTwitter"],defaultMessage:to["media-ui-login_continueWithTwitter"]});case tM.TERMINAL:return n({id:ta["media-ui-login_continueWithBba"],defaultMessage:to["media-ui-login_continueWithBba"]});default:return""}},X=e=>{switch(e){case tM.GOOGLE:return n({id:ta["media-ui-login_googleSignInTitle"],defaultMessage:to["media-ui-login_googleSignInTitle"]});case tM.APPLE:return n({id:ta["media-ui-login_appleSignInTitle"],defaultMessage:to["media-ui-login_appleSignInTitle"]});case tM.FACEBOOK:return n({id:ta["media-ui-login_facebookSignInTitle"],defaultMessage:to["media-ui-login_facebookSignInTitle"]});case tM.TWITTER:return n({id:ta["media-ui-login_twitterSignInTitle"],defaultMessage:to["media-ui-login_twitterSignInTitle"]});case tM.TERMINAL:return n({id:ta["media-ui-login_bbaSignInTitle"],defaultMessage:to["media-ui-login_bbaSignInTitle"]});default:return""}},J=N&&0!==r.length?g.createElement("div",{className:(0,b.Sh)([ne.socialButtonsContainer])},g.createElement(tG,{theme:l}),r.map(e=>{switch(e){case tM.GOOGLE:return g.createElement("div",{className:ne.iconButton,key:e},g.createElement(t3,{onGoogleSignIn:z,buttonType:"outlined",buttonText:q(tM.GOOGLE),onClickCb:()=>{null==P||P.trackClickEvent("connect_".concat(tM.GOOGLE)),null==D||D.logClickEvent("connect_".concat(tM.GOOGLE)),null==m||m()},className:ne.googleButton,theme:l,size:"default"}));case tM.APPLE:case tM.FACEBOOK:case tM.TWITTER:case tM.TERMINAL:return g.createElement("div",{className:ne.iconButton,key:e},g.createElement(ts.U,{version:"phoenix",colorMode:"dark"===l?"dark":"light",iconPosition:"left",Icon:W[e],onClick:()=>Z(e),size:"default",fullWidth:!0,title:X(e)},q(e)));default:return console.log("Encountered unknown social site",e),g.createElement(g.Fragment,null)}})):g.createElement(g.Fragment,null),Q=w?g.createElement("div",null,g.createElement(g.Suspense,{fallback:g.createElement("div",{className:ne.lottie})},g.createElement(nt,{className:ne.lottie,src:"".concat("https://assets.bwbx.io/s3/reg2/images","/").concat("alphadots"===w?"alphadotsRegwallAnimation.json":"pointedRegwallAnimation.json"),loop:"pointed"===w,autoplay:!0})),g.createElement("div",{className:ne.lottieSubtext},"Get daily quizzes, game archives, and more.")):null;return k?g.createElement(g.Fragment,null):g.createElement("div",{className:(0,b.Sh)([ne.content,{[ne.noPaddingTop]:!o}])},g.createElement(t1,{onEmailSubmit:(e,t,n)=>{null==P||P.trackRegisterEvent("submit_email"),null==D||D.logRegisterEvent("submit_email"),null==h||h(e,t,n)},onTerminalLogin:f,countryCode:u,allowEditEmail:c,buttonText:d,header:o?g.createElement("div",null,g.createElement("h1",{className:(0,b.Sh)([ne.title,{[ne.textWhite]:"dark"===l}])},a),Q):null,ref:t,centeredLayout:!1,autoFocus:v,marketingConsent:H,inlineButton:s,theme:l,buttonType:"primary",onPasswordLogin:Y,onVerificationCodeSubmit:e=>{var t,n;U&&V({...e,data:{...e.data,redirectToPostLoginConversion:(n=((null===(t=U.getSubscriberData())||void 0===t?void 0:t.subscriptionsData)||[]).length>0,!e.data.firstTimeUser&&K&&!n)}})},setGlobalMarketingConsent:x,setShowSocialSignins:L,setIsLoggedIn:I,googleTracking:P,nr:D,error:O,setError:M,regUIClient:U,fullWidth:!1,allowPassword:_,leadSource:y}),J)}),nr=e=>{let{countryCode:t,regUIClient:n,enableOnboarding:r=!1,allowPassword:i=!0,signInClicked:a,setSignInClicked:o,initializeSignInIframe:s,forceModalExperience:l=!1}=e,u=ti(),[c,d]=(0,g.useState)(),[h,m]=(0,g.useState)(),f=(0,g.useMemo)(()=>typeof window.document>"u",[]),p=()=>{o(!1)};return(0,g.useEffect)(()=>{(async()=>{let e=!1,t=!1,n="",r=new URLSearchParams(window.location.search).get(y);try{l?(e=!0,console.warn("Forcing sign in modal experience")):e=(await I(r?"?".concat(y,"=").concat(r):void 0)).showSignInModal}catch(e){console.error("Error fetching flags, defaulting to false:",e),t=!0,n=e.message}finally{var i;e||null==s||s(),m(e),null===(i=window.newrelic)||void 0===i||i.addPageAction("SignInModal",{modalOrIframe:e?"modal":"iframe",wasDecisionMadeDueToError:t,errorMessage:n,wasInitializeSignInIframePassedIn:!!s,isUsingMock:!!r,mockValue:r,forceModalExperience:l})}})()},[]),(0,g.useEffect)(()=>{c&&c.success&&p()},[c]),f?(console.error('Please note that SignInModal is a client-side component since it uses the\nDOM/document element. That means that you need to ensure the parent server-side\ncomponent has mounted before rendering it. See "media-ui-nav/Nav" for an example.'),g.createElement(g.Fragment,null)):h&&a?(0,_.createPortal)(g.createElement("div",{className:N.signInModalContainer,"data-status":"show",id:"modalContainer",onClick:p},g.createElement("dialog",{open:!0,className:N.signInModal,"data-testid":"sign-in-modal",onClick:e=>e.stopPropagation()},g.createElement("div",{className:N.header},g.createElement("button",{"aria-label":u({id:ta["media-ui-login_home"],defaultMessage:to["media-ui-login_home"]}),type:"button",className:N.homeButton},g.createElement(E.hE,null)),g.createElement("button",{"aria-label":u({id:ta["media-ui-login_closeSignIn"],defaultMessage:to["media-ui-login_closeSignIn"]}),role:"button","data-testid":"close-sign-in-modal",onClick:p},g.createElement(E.n$,null))),g.createElement("div",{className:N.loginRegistration},g.createElement(nn,{setUserDataResp:d,socialLoginsList:[tM.GOOGLE,tM.APPLE,tM.TERMINAL],callerAppInfo:{triggerEventName:"UVerify Event",applicationCaller:"BREG"},countryCode:t,regUIClient:n,allowPassword:i,enableOnboarding:r})))),document.body):null};var ni=n(60006);n(38136);var na={authorSessionContainer:"media-ui-AuthorSession_authorSessionContainer-nBZKE-h8vQg-",content:"media-ui-AuthorSession_content-K6IlV9ctvTI-",imageContainer:"media-ui-AuthorSession_imageContainer-LG4r7wcTeFQ-",textContainer:"media-ui-AuthorSession_textContainer-qdS3Tt4wJP0-",image:"media-ui-AuthorSession_image-QK-TIyXWIjE-",statusLink:"media-ui-AuthorSession_statusLink-st-oXFK0nDw-",title:"media-ui-AuthorSession_title-gXHv-gqdpD0-",joinNow:"media-ui-AuthorSession_joinNow-v304d95QN9A-",joinNowText:"media-ui-AuthorSession_joinNowText-RQQMXyOU44A-",closed:"media-ui-AuthorSession_closed-TpXZuK-Xvzg-",iconButton:"media-ui-AuthorSession_iconButton-fpYQMV4xKLY-"};let no=g.forwardRef(function(e,t){let{imageUrl:n,status:r,title:i,url:a="",onClose:o=()=>{},desktopBreakpointClassName:s,trackingFunction:l=()=>{}}=e,[u,c]=(0,g.useState)(!1),d=(0,b.Sh)([na.authorSessionContainer,u&&na.closed]);(0,g.useEffect)(()=>{l("impression","authorSession_".concat(i))},[]);let h=(0,g.useCallback)(()=>{l("click","authorSession_".concat(i))},[i]),m=(0,g.useCallback)(e=>function(t){o(e),l("click","authorSession_close"),c(!0)},[]);return i?g.createElement("div",{className:d,ref:t},g.createElement("div",{className:(0,b.Sh)([na.content,s])},n&&g.createElement("div",{className:na.imageContainer},g.createElement("a",{href:a,tabIndex:-1,onClick:h},g.createElement("img",{className:na.image,src:n,alt:i}))),g.createElement("div",{className:na.textContainer},g.createElement("a",{className:na.statusLink,href:a,tabIndex:-1,onClick:h},r),g.createElement("a",{href:a,onClick:h},g.createElement("span",{className:na.title},i)),g.createElement("a",{className:na.joinNowLink,href:a,onClick:h},g.createElement("div",{className:na.joinNow},g.createElement("span",{className:na.playButton},g.createElement(E.sh,null)),g.createElement("span",{className:na.joinNowText},"Join Now")))),g.createElement(ni.h,{onClick:m("ExitClick"),className:na.iconButton},g.createElement(E.h6,null)))):null});var ns=n(50508);n(10528);var nl={breakingNews:"media-ui-BreakingNews_breakingNews-Sg6Pd76ZazY-",closed:"media-ui-BreakingNews_closed-TZWYD6k90Xo-",contentContainer:"media-ui-BreakingNews_contentContainer-uWHeu8Mu4p4-",linkContainer:"media-ui-BreakingNews_linkContainer-A4ymmLDasYc-",identifier:"media-ui-BreakingNews_identifier-26mz-o8S4ww-",headline:"media-ui-BreakingNews_headline-iqj-BK3w2sw-",readMore:"media-ui-BreakingNews_readMore-MPy55X3VI2Q-",iconButton:"media-ui-BreakingNews_iconButton-omiS-oDF-L4-"};let nu=g.forwardRef(function(e,t){let{headline:n,url:r="",identifier:i,onClose:a,desktopBreakpointClassName:o,trackingFunction:s=()=>{}}=e,[l,u]=g.useState(!1),c=(0,b.Sh)([nl.breakingNews,l&&nl.closed]),d=(0,v.f)("breaking-news");(0,g.useEffect)(()=>{s("impression","breakingNews_".concat(n))},[]);let h=(0,g.useCallback)(()=>{s("click","breakingNews_".concat(n))},[n]),m=(0,g.useCallback)(e=>function(t){a&&(a(e),s("click","breakingNews_close")),u(!0)},[]);return n?g.createElement("div",{className:c,"data-component":d,ref:t},g.createElement("div",{className:(0,b.Sh)([nl.contentContainer,o])},g.createElement("a",{className:nl.linkContainer,href:r,onClick:h},g.createElement("div",{className:nl.identifier},i),g.createElement("div",{className:nl.headline},n),g.createElement("div",{className:nl.readMore},g.createElement(ns.jU,{id:"media-ui-nav_readMore",defaultMessage:"Read more"}))),g.createElement(ni.h,{onClick:m("ExitClick"),className:nl.iconButton},g.createElement(E.h6,null)))):null});var nc=n(83682);let nd={production:"https://assets.bwbx.io/s3/multimedia/projector/latest/bplayer.js",staging:"https://assets-dev.bwbx.io/s3/multimedia/projector/latest/bplayer.js",local:"http://localhost:7314/bplayer.js"};var nh=n(9996),nm=n.n(nh);async function nf(e,t){if(window.BPlayer)return window.BPlayer;try{var n,r,i;return await (null===(n=await (r="https://assets.bwbx.io/s3/spritz/v1/spritz.js",i=null==t?void 0:t.scriptType,new Promise((e,t)=>{window.Spritz&&e(window.Spritz);let n=document.getElementById("mui-spritz");if(!n||"SCRIPT"!==n.tagName){let n=document.createElement("script");n.src=r,n.async=!0,n.setAttribute("id","mui-spritz"),n.setAttribute("type",i||"text/javascript"),n.onload=()=>{e(window.Spritz)},n.onerror=e=>t(e),document.body.appendChild(n)}let a=0,o=n=>{window.Spritz&&(clearTimeout(a),e(window.Spritz));let r=2*n;r>6e4&&t(Error("Media-UI: Spritz unable to load on the window")),a=setTimeout(o,r)};o(300)})))||void 0===n?void 0:n.inject(nd[e])),window.BPlayer}catch(e){throw console.error("Media-UI: Unable to load BPlayer via spritz ".concat(e)),e}}let np=/\/(-?\d+x-?\d+)(?=\.[^.]+$)/;function ng(e){let[t,...n]=e,r=nm().all([t||{},...n]);return Object.keys(r).reduce((e,n)=>void 0===r[n]?{...e,[n]:t?t[n]:{}}:{...e,[n]:r[n]},{})}function nv(e){let[t="1",n="1"]=e.split(":"),r=parseInt(t,10),i=parseInt(n,10);return isNaN(r)&&(r=1),isNaN(i)&&(i=1),{width:r,height:i}}n(99268);var nb={wrapper:"media-ui-VideoPlayer_wrapper-txYAIIZsO-k-",posterVideo:"media-ui-VideoPlayer_posterVideo-89S8g4osnpg-",description:"media-ui-VideoPlayer_description--QMnOCr1hTI-"};let n_=g.forwardRef(function(e,t){let n,r;let{name:i="videoplayer",playerRef:a}=e,[o]=(0,v.f)(i),s=g.useRef(null),l=(0,nc.H)(s,t),u=nv(e.options.aspectRatio||"16:9"),c=e.options.intrinsicAspectRatio?nv(e.options.intrinsicAspectRatio):u,d=e.options.fillPosition||"center",h=e.options.fillContainer,m=(0,b.Sh)([nb.wrapper],{...e,name:i}),{loaded:f,player:p}=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{env:r="production",onReady:i,options:a}=t,{importOptions:o={}}=a,[s,l]=g.useState(!1),[u,c]=g.useState(null),[d,h]=g.useState(),[m,f]=g.useState([]);return g.useEffect(()=>{nf(r,o).then(e=>{e&&l(!0)})},[]),g.useEffect(()=>{let r;if(s&&e.current){if(n){let{itemOptions:n,playlistOption:i}=function(e){let{startMuted:t,foundationLayout:n=!0,autoplay:r=!1,loadSuggestions:i,preloadThreshold:a,repeat:o,startFrom:s=0,onReady:l,onError:u,transitionDuration:c,options:d}=e;return{itemOptions:ng([d,{autoplay:r,start_muted:t,useFoundationLayout:n}]),playlistOption:{loadSuggestions:i,preloadThreshold:a,repeat:o,startFrom:s,onReady:l,onError:u,transitionDuration:c}}}(t),a=(t.playlist||[]).map(e=>nm().all([n,e]));r=window.BPlayer.createPlaylistPlayer(e.current,a,i),h(i),f(a)}else{let{options:n,callbacks:i}=function(e){let{autoplay:t=!1,options:n,startMuted:r,foundationLayout:i=!0,onReady:a,onError:o}=e;return{options:ng([n,{autoplay:t,start_muted:r,useFoundationLayout:i}]),callbacks:{onReady:a,onError:o}}}(t);r=window.BPlayer.create(e.current,n,i),h(n)}c(r)}},[s,e.current]),g.useEffect(()=>{if(u)return i&&u.ready(i),()=>{null==u||u.dispose()}},[u]),{loaded:s,player:u,playlist:m,options:d}}(l,e);p&&a&&(a.current=p),g.useEffect(()=>{p&&e.description&&p.ready(()=>{var t;let n=document.createElement("figcaption");n.innerText=e.description,n.className=nb.description,null===(t=l.current)||void 0===t||t.appendChild(n)})},[e.description,p]);let _=e.options.poster,E=_&&(n=400,r=400,c.width>c.height?r=Math.round(c.height/c.width*n):n=Math.round(c.width/c.height*r),_.replace(np,"/".concat(n,"x").concat(r)));return g.createElement("figure",{style:{aspectRatio:"".concat(u.width,"/").concat(u.height)},className:m,ref:l,"data-component":o},E&&g.createElement("video",{style:h?{objectFit:"cover",objectPosition:d}:void 0,controls:!1,poster:E,className:nb.posterVideo},g.createElement("source",{src:"",type:"video/webm"}),g.createElement("track",{default:!0,kind:"captions",src:""})),e.description&&g.createElement("figcaption",{className:nb.description},e.description))});n(44466);var nE={breakingNewsLiveStreamContainer:"media-ui-BreakingNewsLiveStream_breakingNewsLiveStreamContainer-hqA0dPAZxT4-",content:"media-ui-BreakingNewsLiveStream_content-Xymqbwv91Zo-",playerContainer:"media-ui-BreakingNewsLiveStream_playerContainer-sSE8mNDrCtA-",textContainer:"media-ui-BreakingNewsLiveStream_textContainer--oOMTZrGKfo-",image:"media-ui-BreakingNewsLiveStream_image-gjaPYh4oavk-",liveNowLink:"media-ui-BreakingNewsLiveStream_liveNowLink-MzXho8XEhZw-",title:"media-ui-BreakingNewsLiveStream_title-5qZR633ETaY-",watch:"media-ui-BreakingNewsLiveStream_watch-g6Up9KjXY1k-",watchText:"media-ui-BreakingNewsLiveStream_watchText-mPpvc1B6JM4-",closed:"media-ui-BreakingNewsLiveStream_closed-NKUTm1zKM6I-",iconButton:"media-ui-BreakingNewsLiveStream_iconButton-U862gkKYcHk-"};let ny=g.forwardRef(function(e,t){let{imageUrl:n,region:r,streamId:i,theme:a,title:o,url:s="",onClose:l=()=>{},desktopBreakpointClassName:u,trackingFunction:c=()=>{},VideoPlayerComponent:d}=e,h=(0,g.useMemo)(()=>({options:{id:i,live:!0,poster:n,module_ad_player:"disabled",hidePlayerControls:!0},autoplay:!0,controls:!1,video_autoplay_on_page:!0,use_google_tag_manager:!0,start_muted:!0,useCustomBufferingAnimation:"QT_MINI"===i}),[i,n]),[m,f]=g.useState(!1),p=(0,g.useRef)(null),_=(0,b.Sh)([nE.breakingNewsLiveStreamContainer,m&&nE.closed]),y=(0,v.f)("breaking-news-live-stream");(0,g.useEffect)(()=>{c("impression","breakingNewsLiveStream_".concat(o))},[]);let S=(0,g.useCallback)(()=>{c("click","breakingNewsLiveStream_".concat(o))},[o]),C=(0,g.useCallback)(e=>function(t){l(e),c("click","breakingNewsLiveStream_close"),f(!0)},[]);return o?g.createElement("div",{className:_,"data-component":y,ref:t,"data-theme":a},g.createElement("div",{className:(0,b.Sh)([nE.content,u])},g.createElement("div",{className:nE.playerContainer},g.createElement("a",{href:s,tabIndex:-1,onClick:S},d?g.createElement(g.Fragment,null,d):g.createElement(n_,{...h,playerRef:p}),g.createElement("div",{"data-streamid":i,"data-region":r}))),g.createElement("div",{className:nE.textContainer},g.createElement("a",{className:nE.liveNowLink,href:s,tabIndex:-1,onClick:S},g.createElement(ns.jU,{id:"media-ui-nav_livenow",defaultMessage:"LIVE NOW"})),g.createElement("a",{className:nE.titleLink,href:s,onClick:S},g.createElement("div",{className:nE.title},"QT"===a?g.createElement(ns.jU,{id:"media-ui-nav_quicktake",defaultMessage:"<prefix>Quicktake:</prefix> {title}",values:{title:o,prefix:e=>g.createElement("span",{className:nE.quicktake},e)}}):o)),g.createElement("a",{href:s,onClick:S},g.createElement("div",{className:nE.watch},g.createElement("span",{className:nE.playButton},g.createElement(E.sh,null)),g.createElement("span",{className:nE.watchText},g.createElement(ns.jU,{id:"media-ui-nav_watch",defaultMessage:"Watch"}))))),g.createElement(ni.h,{onClick:C("ExitClick"),className:nE.iconButton},g.createElement(E.h6,null)))):null});var nS=n(25173);let nC={defaultText:"My Interests",textId:"media-ui-nav_menu_item_interests",url:"/portal/your-content?in_source=navi"},nw={defaultText:"Newsletters",textId:"media-ui-nav_menu_item_newsletter",url:"/account/newsletters?in_source=navi"},nT={defaultText:"Watchlist",textId:"media-ui-nav_menu_item_watchlist",url:"/markets/watchlist?in_source=navi"},nk={defaultText:"Account",textId:"media-ui-nav_menu_item_account",url:"/portal/account?in_source=navi"},nI={defaultText:"Subscription",textId:"media-ui-nav_menu_item_subscription",url:"/portal/subscription?in_source=navi"},nA={defaultText:"Help Center",textId:"media-ui-nav_menu_item_helpCenter",url:"/help?in_source=help-nav"},nN={defaultText:"Sign Out",textId:"media-ui-nav_menu_item_signOut",url:"/signout"},nL={interests:{defaultText:"",items:[nC,nw,nT]},settings:{defaultText:"Settings",textId:"media-ui-nav_menu_header_settings",items:[nk,nI]},help:{defaultText:"",items:[nA,nN]}},nO={interests:{defaultText:"",items:[{defaultText:"Saved",textId:"media-ui-nav_menu_item_savedItems",url:"/portal/saved?in_source=navi"},nC,nw,nT]},settings:{defaultText:"Settings",textId:"media-ui-nav_menu_header_settings",items:[nk,nI,{defaultText:"Billing",textId:"media-ui-nav_menu_item_billing",url:"/portal/billing?in_source=navi"}]},help:{defaultText:"",items:[nA,nN]}},nM={...nO,interests:{...nO.interests,items:[...nO.interests.items,{defaultText:"My Company Hub",textId:"media-ui-nav_menu_item_corporateHub",url:"/your-company?in_source=navi"}]}},nP={[nS.Up.US]:{value:"AMER",text:"US",url:"/"},[nS.Up.UK]:{value:"UK",text:"UK",switchEditionPrompt:"Switch Editions",url:"/uk"},[nS.Up.CANADA]:{value:"CANADA",text:"Canada",url:"/canada"},[nS.Up.LATAM]:{value:"LATAM",text:"Latin America",url:"/latinamerica"},[nS.Up.EUROPE]:{value:"EUR",text:"Europe",url:"/europe"},[nS.Up.ASIA]:{value:"APAC",text:"Asia",url:"/asia"},[nS.Up.MIDDLE_EAST]:{value:"MIDEAST",text:"Middle East",url:"/middleeast"},[nS.Up.AFRICA]:{value:"AFRICA",text:"Africa",url:"/africa"},[nS.Up.JAPAN]:{value:"JAPAN",text:"日本",url:"https://www.bloomberg.co.jp"}},nB="exp_pref",nD="markets",nR=new Set(["markets","マーケット"]);var nH=n(20297),nx=n(40799),nU=n(54483),nF=n.n(nU),nG=n(97445),nj=n(93096),nV=n.n(nj);let nK=[3,3,3,3,3,3,3,3,6],nW=["name","slug","ticker_symbol","url","organization","title","primary_site"],nz=["Company_Public","Index","Fund","Currency","Commodity","Bond"],nZ=["Person","Author"],nY={bpol:"http://www.bloomberg.com/authors/",bbiz:"http://www.bloomberg.com/authors/",bview:"https://www.bloomberg.com/view/contributors/",gadfly:"https://www.bloomberg.com/gadfly/columnists/",default:"http://www.bloomberg.com/authors/"},nq=async(e,t)=>e?{autocomplete:((await t.autoComplete({query:e.split(" ").join("+")})).autocomplete||[]).map(e=>({url:"/search?query=".concat(e),text:e,id:e})).slice(0,3)}:{autocomplete:[]},nX=e=>{let t=new Set;return nz.flatMap(t=>e.get(t)||[]).filter(e=>{let{ticker_symbol:n}=e;return!t.has(n)&&(t.add(n),!0)}).sort((e,t)=>t.score-e.score).map(e=>{let{ticker_symbol:t,url:n}=e;return{id:t,text:t,url:n}}).slice(0,3)},nJ=e=>(e.get("Author")||[]).map(e=>{let{name:t,primary_site:n,slug:r,score:i}=e,a=nY[n]?n:"default";return{name:"Author: ".concat(t),url:"".concat(nY[a]).concat(r),slug:r,score:i,primary_site:n}}),nQ=(e,t)=>(e.get("Person")||[]).concat(t).sort((e,t)=>t.score-e.score).map(e=>{let{name:t,url:n}=e;return{id:n,text:t,url:n}}).slice(0,3),n$=async(e,t,n)=>{if(!e)return{securities:[],people:[]};let r=(await t.lookup({query:e,types:nz.concat(nZ),excludeSubtypes:["label:editorial"],groupSize:nK,country:n,fields:nW,boostParents:!0,fuzziness:"AUTO"})||[]).reduce((e,t)=>e.set(t.group,t.results||[]),new Map),i=nX(r),a=nJ(r);return{securities:i,people:nQ(r,a)}},n0=async(e,t,n)=>{let[r,i]=await Promise.all([n$(e.trim(),t,n),nq(e.trim(),t)]);return{suggestions:{id:"suggestions",text:"Suggestions",dropdownListItems:i.autocomplete},securities:{id:"securities",text:"Securities",dropdownListItems:r.securities},people:{id:"people",text:"People",dropdownListItems:r.people}}},n1=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,[t,n]=(0,g.useState)(void 0);return[t,(0,g.useCallback)(nV()(async(e,t,r)=>{e&&e.trim()&&n(await n0(e,t,r))},e,{leading:!1,trailing:!0}),[])]};n(13055);var n2={searchDesktopContainer:"media-ui-SearchDesktop_searchDesktopContainer-C29kFU3eOcw-",clearInput:"media-ui-SearchDesktop_clearInput-NaFM4Bg-5jg-",dropdown:"media-ui-SearchDesktop_dropdown-n5aLBnlGcjg-",searchInputContainer:"media-ui-SearchDesktop_searchInputContainer-ZkKC3SSSRbU-",searchInput:"media-ui-SearchDesktop_searchInput-4c2LCBOV3wQ-",dark:"media-ui-SearchDesktop_dark-MQci6tnymsw-"};let n3=g.forwardRef(function(e,t){let{desktopBreakpointClassName:n,name:r="search-desktop",theme:i=nS.yU.DARK,searchClient:a,onClose:o=()=>{},trackingFunction:s,countryCode:l="US"}=e,[u,c]=(0,g.useState)(""),[d,h]=n1(),m=(0,v.f)(r),f="search-desktop-container",p=(0,b.Sh)([n2.searchDesktopContainer,f,{[n2.light]:i===nS.yU.LIGHT,[n2.dark]:i===nS.yU.DARK,[n2.blue]:i===nS.yU.BLUE}],{name:r}),_=(0,g.useCallback)(e=>{c(e),h(e,a,l)},[a,l]);return g.createElement(nF(),{focusTrapOptions:{fallbackFocus:".".concat(f),clickOutsideDeactivates:o,allowOutsideClick:!0}},g.createElement("div",{className:p,"data-component":m,ref:t},g.createElement("div",{className:(0,b.Sh)([n2.searchInputContainer,n])},g.createElement(tk.I,{autoComplete:"off",autoCorrect:"off",spellCheck:!1,inputProps:{autoFocus:!0},className:n2.searchInput,id:"bloomberg.com-search-desktop",placeholder:"Search Bloomberg",value:u,onChange:e=>_(e.target.value),onKeyDown:e=>{e.currentTarget.value&&"Enter"===e.key&&(s("click","search-InputQuerySearch-".concat(u)),window.location.href="/search?query=".concat(encodeURIComponent(e.currentTarget.value)))}})),u.length>0&&g.createElement("div",{className:n2.dropdown},g.createElement(nG.z,{trackingFunction:(e,t)=>{s("click","search-".concat(e,"-").concat(t))},desktopBreakpointClassName:n,key:"search-dropdown-menu-desktop",menuItemId:"search-dropdown-menu-desktop",theme:i,submenuItems:d}))))});n(26653);var n4={container:"media-ui-SearchDesktop_container-ct-27cJZUGE-",searchButton:"media-ui-SearchDesktop_searchButton-Pnif31QJzPk-",searchInline:"media-ui-SearchDesktop_searchInline-zabqpb26bdY-",searchInlineOpen:"media-ui-SearchDesktop_searchInlineOpen-xAYps3T4SNE-",searchContainer:"media-ui-SearchDesktop_searchContainer-AZmxyIHBXUo-",closeButton:"media-ui-SearchDesktop_closeButton-IRutfzoT7b4-"};let n6=e=>{let{isOpen:t,onToggle:n,onClose:r,buttonRef:i}=e,a=(0,g.useRef)(null);return(0,g.useEffect)(()=>{let e=document.createElement("script");return e.src="https://cse.google.com/cse.js?cx=60d37b10a9757480c",e.async=!0,document.body.appendChild(e),()=>{document.body.removeChild(e)}},[]),(0,g.useEffect)(()=>{if(!t||!a.current)return;let e=()=>{let e=document.querySelector(".gsc-results-wrapper-nooverlay, .gsc-results-wrapper-overlay, .gsc-results-wrapper-visible");if(e&&a.current){let t=Math.max(10,a.current.getBoundingClientRect().bottom+10),n=window.innerHeight-t-20;e.style.top="".concat(t,"px"),e.style.left="50%",e.style.transform="translateX(-50%)",e.style.height="".concat(Math.max(200,Math.min(780,n)),"px")}};return requestAnimationFrame(()=>{e(),window.addEventListener("scroll",e),window.addEventListener("resize",e)}),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[t]),(0,g.useEffect)(()=>{if(t){let e=document.querySelector(".gsc-input input.gsc-input, input.gsc-input");e&&e.focus()}},[t]),g.createElement("div",{className:n4.container},!t&&g.createElement("button",{ref:i,className:n4.searchButton,onClick:n,"data-testid":"nav-japan-search-button"},g.createElement(E.HN,null)),g.createElement("div",{className:(0,b.Sh)([n4.searchInline,{[n4.searchInlineOpen]:t}])},g.createElement("div",{className:n4.searchContainer,ref:a},g.createElement("div",{className:"gcse-search"})),t&&g.createElement("button",{className:n4.closeButton,onClick:r,"data-testid":"nav-japan-search-close"},"キャンセル")))};var n8=n(53179);let n5=new Set([nN.url,"/account/newsletters?in_source=navi","/markets/watchlist?in_source=navi","/your-company?in_source=navi"]),n7=new Map([["/help?in_source=help-nav","/notices/jp/help/"]]);function n9(e){return"jp"===e?"https://www.bloomberg.co.jp/live":"/live"}function re(e,t){if("jp"===e){let e=n7.get(t);if(e)return e;if(!n5.has(t))return"/".concat("jp","/").concat(t.replace(/^\//,""))}return t}n(90636);var rt={userOptionsDropdownContainer:"media-ui-UserOptionsDropdown_userOptionsDropdownContainer-fD8GVtGWap4-",signOut:"media-ui-UserOptionsDropdown_signOut-Gmw-ZZMwIA4-",option:"media-ui-UserOptionsDropdown_option-BLQ4bNisCzo-",dark:"media-ui-UserOptionsDropdown_dark-LjvcfGOHvZM-",optionText:"media-ui-UserOptionsDropdown_optionText-sjB34V6-dDo-",light:"media-ui-UserOptionsDropdown_light-DqKKlq866rc-",blue:"media-ui-UserOptionsDropdown_blue-DLX00GEZeg0-",badge:"media-ui-UserOptionsDropdown_badge-htz-nDZJxMs-"};let rn=e=>{let{text:t,url:n,badge:r,onSelect:i,onSignOut:a}=e;return n===nN.url?g.createElement("button",{className:(0,b.Sh)([rt.optionText,rt.signOut]),key:t,onClick:a},g.createElement("p",null,t)):g.createElement("a",{href:n,className:rt.optionText,key:t,onClick:()=>i(n)},g.createElement("p",null,t,r&&g.createElement("span",{className:rt.badge},r)))},rr=g.forwardRef(function(e,t){let{sections:n,theme:r,onSelect:i,onSignOut:a}=e,{locale:o}=(0,nx.S)(),s=(0,v.f)("user-options-dropdown"),l=(0,b.Sh)([rt.userOptionsDropdownContainer,{[rt.light]:r===nS.yU.LIGHT,[rt.dark]:r===nS.yU.DARK,[rt.blue]:r===nS.yU.BLUE}],{...e});return g.createElement("div",{className:l,ref:t,"data-component":s,"data-testid":"user-options-dropdown"},Object.entries(n).map(e=>{let[t,{text:n,items:r}]=e;return g.createElement("div",{className:rt.option,key:t},n&&g.createElement("h2",null,n),r.map(e=>{let{text:t,url:n,badge:r}=e;return g.createElement(rn,{key:t,text:t,url:re(o,n),badge:r,onSelect:i,onSignOut:a})}))}))});function ri(e,t){return Object.fromEntries(Object.entries(e).map(e=>{let[n,r]=e;return[n,{text:""!==r.defaultText&&r.textId?t({id:r.textId,defaultMessage:r.defaultText}):"",items:r.items.map(e=>({text:t({id:e.textId,defaultMessage:e.defaultText}),url:e.url,...e.badge&&{badge:e.badge}}))}]}))}n(37342);var ra={userOptionsContainer:"media-ui-UserOptions_userOptionsContainer-GIUmIuapblk-",userOptionsButtonContainer:"media-ui-UserOptions_userOptionsButtonContainer-Gz3Is54pBUA-",userOptionsMenuButton:"media-ui-UserOptions_userOptionsMenuButton-4z6g57EWPBc-",userOptionsButtonText:"media-ui-UserOptions_userOptionsButtonText-vg3HI8pozto-",userAccountProfileButton:"media-ui-UserOptions_userAccountProfileButton-Xov71BC9Ja0-",userAccountProfile:"media-ui-UserOptions_userAccountProfile-3KI-EciaLco-",dropdown:"media-ui-UserOptions_dropdown-Ffpqvw3WLvg-",triangleDown:"media-ui-UserOptions_triangleDown-BMf8zKl6GWg-",corporateHubTip:"media-ui-UserOptions_corporateHubTip-bh3UpO-RHig-"};let ro=g.forwardRef(function(e,t){let{text:n,onClick:r,children:i,icon:a}=e,o=(0,ns.Q)();return g.createElement("div",{className:ra.userOptionsButtonContainer,ref:t,"aria-label":o({id:"media-ui-nav_arialabel_userAccountButtonContainer",defaultMessage:"User Account Button Container"})},g.createElement("button",{onClick:r,className:ra.userAccountProfileButton,"aria-label":o({id:"media-ui-nav_arialabel_userAccountButton",defaultMessage:"User Account Button"}),"data-testid":"user-options-button",role:"button"},a,g.createElement("p",{className:ra.userOptionsButtonText},n),i))}),rs=g.forwardRef(function(e,t){let{isDropdownOpen:n,setIsDropdownOpen:r=()=>{},user:i,theme:a=nS.yU.LIGHT,onSignOut:o,tips:s}=e,[l,u]=(0,g.useState)(null),{firstName:c,subscriptionsData:d=[]}=i,h=d.some(e=>e.corporateHubAccess),m=(0,ns.Q)(),f=(0,v.f)("user-options"),p=(0,b.Sh)([ra.userOptionsContainer,{[ra.light]:a===nS.yU.LIGHT,[ra.dark]:a===nS.yU.DARK,[ra.blue]:a===nS.yU.BLUE}],{...e}),_=()=>{(null==s?void 0:s.corporateHub)&&(null==s||s.corporateHub.onDismiss())},y=()=>(r(!1),!0),S=()=>{_(),r(!0)},C=()=>n?y():S();return g.createElement(nF(),{active:n,focusTrapOptions:{fallbackFocus:".".concat(ra.userOptionsContainer),clickOutsideDeactivates:()=>y(),allowOutsideClick:!0}},g.createElement("div",{className:p,ref:t,"data-component":f},g.createElement("div",{className:ra.userOptionsMenuButton,"aria-label":m({id:"media-ui-nav_arialabel_userAccountMenuButton",defaultMessage:"User Account Menu Button"})},g.createElement(ro,{text:c||m({id:"media-ui-nav_myAccount",defaultMessage:"My Account"}),ref:u,onClick:()=>C(),icon:g.createElement(E.fv,{className:ra.userAccountProfile})},n?g.createElement(E.CJ,null):g.createElement(E.CJ,{className:ra.triangleDown}))),(null==s?void 0:s.corporateHub)&&g.createElement(n8.J,{className:ra.corporateHubTip,Icon:s.corporateHub.icon,eyebrow:s.corporateHub.eyebrow,anchorElement:l,allowedPlacements:s.corporateHub.placement,onDismiss:s.corporateHub.onDismiss,text:s.corporateHub.text}),n&&g.createElement("div",{className:ra.dropdown,"aria-label":m({id:"media-ui-nav_arialabel_userAccountMenu",defaultMessage:"User Account Menu"})},g.createElement(rr,{sections:ri(i.isSubscriber&&h?nM:(i.isSubscriber,nO),m),onSelect:e=>{window.open(e,"_self")},onClose:()=>C(),onSignOut:o,theme:a}))))});n(3375);var rl={logoBarContainer:"media-ui-LogoBar_logoBarContainer-zT2Vdyxa9hk-",search:"media-ui-LogoBar_search-45lfpZiVy9c-",searchButton:"media-ui-LogoBar_searchButton-gUKKb5rWizY-",signInButton:"media-ui-LogoBar_signInButton-9yr-B7jjuE0-",subscribeButton:"media-ui-LogoBar_subscribeButton-rqH7oKAhEzM-",bar:"media-ui-LogoBar_bar-dkILEe-ptTg-",right:"media-ui-LogoBar_right-HwB1Vmt3U30-",light:"media-ui-LogoBar_light-qIYHzFKXQXQ-",dark:"media-ui-LogoBar_dark-q7Ouy-DICYc-",blue:"media-ui-LogoBar_blue-QXSgFJYGtbU-"};let ru=e=>{let{trackingFunction:t,subscriptionUrl:n}=e;return g.createElement("a",{className:rl.subscribeButton,href:"".concat(n,"?in_source=nav"),target:"_blank",rel:"noreferrer",onClick:()=>t("click","subscribe")},g.createElement(ns.jU,{id:"media-ui-nav_subscribe",defaultMessage:"Subscribe"}))},rc=e=>{let{trackingFunction:t,upgradeUrl:n}=e;return g.createElement("a",{className:rl.subscribeButton,href:n,target:"_blank",rel:"noreferrer",onClick:()=>t("click","upgrade")},g.createElement(ns.jU,{id:"media-ui-nav_upgrade",defaultMessage:"Upgrade"}))},rd=e=>{let{text:t,trackingFunction:n,handleShowSignInModal:r,setSignInButtonRef:i}=e,a=(0,g.useRef)(null);return(0,g.useEffect)(()=>{a.current&&(null==i||i(e=>({...e,desktopSignInButton:a.current||void 0})))},[]),g.createElement(g.Fragment,null,g.createElement("button",{ref:a,"data-testid":"sign-in-button",className:rl.signInButton,onClick:()=>{n("click","signIn"),null==r||r()}},t))},rh=e=>{let{isDropdownOpen:t,setIsDropdownOpen:n,user:r=im,theme:i,onSignOut:a,trackingFunction:o,subscriptionUrl:s,upgradeUrl:l,tips:u,handleShowSignInModal:c,setSignInButtonRef:d}=e,h=(0,ns.Q)();return r.isLoggedIn||r.isSubscriber?r.isLoggedIn&&r.showUpgrade?g.createElement(g.Fragment,null,g.createElement(rc,{trackingFunction:o,upgradeUrl:l}),g.createElement(rs,{isDropdownOpen:t,setIsDropdownOpen:n,user:r,theme:i,onSignOut:a})):r.isLoggedIn&&!r.isSubscriber?g.createElement(g.Fragment,null,g.createElement(ru,{trackingFunction:o,subscriptionUrl:s}),g.createElement(rs,{isDropdownOpen:t,setIsDropdownOpen:n,user:r,theme:i,onSignOut:a})):g.createElement(rs,{isDropdownOpen:t,setIsDropdownOpen:n,user:r,theme:i,onSignOut:a,tips:u}):g.createElement(g.Fragment,null,g.createElement(rd,{trackingFunction:o,text:h({id:"media-ui-nav_signin",defaultMessage:"Sign In"}),handleShowSignInModal:c,setSignInButtonRef:d}),g.createElement(ru,{trackingFunction:o,subscriptionUrl:s}))},rm=g.forwardRef(function(e,t){let{isUserOptionsDropdownOpen:n,setIsUserOptionsDropdown:r,isWeekend:i,user:a=im,name:o="logo-bar",theme:s=nS.yU.LIGHT,searchClient:l,desktopBreakpointClassName:u,onSignOut:c,trackingFunction:d,countryCode:h,subscriptionUrl:m,upgradeUrl:f,handleShowSignInModal:p,setSignInButtonRef:_,tips:y,isJapanLoginEnabled:S}=e,{locale:C}=(0,nx.S)(),w=(0,g.useRef)(null),T=(0,g.useRef)(null),[k,I]=g.useState(!1),[A,N]=g.useState(!1),L=(0,v.f)(o),O=()=>{I(!k)},M=e=>{var t;return(null===(t=w.current)||void 0===t?void 0:t.contains(e.target))||O(),!0},P=(0,b.Sh)([rl.logoBarContainer,{[rl.light]:s===nS.yU.LIGHT,[rl.dark]:s===nS.yU.DARK,[rl.blue]:s===nS.yU.BLUE}],{name:o});return g.createElement("div",{className:P,ref:t,"data-component":L},g.createElement("div",{className:(0,b.Sh)([rl.bar,u])},g.createElement(nH.T,{trackingFunction:e=>d("click",e),isWeekend:i,theme:s}),g.createElement("div",{className:rl.right},"jp"===C&&g.createElement(n6,{isOpen:A,onToggle:()=>{N(!A)},onClose:()=>{N(!1)},buttonRef:T}),(S||"en"===C)&&g.createElement(rh,{isDropdownOpen:n,setIsDropdownOpen:r,trackingFunction:d,user:a,theme:s,countryCode:h,onSignOut:c,subscriptionUrl:m,upgradeUrl:f,tips:y,handleShowSignInModal:p,setSignInButtonRef:_}),"en"===C&&g.createElement(g.Fragment,null,g.createElement("button",{ref:w,className:rl.searchButton,onClick:O,"data-testid":"nav-search-button"},g.createElement(E.HN,null)),g.createElement("div",{className:rl.search},k&&g.createElement(n3,{trackingFunction:d,searchClient:l,countryCode:h,desktopBreakpointClassName:u,onClose:e=>M(e)}))))))});var rf=n(96701),rp=n(98279),rg=n(57745);n(32864);var rv={marketDataDropdownContainer:"media-ui-MarketDataDropdown_marketDataDropdownContainer-MfMXpkCLuKI-",marketData:"media-ui-MarketDataDropdown_marketData-W1p-1QwpzDE-",title:"media-ui-MarketDataDropdown_title-zrhjXzdrG-I-",tickersAndWatchlistButton:"media-ui-MarketDataDropdown_tickersAndWatchlistButton-9N45UJOmI3A-",tickers:"media-ui-MarketDataDropdown_tickers-dQkr93ngRpc-",addToWatchlist:"media-ui-MarketDataDropdown_addToWatchlist-4EjJvaltJUw-",addToWatchlistLabel:"media-ui-MarketDataDropdown_addToWatchlistLabel-knEiLbq2kvE-",addToWatchlistButton:"media-ui-MarketDataDropdown_addToWatchlistButton-d1LCzGOAH4k-",loadingPill:"media-ui-MarketDataDropdown_loadingPill-zg7Lw8kxe-g-",dark:"media-ui-MarketDataDropdown_dark-EzYTDBZa7K4-"};let rb=g.forwardRef(function(e,t){let n=(0,ns.Q)(),{locale:r}=(0,nx.S)(),{desktopBreakpointClassName:i,marketDataLinks:a,marketDataNews:o,marketDataTickersUrl:s="https://www.bloomberg.com/bazaar/api/quotes-price-data",tickers:l,initialPricingData:u,theme:c=nS.yU.DARK,title:d=n({id:"media-ui-nav_topSecurities",defaultMessage:"Top Securities"}),trackingFunction:h}=e,[m,f]=(0,g.useState)(u||null),p=async()=>{try{let e="".concat(s,"?tickers=").concat(l.map(e=>{let{id:t}=e;return t}).join(",")),t=await fetch(e);if(!t.ok)throw Error("Error parsing json for tickers from url: ".concat(e));let n=(await t.json()).map(e=>{var t;let n=null===(t=l.find(t=>{let{id:n}=t;return e.id===n}))||void 0===t?void 0:t.label;return{...e,label:n}});f(n)}catch(e){console.error("Error fetching market data from tickers: ".concat(e))}};(0,g.useEffect)(()=>{p()},[]);let v=(0,b.Sh)([i,rv.marketDataDropdownContainer,{[rv.light]:c===nS.yU.LIGHT,[rv.dark]:c===nS.yU.DARK,[rv.blue]:c===nS.yU.BLUE}]),_=(e,t)=>{h("click","".concat(nD,"-").concat(e,"-").concat(t))},y=(e,t)=>{h("click","".concat(nD,"-").concat(e,"-").concat(t))};return g.createElement("div",{className:v,ref:t},g.createElement(rg.q,{menuItemId:nD,submenuItem:o,trackingFunction:_}),g.createElement(rg.q,{menuItemId:nD,submenuItem:a,trackingFunction:_}),g.createElement("div",{className:rv.marketData},g.createElement("h3",{className:rv.title},d),g.createElement("div",{className:rv.tickersAndWatchlistButton},g.createElement("div",{className:rv.tickers},!m&&[...Array(12)].map(e=>g.createElement("div",{key:e,className:rv.loadingPill})),m&&m.length?m.map(e=>g.createElement("a",{key:e.id,className:rv.tickerLink,href:re(r,"/quote/".concat(e.id)),"aria-label":e.shortName,onClick:()=>y(d,e.label||e.id)},g.createElement(rp.EK,{ticker:e.id,displayName:e.label||e.id,percentChange:e.percentChange1Day,price:Math.round(100*Number(e.price.replace(/,/g,"")))/100,variant:rp.$e.refresh2024,lines:rp.xh.three,size:rp.$u.default}))):""),g.createElement("div",{className:rv.addToWatchlist},g.createElement("h3",{className:rv.addToWatchlistLabel},g.createElement(ns.jU,{id:"media-ui-nav_trackYourPortFolionFromAnywhere",defaultMessage:"Track your portfolio from anywhere with a Bloomberg Watchlist."})),g.createElement("a",{className:rv.addToWatchlistButton,"aria-label":n({id:"media-ui-nav_arialabel_addToWatchlist",defaultMessage:"Add To Watchlist"}),role:"button",href:"/markets/watchlist",onClick:()=>h("click","Create Watchlist")},g.createElement(E.v8,null),g.createElement(ns.jU,{id:"media-ui-nav_createWatchlist",defaultMessage:"Create Watchlist"}))))))});function r_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var rE=function e(t,n){function r(e,r,i){if(!(typeof document>"u")){"number"==typeof(i=r_({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var o in i)i[o]&&(a+="; "+o,!0===i[o]||(a+="="+i[o].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+a}}return Object.create({set:r,get:function(e){if(!(typeof document>"u"||arguments.length&&!e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var a=n[i].split("="),o=a.slice(1).join("=");try{var s=decodeURIComponent(a[0]);if(r[s]=t.read(o,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",r_({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r_({},this.attributes,t))},withConverter:function(t){return e(r_({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function ry(e){rE.remove(nB),rE.set(nB,e,{domain:"bloomberg.com",path:"/",sameSite:"Lax",expires:90})}n(50408);var rS={regionPickerContainer:"media-ui-RegionPicker_regionPickerContainer-i1kgBwC1PTg-",light:"media-ui-RegionPicker_light-W2OGOF9sUPs-",dark:"media-ui-RegionPicker_dark-ZcJeEf0vRa0-",option:"media-ui-RegionPicker_option-236AWpcus48-",dropdown:"media-ui-RegionPicker_dropdown-zeIf2GSGkRo-",blue:"media-ui-RegionPicker_blue-mOqxPLTvqdo-",region:"media-ui-RegionPicker_region-p79mNAtF--M-",regionText:"media-ui-RegionPicker_regionText--F2-TeQLcBM-",checkMark:"media-ui-RegionPicker_checkMark-Towd848YPCs-",arrowDown:"media-ui-RegionPicker_arrowDown--469tw1E8ZA-"};let rC=e=>{let{isRegionPickerOpen:t,className:n}=e;return g.createElement("div",{className:(0,b.Sh)([n,{[rS.arrowDown]:t}])},g.createElement(E._M,null))},rw=g.forwardRef(function(e,t){let{isRegionPickerOpen:n,setIsRegionPickerOpen:r=()=>{},region:i=nS.Up.US,theme:a=nS.yU.LIGHT,trackingFunction:o}=e,[s,l]=(0,g.useState)(Object.values(nS.Up).includes(i)?i:nS.Up.US),u=(0,ns.Q)();(0,g.useEffect)(()=>{Object.values(nS.Up).includes(i)&&l(i)},[i]);let c=e=>{l(e),r(!1),o("click","edition-".concat(e)),ry(e),window.location.href=nP[e].url},d=()=>(r(!1),!0),h=(0,v.f)("region-picker"),m=(0,b.Sh)([rS.regionPickerContainer,{[rS.light]:a===nS.yU.LIGHT,[rS.dark]:a===nS.yU.DARK,[rS.blue]:a===nS.yU.BLUE}]),{value:f,text:p,switchEditionPrompt:_}=nP[s];return g.createElement(nF(),{active:n,focusTrapOptions:{fallbackFocus:".".concat(rS.regionPickerContainer),clickOutsideDeactivates:()=>d(),allowOutsideClick:!0}},g.createElement("div",{className:m,ref:t,"data-component":h},g.createElement("div",{className:rS.region,"aria-label":u({id:"media-ui-nav_arialabel_selectRegion",defaultMessage:"Select Region"}),"data-testid":"region-button",role:"button","aria-expanded":"".concat(!!n),onClick:()=>{r(!n)},tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),r(!n))}},g.createElement("div",{className:rS.regionText,"aria-label":u({id:"media-ui-nav_arialabel_currentRegion",defaultMessage:"Current Region"}),"data-testid":"region"},_||"".concat(p," Edition")),g.createElement(rC,{isRegionPickerOpen:n})),n&&g.createElement("div",{className:rS.dropdown,"aria-label":u({id:"media-ui-nav_arialabel_regionSelector",defaultMessage:"Region Selector"}),"data-testid":"dropdown"},Object.values(nP).map(e=>g.createElement("button",{className:rS.option,key:e.value,type:"button",onClick:()=>c(e.value)},e.text,e.value===f&&g.createElement(E.kF,{className:rS.checkMark}))))))});n(71364);var rT={menuDesktopContainer:"media-ui-MenuDesktop_menuDesktopContainer--d-70xYyi1I-",bar:"media-ui-MenuDesktop_bar-n0LngOMZTkY-",dropdown:"media-ui-MenuDesktop_dropdown--kkreDnRLyI-",menuItemsContainer:"media-ui-MenuDesktop_menuItemsContainer-7zYb93iB0fw-",menuItems:"media-ui-MenuDesktop_menuItems-jlRLuxZzc2k-",pickers:"media-ui-MenuDesktop_pickers-UD3fQ9j4Icc-",menuItem:"media-ui-MenuDesktop_menuItem-dkjmIzh9cuI-",active:"media-ui-MenuDesktop_active-7VZqbezxUDk-",menuItemsEnter:"media-ui-MenuDesktop_menuItemsEnter--3K4sHqE0Aw-",menuItemsEnterActive:"media-ui-MenuDesktop_menuItemsEnterActive-Oduwnjot7rM-",liveTVMenuItem:"media-ui-MenuDesktop_liveTVMenuItem-Auy490G3xvI-",liveNow:"media-ui-MenuDesktop_liveNow-uWWvpLJ-Q3Q-",dark:"media-ui-MenuDesktop_dark-amvz3umCggE-",blue:"media-ui-MenuDesktop_blue-HMFyFphmjwU-"};let rk=e=>{var t,n;let{id:r,text:i,submenuItems:a,trackingFunction:o,onKeyDown:s}=e,l=a&&(null===(t=a["metadata_".concat(r)])||void 0===t?void 0:t.url),u=a&&(null===(n=a["metadata_".concat(r)])||void 0===n?void 0:n.dropdownListItems);return l?g.createElement(g.Fragment,null,g.createElement("a",{href:l,onClick:()=>o("click",i)},i),u&&u.length>0&&g.createElement("div",{"data-testid":"chevron-arrow",tabIndex:0,onKeyDown:s},g.createElement(E._M,null))):g.createElement(g.Fragment,null,i,a&&Object.keys(a).length>0&&g.createElement("div",{"data-testid":"chevron-arrow",tabIndex:0,onKeyDown:s},g.createElement(E._M,null)))},rI=e=>{let{children:t,isOpen:n}=e,[r,i]=(0,g.useState)(!1),a=(0,g.useRef)(null);return(0,g.useEffect)(()=>{if(!n){i(!1);return}let e=setTimeout(()=>{i(!0)},300);return()=>clearTimeout(e)},[300,n]),r?g.createElement(rf.Z,{in:n,mountOnEnter:!0,timeout:0,nodeRef:a,classNames:{enter:rT.menuItemsEnter,enterActive:rT.menuItemsEnterActive},unmountOnExit:!0},g.createElement("div",{ref:a},t)):null},rA=g.forwardRef(function(e,t){let{onMenuItemActive:n,marketDataTickersUrl:r,menuItems:i,theme:a,region:o,desktopBreakpointClassName:s,trackingFunction:l,locale:u}=e,[c,d]=(0,g.useState)(null),[h,m]=(0,g.useState)(!1),f=(0,ns.Q)();(0,g.useEffect)(()=>{h&&d(null)},[h]),(0,g.useEffect)(()=>{c&&(m(!1),n&&n())},[c]);let p=(e,t)=>{if(!("Enter"!==e.key&&" "!==e.key)){if(e.preventDefault(),c===t){d(null);return}d(t)}},_=(0,v.f)("menu-desktop"),E=n9(u),y=(0,b.Sh)([rT.menuDesktopContainer,{[rT.light]:a===nS.yU.LIGHT,[rT.dark]:a===nS.yU.DARK,[rT.blue]:a===nS.yU.BLUE}]);if(!i||!Object.keys(i).length)return null;let S=c&&i[c],C=!!(S&&nR.has(c)),w=C?S.submenuItems:null,T=!!(S&&!S.useSubmenu&&!nR.has(c));return g.createElement(nF(),{active:!!S,focusTrapOptions:{fallbackFocus:"body",clickOutsideDeactivates:!0,escapeDeactivates:!0,initialFocus:!1,returnFocusOnDeactivate:!1}},g.createElement("div",{className:y,ref:t,"aria-label":f({id:"media-ui-nav_arialabel_menu",defaultMessage:"Menu"}),"data-testid":"menu-desktop","data-component":_,onMouseOver:e=>{let t=e.target,n=t.dataset.menuid,r=t.dataset.submenuid;!n||r||d(n)},onMouseLeave:()=>{d(null)}},g.createElement("div",{className:(0,b.Sh)([rT.bar,s])},g.createElement("div",{className:rT.menuItems},g.createElement("a",{href:E,className:(0,b.Sh)([rT.menuItem,rT.liveTVMenuItem]),"data-menuid":"live-now",onClick:()=>l("click","LiveTV")},g.createElement("span",{className:rT.liveNow},g.createElement(ns.jU,{id:"media-ui-nav_liveTv",defaultMessage:"Live TV"}))),g.createElement("ul",{className:rT.menuItemsContainer},Object.values(i).map(e=>{let{id:t,text:n,submenuItems:r}=e;return g.createElement("li",{className:(0,b.Sh)([rT.menuItem,c===t&&rT.active]),key:t,"aria-label":n,"data-menuid":t},g.createElement(rk,{id:t,text:n,submenuItems:r,trackingFunction:l,onKeyDown:e=>p(e,t)}))}))),g.createElement("div",{className:rT.pickers},g.createElement(rw,{trackingFunction:l,region:o,isRegionPickerOpen:h,setIsRegionPickerOpen:m,theme:a}))),g.createElement(rI,{isOpen:T||C},g.createElement("div",{className:rT.dropdown},T&&g.createElement(nG.z,{marketDataTickersUrl:r,menuItemId:S.id,submenuItems:S.submenuItems,items:S.dropdownListItems,theme:a,desktopBreakpointClassName:s,trackingFunction:(e,t)=>{l("click","".concat(S.text,"-").concat(e,"-").concat(t))}}),C&&w&&g.createElement("div",{className:rT.marketDataContainer},g.createElement(rb,{desktopBreakpointClassName:s,marketDataTickersUrl:r,marketDataLinks:w.market_data_links,marketDataNews:w.news_links,tickers:w.market_data_tickers.dropdownListItems,trackingFunction:l}))))))});n(14390);var rN={logoBarMobileContainer:"media-ui-LogoBarMobile_logoBarMobileContainer-iPnAcUxvR8I-",menuMobile:"media-ui-LogoBarMobile_menuMobile-M4RJaHBvIXE-",exitIcon:"media-ui-LogoBarMobile_exitIcon-9desMC6rJm4-",userAccountProfile:"media-ui-LogoBarMobile_userAccountProfile-644SuzfoX4I-",hamburger:"media-ui-LogoBarMobile_hamburger-v2S6niowyFs-",logo:"media-ui-LogoBarMobile_logo-XzvVftfILnk-",logoWeekend:"media-ui-LogoBarMobile_logoWeekend-Yt11eD4mtVM-",logoUK:"media-ui-LogoBarMobile_logoUK-qtOal-Uz1XQ-",logoLink:"media-ui-LogoBarMobile_logoLink-MV1DgiEaeWc-",bar:"media-ui-LogoBarMobile_bar-zgjgCPzBxTk-",left:"media-ui-LogoBarMobile_left-rF-ymcISWfM-",right:"media-ui-LogoBarMobile_right-0rIQ7fk-KaE-",signInButton:"media-ui-LogoBarMobile_signInButton-NjOyFCGDTLw-",userAccountButton:"media-ui-LogoBarMobile_userAccountButton-UXeoIp48IqI-",exitButton:"media-ui-LogoBarMobile_exitButton-EN-Gkd-qRKs-",subscribeButtonContainer:"media-ui-LogoBarMobile_subscribeButtonContainer-qrdypN163Cs-",subscribeButton:"media-ui-LogoBarMobile_subscribeButton-GzFf5a3agro-",signOutButton:"media-ui-LogoBarMobile_signOutButton-1x7G3okFP4U-",light:"media-ui-LogoBarMobile_light-u1FmOn6RlS0-",dark:"media-ui-LogoBarMobile_dark-BdY9L7ZNqU8-",blue:"media-ui-LogoBarMobile_blue-zQiAC20wjDY-"};let rL=e=>{let{trackingFunction:t,handleShowSignInModal:n,setSignInButtonRef:r}=e,i=(0,g.useRef)(null),a=(0,ns.Q)();return(0,g.useEffect)(()=>{i.current&&(null==r||r(e=>({...e,mobileSignInButton:i.current||void 0})))},[]),g.createElement(g.Fragment,null,g.createElement("button",{"aria-label":a({id:"media-ui-nav_signin",defaultMessage:"Sign In"}),"data-testid":"sign-in-button",ref:i,className:rN.signInButton,onClick:()=>{t("click","signIn"),null==n||n()}},g.createElement(E.fv,{className:rN.userAccountProfile})))},rO=e=>{let{trackingFunction:t,subscriptionUrl:n}=e;return g.createElement("a",{className:rN.subscribeButtonContainer,href:"".concat(n,"?in_source=nav-mobileweb"),target:"_blank",rel:"noreferrer",onClick:()=>t("click","subscribe")},g.createElement("span",{className:rN.subscribeButton},g.createElement(ns.jU,{id:"media-ui-nav_subscribe",defaultMessage:"Subscribe"})))},rM=e=>{let{trackingFunction:t,upgradeUrl:n}=e;return g.createElement("a",{className:rN.subscribeButtonContainer,href:n,target:"_blank",rel:"noreferrer",onClick:()=>t("click","upgrade")},g.createElement("span",{className:rN.subscribeButton},g.createElement(ns.jU,{id:"media-ui-nav_upgrade",defaultMessage:"Upgrade"})))},rP=e=>{let{trackingFunction:t,subscriptionUrl:n,handleShowSignInModal:r,setSignInButtonRef:i}=e;return g.createElement("div",{className:rN.right},g.createElement(rO,{trackingFunction:t,subscriptionUrl:n}),g.createElement(rL,{trackingFunction:t,handleShowSignInModal:r,setSignInButtonRef:i}))},rB=e=>{let{trackingFunction:t,toggleAccountMenu:n,subscriptionUrl:r}=e,i=(0,ns.Q)();return g.createElement("div",{className:rN.right},g.createElement(rO,{trackingFunction:t,subscriptionUrl:r}),g.createElement("button",{className:rN.userAccountButton,onClick:n,"aria-label":i({id:"media-ui-nav_arialabel_accountMenu",defaultMessage:"Account Menu"}),"data-testid":"user-options-button",role:"button"},g.createElement(E.fv,{className:rN.userAccountProfile})))},rD=e=>{let{toggleAccountMenu:t}=e,n=(0,ns.Q)();return g.createElement("div",{className:rN.right},g.createElement("button",{className:rN.exitButton,onClick:t,"aria-label":n({id:"media-ui-nav_arialabel_exitButton",defaultMessage:"Exit"}),"data-testid":"exit-button",role:"button"},g.createElement(E.n$,{className:rN.exitIcon})))},rR=e=>{let{trackingFunction:t,toggleAccountMenu:n,upgradeUrl:r}=e,i=(0,ns.Q)();return g.createElement("div",{className:rN.right},g.createElement(rM,{trackingFunction:t,upgradeUrl:r}),g.createElement("button",{className:rN.userAccountButton,onClick:n,"aria-label":i({id:"media-ui-nav_arialabel_accountMenu",defaultMessage:"Account Menu"}),"data-testid":"user-options-button",role:"button"},g.createElement(E.fv,{className:rN.userAccountProfile})))},rH=e=>{let{toggleAccountMenu:t}=e,n=(0,ns.Q)();return g.createElement("div",{className:rN.right},g.createElement("button",{className:rN.exitButton,onClick:t,"aria-label":n({id:"media-ui-nav_arialabel_exitButton",defaultMessage:"Exit"}),"data-testid":"exit-button",role:"button"},g.createElement(E.n$,{className:rN.exitIcon})))},rx=e=>{let{toggleAccountMenu:t}=e,n=(0,ns.Q)();return g.createElement("div",{className:rN.right},g.createElement("button",{className:rN.userAccountButton,onClick:t,"aria-label":n({id:"media-ui-nav_arialabel_accountMenu",defaultMessage:"Account Menu"}),"data-testid":"user-options-button",role:"button"},g.createElement(E.fv,{className:rN.userAccountProfile})))},rU=e=>{let{toggleAccountMenu:t}=e,n=(0,ns.Q)();return g.createElement("div",{className:rN.right},g.createElement("button",{className:rN.exitButton,onClick:t,"aria-label":n({id:"media-ui-nav_arialabel_exitButton",defaultMessage:"Exit"}),"data-testid":"exit-button",role:"button"},g.createElement(E.n$,{className:rN.exitIcon})))},rF=e=>{let{user:t=im,isAccountMenuOpen:n=!1}=e,r=!(null==t?void 0:t.isLoggedIn),i=(null==t?void 0:t.isLoggedIn)&&!t.isSubscriber,a=(null==t?void 0:t.isLoggedIn)&&t.isSubscriber,o=null==t?void 0:t.showUpgrade;return r&&!n?g.createElement(rP,{...e}):i&&!n?g.createElement(rB,{...e}):i&&n?g.createElement(rD,{...e}):o&&!n?g.createElement(rR,{...e}):o&&n?g.createElement(rH,{...e}):a&&!n?g.createElement(rx,{...e}):a&&n?g.createElement(rU,{...e}):null},rG=e=>{let{isWeekend:t,trackingFunction:n}=e,{region:r}=(0,nx.S)(),i=r===nS.Up.JAPAN?"https://www.bloomberg.co.jp":"/";return t?g.createElement("div",{className:rN.logoWeekend},g.createElement("a",{className:rN.logoLink,href:"/",onClick:()=>n("click","bloomberg")},g.createElement(E.of,null),g.createElement(E.hE,null))):r===nS.Up.UK?g.createElement("div",{className:rN.logoUK},g.createElement("a",{className:rN.logoLink,href:"/uk",onClick:()=>n("click","bloomberg")},g.createElement(E.sk,null))):g.createElement("div",{className:rN.logo},g.createElement("a",{className:rN.logoLink,href:i,onClick:()=>n("click","bloomberg")},g.createElement(E.hE,null)))},rj=e=>{let{isWeekend:t,trackingFunction:n}=e;return g.createElement(rG,{trackingFunction:n,isWeekend:t})},rV=g.forwardRef(function(e,t){let{isWeekend:n,name:r="logo-bar-mobile",theme:i=nS.yU.LIGHT,isMenuOpen:a=!1,toggleMenu:o=()=>{},trackingFunction:s,isJapanLoginEnabled:l}=e,{locale:u}=(0,nx.S)(),c=(0,v.f)(r),d=(0,ns.Q)(),h=(0,b.Sh)([rN.logoBarMobileContainer,{[rN.isWeekend]:n,[rN.light]:i===nS.yU.LIGHT,[rN.dark]:i===nS.yU.DARK,[rN.blue]:i===nS.yU.BLUE}],{name:r});return g.createElement("div",{className:h,ref:t,"data-component":c},g.createElement("div",{className:rN.bar},g.createElement("div",{className:rN.left},g.createElement("button",{className:rN.menuMobile,"aria-label":d({id:"media-ui-nav_arialabel_mobileMenuButton",defaultMessage:"Mobile Menu Button"}),onClick:o,"data-testid":"mobile-menu-button",role:"button"},a?g.createElement(E.n$,{className:rN.exitIcon}):g.createElement(E.pr,{className:rN.hamburger})),g.createElement(rj,{trackingFunction:s,isWeekend:n})),(l||"en"===u)&&g.createElement(rF,{...e})))});n(13499);var rK={menuMobileContainer:"media-ui-MenuMobile_menuMobileContainer-DvrJ3kNYafo-",cursor:"media-ui-MenuMobile_cursor-bHoSETf3mgg-",oneLevelDeepSectionHeader:"media-ui-MenuMobile_oneLevelDeepSectionHeader-3hPepmqapnc-",twoLevelDeepSectionHeader:"media-ui-MenuMobile_twoLevelDeepSectionHeader--Y1LYfermSY-",itemText:"media-ui-MenuMobile_itemText-Vo-npmnpAwE-",oneLevelDeep:"media-ui-MenuMobile_oneLevelDeep-YMMnaFbYozw-",itemTextWithLabel:"media-ui-MenuMobile_itemTextWithLabel-liJgT81O8YY-",oneLevelDeepEmpty:"media-ui-MenuMobile_oneLevelDeepEmpty-wBNoAn6Y8sk-",twoLevelsDeep:"media-ui-MenuMobile_twoLevelsDeep-oLB-zgONhtk-",itemsEnter:"media-ui-MenuMobile_itemsEnter-PDhKD5SBdO8-",itemsEnterActive:"media-ui-MenuMobile_itemsEnterActive-SPo4L-R45DQ-",itemsExit:"media-ui-MenuMobile_itemsExit-fAsEwusUeEE-",itemsExitActive:"media-ui-MenuMobile_itemsExitActive-cG0gxqZmtS8-",link:"media-ui-MenuMobile_link-ct9lF0sC3os-",label:"media-ui-MenuMobile_label-pz-LpyWo-Sg-",chevronRight:"media-ui-MenuMobile_chevronRight-IMsHgagGAvA-",chevronDown:"media-ui-MenuMobile_chevronDown--kNA6aYZn-I-",light:"media-ui-MenuMobile_light-qZmqQArnwwo-",selected:"media-ui-MenuMobile_selected-Z-Q6ptthmDU-",oneLevelDeepSectionHeade:"media-ui-MenuMobile_oneLevelDeepSectionHeade-5ZGO3RPWStI-",dark:"media-ui-MenuMobile_dark-FfdAhlpwMZc-",blue:"media-ui-MenuMobile_blue-0yAWmk5LZXc-",liveNow:"media-ui-MenuMobile_liveNow-gJnkQY5U30I-"};let rW=e=>{let{isOpen:t}=e;return g.createElement("div",{className:t?rK.chevronDown:rK.chevronRight},g.createElement(E.Kh,null))},rz=e=>{let{children:t,isOpen:n}=e,r=(0,g.useRef)(null);return g.createElement(rf.Z,{in:n,mountOnEnter:!0,timeout:200,nodeRef:r,classNames:{enter:rK.itemsEnter,enterActive:rK.itemsEnterActive,exit:rK.itemsExit,exitActive:rK.itemsExitActive},unmountOnExit:!0},g.createElement("ul",{ref:r},t))},rZ=e=>{let{items:t,trackingFunction:n}=e;return g.createElement(g.Fragment,null,t.map(e=>g.createElement("a",{className:rK.link,href:e.url,key:e.id,onClick:()=>n(e.text)},e.text)))},rY=e=>{let{text:t,level:n}=e;return g.createElement("a",{className:"one"===n?rK.oneLevelDeepSectionHeader:rK.twoLevelDeepSectionHeader},t)},rq=e=>{let{text:t}=e;return g.createElement("a",{className:rK.itemText},t,g.createElement(rW,{isOpen:!1}))},rX=e=>{let{text:t,items:n=[],trackingFunction:r}=e;return g.createElement("ul",null,t&&g.createElement(rY,{text:t,level:"two"}),g.createElement(rz,{isOpen:!0},g.createElement(rZ,{trackingFunction:r,items:n})))},rJ=e=>{let{id:t,dropdownListItems:n,text:r,trackingFunction:i}=e,a=!!n.length,o=e=>{i(r,e)};return r?g.createElement("li",{className:(0,b.Sh)([rK.listItem,rK.twoLevelsDeep]),"aria-label":r,"data-submenu-item-id":t,key:t},!a&&g.createElement(rq,{text:r}),a&&g.createElement(rX,{trackingFunction:o,text:r,items:n})):g.createElement(rZ,{trackingFunction:o,items:n})},rQ=e=>{let{text:t,items:n={},trackingFunction:r}=e,[i,a]=(0,g.useState)(!1),o=()=>{a(!i)};return g.createElement(g.Fragment,null,t&&g.createElement("button",{className:(0,b.Sh)([rK.itemText,rK.cursor,i&&rK.selected]),onClick:()=>o()},t,g.createElement(rW,{isOpen:i})),g.createElement(rz,{isOpen:i},Object.values(n).map(e=>g.createElement(rJ,{trackingFunction:r,key:e.id,...e}))))},r$=e=>{let{label:t,text:n,url:r,trackingFunction:i}=e,a=(0,b.Sh)([rK.itemText,{[rK.itemTextWithLabel]:t}]);return g.createElement("a",{href:r,className:a,onClick:()=>i("click",n)},n,t&&g.createElement("span",{className:rK.label},t))},r0=e=>{var t,n;let{menuItem:{id:r,text:i,submenuItems:a={}},trackingFunction:o}=e,s=!!Object.keys(Object.fromEntries(Object.entries(a).filter(e=>{let[t]=e;return t!=="metadata_".concat(r)}))).length,l=a&&(null===(t=a["metadata_".concat(r)])||void 0===t?void 0:t.url),u=a&&(null===(n=a["metadata_".concat(r)])||void 0===n?void 0:n.label);return g.createElement("li",{className:(0,b.Sh)([rK.listItem,rK.oneLevelDeep]),"aria-label":i,"data-menu-item-id":r},!s&&!l&&g.createElement(rY,{text:i,level:"one"}),!s&&l&&g.createElement(r$,{label:u,text:i,url:l,trackingFunction:o}),s&&g.createElement(rQ,{trackingFunction:(e,t)=>{o("click","".concat(i,"-").concat(e,"-").concat(t))},text:i,items:a}))},r1=e=>{let{theme:t=nS.yU.DARK,menuItems:n,trackingFunction:r,locale:i}=e,a=(0,v.f)("menu-mobile"),o=(0,ns.Q)();if(!n||!Object.keys(n).length)return null;let s=n9(i),l=(0,b.Sh)([rK.menuMobileContainer,{[rK.light]:t===nS.yU.LIGHT,[rK.dark]:t===nS.yU.DARK,[rK.blue]:t===nS.yU.BLUE}]);return g.createElement("ul",{className:l,"data-component":a,"data-testid":"menu-mobile","aria-label":o({id:"media-ui-nav_arialabel_menu",defaultMessage:"Menu"})},g.createElement("li",{"aria-label":"Live TV","data-menuid":"live-tv",className:(0,b.Sh)([rK.listItem,rK.oneLevelDeep])},g.createElement("a",{href:s,className:(0,b.Sh)([rK.itemText,rK.liveNow]),onClick:()=>r("click","LiveTV")},g.createElement(ns.jU,{id:"media-ui-nav_liveTv",defaultMessage:"Live TV"}))),Object.entries(n).map(e=>{let[t,n]=e;return g.createElement(r0,{trackingFunction:r,menuItem:n,key:t})}))};n(47190);var r2={regionPickerContainer:"media-ui-RegionPickerMobile_regionPickerContainer-uvCAH59Pr9w-",light:"media-ui-RegionPickerMobile_light-dzGZ9oTROGU-",dark:"media-ui-RegionPickerMobile_dark-TP-r--Kq-oA-",option:"media-ui-RegionPickerMobile_option-QPYRa6-QMKg-",blue:"media-ui-RegionPickerMobile_blue-hkVQlskma0I-",region:"media-ui-RegionPickerMobile_region-NsTY8S5K7so-",regionText:"media-ui-RegionPickerMobile_regionText-T2RWhYeDNr8-",mobileDropdown:"media-ui-RegionPickerMobile_mobileDropdown-AAP8HmnWmSw-",checkMark:"media-ui-RegionPickerMobile_checkMark-wi8ZJ-gFdnI-",chevronDown:"media-ui-RegionPickerMobile_chevronDown-ldv6QpZkHVc-"};let r3=e=>{let{isRegionPickerOpen:t,className:n}=e,r=(0,b.Sh)([n,{[r2.chevronDown]:t}]);return g.createElement("div",{tabIndex:0,"data-component":"chevron",className:r},g.createElement(E._M,null))},r4=g.forwardRef(function(e,t){let{region:n=nS.Up.US,theme:r=nS.yU.LIGHT,trackingFunction:i}=e,[a,o]=g.useState(!1),[s,l]=(0,g.useState)(Object.values(nS.Up).includes(n)?n:nS.Up.US),u=(0,ns.Q)();(0,g.useEffect)(()=>{Object.values(nS.Up).includes(n)&&l(n)},[n]);let c=e=>{l(e),o(!1),i("click","edition-".concat(e)),ry(e),window.location.href=nP[e].url},d=(0,v.f)("region-picker"),h=(0,b.Sh)([r2.regionPickerContainer,{[r2.light]:r===nS.yU.LIGHT,[r2.dark]:r===nS.yU.DARK,[r2.blue]:r===nS.yU.BLUE}]),{value:m,text:f,switchEditionPrompt:p}=nP[s];return g.createElement("div",{className:h,ref:t,"data-component":d},g.createElement("button",{className:r2.region,"aria-label":u({id:"media-ui-nav_arialabel_selectRegion",defaultMessage:"Select Region"}),"data-testid":"region-button",tabIndex:0,onClick:()=>{o(!a)}},g.createElement("div",{className:r2.regionText,"aria-label":u({id:"media-ui-nav_arialabel_currentRegion",defaultMessage:"Current Region"}),"data-testid":"region"},p||"".concat(f," Edition")),g.createElement(r3,{isRegionPickerOpen:a})),a&&g.createElement("div",{className:r2.mobileDropdown,"aria-label":u({id:"media-ui-nav_arialabel_regionSelector",defaultMessage:"Region Selector"}),"data-testid":"dropdown"},Object.values(nP).map(e=>g.createElement("button",{className:r2.option,key:e.value,tabIndex:0,onClick:()=>c(e.value)},e.text,e.value===m&&g.createElement(E.kF,{className:r2.checkMark})))))});n(29066);var r6={dropdownMenuMobileContainer:"media-ui-DropdownMenuMobile_dropdownMenuMobileContainer-VbcL-4H7Rx4-",submenu:"media-ui-DropdownMenuMobile_submenu-WbWBjkI9FO4-",submenuText:"media-ui-DropdownMenuMobile_submenuText-MOCQLYq-APs-",link:"media-ui-DropdownMenuMobile_link-vRj-jVOUxy0-",light:"media-ui-DropdownMenuMobile_light-C3wVrgKUVcg-",dark:"media-ui-DropdownMenuMobile_dark-dfX-5kKFPCI-",blue:"media-ui-DropdownMenuMobile_blue-nxMmfrKuvFY-"};let r8=g.forwardRef(function(e,t){let{items:n,menuItemId:r,submenuItems:i,theme:a=nS.yU.LIGHT,trackingFunction:o}=e,s=(0,v.f)("dropdown-menu-mobile");if(!(i&&Object.keys(i).length)&&!(n&&Object.keys(n).length))return null;let l=(0,b.Sh)([r6.dropdownMenuMobileContainer,{[r6.light]:a===nS.yU.LIGHT,[r6.dark]:a===nS.yU.DARK,[r6.blue]:a===nS.yU.BLUE}]);return g.createElement("div",{className:l,ref:t,id:"dropdown-menu-mobile","data-testid":"dropdown-menu-mobile","aria-label":"Menu","data-component":s,"data-menuid":r},i&&Object.entries(i).map(e=>{let[t,{id:n,text:i,dropdownListItems:a}]=e;return i&&(null==a?void 0:a.length)?g.createElement("div",{className:r6.submenu,key:n},g.createElement("div",{className:r6.submenuText,"data-menuid":r,"data-submenuid":t},i),a.map(e=>g.createElement("a",{className:r6.link,"data-menuid":r,"data-submenuid":r,href:e.url,onClick:()=>o(i,e.text),key:e.id},e.text))):null}))});n(46901);var r5={searchMobileContainer:"media-ui-SearchMobile_searchMobileContainer-GDjo44uDP7w-",inputContainer:"media-ui-SearchMobile_inputContainer-KTsPAXbu5V0-",input:"media-ui-SearchMobile_input-Qrgv4LH2cGE-",searchIcon:"media-ui-SearchMobile_searchIcon-SLpAFbgN2j8-",clearInputButton:"media-ui-SearchMobile_clearInputButton-KpqZ9Zpa7PQ-",exitIcon:"media-ui-SearchMobile_exitIcon-VBB9bAKhNLc-",isSearchActive:"media-ui-SearchMobile_isSearchActive-7xaY8hIyPm0-",dark:"media-ui-SearchMobile_dark-gRAUX3qBF7s-"};let r7=g.forwardRef(function(e,t){let{isSearchActive:n=!1,setIsSearchActive:r=()=>{},name:i="search-mobile",unstyled:a,searchClient:o,theme:s=nS.yU.DARK,trackingFunction:l,countryCode:u="US"}=e,[c,d]=(0,g.useState)(""),[h,m]=n1(),f=(0,v.f)(i),p=(0,ns.Q)(),_=(0,g.useRef)(null),y=(0,b.Sh)([r5.searchMobileContainer,n&&r5.isSearchActive,{[r5.dark]:s===nS.yU.DARK}],{unstyled:a,name:i}),S=(0,g.useCallback)(()=>{d(""),r(!1)},[]),C=(0,g.useCallback)(e=>{d(e),m(e,o,u)},[o,u]);return g.createElement("div",{className:y,ref:t,"data-component":f,tabIndex:0},g.createElement("div",{className:r5.inputContainer},g.createElement(tk.I,{autoComplete:"off",autoCorrect:"off",spellCheck:!1,className:r5.input,id:"bloomberg.com-search-mobile",inputProps:{onFocus:()=>r(!0)},placeholder:p({id:"media-ui-nav_searchBloomberg",defaultMessage:"Search Bloomberg"}),"aria-label":p({id:"media-ui-nav_arialabel_searchBloomberg",defaultMessage:"Search Bloomberg"}),value:c,onChange:e=>C(e.target.value),onKeyDown:e=>{e.currentTarget.value&&"Enter"===e.key&&(l("click","search-InputQuerySearch-".concat(c)),window.location.href="/search?query=".concat(encodeURIComponent(e.currentTarget.value)))}}),g.createElement(E.HN,{className:r5.searchIcon})),n&&g.createElement(r8,{key:"search-dropdown-menu-mobile",menuItemId:"search-dropdown-menu-mobile",theme:s,submenuItems:h,trackingFunction:(e,t)=>{l("click","search-".concat(e,"-").concat(t))}}),g.createElement("button",{ref:_,className:r5.clearInputButton,title:"cancel",type:"button","aria-label":p({id:"media-ui-nav_arialabel_cancelButton",defaultMessage:"Cancel"}),onClick:S},g.createElement(E.n$,{className:r5.exitIcon})))});n(47127);let r9=e=>{e.querySelectorAll("button.gsc-search-button-v2, .gsc-search-button button").forEach(e=>{e.querySelectorAll("svg").forEach(e=>{e.removeAttribute("fill"),e.style.setProperty("fill","var(--color-gray-500)","important"),e.querySelectorAll("path").forEach(e=>{e.removeAttribute("fill"),e.style.setProperty("fill","var(--color-gray-500)","important")})})})},ie=e=>{e.querySelectorAll(".gsst_a, .gscb_a").forEach(e=>{e.style.color="var(--color-white)"})},it=e=>{e.querySelectorAll(".gsc-input input.gsc-input, input.gsc-input, .gsc-input-box input, .gsib_a input").forEach(e=>{let t=e.style;t.cssText+="\n color: var(--color-white) !important;\n -webkit-text-fill-color: var(--color-white) !important;\n caret-color: var(--color-white) !important;\n "})},ir=e=>{e.querySelectorAll("td.gsib_a").forEach(e=>{let t=window.getComputedStyle(e).backgroundImage,n=window.getComputedStyle(e).backgroundPosition,r=window.getComputedStyle(e).backgroundRepeat;if(t&&"none"!==t&&!e.querySelector(".icon-overlay")){let i=document.createElement("div");i.className="icon-overlay",i.style.cssText="\n position: absolute !important;\n top: 0 !important;\n left: 0 !important;\n width: 100% !important;\n height: 100% !important;\n background-image: ".concat(t," !important;\n background-repeat: ").concat(r," !important;\n background-position: ").concat(n," !important;\n filter: brightness(0) invert(0.6) !important;\n pointer-events: none !important;\n z-index: 0 !important;\n "),e.style.position="relative",e.style.backgroundImage="none",e.appendChild(i)}})},ii=g.forwardRef(function(e,t){let{name:n="search-mobile-japan",unstyled:r}=e,i=(0,v.f)(n),a=g.useRef(null);g.useImperativeHandle(t,()=>a.current),(0,g.useEffect)(()=>{let e=document.createElement("script");return e.src="https://cse.google.com/cse.js?cx=60d37b10a9757480c",e.async=!0,document.body.appendChild(e),()=>{document.body.contains(e)&&document.body.removeChild(e)}},[]),(0,g.useEffect)(()=>{let e=()=>{a.current&&(r9(a.current),ie(a.current),it(a.current),ir(a.current))},t=new MutationObserver(()=>{e()});return t.observe(document.body,{childList:!0,subtree:!0}),()=>{t.disconnect()}},[]);let o=(0,b.Sh)(["media-ui-SearchMobile_searchMobileJapanContainer-UJu6YE7CM6Y-"],{unstyled:r,name:n});return g.createElement("div",{className:o,ref:a,"data-component":i},g.createElement("div",{className:"gcse-search"}))});n(10032);var ia={userOptionsDropdownMobileContainer:"media-ui-UserOptionsDropdownMobile_userOptionsDropdownMobileContainer-fCA8bzw4VHA-",subscribe:"media-ui-UserOptionsDropdownMobile_subscribe-hLFovKX4eAc-",subscribeText:"media-ui-UserOptionsDropdownMobile_subscribeText-bfFw1kdEckM-",sectionHeader:"media-ui-UserOptionsDropdownMobile_sectionHeader-Ql2ONPgqMQA-",optionText:"media-ui-UserOptionsDropdownMobile_optionText-8Hwb0fohItI-",optionSeparator:"media-ui-UserOptionsDropdownMobile_optionSeparator-31SiLUC-Sfw-",signOut:"media-ui-UserOptionsDropdownMobile_signOut-QYCJIGCpnWo-",subscribeButton:"media-ui-UserOptionsDropdownMobile_subscribeButton--DXlnxgCIdk-",dark:"media-ui-UserOptionsDropdownMobile_dark-PpPMxqQ7vuU-",light:"media-ui-UserOptionsDropdownMobile_light-omiXF9uj0wQ-",option:"media-ui-UserOptionsDropdownMobile_option-cUsRmKh8ZRg-",blue:"media-ui-UserOptionsDropdownMobile_blue-cu1BlfJXmWg-",badge:"media-ui-UserOptionsDropdownMobile_badge-R3Rpdwfej3s-"};let io=e=>{let{trackingFunction:t,subscriptionUrl:n}=e;return g.createElement("a",{className:ia.subscribeButton,href:"".concat(n,"?in_source=nav-account-dropdown"),target:"_blank",rel:"noreferrer",onClick:()=>t("click","subscribe")},g.createElement(ns.jU,{id:"media-ui-nav_subscribe",defaultMessage:"Subscribe"}))},is=e=>{let{text:t,url:n,badge:r,onUserOptionSelect:i,onSignOut:a}=e;return n===nN.url?g.createElement("div",{className:(0,b.Sh)([ia.optionText,ia.signOut]),key:t,onClick:a,"aria-label":"user-dropdown-mobile-option-".concat(t)},g.createElement("p",null,t)):g.createElement("div",{className:ia.optionText,key:t,onClick:()=>i(n),"aria-label":t},g.createElement("p",null,t,r&&g.createElement("span",{className:ia.badge},r)))},il=g.forwardRef(function(e,t){let{sections:n,theme:r,user:i,onSignOut:a,trackingFunction:o,subscriptionUrl:s}=e,{locale:l}=(0,nx.S)(),u=(0,ns.Q)(),c=(0,v.f)("user-options-dropdown-mobile"),d=(0,b.Sh)([ia.userOptionsDropdownMobileContainer,{[ia.light]:r===nS.yU.LIGHT,[ia.dark]:r===nS.yU.DARK,[ia.blue]:r===nS.yU.BLUE}]),h=e=>{window.open(e,"_self")};return g.createElement("div",{className:d,"data-component":c,"data-testid":"user-options-dropdown",ref:t},!i.isSubscriber&&g.createElement("div",{className:ia.subscribe},g.createElement("p",{className:ia.subscribeText},u({id:"media-ui-nav_subscribeToSaveAndGiftArticles",defaultMessage:"Subscribe to save and gift articles, and access exclusive newsletters"})),g.createElement(io,{trackingFunction:o,subscriptionUrl:s})),Object.entries(n).map((e,t)=>{let[r,{text:i,items:o}]=e;return g.createElement(g.Fragment,null,g.createElement("div",{className:ia.option,key:r},i&&g.createElement("h2",{className:ia.sectionHeader},i),o.map(e=>{let{text:t,url:n,badge:r}=e;return g.createElement(is,{key:t,text:t,badge:r,url:re(l,n),onUserOptionSelect:h,onSignOut:a})})),t!==Object.keys(n).length-1&&g.createElement("div",{className:ia.optionSeparator}))}))});n(19923);var iu={open:"media-ui-NavMobile_open-ueGZ4wKJSOc-",mobileNavContent:"media-ui-NavMobile_mobileNavContent-fXa3pH--4Xo-",dark:"media-ui-NavMobile_dark-Opy7eSA3j1M-"};let ic=e=>{let{user:t=im}=e,{subscriptionsData:n=[]}=t,r=(null==t?void 0:t.isLoggedIn)&&!t.isSubscriber,i=(null==t?void 0:t.isLoggedIn)&&t.isSubscriber,a=t.isSubscriber&&n.some(e=>e.corporateHubAccess),o=(0,ns.Q)();return r?g.createElement(il,{...e,user:t,sections:ri(nL,o)}):a?g.createElement(il,{...e,user:t,sections:ri(nM,o)}):i?g.createElement(il,{...e,user:t,sections:ri(nO,o)}):null},id=(0,g.forwardRef)(function(e,t){let{isWeekend:n,region:r=nS.Up.US,searchClient:i,theme:a=nS.yU.DARK,user:o=im,trackingFunction:s,countryCode:l,subscriptionUrl:u,upgradeUrl:c,handleShowSignInModal:d,setSignInButtonRef:h,isJapanLoginEnabled:m}=e,[f,p]=(0,g.useState)(!1),[v,_]=(0,g.useState)(!1),[E,y]=(0,g.useState)(!1),S=f||v,C=(0,ns.Q)(),{locale:w}=(0,nx.S)();(0,g.useImperativeHandle)(t,()=>({getIsMenuOpen:()=>S})),(0,g.useEffect)(()=>{document.body.style.overflowY=S?"hidden":"auto"},[S]),(0,g.useEffect)(()=>{f||y(!1)},[f]);let T=(0,b.Sh)([iu.navMobileContainer,{[iu.light]:a===nS.yU.LIGHT,[iu.dark]:a===nS.yU.DARK,[iu.blue]:a===nS.yU.BLUE,[iu.open]:f||v}]),k=(0,g.useCallback)(()=>{_(!1),p(e=>!e)},[]),I=(0,g.useCallback)(()=>{p(!1),o.isLoggedIn&&_(e=>!e)},[o.isLoggedIn]);return g.createElement(nF(),{active:S,focusTrapOptions:{fallbackFocus:"body",clickOutsideDeactivates:!0,escapeDeactivates:!0}},g.createElement("div",{className:T},g.createElement("div",{className:iu.mobileNavContent},g.createElement(rV,{region:r,isMenuOpen:f,isAccountMenuOpen:v,isWeekend:n,user:o,theme:a,toggleMenu:k,toggleAccountMenu:I,trackingFunction:s,subscriptionUrl:u,upgradeUrl:c,countryCode:l,handleShowSignInModal:d,setSignInButtonRef:h,isJapanLoginEnabled:m}),f&&g.createElement(g.Fragment,null,g.createElement(r4,{trackingFunction:s,region:r,theme:a}),"en"===w&&g.createElement(r7,{isSearchActive:E,setIsSearchActive:y,trackingFunction:s,searchClient:i,countryCode:l}),"jp"===w&&g.createElement(ii,null),!E&&g.createElement(r1,{region:r,...e})),v&&g.createElement("div",{"aria-label":C({id:"media-ui-nav_arialabel_userAccountMenu",defaultMessage:"User Account Menu"})},g.createElement(ic,{...e})))))});n(12307);var ih={navContainer:"media-ui-Nav_navContainer-hjs68ExRvE4-",desktop:"media-ui-Nav_desktop-H4T7bcdLqpc-",mobile:"media-ui-Nav_mobile-G7SxDZ43xgY-"};let im={isLoggedIn:!1,isSubscriber:!1},ip=g.forwardRef(function(e,t){let{bannerData:n={},menuItems:r={menuItemsDesktop:{},menuItemsMobile:{}},name:i="nav",locale:a="en",region:o=nS.Up.US,countryCode:s,theme:l=nS.yU.LIGHT,trackingFunction:u=()=>{},bannersTrackingFunction:c=()=>{},initializeSignInWithRegUI:d=()=>{},desktopBreakpointClassName:h,regUIClient:m,disableOnboarding:f=!1,isJapanLoginEnabled:p=!1}=e,[_,E]=(0,g.useState)(o),y=(0,g.useRef)(null),[S,C]=(0,g.useState)(!1),[w,T]=(0,g.useState)(),[k,I]=(0,g.useState)(!1),A=(0,g.useRef)(!1);(0,g.useEffect)(()=>{let e=rE.get(nB);e&&E(e)},[]),(0,g.useEffect)(()=>{A.current||(p||"en"===a)&&(A.current=!0,I(!0))},[a,p]);let N=()=>{var e;if(window.innerWidth>1087){document.body.style.overflowY="auto";return}(null==y?void 0:null===(e=y.current)||void 0===e?void 0:e.getIsMenuOpen())&&(document.body.style.overflowY="hidden")};(0,g.useEffect)(()=>(window.addEventListener("resize",N),()=>{window.removeEventListener("resize",N)}),[]);let L=(0,v.f)(i),{menuItemsDesktop:O,menuItemsMobile:M}=r,P=(0,b.Sh)([ih.navContainer,{[ih.light]:l===nS.yU.LIGHT,[ih.dark]:l===nS.yU.DARK,[ih.blue]:l===nS.yU.BLUE}],{name:i}),B=(0,g.useCallback)((e,t)=>{u(e,t)},[u]),D=()=>{C(!0)};return g.createElement(nx.N,{locale:a,region:o},g.createElement("nav",{className:P,ref:t,"data-component":L},k&&g.createElement(nr,{signInClicked:S,setSignInClicked:C,countryCode:s,regUIClient:m,enableOnboarding:!f,initializeSignInIframe:()=>{if(!(!k||!w)){if(!w.mobileSignInButton&&!w.desktopSignInButton){console.error("There is no signInIframeRef button!");return}d(w)}}}),g.createElement(ig,{...e,region:_,trackingFunction:B,menuItems:O,handleShowSignInModal:D,setSignInButtonRef:T}),g.createElement("div",{className:ih.mobile},g.createElement(id,{...e,ref:y,region:_,menuItems:M,trackingFunction:B,handleShowSignInModal:D,setSignInButtonRef:T})),g.createElement(iv,{bannerData:n,desktopBreakpointClassName:h,trackingFunction:c})))});function ig(e){let{desktopBreakpointClassName:t,hideMenu:n,onSignOut:r,isWeekend:i,region:a=nS.Up.US,searchClient:o,theme:s,user:l,trackingFunction:u,countryCode:c,subscriptionUrl:d,upgradeUrl:h,handleShowSignInModal:m,setSignInButtonRef:f,navTips:p,isJapanLoginEnabled:v=!1}=e,[b,_]=(0,g.useState)(!1);return g.createElement("div",{className:ih.desktop},g.createElement(rm,{region:a,isUserOptionsDropdownOpen:b,setIsUserOptionsDropdown:e=>_(e),isWeekend:i,searchClient:o,theme:s,user:l,desktopBreakpointClassName:t,onSignOut:r,trackingFunction:u,countryCode:c,subscriptionUrl:d,upgradeUrl:h,tips:p,handleShowSignInModal:m,setSignInButtonRef:f,isJapanLoginEnabled:v}),!n&&g.createElement(rA,{...e,onMenuItemActive:()=>{_(!1)},region:a}))}function iv(e){let{bannerData:t,desktopBreakpointClassName:n,trackingFunction:r}=e,{regionalAuthorSession:i,globalAuthorSession:a,regionalBreakingNews:o,globalBreakingNews:s,regionalBreakingNewsLiveStream:l,globalBreakingNewsLiveStream:u}=t;return i||a||o||s||l||u?g.createElement("div",{className:ih.banners},o&&g.createElement(nu,{...o,desktopBreakpointClassName:n,trackingFunction:r}),s&&g.createElement(nu,{...s,desktopBreakpointClassName:n,trackingFunction:r}),i&&g.createElement(no,{...i,desktopBreakpointClassName:n,trackingFunction:r}),a&&g.createElement(no,{...a,desktopBreakpointClassName:n,trackingFunction:r}),l&&g.createElement(ny,{...l,desktopBreakpointClassName:n,trackingFunction:r}),u&&g.createElement(ny,{...u,desktopBreakpointClassName:n,trackingFunction:r})):null}},57745:function(e,t,n){"use strict";n.d(t,{q:function(){return u}});var r=n(67294),i=n(25434),a=n(77536),o=n(25173),s=n(50508);n(62488);var l={submenuDesktopContainer:"media-ui-SubmenuDesktop_submenuDesktopContainer-ZG61n79JQtY-",submenuText:"media-ui-SubmenuDesktop_submenuText-fStbtfbPGdI-",link:"media-ui-SubmenuDesktop_link-B9b8-zDvba4-",linkWithLabel:"media-ui-SubmenuDesktop_linkWithLabel-6f5k1vxR6fU-",label:"media-ui-SubmenuDesktop_label--tTyLRH-s9U-",dark:"media-ui-SubmenuDesktop_dark-chhx-Ls2d3U-"};let u=r.forwardRef(function(e,t){let{menuItemId:n,submenuItem:u,theme:c=o.yU.DARK,trackingFunction:d}=e,{id:h,text:m,dropdownListItems:f}=u,p=(0,s.Q)(),g=(0,i.f)("submenu-desktop");if(!(null==f?void 0:f.length))return null;let v=(0,a.Sh)([l.submenuDesktopContainer,{[l.dark]:c===o.yU.DARK}]);return r.createElement("div",{className:v,key:h,ref:t,"aria-label":p({id:"media-ui-nav_arialabel_subMenuDesktop",defaultMessage:"submenu-desktop"}),"data-component":g},m&&r.createElement("div",{className:l.submenuText,"data-menuid":n,"data-submenuid":h},m),f.map((e,t)=>{let i=(0,a.Sh)([l.link,{[l.linkWithLabel]:e.label}]);return r.createElement("a",{className:i,"data-menuid":n,"data-submenuid":n,href:e.url,key:"".concat(h,":").concat(e.id,"-").concat(t),onClick:()=>d(m,e.text)},e.text,e.label&&r.createElement("span",{className:l.label},e.label))}))})},25173:function(e,t,n){"use strict";let r,i,a,o,s;n.d(t,{Up:function(){return l},yU:function(){return c}});var l=((r=l||{}).US="AMER",r.EUROPE="EUR",r.ASIA="APAC",r.UK="UK",r.MIDDLE_EAST="MIDEAST",r.AFRICA="AFRICA",r.JAPAN="JAPAN",r.CANADA="CANADA",r.LATAM="LATAM",r),u=((i=u||{}).EN="en",i),c=((a=c||{}).DARK="dark",a.LIGHT="light",a.BLUE="blue",a),d=((o=d||{}).LIVE="LIVE",o["STARTING SOON"]="STARTING SOON",o),h=((s=h||{}).CORPORATE_HUB="corporateHub",s)},50508:function(e,t,n){"use strict";n.d(t,{jU:function(){return ti},Q:function(){return tr}});var r,i,a,o,s,l,u=n(67294),c=n(86896),d=n(64618),h=n(70700),m=n(85893),f=n(44012),p=function(e,t){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function g(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var v=function(){return(v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function b(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function _(e,t){var n=t&&t.cache?t.cache:w,r=t&&t.serializer?t.serializer:S;return(t&&t.strategy?t.strategy:function(e,t){var n,r,i=1===e.length?E:y;return n=t.cache.create(),r=t.serializer,i.bind(this,e,n,r)})(e,{cache:n,serializer:r})}function E(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),a=t.get(i);return typeof a>"u"&&(a=e.call(this,r),t.set(i,a)),a}function y(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,r),t.set(i,a)),a}"function"==typeof SuppressedError&&SuppressedError;var S=function(){return JSON.stringify(arguments)},C=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}(),w={create:function(){return new C}},T={variadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,y.bind(this,e,n,r)},monadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,E.bind(this,e,n,r)}};(Q=en||(en={})).FORMAT_ERROR="FORMAT_ERROR",Q.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",Q.INVALID_CONFIG="INVALID_CONFIG",Q.MISSING_DATA="MISSING_DATA",Q.MISSING_TRANSLATION="MISSING_TRANSLATION";var k=function(e){function t(n,r,i){var a=this,o=i?i instanceof Error?i:Error(String(i)):void 0;return(a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(o?"\n".concat(o.message,"\n").concat(o.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return g(t,e),t}(Error),I=function(e){function t(t,n){return e.call(this,en.UNSUPPORTED_FORMATTER,t,n)||this}return g(t,e),t}(k),A=function(e){function t(t,n){return e.call(this,en.INVALID_CONFIG,t,n)||this}return g(t,e),t}(k),N=function(e){function t(t,n){return e.call(this,en.MISSING_DATA,t,n)||this}return g(t,e),t}(k),L=function(e){function t(t,n,r){var i=e.call(this,en.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),r)||this;return i.locale=n,i}return g(t,e),t}(k),O=function(e){function t(t,n,r,i){var a=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,i)||this;return a.descriptor=r,a.locale=n,a}return g(t,e),t}(L),M=function(e){function t(t,n){var r=e.call(this,en.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", 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 r.descriptor=t,r}return g(t,e),t}(k);function P(e){return e.type===ei.literal}function B(e){return e.type===ei.number}function D(e){return e.type===ei.date}function R(e){return e.type===ei.time}function H(e){return e.type===ei.select}function x(e){return e.type===ei.plural}function U(e){return e.type===ei.tag}function F(e){return!!(e&&"object"==typeof e&&e.type===ea.number)}function G(e){return!!(e&&"object"==typeof e&&e.type===ea.dateTime)}($=er||(er={}))[$.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",$[$.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",$[$.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",$[$.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",$[$.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",$[$.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",$[$.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",$[$.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",$[$.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",$[$.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",$[$.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",$[$.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",$[$.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",$[$.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",$[$.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",$[$.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",$[$.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",$[$.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",$[$.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",$[$.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",$[$.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",$[$.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",$[$.INVALID_TAG=23]="INVALID_TAG",$[$.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",$[$.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",$[$.UNCLOSED_TAG=27]="UNCLOSED_TAG",(ee=ei||(ei={}))[ee.literal=0]="literal",ee[ee.argument=1]="argument",ee[ee.number=2]="number",ee[ee.date=3]="date",ee[ee.time=4]="time",ee[ee.select=5]="select",ee[ee.plural=6]="plural",ee[ee.pound=7]="pound",ee[ee.tag=8]="tag",(et=ea||(ea={}))[et.number=0]="number",et[et.dateTime=1]="dateTime";var j=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,V={"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"]},K=/(?:[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,W=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,z=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Z=/^(@+)?(\+|#+)?[rs]?$/g,Y=/(\*)(0+)|(#+)(0+)|(0+)/g,q=/^(0+)$/;function X(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Z,function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""}),t}function J(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}var Q,$,ee,et,en,er,ei,ea,eo,es=new RegExp("^".concat(j.source,"*")),el=new RegExp("".concat(j.source,"*$"));function eu(e,t){return{start:e,end:t}}var ec=!!String.prototype.startsWith&&"_a".startsWith("a",1),ed=!!String.fromCodePoint,eh=!!Object.fromEntries,em=!!String.prototype.codePointAt,ef=!!String.prototype.trimStart,ep=!!String.prototype.trimEnd,eg=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&9007199254740991>=Math.abs(e)},ev=!0;try{var eb=eT("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ev=(null===(eo=eb.exec("a"))||void 0===eo?void 0:eo[0])==="a"}catch(e){ev=!1}var e_=ec?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},eE=ed?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,a=0;i>a;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return r},ey=eh?Object.fromEntries:function(e){for(var t={},n=0;n<e.length;n++){var r=e[n],i=r[0],a=r[1];t[i]=a}return t},eS=em?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},eC=ef?function(e){return e.trimStart()}:function(e){return e.replace(es,"")},ew=ep?function(e){return e.trimEnd()}:function(e){return e.replace(el,"")};function eT(e,t){return new RegExp(e,t)}if(ev){var ek=eT("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");o=function(e,t){var n;return ek.lastIndex=t,null!==(n=ek.exec(e)[1])&&void 0!==n?n:""}}else o=function(e,t){for(var n=[];;){var r,i=eS(e,t);if(void 0===i||eN(i)||(r=i)>=33&&r<=35||36===r||r>=37&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||r>=162&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||r>=8208&&r<=8213||r>=8214&&r<=8215||8216===r||8217===r||8218===r||r>=8219&&r<=8220||8221===r||8222===r||8223===r||r>=8224&&r<=8231||r>=8240&&r<=8248||8249===r||8250===r||r>=8251&&r<=8254||r>=8257&&r<=8259||8260===r||8261===r||8262===r||r>=8263&&r<=8273||8274===r||8275===r||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||8608===r||r>=8609&&r<=8610||8611===r||r>=8612&&r<=8613||8614===r||r>=8615&&r<=8621||8622===r||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||8658===r||8659===r||8660===r||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||8968===r||8969===r||8970===r||8971===r||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||9001===r||9002===r||r>=9003&&r<=9083||9084===r||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||9655===r||r>=9656&&r<=9664||9665===r||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||9839===r||r>=9840&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||r>=10132&&r<=10175||r>=10176&&r<=10180||10181===r||10182===r||r>=10183&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||r>=10649&&r<=10711||10712===r||10713===r||10714===r||10715===r||r>=10716&&r<=10747||10748===r||10749===r||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||11158===r||r>=11159&&r<=11263||r>=11776&&r<=11777||11778===r||11779===r||11780===r||11781===r||r>=11782&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||r>=11790&&r<=11798||11799===r||r>=11800&&r<=11801||11802===r||11803===r||11804===r||11805===r||r>=11806&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||r>=11818&&r<=11822||11823===r||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||11840===r||11841===r||11842===r||r>=11843&&r<=11855||r>=11856&&r<=11857||11858===r||r>=11859&&r<=11903||r>=12289&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||r>=12306&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||r>=12318&&r<=12319||12320===r||12336===r||64830===r||64831===r||r>=65093&&r<=65094)break;n.push(i),t+=i>=65536?2:1}return eE.apply(void 0,n)};var eI=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,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else{if(125===i&&e>0)break;if(35===i&&("plural"===t||"selectordinal"===t)){var o=this.clonePosition();this.bump(),r.push({type:ei.pound,location:eu(o,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&eA(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}else{if(n)break;return this.error(er.UNMATCHED_CLOSING_TAG,eu(this.clonePosition(),this.clonePosition()))}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ei.literal,value:"<".concat(r,"/>"),location:eu(n,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(er.INVALID_TAG,eu(n,this.clonePosition()));var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(!this.bumpIf("</"))return this.error(er.UNCLOSED_TAG,eu(n,this.clonePosition()));if(this.isEOF()||!eA(this.char()))return this.error(er.INVALID_TAG,eu(o,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(er.UNMATCHED_CLOSING_TAG,eu(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ei.tag,value:r,children:a,location:eu(n,this.clonePosition())},err:null}:this.error(er.INVALID_TAG,eu(o,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 n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=eu(n,this.clonePosition());return{val:{type:ei.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(eA(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 n=this.char();if(39===n){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(n);this.bump()}return eE.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),eE(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(er.EXPECT_ARGUMENT_CLOSING_BRACE,eu(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(er.EMPTY_ARGUMENT,eu(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(er.MALFORMED_ARGUMENT,eu(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(er.EXPECT_ARGUMENT_CLOSING_BRACE,eu(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ei.argument,value:r,location:eu(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(er.EXPECT_ARGUMENT_CLOSING_BRACE,eu(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(er.MALFORMED_ARGUMENT,eu(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=o(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:eu(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(o){case"":return this.error(er.EXPECT_ARGUMENT_TYPE,eu(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var d=ew(c.val);if(0===d.length)return this.error(er.EXPECT_ARGUMENT_STYLE,eu(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:eu(u,this.clonePosition())}}var h=this.tryParseArgumentClose(r);if(h.err)return h;var m=eu(r,this.clonePosition());if(l&&e_(null==l?void 0:l.style,"::",0)){var f,p=eC(l.style.slice(2));if("number"===o){var c=this.parseNumberSkeletonFromString(p,l.styleLocation);return c.err?c:{val:{type:ei.number,value:n,location:m,style:c.val},err:null}}if(0===p.length)return this.error(er.EXPECT_DATE_TIME_SKELETON,m);var g=p;this.locale&&(g=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(1&a),s=a<2?1:3+(a>>1),l=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 n,r=e.language;return"root"!==r&&(n=e.maximize().region),(V[n||""]||V[r||""]||V["".concat(r,"-001")]||V["001"])[0]}(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)n+="a";for(;o-- >0;)n=l+n}else"J"===i?n+="H":n+=i}return n}(p,this.locale));var d={type:ea.dateTime,pattern:g,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(f={},g.replace(K,function(e){var t=e.length;switch(e[0]){case"G":f.era=4===t?"long":5===t?"narrow":"short";break;case"y":f.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":f.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":f.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":f.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");f.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");f.weekday=["short","long","narrow","short"][t-4];break;case"a":f.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":f.hourCycle="h12",f.hour=["numeric","2-digit"][t-1];break;case"H":f.hourCycle="h23",f.hour=["numeric","2-digit"][t-1];break;case"K":f.hourCycle="h11",f.hour=["numeric","2-digit"][t-1];break;case"k":f.hourCycle="h24",f.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":f.minute=["numeric","2-digit"][t-1];break;case"s":f.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":f.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""}),f):{}};return{val:{type:"date"===o?ei.date:ei.time,value:n,location:m,style:d},err:null}}return{val:{type:"number"===o?ei.number:"date"===o?ei.date:ei.time,value:n,location:m,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(er.EXPECT_SELECT_ARGUMENT_OPTIONS,eu(b,v({},b)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),E=0;if("select"!==o&&"offset"===_.value){if(!this.bumpIf(":"))return this.error(er.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,eu(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(er.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,er.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),_=this.parseIdentifierIfPossible(),E=c.val}var y=this.tryParsePluralOrSelectOptions(e,o,t,_);if(y.err)return y;var h=this.tryParseArgumentClose(r);if(h.err)return h;var S=eu(r,this.clonePosition());return"select"===o?{val:{type:ei.select,value:n,options:ey(y.val),location:S},err:null}:{val:{type:ei.plural,value:n,options:ey(y.val),offset:E,pluralType:"plural"===o?"cardinal":"ordinal",location:S},err:null};default:return this.error(er.INVALID_ARGUMENT_TYPE,eu(a,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(er.EXPECT_ARGUMENT_CLOSING_BRACE,eu(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 n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(er.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,eu(n,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 n=[];try{n=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(W).filter(function(e){return e.length>0}),n=[],r=0;r<t.length;r++){var i=t[r].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var a=i[0],o=i.slice(1),s=0;s<o.length;s++)if(0===o[s].length)throw Error("Invalid number skeleton");n.push({stem:a,options:o})}return n}(e)}catch(e){return this.error(er.INVALID_NUMBER_SKELETON,t)}return{val:{type:ea.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.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=r.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=v(v(v({},t),{notation:"scientific"}),r.options.reduce(function(e,t){return v(v({},e),J(t)||{})},{}));continue;case"engineering":t=v(v(v({},t),{notation:"engineering"}),r.options.reduce(function(e,t){return v(v({},e),J(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(r.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(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Y,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else{if(i&&a)throw Error("We currently do not support maximum integer digits");if(o)throw Error("We currently do not support exact integer digits")}return""});continue}if(q.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(z.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(z,function(e,n,r,i,a,o){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});var i=r.options[0];"w"===i?t=v(v({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=v(v({},t),X(i)));continue}if(Z.test(r.stem)){t=v(v({},t),X(r.stem));continue}var a=J(r.stem);a&&(t=v(v({},t),a));var o=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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!q.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);o&&(t=v(v({},t),o))}return t}(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,l=r.value,u=r.location;;){if(0===l.length){var c=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(er.EXPECT_PLURAL_ARGUMENT_SELECTOR,er.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=eu(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(s.has(l))return this.error("select"===t?er.DUPLICATE_SELECT_ARGUMENT_SELECTOR:er.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?er.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:er.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,eu(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,n);if(m.err)return m;var f=this.tryParseArgumentClose(h);if(f.err)return f;o.push([l,{value:m.val,location:eu(h,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===o.length?this.error("select"===t?er.EXPECT_SELECT_ARGUMENT_SELECTOR:er.EXPECT_PLURAL_ARGUMENT_SELECTOR,eu(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(er.MISSING_OTHER_CLAUSE,eu(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=10*a+(o-48),this.bump();else break}var s=eu(r,this.clonePosition());return i?eg(a*=n)?{val:a,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=eS(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(e_(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(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!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()&&eN(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function eA(e){return e>=97&&e<=122||e>=65&&e<=90}function eN(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function eL(e,t){void 0===t&&(t={});var n=new eI(e,t=v({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(n.err){var r=SyntaxError(er[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,H(t)||x(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else B(t)&&F(t.style)||(D(t)||R(t))&&G(t.style)?delete t.style.location:U(t)&&e(t.children)})}(n.val),n.val}(r=s||(s={})).MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API";var eO=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return g(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),eM=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),s.INVALID_VALUE,i)||this}return g(t,e),t}(eO),eP=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),s.INVALID_VALUE,r)||this}return g(t,e),t}(eO),eB=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),s.MISSING_VALUE,n)||this}return g(t,e),t}(eO);function eD(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}(i=l||(l={}))[i.literal=0]="literal",i[i.object=1]="object";var eR=function(){function e(t,n,r,i){void 0===n&&(n=e.defaultLocale);var a,o,u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=u.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce(function(e,t){return e.length&&t.type===l.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return function e(t,n,r,i,a,o,u){if(1===t.length&&P(t[0]))return[{type:l.literal,value:t[0].value}];for(var c=[],d=0;d<t.length;d++){var h=t[d];if(P(h)){c.push({type:l.literal,value:h.value});continue}if(h.type===ei.pound){"number"==typeof o&&c.push({type:l.literal,value:r.getNumberFormat(n).format(o)});continue}var m=h.value;if(!(a&&m in a))throw new eB(m,u);var f=a[m];if(h.type===ei.argument){f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),c.push({type:"string"==typeof f?l.literal:l.object,value:f});continue}if(D(h)){var p="string"==typeof h.style?i.date[h.style]:G(h.style)?h.style.parsedOptions:void 0;c.push({type:l.literal,value:r.getDateTimeFormat(n,p).format(f)});continue}if(R(h)){var p="string"==typeof h.style?i.time[h.style]:G(h.style)?h.style.parsedOptions:i.time.medium;c.push({type:l.literal,value:r.getDateTimeFormat(n,p).format(f)});continue}if(B(h)){var p="string"==typeof h.style?i.number[h.style]:F(h.style)?h.style.parsedOptions:void 0;p&&p.scale&&(f*=p.scale||1),c.push({type:l.literal,value:r.getNumberFormat(n,p).format(f)});continue}if(U(h)){var g=h.children,v=h.value,b=a[v];if("function"!=typeof b)throw new eP(v,"function",u);var _=b(e(g,n,r,i,a,o).map(function(e){return e.value}));Array.isArray(_)||(_=[_]),c.push.apply(c,_.map(function(e){return{type:"string"==typeof e?l.literal:l.object,value:e}}))}if(H(h)){var E=h.options[f]||h.options.other;if(!E)throw new eM(h.value,f,Object.keys(h.options),u);c.push.apply(c,e(E.value,n,r,i,a));continue}if(x(h)){var E=h.options["=".concat(f)];if(!E){if(!Intl.PluralRules)throw new eO('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',s.MISSING_INTL_API,u);var y=r.getPluralRules(n,{type:h.pluralType}).select(f-(h.offset||0));E=h.options[y]||h.options.other}if(!E)throw new eM(h.value,f,Object.keys(h.options),u);c.push.apply(c,e(E.value,n,r,i,a,f-(h.offset||0)));continue}}return c.length<2?c:c.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===l.literal&&t.type===l.literal?n.value+=t.value:e.push(t),e},[])}(u.ast,u.locales,u.formatters,u.formats,e,void 0,u.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=u.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=i||{},d=(c.formatters,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(c,["formatters"]));this.ast=e.__parse(t,v(v({},d),{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=(a=e.formats,r?Object.keys(a).reduce(function(e,t){var n,i;return e[t]=(n=a[t],(i=r[t])?v(v(v({},n||{}),i||{}),Object.keys(n).reduce(function(e,t){return e[t]=v(v({},n[t]),i[t]||{}),e},{})):n),e},v({},a)):a),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,b([void 0],t,!1)))},{cache:eD(o.number),strategy:T.variadic}),getDateTimeFormat:_(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,b([void 0],t,!1)))},{cache:eD(o.dateTime),strategy:T.variadic}),getPluralRules:_(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,b([void 0],t,!1)))},{cache:eD(o.pluralRules),strategy:T.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=eL,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 eH(e,t,n){return void 0===n&&(n={}),t.reduce(function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t},{})}var ex={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function eU(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function eF(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function eG(e,t,n,r){var i,a=e&&e[t];if(a&&(i=a[n]),i)return i;r(new I("No ".concat(t," format named: ").concat(n)))}var ej=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function eV(e,t,n,r){var i=e.locale,a=e.formats,o=e.onError,s=e.timeZone;void 0===r&&(r={});var l=r.format,u=eH(r,ej,v(v({},s&&{timeZone:s}),l&&eG(a,t,l,o)));return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=v(v({},u),{hour:"numeric",minute:"numeric"})),n(i,u)}function eK(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],o="string"==typeof i?new Date(i||0):i;try{return eV(e,"date",t,void 0===a?{}:a).format(o)}catch(t){e.onError(new L("Error formatting date.",e.locale,t))}return String(o)}function eW(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],o="string"==typeof i?new Date(i||0):i;try{return eV(e,"time",t,void 0===a?{}:a).format(o)}catch(t){e.onError(new L("Error formatting time.",e.locale,t))}return String(o)}function ez(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],o=n[2],s="string"==typeof i?new Date(i||0):i,l="string"==typeof a?new Date(a||0):a;try{return eV(e,"dateTimeRange",t,void 0===o?{}:o).formatRange(s,l)}catch(t){e.onError(new L("Error formatting date time range.",e.locale,t))}return String(s)}function eZ(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],o="string"==typeof i?new Date(i||0):i;try{return eV(e,"date",t,void 0===a?{}:a).formatToParts(o)}catch(t){e.onError(new L("Error formatting date.",e.locale,t))}return[]}function eY(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],o="string"==typeof i?new Date(i||0):i;try{return eV(e,"time",t,void 0===a?{}:a).formatToParts(o)}catch(t){e.onError(new L("Error formatting time.",e.locale,t))}return[]}var eq=["style","type","fallback","languageDisplay"];function eX(e,t,n,r){var i=e.locale,a=e.onError;Intl.DisplayNames||a(new eO('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',s.MISSING_INTL_API));var o=eH(r,eq);try{return t(i,o).of(n)}catch(e){a(new L("Error formatting display name.",i,e))}}var eJ=["type","style"],eQ=Date.now();function e$(e,t,n,r){void 0===r&&(r={});var i=e0(e,t,n,r).reduce(function(e,t){var n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e},[]);return 1===i.length?i[0]:0===i.length?"":i}function e0(e,t,n,r){var i=e.locale,a=e.onError;void 0===r&&(r={}),Intl.ListFormat||a(new eO('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',s.MISSING_INTL_API));var o=eH(r,eJ);try{var l={},u=n.map(function(e,t){if("object"==typeof e){var n="".concat(eQ,"_").concat(t,"_").concat(eQ);return l[n]=e,n}return String(e)});return t(i,o).formatToParts(u).map(function(e){return"literal"===e.type?e:v(v({},e),{value:l[e.value]||e.value})})}catch(e){a(new L("Error formatting list.",i,e))}return n}function e1(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=v({timeZone:t},e[r]),n},{})}function e2(e,t){return Object.keys(v(v({},e),t)).reduce(function(n,r){return n[r]=v(v({},e[r]||{}),t[r]||{}),n},{})}function e3(e,t){if(!t)return e;var n=eR.formats;return v(v(v({},n),e),{date:e2(e1(n.date,t),e1(e.date||{},t)),time:e2(e1(n.time,t),e1(e.time||{},t))})}var e4=function(e,t,n,r,i){var a=e.locale,o=e.formats,s=e.messages,l=e.defaultLocale,u=e.defaultFormats,c=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,m=e.defaultRichTextElements;void 0===n&&(n={id:""});var f=n.id,p=n.defaultMessage;!function(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}(!!f,"[@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 g=String(f),b=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(b)&&1===b.length&&b[0].type===ei.literal)return b[0].value;if(!r&&b&&"string"==typeof b&&!m)return b.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=v(v({},m),r||{}),o=e3(o,h),u=e3(u,h),!b){if(!1===c&&""===b)return b;if((!p||a&&a.toLowerCase()!==l.toLowerCase())&&d(new M(n,a)),p)try{var _=t.getMessageFormat(p,l,u,i);return _.format(r)}catch(e){return d(new O('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),a,n,e)),"string"==typeof p?p:g}return g}try{var _=t.getMessageFormat(b,a,o,v({formatters:t},i||{}));return _.format(r)}catch(e){d(new O('Error formatting message: "'.concat(g,'", using ').concat(p?"default message":"id"," as fallback."),a,n,e))}if(p)try{var _=t.getMessageFormat(p,l,u,i);return _.format(r)}catch(e){d(new O('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),a,n,e))}return"string"==typeof b?b:"string"==typeof p?p:g},e6=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function e8(e,t,n){var r=e.locale,i=e.formats,a=e.onError;void 0===n&&(n={});var o=n.format;return t(r,eH(n,e6,o&&eG(i,"number",o,a)||{}))}function e5(e,t,n,r){void 0===r&&(r={});try{return e8(e,t,r).format(n)}catch(t){e.onError(new L("Error formatting number.",e.locale,t))}return String(n)}function e7(e,t,n,r){void 0===r&&(r={});try{return e8(e,t,r).formatToParts(n)}catch(t){e.onError(new L("Error formatting number.",e.locale,t))}return[]}var e9=["type"];function te(e,t,n,r){var i=e.locale,a=e.onError;void 0===r&&(r={}),Intl.PluralRules||a(new eO('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',s.MISSING_INTL_API));var o=eH(r,e9);try{return t(i,o).select(n)}catch(e){a(new L("Error formatting plural.",i,e))}return"other"}var tt=["numeric","style"];function tn(e,t,n,r,i){void 0===i&&(i={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new eO('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',s.MISSING_INTL_API));try{var a,o,l,u,c;return(a=i,o=e.locale,l=e.formats,u=e.onError,void 0===a&&(a={}),c=a.format,t(o,eH(a,tt,!!c&&eG(l,"relative",c,u)||{}))).format(n,r)}catch(t){e.onError(new L("Error formatting relative time.",e.locale,t))}return String(n)}let tr=(a={context:4713,"media-ui-nav_livenow":8173407,"media-ui-nav_quicktake":8173408,"media-ui-nav_watch":8173412,"media-ui-nav_doNotSellorSharePersonalInfo":8173413,"media-ui-nav_termsOfService":8173414,"media-ui-nav_trademarks":8173415,"media-ui-nav_privacyPolicy":8173416,"media-ui-nav_careers":8173417,"media-ui-nav_madeInNyc":8173418,"media-ui-nav_advertise":8173419,"media-ui-nav_adchoices":8173420,"media-ui-nav_help":8173421,"media-ui-nav_bloombergAllRightsReserved":8173422,"media-ui-nav_signInOrOut":8173423,"media-ui-nav_subscribe":8173424,"media-ui-nav_upgrade":8173425,"media-ui-nav_signin":8173426,"media-ui-nav_arialabel_signin":8173427,"media-ui-nav_arialabel_searchButton":8173428,"media-ui-nav_arialabel_accountMenu":8173429,"media-ui-nav_arialabel_exitButton":8173431,"media-ui-nav_arialabel_mobileMenuButton":8173432,"media-ui-nav_topSecurities":8173433,"media-ui-nav_trackYourPortFolionFromAnywhere":8173434,"media-ui-nav_arialabel_addToWatchlist":8173435,"media-ui-nav_createWatchlist":8173436,"media-ui-nav_arialabel_menu":8173437,"media-ui-nav_liveTv":8173438,"media-ui-nav_arialabel_placeholderLine":8173439,"media-ui-nav_arialabel_helpCenter":8173440,"media-ui-nav_helpCenter":8173456,"media-ui-nav_arialabel_whatYouGet":8173442,"media-ui-nav_whatYouGet":8173443,"media-ui-nav_signout":8173444,"media-ui-nav_arialabel_signout":8173445,"media-ui-nav_arialabel_userAccountMenu":8173446,"media-ui-nav_menu_header_settings":8173448,"media-ui-nav_menu_item_interests":8173449,"media-ui-nav_menu_item_newsletter":8173450,"media-ui-nav_menu_item_watchlist":8173451,"media-ui-nav_menu_item_corporateHub":8173452,"media-ui-nav_menu_item_account":8173453,"media-ui-nav_menu_item_subscription":8173454,"media-ui-nav_menu_item_billing":8173455,"media-ui-nav_menu_item_helpCenter":8173456,"media-ui-nav_menu_item_signOut":8173457,"media-ui-nav_menu_item_savedItems":8173458,"media-ui-nav_arialabel_selectRegion":8173459,"media-ui-nav_arialabel_currentRegion":8173460,"media-ui-nav_arialabel_regionSelector":8173461,"media-ui-nav_arialabel_searchBloomberg":8173463,"media-ui-nav_searchBloomberg":8173462,"media-ui-nav_arialabel_cancelButton":8173464,"media-ui-nav_arialabel_subMenuDesktop":8173465,"media-ui-nav_arialabel_userAccountButtonContainer":8173466,"media-ui-nav_arialabel_userAccountButton":8173467,"media-ui-nav_arialabel_userAccountMenuButton":8173468,"media-ui-nav_readMore":8189871,"media-ui-nav_myAccount":8251900,"media-ui-nav_subscribeToSaveAndGiftArticles":8251901},()=>{let e;try{let t=(0,c.Z)();e=(0,u.useCallback)((e,n)=>{let{id:r,defaultMessage:i}=e;return t.formatMessage({id:r,defaultMessage:i},n)},[t,a])}catch(r){let t=(0,d.Sn)(),n=(0,h.d)({locale:"en",messages:{}},t);e=(e,t)=>{let{defaultMessage:r,id:i}=e;return n.formatMessage({defaultMessage:r,id:i},t)}}return e}),ti=e=>{let{id:t,values:n,defaultMessage:r,children:i,...a}=e;try{return(0,c.Z)(),(0,m.jsx)(f.Z,{id:t,values:n,children:i,defaultMessage:r,...a})}catch(a){var o,s,l,u,d,h,p,g,E,y,S,C,w,k;let e=(o={locale:"en",messages:{}},void 0===(s=eU())&&(s=eU()),l=Intl.RelativeTimeFormat,u=Intl.ListFormat,d=Intl.DisplayNames,h=_(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,b([void 0],t,!1)))},{cache:eF(s.dateTime),strategy:T.variadic}),p=_(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,b([void 0],t,!1)))},{cache:eF(s.number),strategy:T.variadic}),g=_(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,b([void 0],t,!1)))},{cache:eF(s.pluralRules),strategy:T.variadic}),E={getDateTimeFormat:h,getNumberFormat:p,getMessageFormat:_(function(e,t,n,r){return new eR(e,t,n,v({formatters:{getNumberFormat:p,getDateTimeFormat:h,getPluralRules:g}},r||{}))},{cache:eF(s.message),strategy:T.variadic}),getRelativeTimeFormat:_(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(l.bind.apply(l,b([void 0],e,!1)))},{cache:eF(s.relativeTime),strategy:T.variadic}),getPluralRules:g,getListFormat:_(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(u.bind.apply(u,b([void 0],e,!1)))},{cache:eF(s.list),strategy:T.variadic}),getDisplayNames:_(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(d.bind.apply(d,b([void 0],e,!1)))},{cache:eF(s.displayNames),strategy:T.variadic})},S=(y=v(v({},ex),o)).locale,C=y.defaultLocale,w=y.onError,S?!Intl.NumberFormat.supportedLocalesOf(S).length&&w?w(new N('Missing locale data for locale: "'.concat(S,'" in Intl.NumberFormat. Using default locale: "').concat(C,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(S).length&&w&&w(new N('Missing locale data for locale: "'.concat(S,'" in Intl.DateTimeFormat. Using default locale: "').concat(C,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(w&&w(new A('"locale" was not configured, using "'.concat(C,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),y.locale=y.defaultLocale||"en"),y.onWarn&&y.defaultRichTextElements&&"string"==typeof(k=y.messages||{})[Object.keys(k)[0]]&&y.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'),v(v({},y),{formatters:E,formatNumber:e5.bind(null,y,E.getNumberFormat),formatNumberToParts:e7.bind(null,y,E.getNumberFormat),formatRelativeTime:tn.bind(null,y,E.getRelativeTimeFormat),formatDate:eK.bind(null,y,E.getDateTimeFormat),formatDateToParts:eZ.bind(null,y,E.getDateTimeFormat),formatTime:eW.bind(null,y,E.getDateTimeFormat),formatDateTimeRange:ez.bind(null,y,E.getDateTimeFormat),formatTimeToParts:eY.bind(null,y,E.getDateTimeFormat),formatPlural:te.bind(null,y,E.getPluralRules),formatMessage:e4.bind(null,y,E),$t:e4.bind(null,y,E),formatList:e$.bind(null,y,E.getListFormat),formatListToParts:e0.bind(null,y,E.getListFormat),formatDisplayName:eX.bind(null,y,E.getDisplayNames)})).formatMessage({defaultMessage:r,id:t},n);return"function"==typeof i?(0,m.jsx)(m.Fragment,{children:null==i?void 0:i([e])}):(0,m.jsx)(m.Fragment,{children:e})}}},53179:function(e,t,n){"use strict";n.d(t,{J:function(){return h}});var r=n(67294),i=n(25434),a=n(77536),o=n(60006),s=n(70390),l=n(93075),u=n(29545),c=n(1371);n(62058);var d={wrapper:"media-ui-Popover_wrapper-gXa-Tf5b3Cw-",eyebrow:"media-ui-Popover_eyebrow-JEux-TyElEU-",eyebrowText:"media-ui-Popover_eyebrowText-CvMJojhpbEk-",arrow:"media-ui-Popover_arrow-uClo-5-xhAc-",exitIcon:"media-ui-Popover_exitIcon-SZaekcFyTQU-",invisibleWrapper:"media-ui-Popover_invisibleWrapper-WxCZxAw7Mhg-",badge:"media-ui-Popover_badge-GYthksywqWg-"};let h=r.forwardRef(function(e,t){var n;let{Icon:h,anchorElement:m,onDismiss:f,allowedPlacements:p,eyebrow:g,name:v="Popover",text:b,portalRoot:_,badgeText:E,portalId:y,unstyled:S,floatingStrategy:C,acceptZeroDimensionAnchors:w=!1}=e,T=(0,i.f)(v),[k,I]=r.useState(!0),A=(0,r.useRef)(null),{refs:N,floatingStyles:L,context:O,middlewareData:M,update:P}=(0,l.YF)({open:k,onOpenChange:I,whileElementsMounted:u.Me,strategy:C,elements:{reference:m},middleware:[(0,c.cv)(20),(0,c.X5)({crossAxis:!0,allowedPlacements:null!=p?p:["left","right","top-start","top-end","bottom-start","bottom-end"],padding:5}),(0,c.Cp)({padding:5}),(0,c.uY)({padding:5}),(0,c.x7)({element:A,padding:30})]}),B=(0,l.qs)(O),{getFloatingProps:D}=(0,l.NI)([B]),R=null===(n=M.hide)||void 0===n?void 0:n.referenceHidden,H=(null==m?void 0:m.getBoundingClientRect().width)===0&&(null==m?void 0:m.getBoundingClientRect().height)===0,{isMounted:x,styles:U}=(0,l.Y_)(O,{duration:300});N.reference.current!==m&&(N.setReference(m),P());let F=(0,a.Sh)([d.wrapper,R&&d.invisibleWrapper],{...e,unstyled:S,name:v}),G=(0,l.qq)([N.setFloating,t]),j=(0,r.useCallback)(()=>{I(!1),f&&f()},[]);return x&&(w||!H)?r.createElement(l.ll,{root:_,id:y},r.createElement(l.wD,{initialFocus:-1,returnFocus:!1,closeOnFocusOut:!1,modal:!1,context:O},r.createElement("div",{className:F,ref:G,"data-component":T,style:{...L,...U},...D()},r.createElement(l.Y$,{style:{transform:"translateY(-1px)"},className:d.arrow,height:18,width:22,ref:A,context:O,strokeWidth:1,stroke:"var(--color-gray-700)"}),r.createElement("p",{className:d.eyebrow},r.createElement("span",{className:d.eyebrowText},E&&r.createElement("span",{className:d.badge},E),h,g),r.createElement(o.h,{onClick:j,size:"small",version:"phoenix",Icon:r.createElement(s.n$,{className:d.exitIcon})})),b&&r.createElement("p",null,b)))):null})},50448:function(e,t,n){"use strict";n.d(t,{N7:function(){return W},YM:function(){return z}}),(a=h||(h={})).en="en",a.ja="ja",(o=m||(m={}))["menu-items"]="menu-items",o["footer-menu-items"]="footer-menu-items",(s=f||(f={})).desktop="desktop",s.mobile="mobile",s.default="default";let r={[h.en]:{[m["menu-items"]]:{[f.desktop]:"new_navi_1",[f.mobile]:"new_navi_mobile_1"},[m["footer-menu-items"]]:{[f.default]:"new_navi_footer"}},[h.ja]:{[m["menu-items"]]:{[f.desktop]:"nav-japan--desktop",[f.mobile]:"nav-japan--mobile"},[m["footer-menu-items"]]:{[f.default]:"nav-japan--footer"}}};(l=p||(p={})).AFRICA="AFRICA",l.ASIA="APAC",l.EUROPE="EUR",l.JAPAN="JAPAN",l.MIDDLE_EAST="MIDEAST",l.US="AMER",l.UK="UK",l.LATAM="LATAM",(u=g||(g={})).AFRICA="AFRICA",u.ASIA="APAC",u.EUROPE="EUR",u.GLOBAL="GLOBAL",u.JAPAN="JAPAN",u.MIDDLE_EAST="MIDEAST",u.US="AMER",u.UK="UK",u.LATAM="LATAM",(c=v||(v={})).ENGLISH="english",c.JAPANESE="japanese",(d=b||(b={})).PUBLISHED="PUBLISHED",d.DRAFT="DRAFT";var i,a,o,s,l,u,c,d,h,m,f,p,g,v,b,_,E=n(34155);class y{getPathForCuration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default;return"".concat(e,"/").concat(r[this.locale][e][t])}getTTL(e){var t,n;let[,r]=(null===(n=e.headers)||void 0===n?void 0:null===(t=n.get("Cache-Control"))||void 0===t?void 0:t.match(/max-age=(\d+)/))||[];return r?Number(r):void 0}getLanguage(e){return e&&y.REGION_TO_LANGUAGE_MAP[e]||v.ENGLISH}getGlobalMethods(e,t){let n={[v.ENGLISH]:()=>({globalAuthorSession:this.fetchGlobalEnglishAuthorSession(t),globalBreakingNews:this.fetchGlobalEnglishBreakingNews(t),globalBreakingNewsLiveStream:this.fetchGlobalEnglishBreakingNewsLiveStream(t)}),[v.JAPANESE]:()=>({globalAuthorSession:void 0,globalBreakingNews:void 0,globalBreakingNewsLiveStream:void 0})};return(n[e]||n[v.ENGLISH])()}async promiseAllObjects(e){let t=Object.keys(e),n=t.map(t=>e[t]),r=await Promise.all(n),i={};return t.forEach((e,t)=>{i[e]=r[t]}),i}async fetchMenuItems(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.PUBLISHED,[t,n]=await Promise.all([this.fetchMenuItemsDesktop(e),this.fetchMenuItemsMobile(e)]);return{menuItemsDesktop:t,menuItemsMobile:n}}async fetchMenuItemsDesktop(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.PUBLISHED,t=this.getPathForCuration(m["menu-items"],f.desktop);try{let n=await fetch("".concat(this.url,"/").concat(t,"?state=").concat(e),{headers:{referrerPolicy:"strict-origin-when-cross-origin",referrer:this.host,"X-Haproxy-Jump":this.haproxyToken}});if(!n.ok)return console.error("Unable to retrieve desktop menu items from ".concat(this.url)),null;return await n.json()}catch(e){return console.error("Error retrieving desktop menu items from ".concat(this.url,": ").concat(e)),null}}async fetchMenuItemsMobile(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.PUBLISHED,t=this.getPathForCuration(m["menu-items"],f.mobile);try{let n=await fetch("".concat(this.url,"/").concat(t,"?state=").concat(e),{headers:{referrerPolicy:"strict-origin-when-cross-origin",referrer:this.host,"X-Haproxy-Jump":this.haproxyToken}});if(!n.ok)return console.error("Unable to retrieve mobile menu items from ".concat(this.url)),null;return await n.json()}catch(e){return console.error("Error retrieving mobile menu items from ".concat(this.url,": ").concat(e)),null}}async fetchFooterMenuItems(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.PUBLISHED,t=this.getPathForCuration(m["footer-menu-items"]);try{let n=await fetch("".concat(this.url,"/").concat(t,"?state=").concat(e),{headers:{referrerPolicy:"strict-origin-when-cross-origin",referrer:this.host,"X-Haproxy-Jump":this.haproxyToken}});if(!n.ok){let e=await n.text();return console.error("Error fetching footer menu items from ".concat(this.url,": ").concat(e)),null}return await n.json()}catch(e){return console.error("Error fetching footer menu items from ".concat(this.url,": ").concat(e)),null}}async fetchBreakingNews(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.PUBLISHED,n=this.getLanguage(e),[r,i,a]=await Promise.all([this.fetchRegionalAuthorSession(e,t),this.fetchRegionalBreakingNews(e,t),this.fetchRegionalBreakingNewsLiveStream(e,t)]),o=this.getGlobalMethods(n,t),{globalAuthorSession:s,globalBreakingNews:l,globalBreakingNewsLiveStream:u}=await this.promiseAllObjects(o);return Object.entries({regionalAuthorSession:r,globalAuthorSession:s,regionalBreakingNews:i,globalBreakingNews:l,regionalBreakingNewsLiveStream:a,globalBreakingNewsLiveStream:u}).filter(e=>{let[,t]=e;return t&&Object.keys(t).length}).reduce((e,t)=>{let[n,r]=t;return{...e,[n]:r}},{})}async fetchRegionalAuthorSession(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.PUBLISHED;if(!e)return null;try{let n=await fetch("".concat(this.url,"/author-session/").concat(e,"?state=").concat(t),{headers:{referrerPolicy:"strict-origin-when-cross-origin",referrer:this.host,"X-Haproxy-Jump":this.haproxyToken}});if(!n.ok){let t=await n.text();return console.error("Error fetching author session for region ".concat(e,": ").concat(t)),null}return await n.json()}catch(t){return console.error("Error fetching author session for region ".concat(e,": ").concat(t)),null}}async fetchGlobalEnglishAuthorSession(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.PUBLISHED;try{let t=await fetch("".concat(this.url,"/author-session/global?state=").concat(e),{headers:{referrerPolicy:"strict-origin-when-cross-origin",referrer:this.host,"X-Haproxy-Jump":this.haproxyToken}});if(!t.ok){let e=await t.text();return console.error("Error fetching global author session: ".concat(e)),null}return await t.json()}catch(e){return console.error("Error fetching author session for region global: ".concat(e)),null}}async fetchRegionalBreakingNews(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.PUBLISHED;if(!e)return null;try{let n=await fetch("".concat(this.url,"/breaking-news/").concat(e,"?state=").concat(t),{headers:{referrerPolicy:"strict-origin-when-cross-origin",referrer:this.host,"X-Haproxy-Jump":this.haproxyToken}});if(!n.ok){let t=await n.text();return console.error("Error fetching breaking news for region ".concat(e,": ").concat(t)),null}return await n.json()}catch(t){return console.error("Error fetching breaking news for region ".concat(e,": ").concat(t)),null}}async fetchGlobalEnglishBreakingNews(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.PUBLISHED;try{let t=await fetch("".concat(this.url,"/breaking-news/global?state=").concat(e),{headers:{referrerPolicy:"strict-origin-when-cross-origin",referrer:this.host,"X-Haproxy-Jump":this.haproxyToken}});if(!t.ok){let e=await t.text();return console.error("Error fetching global breaking news: ".concat(e)),null}return await t.json()}catch(e){return console.error("Error fetching breaking news for region global: ".concat(e)),null}}async fetchRegionalBreakingNewsLiveStream(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.PUBLISHED;if(!e)return null;try{let n=await fetch("".concat(this.url,"/breaking-news-live-stream/").concat(e,"?state=").concat(t),{headers:{referrerPolicy:"strict-origin-when-cross-origin",referrer:this.host,"X-Haproxy-Jump":this.haproxyToken}});if(!n.ok){let t=await n.text();return console.error("Error fetching breaking news livestream for region ".concat(e,": ").concat(t)),null}return await n.json()}catch(t){return console.error("Error fetching breaking news livestream for region ".concat(e,": ").concat(t)),null}}async fetchGlobalEnglishBreakingNewsLiveStream(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.PUBLISHED;try{let t=await fetch("".concat(this.url,"/breaking-news-live-stream/global?state=").concat(e),{headers:{referrerPolicy:"strict-origin-when-cross-origin",referrer:this.host,"X-Haproxy-Jump":this.haproxyToken}});if(!t.ok){let e=await t.text();return console.error("Error fetching global breaking news livestream: ".concat(e)),null}return await t.json()}catch(e){return console.error("Error fetching breaking news livestream for region global: ".concat(e)),null}}constructor({environment:e,useAWS:t,host:n,locale:r}){this.environment=e,this.haproxyToken=E.env.NAV_HAPROXY_TOKEN||"",this.host=n||"",this.url="production"===e?"https://nav-api.bloomberg.com":t?"http://nav-api-staging.cm.bloomberg.com:8080":"https://nav-api-staging.bloomberg.com",this.locale=r||h.en}}y.REGION_TO_LANGUAGE_MAP={[g.JAPAN]:v.JAPANESE,[g.AFRICA]:v.ENGLISH,[g.ASIA]:v.ENGLISH,[g.EUROPE]:v.ENGLISH,[g.GLOBAL]:v.ENGLISH,[g.MIDDLE_EAST]:v.ENGLISH,[g.US]:v.ENGLISH,[g.UK]:v.ENGLISH,[g.LATAM]:v.ENGLISH};var S=n(85893),C=n(67294),w=n(59628),T=n(93223);(i=_||(_={})).Success="success",i.Pending="pending",i.Failed="failed";let k={abbaConfig:null,abbaConfigStatus:_.Pending,geoIpData:null,accesslistMembership:null,refreshAbbaClient:()=>Promise.resolve()},I=(0,C.createContext)(k),A="abbaClient:ready",N=()=>Promise.resolve();function L(e,t){return"fulfilled"===e.status?e.value:(console.error("Error occurred while fetching abba feature: ".concat(e.reason instanceof Error?e.reason:JSON.stringify(e.reason))),t||null)}function O(){var e,t;let{getAbbaClient:n}=null!==(t=null===(e=window)||void 0===e?void 0:e.__bloomberg__)&&void 0!==t?t:{};return n?n():Promise.reject("'getAbbaClient' could not be found")}async function M(){let e=await O();return e&&e.getGeoIPData?e.getGeoIPData():Promise.reject("'getGeoIPData' could not be found.")}async function P(){let e=await O();return e&&e.getAccesslistMembership?e.getAccesslistMembership():Promise.reject("'getAccesslistMembership' could not be found.")}let B=e=>{let{children:t,platform:r,user:i}=e,[a,o]=(0,C.useState)(null),[s,l]=(0,C.useState)(null),[u,c]=(0,C.useState)(null),[d,h]=(0,C.useState)(_.Pending);(0,C.useEffect)(()=>{var e,t;async function n(){let[e,t,n]=await Promise.allSettled([function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{getAbbaConfig:r}=null!==(t=window.__bloomberg__)&&void 0!==t?t:{};return r?r(e,n):Promise.reject("'getAbbaConfig' could not be found.")}(r,i),M(),P()]),a=L(e);o(a);let s=L(t);l(s),s&&function(e){let{region:t="",country:n="",provinceId:r="",cityId:i="",fieldP:a="",fieldMI:o="",fieldD:s="",fieldIS:l="",fieldN:u=""}=e,c="".concat(t,"~").concat(n,"~").concat(r,"~").concat(i,"~").concat(a),d="".concat(o,"~").concat(s,"~").concat(l,"~").concat(u);window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"geoip_info_ready",geoip_info:c,geoip_info_extension:d})}(s),c(L(n,null)),h(a?_.Success:_.Failed)}let{getAbbaClient:a}=null!==(t=null===(e=window)||void 0===e?void 0:e.__bloomberg__)&&void 0!==t?t:{};return a?(n(),()=>{}):(window.addEventListener(A,n),()=>{window.removeEventListener(A,n)})},[r,i]),(0,C.useEffect)(()=>{window.__bloomberg__={...window.__bloomberg__,abbaConfig:a}},[a]);let m=(0,C.useMemo)(()=>{var e,t;return{abbaConfig:a,abbaConfigStatus:d,geoIpData:s,accesslistMembership:u,refreshAbbaClient:(null===(t=n.g.window)||void 0===t?void 0:null===(e=t.__bloomberg__)||void 0===e?void 0:e.refreshAbbaClient)||N}},[a,d]);return(0,S.jsx)(I.Provider,{value:m,children:t})};var D=n(99068);let R=["/graphics/","/features/","/billionaires/","/business-schools/"],H={user:void 0,personalizationClient:void 0,searchClient:new T.Z,initializeSignInWithRegUI:()=>{},onSignOut:()=>{},subscriptionUrl:"https://www.bloomberg.com/subscriptions",upgradeUrl:"https://www.bloomberg.com/portal/subscription?triggerSubscriptionUpgradeModal=true"},x=(0,C.createContext)(H);class U{setSubscriptionUrl(e){this.subscriptionUrl=e}getSubscriptionUrl(){return this.subscriptionUrl||H.subscriptionUrl}getUpgradeUrl(){return this.upgradeUrl||H.upgradeUrl}getDesktopSignInButton(){return this.desktopSignInButton}getMobileSignInButton(){return this.mobileSignInButton}getRegUIClient(){return this.regUIClient}constructor(){this.setSignInButton=e=>{let{mobileSignInButton:t,desktopSignInButton:n}=e;t&&(this.mobileSignInButton=t),n&&(this.desktopSignInButton=n);let r=this.getRegUIClient();r&&(this.mobileSignInButton&&r.addTextElements(this.mobileSignInButton),this.desktopSignInButton&&r.addTextElements(this.desktopSignInButton))},this.setRegUIClient=e=>{this.regUIClient=e},this.setOnUserInfoReady=(e,t)=>{if(this.getRegUIClient())return;let n=this.getDesktopSignInButton(),r=this.getMobileSignInButton();n&&e.addTextElements(n),r&&e.addTextElements(r),this.setRegUIClient(e)},this.onSignOut=async()=>{let e=this.getRegUIClient();try{await (null==e?void 0:e.logoutUser())?window.location.reload():console.error("Logging user out failed")}catch(e){console.error(e)}},this.regUIClient=null}}var F=n(34155);let G="nav-bar";function j(e,t){return e===h.ja?t.replace("bloomberg.com/","bloomberg.com/jp/"):t}let V=e=>{var t,n;let{children:r,user:i,navSignInClient:a,locale:o}=e,s=(0,C.useMemo)(()=>new T.Z,[]),[l,u]=(0,C.useState)();(0,C.useEffect)(()=>{u(new D.P8({application:"nav",clientUrl:F.env.NEXT_PUBLIC_PERSONALIZATION_URL||""}))},[]);let c=o===h.en||o===h.ja?o:((n=t=new URL(window.location.href),R.some(e=>n.pathname.startsWith(e)))?t.href.includes("/jp/"):"/jp"===t.pathname||t.pathname.startsWith("/jp/"))?h.ja:h.en,d=j(c,H.subscriptionUrl),m=j(c,H.upgradeUrl),f=(0,C.useMemo)(()=>({user:i,searchClient:s,personalizationClient:l,initializeSignInWithRegUI:a.setSignInButton,onSignOut:a.onSignOut,subscriptionUrl:d,upgradeUrl:m}),[i,s,a,l,d,m]);return(0,S.jsx)(x.Provider,{value:f,children:r})},K=e=>{let{abbaPlatformObject:t=G,children:n,navSignInClient:r,locale:i}=e,{session:a={},client:o}=(0,w.useRegUIClient)(),{user:s,isLoggedIn:l,subscriptionsData:u,entitlementFeatures:c}=a,d=!!((null==u?void 0:u.length)&&u.length>0),h=(null==c?void 0:c.length)>0,m=(0,C.useMemo)(()=>({isLoggedIn:l,isSubscriber:d,firstName:null==s?void 0:s.firstName,showUpgrade:h,subscriptionsData:u}),[a]);return(0,S.jsx)(B,{platform:t,user:null==o?void 0:o.fetchAbbaUserInfo(),children:(0,S.jsx)(V,{children:n,user:m,navSignInClient:r,locale:i})})},W=e=>{let{children:t,abbaPlatformObject:n=G,locale:r}=e,i=(0,C.useMemo)(()=>new U,[]);return(0,S.jsx)(w.RegUIClientProvider,{onUserInfoReady:i.setOnUserInfoReady,children:(0,S.jsx)(K,{abbaPlatformObject:n,children:t,navSignInClient:i,locale:r})})},z=()=>(0,C.useContext)(x)},99268:function(){},94448:function(){},14486:function(){},11859:function(){},66730:function(){},70356:function(){},6376:function(){},57054:function(){},67923:function(){},84575:function(){},50946:function(){},48870:function(){},77168:function(){},31404:function(){},64690:function(){},22515:function(){},62868:function(){},56274:function(){},89912:function(){},683:function(){},6520:function(){},38136:function(){},10528:function(){},44466:function(){},74009:function(){},29066:function(){},60242:function(){},24932:function(){},3375:function(){},14390:function(){},32864:function(){},71364:function(){},13499:function(){},12307:function(){},19923:function(){},50408:function(){},47190:function(){},13055:function(){},26653:function(){},46901:function(){},47127:function(){},62488:function(){},37342:function(){},90636:function(){},10032:function(){},62058:function(){},9008:function(e,t,n){e.exports=n(23867)},92703:function(e,t,n){"use strict";var r=n(50414);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},44012:function(e,t,n){"use strict";var r=n(97582),i=n(67294),a=n(680),o=n(86896);function s(e){var t=(0,o.Z)(),n=t.formatMessage,r=t.textComponent,a=void 0===r?i.Fragment:r,s=e.id,l=e.description,u=e.defaultMessage,c=e.values,d=e.children,h=e.tagName,m=void 0===h?a:h,f=n({id:s,description:l,defaultMessage:u},c,{ignoreTag:e.ignoreTag});return"function"==typeof d?d(Array.isArray(f)?f:[f]):m?i.createElement(m,null,f):i.createElement(i.Fragment,null,f)}s.displayName="FormattedMessage";var l=i.memo(s,function(e,t){var n=e.values,i=(0,r._T)(e,["values"]),o=t.values,s=(0,r._T)(t,["values"]);return(0,a.wU)(o,n)&&(0,a.wU)(i,s)});l.displayName="MemoizedFormattedMessage",t.Z=l},86896:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294),i=n(680),a=n(74806);function o(){var e=r.useContext(a._y);return(0,i.lq)(e),e}},25726:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}let i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{i[e]=new r(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{i[e]=new r(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{i[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{i[e]=new r(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{i[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{i[e]=new r(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{i[e]=new r(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{i[e]=new r(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{i[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)});let a=/[\-\:]([a-z])/g,o=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{let t=e.replace(a,o);i[t]=new r(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{let t=e.replace(a,o);i[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(a,o);i[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{i[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)}),i.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{i[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)});let{CAMELCASE:s,SAME:l,possibleStandardNames:u}=n(78229),c=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(u).reduce((e,t)=>{let n=u[t];return n===l?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return i.hasOwnProperty(e)?i[e]:null},t.isCustomAttribute=c,t.possibleStandardNames=d},78229:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},96701:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function i(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function s(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}n.d(t,{Z:function(){return S}});var l=n(67294),u=n(73935),c={disabled:!1},d=l.createContext(null),h=function(e){return e.scrollTop},m="unmounted",f="exited",p="entering",g="entered",v="exiting",b=function(e){function t(t,n){r=e.call(this,t,n)||this;var r,i,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i=f,r.appearStatus=p):i=g:i=t.unmountOnExit||t.mountOnEnter?m:f,r.state={status:i},r.nextCallback=null,r}o(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===m?{status:f}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==g&&(t=p):(n===p||n===g)&&(t=v)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:u.findDOMNode(this);n&&h(n)}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===f&&this.setState({status:m})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[u.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;if(!e&&!n||c.disabled){this.safeSetState({status:g},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:p},function(){t.props.onEntering(a,o),t.onTransitionEnd(l,function(){t.safeSetState({status:g},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u.findDOMNode(this);if(!t||c.disabled){this.safeSetState({status:f},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:v},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:f},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===m)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,i(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l.createElement(d.Provider,{value:null},"function"==typeof n?n(e,r):l.cloneElement(l.Children.only(n),r))},t}(l.Component);function _(){}b.contextType=d,b.propTypes={},b.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_,onEntering:_,onEntered:_,onExit:_,onExiting:_,onExited:_},b.UNMOUNTED=m,b.EXITED=f,b.ENTERING=p,b.ENTERED=g,b.EXITING=v;var E=function(e,t){return e&&t&&t.split(" ").forEach(function(t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=s(e.className,t):e.setAttribute("class",s(e.className&&e.className.baseVal||"",t))})},y=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,"exit"),t.addClass(i,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.addClass(i,a?"appear":"enter","active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?"appear":"enter";t.removeClasses(i,a),t.addClass(i,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?(r&&n?n+"-":"")+e:n[e],a=r?i+"-active":n[e+"Active"],o=r?i+"-done":n[e+"Done"];return{baseClassName:i,activeClassName:a,doneClassName:o}},t}o(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r,i=this.getClassNames(t)[n+"ClassName"],a=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&a&&(i+=" "+a),"active"===n&&e&&h(e),i&&(this.appliedClasses[t][n]=i,r=i,e&&r&&r.split(" ").forEach(function(t){var n,r;return n=e,r=t,void(n.classList?n.classList.add(r):(n.classList?r&&n.classList.contains(r):-1!==(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+r+" "))||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)))}))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&E(e,r),i&&E(e,i),a&&E(e,a)},n.render=function(){var e=this.props,t=(e.classNames,i(e,["classNames"]));return l.createElement(b,r({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l.Component);y.defaultProps={classNames:""},y.propTypes={};var S=y},41476:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(5174)),a=n(26678);t.default=function(e,t){var n={};return e&&"string"==typeof e&&(0,i.default)(e,function(e,r){e&&r&&(n[(0,a.camelCase)(e,t)]=r)}),n}},26678:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,l):e.replace(a,l)).replace(r,s))}},5174:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(18139));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),a="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;a?t(r,i,e):i&&((n=n||{})[r]=i)}}),n}},88388:function(e,t,n){"use strict";n.r(t),n.d(t,{focusable:function(){return A},getTabIndex:function(){return m},isFocusable:function(){return O},isTabbable:function(){return N},tabbable:function(){return I}});var r=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],i=r.join(","),a="undefined"==typeof Element,o=a?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!a&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},l=function(e,t){void 0===t&&(t=!0);var n,r=null==e?void 0:null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):l(e.parentNode))},u=function(e){var t,n=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},c=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&o.call(e,i)&&r.unshift(e),r=r.filter(n)},d=function(e,t,n){for(var r=[],a=Array.from(e);a.length;){var s=a.shift();if(!l(s,!1)){if("SLOT"===s.tagName){var u=s.assignedElements(),c=d(u.length?u:s.children,!0,n);n.flatten?r.push.apply(r,c):r.push({scopeParent:s,candidates:c})}else{o.call(s,i)&&n.filter(s)&&(t||!e.includes(s))&&r.push(s);var h=s.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(s),m=!l(h,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(h&&m){var f=d(!0===h?s.children:h.children,!0,n);n.flatten?r.push.apply(r,f):r.push({scopeParent:s,candidates:f})}else a.unshift.apply(a,s.children)}}}return r},h=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},m=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||u(e))&&!h(e)?0:e.tabIndex},f=function(e,t){var n=m(e);return n<0&&t&&!h(e)?0:n},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},g=function(e){return"INPUT"===e.tagName},v=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},b=function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=v(t,e.form);return!i||i===e},_=function(e){var t,n,r,i,a,o,l,u=e&&s(e),c=null===(t=u)||void 0===t?void 0:t.host,d=!1;if(u&&u!==e)for(d=!!(null!==(n=c)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(c)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!d&&c;)d=!!(null!==(o=c=null===(a=u=s(c))||void 0===a?void 0:a.host)&&void 0!==o&&null!==(l=o.ownerDocument)&&void 0!==l&&l.contains(c));return d},E=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},y=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var i=o.call(e,"details>summary:first-of-type")?e.parentElement:e;if(o.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return E(e)}else{if("function"==typeof r){for(var a=e;e;){var l=e.parentElement,u=s(e);if(l&&!l.shadowRoot&&!0===r(l))return E(e);e=e.assignedSlot?e.assignedSlot:l||u===e.ownerDocument?l:u.host}e=a}if(_(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},S=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!o.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},C=function(e,t){return!(t.disabled||g(t)&&"hidden"===t.type||y(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||S(t))},w=function(e,t){var n;return!(g(n=t)&&"radio"===n.type&&!b(n)||0>m(t))&&!!C(e,t)},T=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},k=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=f(a,i),s=i?k(e.candidates):a;0===o?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(p).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},I=function(e,t){return k((t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:w.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:T}):c(e,t.includeContainer,w.bind(null,t)))},A=function(e,t){return(t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:C.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,C.bind(null,t))},N=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==o.call(e,i)&&w(t,e)},L=r.concat("iframe:not([inert]):not([inert] *)").join(","),O=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==o.call(e,L)&&C(t,e)}},375:function(e,t,n){"use strict";var r,i,a;Object.defineProperty(t,"__esModule",{value:!0}),t._getInstance=t._getStatsigGlobalFlag=t._getStatsigGlobal=void 0;let o=n(99025);t._getStatsigGlobal=()=>{try{return"undefined"!=typeof __STATSIG__?__STATSIG__:d}catch(e){return d}},t._getStatsigGlobalFlag=e=>(0,t._getStatsigGlobal)()[e],t._getInstance=e=>{let n=(0,t._getStatsigGlobal)();return e?n.instances&&n.instances[e]:(n.instances&&Object.keys(n.instances).length>1&&o.Log.warn("Call made to Statsig global instance without an SDK key but there is more than one client instance. If you are using mulitple clients, please specify the SDK key."),n.firstInstance)};let s="__STATSIG__",l="undefined"!=typeof window?window:{},u=void 0!==n.g?n.g:{},c="undefined"!=typeof globalThis?globalThis:{},d=null!==(a=null!==(i=null!==(r=l[s])&&void 0!==r?r:u[s])&&void 0!==i?i:c[s])&&void 0!==a?a:{instance:t._getInstance};l[s]=d,u[s]=d,c[s]=d},61867:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getStorageKey=t._getUserStorageKey=void 0;let r=n(56152);function i(e,t,n){var i;if(n)return n(e,t);let a=t&&t.customIDs?t.customIDs:{},o=[`uid:${null!==(i=null==t?void 0:t.userID)&&void 0!==i?i:""}`,`cids:${Object.keys(a).sort((e,t)=>e.localeCompare(t)).map(e=>`${e}-${a[e]}`).join(",")}`,`k:${e}`];return(0,r._DJB2)(o.join("|"))}t._getUserStorageKey=i,t._getStorageKey=function(e,t,n){return t?i(e,t,n):(0,r._DJB2)(`k:${e}`)}},394:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},53183:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._makeDataAdapterResult=t.DataAdapterCore=void 0;let i=n(99025),a=n(33463),o=n(89063),s=n(38614),l=n(53111);class u{constructor(e,t){this._adapterName=e,this._cacheSuffix=t,this._options=null,this._sdkKey=null,this._lastModifiedStoreKey=`statsig.last_modified_time.${t}`,this._inMemoryCache=new d}attach(e,t,n){this._sdkKey=e,this._options=t}getDataSync(e){let t=e&&(0,o._normalizeUser)(e,this._options),n=this._getCacheKey(t),r=this._inMemoryCache.get(n,t);if(r&&this._getIsCacheValueValid(r))return r;let i=this._loadFromCache(n);return i&&this._getIsCacheValueValid(i)?(this._inMemoryCache.add(n,i),this._inMemoryCache.get(n,t)):null}setData(e,t){let n=t&&(0,o._normalizeUser)(t,this._options),r=this._getCacheKey(n);this._inMemoryCache.add(r,c("Bootstrap",e,null,n))}_getIsCacheValueValid(e){return null==e.stableID||e.stableID===a.StableID.get(this._getSdkKey())}_getDataAsyncImpl(e,t,n){return r(this,void 0,void 0,function*(){s.Storage.isReady()||(yield s.Storage.isReadyResolver());let r=null!=e?e:this.getDataSync(t),a=[this._fetchAndPrepFromNetwork(r,t,n)];return(null==n?void 0:n.timeoutMs)&&a.push(new Promise(e=>setTimeout(e,n.timeoutMs)).then(()=>(i.Log.debug("Fetching latest value timed out"),null))),yield Promise.race(a)})}_prefetchDataImpl(e,t){return r(this,void 0,void 0,function*(){let n=e&&(0,o._normalizeUser)(e,this._options),r=this._getCacheKey(n),i=yield this._getDataAsyncImpl(null,n,t);i&&this._inMemoryCache.add(r,Object.assign(Object.assign({},i),{source:"Prefetch"}))})}_fetchAndPrepFromNetwork(e,t,n){return r(this,void 0,void 0,function*(){var r;let o=null!==(r=null==e?void 0:e.data)&&void 0!==r?r:null,s=null!=e&&this._isCachedResultValidFor204(e,t),u=yield this._fetchFromNetwork(o,t,n,s);if(!u)return i.Log.debug("No response returned for latest value"),null;let d=(0,l._typedJsonParse)(u,"has_updates","Response"),h=this._getSdkKey(),m=a.StableID.get(h),f=null;if((null==d?void 0:d.has_updates)===!0)f=c("Network",u,m,t);else{if(!o||(null==d?void 0:d.has_updates)!==!1)return null;f=c("NetworkNotModified",o,m,t)}let p=this._getCacheKey(t);return this._inMemoryCache.add(p,f),this._writeToCache(p,f),f})}_getSdkKey(){return null!=this._sdkKey?this._sdkKey:(i.Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(e){var t;let n=null===(t=s.Storage.getItem)||void 0===t?void 0:t.call(s.Storage,e);if(null==n)return null;let r=(0,l._typedJsonParse)(n,"source","Cached Result");return r?Object.assign(Object.assign({},r),{source:"Cache"}):null}_writeToCache(e,t){s.Storage.setItem(e,JSON.stringify(t)),this._runLocalStorageCacheEviction(e)}_runLocalStorageCacheEviction(e){var t;let n=null!==(t=(0,s._getObjectFromStorage)(this._lastModifiedStoreKey))&&void 0!==t?t:{};n[e]=Date.now();let r=h(n,10);r&&(delete n[r],s.Storage.removeItem(r)),(0,s._setObjectInStorage)(this._lastModifiedStoreKey,n)}}function c(e,t,n,r){return{source:e,data:t,receivedAt:Date.now(),stableID:n,fullUserHash:(0,o._getFullUserHash)(r)}}t.DataAdapterCore=u,t._makeDataAdapterResult=c;class d{constructor(){this._data={}}get(e,t){var n;let r=this._data[e],a=null==r?void 0:r.stableID,o=null===(n=null==t?void 0:t.customIDs)||void 0===n?void 0:n.stableID;return o&&a&&o!==a?(i.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):r}add(e,t){let n=h(this._data,9);n&&delete this._data[n],this._data[e]=t}merge(e){this._data=Object.assign(Object.assign({},this._data),e)}}function h(e,t){let n=Object.keys(e);return n.length<=t?null:n.reduce((t,n)=>{let r=e[t],i=e[n];return"object"==typeof r&&"object"==typeof i?i.receivedAt<r.receivedAt?n:t:i<r?n:t})}},60642:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Diagnostics=void 0;let n=new Map,r="start";function i(e,t,n,r){return Object.assign({key:n,action:t,step:r,timestamp:Date.now()},e)}function a(e,t){var r;let i=null!==(r=n.get(e))&&void 0!==r?r:[];i.push(t),n.set(e,i)}function o(e,t){if(t in e)return e[t]}t.Diagnostics={_getMarkers:e=>n.get(e),_markInitOverallStart:e=>{a(e,i({},r,"overall"))},_markInitOverallEnd:(e,t,n)=>{a(e,i({success:t,error:t?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:n},"end","overall"))},_markInitNetworkReqStart:(e,t)=>{a(e,i(t,r,"initialize","network_request"))},_markInitNetworkReqEnd:(e,t)=>{a(e,i(t,"end","initialize","network_request"))},_markInitProcessStart:e=>{a(e,i({},r,"initialize","process"))},_markInitProcessEnd:(e,t)=>{a(e,i(t,"end","initialize","process"))},_clearMarkers:e=>{n.delete(e)},_formatError(e){if(e&&"object"==typeof e)return{code:o(e,"code"),name:o(e,"name"),message:o(e,"message")}},_getDiagnosticsData(e,n,r,i){var a;return{success:(null==e?void 0:e.ok)===!0,statusCode:null==e?void 0:e.status,sdkRegion:null===(a=null==e?void 0:e.headers)||void 0===a?void 0:a.get("x-statsig-region"),isDelta:!0===r.includes('"is_delta":true')||void 0,attempt:n,error:t.Diagnostics._formatError(i)}},_enqueueDiagnosticsEvent(e,n,r,i){let a=t.Diagnostics._getMarkers(r);if(null==a||a.length<=0)return -1;let o=a[a.length-1].timestamp-a[0].timestamp;t.Diagnostics._clearMarkers(r);let s={eventName:"statsig::diagnostics",user:e,value:null,metadata:{context:"initialize",markers:a.slice(),statsigOptions:i},time:Date.now()};return n.enqueue(s),o}}},9549:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._fetchTxtRecords=void 0;let r=new Uint8Array([0,0,1,0,0,1,0,0,0,0,0,0,13,102,101,97,116,117,114,101,97,115,115,101,116,115,3,111,114,103,0,0,16,0,1]),i=["i","e","d"];t._fetchTxtRecords=function(e){return n(this,void 0,void 0,function*(){let t=yield e("https://cloudflare-dns.com/dns-query",{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:r});if(!t.ok){let e=Error("Failed to fetch TXT records from DNS");throw e.name="DnsTxtFetchError",e}return function(e){let t=e.findIndex((t,n)=>n<200&&"="===String.fromCharCode(t)&&i.includes(String.fromCharCode(e[n-1])));if(-1===t){let e=Error("Failed to parse TXT records from DNS");throw e.name="DnsTxtParseError",e}let n="";for(let r=t-1;r<e.length;r++)n+=String.fromCharCode(e[r]);return n.split(",")}(new Uint8Array((yield t.arrayBuffer())))})}},36831:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},68896:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=t.EXCEPTION_ENDPOINT=void 0;let i=n(99025),a=n(95881),o=n(56801);t.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";let s="[Statsig] UnknownError";class l{constructor(e,t,n,r){this._sdkKey=e,this._options=t,this._emitter=n,this._lastSeenError=r,this._seen=new Set}wrap(e,t){try{(function(e){let t=new Set,n=Object.getPrototypeOf(e);for(;n&&n!==Object.prototype;)Object.getOwnPropertyNames(n).filter(e=>"function"==typeof(null==n?void 0:n[e])).forEach(e=>t.add(e)),n=Object.getPrototypeOf(n);return Array.from(t)})(e).forEach(n=>{let r=e[n];"$EB"in r||(e[n]=(...i)=>this._capture(t?`${t}:${n}`:n,()=>r.apply(e,i)),e[n].$EB=!0)})}catch(e){this._onError("eb:wrap",e)}}logError(e,t){this._onError(e,t)}getLastSeenErrorAndReset(){let e=this._lastSeenError;return this._lastSeenError=void 0,null!=e?e:null}attachErrorIfNoneExists(e){this._lastSeenError||(this._lastSeenError=u(e))}_capture(e,t){try{let n=t();if(n&&n instanceof Promise)return n.catch(t=>this._onError(e,t));return n}catch(t){return this._onError(e,t),null}}_onError(e,n){try{i.Log.warn(`Caught error in ${e}`,{error:n}),r(this,void 0,void 0,function*(){var r,i,l,c,d,h,m;let f=n||Error(s),p=f instanceof Error,g=p?f.name:"No Name",v=u(f);if(this._lastSeenError=v,this._seen.has(g))return;if(this._seen.add(g),null===(i=null===(r=this._options)||void 0===r?void 0:r.networkConfig)||void 0===i?void 0:i.preventAllNetworkTraffic){null===(l=this._emitter)||void 0===l||l.call(this,{name:"error",error:n,tag:e});return}let b=a.SDKType._get(this._sdkKey),_=o.StatsigMetadataProvider.get(),E=p?f.stack:function(e){try{return JSON.stringify(e)}catch(e){return s}}(f),y=Object.assign({tag:e,exception:g,info:E,statsigOptions:function(e){if(!e)return{};let t={};return Object.entries(e).forEach(([e,n])=>{switch(typeof n){case"number":case"bigint":case"boolean":t[String(e)]=n;break;case"string":n.length<50?t[String(e)]=n:t[String(e)]="set";break;case"object":"environment"===e?t.environment=n:"networkConfig"===e?t.networkConfig=n:t[String(e)]=null!=n?"set":"unset"}}),t}(this._options)},Object.assign(Object.assign({},_),{sdkType:b})),S=null!==(h=null===(d=null===(c=this._options)||void 0===c?void 0:c.networkConfig)||void 0===d?void 0:d.networkOverrideFunc)&&void 0!==h?h:fetch;yield S(t.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(b),"STATSIG-SDK-VERSION":String(_.sdkVersion),"Content-Type":"application/json"},body:JSON.stringify(y)}),null===(m=this._emitter)||void 0===m||m.call(this,{name:"error",error:n,tag:e})}).then(()=>{}).catch(()=>{})}catch(e){}}}function u(e){return e instanceof Error?e:"string"==typeof e?Error(e):Error("An unknown error occurred.")}t.ErrorBoundary=l},80624:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},21335:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},16156:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.EventLogger=void 0;let i=n(61867),a=n(56152),o=n(99025),s=n(33975),l=n(37631),u=n(19817),c=n(16790),d=n(38614),h=n(40801),m=n(65260),f={},p={Startup:"startup",GainedFocus:"gained_focus"};class g{static _safeFlushAndForget(e){var t;null===(t=f[e])||void 0===t||t.flush().catch(()=>{})}static _safeRetryFailedLogs(e){var t;null===(t=f[e])||void 0===t||t._retryFailedLogs(p.GainedFocus)}constructor(e,t,n,r){var i,a;this._sdkKey=e,this._emitter=t,this._network=n,this._options=r,this._queue=[],this._lastExposureTimeMap={},this._nonExposedChecks={},this._hasRunQuickFlush=!1,this._creationTime=Date.now(),this._loggingEnabled=null!==(i=null==r?void 0:r.loggingEnabled)&&void 0!==i?i:(null==r?void 0:r.disableLogging)===!0?c.LoggingEnabledOption.disabled:c.LoggingEnabledOption.browserOnly,(null==r?void 0:r.loggingEnabled)&&void 0!==r.disableLogging&&o.Log.warn("Detected both loggingEnabled and disableLogging options. loggingEnabled takes precedence - please remove disableLogging."),this._maxQueueSize=null!==(a=null==r?void 0:r.loggingBufferMaxSize)&&void 0!==a?a:100;let l=null==r?void 0:r.networkConfig;this._logEventUrlConfig=new h.UrlConfiguration(s.Endpoint._rgstr,null==l?void 0:l.logEventUrl,null==l?void 0:l.api,null==l?void 0:l.logEventFallbackUrls)}setLogEventCompressionMode(e){this._network.setLogEventCompressionMode(e)}setLoggingEnabled(e){this._loggingEnabled=e}enqueue(e){this._shouldLogEvent(e)&&(this._normalizeAndAppendEvent(e),this._quickFlushIfNeeded(),this._queue.length>this._maxQueueSize&&g._safeFlushAndForget(this._sdkKey))}incrementNonExposureCount(e){var t;let n=null!==(t=this._nonExposedChecks[e])&&void 0!==t?t:0;this._nonExposedChecks[e]=n+1}reset(){this.flush().catch(()=>{}),this._lastExposureTimeMap={}}start(){var e;let t=(0,l._isServerEnv)();t&&(null===(e=this._options)||void 0===e?void 0:e.loggingEnabled)!=="always"||(f[this._sdkKey]=this,t||(0,m._subscribeToVisiblityChanged)(e=>{"background"===e?g._safeFlushAndForget(this._sdkKey):"foreground"===e&&g._safeRetryFailedLogs(this._sdkKey)}),this._retryFailedLogs(p.Startup),this._startBackgroundFlushInterval())}stop(){return r(this,void 0,void 0,function*(){this._flushIntervalId&&(clearInterval(this._flushIntervalId),this._flushIntervalId=null),delete f[this._sdkKey],yield this.flush()})}flush(){return r(this,void 0,void 0,function*(){if(this._appendAndResetNonExposedChecks(),0===this._queue.length)return;let e=this._queue;this._queue=[],yield this._sendEvents(e)})}_quickFlushIfNeeded(){!this._hasRunQuickFlush&&(this._hasRunQuickFlush=!0,Date.now()-this._creationTime>200||setTimeout(()=>g._safeFlushAndForget(this._sdkKey),200))}_shouldLogEvent(e){var t;if((null===(t=this._options)||void 0===t?void 0:t.loggingEnabled)!=="always"&&(0,l._isServerEnv)())return!1;if(!(0,u._isExposureEvent)(e))return!0;let n=e.user?e.user:{statsigEnvironment:void 0},r=(0,i._getUserStorageKey)(this._sdkKey,n),a=e.metadata?e.metadata:{},o=[e.eventName,r,a.gate,a.config,a.ruleID,a.allocatedExperiment,a.parameterName,String(a.isExplicitParameter),a.reason].join("|"),s=this._lastExposureTimeMap[o],c=Date.now();return(!s||!(c-s<6e5))&&(Object.keys(this._lastExposureTimeMap).length>1e3&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[o]=c,!0)}_sendEvents(e){return r(this,void 0,void 0,function*(){var t,n;if("disabled"===this._loggingEnabled)return this._saveFailedLogsToStorage(e),!1;try{let r=(0,m._isUnloading)()&&this._network.isBeaconSupported()&&(null===(n=null===(t=this._options)||void 0===t?void 0:t.networkConfig)||void 0===n?void 0:n.networkOverrideFunc)==null;if(this._emitter({name:"pre_logs_flushed",events:e}),(r?this._sendEventsViaBeacon(e):yield this._sendEventsViaPost(e)).success)return this._emitter({name:"logs_flushed",events:e}),!0;return o.Log.warn("Failed to flush events."),this._saveFailedLogsToStorage(e),!1}catch(e){return o.Log.warn("Failed to flush events."),!1}})}_sendEventsViaPost(e){return r(this,void 0,void 0,function*(){var t;let n=yield this._network.post(this._getRequestData(e)),r=null!==(t=null==n?void 0:n.code)&&void 0!==t?t:-1;return{success:r>=200&&r<300}})}_sendEventsViaBeacon(e){return{success:this._network.beacon(this._getRequestData(e))}}_getRequestData(e){return{sdkKey:this._sdkKey,data:{events:e},urlConfig:this._logEventUrlConfig,retries:3,isCompressable:!0,params:{[s.NetworkParam.EventCount]:String(e.length)},credentials:"same-origin"}}_saveFailedLogsToStorage(e){for(;e.length>500;)e.shift();let t=this._getStorageKey();try{(0,d._setObjectInStorage)(t,e)}catch(e){o.Log.warn("Unable to save failed logs to storage")}}_retryFailedLogs(e){let t=this._getStorageKey();r(this,void 0,void 0,function*(){d.Storage.isReady()||(yield d.Storage.isReadyResolver());let n=(0,d._getObjectFromStorage)(t);n&&(e===p.Startup&&d.Storage.removeItem(t),(yield this._sendEvents(n))&&e===p.GainedFocus&&d.Storage.removeItem(t))}).catch(()=>{o.Log.warn("Failed to flush stored logs")})}_getStorageKey(){return`statsig.failed_logs.${(0,a._DJB2)(this._sdkKey)}`}_normalizeAndAppendEvent(e){e.user&&(e.user=Object.assign({},e.user),delete e.user.privateAttributes);let t={},n=this._getCurrentPageUrl();n&&(t.statsigMetadata={currentPage:n});let r=Object.assign(Object.assign({},e),t);o.Log.debug("Enqueued Event:",r),this._queue.push(r)}_appendAndResetNonExposedChecks(){0!==Object.keys(this._nonExposedChecks).length&&(this._normalizeAndAppendEvent({eventName:"statsig::non_exposed_checks",user:null,time:Date.now(),metadata:{checks:Object.assign({},this._nonExposedChecks)}}),this._nonExposedChecks={})}_getCurrentPageUrl(){var e;if((null===(e=this._options)||void 0===e?void 0:e.includeCurrentPageUrlWithEvents)!==!1)return(0,l._getCurrentPageUrlSafe)()}_startBackgroundFlushInterval(){var e,t;let n=setInterval(()=>{let e=f[this._sdkKey];e&&e._flushIntervalId===n?g._safeFlushAndForget(this._sdkKey):clearInterval(n)},null!==(t=null===(e=this._options)||void 0===e?void 0:e.loggingIntervalMs)&&void 0!==t?t:1e4);this._flushIntervalId=n}}t.EventLogger=g},56152:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getSortedObject=t._DJB2Object=t._DJB2=void 0;let r=n(38687);t._DJB2=e=>{let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return String(t>>>0)},t._DJB2Object=(e,n)=>(0,t._DJB2)(JSON.stringify((0,t._getSortedObject)(e,n))),t._getSortedObject=(e,n)=>{if(null==e)return null;let i=Object.keys(e).sort(),a={};return i.forEach(i=>{let o=e[i];if(0===n||"object"!==(0,r._typeOf)(o)){a[i]=o;return}a[i]=(0,t._getSortedObject)(o,null!=n?n-1:n)}),a}},76724:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},99025:function(e,t){"use strict";function n(e){return e.unshift("[Statsig]"),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Log=t.LogLevel=void 0,t.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class r{static info(...e){r.level>=t.LogLevel.Info&&console.info(" INFO ",...n(e))}static debug(...e){r.level>=t.LogLevel.Debug&&console.debug(" DEBUG ",...n(e))}static warn(...e){r.level>=t.LogLevel.Warn&&console.warn(" WARN ",...n(e))}static error(...e){r.level>=t.LogLevel.Error&&console.error(" ERROR ",...n(e))}}t.Log=r,r.level=t.LogLevel.Warn},41231:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMemoKey=t.MemoPrefix=void 0,t.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_configList:"cl",_layer:"l",_paramStore:"p"};let n=new Set([]),r=new Set(["userPersistedValues"]);t.createMemoKey=function(e,t,i){let a=`${e}|${t}`;if(!i)return a;for(let e of Object.keys(i)){if(r.has(e))return;n.has(e)?a+=`|${e}=true`:a+=`|${e}=${i[e]}`}return a}},33975:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkParam=t.NetworkDefault=t.Endpoint=void 0,t.Endpoint={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"download_config_specs"},t.NetworkDefault={[t.Endpoint._rgstr]:"https://prodregistryv2.org/v1",[t.Endpoint._initialize]:"https://featureassets.org/v1",[t.Endpoint._download_config_specs]:"https://api.statsigcdn.com/v1"},t.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}},3284:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkCore=void 0,n(375);let i=n(375),a=n(60642),o=n(99025),s=n(33975),l=n(74930),u=n(11753),c=n(95881),d=n(37631),h=n(27995),m=n(33463),f=n(86478),p=n(56801),g=n(16790),v=n(65260),b=new Set([408,500,502,503,504,522,524,599]);class _{constructor(e,t){this._emitter=t,this._errorBoundary=null,this._timeout=1e4,this._netConfig={},this._options={},this._leakyBucket={},this._lastUsedInitUrl=null,e&&(this._options=e),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutMs),this._fallbackResolver=new l.NetworkFallbackResolver(this._options),this.setLogEventCompressionMode(this._getLogEventCompressionMode(e))}setLogEventCompressionMode(e){this._options.logEventCompressionMode=e}setErrorBoundary(e){this._errorBoundary=e,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(e)}isBeaconSupported(){return"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon}getLastUsedInitUrlAndReset(){let e=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,e}beacon(e){if(!E(e))return!1;let t=this._getInternalRequestArgs("POST",e),n=this._getPopulatedURL(t),r=navigator;return r.sendBeacon.bind(r)(n,t.body)}post(e){return r(this,void 0,void 0,function*(){let t=this._getInternalRequestArgs("POST",e);return this._tryEncodeBody(t),yield this._tryToCompressBody(t),this._sendRequest(t)})}get(e){let t=this._getInternalRequestArgs("GET",e);return this._sendRequest(t)}_sendRequest(e){return r(this,void 0,void 0,function*(){var t,n,i,l;if(!E(e)||this._netConfig.preventAllNetworkTraffic)return null;let{method:u,body:c,retries:d,attempt:h}=e,m=e.urlConfig.endpoint;if(this._isRateLimited(m))return o.Log.warn(`Request to ${m} was blocked because you are making requests too frequently.`),null;let p=null!=h?h:1,g="undefined"!=typeof AbortController?new AbortController:null,_=setTimeout(()=>{null==g||g.abort(`Timeout of ${this._timeout}ms expired.`)},this._timeout),y=this._getPopulatedURL(e),C=null,w=(0,v._isUnloading)();try{let n={method:u,body:c,headers:Object.assign({},e.headers),signal:null==g?void 0:g.signal,priority:e.priority,keepalive:w};e.urlConfig.endpoint===s.Endpoint._initialize&&a.Diagnostics._markInitNetworkReqStart(e.sdkKey,{attempt:p});let r=this._leakyBucket[m];r&&(r.lastRequestTime=Date.now(),this._leakyBucket[m]=r);let i=null!==(t=this._netConfig.networkOverrideFunc)&&void 0!==t?t:fetch;if(C=yield i(y,n),clearTimeout(_),!C.ok){let e=yield C.text().catch(()=>"No Text"),t=Error(`NetworkError: ${y} ${e}`);throw t.name="NetworkError",t}let o=yield C.text();return S(e,C,p,o),this._fallbackResolver.tryBumpExpiryTime(e.sdkKey,e.urlConfig),{body:o,code:C.status}}catch(s){let t=(null==g?void 0:g.signal.aborted)&&"string"==typeof g.signal.reason?g.signal.reason:"string"==typeof s?s:s instanceof Error?`${s.name}: ${s.message}`:"Unknown Error",a=(null==g?void 0:g.signal.aborted)&&"string"==typeof g.signal.reason&&g.signal.reason.includes("Timeout")||!1;if(S(e,C,p,"",s),(yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(e.sdkKey,e.urlConfig,t,a))&&(e.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(e.sdkKey,e.urlConfig)),!d||p>d||!b.has(null!==(n=null==C?void 0:C.status)&&void 0!==n?n:500)){null===(i=this._emitter)||void 0===i||i.call(this,{name:"error",error:s,tag:f.ErrorTag.NetworkError,requestArgs:e});let n=`A networking error occurred during ${u} request to ${y}.`;return o.Log.error(n,t,s),null===(l=this._errorBoundary)||void 0===l||l.attachErrorIfNoneExists(n),null}return yield function(e){return r(this,void 0,void 0,function*(){yield new Promise(t=>setTimeout(t,Math.min(e*e*500,3e4)))})}(p),this._sendRequest(Object.assign(Object.assign({},e),{retries:d,attempt:p+1}))}})}_getLogEventCompressionMode(e){let t=null==e?void 0:e.logEventCompressionMode;return t||(null==e?void 0:e.disableCompression)!==!0||(t=g.LogEventCompressionMode.Disabled),t||(t=g.LogEventCompressionMode.Enabled),t}_isRateLimited(e){var t;let n=Date.now(),r=null!==(t=this._leakyBucket[e])&&void 0!==t?t:{count:0,lastRequestTime:n},i=n-r.lastRequestTime;return r.count=Math.max(0,r.count-Math.floor(.05*i)),r.count>=50||(r.count+=1,r.lastRequestTime=n,this._leakyBucket[e]=r,!1)}_getPopulatedURL(e){var t;let n=null!==(t=e.fallbackUrl)&&void 0!==t?t:e.urlConfig.getUrl();(e.urlConfig.endpoint===s.Endpoint._initialize||e.urlConfig.endpoint===s.Endpoint._download_config_specs)&&(this._lastUsedInitUrl=n);let r=Object.assign({[s.NetworkParam.SdkKey]:e.sdkKey,[s.NetworkParam.SdkType]:c.SDKType._get(e.sdkKey),[s.NetworkParam.SdkVersion]:p.SDK_VERSION,[s.NetworkParam.Time]:String(Date.now()),[s.NetworkParam.SessionID]:h.SessionID.get(e.sdkKey)},e.params),i=Object.keys(r).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(r[e])}`).join("&");return`${n}${i?`?${i}`:""}`}_tryEncodeBody(e){var t;let n=(0,d._getWindowSafe)(),r=e.body;if(e.isStatsigEncodable&&!this._options.disableStatsigEncoding&&"string"==typeof r&&null==(0,i._getStatsigGlobalFlag)("no-encode")&&(null==n?void 0:n.btoa))try{e.body=n.btoa(r).split("").reverse().join(""),e.params=Object.assign(Object.assign({},null!==(t=e.params)&&void 0!==t?t:{}),{[s.NetworkParam.StatsigEncoded]:"1"})}catch(t){o.Log.warn(`Request encoding failed for ${e.urlConfig.getUrl()}`,t)}}_tryToCompressBody(e){return r(this,void 0,void 0,function*(){var t;let n=e.body;if("string"==typeof n&&function(e,t){if(!e.isCompressable||null!=(0,i._getStatsigGlobalFlag)("no-compress")||"undefined"==typeof CompressionStream||"undefined"==typeof TextEncoder)return!1;let n=null!=e.urlConfig.customUrl||null!=e.urlConfig.fallbackUrls,r=!0===u.SDKFlags.get(e.sdkKey,"enable_log_event_compression");switch(t.logEventCompressionMode){case g.LogEventCompressionMode.Disabled:return!1;case g.LogEventCompressionMode.Enabled:if(n&&!r)return!1;return!0;case g.LogEventCompressionMode.Forced:return!0;default:return!1}}(e,this._options))try{let r;let i=new TextEncoder().encode(n),a=new CompressionStream("gzip"),l=a.writable.getWriter();l.write(i).catch(o.Log.error),l.close().catch(o.Log.error);let u=a.readable.getReader(),c=[];for(;!(r=yield u.read()).done;)c.push(r.value);let d=c.reduce((e,t)=>e+t.length,0),h=new Uint8Array(d),m=0;for(let e of c)h.set(e,m),m+=e.length;e.body=h,e.params=Object.assign(Object.assign({},null!==(t=e.params)&&void 0!==t?t:{}),{[s.NetworkParam.IsGzipped]:"1"})}catch(t){o.Log.warn(`Request compression failed for ${e.urlConfig.getUrl()}`,t)}})}_getInternalRequestArgs(e,t){let n=this._fallbackResolver.getActiveFallbackUrl(t.sdkKey,t.urlConfig),r=Object.assign(Object.assign({},t),{method:e,fallbackUrl:n});return"data"in t&&y(r,t.data),r}}t.NetworkCore=_;let E=e=>!!e.sdkKey||(o.Log.warn("Unable to make request without an SDK key"),!1),y=(e,t)=>{let{sdkKey:n,fallbackUrl:r}=e,i=m.StableID.get(n),a=h.SessionID.get(n),o=c.SDKType._get(n);e.body=JSON.stringify(Object.assign(Object.assign({},t),{statsigMetadata:Object.assign(Object.assign({},p.StatsigMetadataProvider.get()),{stableID:i,sessionID:a,sdkType:o,fallbackUrl:r})}))};function S(e,t,n,r,i){e.urlConfig.endpoint===s.Endpoint._initialize&&a.Diagnostics._markInitNetworkReqEnd(e.sdkKey,a.Diagnostics._getDiagnosticsData(t,n,r,i))}},74930:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._isDomainFailure=t.NetworkFallbackResolver=void 0;let i=n(9549),a=n(56152),o=n(99025),s=n(38614);class l{constructor(e){var t;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=null===(t=e.networkConfig)||void 0===t?void 0:t.networkOverrideFunc}setErrorBoundary(e){this._errorBoundary=e}tryBumpExpiryTime(e,t){var n;let r=null===(n=this._fallbackInfo)||void 0===n?void 0:n[t.endpoint];r&&(r.expiryTime=Date.now()+6048e5,d(e,Object.assign(Object.assign({},this._fallbackInfo),{[t.endpoint]:r})))}getActiveFallbackUrl(e,t){var n,r;if(null!=t.customUrl&&null!=t.fallbackUrls)return null;let i=this._fallbackInfo;null==i&&(i=null!==(n=function(e){let t=c(e),n=s.Storage.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch(e){return o.Log.error("Failed to parse FallbackInfo"),null}}(e))&&void 0!==n?n:{},this._fallbackInfo=i);let a=i[t.endpoint];return!a||Date.now()>(null!==(r=a.expiryTime)&&void 0!==r?r:0)||t.getChecksum()!==a.urlConfigChecksum?(delete i[t.endpoint],this._fallbackInfo=i,d(e,this._fallbackInfo),null):a.url?a.url:null}tryFetchUpdatedFallbackInfo(e,t,n,i){return r(this,void 0,void 0,function*(){var r,a;try{if(!u(n,i))return!1;let a=null==t.customUrl&&null==t.fallbackUrls?yield this._tryFetchFallbackUrlsFromNetwork(t):t.fallbackUrls,o=this._pickNewFallbackUrl(null===(r=this._fallbackInfo)||void 0===r?void 0:r[t.endpoint],a);if(!o)return!1;return this._updateFallbackInfoWithNewUrl(e,t,o),!0}catch(e){return null===(a=this._errorBoundary)||void 0===a||a.logError("tryFetchUpdatedFallbackInfo",e),!1}})}_updateFallbackInfoWithNewUrl(e,t,n){var r,i,a;let o={urlConfigChecksum:t.getChecksum(),url:n,expiryTime:Date.now()+6048e5,previous:[]},s=t.endpoint,l=null===(r=this._fallbackInfo)||void 0===r?void 0:r[s];l&&o.previous.push(...l.previous),o.previous.length>10&&(o.previous=[]);let u=null===(a=null===(i=this._fallbackInfo)||void 0===i?void 0:i[s])||void 0===a?void 0:a.url;null!=u&&o.previous.push(u),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[s]:o}),d(e,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(e){return r(this,void 0,void 0,function*(){var t;let n=this._dnsQueryCooldowns[e.endpoint];if(n&&Date.now()<n)return null;this._dnsQueryCooldowns[e.endpoint]=Date.now()+144e5;let r=[],a=yield(0,i._fetchTxtRecords)(null!==(t=this._networkOverrideFunc)&&void 0!==t?t:fetch),o=function(e){try{return new URL(e).pathname}catch(e){return null}}(e.defaultUrl);for(let t of a){if(!t.startsWith(e.endpointDnsKey+"="))continue;let n=t.split("=");if(n.length>1){let e=n[1];e.endsWith("/")&&(e=e.slice(0,-1)),r.push(`https://${e}${o}`)}}return r})}_pickNewFallbackUrl(e,t){var n;if(null==t)return null;let r=new Set(null!==(n=null==e?void 0:e.previous)&&void 0!==n?n:[]),i=null==e?void 0:e.url,a=null;for(let e of t){let t=e.endsWith("/")?e.slice(0,-1):e;if(!r.has(e)&&t!==i){a=t;break}}return a}}function u(e,t){var n;let r=null!==(n=null==e?void 0:e.toLowerCase())&&void 0!==n?n:"";return t||r.includes("uncaught exception")||r.includes("failed to fetch")||r.includes("networkerror when attempting to fetch resource")}function c(e){return`statsig.network_fallback.${(0,a._DJB2)(e)}`}function d(e,t){let n=c(e);if(!t||0===Object.keys(t).length){s.Storage.removeItem(n);return}s.Storage.setItem(n,JSON.stringify(t))}t.NetworkFallbackResolver=l,t._isDomainFailure=u},30034:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4632:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},11753:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SDKFlags=void 0;let n={};t.SDKFlags={setFlags:(e,t)=>{n[e]=t},get:(e,t)=>{var r,i;return null!==(i=null===(r=n[e])||void 0===r?void 0:r[t])&&void 0!==i&&i}}},95881:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.SDKType=void 0;let r={};t.SDKType={_get:e=>{var t;return(null!==(t=r[e])&&void 0!==t?t:"js-mono")+(null!=n?n:"")},_setClientType(e,t){r[e]=t},_setBindingType(e){n&&"-react"!==n||(n="-"+e)}}},37631:function(e,t,n){"use strict";var r=n(34155);Object.defineProperty(t,"__esModule",{value:!0}),t._getUnloadEvent=t._getCurrentPageUrlSafe=t._addDocumentEventListenerSafe=t._addWindowEventListenerSafe=t._isServerEnv=t._getDocumentSafe=t._getWindowSafe=void 0,t._getWindowSafe=()=>"undefined"!=typeof window?window:null,t._getDocumentSafe=()=>{var e;let n=(0,t._getWindowSafe)();return null!==(e=null==n?void 0:n.document)&&void 0!==e?e:null},t._isServerEnv=()=>{if(null!==(0,t._getDocumentSafe)())return!1;let e=void 0!==r&&null!=r.versions&&null!=r.versions.node;return"string"==typeof EdgeRuntime||e},t._addWindowEventListenerSafe=(e,n)=>{let r=(0,t._getWindowSafe)();"function"==typeof(null==r?void 0:r.addEventListener)&&r.addEventListener(e,n)},t._addDocumentEventListenerSafe=(e,n)=>{let r=(0,t._getDocumentSafe)();"function"==typeof(null==r?void 0:r.addEventListener)&&r.addEventListener(e,n)},t._getCurrentPageUrlSafe=()=>{var e;try{return null===(e=(0,t._getWindowSafe)())||void 0===e?void 0:e.location.href.split(/[?#]/)[0]}catch(e){return}},t._getUnloadEvent=()=>{let e=(0,t._getWindowSafe)();return e&&"onpagehide"in e?"pagehide":"beforeunload"}},27995:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigSession=t.SessionID=void 0;let r=n(375),i=n(61867),a=n(99025),o=n(38614),s=n(99382),l={};function u(e,t){return setTimeout(()=>{var t;let n=null===(t=(0,r._getStatsigGlobal)())||void 0===t?void 0:t.instance(e);n&&n.$emt({name:"session_expired"})},t)}function c(e){return`statsig.session_id.${(0,i._getStorageKey)(e)}`}t.SessionID={get:e=>t.StatsigSession.get(e).data.sessionID},t.StatsigSession={get:e=>(null==l[e]&&(l[e]=function(e){let t=function(e){let t=c(e);return(0,o._getObjectFromStorage)(t)}(e),n=Date.now();return t||(t={sessionID:(0,s.getUUID)(),startTime:n,lastUpdate:n}),{data:t,sdkKey:e}}(e)),function(e){let t=Date.now(),n=e.data,r=e.sdkKey;if(function({lastUpdate:e}){return Date.now()-e>18e5}(n)||function({startTime:e}){return Date.now()-e>144e5}(n)){n.sessionID=(0,s.getUUID)(),n.startTime=t;let e=null==__STATSIG__?void 0:__STATSIG__.instance(r);e&&e.$emt({name:"session_expired"})}n.lastUpdate=t,function(e,t){let n=c(t);try{(0,o._setObjectInStorage)(n,e)}catch(e){a.Log.warn("Failed to save SessionID")}}(n,e.sdkKey),clearTimeout(e.idleTimeoutID),clearTimeout(e.ageTimeoutID);let i=t-n.startTime;return e.idleTimeoutID=u(r,18e5),e.ageTimeoutID=u(r,144e5-i),e}(l[e])),overrideInitialSessionID:(e,t)=>{l[t]=function(e,t){let n=Date.now();return{data:{sessionID:e,startTime:n,lastUpdate:n},sdkKey:t}}(e,t)}}},61486:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._fastApproxSizeOf=void 0,t._fastApproxSizeOf=(e,n)=>{let r=0,i=Object.keys(e);for(let a=0;a<i.length;a++){let o=i[a],s=e[o];if(r+=o.length,"object"==typeof s&&null!==s?r+=(0,t._fastApproxSizeOf)(s,n)+2:r+=String(s).length+1,r>=n)break}return r}},33463:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCookieName=t.StableID=void 0;let r=n(61867),i=n(99025),a=n(37631),o=n(38614),s=n(99382),l={},u={},c={};function d(e){return`statsig.stable_id.${(0,r._getStorageKey)(e)}`}function h(e,t){let n=d(t);try{(0,o._setObjectInStorage)(n,e)}catch(e){i.Log.warn("Failed to save StableID to storage")}}function m(e,t){if(!u[t]||null==(0,a._getDocumentSafe)())return;let n=new Date;n.setFullYear(n.getFullYear()+1),document.cookie=`${f(t)}=${encodeURIComponent(e)}; expires=${n.toUTCString()}; path=/`}function f(e){return`statsig.stable_id.${(0,r._getStorageKey)(e)}`}t.StableID={cookiesEnabled:!1,randomID:Math.random().toString(36),get:e=>{if(c[e])return null;if(null!=l[e])return l[e];let t=null;return null!=(t=function(e){if(!u[e]||null==(0,a._getDocumentSafe)())return null;for(let t of document.cookie.split(";")){let[n,r]=t.trim().split("=");if(n===f(e))return decodeURIComponent(r)}return null}(e))?(l[e]=t,h(t,e)):(null==(t=function(e){let t=d(e);return(0,o._getObjectFromStorage)(t)}(e))&&(t=(0,s.getUUID)()),h(t,e),m(t,e),l[e]=t),t},setOverride:(e,t)=>{l[t]=e,h(e,t),m(e,t)},_setCookiesEnabled:(e,t)=>{u[e]=t},_setDisabled:(e,t)=>{c[e]=t}},t.getCookieName=f},44850:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClientBase=void 0,n(375);let i=n(375),a=n(68896),o=n(16156),s=n(99025),l=n(41231),u=n(37631),c=n(27995),d=n(33463),h=n(16790),m=n(38614);class f{constructor(e,t,n,r){var l,h,f,p;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};let g=this.$emt.bind(this);(null==r?void 0:r.logLevel)!=null&&(s.Log.level=r.logLevel),(null==r?void 0:r.disableStorage)&&m.Storage._setDisabled(!0),(null==r?void 0:r.initialSessionID)&&c.StatsigSession.overrideInitialSessionID(r.initialSessionID,e),(null==r?void 0:r.storageProvider)&&m.Storage._setProvider(r.storageProvider),(null==r?void 0:r.enableCookies)&&d.StableID._setCookiesEnabled(e,r.enableCookies),(null==r?void 0:r.disableStableID)&&d.StableID._setDisabled(e,!0),this._sdkKey=e,this._options=null!=r?r:{},this._memoCache={},this.overrideAdapter=null!==(l=null==r?void 0:r.overrideAdapter)&&void 0!==l?l:null,this._logger=new o.EventLogger(e,g,n,r),this._errorBoundary=new a.ErrorBoundary(e,r,g),this._errorBoundary.wrap(this),this._errorBoundary.wrap(t),this._errorBoundary.wrap(this._logger),n.setErrorBoundary(this._errorBoundary),this.dataAdapter=t,this.dataAdapter.attach(e,r,n),this.storageProvider=m.Storage,null===(p=null===(f=null===(h=this.overrideAdapter)||void 0===h?void 0:h.loadFromStorage)||void 0===f?void 0:f.call(h))||void 0===p||p.catch(e=>this._errorBoundary.logError("OA::loadFromStorage",e)),this._primeReadyRipcord(),function(e,t){var n;if((0,u._isServerEnv)())return;let r=(0,i._getStatsigGlobal)(),a=null!==(n=r.instances)&&void 0!==n?n:{};null!=a[e]&&s.Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys."),a[e]=t,r.firstInstance||(r.firstInstance=t),r.instances=a,__STATSIG__=r}(e,this)}updateRuntimeOptions(e){e.loggingEnabled?(this._options.loggingEnabled=e.loggingEnabled,this._logger.setLoggingEnabled(e.loggingEnabled)):null!=e.disableLogging&&(this._options.disableLogging=e.disableLogging,this._logger.setLoggingEnabled(e.disableLogging?"disabled":"browser-only")),null!=e.disableStorage&&(this._options.disableStorage=e.disableStorage,m.Storage._setDisabled(e.disableStorage)),null!=e.enableCookies&&(this._options.enableCookies=e.enableCookies,d.StableID._setCookiesEnabled(this._sdkKey,e.enableCookies)),e.logEventCompressionMode?this._logger.setLogEventCompressionMode(e.logEventCompressionMode):e.disableCompression&&this._logger.setLogEventCompressionMode(h.LogEventCompressionMode.Disabled)}flush(){return this._logger.flush()}shutdown(){return r(this,void 0,void 0,function*(){this.$emt({name:"pre_shutdown"}),this._setStatus("Uninitialized",null),this._initializePromise=null,yield this._logger.stop()})}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){if(this._listeners[e]){let n=this._listeners[e].indexOf(t);-1!==n&&this._listeners[e].splice(n,1)}}$on(e,t){t.__isInternal=!0,this.on(e,t)}$emt(e){var t;let n=t=>{try{t(e)}catch(n){if(!0===t.__isInternal){this._errorBoundary.logError(`__emit:${e.name}`,n);return}s.Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",e)}};this._listeners[e.name]&&this._listeners[e.name].forEach(e=>n(e)),null===(t=this._listeners["*"])||void 0===t||t.forEach(n)}_setStatus(e,t){this.loadingStatus=e,this._memoCache={},this.$emt({name:"values_updated",status:e,values:t})}_enqueueExposure(e,t,n){if((null==n?void 0:n.disableExposureLog)===!0){this._logger.incrementNonExposureCount(e);return}this._logger.enqueue(t)}_memoize(e,t){return(n,r)=>{if(this._options.disableEvaluationMemoization)return t(n,r);let i=(0,l.createMemoKey)(e,n,r);return i?(i in this._memoCache||(Object.keys(this._memoCache).length>=3e3&&(this._memoCache={}),this._memoCache[i]=t(n,r)),this._memoCache[i]):t(n,r)}}}t.StatsigClientBase=f},86478:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorTag=void 0,t.ErrorTag={NetworkError:"NetworkError"}},80712:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataAdapterCachePrefix=void 0,t.DataAdapterCachePrefix="statsig.cached"},19817:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._createLayerParameterExposure=t._createConfigExposure=t._mapExposures=t._createGateExposure=t._isExposureEvent=void 0;let n="statsig::config_exposure",r="statsig::gate_exposure",i="statsig::layer_exposure",a=(e,t,n,r,i)=>(n.bootstrapMetadata&&(r.bootstrapMetadata=n.bootstrapMetadata),{eventName:e,user:t,value:null,metadata:s(n,r),secondaryExposures:i,time:Date.now()});function o(e,t){return e.map(e=>"string"==typeof e?(null!=t?t:{})[e]:e).filter(e=>null!=e)}t._isExposureEvent=({eventName:e})=>e===r||e===n||e===i,t._createGateExposure=(e,t,n)=>{var i,s,l;let u={gate:t.name,gateValue:String(t.value),ruleID:t.ruleID};return(null===(i=t.__evaluation)||void 0===i?void 0:i.version)!=null&&(u.configVersion=t.__evaluation.version),a(r,e,t.details,u,o(null!==(l=null===(s=t.__evaluation)||void 0===s?void 0:s.secondary_exposures)&&void 0!==l?l:[],n))},t._mapExposures=o,t._createConfigExposure=(e,t,r)=>{var i,s,l,u;let c={config:t.name,ruleID:t.ruleID};return(null===(i=t.__evaluation)||void 0===i?void 0:i.version)!=null&&(c.configVersion=t.__evaluation.version),(null===(s=t.__evaluation)||void 0===s?void 0:s.passed)!=null&&(c.rulePassed=String(t.__evaluation.passed)),a(n,e,t.details,c,o(null!==(u=null===(l=t.__evaluation)||void 0===l?void 0:l.secondary_exposures)&&void 0!==u?u:[],r))},t._createLayerParameterExposure=(e,t,n,r)=>{var s,l,u,c,d,h,m;let f=t.__evaluation,p=(null===(s=null==f?void 0:f.explicit_parameters)||void 0===s?void 0:s.includes(n))===!0,g="",v=null!==(l=null==f?void 0:f.undelegated_secondary_exposures)&&void 0!==l?l:[];p&&(g=null!==(u=f.allocated_experiment_name)&&void 0!==u?u:"",v=null!==(c=f.secondary_exposures)&&void 0!==c?c:[]);let b=null===(d=t.__evaluation)||void 0===d?void 0:d.parameter_rule_ids,_={config:t.name,parameterName:n,ruleID:null!==(h=null==b?void 0:b[n])&&void 0!==h?h:t.ruleID,allocatedExperiment:g,isExplicitParameter:String(p)};return(null===(m=t.__evaluation)||void 0===m?void 0:m.version)!=null&&(_.configVersion=t.__evaluation.version),a(i,e,t.details,_,o(v,r))};let s=(e,t)=>(t.reason=e.reason,e.lcut&&(t.lcut=String(e.lcut)),e.receivedAt&&(t.receivedAt=String(e.receivedAt)),t)},56801:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigMetadataProvider=t.SDK_VERSION=void 0,t.SDK_VERSION="3.24.4";let n={sdkVersion:t.SDK_VERSION,sdkType:"js-mono"};t.StatsigMetadataProvider={get:()=>n,add:e=>{n=Object.assign(Object.assign({},n),e)}}},16790:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingEnabledOption=t.LogEventCompressionMode=void 0,t.LogEventCompressionMode={Disabled:"d",Enabled:"e",Forced:"f"},t.LoggingEnabledOption={disabled:"disabled",browserOnly:"browser-only",always:"always"}},11497:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},78431:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._makeTypedGet=t._mergeOverride=t._makeLayer=t._makeExperiment=t._makeDynamicConfig=t._makeFeatureGate=void 0;let r=n(99025),i=n(38687);function a(e,t,n,r){var i;return{name:e,details:t,ruleID:null!==(i=null==n?void 0:n.rule_id)&&void 0!==i?i:"",__evaluation:n,value:r}}function o(e,t,n){var r;let i=null!==(r=null==n?void 0:n.value)&&void 0!==r?r:{};return Object.assign(Object.assign({},a(e,t,n,i)),{get:s(e,null==n?void 0:n.value)})}function s(e,t,n){return(a,o)=>{var s;let l=null!==(s=null==t?void 0:t[a])&&void 0!==s?s:null;return null==l?null!=o?o:null:null==o||(0,i._isTypeMatch)(l,o)?(null==n||n(a),l):(r.Log.warn(`Parameter type mismatch. '${e}.${a}' was found to be type '${typeof l}' but fallback/return type is '${typeof o}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),null!=o?o:null)}}t._makeFeatureGate=function(e,t,n){var r;return Object.assign(Object.assign({},a(e,t,n,(null==n?void 0:n.value)===!0)),{idType:null!==(r=null==n?void 0:n.id_type)&&void 0!==r?r:null})},t._makeDynamicConfig=o,t._makeExperiment=function(e,t,n){var r;return Object.assign(Object.assign({},o(e,t,n)),{groupName:null!==(r=null==n?void 0:n.group_name)&&void 0!==r?r:null})},t._makeLayer=function(e,t,n,r){var i,o;return Object.assign(Object.assign({},a(e,t,n,void 0)),{get:s(e,null==n?void 0:n.value,r),groupName:null!==(i=null==n?void 0:n.group_name)&&void 0!==i?i:null,__value:null!==(o=null==n?void 0:n.value)&&void 0!==o?o:{}})},t._mergeOverride=function(e,t,n,r){return Object.assign(Object.assign(Object.assign({},e),t),{get:s(e.name,n,r)})},t._makeTypedGet=s},87963:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},45051:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_DETAIL_ERROR_MESSAGES=t.createUpdateDetails=void 0,t.createUpdateDetails=(e,t,n,r,i,a)=>({duration:n,source:t,success:e,error:r,sourceUrl:i,warnings:a}),t.UPDATE_DETAIL_ERROR_MESSAGES={NO_NETWORK_DATA:"No data was returned from the network. This may be due to a network timeout if a timeout value was specified in the options or ad blocker error."}},89063:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getFullUserHash=t._normalizeUser=void 0;let r=n(56152),i=n(99025);t._normalizeUser=function(e,t,n){try{let r=JSON.parse(JSON.stringify(e));return null!=t&&null!=t.environment?r.statsigEnvironment=t.environment:null!=n&&(r.statsigEnvironment={tier:n}),r}catch(e){return i.Log.error("Failed to JSON.stringify user"),{statsigEnvironment:void 0}}},t._getFullUserHash=function(e){return e?(0,r._DJB2Object)(e):null}},38614:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._setObjectInStorage=t._getObjectFromStorage=t.Storage=void 0;let r=n(99025),i=n(37631),a={},o={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:e=>a[e]?a[e]:null,setItem:(e,t)=>{a[e]=t},removeItem:e=>{delete a[e]},getAllKeys:()=>Object.keys(a)},s=null;try{let e=(0,i._getWindowSafe)();e&&e.localStorage&&"function"==typeof e.localStorage.getItem&&(s={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:t=>e.localStorage.getItem(t),setItem:(t,n)=>e.localStorage.setItem(t,n),removeItem:t=>e.localStorage.removeItem(t),getAllKeys:()=>Object.keys(e.localStorage)})}catch(e){r.Log.warn("Failed to setup localStorageProvider.")}let l=null!=s?s:o,u=l;function c(e){try{return e()}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return t.Storage._setProvider(o),null;if(e instanceof Error&&"QuotaExceededError"===e.name){let n=t.Storage.getAllKeys().filter(e=>e.startsWith("statsig."));e.message=`${e.message}. Statsig Keys: ${n.length}`}throw e}}t.Storage={isReady:()=>u.isReady(),isReadyResolver:()=>u.isReadyResolver(),getProviderName:()=>u.getProviderName(),getItem:e=>c(()=>u.getItem(e)),setItem:(e,t)=>c(()=>u.setItem(e,t)),removeItem:e=>u.removeItem(e),getAllKeys:()=>u.getAllKeys(),_setProvider:e=>{l=e,u=e},_setDisabled:e=>{u=e?o:l}},t._getObjectFromStorage=function(e){let n=t.Storage.getItem(e);return JSON.parse(null!=n?n:"null")},t._setObjectInStorage=function(e,n){t.Storage.setItem(e,JSON.stringify(n))}},53111:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._typedJsonParse=void 0;let r=n(99025);t._typedJsonParse=function(e,t,n){try{let n=JSON.parse(e);if(n&&"object"==typeof n&&t in n)return n}catch(e){}return r.Log.error(`Failed to parse ${n}`),null}},38687:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._isTypeMatch=t._typeOf=void 0,t._typeOf=function(e){return Array.isArray(e)?"array":typeof e},t._isTypeMatch=function(e,t){let n=e=>Array.isArray(e)?"array":null===e?"null":typeof e;return n(e)===n(t)}},99382:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUUID=void 0,t.getUUID=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let e=new Date().getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0,n="89ab"[Math.floor(4*Math.random())];return`xxxxxxxx-xxxx-4xxx-${n}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,n=>{let r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:7&r|8).toString(16)})}},40801:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlConfiguration=void 0;let r=n(56152),i=n(33975),a={[i.Endpoint._initialize]:"i",[i.Endpoint._rgstr]:"e",[i.Endpoint._download_config_specs]:"d"};class o{constructor(e,t,n,r){this.customUrl=null,this.fallbackUrls=null,this.endpoint=e,this.endpointDnsKey=a[e],t&&(this.customUrl=t),!t&&n&&(this.customUrl=n.endsWith("/")?`${n}${e}`:`${n}/${e}`),r&&(this.fallbackUrls=r);let o=i.NetworkDefault[e];this.defaultUrl=`${o}/${e}`}getUrl(){var e;return null!==(e=this.customUrl)&&void 0!==e?e:this.defaultUrl}getChecksum(){var e;let t=(null!==(e=this.fallbackUrls)&&void 0!==e?e:[]).sort().join(",");return(0,r._DJB2)(this.customUrl+t)}}t.UrlConfiguration=o},65260:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._notifyVisibilityChanged=t._subscribeToVisiblityChanged=t._isUnloading=t._isCurrentlyVisible=void 0;let r=n(37631),i="foreground",a="background",o=[],s=i,l=!1;t._isCurrentlyVisible=()=>s===i,t._isUnloading=()=>l,t._subscribeToVisiblityChanged=e=>{o.unshift(e)},t._notifyVisibilityChanged=e=>{e!==s&&(s=e,o.forEach(t=>t(e)))},(0,r._addWindowEventListenerSafe)("focus",()=>{l=!1,(0,t._notifyVisibilityChanged)(i)}),(0,r._addWindowEventListenerSafe)("blur",()=>(0,t._notifyVisibilityChanged)(a)),(0,r._addDocumentEventListenerSafe)("visibilitychange",()=>{(0,t._notifyVisibilityChanged)("visible"===document.visibilityState?i:a)}),(0,r._addWindowEventListenerSafe)((0,r._getUnloadEvent)(),()=>{l=!0,(0,t._notifyVisibilityChanged)(a)})},13328:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Storage=t.Log=t.EventLogger=t.Diagnostics=void 0,n(375);let a=n(375),o=n(60642);Object.defineProperty(t,"Diagnostics",{enumerable:!0,get:function(){return o.Diagnostics}});let s=n(16156);Object.defineProperty(t,"EventLogger",{enumerable:!0,get:function(){return s.EventLogger}});let l=n(99025);Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return l.Log}});let u=n(56801),c=n(38614);Object.defineProperty(t,"Storage",{enumerable:!0,get:function(){return c.Storage}}),i(n(375),t),i(n(61867),t),i(n(394),t),i(n(53183),t),i(n(60642),t),i(n(36831),t),i(n(68896),t),i(n(80624),t),i(n(21335),t),i(n(56152),t),i(n(76724),t),i(n(99025),t),i(n(41231),t),i(n(33975),t),i(n(3284),t),i(n(30034),t),i(n(4632),t),i(n(37631),t),i(n(95881),t),i(n(27995),t),i(n(61486),t),i(n(33463),t),i(n(44850),t),i(n(86478),t),i(n(80712),t),i(n(19817),t),i(n(56801),t),i(n(16790),t),i(n(11497),t),i(n(78431),t),i(n(87963),t),i(n(89063),t),i(n(38614),t),i(n(53111),t),i(n(38687),t),i(n(40801),t),i(n(99382),t),i(n(65260),t),i(n(45051),t),i(n(11753),t),Object.assign((0,a._getStatsigGlobal)(),{Log:l.Log,SDK_VERSION:u.SDK_VERSION})},33815:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._resolveDeltasResponse=void 0;let r=n(13328);function i(e,t){null==e||e.forEach(e=>{delete t[e]})}t._resolveDeltasResponse=function(e,t){var n;let a=(0,r._typedJsonParse)(t,"checksum","DeltasEvaluationResponse");if(!a)return{hadBadDeltaChecksum:!0};let o=(i((n=Object.assign(Object.assign(Object.assign({},e),a),{feature_gates:Object.assign(Object.assign({},e.feature_gates),a.feature_gates),layer_configs:Object.assign(Object.assign({},e.layer_configs),a.layer_configs),dynamic_configs:Object.assign(Object.assign({},e.dynamic_configs),a.dynamic_configs)})).deleted_gates,n.feature_gates),delete n.deleted_gates,i(n.deleted_configs,n.dynamic_configs),delete n.deleted_configs,i(n.deleted_layers,n.layer_configs),delete n.deleted_layers,n),s=(0,r._DJB2Object)({feature_gates:o.feature_gates,dynamic_configs:o.dynamic_configs,layer_configs:o.layer_configs},2);return s!==a.checksumV2?{hadBadDeltaChecksum:!0,badChecksum:s,badMergedConfigs:o,badFullResponse:a.deltas_full_response}:JSON.stringify(o)}},44228:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(13328);class i{constructor(e){this._sdkKey=e,this._rawValues=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings=new Set}reset(){this._values=null,this._rawValues=null,this._source="Loading",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings.clear()}finalize(){this._values||(this._source="NoValues")}getValues(){return this._rawValues?(0,r._typedJsonParse)(this._rawValues,"has_updates","EvaluationStoreValues"):null}setValues(e,t){var n;if(!e)return!1;let i=(0,r._typedJsonParse)(e.data,"has_updates","EvaluationResponse");return null!=i&&(this._source=e.source,(null==i?void 0:i.has_updates)!==!0||(this._rawValues=e.data,this._lcut=i.time,this._receivedAt=e.receivedAt,this._values=i,this._bootstrapMetadata=this._extractBootstrapMetadata(e.source,i),e.source&&i.user&&this._setWarningState(t,i),r.SDKFlags.setFlags(this._sdkKey,null!==(n=i.sdk_flags)&&void 0!==n?n:{}),!0))}getWarnings(){if(0!==this._warnings.size)return Array.from(this._warnings)}getGate(e){var t;return this._getDetailedStoreResult(null===(t=this._values)||void 0===t?void 0:t.feature_gates,e)}getConfig(e){var t;return this._getDetailedStoreResult(null===(t=this._values)||void 0===t?void 0:t.dynamic_configs,e)}getConfigList(){var e;return(null===(e=this._values)||void 0===e?void 0:e.dynamic_configs)?Object.values(this._values.dynamic_configs).map(e=>e.name):[]}getLayer(e){var t;return this._getDetailedStoreResult(null===(t=this._values)||void 0===t?void 0:t.layer_configs,e)}getParamStore(e){var t;return this._getDetailedStoreResult(null===(t=this._values)||void 0===t?void 0:t.param_stores,e)}getSource(){return this._source}getExposureMapping(){var e;return null===(e=this._values)||void 0===e?void 0:e.exposures}_extractBootstrapMetadata(e,t){if("Bootstrap"!==e)return null;let n={};return t.user&&(n.user=t.user),t.sdkInfo&&(n.generatorSDKInfo=t.sdkInfo),n.lcut=t.time,n}_getDetailedStoreResult(e,t){let n=null;return e&&(n=e[t]?e[t]:e[(0,r._DJB2)(t)]),{result:n,details:this._getDetails(null==n)}}_setWarningState(e,t){var n,i;let a=r.StableID.get(this._sdkKey);if((null===(n=e.customIDs)||void 0===n?void 0:n.stableID)!==a&&((null===(i=e.customIDs)||void 0===i?void 0:i.stableID)||a)){this._warnings.add("StableIDMismatch");return}if("user"in t){let n=t.user,i=Object.assign(Object.assign({},e),{analyticsOnlyMetadata:void 0,privateAttributes:void 0});(0,r._getFullUserHash)(i)!==(0,r._getFullUserHash)(n)&&this._warnings.add("PartialUserMatch")}}getCurrentSourceDetails(){if("Uninitialized"===this._source||"NoValues"===this._source)return{reason:this._source};let e={reason:this._source,lcut:this._lcut,receivedAt:this._receivedAt};return this._warnings.size>0&&(e.warnings=Array.from(this._warnings)),e}_getDetails(e){var t,n;let r=this.getCurrentSourceDetails(),i=r.reason,a=null!==(t=r.warnings)&&void 0!==t?t:[];"Bootstrap"===this._source&&a.length>0&&(i+=a[0]),"Uninitialized"!==i&&"NoValues"!==i&&(i=`${i}:${e?"Unrecognized":"Recognized"}`);let o="Bootstrap"===this._source&&null!==(n=this._bootstrapMetadata)&&void 0!==n?n:void 0;return o&&(r.bootstrapMetadata=o),Object.assign(Object.assign({},r),{reason:i})}}t.default=i},70226:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});let i=n(13328),a=n(33815);class o extends i.NetworkCore{constructor(e,t){super(e,t);let n=null==e?void 0:e.networkConfig;this._option=e,this._initializeUrlConfig=new i.UrlConfiguration(i.Endpoint._initialize,null==n?void 0:n.initializeUrl,null==n?void 0:n.api,null==n?void 0:n.initializeFallbackUrls)}fetchEvaluations(e,t,n,a,o){return r(this,void 0,void 0,function*(){var r,s,l,u,c,d;let h=t?(0,i._typedJsonParse)(t,"has_updates","InitializeResponse"):null,m={user:a,hash:null!==(l=null===(s=null===(r=this._option)||void 0===r?void 0:r.networkConfig)||void 0===s?void 0:s.initializeHashAlgorithm)&&void 0!==l?l:"djb2",deltasResponseRequested:!1,full_checksum:null};if(null==h?void 0:h.has_updates){let e=(null==h?void 0:h.hash_used)!==(null!==(d=null===(c=null===(u=this._option)||void 0===u?void 0:u.networkConfig)||void 0===c?void 0:c.initializeHashAlgorithm)&&void 0!==d?d:"djb2");m=Object.assign(Object.assign({},m),{sinceTime:o&&!e?h.time:0,previousDerivedFields:"derived_fields"in h&&o?h.derived_fields:{},deltasResponseRequested:!0,full_checksum:h.full_checksum,partialUserMatchSinceTime:e?0:h.time})}return this._fetchEvaluations(e,h,m,n)})}_fetchEvaluations(e,t,n,i){return r(this,void 0,void 0,function*(){var r,o;let s=yield this.post({sdkKey:e,urlConfig:this._initializeUrlConfig,data:n,retries:2,isStatsigEncodable:!0,priority:i});if((null==s?void 0:s.code)===204)return'{"has_updates": false}';if((null==s?void 0:s.code)!==200)return null!==(r=null==s?void 0:s.body)&&void 0!==r?r:null;if((null==t?void 0:t.has_updates)!==!0||(null===(o=s.body)||void 0===o?void 0:o.includes('"is_delta":true'))!==!0||!0!==n.deltasResponseRequested)return s.body;let l=(0,a._resolveDeltasResponse)(t,s.body);return"string"==typeof l?l:this._fetchEvaluations(e,t,Object.assign(Object.assign(Object.assign({},n),l),{deltasResponseRequested:!1}),i)})}}t.default=o},50866:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._makeParamStoreGetter=void 0;let r=n(13328),i={disableExposureLog:!0};function a(e){return null==e||!1===e.disableExposureLog}function o(e,t){return null!=t&&!(0,r._isTypeMatch)(e,t)}t._makeParamStoreGetter=function(e,t,n){return(s,l)=>{if(null==t)return l;let u=t[s];if(null==u||null!=l&&(0,r._typeOf)(l)!==u.param_type)return l;switch(u.ref_type){case"static":return u.value;case"gate":return e.getFeatureGate(u.gate_name,a(n)?void 0:i).value?u.pass_value:u.fail_value;case"dynamic_config":return function(e,t,n,r){let s=e.getDynamicConfig(t.config_name,a(r)?void 0:i).get(t.param_name);return o(s,n)?n:s}(e,u,l,n);case"experiment":return function(e,t,n,r){let s=e.getExperiment(t.experiment_name,a(r)?void 0:i).get(t.param_name);return o(s,n)?n:s}(e,u,l,n);case"layer":return function(e,t,n,r){let s=e.getLayer(t.layer_name,a(r)?void 0:i).get(t.param_name);return o(s,n)?n:s}(e,u,l,n);default:return l}}}},74620:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});let i=n(13328),a=n(44228),o=n(70226),s=n(50866),l=n(95231);class u extends i.StatsigClientBase{static instance(e){let t=(0,i._getStatsigGlobal)().instance(e);return t instanceof u?t:(i.Log.warn((0,i._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new u(null!=e?e:"",{}))}constructor(e,t,n=null){var r,s;i.SDKType._setClientType(e,"javascript-client");let u=new o.default(n,e=>{this.$emt(e)});for(let o of(super(e,null!==(r=null==n?void 0:n.dataAdapter)&&void 0!==r?r:new l.StatsigEvaluationsDataAdapter,u,n),this._possibleFirstTouchMetadata={},this.getFeatureGate=this._memoize(i.MemoPrefix._gate,this._getFeatureGateImpl.bind(this)),this.getDynamicConfig=this._memoize(i.MemoPrefix._dynamicConfig,this._getDynamicConfigImpl.bind(this)),this.getExperiment=this._memoize(i.MemoPrefix._experiment,this._getExperimentImpl.bind(this)),this.getConfigList=this._memoize(i.MemoPrefix._configList,this._getConfigListImpl.bind(this)),this.getLayer=this._memoize(i.MemoPrefix._layer,this._getLayerImpl.bind(this)),this.getParameterStore=this._memoize(i.MemoPrefix._paramStore,this._getParameterStoreImpl.bind(this)),this._store=new a.default(e),this._network=u,this._user=this._configureUser(t,n),this._sdkInstanceID=(0,i.getUUID)(),null!==(s=null==n?void 0:n.plugins)&&void 0!==s?s:[]))o.bind(this)}initializeSync(e){var t;return"Uninitialized"!==this.loadingStatus?(0,i.createUpdateDetails)(!0,this._store.getSource(),-1,null,null,["MultipleInitializations",...null!==(t=this._store.getWarnings())&&void 0!==t?t:[]]):(this._logger.start(),this.updateUserSync(this._user,e))}initializeAsync(e){return r(this,void 0,void 0,function*(){return this._initializePromise||(this._initializePromise=this._initializeAsyncImpl(e)),this._initializePromise})}updateUserSync(e,t){let n=performance.now();try{return this._updateUserSyncImpl(e,t,n)}catch(t){let e=t instanceof Error?t:Error(String(t));return this._createErrorUpdateDetails(e,n)}}_updateUserSyncImpl(e,t,n){var r;let a=[...null!==(r=this._store.getWarnings())&&void 0!==r?r:[]];this._resetForUser(e);let o=this.dataAdapter.getDataSync(this._user);null==o&&a.push("NoCachedValues"),this._store.setValues(o,this._user),this._finalizeUpdate(o);let s=null==t?void 0:t.disableBackgroundCacheRefresh;return!0===s||null==s&&(null==o?void 0:o.source)==="Bootstrap"||this._runPostUpdate(null!=o?o:null,this._user),(0,i.createUpdateDetails)(!0,this._store.getSource(),performance.now()-n,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),a)}updateUserAsync(e,t){return r(this,void 0,void 0,function*(){let n=performance.now();try{return yield this._updateUserAsyncImpl(e,t)}catch(t){let e=t instanceof Error?t:Error(String(t));return this._createErrorUpdateDetails(e,n)}})}_updateUserAsyncImpl(e,t){return r(this,void 0,void 0,function*(){this._resetForUser(e);let n=this._user;i.Diagnostics._markInitOverallStart(this._sdkKey);let r=this.dataAdapter.getDataSync(n);if(this._store.setValues(r,this._user),this._setStatus("Loading",r),r=yield this.dataAdapter.getDataAsync(r,n,t),n!==this._user)return(0,i.createUpdateDetails)(!1,this._store.getSource(),-1,Error("User changed during update"),this._network.getLastUsedInitUrlAndReset());let a=!1;null!=r&&(i.Diagnostics._markInitProcessStart(this._sdkKey),a=this._store.setValues(r,this._user),i.Diagnostics._markInitProcessEnd(this._sdkKey,{success:a})),this._finalizeUpdate(r),a||(this._errorBoundary.attachErrorIfNoneExists(i.UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"})),i.Diagnostics._markInitOverallEnd(this._sdkKey,a,this._store.getCurrentSourceDetails());let o=i.Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options);return(0,i.createUpdateDetails)(a,this._store.getSource(),o,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),this._store.getWarnings())})}getContext(){return{sdkKey:this._sdkKey,options:this._options,values:this._store.getValues(),user:JSON.parse(JSON.stringify(this._user)),errorBoundary:this._errorBoundary,session:i.StatsigSession.get(this._sdkKey),stableID:i.StableID.get(this._sdkKey),sdkInstanceID:this._sdkInstanceID}}checkGate(e,t){return this.getFeatureGate(e,t).value}logEvent(e,t,n){let r="string"==typeof e?{eventName:e,value:t,metadata:n}:e;this.$emt({name:"log_event_called",event:r}),this._logger.enqueue(Object.assign(Object.assign({},r),{user:this._user,time:Date.now()}))}updateUserWithAnalyticsOnlyMetadata(e){this._user=this._configureUser(Object.assign(Object.assign({},this._user),{analyticsOnlyMetadata:e}),this._options)}_primeReadyRipcord(){this.$on("error",()=>{"Loading"===this.loadingStatus&&this._finalizeUpdate(null)})}_initializeAsyncImpl(e){return r(this,void 0,void 0,function*(){return i.Storage.isReady()||(yield i.Storage.isReadyResolver()),this._logger.start(),this.updateUserAsync(this._user,e)})}_createErrorUpdateDetails(e,t){var n;return(0,i.createUpdateDetails)(!1,this._store.getSource(),performance.now()-t,e,null,[...null!==(n=this._store.getWarnings())&&void 0!==n?n:[]])}_finalizeUpdate(e){this._store.finalize(),this._setStatus("Ready",e)}_runPostUpdate(e,t){this.dataAdapter.getDataAsync(e,t,{priority:"low"}).catch(e=>{i.Log.error("An error occurred after update.",e)})}_resetForUser(e){this._logger.reset(),this._store.reset(),this._user=this._configureUser(e,this._options)}_configureUser(e,t){var n;let r=(0,i._normalizeUser)(e,t),a=null===(n=r.customIDs)||void 0===n?void 0:n.stableID;return a&&i.StableID.setOverride(a,this._sdkKey),Object.keys(this._possibleFirstTouchMetadata).length>0&&(r.analyticsOnlyMetadata=Object.assign(Object.assign({},r.analyticsOnlyMetadata),this._possibleFirstTouchMetadata)),r}_getFeatureGateImpl(e,t){var n,r;let{result:a,details:o}=this._store.getGate(e),s=(0,i._makeFeatureGate)(e,o,a),l=null===(r=null===(n=this.overrideAdapter)||void 0===n?void 0:n.getGateOverride)||void 0===r?void 0:r.call(n,s,this._user,t),u=null!=l?l:s;return this._enqueueExposure(e,(0,i._createGateExposure)(this._user,u,this._store.getExposureMapping()),t),this.$emt({name:"gate_evaluation",gate:u}),u}_getDynamicConfigImpl(e,t){var n,r;let{result:a,details:o}=this._store.getConfig(e),s=(0,i._makeDynamicConfig)(e,o,a),l=null===(r=null===(n=this.overrideAdapter)||void 0===n?void 0:n.getDynamicConfigOverride)||void 0===r?void 0:r.call(n,s,this._user,t),u=null!=l?l:s;return this._enqueueExposure(e,(0,i._createConfigExposure)(this._user,u,this._store.getExposureMapping()),t),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:u}),u}_getExperimentImpl(e,t){var n,r,a,o;let{result:s,details:l}=this._store.getConfig(e),u=(0,i._makeExperiment)(e,l,s);null!=u.__evaluation&&(u.__evaluation.secondary_exposures=(0,i._mapExposures)(null!==(r=null===(n=u.__evaluation)||void 0===n?void 0:n.secondary_exposures)&&void 0!==r?r:[],this._store.getExposureMapping()));let c=null===(o=null===(a=this.overrideAdapter)||void 0===a?void 0:a.getExperimentOverride)||void 0===o?void 0:o.call(a,u,this._user,t),d=null!=c?c:u;return this._enqueueExposure(e,(0,i._createConfigExposure)(this._user,d,this._store.getExposureMapping()),t),this.$emt({name:"experiment_evaluation",experiment:d}),d}_getConfigListImpl(){return this._store.getConfigList()}_getLayerImpl(e,t){var n,r,a;let{result:o,details:s}=this._store.getLayer(e),l=(0,i._makeLayer)(e,s,o),u=null===(r=null===(n=this.overrideAdapter)||void 0===n?void 0:n.getLayerOverride)||void 0===r?void 0:r.call(n,l,this._user,t);(null==t?void 0:t.disableExposureLog)&&this._logger.incrementNonExposureCount(e);let c=(0,i._mergeOverride)(l,u,null!==(a=null==u?void 0:u.__value)&&void 0!==a?a:l.__value,n=>{null!=t&&t.disableExposureLog||this._enqueueExposure(e,(0,i._createLayerParameterExposure)(this._user,c,n,this._store.getExposureMapping()),t)});return this.$emt({name:"layer_evaluation",layer:c}),c}_getParameterStoreImpl(e,t){var n,r;let{result:i,details:a}=this._store.getParamStore(e);this._logger.incrementNonExposureCount(e);let o={name:e,details:a,__configuration:i,get:(0,s._makeParamStoreGetter)(this,i,t)},l=null===(r=null===(n=this.overrideAdapter)||void 0===n?void 0:n.getParamStoreOverride)||void 0===r?void 0:r.call(n,o,t);return null!=l&&(o.__configuration=l.config,o.details=l.details,o.get=(0,s._makeParamStoreGetter)(this,l.config,t)),o}}t.default=u},95231:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigEvaluationsDataAdapter=void 0;let i=n(13328),a=n(70226);class o extends i.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this._network=null,this._options=null}attach(e,t,n){super.attach(e,t,n),null!==n&&n instanceof a.default?this._network=n:this._network=new a.default(null!=t?t:{})}getDataAsync(e,t,n){return this._getDataAsyncImpl(e,(0,i._normalizeUser)(t,this._options),n)}prefetchData(e,t){return this._prefetchDataImpl(e,t)}setData(e){let t=(0,i._typedJsonParse)(e,"has_updates","data");t&&"user"in t?super.setData(e,t.user):i.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(e,t){super.setData(e,t)}_fetchFromNetwork(e,t,n,i){return r(this,void 0,void 0,function*(){var r;let a=yield null===(r=this._network)||void 0===r?void 0:r.fetchEvaluations(this._getSdkKey(),e,null==n?void 0:n.priority,t,i);return null!=a?a:null})}_getCacheKey(e){var t;let n=(0,i._getStorageKey)(this._getSdkKey(),e,null===(t=this._options)||void 0===t?void 0:t.customUserCacheKeyFunc);return`${i.DataAdapterCachePrefix}.${this._cacheSuffix}.${n}`}_isCachedResultValidFor204(e,t){return null!=e.fullUserHash&&e.fullUserHash===(0,i._getFullUserHash)(t)}}t.StatsigEvaluationsDataAdapter=o},90250:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClient=void 0;let a=n(13328),o=n(74620);t.StatsigClient=o.default,i(n(13328),t);let s=Object.assign((0,a._getStatsigGlobal)(),{StatsigClient:o.default});t.default=s},87276:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNoopClient=t.NoopEvaluationsClient=void 0;let r=n(13328),i={success:!1,error:Error("NoClient"),duration:0,source:"Uninitialized",sourceUrl:null},a=()=>{},o=()=>i,s=()=>Promise.resolve(),l=()=>Promise.resolve(i),u={reason:"Error:NoClient"},c=e=>(...t)=>{let n="string"==typeof t[0]?t[0]:t[1];switch(e){case"gate":return(0,r._makeFeatureGate)(n,u,null);case"config":return(0,r._makeDynamicConfig)(n,u,null);case"layer":return(0,r._makeLayer)(n,u,null);case"param_store":return{name:n}}},d={sdkKey:"",options:{},values:null,user:{userID:""},errorBoundary:{},session:{data:{sessionID:"",startTime:0,lastUpdate:0},sdkKey:""},stableID:"",storageProvider:r.Storage,sdkInstanceID:""},h={isNoop:!0,loadingStatus:"Uninitialized",initializeSync:o,initializeAsync:l,shutdown:s,flush:s,updateRuntimeOptions:a,updateUserSync:o,updateUserAsync:l,getContext:()=>Object.assign({},d),checkGate:()=>!1,getFeatureGate:c("gate"),getDynamicConfig:c("config"),getExperiment:c("config"),getLayer:c("layer"),getParameterStore:c("param_store"),logEvent:a,on:a,off:a,$on:a,$emt:a,dataAdapter:{attach:a,getDataSync:()=>null,getDataAsync:()=>Promise.resolve(null),setData:a,setDataLegacy:a,prefetchData:s}};t.NoopEvaluationsClient=h,t.isNoopClient=function(e){return"isNoop"in e}},77481:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(67294),i=n(87276);t.default=(0,r.createContext)({renderVersion:0,client:i.NoopEvaluationsClient,isLoading:!0})},59793:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigProvider=void 0;let r=n(85893),i=n(67294),a=n(13328),o=n(77481),s=n(96392);function l(e){let[t,n]=(0,i.useState)(0),a=(0,s.useClientAsyncInit)(e.sdkKey,e.user,e.options).client,[l,u]=(0,i.useState)(!d(a));c(a,n,u);let h=(0,i.useMemo)(()=>({renderVersion:t,client:a,isLoading:l}),[t,a,l]);return(0,r.jsx)(o.default.Provider,{value:h,children:null!=e.loadingComponent&&h.isLoading?e.loadingComponent:e.children})}function u(e){let[t,n]=(0,i.useState)(0),a=e.client,[s,l]=(0,i.useState)(!d(a));c(a,n,l);let u=(0,i.useMemo)(()=>({renderVersion:t,client:a,isLoading:s}),[t,a,s]);return(0,r.jsx)(o.default.Provider,{value:u,children:null!=e.loadingComponent&&u.isLoading?e.loadingComponent:e.children})}function c(e,t,n){(0,i.useEffect)(()=>{let r=()=>{t(e=>e+1),n(!d(e))};return a.SDKType._setBindingType("react"),e.$on("values_updated",r),()=>{e.flush().catch(e=>a.Log.error("An error occurred during flush",e)),e.off("values_updated",r)}},[e,t])}function d(e){return"isNoop"in e||"Ready"===e.loadingStatus}t.StatsigProvider=function(e){return"client"in e?(("sdkKey"in e||"user"in e)&&a.Log.warn("Both client and configuration props (sdkKey, user) were provided to StatsigProvider. The client prop will be used and the configuration props will be ignored."),(0,r.jsx)(u,Object.assign({},e))):(0,r.jsx)(l,Object.assign({},e))}},89211:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigUser=t.useStatsigInternalClientFactoryBootstrap=t.useStatsigInternalClientFactoryAsync=t.useStatsigClient=t.useParameterStore=t.useLayer=t.useGateValue=t.useFeatureGate=t.useExperiment=t.useDynamicConfig=t.useClientBootstrapInit=t.useClientAsyncInit=t.StatsigProvider=t.StatsigContext=void 0;let a=n(13328),o=n(77481);t.StatsigContext=o.default;let s=n(59793);Object.defineProperty(t,"StatsigProvider",{enumerable:!0,get:function(){return s.StatsigProvider}});let l=n(96392);Object.defineProperty(t,"useClientAsyncInit",{enumerable:!0,get:function(){return l.useClientAsyncInit}});let u=n(88740);Object.defineProperty(t,"useClientBootstrapInit",{enumerable:!0,get:function(){return u.useClientBootstrapInit}});let c=n(94357);t.useDynamicConfig=c.default;let d=n(72246);t.useExperiment=d.default;let h=n(54027);t.useFeatureGate=h.default;let m=n(90215);t.useGateValue=m.default;let f=n(42494);t.useLayer=f.default;let p=n(94054);t.useParameterStore=p.default;let g=n(37554);Object.defineProperty(t,"useStatsigClient",{enumerable:!0,get:function(){return g.useStatsigClient}});let v=n(56085);Object.defineProperty(t,"useStatsigInternalClientFactoryAsync",{enumerable:!0,get:function(){return v.useStatsigInternalClientFactoryAsync}});let b=n(2982);Object.defineProperty(t,"useStatsigInternalClientFactoryBootstrap",{enumerable:!0,get:function(){return b.useStatsigInternalClientFactoryBootstrap}});let _=n(2017);Object.defineProperty(t,"useStatsigUser",{enumerable:!0,get:function(){return _.useStatsigUser}}),i(n(90250),t),Object.assign((0,a._getStatsigGlobal)(),{StatsigContext:o.default,StatsigProvider:s.StatsigProvider,useClientAsyncInit:l.useClientAsyncInit,useClientBootstrapInit:u.useClientBootstrapInit,useDynamicConfig:c.default,useExperiment:d.default,useFeatureGate:h.default,useGateValue:m.default,useLayer:f.default,useParameterStore:p.default,useStatsigClient:g.useStatsigClient,useStatsigInternalClientFactoryAsync:v.useStatsigInternalClientFactoryAsync,useStatsigInternalClientFactoryBootstrap:b.useStatsigInternalClientFactoryBootstrap,useStatsigUser:_.useStatsigUser})},96392:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClientAsyncInit=void 0;let r=n(90250),i=n(56085);t.useClientAsyncInit=function(e,t,n=null){return(0,i.useStatsigInternalClientFactoryAsync)(e=>new r.StatsigClient(e.sdkKey,e.initialUser,e.statsigOptions),{sdkKey:e,initialUser:t,statsigOptions:n})}},88740:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClientBootstrapInit=void 0;let r=n(90250),i=n(2982);t.useClientBootstrapInit=function(e,t,n,a=null,o){return(0,i.useStatsigInternalClientFactoryBootstrap)(e=>new r.StatsigClient(e.sdkKey,e.initialUser,e.statsigOptions),{sdkKey:e,initialUser:t,initialValues:n,statsigOptions:a,useLegacyFormat:o})}},94357:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(67294),i=n(13328),a=n(87276),o=n(77481);t.default=function(e,t){let{client:n,renderVersion:s}=(0,r.useContext)(o.default);return(0,r.useMemo)(()=>(0,a.isNoopClient)(n)?(i.Log.warn(`useDynamicConfig hook failed to find a valid StatsigClient for dynamic config '${e}'.`),a.NoopEvaluationsClient.getDynamicConfig(e,t)):n.getDynamicConfig(e,t),[e,n,s,...t?Object.values(t):[]])}},72246:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(67294),i=n(13328),a=n(87276),o=n(77481);t.default=function(e,t){let{client:n,renderVersion:s}=(0,r.useContext)(o.default);return(0,r.useMemo)(()=>(0,a.isNoopClient)(n)?(i.Log.warn(`useExperiment hook failed to find a valid Statsig client for experiment '${e}'.`),a.NoopEvaluationsClient.getExperiment(e,t)):n.getExperiment(e,t),[e,n,s,...t?Object.values(t):[]])}},54027:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(67294),i=n(13328),a=n(87276),o=n(77481);t.default=function(e,t){let{client:n,renderVersion:s}=(0,r.useContext)(o.default);return(0,r.useMemo)(()=>(0,a.isNoopClient)(n)?(i.Log.warn(`useFeatureGate hook failed to find a valid StatsigClient for gate '${e}'.`),a.NoopEvaluationsClient.getFeatureGate(e,t)):n.getFeatureGate(e,t),[e,n,s,...t?Object.values(t):[]])}},90215:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(67294),i=n(13328),a=n(87276),o=n(77481);t.default=function(e,t){let{client:n,renderVersion:s}=(0,r.useContext)(o.default);return(0,r.useMemo)(()=>(0,a.isNoopClient)(n)?(i.Log.warn(`useGateValue hook failed to find a valid StatsigClient for gate '${e}'.`),a.NoopEvaluationsClient.checkGate(e,t)):n.checkGate(e,t),[e,n,s,...t?Object.values(t):[]])}},42494:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(67294),i=n(13328),a=n(87276),o=n(77481);t.default=function(e,t){let{client:n,renderVersion:s}=(0,r.useContext)(o.default);return(0,r.useMemo)(()=>(0,a.isNoopClient)(n)?(i.Log.warn(`useLayer hook failed to find a valid Statsig client for layer '${e}'.`),a.NoopEvaluationsClient.getLayer(e,t)):n.getLayer(e,t),[e,n,s,...t?Object.values(t):[]])}},94054:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(67294),i=n(13328),a=n(87276),o=n(77481);t.default=function(e,t){let{client:n,renderVersion:s}=(0,r.useContext)(o.default);return(0,r.useMemo)(()=>(0,a.isNoopClient)(n)?(i.Log.warn(`useParameterStore hook failed to find a valid StatsigClient for parameter store '${e}'.`),a.NoopEvaluationsClient.getParameterStore(e,t)):n.getParameterStore(e,t),[e,n,s,...t?Object.values(t):[]])}},37554:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigClient=void 0;let r=n(67294),i=n(13328),a=n(87276),o=n(77481);t.useStatsigClient=function(){let{client:e,renderVersion:t,isLoading:n}=(0,r.useContext)(o.default),s=(0,r.useMemo)(()=>(0,a.isNoopClient)(e)?(i.Log.warn("Attempting to retrieve a StatsigClient but none was set."),a.NoopEvaluationsClient):e,[e,t]),l=[s,t],u=(0,r.useCallback)((e,t)=>s.checkGate(e,t),l),c=(0,r.useCallback)((e,t)=>s.getFeatureGate(e,t),l),d=(0,r.useCallback)((e,t)=>s.getDynamicConfig(e,t),l),h=(0,r.useCallback)((e,t)=>s.getExperiment(e,t),l),m=(0,r.useCallback)((e,t)=>s.getLayer(e,t),l),f=(0,r.useCallback)((e,t)=>s.getParameterStore(e,t),l),p=(0,r.useCallback)((e,t,n)=>"string"==typeof e?s.logEvent(e,t,n):s.logEvent(e),l);return(0,r.useMemo)(()=>({client:s,checkGate:u,getFeatureGate:c,getDynamicConfig:d,getExperiment:h,getLayer:m,getParameterStore:f,logEvent:p,isLoading:n}),[s,u,c,d,h,m,f,p,n])}},56085:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigInternalClientFactoryAsync=void 0;let r=n(67294),i=n(13328);t.useStatsigInternalClientFactoryAsync=function(e,t){let n=(0,r.useMemo)(()=>{var n;return null!==(n=(0,i._getInstance)(t.sdkKey))&&void 0!==n?n:e(t)},[]),[a,o]=(0,r.useState)("Ready"!==n.loadingStatus);return(0,r.useMemo)(()=>{"Ready"!==n.loadingStatus&&n.initializeAsync().catch(i.Log.error).finally(()=>o(!1))},[]),{client:n,isLoading:a}}},2982:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigInternalClientFactoryBootstrap=void 0;let r=n(67294),i=n(13328);t.useStatsigInternalClientFactoryBootstrap=function(e,t){let n=(0,r.useRef)((0,i._getInstance)(t.sdkKey));return(0,r.useMemo)(()=>{if(n.current)return n.current;let r=e(t);return n.current=r,t.useLegacyFormat?r.dataAdapter.setDataLegacy(t.initialValues,t.initialUser):r.dataAdapter.setData(t.initialValues),r.initializeSync(),r},[])}},2017:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigUser=void 0;let r=n(67294),i=n(77481),a=n(37554);function o(e){return e.getContext().user}t.useStatsigUser=function(){let{client:e}=(0,a.useStatsigClient)(),{renderVersion:t}=(0,r.useContext)(i.default);return{user:(0,r.useMemo)(()=>o(e),[e,t]),updateUserSync:(0,r.useCallback)(t=>("function"==typeof t&&(t=t(o(e))),e.updateUserSync(t)),[e]),updateUserAsync:(0,r.useCallback)(t=>("function"==typeof t&&(t=t(o(e))),e.updateUserAsync(t)),[e])}}},69023:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoCapture=t.runStatsigAutoCapture=t.StatsigAutoCapturePlugin=void 0;let r=n(13328),i=n(35473),a=n(2824),o=n(39896),s=n(63480),l=n(50442),u=n(78325),c=n(12185),d=n(93683),h=n(50614),m={submit:i.AutoCaptureEventName.FORM_SUBMIT,click:i.AutoCaptureEventName.CLICK,copy:i.AutoCaptureEventName.COPY,cut:i.AutoCaptureEventName.COPY};class f{constructor(e){this._options=e,this.__plugin="auto-capture"}bind(e){p(e,this._options)}}function p(e,t){var n;let{sdkKey:i}=e.getContext();if(!(0,r._isServerEnv)()){let e=null!==(n=(0,r._getStatsigGlobal)().acInstances)&&void 0!==n?n:{};if(e[i])return e[i]}return new g(e,t)}t.StatsigAutoCapturePlugin=f,t.runStatsigAutoCapture=p;class g{constructor(e,t){var n,i,c,d;this._client=e,this._disabledEvents={},this._previousLoggedPageViewUrl=null,this._hasLoggedPageViewEnd=!1,this._pageViewLogged=!1;let{sdkKey:h,errorBoundary:m,values:f}=e.getContext();this._disabledEvents=null!==(i=null===(n=null==f?void 0:f.auto_capture_settings)||void 0===n?void 0:n.disabled_events)&&void 0!==i?i:{},this._errorBoundary=m,this._errorBoundary.wrap(this,"autoCapture:"),this._client.$on("values_updated",()=>{var e,t;let n=this._client.getContext().values;this._disabledEvents=null!==(t=null===(e=null==n?void 0:n.auto_capture_settings)||void 0===e?void 0:e.disabled_events)&&void 0!==t?t:this._disabledEvents}),this._engagementManager=new s.EngagementManager,this._rageClickManager=new l.default,this._webVitalsManager=new u.WebVitalsManager(this._enqueueAutoCapture.bind(this),m),this._deadClickManager=new o.default(this._enqueueAutoCapture.bind(this),m),this._consoleLogManager=new a.ConsoleLogManager(this._enqueueAutoCapture.bind(this),m,null!==(c=null==t?void 0:t.consoleLogAutoCaptureSettings)&&void 0!==c?c:{enabled:!1}),this._eventFilterFunc=null==t?void 0:t.eventFilterFunc;let p=(0,r._getDocumentSafe)();if(!(0,r._isServerEnv)()){let e=null!==(d=(__STATSIG__=(0,r._getStatsigGlobal)()).acInstances)&&void 0!==d?d:{};e[h]=this,__STATSIG__.acInstances=e}if((null==p?void 0:p.readyState)==="loading"){p.addEventListener("DOMContentLoaded",()=>this._initialize());return}this._initialize()}_addEventHandlers(){let e=(0,r._getWindowSafe)(),t=(0,r._getDocumentSafe)();if(!e||!t)return;let n=(e,t=!0)=>{var n;let i=e||(null===(n=(0,r._getWindowSafe)())||void 0===n?void 0:n.event);this._autoLogEvent(i),t&&this._engagementManager.bumpInactiveTimer(),"click"===i.type&&i instanceof MouseEvent&&this._rageClickManager.isRageClick(i.clientX,i.clientY,Date.now())&&this._logRageClick(i)};(0,c._registerEventHandler)(t,"click",e=>n(e)),(0,c._registerEventHandler)(t,"submit",e=>n(e)),(0,c._registerEventHandler)(t,"copy",e=>n(e)),(0,c._registerEventHandler)(t,"cut",e=>n(e)),(0,c._registerEventHandler)(e,"error",e=>n(e,!1)),(0,c._registerEventHandler)(e,"pagehide",()=>this._tryLogPageViewEnd()),(0,c._registerEventHandler)(e,"beforeunload",()=>this._tryLogPageViewEnd())}_addPageViewTracking(){let e=(0,r._getWindowSafe)(),t=(0,r._getDocumentSafe)();e&&t&&((0,c._registerEventHandler)(e,"popstate",()=>this._tryLogPageView()),window.history.pushState=new Proxy(window.history.pushState,{apply:(e,t,[n,r,i])=>{e.apply(t,[n,r,i]),this._tryLogPageView()}}),window.history.replaceState=new Proxy(window.history.replaceState,{apply:(e,t,[n,r,i])=>{e.apply(t,[n,r,i]),this._tryLogPageView()}}),this._tryLogPageView())}_autoLogEvent(e){var t,n,a;let o=null===(t=e.type)||void 0===t?void 0:t.toLowerCase();if("error"===o&&e instanceof ErrorEvent){this._logError(e);return}let s=(0,c._getTargetNode)(e);if(!s)return;let l=m[o];if(!l)return;let u=l===i.AutoCaptureEventName.COPY;if(!(0,c._shouldLogEvent)(e,s,u))return;let f={};if(u){let t=null===(a=null===(n=(0,r._getWindowSafe)())||void 0===n?void 0:n.getSelection())||void 0===a?void 0:a.toString();if(!t)return;f.selectedText=(0,c._sanitizeString)(t);let i=e.type||"clipboard";f.clipType=i}let{value:p,metadata:g}=(0,d._gatherEventData)(s);Object.assign(f,g);let v=(0,h._gatherAllMetadata)((0,c._getSafeUrl)());this._enqueueAutoCapture(l,p,Object.assign(Object.assign({},v),f))}_initialize(){this._webVitalsManager.startTracking(),this._deadClickManager.startTracking(),this._consoleLogManager.startTracking(),this._engagementManager.startInactivityTracking(()=>this._tryLogPageViewEnd(!0)),this._addEventHandlers(),this._addPageViewTracking(),this._logSessionStart(),this._logPerformance()}_logError(e){let t=(null==e?void 0:e.error)||{},n=t;if("object"==typeof t)try{n=JSON.stringify(t)}catch(e){n="function"==typeof(null==t?void 0:t.toString)?t.toString():"Unknown Error"}this._enqueueAutoCapture(i.AutoCaptureEventName.ERROR,e.message,{message:e.message,filename:e.filename,lineno:e.lineno,colno:e.colno,error_str:n})}_logSessionStart(){let e=this._getSessionFromClient();try{if(!this._isNewSession(e))return;this._enqueueAutoCapture(i.AutoCaptureEventName.SESSION_START,(0,c._getSanitizedPageUrl)(),Object.assign({sessionID:e.data.sessionID},(0,h._gatherAllMetadata)((0,c._getSafeUrl)())),{flushImmediately:!0})}catch(e){this._errorBoundary.logError("AC::logSession",e)}}_tryLogPageView(){let e=(0,c._getSafeUrl)(),t=this._previousLoggedPageViewUrl;if(t&&e.href===t.href)return;this._engagementManager.setLastPageViewTime(Date.now()),this._hasLoggedPageViewEnd=!1;let n=(0,h._gatherAllMetadata)(e);this._previousLoggedPageViewUrl&&(n.last_page_view_url=this._previousLoggedPageViewUrl.href),this._pageViewLogged||(this._updateClientWithPossibleFirstTouchMetadata(),this._pageViewLogged=!0),this._enqueueAutoCapture(i.AutoCaptureEventName.PAGE_VIEW,(0,c._getSanitizedPageUrl)(),n,{flushImmediately:!0,addNewSessionMetadata:!0}),this._previousLoggedPageViewUrl=e,this._engagementManager.bumpInactiveTimer()}_tryLogPageViewEnd(e=!1){if(this._hasLoggedPageViewEnd)return;this._hasLoggedPageViewEnd=!0;let t=this._engagementManager.getScrollMetrics(),n=this._engagementManager.getPageViewLength();this._enqueueAutoCapture(i.AutoCaptureEventName.PAGE_VIEW_END,(0,c._getSanitizedPageUrl)(),Object.assign(Object.assign({},t),{pageViewLength:n,dueToInactivity:e}),{flushImmediately:!0})}_logRageClick(e){let{value:t,metadata:n}=(0,d._gatherEventData)(e.target);this._enqueueAutoCapture(i.AutoCaptureEventName.RAGE_CLICK,t,Object.assign(Object.assign({x:e.clientX,y:e.clientY,timestamp:Date.now()},(0,h._gatherAllMetadata)((0,c._getSafeUrl)())),n))}_logPerformance(){let e=(0,r._getWindowSafe)();e&&e.performance&&void 0!==(null==e?void 0:e.performance)&&"function"==typeof e.performance.getEntriesByType&&"function"==typeof e.performance.getEntriesByName&&setTimeout(()=>{let t={},n=e.performance.getEntriesByType("navigation");if(n&&n.length>0&&n[0]instanceof PerformanceNavigationTiming){let e=n[0];t.load_time_ms=e.duration,t.dom_interactive_time_ms=e.domInteractive-e.startTime,t.redirect_count=e.redirectCount,t.transfer_bytes=e.transferSize}let r=e.performance.getEntriesByName("first-contentful-paint");r&&r.length>0&&r[0]instanceof PerformancePaintTiming&&(t.first_contentful_paint_time_ms=r[0].startTime),this._enqueueAutoCapture(i.AutoCaptureEventName.PERFORMANCE,(0,c._getSanitizedPageUrl)(),Object.assign(Object.assign({},t),(0,h._getNetworkInfo)()))},1)}_enqueueAutoCapture(e,t,n,i){var a,o,s;if(!t)return;let l=e.slice(14);if(this._disabledEvents[e]||this._disabledEvents[l])return;let u=this._getSessionFromClient();try{let l=Object.assign({sessionID:u.data.sessionID,page_url:null!==(s=null===(o=null===(a=(0,r._getWindowSafe)())||void 0===a?void 0:a.location)||void 0===o?void 0:o.href)&&void 0!==s?s:""},n);(null==i?void 0:i.addNewSessionMetadata)&&(l.isNewSession=String(this._isNewSession(u)));let c={eventName:e,value:t,metadata:l};if(this._eventFilterFunc&&!this._eventFilterFunc(c))return;this._client.logEvent(c),(null==i?void 0:i.flushImmediately)&&this._flushImmediately()}catch(e){this._errorBoundary.logError("AC::enqueue",e)}}_updateClientWithPossibleFirstTouchMetadata(){let e=this._client;e._possibleFirstTouchMetadata=(0,h._getPossibleFirstTouchMetadata)((0,c._getSafeUrl)()),e._user=Object.assign(Object.assign({},e._user),{analyticsOnlyMetadata:Object.assign(Object.assign({},e._possibleFirstTouchMetadata),e._user.analyticsOnlyMetadata)})}_flushImmediately(){this._client.flush().catch(e=>{r.Log.error(e)})}_isNewSession(e){return 1e3>Math.abs(e.data.startTime-Date.now())}_getSessionFromClient(){return this._client.getContext().session}static getAllMetadata(){return(0,h._gatherAllMetadata)((0,c._getSafeUrl)())}}t.AutoCapture=g},35473:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoCaptureEventName=void 0,t.AutoCaptureEventName={PAGE_VIEW:"auto_capture::page_view",PAGE_VIEW_END:"auto_capture::page_view_end",ERROR:"auto_capture::error",SESSION_START:"auto_capture::session_start",PERFORMANCE:"auto_capture::performance",FORM_SUBMIT:"auto_capture::form_submit",CLICK:"auto_capture::click",RAGE_CLICK:"auto_capture::rage_click",WEB_VITALS:"auto_capture::web_vitals",DEAD_CLICK:"auto_capture::dead_click",COPY:"auto_capture::copy",CONSOLE_LOG:"statsig::log_line"}},2824:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleLogManager=void 0;let r=n(13328),i=n(35473),a=n(12185),o=n(50614),s={trace:10,debug:20,log:30,info:30,warn:40,error:50};class l{constructor(e,t,n){var r;this._enqueueFn=e,this._errorBoundary=t,this._options=n,this._restoreFns=[],this._isTracking=!1,this._logLevel="info",this.__source="js-auto-capture",this._logLevel=null!==(r=this._options.logLevel)&&void 0!==r?r:"info"}startTracking(){try{if(this._isTracking||!this._options.enabled||!(0,r._getWindowSafe)())return;this._patchConsole(),this._isTracking=!0}catch(e){r.Log.error("Error starting console log tracking",e),this._errorBoundary.logError("autoCapture:ConsoleLogManager",e)}}stopTracking(){this._isTracking&&(this._restoreFns.forEach(e=>e()),this._restoreFns=[],this._isTracking=!1)}_patchConsole(){Object.entries(s).forEach(([e,t])=>{if(t<s[this._logLevel]||!console[e])return;let n=console[e].bind(console),r=!1,i=(0,a.wrapFunctionWithRestore)(console,e,t=>(...i)=>{if(t(...i),!r){r=!0;try{let t=i.map(e=>this._safeStringify(e)),n=this._getStackTrace();this._enqueueConsoleLog(e,t,n)}catch(e){n("console observer error:",e,...i),this._errorBoundary.logError("autoCapture:ConsoleLogManager",e)}finally{r=!1}}});this._restoreFns.push(i)})}_enqueueConsoleLog(e,t,n){if(!this._shouldLog())return;let r=Object.assign({status:"log"===e?"info":e,log_level:e,payload:t,trace:n,timestamp:Date.now(),source:this.__source},(0,o._gatherAllMetadata)((0,a._getSafeUrl)()));this._enqueueFn(i.AutoCaptureEventName.CONSOLE_LOG,t.join(" "),r)}_shouldLog(){return!this._options.sampleRate||"number"!=typeof this._options.sampleRate||this._options.sampleRate<=0||this._options.sampleRate>=1||Math.random()<this._options.sampleRate}_safeStringify(e){try{if("string"==typeof e)return e;if("object"==typeof e&&null!==e)return JSON.stringify(e);return String(e)}catch(e){return"[Unserializable]"}}_getStackTrace(){var e,t;try{return null!==(t=null===(e=Error().stack)||void 0===e?void 0:e.split("\n").slice(2))&&void 0!==t?t:[]}catch(e){return[]}}}t.ConsoleLogManager=l},39896:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadClickConfig=void 0;let r=n(13328),i=n(35473),a=n(12185),o=n(93683),s=n(50614);t.DeadClickConfig={CLICK_CHECK_TIMEOUT:1e3,SCROLL_DELAY_MS:100,SELECTION_CHANGE_DELAY_MS:100,MUTATION_DELAY_MS:2500,ABSOLUTE_DEAD_CLICK_TIMEOUT:2750};class l{constructor(e,n){this._enqueueFn=e,this._errorBoundary=n,this._lastMutationTime=0,this._lastSelectionChangeTime=0,this._clicks=[],this._deadClickConfig=t.DeadClickConfig,this._handleScroll=(0,a.throttle)(()=>{let e=Date.now();this._clicks.forEach(t=>{t.scrollDelayMs||(t.scrollDelayMs=e-t.timestamp)})},50)}startTracking(){try{let e=(0,r._getWindowSafe)();if(!e)return;e.addEventListener("click",e=>this._handleClick(e),{capture:!0}),e.addEventListener("scroll",()=>this._handleScroll(),{capture:!0,passive:!0}),e.addEventListener("selectionchange",()=>this._handleSelectionChange()),this._setupMutationObserver()}catch(e){r.Log.error("Error starting dead click tracking",e),this._errorBoundary.logError("autoCapture:DeadClickManager",e)}}_handleClick(e){var t,n;let i=e.target;if(!i)return;let o={timestamp:Date.now(),eventTarget:i};a.interactiveElements.includes(null===(t=null==i?void 0:i.tagName)||void 0===t?void 0:t.toLowerCase())||this._clicks.push(o),this._clicks.length&&!this._clickCheckTimer&&(this._clickCheckTimer=null===(n=(0,r._getWindowSafe)())||void 0===n?void 0:n.setTimeout(()=>{this._checkForDeadClick()},this._deadClickConfig.CLICK_CHECK_TIMEOUT))}_handleSelectionChange(){this._lastSelectionChangeTime=Date.now()}_setupMutationObserver(){let e=(0,r._getDocumentSafe)();e&&(this._observer=new MutationObserver(()=>{this._lastMutationTime=Date.now()}),this._observer.observe(e.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}))}_checkForDeadClick(){var e;if(!this._clicks.length)return;clearTimeout(this._clickCheckTimer),this._clickCheckTimer=void 0;let t=this._clicks;for(let e of(this._clicks=[],t)){this._updateClickDelayMs(e);let t=null!=e.scrollDelayMs&&e.scrollDelayMs<this._deadClickConfig.SCROLL_DELAY_MS,n=null!=e.selectionChangeDelayMs&&e.selectionChangeDelayMs<this._deadClickConfig.SELECTION_CHANGE_DELAY_MS,r=null!=e.mutationDelayMs&&e.mutationDelayMs<this._deadClickConfig.MUTATION_DELAY_MS;if(t||n||r)continue;let i=null!=e.scrollDelayMs&&e.scrollDelayMs>this._deadClickConfig.SCROLL_DELAY_MS,a=null!=e.selectionChangeDelayMs&&e.selectionChangeDelayMs>this._deadClickConfig.SELECTION_CHANGE_DELAY_MS,o=null!=e.mutationDelayMs&&e.mutationDelayMs>this._deadClickConfig.MUTATION_DELAY_MS,s=null!=e.absoluteDelayMs&&e.absoluteDelayMs>this._deadClickConfig.ABSOLUTE_DEAD_CLICK_TIMEOUT;i||a||o||s?this._logDeadClick(e,{scrollTimeout:i,selectionChangeTimeout:a,mutationTimeout:o,absoluteTimeout:s}):null!=e.absoluteDelayMs&&e.absoluteDelayMs<this._deadClickConfig.ABSOLUTE_DEAD_CLICK_TIMEOUT&&this._clicks.push(e)}this._clicks.length&&!this._clickCheckTimer&&(this._clickCheckTimer=null===(e=(0,r._getWindowSafe)())||void 0===e?void 0:e.setTimeout(()=>{this._checkForDeadClick()},this._deadClickConfig.CLICK_CHECK_TIMEOUT))}_logDeadClick(e,t){let{value:n,metadata:r}=(0,o._gatherEventData)(e.eventTarget);n&&this._enqueueFn(i.AutoCaptureEventName.DEAD_CLICK,n,Object.assign(Object.assign(Object.assign(Object.assign({},r),t),(0,s._gatherCommonMetadata)((0,a._getSafeUrl)())),{scrollDelayMs:e.scrollDelayMs,selectionChangeDelayMs:e.selectionChangeDelayMs,mutationDelayMs:e.mutationDelayMs,absoluteDelayMs:e.absoluteDelayMs}))}_updateClickDelayMs(e){!e.mutationDelayMs&&this._lastMutationTime>0&&e.timestamp<=this._lastMutationTime&&(e.mutationDelayMs=Date.now()-this._lastMutationTime),!e.selectionChangeDelayMs&&this._lastSelectionChangeTime>0&&e.timestamp<=this._lastSelectionChangeTime&&(e.selectionChangeDelayMs=Date.now()-this._lastSelectionChangeTime),e.absoluteDelayMs=Date.now()-e.timestamp}}t.default=l},63480:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EngagementManager=void 0;let r=n(13328);class i{constructor(){this._lastScrollY=0,this._maxScrollY=0,this._lastScrollPercentage=0,this._maxScrollPercentage=0,this._lastPageViewTime=Date.now(),this._inactiveTimer=null,this._onInactivityCallback=null,this._initializeScrollTracking()}_initializeScrollTracking(){let e=(0,r._getWindowSafe)();e&&(e.addEventListener("scroll",()=>this._handleScroll()),e.addEventListener("scrollend",()=>this._handleScroll()),e.addEventListener("resize",()=>this._handleScroll()))}_handleScroll(){let e=(0,r._getWindowSafe)(),t=(0,r._getDocumentSafe)();if(!e||!t)return;let n=t.body.scrollHeight,i=e.scrollY||t.documentElement.scrollTop||0,a=e.innerHeight;this._lastScrollY=i,this._maxScrollY=Math.max(this._maxScrollY,i);let o=Math.min(100,Math.round((i+a)/n*100));this._lastScrollPercentage=o,this._maxScrollPercentage=Math.max(this._maxScrollPercentage,o),this.bumpInactiveTimer()}getScrollMetrics(){return{lastScrollY:this._lastScrollY,maxScrollY:this._maxScrollY,lastScrollPercentage:this._lastScrollPercentage,maxScrollPercentage:this._maxScrollPercentage,scrollDepth:this._maxScrollPercentage}}getPageViewLength(){return Date.now()-this._lastPageViewTime}setLastPageViewTime(e){this._lastPageViewTime=e}startInactivityTracking(e){this._onInactivityCallback=e}bumpInactiveTimer(){let e=(0,r._getWindowSafe)();e&&(this._inactiveTimer&&clearTimeout(this._inactiveTimer),this._inactiveTimer=e.setTimeout(()=>{this._onInactivityCallback&&this._onInactivityCallback()},6e5))}}t.EngagementManager=i},50442:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(){this._clicks=[]}isRageClick(e,t,n){var r;return this._clicks=this._clicks.filter(e=>n-e.timestamp<1e3),this._clicks.length>0&&!(Math.abs(e-(r=this._clicks[this._clicks.length-1]).x)+Math.abs(t-r.y)<=30)&&(this._clicks=[]),this._clicks.push({x:e,y:t,timestamp:n}),this._clicks.length>=3}}t.default=n},78325:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebVitalsManager=void 0;let r=n(34511),i=n(13328),a=n(35473),o=n(12185),s=["CLS","FCP","LCP","TTFB"];class l{constructor(e,t){this._enqueueFn=e,this._errorBoundary=t,this._isInitialized=!1,this._metricEvent={url:(0,o._getSafeUrlString)(),sanitizedUrl:(0,o._getSanitizedPageUrl)(),metrics:[],firstMetricTimestamp:void 0}}startTracking(){var e,t;try{if(this._isInitialized)return;let n=null===(t=null===(e=(0,i._getWindowSafe)())||void 0===e?void 0:e.location)||void 0===t?void 0:t.protocol;if("https:"!==n&&"http:"!==n)return;(0,r.onCLS)(e=>this._handleMetric(e)),(0,r.onFCP)(e=>this._handleMetric(e)),(0,r.onLCP)(e=>this._handleMetric(e)),(0,r.onTTFB)(e=>this._handleMetric(e)),this._isInitialized=!0}catch(e){i.Log.error("Error starting web vitals tracking",e),this._errorBoundary.logError("autoCapture:WebVitalsManager",e)}}_handleMetric(e){if(void 0===this._metricEvent.firstMetricTimestamp&&(this._metricEvent.firstMetricTimestamp=Date.now()),void 0===e||(null==e?void 0:e.name)===void 0)return;let t=(0,o._getSafeUrlString)();""!==t&&s.includes(e.name)&&(t!==this._metricEvent.url&&(this._enqueueWebVitalsAutoCaptureEvent(),this._metricEvent.url=t),this._metricEvent.metrics.push({name:e.name,value:e.value,delta:e.delta,id:e.id}),this._metricEvent.metrics.length===s.length&&this._enqueueWebVitalsAutoCaptureEvent())}_enqueueWebVitalsAutoCaptureEvent(){if(""===this._metricEvent.url||0===this._metricEvent.metrics.length)return;let e={};this._metricEvent.metrics.forEach(t=>{let n=t.name.toLowerCase();e[`${n}_value`]=t.value,e[`${n}_delta`]=t.delta,e[`${n}_id`]=t.id}),this._enqueueFn(a.AutoCaptureEventName.WEB_VITALS,this._metricEvent.sanitizedUrl,Object.assign(Object.assign({},e),{first_metric_timestamp:this._metricEvent.firstMetricTimestamp})),this._metricEvent={url:(0,o._getSafeUrlString)(),sanitizedUrl:(0,o._getSanitizedPageUrl)(),metrics:[],firstMetricTimestamp:void 0}}}t.WebVitalsManager=l},12566:function(e,t,n){"use strict";t.AP=void 0;let r=n(13328),i=n(69023);Object.defineProperty(t,"AP",{enumerable:!0,get:function(){return i.runStatsigAutoCapture}}),n(35473),Object.assign((0,r._getStatsigGlobal)(),{AutoCapture:i.AutoCapture,runStatsigAutoCapture:i.runStatsigAutoCapture,StatsigAutoCapturePlugin:i.StatsigAutoCapturePlugin})},12185:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapFunctionWithRestore=t.throttle=t._sanitizeString=t._getAnchorNodeInHierarchy=t._getSafeTimezoneOffset=t._getSafeTimezone=t._getSafeNetworkInformation=t._registerEventHandler=t._getSanitizedPageUrl=t._getSafeUrlString=t._getSafeUrl=t._shouldLogEvent=t._getTargetNode=t._stripEmptyValues=t.interactiveElements=void 0;let r=n(13328),i=RegExp("^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$"),a=RegExp("^(\\d{3}-?\\d{2}-?\\d{4})$");function o(){var e,t,n;let i;let a=null!==(n=null===(t=null===(e=(0,r._getWindowSafe)())||void 0===e?void 0:e.location)||void 0===t?void 0:t.href)&&void 0!==n?n:"";try{i=new URL(a)}catch(e){i=new URL("error:")}return i}function s(e){if(!e)return null;let t=e;for(;t&&!["body","document"].includes(t.tagName.toLowerCase());){if("a"===t.tagName.toLowerCase())return t;t=t.parentElement}return null}t.interactiveElements=["button","a","input","select","textarea","form","select","label"],t._stripEmptyValues=function(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>null!=t&&""!==t&&void 0!==t))},t._getTargetNode=function(e){if(!e)return null;let t=e.target||e.srcElement;return t&&t instanceof Element?(3===t.nodeType&&(t=t.parentNode||null),t):null},t._shouldLogEvent=function(e,t,n=!1){if(!e||!t||1!==t.nodeType)return!1;let r=t.tagName.toLowerCase(),i=e.type.toLowerCase();if(t.classList.contains("statsig-no-capture"))return!1;if(n)return!0;switch(r){case"html":return!1;case"form":return["submit"].indexOf(i)>=0;case"input":case"select":case"textarea":return["change","click"].indexOf(i)>=0;default:if("click"===i&&("button"===r||s(t)))return!0;return!1}},t._getSafeUrl=o,t._getSafeUrlString=function(){let e=o().toString();return e.startsWith("error:")?"":e},t._getSanitizedPageUrl=function(){return(0,r._getCurrentPageUrlSafe)()||""},t._registerEventHandler=function(e,t,n){e&&e.addEventListener&&e.addEventListener(t,n,!0)},t._getSafeNetworkInformation=function(){let e=(0,r._getWindowSafe)();return e&&e.navigator&&e.navigator.connection||null},t._getSafeTimezone=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return null}},t._getSafeTimezoneOffset=function(){try{return new Date().getTimezoneOffset()}catch(e){return null}},t._getAnchorNodeInHierarchy=s,t._sanitizeString=function(e){return e?e.replace(/<[^>]*>/g,"").trim().split(/(\s+)/).filter(e=>!(i.test((e||"").replace(/[- ]/g,""))||a.test((e||"").replace(/[- ]/g,"")))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255):null},t.throttle=function(e,t){let n=0;return function(...r){let i=Date.now();i-n>=t&&(n=i,e(...r))}},t.wrapFunctionWithRestore=function(e,t,n){let r=e[t];if("function"!=typeof r)return()=>{};try{let i=n(r);return Object.defineProperty(i,"__statsig_original__",{enumerable:!1,value:r}),e[t]=i,()=>{e[t]=r}}catch(e){return()=>{}}}},93683:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getMetadataFromElement=t._gatherCopyEventData=t._gatherEventData=void 0;let r=n(13328),i=n(12185);function a(e,t){return e?e.length>t?e.substring(0,t)+"...":e:null}function o(e){let t={},n=Array.from(e.classList);return t.classList=n.length>0?n.slice(0,100):null,t.class=(a(e.getAttribute("class"),1e3)||"").replace(/\s+/g," ").trim(),t.id=a(e.getAttribute("id"),1e3),t.ariaLabel=a(e.getAttribute("aria-label"),1e3),t.selector=function(e){if(!e)return"";if(!e.parentNode){let t=e.tagName.toLowerCase();if(e.id)return`#${e.id}`;let n=t;if(e.className&&"string"==typeof e.className){let t=e.className.trim().split(/\s+/);t.length>0&&""!==t[0]&&(n+="."+t.join("."))}return n}let t=[],n=e,r=0;for(;n&&n.nodeType===Node.ELEMENT_NODE&&r<50;){let e=function(e){let t=e.tagName.toLowerCase();if(e.id)return`#${e.id}`;let n=t;if(e.className&&"string"==typeof e.className){let t=e.className.trim().split(/\s+/);t.length>0&&""!==t[0]&&(n+="."+t.join("."))}let r=e.parentElement;if(r&&r.children.length>1){let t=1,r=1,i=e.previousElementSibling;for(;i;)t++,i.tagName===e.tagName&&r++,i=i.previousElementSibling;n+=`:nth-child(${t})`,(r>1||function(e){let t=e.nextElementSibling;for(;t;){if(t.tagName===e.tagName)return!0;t=t.nextElementSibling}return!1}(e))&&(n+=`:nth-of-type(${r})`)}return n}(n);if(t.unshift(e),n.id||(n=n.parentElement)&&"body"===n.tagName.toLowerCase())break;r++}return t.join(" > ")}(e),t}t._gatherEventData=function(e){if("input"===e.tagName.toLowerCase()&&["button","checkbox","submit","reset"].includes(e.getAttribute("type")||"")||"textarea"===e.tagName.toLowerCase()||"select"===e.tagName.toLowerCase()||"true"===e.getAttribute("contenteditable"))return{value:null,metadata:{}};let t=e.tagName.toLowerCase(),n={},r=(0,i._getSanitizedPageUrl)()||"";n.tagName=t,Object.assign(n,o(e)),"form"===t&&Object.assign(n,function(e){var t;let n={};return n.action=e.getAttribute("action"),n.method=null!==(t=e.getAttribute("method"))&&void 0!==t?t:"GET",n.formName=e.getAttribute("name"),n.formId=e.getAttribute("id"),n}(e)),"input"===t&&Object.assign(n,function(e){let t={};return t.content=e.value,t.inputName=e.getAttribute("name"),t}(e));let a=(0,i._getAnchorNodeInHierarchy)(e);return a&&Object.assign(n,function(e){let t={};return t.href=e.getAttribute("href"),t}(a)),("button"===t||a)&&Object.assign(n,function(e){let t={};return t.content=(e.textContent||"").trim(),Object.assign(t,function(e){let t={};if(!e)return t;let n=null==e?void 0:e.dataset;if(!n)return t;for(let e in n)t[`data-${e}`]=n[e]||"";return t}(e)),t}(a||e)),{value:r,metadata:n}},t._gatherCopyEventData=function(e){var t,n;let a=null===(n=null===(t=(0,r._getWindowSafe)())||void 0===t?void 0:t.getSelection())||void 0===n?void 0:n.toString(),o={};o.selectedText=(0,i._sanitizeString)(a);let s=e.type||"clipboard";return o.clipType=s,o},t._getMetadataFromElement=o},50614:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getPossibleFirstTouchMetadata=t._getNetworkInfo=t._gatherAllMetadata=t._gatherCommonMetadata=void 0;let r=n(13328),i=n(12185);function a(e){var t,n,a,s,l,u,c,d;let h=(0,r._getDocumentSafe)(),m=(0,r._getWindowSafe)();return(0,i._stripEmptyValues)(Object.assign({title:null==h?void 0:h.title,current_url:null===(t=null==m?void 0:m.location)||void 0===t?void 0:t.href,user_agent:(null===(n=null==m?void 0:m.navigator)||void 0===n?void 0:n.userAgent)&&(null===(s=null===(a=null==m?void 0:m.navigator)||void 0===a?void 0:a.userAgent)||void 0===s?void 0:s.length)>200?m.navigator.userAgent.substring(0,200):null===(l=null==m?void 0:m.navigator)||void 0===l?void 0:l.userAgent,locale:null===(u=null==m?void 0:m.navigator)||void 0===u?void 0:u.language,hostname:e.hostname,pathname:e.pathname,screen_width:null===(c=null==m?void 0:m.screen)||void 0===c?void 0:c.width,screen_height:null===(d=null==m?void 0:m.screen)||void 0===d?void 0:d.height,viewport_width:null==m?void 0:m.innerWidth,viewport_height:null==m?void 0:m.innerHeight,viewport:`${null==m?void 0:m.innerWidth}x${null==m?void 0:m.innerHeight}`,timestamp:Date.now(),timezone:(0,i._getSafeTimezone)(),timezone_offset:(0,i._getSafeTimezoneOffset)()},o()))}function o(){let e=(0,i._getSafeNetworkInformation)(),t={};return(null==e?void 0:e.effectiveType)!==void 0&&(t.effective_connection_type=e.effectiveType),(null==e?void 0:e.rtt)!==void 0&&(t.rtt_ms=e.rtt),(null==e?void 0:e.downlink)!==void 0&&(t.downlink_mbps=e.downlink,t.downlink_kbps=1e3*e.downlink),(null==e?void 0:e.saveData)!==void 0&&(t.save_data=e.saveData),t}function s(e){let t=(null==e?void 0:e.referrer)||"";if(!t)return{referrer:null,referrer_domain:null,referrer_path:null,searchEngine:"",searchQuery:""};try{let e=new URL(t),n=e.hostname,r=["google","bing","yahoo","duckduckgo","baidu"].find(e=>n.includes(e+"."))||"",i=e.searchParams.get("yahoo"===r?"p":"q")||"";return{referrer:t,referrer_domain:e.hostname,referrer_path:e.pathname,searchEngine:r,searchQuery:i}}catch(e){return{referrer:null,referrer_domain:null,referrer_path:null,searchEngine:"",searchQuery:""}}}function l(e){let t=e.searchParams,n={};return["utm_source","utm_medium","utm_campaign","utm_term","utm_content","msclkid","dclid","fbclid","gad_source","gclid","gclsrc","wbraid","utm_id","irclid","igshid","_kx","li_fat_id","mc_cid","mc_eid","epik","qclid","rdt_cid","sccid","ttc","ttclid","ttc_id","twclid"].forEach(e=>{let r=t.get(e);r&&(n[e]=r)}),n}t._gatherCommonMetadata=a,t._gatherAllMetadata=function(e){let t=(0,r._getDocumentSafe)(),n=(0,r._getWindowSafe)();if(!t||!n)return{};let o=s(t),u=a(e),c=l(e),d={};return e.searchParams.forEach((e,t)=>{d[t]=e}),Object.assign(Object.assign({},u),(0,i._stripEmptyValues)(Object.assign(Object.assign(Object.assign({},o),c),d)))},t._getNetworkInfo=o,t._getPossibleFirstTouchMetadata=function(e){let t=(0,r._getDocumentSafe)(),n=(0,r._getWindowSafe)();if(!t||!n)return{};let a=s(t),o=l(e),u=(0,i._stripEmptyValues)(Object.assign(Object.assign({},a),o)),c={};for(let[e,t]of Object.entries(u))c[`$s_${e}`]=t;return c}},34511:function(e,t){!function(e){"use strict";let t;let n=-1,r=e=>{addEventListener("pageshow",t=>{t.persisted&&(n=t.timeStamp,e(t))},!0)},i=(e,t,n,r)=>{let i,a;return o=>{let s;t.value>=0&&(o||r)&&((a=t.value-(i??0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=(s=t.value)>n[1]?"poor":s>n[0]?"needs-improvement":"good",e(t))}},a=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},o=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},s=()=>{let e=o();return e?.activationStart??0},l=(e,t=-1)=>{let r=o(),i="navigate";return n>=0?i="back-forward-cache":r&&(document.prerendering||s()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},u=new WeakMap;function c(e,t){return u.get(e)||u.set(e,new t),u.get(e)}class d{t;i=0;o=[];h(e){if(e.hadRecentInput)return;let t=this.o[0],n=this.o.at(-1);this.i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}}let h=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},m=e=>{let t=!1;return()=>{t||(e(),t=!0)}},f=-1,p=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,g=e=>{"hidden"===document.visibilityState&&f>-1&&(f="visibilitychange"===e.type?e.timeStamp:0,b())},v=()=>{addEventListener("visibilitychange",g,!0),addEventListener("prerenderingchange",g,!0)},b=()=>{removeEventListener("visibilitychange",g,!0),removeEventListener("prerenderingchange",g,!0)},_=()=>{if(f<0){let e=s();f=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??p(),v(),r(()=>{setTimeout(()=>{f=p(),v()})})}return{get firstHiddenTime(){return f}}},E=e=>{document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},y=[1800,3e3],S=(e,t={})=>{E(()=>{let n=_(),o,u=l("FCP"),c=h("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(c.disconnect(),t.startTime<n.firstHiddenTime&&(u.value=Math.max(t.startTime-s(),0),u.entries.push(t),o(!0)))});c&&(o=i(e,u,y,t.reportAllChanges),r(n=>{o=i(e,u=l("FCP"),y,t.reportAllChanges),a(()=>{u.value=performance.now()-n.timeStamp,o(!0)})}))})},C=[.1,.25],w=0,T=1/0,k=0,I=e=>{for(let t of e)t.interactionId&&(T=Math.min(T,t.interactionId),w=(k=Math.max(k,t.interactionId))?(k-T)/7+1:0)},A=()=>t?w:performance.interactionCount??0,N=()=>{"interactionCount"in performance||t||(t=h("event",I,{type:"event",buffered:!0,durationThreshold:0}))},L=0;class O{u=[];l=new Map;m;p;v(){L=A(),this.u.length=0,this.l.clear()}T(){let e=Math.min(this.u.length-1,Math.floor((A()-L)/50));return this.u[e]}h(e){if(this.m?.(e),!e.interactionId&&"first-input"!==e.entryType)return;let t=this.u.at(-1),n=this.l.get(e.interactionId);if(n||this.u.length<10||e.duration>t.P){if(n?e.duration>n.P?(n.entries=[e],n.P=e.duration):e.duration===n.P&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],P:e.duration},this.l.set(n.id,n),this.u.push(n)),this.u.sort((e,t)=>t.P-e.P),this.u.length>10)for(let e of this.u.splice(10))this.l.delete(e.id);this.p?.(n)}}}let M=e=>{let t=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=m(e),document.addEventListener("visibilitychange",e,{once:!0}),t(()=>{e(),document.removeEventListener("visibilitychange",e)}))},P=[200,500];class B{m;h(e){this.m?.(e)}}let D=[2500,4e3],R=[800,1800],H=e=>{document.prerendering?E(()=>H(e)):"complete"!==document.readyState?addEventListener("load",()=>H(e),!0):setTimeout(e)};e.CLSThresholds=C,e.FCPThresholds=y,e.INPThresholds=P,e.LCPThresholds=D,e.TTFBThresholds=R,e.onCLS=(e,t={})=>{S(m(()=>{let n,o=l("CLS",0),s=c(t,d),u=e=>{for(let t of e)s.h(t);s.i>o.value&&(o.value=s.i,o.entries=s.o,n())},m=h("layout-shift",u);m&&(n=i(e,o,C,t.reportAllChanges),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&(u(m.takeRecords()),n(!0))}),r(()=>{s.i=0,n=i(e,o=l("CLS",0),C,t.reportAllChanges),a(()=>n())}),setTimeout(n))}))},e.onFCP=S,e.onINP=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&E(()=>{N();let n,a=l("INP"),o=c(t,O),s=e=>{M(()=>{for(let t of e)o.h(t);let t=o.T();t&&t.P!==a.value&&(a.value=t.P,a.entries=t.entries,n())})},u=h("event",s,{durationThreshold:t.durationThreshold??40});n=i(e,a,P,t.reportAllChanges),u&&(u.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&(s(u.takeRecords()),n(!0))}),r(()=>{o.v(),n=i(e,a=l("INP"),P,t.reportAllChanges)}))})},e.onLCP=(e,t={})=>{E(()=>{let n=_(),o,u=l("LCP"),d=c(t,B),f=e=>{for(let r of(t.reportAllChanges||(e=e.slice(-1)),e))d.h(r),r.startTime<n.firstHiddenTime&&(u.value=Math.max(r.startTime-s(),0),u.entries=[r],o())},p=h("largest-contentful-paint",f);if(p){o=i(e,u,D,t.reportAllChanges);let n=m(()=>{f(p.takeRecords()),p.disconnect(),o(!0)});for(let e of["keydown","click","visibilitychange"])addEventListener(e,()=>M(n),{capture:!0,once:!0});r(n=>{o=i(e,u=l("LCP"),D,t.reportAllChanges),a(()=>{u.value=performance.now()-n.timeStamp,o(!0)})})}})},e.onTTFB=(e,t={})=>{let n=l("TTFB"),a=i(e,n,R,t.reportAllChanges);H(()=>{let u=o();u&&(n.value=Math.max(u.responseStart-s(),0),n.entries=[u],a(!0),r(()=>{(a=i(e,n=l("TTFB",0),R,t.reportAllChanges))(!0)}))})}}(t)},29545:function(e,t,n){"use strict";n.d(t,{x7:function(){return R},X5:function(){return O},Me:function(){return A},oo:function(){return U},US:function(){return N},RR:function(){return P},Cp:function(){return D},Qo:function(){return H},dr:function(){return x},cv:function(){return L},Jv:function(){return k},uY:function(){return M},dp:function(){return B}});var r=n(71347);function i(e,t,n){let i,{reference:a,floating:o}=e,s=(0,r.Qq)(t),l=(0,r.Wh)(t),u=(0,r.I4)(l),c=(0,r.k3)(t),d="y"===s,h=a.x+a.width/2-o.width/2,m=a.y+a.height/2-o.height/2,f=a[u]/2-o[u]/2;switch(c){case"top":i={x:h,y:a.y-o.height};break;case"bottom":i={x:h,y:a.y+a.height};break;case"right":i={x:a.x+a.width,y:m};break;case"left":i={x:a.x-o.width,y:m};break;default:i={x:a.x,y:a.y}}switch((0,r.hp)(t)){case"start":i[l]-=f*(n&&d?-1:1);break;case"end":i[l]+=f*(n&&d?-1:1)}return i}async function a(e,t){var n;void 0===t&&(t={});let{x:i,y:a,platform:o,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:m=!1,padding:f=0}=(0,r.ku)(t,e),p=(0,r.yd)(f),g=l[m?"floating"===h?"reference":"floating":h],v=(0,r.JB)(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),b="floating"===h?{x:i,y:a,width:s.floating.width,height:s.floating.height}:s.reference,_=await (null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),E=await (null==o.isElement?void 0:o.isElement(_))&&await (null==o.getScale?void 0:o.getScale(_))||{x:1,y:1},y=(0,r.JB)(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:_,strategy:u}):b);return{top:(v.top-y.top+p.top)/E.y,bottom:(y.bottom-v.bottom+p.bottom)/E.y,left:(v.left-y.left+p.left)/E.x,right:(y.right-v.right+p.right)/E.x}}let o=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:l}=n,u=l.detectOverflow?l:{...l,detectOverflow:a},c=await (null==l.isRTL?void 0:l.isRTL(t)),d=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:m}=i(d,r,c),f=r,p=0,g={};for(let n=0;n<s.length;n++){let a=s[n];if(!a)continue;let{name:v,fn:b}=a,{x:_,y:E,data:y,reset:S}=await b({x:h,y:m,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:d,platform:u,elements:{reference:e,floating:t}});h=null!=_?_:h,m=null!=E?E:m,g[v]={...g[v],...y},S&&p<50&&(p++,"object"==typeof S&&(S.placement&&(f=S.placement),S.rects&&(d=!0===S.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:h,y:m}=i(d,f,c)),n=-1)}return{x:h,y:m,placement:f,strategy:o,middlewareData:g}};function s(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function l(e){return r.mA.some(t=>e[t]>=0)}function u(e){let t=(0,r.VV)(...e.map(e=>e.left)),n=(0,r.VV)(...e.map(e=>e.top));return{x:t,y:n,width:(0,r.Fp)(...e.map(e=>e.right))-t,height:(0,r.Fp)(...e.map(e=>e.bottom))-n}}let c=new Set(["left","top"]);async function d(e,t){let{placement:n,platform:i,elements:a}=e,o=await (null==i.isRTL?void 0:i.isRTL(a.floating)),s=(0,r.k3)(n),l=(0,r.hp)(n),u="y"===(0,r.Qq)(n),d=c.has(s)?-1:1,h=o&&u?-1:1,m=(0,r.ku)(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:g}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&"number"==typeof g&&(p="end"===l?-1*g:g),u?{x:p*h,y:f*d}:{x:f*d,y:p*h}}var h=n(37317);function m(e){let t=(0,h.Dx)(e),n=parseFloat(t.width)||0,i=parseFloat(t.height)||0,a=(0,h.Re)(e),o=a?e.offsetWidth:n,s=a?e.offsetHeight:i,l=(0,r.NM)(n)!==o||(0,r.NM)(i)!==s;return l&&(n=o,i=s),{width:n,height:i,$:l}}function f(e){return(0,h.kK)(e)?e:e.contextElement}function p(e){let t=f(e);if(!(0,h.Re)(t))return(0,r.ze)(1);let n=t.getBoundingClientRect(),{width:i,height:a,$:o}=m(t),s=(o?(0,r.NM)(n.width):n.width)/i,l=(o?(0,r.NM)(n.height):n.height)/a;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let g=(0,r.ze)(0);function v(e){let t=(0,h.Jj)(e);return(0,h.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:g}function b(e,t,n,i){var a;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=f(e),l=(0,r.ze)(1);t&&(i?(0,h.kK)(i)&&(l=p(i)):l=p(e));let u=(void 0===(a=n)&&(a=!1),i&&(!a||i===(0,h.Jj)(s))&&a)?v(s):(0,r.ze)(0),c=(o.left+u.x)/l.x,d=(o.top+u.y)/l.y,m=o.width/l.x,g=o.height/l.y;if(s){let e=(0,h.Jj)(s),t=i&&(0,h.kK)(i)?(0,h.Jj)(i):i,n=e,r=(0,h.wK)(n);for(;r&&i&&t!==n;){let e=p(r),t=r.getBoundingClientRect(),i=(0,h.Dx)(r),a=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,o=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,d*=e.y,m*=e.x,g*=e.y,c+=a,d+=o,n=(0,h.Jj)(r),r=(0,h.wK)(n)}}return(0,r.JB)({width:m,height:g,x:c,y:d})}function _(e,t){let n=(0,h.Lw)(e).scrollLeft;return t?t.left+n:b((0,h.tF)(e)).left+n}function E(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-_(e,n),y:n.top+t.scrollTop}}function y(e,t,n){let i;if("viewport"===t)i=function(e,t){let n=(0,h.Jj)(e),r=(0,h.tF)(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=(0,h.Pf)();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}let u=_(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=25&&(a-=o)}else u<=25&&(a+=u);return{width:a,height:o,x:s,y:l}}(e,n);else if("document"===t)i=function(e){let t=(0,h.tF)(e),n=(0,h.Lw)(e),i=e.ownerDocument.body,a=(0,r.Fp)(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=(0,r.Fp)(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+_(e),l=-n.scrollTop;return"rtl"===(0,h.Dx)(i).direction&&(s+=(0,r.Fp)(t.clientWidth,i.clientWidth)-a),{width:a,height:o,x:s,y:l}}((0,h.tF)(e));else if((0,h.kK)(t))i=function(e,t){let n=b(e,!0,"fixed"===t),i=n.top+e.clientTop,a=n.left+e.clientLeft,o=(0,h.Re)(e)?p(e):(0,r.ze)(1),s=e.clientWidth*o.x;return{width:s,height:e.clientHeight*o.y,x:a*o.x,y:i*o.y}}(t,n);else{let n=v(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.JB)(i)}function S(e){return"static"===(0,h.Dx)(e).position}function C(e,t){if(!(0,h.Re)(e)||"fixed"===(0,h.Dx)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,h.tF)(e)===n&&(n=n.ownerDocument.body),n}function w(e,t){let n=(0,h.Jj)(e);if((0,h.tR)(e))return n;if(!(0,h.Re)(e)){let t=(0,h.Ow)(e);for(;t&&!(0,h.Py)(t);){if((0,h.kK)(t)&&!S(t))return t;t=(0,h.Ow)(t)}return n}let r=C(e,t);for(;r&&(0,h.Ze)(r)&&S(r);)r=C(r,t);return r&&(0,h.Py)(r)&&S(r)&&!(0,h.hT)(r)?n:r||(0,h.gQ)(e)||n}let T=async function(e){let t=this.getOffsetParent||w,n=this.getDimensions,i=await n(e.floating);return{reference:function(e,t,n){let i=(0,h.Re)(t),a=(0,h.tF)(t),o="fixed"===n,s=b(e,!0,o,t),l={scrollLeft:0,scrollTop:0},u=(0,r.ze)(0);if(i||!i&&!o){if(("body"!==(0,h.wk)(t)||(0,h.ao)(a))&&(l=(0,h.Lw)(t)),i){let e=b(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else a&&(u.x=_(a))}o&&!i&&a&&(u.x=_(a));let c=!a||i||o?(0,r.ze)(0):E(a,l);return{x:s.left+l.scrollLeft-u.x-c.x,y:s.top+l.scrollTop-u.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},k={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:a}=e,o="fixed"===a,s=(0,h.tF)(i),l=!!t&&(0,h.tR)(t.floating);if(i===s||l&&o)return n;let u={scrollLeft:0,scrollTop:0},c=(0,r.ze)(1),d=(0,r.ze)(0),m=(0,h.Re)(i);if((m||!m&&!o)&&(("body"!==(0,h.wk)(i)||(0,h.ao)(s))&&(u=(0,h.Lw)(i)),m)){let e=b(i);c=p(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}let f=!s||m||o?(0,r.ze)(0):E(s,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-u.scrollTop*c.y+d.y+f.y}},getDocumentElement:h.tF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:a}=e,o=[..."clippingAncestors"===n?(0,h.tR)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,h.Kx)(e,[],!1).filter(e=>(0,h.kK)(e)&&"body"!==(0,h.wk)(e)),i=null,a="fixed"===(0,h.Dx)(e).position,o=a?(0,h.Ow)(e):e;for(;(0,h.kK)(o)&&!(0,h.Py)(o);){let t=(0,h.Dx)(o),n=(0,h.hT)(o);n||"fixed"!==t.position||(i=null),(a?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||(0,h.ao)(o)&&!n&&function e(t,n){let r=(0,h.Ow)(t);return!(r===n||!(0,h.kK)(r)||(0,h.Py)(r))&&("fixed"===(0,h.Dx)(r).position||e(r,n))}(e,o)))?i=t:r=r.filter(e=>e!==o),o=(0,h.Ow)(o)}return t.set(e,r),r}(t,this._c):[].concat(n),i],s=y(t,o[0],a),l=s.top,u=s.right,c=s.bottom,d=s.left;for(let e=1;e<o.length;e++){let n=y(t,o[e],a);l=(0,r.Fp)(n.top,l),u=(0,r.VV)(n.right,u),c=(0,r.VV)(n.bottom,c),d=(0,r.Fp)(n.left,d)}return{width:u-d,height:c-l,x:d,y:l}},getOffsetParent:w,getElementRects:T,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=m(e);return{width:t,height:n}},getScale:p,isElement:h.kK,isRTL:function(e){return"rtl"===(0,h.Dx)(e).direction}};function I(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function A(e,t,n,i){let a;void 0===i&&(i={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=i,d=f(e),m=o||s?[...d?(0,h.Kx)(d):[],...t?(0,h.Kx)(t):[]]:[];m.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let p=d&&u?function(e,t){let n,i=null,a=(0,h.tF)(e);function o(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return!function s(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),o();let c=e.getBoundingClientRect(),{left:d,top:h,width:m,height:f}=c;if(l||t(),!m||!f)return;let p=(0,r.GW)(h),g=(0,r.GW)(a.clientWidth-(d+m)),v={rootMargin:-p+"px "+-g+"px "+-(0,r.GW)(a.clientHeight-(h+f))+"px "+-(0,r.GW)(d)+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,u))||1},b=!0;function _(t){let r=t[0].intersectionRatio;if(r!==u){if(!b)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||I(c,e.getBoundingClientRect())||s(),b=!1}try{i=new IntersectionObserver(_,{...v,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(_,v)}i.observe(e)}(!0),o}(d,n):null,g=-1,v=null;l&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&v&&t&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),d&&!c&&v.observe(d),t&&v.observe(t));let _=c?b(e):null;return c&&function t(){let r=b(e);_&&!I(_,r)&&n(),_=r,a=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==p||p(),null==(e=v)||e.disconnect(),v=null,c&&cancelAnimationFrame(a)}}let N=a,L=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:a,placement:o,middlewareData:s}=t,l=await d(t,e);return o===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},O=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,a,o;let{rects:s,middlewareData:l,placement:u,platform:c,elements:d}=t,{crossAxis:h=!1,alignment:m,allowedPlacements:f=r.Ct,autoAlignment:p=!0,...g}=(0,r.ku)(e,t),v=void 0!==m||f===r.Ct?((o=m||null)?[...f.filter(e=>(0,r.hp)(e)===o),...f.filter(e=>(0,r.hp)(e)!==o)]:f.filter(e=>(0,r.k3)(e)===e)).filter(e=>!o||(0,r.hp)(e)===o||!!p&&(0,r.Go)(e)!==e):f,b=await c.detectOverflow(t,g),_=(null==(n=l.autoPlacement)?void 0:n.index)||0,E=v[_];if(null==E)return{};let y=(0,r.i8)(E,s,await (null==c.isRTL?void 0:c.isRTL(d.floating)));if(u!==E)return{reset:{placement:v[0]}};let S=[b[(0,r.k3)(E)],b[y[0]],b[y[1]]],C=[...(null==(i=l.autoPlacement)?void 0:i.overflows)||[],{placement:E,overflows:S}],w=v[_+1];if(w)return{data:{index:_+1,overflows:C},reset:{placement:w}};let T=C.map(e=>{let t=(0,r.hp)(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),k=(null==(a=T.filter(e=>e[2].slice(0,(0,r.hp)(e[0])?2:3).every(e=>e<=0))[0])?void 0:a[0])||T[0][0];return k!==u?{data:{index:_+1,overflows:C},reset:{placement:k}}:{}}}},M=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:i,placement:a,platform:o}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,r.ku)(e,t),d={x:n,y:i},h=await o.detectOverflow(t,c),m=(0,r.Qq)((0,r.k3)(a)),f=(0,r.Rn)(m),p=d[f],g=d[m];if(s){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+h[e],i=p-h[t];p=(0,r.uZ)(n,p,i)}if(l){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=g+h[e],i=g-h[t];g=(0,r.uZ)(n,g,i)}let v=u.fn({...t,[f]:p,[m]:g});return{...v,data:{x:v.x-n,y:v.y-i,enabled:{[f]:s,[m]:l}}}}}},P=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i,a,o,s;let{placement:l,middlewareData:u,rects:c,initialPlacement:d,platform:h,elements:m}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:_=!0,...E}=(0,r.ku)(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let y=(0,r.k3)(l),S=(0,r.Qq)(d),C=(0,r.k3)(d)===d,w=await (null==h.isRTL?void 0:h.isRTL(m.floating)),T=g||(C||!_?[(0,r.pw)(d)]:(0,r.gy)(d)),k="none"!==b;!g&&k&&T.push(...(0,r.KX)(d,_,b,w));let I=[d,...T],A=await h.detectOverflow(t,E),N=[],L=(null==(i=u.flip)?void 0:i.overflows)||[];if(f&&N.push(A[y]),p){let e=(0,r.i8)(l,c,w);N.push(A[e[0]],A[e[1]])}if(L=[...L,{placement:l,overflows:N}],!N.every(e=>e<=0)){let e=((null==(a=u.flip)?void 0:a.index)||0)+1,t=I[e];if(t&&(!("alignment"===p&&S!==(0,r.Qq)(t))||L.every(e=>(0,r.Qq)(e.placement)!==S||e.overflows[0]>0)))return{data:{index:e,overflows:L},reset:{placement:t}};let n=null==(o=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(v){case"bestFit":{let e=null==(s=L.filter(e=>{if(k){let t=(0,r.Qq)(e.placement);return t===S||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=d}if(l!==n)return{reset:{placement:n}}}return{}}}},B=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,i;let a,o;let{placement:s,rects:l,platform:u,elements:c}=t,{apply:d=()=>{},...h}=(0,r.ku)(e,t),m=await u.detectOverflow(t,h),f=(0,r.k3)(s),p=(0,r.hp)(s),g="y"===(0,r.Qq)(s),{width:v,height:b}=l.floating;"top"===f||"bottom"===f?(a=f,o=p===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(o=f,a="end"===p?"top":"bottom");let _=b-m.top-m.bottom,E=v-m.left-m.right,y=(0,r.VV)(b-m[a],_),S=(0,r.VV)(v-m[o],E),C=!t.middlewareData.shift,w=y,T=S;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(T=E),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(w=_),C&&!p){let e=(0,r.Fp)(m.left,0),t=(0,r.Fp)(m.right,0),n=(0,r.Fp)(m.top,0),i=(0,r.Fp)(m.bottom,0);g?T=v-2*(0!==e||0!==t?e+t:(0,r.Fp)(m.left,m.right)):w=b-2*(0!==n||0!==i?n+i:(0,r.Fp)(m.top,m.bottom))}await d({...t,availableWidth:T,availableHeight:w});let k=await u.getDimensions(c.floating);return v!==k.width||b!==k.height?{reset:{rects:!0}}:{}}}},D=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:i}=t,{strategy:a="referenceHidden",...o}=(0,r.ku)(e,t);switch(a){case"referenceHidden":{let e=s(await i.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:l(e)}}}case"escaped":{let e=s(await i.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:l(e)}}}default:return{}}}}},R=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:i,placement:a,rects:o,platform:s,elements:l,middlewareData:u}=t,{element:c,padding:d=0}=(0,r.ku)(e,t)||{};if(null==c)return{};let h=(0,r.yd)(d),m={x:n,y:i},f=(0,r.Wh)(a),p=(0,r.I4)(f),g=await s.getDimensions(c),v="y"===f,b=v?"clientHeight":"clientWidth",_=o.reference[p]+o.reference[f]-m[f]-o.floating[p],E=m[f]-o.reference[f],y=await (null==s.getOffsetParent?void 0:s.getOffsetParent(c)),S=y?y[b]:0;S&&await (null==s.isElement?void 0:s.isElement(y))||(S=l.floating[b]||o.floating[p]);let C=S/2-g[p]/2-1,w=(0,r.VV)(h[v?"top":"left"],C),T=(0,r.VV)(h[v?"bottom":"right"],C),k=S-g[p]-T,I=S/2-g[p]/2+(_/2-E/2),A=(0,r.uZ)(w,I,k),N=!u.arrow&&null!=(0,r.hp)(a)&&I!==A&&o.reference[p]/2-(I<w?w:T)-g[p]/2<0,L=N?I<w?I-w:I-k:0;return{[f]:m[f]+L,data:{[f]:A,centerOffset:I-A-L,...N&&{alignmentOffset:L}},reset:N}}}),H=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:i,rects:a,platform:o,strategy:s}=t,{padding:l=2,x:c,y:d}=(0,r.ku)(e,t),h=Array.from(await (null==o.getClientRects?void 0:o.getClientRects(i.reference))||[]),m=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],i=null;for(let e=0;e<t.length;e++){let r=t[e];!i||r.y-i.y>i.height/2?n.push([r]):n[n.length-1].push(r),i=r}return n.map(e=>(0,r.JB)(u(e)))}(h),f=(0,r.JB)(u(h)),p=(0,r.yd)(l),g=await o.getElementRects({reference:{getBoundingClientRect:function(){if(2===m.length&&m[0].left>m[1].right&&null!=c&&null!=d)return m.find(e=>c>e.left-p.left&&c<e.right+p.right&&d>e.top-p.top&&d<e.bottom+p.bottom)||f;if(m.length>=2){if("y"===(0,r.Qq)(n)){let e=m[0],t=m[m.length-1],i="top"===(0,r.k3)(n),a=e.top,o=t.bottom,s=i?e.left:t.left,l=i?e.right:t.right;return{top:a,bottom:o,left:s,right:l,width:l-s,height:o-a,x:s,y:a}}let e="left"===(0,r.k3)(n),t=(0,r.Fp)(...m.map(e=>e.right)),i=(0,r.VV)(...m.map(e=>e.left)),a=m.filter(n=>e?n.left===i:n.right===t),o=a[0].top,s=a[a.length-1].bottom;return{top:o,bottom:s,left:i,right:t,width:t-i,height:s-o,x:i,y:o}}return f}},floating:i.floating,strategy:s});return a.reference.x!==g.reference.x||a.reference.y!==g.reference.y||a.reference.width!==g.reference.width||a.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}},x=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:i,placement:a,rects:o,middlewareData:s}=t,{offset:l=0,mainAxis:u=!0,crossAxis:d=!0}=(0,r.ku)(e,t),h={x:n,y:i},m=(0,r.Qq)(a),f=(0,r.Rn)(m),p=h[f],g=h[m],v=(0,r.ku)(l,t),b="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){let e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+b.mainAxis,n=o.reference[f]+o.reference[e]-b.mainAxis;p<t?p=t:p>n&&(p=n)}if(d){var _,E;let e="y"===f?"width":"height",t=c.has((0,r.k3)(a)),n=o.reference[m]-o.floating[e]+(t&&(null==(_=s.offset)?void 0:_[m])||0)+(t?0:b.crossAxis),i=o.reference[m]+o.reference[e]+(t?0:(null==(E=s.offset)?void 0:E[m])||0)-(t?b.crossAxis:0);g<n?g=n:g>i&&(g=i)}return{[f]:p,[m]:g}}}},U=(e,t,n)=>{let r=new Map,i={platform:k,...n},a={...i.platform,_c:r};return o(e,t,{...i,platform:a})}},1371:function(e,t,n){"use strict";n.d(t,{Cp:function(){return _},Qo:function(){return E},RR:function(){return g},X5:function(){return b},YF:function(){return d},cv:function(){return m},dp:function(){return v},dr:function(){return p},uY:function(){return f},x7:function(){return y}});var r=n(29545),i=n(67294),a=n(73935),o="undefined"!=typeof document?i.useLayoutEffect:function(){};function s(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!s(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!s(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let n=l(e);return Math.round(t*n)/n}function c(e){let t=i.useRef(e);return o(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:h,elements:{reference:m,floating:f}={},transform:p=!0,whileElementsMounted:g,open:v}=e,[b,_]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[E,y]=i.useState(d);s(E,d)||y(d);let[S,C]=i.useState(null),[w,T]=i.useState(null),k=i.useCallback(e=>{e!==L.current&&(L.current=e,C(e))},[]),I=i.useCallback(e=>{e!==O.current&&(O.current=e,T(e))},[]),A=m||S,N=f||w,L=i.useRef(null),O=i.useRef(null),M=i.useRef(b),P=null!=g,B=c(g),D=c(h),R=c(v),H=i.useCallback(()=>{if(!L.current||!O.current)return;let e={placement:t,strategy:n,middleware:E};D.current&&(e.platform=D.current),(0,r.oo)(L.current,O.current,e).then(e=>{let t={...e,isPositioned:!1!==R.current};x.current&&!s(M.current,t)&&(M.current=t,a.flushSync(()=>{_(t)}))})},[E,t,n,D,R]);o(()=>{!1===v&&M.current.isPositioned&&(M.current.isPositioned=!1,_(e=>({...e,isPositioned:!1})))},[v]);let x=i.useRef(!1);o(()=>(x.current=!0,()=>{x.current=!1}),[]),o(()=>{if(A&&(L.current=A),N&&(O.current=N),A&&N){if(B.current)return B.current(A,N,H);H()}},[A,N,H,B,P]);let U=i.useMemo(()=>({reference:L,floating:O,setReference:k,setFloating:I}),[k,I]),F=i.useMemo(()=>({reference:A,floating:N}),[A,N]),G=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!F.floating)return e;let t=u(F.floating,b.x),r=u(F.floating,b.y);return p?{...e,transform:"translate("+t+"px, "+r+"px)",...l(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,p,F.floating,b.x,b.y]);return i.useMemo(()=>({...b,update:H,refs:U,elements:F,floatingStyles:G}),[b,H,U,F,G])}let h=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.x7)({element:n.current,padding:i}).fn(t):{}:n?(0,r.x7)({element:n,padding:i}).fn(t):{}}}),m=(e,t)=>{let n=(0,r.cv)(e);return{name:n.name,fn:n.fn,options:[e,t]}},f=(e,t)=>{let n=(0,r.uY)(e);return{name:n.name,fn:n.fn,options:[e,t]}},p=(e,t)=>({fn:(0,r.dr)(e).fn,options:[e,t]}),g=(e,t)=>{let n=(0,r.RR)(e);return{name:n.name,fn:n.fn,options:[e,t]}},v=(e,t)=>{let n=(0,r.dp)(e);return{name:n.name,fn:n.fn,options:[e,t]}},b=(e,t)=>{let n=(0,r.X5)(e);return{name:n.name,fn:n.fn,options:[e,t]}},_=(e,t)=>{let n=(0,r.Cp)(e);return{name:n.name,fn:n.fn,options:[e,t]}},E=(e,t)=>{let n=(0,r.Qo)(e);return{name:n.name,fn:n.fn,options:[e,t]}},y=(e,t)=>{let n=h(e);return{name:n.name,fn:n.fn,options:[e,t]}}},97145:function(e,t,n){"use strict";n.d(t,{AW:function(){return i},G6:function(){return c},Ie:function(){return y},MM:function(){return f},Me:function(){return g},Pe:function(){return v},U9:function(){return b},V5:function(){return h},Xf:function(){return o},Zj:function(){return l},cr:function(){return u},ex:function(){return p},ij:function(){return s},j7:function(){return _},p7:function(){return E},r:function(){return m},r3:function(){return a}});var r=n(37317);function i(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function a(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Zq)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function o(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function s(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function l(e){return 0===e.mozInputSource&&!!e.isTrusted||(d()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function u(e){return!s().includes("jsdom/")&&(!d()&&0===e.width&&0===e.height||d()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function c(){return/apple/i.test(navigator.vendor)}function d(){let e=/android/i;return e.test(o())||e.test(s())}function h(){return o().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function m(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function f(e){return"nativeEvent"in e}function p(e){return e.matches("html,body")}function g(e){return(null==e?void 0:e.ownerDocument)||document}function v(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function b(e){return"composedPath"in e?e.composedPath()[0]:e.target}function _(e){return(0,r.Re)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function E(e){e.preventDefault(),e.stopPropagation()}function y(e){return!!e&&"combobox"===e.getAttribute("role")&&_(e)}},37317:function(e,t,n){"use strict";let r;function i(){return"undefined"!=typeof window}function a(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!i()&&(e instanceof Node||e instanceof o(e).Node)}function u(e){return!!i()&&(e instanceof Element||e instanceof o(e).Element)}function c(e){return!!i()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function d(e){return!!i()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function h(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=S(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function m(e){return/^(table|td|th)$/.test(a(e))}function f(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}n.d(t,{Dx:function(){return S},Jj:function(){return o},Kx:function(){return function e(t,n,r){var i;void 0===n&&(n=[]),void 0===r&&(r=!0);let a=function e(t){let n=w(t);return y(n)?t.ownerDocument?t.ownerDocument.body:t.body:c(n)&&h(n)?n:e(n)}(t),s=a===(null==(i=t.ownerDocument)?void 0:i.body),l=o(a);if(!s)return n.concat(a,e(a,[],r));{let t=T(l);return n.concat(l,l.visualViewport||[],h(a)?a:[],t&&r?e(t):[])}}},Lw:function(){return C},Ow:function(){return w},Pf:function(){return E},Py:function(){return y},Re:function(){return c},UG:function(){return l},Ze:function(){return m},Zq:function(){return d},ao:function(){return h},gQ:function(){return _},hT:function(){return b},kK:function(){return u},tF:function(){return s},tR:function(){return f},wK:function(){return T},wk:function(){return a}});let p=/transform|translate|scale|rotate|perspective|filter/,g=/paint|layout|strict|content/,v=e=>!!e&&"none"!==e;function b(e){let t=u(e)?S(e):e;return v(t.transform)||v(t.translate)||v(t.scale)||v(t.rotate)||v(t.perspective)||!E()&&(v(t.backdropFilter)||v(t.filter))||p.test(t.willChange||"")||g.test(t.contain||"")}function _(e){let t=w(e);for(;c(t)&&!y(t);){if(b(t))return t;if(f(t))break;t=w(t)}return null}function E(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function y(e){return/^(html|body|#document)$/.test(a(e))}function S(e){return o(e).getComputedStyle(e)}function C(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function w(e){if("html"===a(e))return e;let t=e.assignedSlot||e.parentNode||d(e)&&e.host||s(e);return d(t)?t.host:t}function T(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},71347:function(e,t,n){"use strict";n.d(t,{Ct:function(){return i},Fp:function(){return o},GW:function(){return l},Go:function(){return y},I4:function(){return g},JB:function(){return N},KX:function(){return k},NM:function(){return s},Qq:function(){return v},Rn:function(){return p},VV:function(){return a},Wh:function(){return b},gy:function(){return E},hp:function(){return f},i8:function(){return _},k3:function(){return m},ku:function(){return h},mA:function(){return r},pw:function(){return I},uZ:function(){return d},yd:function(){return A},ze:function(){return u}});let r=["top","right","bottom","left"],i=r.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),a=Math.min,o=Math.max,s=Math.round,l=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function d(e,t,n){return o(e,a(t,n))}function h(e,t){return"function"==typeof e?e(t):e}function m(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function v(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function b(e){return p(v(e))}function _(e,t,n){void 0===n&&(n=!1);let r=f(e),i=b(e),a=g(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=I(o)),[o,I(o)]}function E(e){let t=I(e);return[y(e),t,y(t)]}function y(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let S=["left","right"],C=["right","left"],w=["top","bottom"],T=["bottom","top"];function k(e,t,n,r){let i=f(e),a=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?C:S;return t?S:C;case"left":case"right":return t?w:T;default:return[]}}(m(e),"start"===n,r);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(y)))),a}function I(e){let t=m(e);return c[t]+e.slice(t.length)}function A(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function N(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}}}]);